@wandelbots/wandelbots-js-react-components 5.3.0 → 5.4.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.
Files changed (28) hide show
  1. package/dist/3d.cjs.js +1 -1
  2. package/dist/3d.es.js +1 -1
  3. package/dist/{MotionGroupVisualizer-Cm-XYEZe.js → MotionGroupVisualizer-1twp8wG6.js} +2 -2
  4. package/dist/{MotionGroupVisualizer-Cm-XYEZe.js.map → MotionGroupVisualizer-1twp8wG6.js.map} +1 -1
  5. package/dist/{MotionGroupVisualizer-C6MgXjCN.cjs → MotionGroupVisualizer-Dq_KWGsa.cjs} +2 -2
  6. package/dist/{MotionGroupVisualizer-C6MgXjCN.cjs.map → MotionGroupVisualizer-Dq_KWGsa.cjs.map} +1 -1
  7. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -1
  8. package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -1
  9. package/dist/components/jogging/JoggingJointValueControl.d.ts.map +1 -1
  10. package/dist/core.cjs.js +1 -1
  11. package/dist/core.es.js +2 -2
  12. package/dist/index.cjs.js +1 -1
  13. package/dist/index.es.js +3 -3
  14. package/dist/interpolation-B3pbgXYX.cjs +42 -0
  15. package/dist/interpolation-B3pbgXYX.cjs.map +1 -0
  16. package/dist/{interpolation-JdOMWH6y.js → interpolation-D4ATdkEg.js} +1205 -980
  17. package/dist/interpolation-D4ATdkEg.js.map +1 -0
  18. package/dist/{theming-DkMwng7o.cjs → theming-BCLKcKOU.cjs} +20 -20
  19. package/dist/{theming-DkMwng7o.cjs.map → theming-BCLKcKOU.cjs.map} +1 -1
  20. package/dist/{theming-HOZn0p_s.js → theming-BnAhDNbi.js} +11 -4
  21. package/dist/{theming-HOZn0p_s.js.map → theming-BnAhDNbi.js.map} +1 -1
  22. package/package.json +2 -2
  23. package/src/components/jogging/JoggingCartesianAxisControl.tsx +3 -0
  24. package/src/components/jogging/JoggingJointTab.tsx +1 -0
  25. package/src/components/jogging/JoggingJointValueControl.tsx +7 -1
  26. package/dist/interpolation-GwZidExa.cjs +0 -42
  27. package/dist/interpolation-GwZidExa.cjs.map +0 -1
  28. package/dist/interpolation-JdOMWH6y.js.map +0 -1
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./MotionGroupVisualizer-C6MgXjCN.cjs"),e=require("./theming-DkMwng7o.cjs"),t=require("./interpolation-GwZidExa.cjs"),o=require("./safety-state-stop-ClWLVLMl.cjs"),a=require("./wbLogo-G_IfZ03l.cjs");exports.CollisionSceneRenderer=r.CollisionSceneRenderer;exports.LinearAxis=r.LinearAxis;exports.MANUFACTURER_HOME_CONFIGS=r.MANUFACTURER_HOME_CONFIGS;exports.MotionGroupVisualizer=r.MotionGroupVisualizer;exports.PresetEnvironment=r.PresetEnvironment;exports.Robot=r.Robot;exports.RobotCard=r.RobotCard;exports.SafetyZonesRenderer=r.SafetyZonesRenderer;exports.SupportedLinearAxis=r.SupportedLinearAxis;exports.SupportedRobot=r.SupportedRobot;exports.TrajectoryRenderer=r.TrajectoryRenderer;exports.defaultAxisConfig=r.defaultAxisConfig;exports.defaultGetModel=r.defaultGetModel;exports.extractManufacturer=r.extractManufacturer;exports.getDefaultHomeConfig=r.getDefaultHomeConfig;exports.AppHeader=e.AppHeader;exports.ConnectedMotionGroup=e.ConnectedMotionGroup;exports.CycleTimer=e.CycleTimer;exports.JoggerConnection=e.JoggerConnection;exports.JoggingCartesianAxisControl=e.JoggingCartesianAxisControl;exports.JoggingJointValueControl=e.JoggingJointValueControl;exports.JoggingPanel=e.JoggingPanel;exports.JoggingStore=e.JoggingStore;exports.LoadingCover=e.LoadingCover;exports.LoadingErrorMessage=e.LoadingErrorMessage;exports.LogPanel=e.LogPanel;exports.LogStore=e.LogStore;exports.LogViewer=e.LogViewer;exports.MotionStreamConnection=e.MotionStreamConnection;exports.NoMotionGroupModal=e.NoMotionGroupModal;exports.PoseCartesianValues=e.PoseCartesianValues;exports.PoseJointValues=e.PoseJointValues;exports.RobotListItem=e.RobotListItem;exports.RobotSetupReadinessIndicator=e.RobotSetupReadinessIndicator;exports.RobotSetupReadinessState=e.RobotSetupReadinessState;exports.SafetyBar=e.SafetyBar;exports.SelectableFab=e.SelectableFab;exports.TabBar=e.TabBar;exports.Timer=e.Timer;exports.VelocitySlider=e.VelocitySlider;exports.VelocitySliderLabel=e.VelocitySliderLabel;exports.WandelbotsDataGrid=e.WandelbotsDataGrid;exports.createDebugMessage=e.createDebugMessage;exports.createErrorMessage=e.createErrorMessage;exports.createInfoMessage=e.createInfoMessage;exports.createLogMessage=e.createLogMessage;exports.createNovaMuiTheme=e.createNovaMuiTheme;exports.createWarningMessage=e.createWarningMessage;exports.jointValuesEqual=e.jointValuesEqual;exports.poseEqual=e.poseEqual;exports.tcpMotionEqual=e.tcpMotionEqual;exports.unwrapRotationVector=e.unwrapRotationVector;exports.ProgramControl=t.ProgramControl;exports.ProgramState=t.ProgramState;exports.ProgramStateIndicator=t.ProgramStateIndicator;exports.ValueInterpolator=t.ValueInterpolator;exports.i18n=t.i18n;exports.useAnimationFrame=t.useAnimationFrame;exports.useAutorun=t.useAutorun;exports.useInterpolation=t.useInterpolation;exports.useMounted=t.useMounted;exports.useReaction=t.useReaction;exports.AxisXIcon=o.ForwardRef$10;exports.AxisYIcon=o.ForwardRef$11;exports.AxisZIcon=o.ForwardRef$12;exports.ControllerTypePhysicalIcon=o.ForwardRef;exports.ControllerTypeVirtualIcon=o.ForwardRef$1;exports.JogMinusIcon=o.ForwardRef$13;exports.JogPlusIcon=o.ForwardRef$14;exports.OperationModeAutomaticIcon=o.ForwardRef$2;exports.OperationModeErrorIcon=o.ForwardRef$3;exports.OperationModeManualIcon=o.ForwardRef$4;exports.RobotIcon=o.ForwardRef$15;exports.RotationIcon=o.ForwardRef$16;exports.SafetyStateErrorIcon=o.ForwardRef$5;exports.SafetyStateEstopIcon=o.ForwardRef$6;exports.SafetyStateManualActionRequiredIcon=o.ForwardRef$7;exports.SafetyStateNormalIcon=o.ForwardRef$8;exports.SafetyStateStopIcon=o.ForwardRef$9;exports.HomeIcon=a.ForwardRef;exports.JoggingIcon=a.ForwardRef$1;exports.OrientationCoordSystemIcon=a.ForwardRef$2;exports.OrientationToolIcon=a.ForwardRef$3;exports.WBLogoIcon=a.ForwardRef$4;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./MotionGroupVisualizer-Dq_KWGsa.cjs"),e=require("./theming-BCLKcKOU.cjs"),t=require("./interpolation-B3pbgXYX.cjs"),o=require("./safety-state-stop-ClWLVLMl.cjs"),a=require("./wbLogo-G_IfZ03l.cjs");exports.CollisionSceneRenderer=r.CollisionSceneRenderer;exports.LinearAxis=r.LinearAxis;exports.MANUFACTURER_HOME_CONFIGS=r.MANUFACTURER_HOME_CONFIGS;exports.MotionGroupVisualizer=r.MotionGroupVisualizer;exports.PresetEnvironment=r.PresetEnvironment;exports.Robot=r.Robot;exports.RobotCard=r.RobotCard;exports.SafetyZonesRenderer=r.SafetyZonesRenderer;exports.SupportedLinearAxis=r.SupportedLinearAxis;exports.SupportedRobot=r.SupportedRobot;exports.TrajectoryRenderer=r.TrajectoryRenderer;exports.defaultAxisConfig=r.defaultAxisConfig;exports.defaultGetModel=r.defaultGetModel;exports.extractManufacturer=r.extractManufacturer;exports.getDefaultHomeConfig=r.getDefaultHomeConfig;exports.AppHeader=e.AppHeader;exports.ConnectedMotionGroup=e.ConnectedMotionGroup;exports.CycleTimer=e.CycleTimer;exports.JoggerConnection=e.JoggerConnection;exports.JoggingCartesianAxisControl=e.JoggingCartesianAxisControl;exports.JoggingJointValueControl=e.JoggingJointValueControl;exports.JoggingPanel=e.JoggingPanel;exports.JoggingStore=e.JoggingStore;exports.LoadingCover=e.LoadingCover;exports.LoadingErrorMessage=e.LoadingErrorMessage;exports.LogPanel=e.LogPanel;exports.LogStore=e.LogStore;exports.LogViewer=e.LogViewer;exports.MotionStreamConnection=e.MotionStreamConnection;exports.NoMotionGroupModal=e.NoMotionGroupModal;exports.PoseCartesianValues=e.PoseCartesianValues;exports.PoseJointValues=e.PoseJointValues;exports.RobotListItem=e.RobotListItem;exports.RobotSetupReadinessIndicator=e.RobotSetupReadinessIndicator;exports.RobotSetupReadinessState=e.RobotSetupReadinessState;exports.SafetyBar=e.SafetyBar;exports.SelectableFab=e.SelectableFab;exports.TabBar=e.TabBar;exports.Timer=e.Timer;exports.VelocitySlider=e.VelocitySlider;exports.VelocitySliderLabel=e.VelocitySliderLabel;exports.WandelbotsDataGrid=e.WandelbotsDataGrid;exports.createDebugMessage=e.createDebugMessage;exports.createErrorMessage=e.createErrorMessage;exports.createInfoMessage=e.createInfoMessage;exports.createLogMessage=e.createLogMessage;exports.createNovaMuiTheme=e.createNovaMuiTheme;exports.createWarningMessage=e.createWarningMessage;exports.jointValuesEqual=e.jointValuesEqual;exports.poseEqual=e.poseEqual;exports.tcpMotionEqual=e.tcpMotionEqual;exports.unwrapRotationVector=e.unwrapRotationVector;exports.ProgramControl=t.ProgramControl;exports.ProgramState=t.ProgramState;exports.ProgramStateIndicator=t.ProgramStateIndicator;exports.ValueInterpolator=t.ValueInterpolator;exports.i18n=t.i18n;exports.useAnimationFrame=t.useAnimationFrame;exports.useAutorun=t.useAutorun;exports.useInterpolation=t.useInterpolation;exports.useMounted=t.useMounted;exports.useReaction=t.useReaction;exports.AxisXIcon=o.ForwardRef$10;exports.AxisYIcon=o.ForwardRef$11;exports.AxisZIcon=o.ForwardRef$12;exports.ControllerTypePhysicalIcon=o.ForwardRef;exports.ControllerTypeVirtualIcon=o.ForwardRef$1;exports.JogMinusIcon=o.ForwardRef$13;exports.JogPlusIcon=o.ForwardRef$14;exports.OperationModeAutomaticIcon=o.ForwardRef$2;exports.OperationModeErrorIcon=o.ForwardRef$3;exports.OperationModeManualIcon=o.ForwardRef$4;exports.RobotIcon=o.ForwardRef$15;exports.RotationIcon=o.ForwardRef$16;exports.SafetyStateErrorIcon=o.ForwardRef$5;exports.SafetyStateEstopIcon=o.ForwardRef$6;exports.SafetyStateManualActionRequiredIcon=o.ForwardRef$7;exports.SafetyStateNormalIcon=o.ForwardRef$8;exports.SafetyStateStopIcon=o.ForwardRef$9;exports.HomeIcon=a.ForwardRef;exports.JoggingIcon=a.ForwardRef$1;exports.OrientationCoordSystemIcon=a.ForwardRef$2;exports.OrientationToolIcon=a.ForwardRef$3;exports.WBLogoIcon=a.ForwardRef$4;
2
2
  //# sourceMappingURL=index.cjs.js.map
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as e, L as s, M as t, h as n, P as r, b as i, R as c, S as l, c as g, f as u, T as d, a as S, d as p, e as I, g as M } from "./MotionGroupVisualizer-Cm-XYEZe.js";
2
- import { A as m, t as C, C as R, u as b, a as y, b as A, d as x, J as L, f as P, g as V, h as E, L as J, n as T, M as O, N as F, P as G, e as N, R as h, p as q, o as j, S as v, q as H, T as W, r as w, V as B, s as D, W as k, j as U, m as Z, k as _, i as z, c as X, l as Y, v as K, w as Q, x as $, y as aa } from "./theming-HOZn0p_s.js";
3
- import { a as ea, P as sa, b as ta, V as na, i as ra, e as ia, c as ca, f as la, u as ga, d as ua } from "./interpolation-JdOMWH6y.js";
1
+ import { C as e, L as s, M as t, h as n, P as r, b as i, R as c, S as l, c as g, f as u, T as d, a as S, d as p, e as I, g as M } from "./MotionGroupVisualizer-1twp8wG6.js";
2
+ import { A as m, t as C, C as R, u as b, a as y, b as A, d as x, J as L, f as P, g as V, h as E, L as J, n as T, M as O, N as F, P as G, e as N, R as h, p as q, o as j, S as v, q as H, T as W, r as w, V as B, s as D, W as k, j as U, m as Z, k as _, i as z, c as X, l as Y, v as K, w as Q, x as $, y as aa } from "./theming-BnAhDNbi.js";
3
+ import { a as ea, P as sa, b as ta, V as na, i as ra, e as ia, c as ca, f as la, u as ga, d as ua } from "./interpolation-D4ATdkEg.js";
4
4
  import { j as Sa, k as pa, l as Ia, F as Ma, a as fa, m as ma, n as Ca, b as Ra, c as ba, d as ya, o as Aa, p as xa, e as La, f as Pa, g as Va, h as Ea, i as Ja } from "./safety-state-stop-DuMBCxN5.js";
5
5
  import { F as Oa, a as Fa, b as Ga, c as Na, d as ha } from "./wbLogo-CObCmqTw.js";
6
6
  export {
@@ -0,0 +1,42 @@
1
+ "use strict";const et=require("three"),Se=require("react"),se=require("@mui/material"),Ke=require("mobx-react-lite"),ke=require("react-i18next"),tt=require("i18next"),rt=require("i18next-browser-languagedetector"),pe=require("@mui/icons-material"),m=require("axios"),We=require("mobx");function at(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const ae=at(et);var ve={exports:{}},de={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Ne;function st(){if(Ne)return de;Ne=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(a,s,n){var o=null;if(n!==void 0&&(o=""+n),s.key!==void 0&&(o=""+s.key),"key"in s){n={};for(var l in s)l!=="key"&&(n[l]=s[l])}else n=s;return s=n.ref,{$$typeof:e,type:a,key:o,ref:s!==void 0?s:null,props:n}}return de.Fragment=r,de.jsx=t,de.jsxs=t,de}var he={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var He;function ot(){return He||(He=1,process.env.NODE_ENV!=="production"&&(function(){function e(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===g?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case le:return"Fragment";case Ce:return"Profiler";case te:return"StrictMode";case x:return"Suspense";case T:return"SuspenseList";case F:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case X:return"Portal";case ye:return v.displayName||"Context";case Ae:return(v._context.displayName||"Context")+".Consumer";case R:var U=v.render;return v=v.displayName,v||(v=U.displayName||U.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case A:return U=v.displayName||null,U!==null?U:e(v.type)||"Memo";case w:U=v._payload,v=v._init;try{return e(v(U))}catch{}}return null}function r(v){return""+v}function t(v){try{r(v);var U=!1}catch{U=!0}if(U){U=console;var G=U.error,q=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return G.call(U,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",q),r(v)}}function a(v){if(v===le)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===w)return"<...>";try{var U=e(v);return U?"<"+U+">":"<...>"}catch{return"<...>"}}function s(){var v=B.A;return v===null?null:v.getOwner()}function n(){return Error("react-stack-top-frame")}function o(v){if(j.call(v,"key")){var U=Object.getOwnPropertyDescriptor(v,"key").get;if(U&&U.isReactWarning)return!1}return v.key!==void 0}function l(v,U){function G(){f||(f=!0,console.error("%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://react.dev/link/special-props)",U))}G.isReactWarning=!0,Object.defineProperty(v,"key",{get:G,configurable:!0})}function i(){var v=e(this.type);return _[v]||(_[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function c(v,U,G,q,Pe,Te){var N=G.ref;return v={$$typeof:M,type:v,key:U,props:G,_owner:q},(N!==void 0?N:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:i}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function p(v,U,G,q,Pe,Te){var N=U.children;if(N!==void 0)if(q)if(k(N)){for(q=0;q<N.length;q++)d(N[q]);Object.freeze&&Object.freeze(N)}else console.error("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 d(N);if(j.call(U,"key")){N=e(v);var ne=Object.keys(U).filter(function(Xe){return Xe!=="key"});q=0<ne.length?"{key: someKey, "+ne.join(": ..., ")+": ...}":"{key: someKey}",qe[N+q]||(ne=0<ne.length?"{"+ne.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,q,N,ne,N),qe[N+q]=!0)}if(N=null,G!==void 0&&(t(G),N=""+G),o(U)&&(t(U.key),N=""+U.key),"key"in U){G={};for(var Ue in U)Ue!=="key"&&(G[Ue]=U[Ue])}else G=U;return N&&l(G,typeof v=="function"?v.displayName||v.name||"Unknown":v),c(v,N,G,s(),Pe,Te)}function d(v){u(v)?v._store&&(v._store.validated=1):typeof v=="object"&&v!==null&&v.$$typeof===w&&(v._payload.status==="fulfilled"?u(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function u(v){return typeof v=="object"&&v!==null&&v.$$typeof===M}var I=Se,M=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),le=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),Ce=Symbol.for("react.profiler"),Ae=Symbol.for("react.consumer"),ye=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),g=Symbol.for("react.client.reference"),B=I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,k=Array.isArray,L=console.createTask?console.createTask:function(){return null};I={react_stack_bottom_frame:function(v){return v()}};var f,_={},J=I.react_stack_bottom_frame.bind(I,n)(),ee=L(a(n)),qe={};he.Fragment=le,he.jsx=function(v,U,G){var q=1e4>B.recentlyCreatedOwnerStacks++;return p(v,U,G,!1,q?Error("react-stack-top-frame"):J,q?L(a(v)):ee)},he.jsxs=function(v,U,G){var q=1e4>B.recentlyCreatedOwnerStacks++;return p(v,U,G,!0,q?Error("react-stack-top-frame"):J,q?L(a(v)):ee)}})()),he}var Qe;function lt(){return Qe||(Qe=1,process.env.NODE_ENV==="production"?ve.exports=st():ve.exports=ot()),ve.exports}var $=lt();function nt(e){try{return JSON.stringify(e)}catch{return}}function it(e){const r=e.length(),t=new ae.Quaternion;if(r>1e-6){const a=e.clone().normalize();t.setFromAxisAngle(a,r)}return t}function ct(e){if(!e||e.length===0)return 5;const a=e.reduce((s,n)=>s+Math.abs(n.a??0)/1e3+Math.abs(n.d??0)/1e3,0)*2;return!Number.isFinite(a)||a<=0?5:a}function pt(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const r=new ae.Vector3(e[0].x,e[0].y,e[0].z),t=new ae.Vector3(e[1].x,e[1].y,e[1].z),a=new ae.Vector3(e[2].x,e[2].y,e[2].z),s=new ae.Vector3().subVectors(t,r),n=new ae.Vector3().subVectors(a,r),o=new ae.Vector3().crossVectors(s,n).normalize();for(let l=3;l<e.length;l++){const i=new ae.Vector3(e[l].x,e[l].y,e[l].z),c=new ae.Vector3().subVectors(i,r),p=o.dot(c);if(Math.abs(p)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:o}}const dt={"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.Blocked.ti":"Verbindung blockiert","Jogging.Blocked.lb":"Ein anderer Client kontrolliert das Jogging.","Jogging.Blocked.Reenable.bt":"Neu verbinden","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physisch","SafetyBar.ControllerType.Virtual.lb":"Virtuell","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
23
+ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CycleTimer.RemainingTime.lb":"Verbleibende Zeit","CycleTimer.OfTime.lb":"von {{time}}","CycleTimer.Time.lb":"{{time}}","CycleTimer.Error.lb":"Fehler","CycleTimer.WaitingForCycle.lb":"Warten auf Programmzyklus","CycleTimer.CycleTime.lb":"Zykluszeit","CycleTimer.Measuring.lb":"wird gemessen...","CycleTimer.Determined.lb":"bestimmt","Timer.error":"Fehler","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Weiter","ProgramControl.Retry.bt":"Wiederholen","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stopp","ProgramStateIndicator.Preparing.lb":"Vorbereitung","ProgramStateIndicator.Starting.lb":"Startet","ProgramStateIndicator.Running.lb":"In Betrieb","ProgramStateIndicator.Pausing.lb":"Pausiert","ProgramStateIndicator.Stopping.lb":"Stoppt","ProgramStateIndicator.Completed.lb":"Abgeschlossen","ProgramStateIndicator.Failed.lb":"Fehlgeschlagen","ProgramStateIndicator.Error.lb":"Fehler","ProgramStateIndicator.EStop.lb":"Not-Aus","ProgramStateIndicator.Idle.lb":"Leerlauf","ProgramStateIndicator.Paused.lb":"Pausiert","ProgramStateIndicator.Ready.lb":"Bereit","ProgramStateIndicator.Stopped.lb":"Gestoppt","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manuell","ProgramStateIndicator.ManualT1.lb":"Manuell T1","ProgramStateIndicator.ManualT2.lb":"Manuell T2","RobotSetupReadinessIndicator.Ready.lb":"Bereit","RobotSetupReadinessIndicator.RobotDisconnected.lb":"Roboter getrennt","RobotSetupReadinessIndicator.CellOpen.lb":"Zelle offen","RobotSetupReadinessIndicator.EStop.lb":"Not-Stopp","RobotSetupReadinessIndicator.ManualMode.lb":"Manueller Modus","RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":"Voraussetzung nicht erfüllt","RobotCard.Runtime.lb":"Laufzeit","RobotCard.DriveToHome.bt":"Zur Home-Position fahren"},ht={"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.Blocked.ti":"Connection blocked","Jogging.Blocked.lb":"Another client is currently controlling the jogging.","Jogging.Blocked.Reenable.bt":"Reconnect","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CycleTimer.RemainingTime.lb":"Time remaining","CycleTimer.OfTime.lb":"of {{time}}","CycleTimer.Time.lb":"{{time}}","CycleTimer.Error.lb":"Error","CycleTimer.WaitingForCycle.lb":"Waiting for program cycle","CycleTimer.CycleTime.lb":"Cycle Time","CycleTimer.Measuring.lb":"measuring...","CycleTimer.Determined.lb":"determined","Timer.error":"Error","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Resume","ProgramControl.Retry.bt":"Retry","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stop","ProgramStateIndicator.Preparing.lb":"Preparing","ProgramStateIndicator.Starting.lb":"Starting","ProgramStateIndicator.Running.lb":"Running","ProgramStateIndicator.Pausing.lb":"Pausing","ProgramStateIndicator.Stopping.lb":"Stopping","ProgramStateIndicator.Completed.lb":"Completed","ProgramStateIndicator.Failed.lb":"Failed","ProgramStateIndicator.Error.lb":"Error","ProgramStateIndicator.EStop.lb":"E-Stop","ProgramStateIndicator.Idle.lb":"Idle","ProgramStateIndicator.Paused.lb":"Paused","ProgramStateIndicator.Ready.lb":"Ready","ProgramStateIndicator.Stopped.lb":"Stopped","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manual","ProgramStateIndicator.ManualT1.lb":"Manual T1","ProgramStateIndicator.ManualT2.lb":"Manual T2","RobotSetupReadinessIndicator.Ready.lb":"Ready","RobotSetupReadinessIndicator.RobotDisconnected.lb":"Robot disconnected","RobotSetupReadinessIndicator.CellOpen.lb":"Cell open","RobotSetupReadinessIndicator.EStop.lb":"E-Stop","RobotSetupReadinessIndicator.ManualMode.lb":"Manual mode","RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":"Precondition not fulfilled","RobotCard.Runtime.lb":"Runtime","RobotCard.DriveToHome.bt":"Drive to Home"},Ge=tt.createInstance();Ge.use(rt).init({supportedLngs:["en","de"],resources:{en:{translations:ht},de:{translations:dt}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function De(e){return(t=>$.jsx(ut,{children:$.jsx(e,{...t})}))}const ut=({children:e})=>$.jsx(ke.I18nextProvider,{i18n:Ge,children:e});var z=(e=>(e.IDLE="idle",e.PREPARING="preparing",e.STARTING="starting",e.RUNNING="running",e.PAUSING="pausing",e.PAUSED="paused",e.STOPPING="stopping",e.COMPLETED="completed",e.FAILED="failed",e.STOPPED="stopped",e.ERROR="error",e))(z||{});const mt=De(Ke.observer(({state:e,onRun:r,onPause:t,onStop:a,onReset:s,requiresManualReset:n=!1,variant:o="with_pause",className:l})=>{const i=se.useTheme(),{t:c}=ke.useTranslation(),p=()=>{const I={run:{enabled:e==="idle"||e==="stopped"||e==="paused"||e==="completed"||e==="failed"||e==="error",label:c(e==="paused"?"ProgramControl.Resume.bt":e==="error"||e==="failed"?"ProgramControl.Retry.bt":"ProgramControl.Start.bt"),color:i.palette.success.main,onClick:r},pause:{enabled:e==="running",label:c("ProgramControl.Pause.bt"),color:"#FFFFFF33",onClick:t||(()=>{})},stop:{enabled:e==="preparing"||e==="starting"||e==="running"||e==="pausing"||e==="paused",label:c("ProgramControl.Stop.bt"),color:i.palette.error.main,onClick:a}};return o==="without_pause"?[I.run,I.stop]:[I.run,I.pause,I.stop]},d=I=>{const M={sx:{fontSize:"55px"}};if(o==="without_pause")return I===0?$.jsx(pe.PlayArrow,{...M}):$.jsx(pe.Stop,{...M});switch(I){case 0:return $.jsx(pe.PlayArrow,{...M});case 1:return $.jsx(pe.Pause,{...M});case 2:return $.jsx(pe.Stop,{...M});default:return null}},u=p();return $.jsx(se.Box,{className:l,sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:$.jsx(se.Box,{sx:{display:"flex",gap:"40px",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},children:u.map((I,M)=>$.jsxs(se.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[$.jsx(se.Button,{variant:"contained",disabled:!I.enabled||e==="preparing"||e==="starting"||e==="pausing"||e==="stopping"&&!n,onClick:I.onClick,sx:{width:"88px",height:"88px",borderRadius:"88px",backgroundColor:I.color,opacity:I.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?1:.3,"&:hover":{backgroundColor:I.color,opacity:I.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?.8:.3},"&:disabled":{backgroundColor:I.color,opacity:.3},minWidth:"88px",flexShrink:0},children:d(M)}),$.jsx(se.Typography,{variant:"body1",sx:{color:I.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?I.color:i.palette.text.disabled,textAlign:"center",opacity:I.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?1:.3},children:I.label})]},I.label))})})})),Ot=De(Ke.observer(({programState:e,safetyState:r,operationMode:t,className:a})=>{const s=se.useTheme(),{t:n}=ke.useTranslation(),o=()=>{if(r==="SAFETY_STATE_DEVICE_EMERGENCY_STOP"||r==="SAFETY_STATE_ROBOT_EMERGENCY_STOP"||r==="SAFETY_STATE_STOP_0"||r==="SAFETY_STATE_STOP_1"||r==="SAFETY_STATE_STOP_2"||r==="SAFETY_STATE_PROTECTIVE_STOP"||r==="SAFETY_STATE_STOP"||r==="SAFETY_STATE_REDUCED"||r==="SAFETY_STATE_MASTERING"||r==="SAFETY_STATE_CONFIRM_SAFETY"||r==="SAFETY_STATE_OPERATOR_SAFETY"||r==="SAFETY_STATE_RECOVERY"||r==="SAFETY_STATE_VIOLATION")return{label:n("ProgramStateIndicator.EStop.lb"),color:s.palette.error.main};if(r==="SAFETY_STATE_UNKNOWN"||r==="SAFETY_STATE_FAULT")return{label:n("ProgramStateIndicator.Error.lb"),color:s.palette.error.main};if(r==="SAFETY_STATE_NORMAL")switch(e){case z.PREPARING:return{label:n("ProgramStateIndicator.Preparing.lb"),color:s.palette.warning.main};case z.STARTING:return{label:n("ProgramStateIndicator.Starting.lb"),color:s.palette.warning.main};case z.RUNNING:return{label:n("ProgramStateIndicator.Running.lb"),color:s.palette.success.main};case z.PAUSING:return{label:n("ProgramStateIndicator.Pausing.lb"),color:s.palette.warning.main};case z.PAUSED:return{label:n("ProgramStateIndicator.Paused.lb"),color:s.palette.grey[600]};case z.STOPPING:return{label:n("ProgramStateIndicator.Stopping.lb"),color:s.palette.warning.main};case z.COMPLETED:return{label:n("ProgramStateIndicator.Completed.lb"),color:s.palette.success.main};case z.FAILED:return{label:n("ProgramStateIndicator.Failed.lb"),color:s.palette.error.main};case z.STOPPED:return{label:n("ProgramStateIndicator.Stopped.lb"),color:s.palette.warning.main};case z.ERROR:return{label:n("ProgramStateIndicator.Error.lb"),color:s.palette.error.main};case z.IDLE:default:return{label:n("ProgramStateIndicator.Ready.lb"),color:s.palette.success.main}}return{label:n("ProgramStateIndicator.Idle.lb"),color:s.palette.grey[600]}},{label:l,color:i}=o(),p=`${l} / ${(()=>{switch(t){case"OPERATION_MODE_AUTO":return n("ProgramStateIndicator.Auto.lb");case"OPERATION_MODE_MANUAL":return n("ProgramStateIndicator.Manual.lb");case"OPERATION_MODE_MANUAL_T1":return n("ProgramStateIndicator.ManualT1.lb");case"OPERATION_MODE_MANUAL_T2":return n("ProgramStateIndicator.ManualT2.lb");default:return n("ProgramStateIndicator.Auto.lb")}})()}`;return $.jsx(se.Chip,{className:a,label:$.jsx(se.Typography,{variant:"body2",sx:{fontSize:"0.75rem",lineHeight:1.2},children:p}),variant:"filled",sx:{backgroundColor:i,color:s.palette.getContrastText(i),fontWeight:500,height:"auto","& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})}));/*! *****************************************************************************
24
+ Copyright (c) Microsoft Corporation. All rights reserved.
25
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
26
+ this file except in compliance with the License. You may obtain a copy of the
27
+ License at http://www.apache.org/licenses/LICENSE-2.0
28
+
29
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
30
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
31
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
32
+ MERCHANTABLITY OR NON-INFRINGEMENT.
33
+
34
+ See the Apache Version 2.0 License for specific language governing permissions
35
+ and limitations under the License.
36
+ ***************************************************************************** */var Me=function(e,r){return Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])},Me(e,r)};function ze(e,r){Me(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function Vt(e){var r=typeof Symbol=="function"&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}function St(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),s,n=[],o;try{for(;(r===void 0||r-- >0)&&!(s=a.next()).done;)n.push(s.value)}catch(l){o={error:l}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return n}function bt(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(St(arguments[r]));return e}var Ye=(function(){function e(r,t){this.target=t,this.type=r}return e})(),Ct=(function(e){ze(r,e);function r(t,a){var s=e.call(this,"error",a)||this;return s.message=t.message,s.error=t,s}return r})(Ye),yt=(function(e){ze(r,e);function r(t,a,s){t===void 0&&(t=1e3),a===void 0&&(a="");var n=e.call(this,"close",s)||this;return n.wasClean=!0,n.code=t,n.reason=a,n}return r})(Ye);/*!
37
+ * Reconnecting WebSocket
38
+ * by Pedro Ladaria <pedro.ladaria@gmail.com>
39
+ * https://github.com/pladaria/reconnecting-websocket
40
+ * License MIT
41
+ */var Pt=function(){if(typeof WebSocket<"u")return WebSocket},vt=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},oe={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},It=(function(){function e(r,t,a){var s=this;a===void 0&&(a={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(n){s._debug("open event");var o=s._options.minUptime,l=o===void 0?oe.minUptime:o;clearTimeout(s._connectTimeout),s._uptimeTimeout=setTimeout(function(){return s._acceptOpen()},l),s._ws.binaryType=s._binaryType,s._messageQueue.forEach(function(i){return s._ws.send(i)}),s._messageQueue=[],s.onopen&&s.onopen(n),s._listeners.open.forEach(function(i){return s._callEventListener(n,i)})},this._handleMessage=function(n){s._debug("message event"),s.onmessage&&s.onmessage(n),s._listeners.message.forEach(function(o){return s._callEventListener(n,o)})},this._handleError=function(n){s._debug("error event",n.message),s._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),s.onerror&&s.onerror(n),s._debug("exec error listeners"),s._listeners.error.forEach(function(o){return s._callEventListener(n,o)}),s._connect()},this._handleClose=function(n){s._debug("close event"),s._clearTimeouts(),s._shouldReconnect&&s._connect(),s.onclose&&s.onclose(n),s._listeners.close.forEach(function(o){return s._callEventListener(n,o)})},this._url=r,this._protocols=t,this._options=a,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(r){this._binaryType=r,this._ws&&(this._ws.binaryType=r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var r=this._messageQueue.reduce(function(t,a){return typeof a=="string"?t+=a.length:a instanceof Blob?t+=a.size:t+=a.byteLength,t},0);return r+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(r,t){if(r===void 0&&(r=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(r,t)},e.prototype.reconnect=function(r,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(r,t),this._connect())},e.prototype.send=function(r){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",r),this._ws.send(r);else{var t=this._options.maxEnqueuedMessages,a=t===void 0?oe.maxEnqueuedMessages:t;this._messageQueue.length<a&&(this._debug("enqueue",r),this._messageQueue.push(r))}},e.prototype.addEventListener=function(r,t){this._listeners[r]&&this._listeners[r].push(t)},e.prototype.dispatchEvent=function(r){var t,a,s=this._listeners[r.type];if(s)try{for(var n=Vt(s),o=n.next();!o.done;o=n.next()){var l=o.value;this._callEventListener(r,l)}}catch(i){t={error:i}}finally{try{o&&!o.done&&(a=n.return)&&a.call(n)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(r,t){this._listeners[r]&&(this._listeners[r]=this._listeners[r].filter(function(a){return a!==t}))},e.prototype._debug=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];this._options.debug&&console.log.apply(console,bt(["RWS>"],r))},e.prototype._getNextDelay=function(){var r=this._options,t=r.reconnectionDelayGrowFactor,a=t===void 0?oe.reconnectionDelayGrowFactor:t,s=r.minReconnectionDelay,n=s===void 0?oe.minReconnectionDelay:s,o=r.maxReconnectionDelay,l=o===void 0?oe.maxReconnectionDelay:o,i=0;return this._retryCount>0&&(i=n*Math.pow(a,this._retryCount-1),i>l&&(i=l)),this._debug("next delay",i),i},e.prototype._wait=function(){var r=this;return new Promise(function(t){setTimeout(t,r._getNextDelay())})},e.prototype._getNextUrl=function(r){if(typeof r=="string")return Promise.resolve(r);if(typeof r=="function"){var t=r();if(typeof t=="string")return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var r=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var t=this._options,a=t.maxRetries,s=a===void 0?oe.maxRetries:a,n=t.connectionTimeout,o=n===void 0?oe.connectionTimeout:n,l=t.WebSocket,i=l===void 0?Pt():l;if(this._retryCount>=s){this._debug("max retries reached",this._retryCount,">=",s);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!vt(i))throw Error("No valid WebSocket class provided");this._wait().then(function(){return r._getNextUrl(r._url)}).then(function(c){r._closeCalled||(r._debug("connect",{url:c,protocols:r._protocols}),r._ws=r._protocols?new i(c,r._protocols):new i(c),r._ws.binaryType=r._binaryType,r._connectLock=!1,r._addListeners(),r._connectTimeout=setTimeout(function(){return r._handleTimeout()},o))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new Ct(Error("TIMEOUT"),this))},e.prototype._disconnect=function(r,t){if(r===void 0&&(r=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(r,t),this._handleClose(new yt(r,t,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(r,t){"handleEvent"in t?t.handleEvent(r):t(r)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e})(),Rt=class extends It{constructor(e,r={}){console.log("Opening websocket to",e),super(()=>this.targetUrl||e,void 0,{startClosed:!0}),this.opts=r,this.disposed=!1,Object.defineProperty(this,"url",{get(){return this.targetUrl}}),this.targetUrl=e,this.addEventListener("open",()=>{console.log(`Websocket to ${this.url} opened`)}),this.addEventListener("message",a=>{this.receivedFirstMessage||(this.receivedFirstMessage=a)}),this.addEventListener("close",()=>{console.log(`Websocket to ${this.url} closed`)});const t=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):t.apply(this)},this.reconnect()}changeUrl(e){this.receivedFirstMessage=void 0,this.targetUrl=e,this.reconnect()}sendJson(e){this.opts.mock?this.opts.mock.handleWebsocketMessage(this,JSON.stringify(e)):this.send(JSON.stringify(e))}dispose(){this.close(),this.disposed=!0,this.opts.onDispose&&this.opts.onDispose()}async opened(){return new Promise((e,r)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener("open",()=>e()),this.addEventListener("error",r))})}async closed(){return new Promise((e,r)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener("close",()=>e()),this.addEventListener("error",r))})}async firstMessage(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,r)=>{const t=s=>{this.receivedFirstMessage=s,this.removeEventListener("message",t),this.removeEventListener("error",a),e(s)},a=s=>{this.removeEventListener("message",t),this.removeEventListener("error",a),r(s)};this.addEventListener("message",t),this.addEventListener("error",a)})}async nextMessage(){return new Promise((e,r)=>{const t=s=>{this.removeEventListener("message",t),this.removeEventListener("error",a),e(s)},a=s=>{this.removeEventListener("message",t),this.removeEventListener("error",a),r(s)};this.addEventListener("message",t),this.addEventListener("error",a)})}},xt=class{constructor(){this.available=typeof window<"u"&&!!window.localStorage}getJSON(e){if(!this.available)return null;const r=window.localStorage.getItem(e);if(r===null)return null;try{return JSON.parse(r)}catch{return null}}setJSON(e,r){if(!this.available)return null;window.localStorage.setItem(e,JSON.stringify(r))}delete(e){if(!this.available)return null;window.localStorage.removeItem(e)}setString(e,r){if(!this.available)return null;window.localStorage.setItem(e,r)}getString(e){return this.available?window.localStorage.getItem(e):null}};const Ie=new xt;function Fe(e,r={}){const{scheme:t,defaultScheme:a}=r,s=/^[a-zA-Z]+:\/\//;return t?(e=e.replace(s,""),e=`${t}://${e}`):a&&!s.test(e)&&(e=`${a}://${e}`),new URL(e)}function wt(e,r={}){try{return Fe(e,r)}catch{return}}function At(e){var r;return(r=wt(e,{defaultScheme:"http"}))!=null&&r.host.endsWith(".wandelbots.io")?Fe(e,{defaultScheme:"https"}):Fe(e,{defaultScheme:"http"})}const Ee={dev:{domain:"https://auth.portal.dev.wandelbots.io",clientId:"fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha"},stg:{domain:"https://auth.portal.stg.wandelbots.io",clientId:"joVDeD9e786WzFNSGCqoVq7HNkWt5j6s"},prod:{domain:"https://auth.portal.wandelbots.io",clientId:"J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2"}},Tt=e=>{if(e.host.endsWith(".dev.wandelbots.io"))return Ee.dev;if(e.host.endsWith(".stg.wandelbots.io"))return Ee.stg;if(e.host.endsWith(".wandelbots.io"))return Ee.prod;throw new Error(`Unable to authenticate with NOVA instance "${e}". Auth0 login is only supported for cloud instances with hosts of the form "**.wandelbots.io".`)},Ut=async e=>{if(typeof window>"u")throw new Error("Access token must be set to use NovaClient when not in a browser environment.");if(e.origin===window.location.origin)throw window.location.reload(),new Error("Failed to reload page to get auth details, please refresh manually");const{Auth0Client:r}=await Promise.resolve().then(()=>require("./auth0-spa-js.production.esm-CVEdrQ4-.cjs")),t=Tt(e),a=new r({domain:t.domain,clientId:t.clientId??"",useRefreshTokens:!1,authorizationParams:{audience:"nova-api",redirect_uri:window.location.origin}});if(window.location.search.includes("code=")&&window.location.search.includes("state=")){const{appState:s}=await a.handleRedirectCallback();window.history.replaceState({},document.title,(s==null?void 0:s.returnTo)||window.location.pathname)}else await a.loginWithRedirect();return await a.getTokenSilently()};function Et(e){var r=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var t=e.shift();e[0]=t+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<e.length;a++){var s=e[a];if(typeof s!="string")throw new TypeError("Url must be a string. Received "+s);s!==""&&(a>0&&(s=s.replace(/^[\/]+/,"")),a<e.length-1?s=s.replace(/[\/]+$/,""):s=s.replace(/[\/]+$/,"/"),r.push(s))}var n=r.join("/");n=n.replace(/\/(\?|&|#[^!])/g,"$1");var o=n.split("?");return n=o.shift()+(o.length>0?"?":"")+o.join("&"),n}function ge(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),Et(e)}var Y={},Je;function gt(){if(Je)return Y;Je=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.PathError=Y.TokenData=void 0,Y.parse=c,Y.compile=p,Y.match=I,Y.pathToRegexp=M,Y.stringify=Ae;const e="/",r=R=>R,t=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,s=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;function n(R){return R.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function o(R){return R.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class l{constructor(x,T){this.tokens=x,this.originalPath=T}}Y.TokenData=l;class i extends TypeError{constructor(x,T){let A=x;T&&(A+=`: ${T}`),A+="; visit https://git.new/pathToRegexpError for info",super(A),this.originalPath=T}}Y.PathError=i;function c(R,x={}){const{encodePath:T=r}=x,A=[...R];let w=0;function F(g){const B=[];let j="";function k(){j&&(B.push({type:"text",value:T(j)}),j="")}for(;w<A.length;){const L=A[w++];if(L===g)return k(),B;if(L==="\\"){if(w===A.length)throw new i(`Unexpected end after \\ at index ${w}`,R);j+=A[w++];continue}if(L===":"||L==="*"){const f=L===":"?"param":"wildcard";let _="";if(t.test(A[w]))do _+=A[w++];while(a.test(A[w]));else if(A[w]==='"'){let J=w;for(;w<A.length;){if(A[++w]==='"'){w++,J=0;break}A[w]==="\\"&&w++,_+=A[w]}if(J)throw new i(`Unterminated quote at index ${J}`,R)}if(!_)throw new i(`Missing parameter name at index ${w}`,R);k(),B.push({type:f,name:_});continue}if(L==="{"){k(),B.push({type:"group",tokens:F("}")});continue}if(L==="}"||L==="("||L===")"||L==="["||L==="]"||L==="+"||L==="?"||L==="!")throw new i(`Unexpected ${L} at index ${w-1}`,R);j+=L}if(g)throw new i(`Unexpected end at index ${w}, expected ${g}`,R);return k(),B}return new l(F(""),R)}function p(R,x={}){const{encode:T=encodeURIComponent,delimiter:A=e}=x,w=typeof R=="object"?R:c(R,x),F=d(w.tokens,A,T);return function(B={}){const j=[],k=F(B,j);if(j.length)throw new TypeError(`Missing parameters: ${j.join(", ")}`);return k}}function d(R,x,T){const A=R.map(w=>u(w,x,T));return(w,F)=>{let g="";for(const B of A)g+=B(w,F);return g}}function u(R,x,T){if(R.type==="text")return()=>R.value;if(R.type==="group"){const w=d(R.tokens,x,T);return(F,g)=>{const B=g.length,j=w(F,g);return g.length===B?j:(g.length=B,"")}}const A=T||r;return R.type==="wildcard"&&T!==!1?(w,F)=>{const g=w[R.name];if(g==null)return F.push(R.name),"";if(!Array.isArray(g)||g.length===0)throw new TypeError(`Expected "${R.name}" to be a non-empty array`);let B="";for(let j=0;j<g.length;j++){if(typeof g[j]!="string")throw new TypeError(`Expected "${R.name}/${j}" to be a string`);j>0&&(B+=x),B+=A(g[j])}return B}:(w,F)=>{const g=w[R.name];if(g==null)return F.push(R.name),"";if(typeof g!="string")throw new TypeError(`Expected "${R.name}" to be a string`);return A(g)}}function I(R,x={}){const{decode:T=decodeURIComponent,delimiter:A=e}=x,{regexp:w,keys:F}=M(R,x),g=F.map(B=>T===!1?r:B.type==="param"?T:j=>j.split(A).map(T));return function(j){const k=w.exec(j);if(!k)return!1;const L=k[0],f=Object.create(null);for(let _=1;_<k.length;_++){if(k[_]===void 0)continue;const J=F[_-1],ee=g[_-1];f[J.name]=ee(k[_])}return{path:L,params:f}}}function M(R,x={}){const{delimiter:T=e,end:A=!0,sensitive:w=!1,trailing:F=!0}=x,g=[];let B="",j=0;function k(f){if(Array.isArray(f)){for(const J of f)k(J);return}const _=typeof f=="object"?f:c(f,x);X(_.tokens,0,[],J=>{if(j>=256)throw new i("Too many path combinations",_.originalPath);j>0&&(B+="|"),B+=le(J,T,g,_.originalPath),j++})}k(R);let L=`^(?:${B})`;return F&&(L+="(?:"+o(T)+"$)?"),L+=A?"$":"(?="+o(T)+"|$)",{regexp:new RegExp(L,w?"":"i"),keys:g}}function X(R,x,T,A){for(;x<R.length;){const w=R[x++];if(w.type==="group"){const F=T.length;X(w.tokens,0,T,g=>X(R,x,g,A)),T.length=F;continue}T.push(w)}A(T)}function le(R,x,T,A){let w="",F="",g="",B=0,j=0,k=0;function L(_,J){for(;_<R.length;){const ee=R[_++];if(ee.type===J)return!0;if(ee.type==="text"&&ee.value.includes(x))break}return!1}function f(_){let J="";for(;_<R.length;){const ee=R[_++];if(ee.type!=="text")break;J+=ee.value}return J}for(;k<R.length;){const _=R[k++];if(_.type==="text"){w+=o(_.value),F+=_.value,B===2&&(g+=_.value),_.value.includes(x)&&(j=0);continue}if(_.type==="param"||_.type==="wildcard"){if(B&&!F)throw new i(`Missing text before "${_.name}" ${_.type}`,A);_.type==="param"?(w+=j&2?`(${te(x,F)}+)`:L(k,"wildcard")?`(${te(x,f(k))}+)`:j&1?`(${te(x,F)}+|${o(F)})`:`(${te(x,"")}+)`,j|=B=1):(w+=j&2?`(${te(F,"")}+)`:g?`(${te(g,"")}+|${te(x,"")}+)`:"([^]+)",g="",j|=B=2),T.push(_),F="";continue}throw new TypeError(`Unknown token type: ${_.type}`)}return w}function te(R,x){return x.length>R.length?te(x,R):(R===x&&(x=""),x.length>1?`(?:(?!${o(R)}|${o(x)})[^])`:R.length>1?`(?:(?!${o(R)})[^${o(x)}])`:`[^${o(R+x)}]`)}function Ce(R,x){let T="";for(;x<R.length;){const A=R[x++];if(A.type==="text"){T+=n(A.value);continue}if(A.type==="group"){T+="{"+Ce(A.tokens,0)+"}";continue}if(A.type==="param"){T+=":"+ye(A.name,R[x]);continue}if(A.type==="wildcard"){T+="*"+ye(A.name,R[x]);continue}throw new TypeError(`Unknown token type: ${A.type}`)}return T}function Ae(R){return Ce(R.tokens,0)}function ye(R,x){return!s.test(R)||(x==null?void 0:x.type)==="text"&&a.test(x.value[0])?JSON.stringify(R):R}return Y}var _t=gt();function be(e){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},be(e)}function jt(e,r){if(be(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r);if(be(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Bt(e){var r=jt(e,"string");return be(r)=="symbol"?r:r+""}function Mt(e,r,t){return(r=Bt(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const O="/api/v2".replace(/\/+$/,""),$e={csv:","};var Q=class{constructor(e,r=O,t=m){this.basePath=r,this.axios=t,Mt(this,"configuration",void 0),e&&(this.configuration=e,this.basePath=e.basePath??r)}},Ft=class extends Error{constructor(e,r){super(r),this.field=e,this.name="RequiredError"}};const V={},S="https://example.com",h=function(e,r,t){if(t==null)throw new Ft(r,`Required parameter ${r} was null or undefined when calling ${e}.`)},b=async function(e,r){r&&r.accessToken&&(e.Authorization="Bearer "+(typeof r.accessToken=="function"?await r.accessToken():await r.accessToken))};function Le(e,r,t=""){r!=null&&(typeof r=="object"?Array.isArray(r)?r.forEach(a=>Le(e,a,t)):Object.keys(r).forEach(a=>Le(e,r[a],`${t}${t!==""?".":""}${a}`)):e.has(t)?e.append(t,r):e.set(t,r))}const C=function(e,...r){const t=new URLSearchParams(e.search);Le(t,r),e.search=t.toString()},E=function(e,r,t){const a=typeof e!="string";return(a&&t&&t.isJsonMime?t.isJsonMime(r.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},y=function(e){return e.pathname+e.search+e.hash},P=function(e,r,t,a){return(s=r,n=t)=>{const o={...e.options,url:(s.defaults.baseURL?"":(a==null?void 0:a.basePath)??n)+e.url};return s.request(o)}},Lt={RevoluteJoint:"REVOLUTE_JOINT",PrismaticJoint:"PRISMATIC_JOINT"},kt={Abb:"abb",Fanuc:"fanuc",Kuka:"kuka",Universalrobots:"universalrobots",Yaskawa:"yaskawa"},Gt=function(e){return{addApp:async(r,t,a,s={})=>{h("addApp","cell",r),h("addApp","app",t);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"POST",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.completion_timeout=a),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(t,i,e),{url:y(o),options:i}},clearApps:async(r,t,a={})=>{h("clearApps","cell",r);const s="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),t!==void 0&&(c.completion_timeout=t),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deleteApp:async(r,t,a,s={})=>{h("deleteApp","cell",r),h("deleteApp","app",t);const n="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"DELETE",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.completion_timeout=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},getApp:async(r,t,a={})=>{h("getApp","cell",r),h("getApp","app",t);const s="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},listApps:async(r,t={})=>{h("listApps","cell",r);const a="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},updateApp:async(r,t,a,s,n={})=>{h("updateApp","cell",r),h("updateApp","app",t),h("updateApp","app2",a);const o="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"PUT",...i,...n},p={},d={};await b(p,e),s!==void 0&&(d.completion_timeout=s),p["Content-Type"]="application/json",C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},c.data=E(a,c,e),{url:y(l),options:c}}}},ie=function(e){const r=Gt(e);return{async addApp(t,a,s,n){var c,p;const o=await r.addApp(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ApplicationApi.addApp"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async clearApps(t,a,s){var i,c;const n=await r.clearApps(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["ApplicationApi.clearApps"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deleteApp(t,a,s,n){var c,p;const o=await r.deleteApp(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ApplicationApi.deleteApp"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async getApp(t,a,s){var i,c;const n=await r.getApp(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["ApplicationApi.getApp"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async listApps(t,a){var l,i;const s=await r.listApps(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["ApplicationApi.listApps"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async updateApp(t,a,s,n,o){var p,d;const l=await r.updateApp(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["ApplicationApi.updateApp"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)}}};var fe=class extends Q{addApp(e,r,t,a){return ie(this.configuration).addApp(e,r,t,a).then(s=>s(this.axios,this.basePath))}clearApps(e,r,t){return ie(this.configuration).clearApps(e,r,t).then(a=>a(this.axios,this.basePath))}deleteApp(e,r,t,a){return ie(this.configuration).deleteApp(e,r,t,a).then(s=>s(this.axios,this.basePath))}getApp(e,r,t){return ie(this.configuration).getApp(e,r,t).then(a=>a(this.axios,this.basePath))}listApps(e,r){return ie(this.configuration).listApps(e,r).then(t=>t(this.axios,this.basePath))}updateApp(e,r,t,a,s){return ie(this.configuration).updateApp(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}};const Dt=function(e){return{addBusIOService:async(r,t,a,s={})=>{h("addBusIOService","cell",r),h("addBusIOService","busIOType",t);const n="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"POST",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.completion_timeout=a),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(t,i,e),{url:y(o),options:i}},addModbusIO:async(r,t,a,s={})=>{h("addModbusIO","cell",r),h("addModbusIO","io",t),h("addModbusIO","modbusIOData",a);const n="/cells/{cell}/bus-ios/modbus/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},addProfinetIO:async(r,t,a,s={})=>{h("addProfinetIO","cell",r),h("addProfinetIO","io",t),h("addProfinetIO","profinetIOData",a);const n="/cells/{cell}/bus-ios/profinet/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},clearBusIOService:async(r,t,a={})=>{h("clearBusIOService","cell",r);const s="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),t!==void 0&&(c.completion_timeout=t),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deleteAllModbusIOs:async(r,t={})=>{h("deleteAllModbusIOs","cell",r);const a="/cells/{cell}/bus-ios/modbus/ios".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},deleteAllProfinetIOs:async(r,t={})=>{h("deleteAllProfinetIOs","cell",r);const a="/cells/{cell}/bus-ios/profinet/ios".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},deleteModbusIO:async(r,t,a={})=>{h("deleteModbusIO","cell",r),h("deleteModbusIO","io",t);const s="/cells/{cell}/bus-ios/modbus/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deleteProfinetIO:async(r,t,a={})=>{h("deleteProfinetIO","cell",r),h("deleteProfinetIO","io",t);const s="/cells/{cell}/bus-ios/profinet/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getBusIOService:async(r,t={})=>{h("getBusIOService","cell",r);const a="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},getBusIOState:async(r,t={})=>{h("getBusIOState","cell",r);const a="/cells/{cell}/bus-ios/state".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},getBusIOValues:async(r,t,a={})=>{h("getBusIOValues","cell",r);const s="/cells/{cell}/bus-ios/ios/values".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),t&&(c.ios=t),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getProfinetDescription:async(r,t={})=>{h("getProfinetDescription","cell",r);const a="/cells/{cell}/bus-ios/profinet/description".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},getProfinetGSDML:async(r,t={})=>{h("getProfinetGSDML","cell",r);const a="/cells/{cell}/bus-ios/profinet/gsdml".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},getProfinetIOsFromFile:async(r,t,a,s={})=>{h("getProfinetIOsFromFile","cell",r);const n="/cells/{cell}/bus-ios/profinet/iofile".replace("{cell}",encodeURIComponent(String(r))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),t!==void 0&&(p.input_offset=t),a!==void 0&&(p.output_offset=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},listBusIODescriptions:async(r,t={})=>{h("listBusIODescriptions","cell",r);const a="/cells/{cell}/bus-ios/ios/description".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listModbusIOs:async(r,t={})=>{h("listModbusIOs","cell",r);const a="/cells/{cell}/bus-ios/modbus/ios".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listProfinetIOs:async(r,t={})=>{h("listProfinetIOs","cell",r);const a="/cells/{cell}/bus-ios/profinet/ios".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},setBusIOValues:async(r,t,a={})=>{h("setBusIOValues","cell",r),h("setBusIOValues","iOValue",t);const s="/cells/{cell}/bus-ios/ios/values".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"PUT",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}},setProfinetIOsFromFile:async(r,t,a={})=>{h("setProfinetIOsFromFile","cell",r),h("setProfinetIOsFromFile","profinetInputOutputConfig",t);const s="/cells/{cell}/bus-ios/profinet/iofile".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"PUT",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}}}},H=function(e){const r=Dt(e);return{async addBusIOService(t,a,s,n){var c,p;const o=await r.addBusIOService(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["BUSInputsOutputsApi.addBusIOService"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async addModbusIO(t,a,s,n){var c,p;const o=await r.addModbusIO(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["BUSInputsOutputsApi.addModbusIO"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async addProfinetIO(t,a,s,n){var c,p;const o=await r.addProfinetIO(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["BUSInputsOutputsApi.addProfinetIO"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async clearBusIOService(t,a,s){var i,c;const n=await r.clearBusIOService(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["BUSInputsOutputsApi.clearBusIOService"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deleteAllModbusIOs(t,a){var l,i;const s=await r.deleteAllModbusIOs(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.deleteAllModbusIOs"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async deleteAllProfinetIOs(t,a){var l,i;const s=await r.deleteAllProfinetIOs(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.deleteAllProfinetIOs"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async deleteModbusIO(t,a,s){var i,c;const n=await r.deleteModbusIO(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["BUSInputsOutputsApi.deleteModbusIO"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deleteProfinetIO(t,a,s){var i,c;const n=await r.deleteProfinetIO(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["BUSInputsOutputsApi.deleteProfinetIO"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getBusIOService(t,a){var l,i;const s=await r.getBusIOService(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.getBusIOService"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getBusIOState(t,a){var l,i;const s=await r.getBusIOState(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.getBusIOState"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getBusIOValues(t,a,s){var i,c;const n=await r.getBusIOValues(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["BUSInputsOutputsApi.getBusIOValues"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getProfinetDescription(t,a){var l,i;const s=await r.getProfinetDescription(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.getProfinetDescription"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getProfinetGSDML(t,a){var l,i;const s=await r.getProfinetGSDML(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.getProfinetGSDML"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getProfinetIOsFromFile(t,a,s,n){var c,p;const o=await r.getProfinetIOsFromFile(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["BUSInputsOutputsApi.getProfinetIOsFromFile"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async listBusIODescriptions(t,a){var l,i;const s=await r.listBusIODescriptions(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.listBusIODescriptions"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listModbusIOs(t,a){var l,i;const s=await r.listModbusIOs(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.listModbusIOs"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listProfinetIOs(t,a){var l,i;const s=await r.listProfinetIOs(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["BUSInputsOutputsApi.listProfinetIOs"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async setBusIOValues(t,a,s){var i,c;const n=await r.setBusIOValues(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["BUSInputsOutputsApi.setBusIOValues"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async setProfinetIOsFromFile(t,a,s){var i,c;const n=await r.setProfinetIOsFromFile(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["BUSInputsOutputsApi.setProfinetIOsFromFile"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)}}};var qt=class extends Q{addBusIOService(e,r,t,a){return H(this.configuration).addBusIOService(e,r,t,a).then(s=>s(this.axios,this.basePath))}addModbusIO(e,r,t,a){return H(this.configuration).addModbusIO(e,r,t,a).then(s=>s(this.axios,this.basePath))}addProfinetIO(e,r,t,a){return H(this.configuration).addProfinetIO(e,r,t,a).then(s=>s(this.axios,this.basePath))}clearBusIOService(e,r,t){return H(this.configuration).clearBusIOService(e,r,t).then(a=>a(this.axios,this.basePath))}deleteAllModbusIOs(e,r){return H(this.configuration).deleteAllModbusIOs(e,r).then(t=>t(this.axios,this.basePath))}deleteAllProfinetIOs(e,r){return H(this.configuration).deleteAllProfinetIOs(e,r).then(t=>t(this.axios,this.basePath))}deleteModbusIO(e,r,t){return H(this.configuration).deleteModbusIO(e,r,t).then(a=>a(this.axios,this.basePath))}deleteProfinetIO(e,r,t){return H(this.configuration).deleteProfinetIO(e,r,t).then(a=>a(this.axios,this.basePath))}getBusIOService(e,r){return H(this.configuration).getBusIOService(e,r).then(t=>t(this.axios,this.basePath))}getBusIOState(e,r){return H(this.configuration).getBusIOState(e,r).then(t=>t(this.axios,this.basePath))}getBusIOValues(e,r,t){return H(this.configuration).getBusIOValues(e,r,t).then(a=>a(this.axios,this.basePath))}getProfinetDescription(e,r){return H(this.configuration).getProfinetDescription(e,r).then(t=>t(this.axios,this.basePath))}getProfinetGSDML(e,r){return H(this.configuration).getProfinetGSDML(e,r).then(t=>t(this.axios,this.basePath))}getProfinetIOsFromFile(e,r,t,a){return H(this.configuration).getProfinetIOsFromFile(e,r,t,a).then(s=>s(this.axios,this.basePath))}listBusIODescriptions(e,r){return H(this.configuration).listBusIODescriptions(e,r).then(t=>t(this.axios,this.basePath))}listModbusIOs(e,r){return H(this.configuration).listModbusIOs(e,r).then(t=>t(this.axios,this.basePath))}listProfinetIOs(e,r){return H(this.configuration).listProfinetIOs(e,r).then(t=>t(this.axios,this.basePath))}setBusIOValues(e,r,t){return H(this.configuration).setBusIOValues(e,r,t).then(a=>a(this.axios,this.basePath))}setProfinetIOsFromFile(e,r,t){return H(this.configuration).setProfinetIOsFromFile(e,r,t).then(a=>a(this.axios,this.basePath))}};const Nt=function(e){return{checkCellVersionUpdate:async(r,t,a={})=>{h("checkCellVersionUpdate","cell",r),h("checkCellVersionUpdate","channel",t);const s="/cells/{cell}/update".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),t!==void 0&&(c.channel=t),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deleteCell:async(r,t,a={})=>{h("deleteCell","cell",r);const s="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),t!==void 0&&(c.completion_timeout=t),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deployCell:async(r,t,a={})=>{h("deployCell","cell",r);const s=new URL("/cells",S);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},l={},i={};await b(l,e),t!==void 0&&(i.completion_timeout=t),l["Content-Type"]="application/json",C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...a.headers},o.data=E(r,o,e),{url:y(s),options:o}},getCell:async(r,t={})=>{h("getCell","cell",r);const a="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},getCellStatus:async(r,t={})=>{h("getCellStatus","cell",r);const a="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listCells:async(r={})=>{const t=new URL("/cells",S);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},n={},o={};await b(n,e),C(t,o);let l=a&&a.headers?a.headers:{};return s.headers={...n,...l,...r.headers},{url:y(t),options:s}},setCellStatus:async(r,t,a={})=>{h("setCellStatus","cell",r),h("setCellStatus","operatingState",t);const s="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"PUT",...o,...a},i={},c={};await b(i,e),t!==void 0&&(c.operating_state=t),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},updateCell:async(r,t,a,s={})=>{h("updateCell","cell",r),h("updateCell","cell2",t);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.completion_timeout=a),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(t,i,e),{url:y(o),options:i}},updateCellVersion:async(r,t,a={})=>{h("updateCellVersion","cell",r),h("updateCellVersion","updateCellVersionRequest",t);const s="/cells/{cell}/update".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"PUT",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}}}},re=function(e){const r=Nt(e);return{async checkCellVersionUpdate(t,a,s){var i,c;const n=await r.checkCellVersionUpdate(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["CellApi.checkCellVersionUpdate"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deleteCell(t,a,s){var i,c;const n=await r.deleteCell(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["CellApi.deleteCell"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deployCell(t,a,s){var i,c;const n=await r.deployCell(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["CellApi.deployCell"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getCell(t,a){var l,i;const s=await r.getCell(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["CellApi.getCell"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getCellStatus(t,a){var l,i;const s=await r.getCellStatus(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["CellApi.getCellStatus"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listCells(t){var o,l;const a=await r.listCells(t),s=(e==null?void 0:e.serverIndex)??0,n=(l=(o=V["CellApi.listCells"])==null?void 0:o[s])==null?void 0:l.url;return(i,c)=>P(a,m,O,e)(i,n||c)},async setCellStatus(t,a,s){var i,c;const n=await r.setCellStatus(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["CellApi.setCellStatus"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async updateCell(t,a,s,n){var c,p;const o=await r.updateCell(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["CellApi.updateCell"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async updateCellVersion(t,a,s){var i,c;const n=await r.updateCellVersion(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["CellApi.updateCellVersion"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)}}};var Ht=class extends Q{checkCellVersionUpdate(e,r,t){return re(this.configuration).checkCellVersionUpdate(e,r,t).then(a=>a(this.axios,this.basePath))}deleteCell(e,r,t){return re(this.configuration).deleteCell(e,r,t).then(a=>a(this.axios,this.basePath))}deployCell(e,r,t){return re(this.configuration).deployCell(e,r,t).then(a=>a(this.axios,this.basePath))}getCell(e,r){return re(this.configuration).getCell(e,r).then(t=>t(this.axios,this.basePath))}getCellStatus(e,r){return re(this.configuration).getCellStatus(e,r).then(t=>t(this.axios,this.basePath))}listCells(e){return re(this.configuration).listCells(e).then(r=>r(this.axios,this.basePath))}setCellStatus(e,r,t){return re(this.configuration).setCellStatus(e,r,t).then(a=>a(this.axios,this.basePath))}updateCell(e,r,t,a){return re(this.configuration).updateCell(e,r,t,a).then(s=>s(this.axios,this.basePath))}updateCellVersion(e,r,t){return re(this.configuration).updateCellVersion(e,r,t).then(a=>a(this.axios,this.basePath))}};const Qt=function(e){return{addRobotController:async(r,t,a,s={})=>{h("addRobotController","cell",r),h("addRobotController","robotController",t);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"POST",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.completion_timeout=a),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(t,i,e),{url:y(o),options:i}},clearRobotControllers:async(r,t,a={})=>{h("clearRobotControllers","cell",r);const s="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),t!==void 0&&(c.completion_timeout=t),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deleteRobotController:async(r,t,a,s={})=>{h("deleteRobotController","cell",r),h("deleteRobotController","controller",t);const n="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"DELETE",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.completion_timeout=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},getControllerDescription:async(r,t,a={})=>{h("getControllerDescription","cell",r),h("getControllerDescription","controller",t);const s="/cells/{cell}/controllers/{controller}/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getCoordinateSystem:async(r,t,a,s,n={})=>{h("getCoordinateSystem","cell",r),h("getCoordinateSystem","controller",t),h("getCoordinateSystem","coordinateSystem",a);const o="/cells/{cell}/controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(a))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"GET",...i,...n},p={},d={};await b(p,e),s!==void 0&&(d.orientation_type=s),C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},{url:y(l),options:c}},getCurrentRobotControllerState:async(r,t,a={})=>{h("getCurrentRobotControllerState","cell",r),h("getCurrentRobotControllerState","controller",t);const s="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getRobotController:async(r,t,a={})=>{h("getRobotController","cell",r),h("getRobotController","controller",t);const s="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getVirtualControllerConfiguration:async(r,t,a={})=>{h("getVirtualControllerConfiguration","cell",r),h("getVirtualControllerConfiguration","controller",t);const s="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},listCoordinateSystems:async(r,t,a,s={})=>{h("listCoordinateSystems","cell",r),h("listCoordinateSystems","controller",t);const n="/cells/{cell}/controllers/{controller}/coordinate-systems".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.orientation_type=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},listRobotControllers:async(r,t={})=>{h("listRobotControllers","cell",r);const a="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},setDefaultMode:async(r,t,a,s={})=>{h("setDefaultMode","cell",r),h("setDefaultMode","controller",t),h("setDefaultMode","mode",a);const n="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.mode=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},streamFreeDrive:async(r,t,a,s={})=>{h("streamFreeDrive","cell",r),h("streamFreeDrive","controller",t);const n="/cells/{cell}/controllers/{controller}/free-drive-stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.response_rate=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},streamRobotControllerState:async(r,t,a,s,n={})=>{h("streamRobotControllerState","cell",r),h("streamRobotControllerState","controller",t);const o="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"GET",...i,...n},p={},d={};await b(p,e),a!==void 0&&(d.response_rate=a),s!==void 0&&(d.add_controller_timeout=s),C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},{url:y(l),options:c}},updateRobotController:async(r,t,a,s,n={})=>{h("updateRobotController","cell",r),h("updateRobotController","controller",t),h("updateRobotController","robotController",a);const o="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"PUT",...i,...n},p={},d={};await b(p,e),s!==void 0&&(d.completion_timeout=s),p["Content-Type"]="application/json",C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},c.data=E(a,c,e),{url:y(l),options:c}}}},W=function(e){const r=Qt(e);return{async addRobotController(t,a,s,n){var c,p;const o=await r.addRobotController(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerApi.addRobotController"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async clearRobotControllers(t,a,s){var i,c;const n=await r.clearRobotControllers(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["ControllerApi.clearRobotControllers"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deleteRobotController(t,a,s,n){var c,p;const o=await r.deleteRobotController(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerApi.deleteRobotController"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async getControllerDescription(t,a,s){var i,c;const n=await r.getControllerDescription(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["ControllerApi.getControllerDescription"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getCoordinateSystem(t,a,s,n,o){var p,d;const l=await r.getCoordinateSystem(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["ControllerApi.getCoordinateSystem"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)},async getCurrentRobotControllerState(t,a,s){var i,c;const n=await r.getCurrentRobotControllerState(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["ControllerApi.getCurrentRobotControllerState"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getRobotController(t,a,s){var i,c;const n=await r.getRobotController(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["ControllerApi.getRobotController"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getVirtualControllerConfiguration(t,a,s){var i,c;const n=await r.getVirtualControllerConfiguration(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["ControllerApi.getVirtualControllerConfiguration"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async listCoordinateSystems(t,a,s,n){var c,p;const o=await r.listCoordinateSystems(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerApi.listCoordinateSystems"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async listRobotControllers(t,a){var l,i;const s=await r.listRobotControllers(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["ControllerApi.listRobotControllers"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async setDefaultMode(t,a,s,n){var c,p;const o=await r.setDefaultMode(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerApi.setDefaultMode"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async streamFreeDrive(t,a,s,n){var c,p;const o=await r.streamFreeDrive(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerApi.streamFreeDrive"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async streamRobotControllerState(t,a,s,n,o){var p,d;const l=await r.streamRobotControllerState(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["ControllerApi.streamRobotControllerState"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)},async updateRobotController(t,a,s,n,o){var p,d;const l=await r.updateRobotController(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["ControllerApi.updateRobotController"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)}}};var Jt=class extends Q{addRobotController(e,r,t,a){return W(this.configuration).addRobotController(e,r,t,a).then(s=>s(this.axios,this.basePath))}clearRobotControllers(e,r,t){return W(this.configuration).clearRobotControllers(e,r,t).then(a=>a(this.axios,this.basePath))}deleteRobotController(e,r,t,a){return W(this.configuration).deleteRobotController(e,r,t,a).then(s=>s(this.axios,this.basePath))}getControllerDescription(e,r,t){return W(this.configuration).getControllerDescription(e,r,t).then(a=>a(this.axios,this.basePath))}getCoordinateSystem(e,r,t,a,s){return W(this.configuration).getCoordinateSystem(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}getCurrentRobotControllerState(e,r,t){return W(this.configuration).getCurrentRobotControllerState(e,r,t).then(a=>a(this.axios,this.basePath))}getRobotController(e,r,t){return W(this.configuration).getRobotController(e,r,t).then(a=>a(this.axios,this.basePath))}getVirtualControllerConfiguration(e,r,t){return W(this.configuration).getVirtualControllerConfiguration(e,r,t).then(a=>a(this.axios,this.basePath))}listCoordinateSystems(e,r,t,a){return W(this.configuration).listCoordinateSystems(e,r,t,a).then(s=>s(this.axios,this.basePath))}listRobotControllers(e,r){return W(this.configuration).listRobotControllers(e,r).then(t=>t(this.axios,this.basePath))}setDefaultMode(e,r,t,a){return W(this.configuration).setDefaultMode(e,r,t,a).then(s=>s(this.axios,this.basePath))}streamFreeDrive(e,r,t,a){return W(this.configuration).streamFreeDrive(e,r,t,a).then(s=>s(this.axios,this.basePath))}streamRobotControllerState(e,r,t,a,s){return W(this.configuration).streamRobotControllerState(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}updateRobotController(e,r,t,a,s){return W(this.configuration).updateRobotController(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}};const $t=function(e){return{listIODescriptions:async(r,t,a,s,n,o,l={})=>{h("listIODescriptions","cell",r),h("listIODescriptions","controller",t);const i="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),c=new URL(i,S);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...l},u={},I={};await b(u,e),a&&(I.ios=a),s!==void 0&&(I.direction=s),n!==void 0&&(I.value_type=n),o!==void 0&&(I.group=o),C(c,I);let M=p&&p.headers?p.headers:{};return d.headers={...u,...M,...l.headers},{url:y(c),options:d}},listIOValues:async(r,t,a,s={})=>{h("listIOValues","cell",r),h("listIOValues","controller",t);const n="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),a&&(p.ios=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},setOutputValues:async(r,t,a,s={})=>{h("setOutputValues","cell",r),h("setOutputValues","controller",t),h("setOutputValues","iOValue",a);const n="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},streamIOValues:async(r,t,a,s={})=>{h("streamIOValues","cell",r),h("streamIOValues","controller",t);const n="/cells/{cell}/controllers/{controller}/ios/stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),a&&(p.ios=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},waitForIOEvent:async(r,t,a,s={})=>{h("waitForIOEvent","cell",r),h("waitForIOEvent","controller",t),h("waitForIOEvent","waitForIOEventRequest",a);const n="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"POST",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}}}},ue=function(e){const r=$t(e);return{async listIODescriptions(t,a,s,n,o,l,i){var u,I;const c=await r.listIODescriptions(t,a,s,n,o,l,i),p=(e==null?void 0:e.serverIndex)??0,d=(I=(u=V["ControllerInputsOutputsApi.listIODescriptions"])==null?void 0:u[p])==null?void 0:I.url;return(M,X)=>P(c,m,O,e)(M,d||X)},async listIOValues(t,a,s,n){var c,p;const o=await r.listIOValues(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerInputsOutputsApi.listIOValues"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async setOutputValues(t,a,s,n){var c,p;const o=await r.setOutputValues(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerInputsOutputsApi.setOutputValues"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async streamIOValues(t,a,s,n){var c,p;const o=await r.streamIOValues(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerInputsOutputsApi.streamIOValues"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async waitForIOEvent(t,a,s,n){var c,p;const o=await r.waitForIOEvent(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["ControllerInputsOutputsApi.waitForIOEvent"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)}}};var ft=class extends Q{listIODescriptions(e,r,t,a,s,n,o){return ue(this.configuration).listIODescriptions(e,r,t,a,s,n,o).then(l=>l(this.axios,this.basePath))}listIOValues(e,r,t,a){return ue(this.configuration).listIOValues(e,r,t,a).then(s=>s(this.axios,this.basePath))}setOutputValues(e,r,t,a){return ue(this.configuration).setOutputValues(e,r,t,a).then(s=>s(this.axios,this.basePath))}streamIOValues(e,r,t,a){return ue(this.configuration).streamIOValues(e,r,t,a).then(s=>s(this.axios,this.basePath))}waitForIOEvent(e,r,t,a){return ue(this.configuration).waitForIOEvent(e,r,t,a).then(s=>s(this.axios,this.basePath))}};const Kt=function(e){return{executeJogging:async(r,t,a,s={})=>{h("executeJogging","cell",r),h("executeJogging","controller",t),h("executeJogging","executeJoggingRequest",a);const n="/cells/{cell}/controllers/{controller}/execution/jogging".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}}}},Wt=function(e){const r=Kt(e);return{async executeJogging(t,a,s,n){var c,p;const o=await r.executeJogging(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["JoggingApi.executeJogging"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)}}};var zt=class extends Q{executeJogging(e,r,t,a){return Wt(this.configuration).executeJogging(e,r,t,a).then(s=>s(this.axios,this.basePath))}};const Yt=function(e){return{forwardKinematics:async(r,t,a={})=>{h("forwardKinematics","cell",r),h("forwardKinematics","forwardKinematicsRequest",t);const s="/cells/{cell}/kinematic/forward".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}},inverseKinematics:async(r,t,a={})=>{h("inverseKinematics","cell",r),h("inverseKinematics","inverseKinematicsRequest",t);const s="/cells/{cell}/kinematic/inverse".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}},projectJointPositionDirectionConstraint:async(r,t,a={})=>{h("projectJointPositionDirectionConstraint","cell",r),h("projectJointPositionDirectionConstraint","projectJointPositionDirectionConstraintRequest",t);const s="/experimental/cells/{cell}/kinematic/project-joint-position-direction-constraint".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}}}},_e=function(e){const r=Yt(e);return{async forwardKinematics(t,a,s){var i,c;const n=await r.forwardKinematics(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["KinematicsApi.forwardKinematics"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async inverseKinematics(t,a,s){var i,c;const n=await r.inverseKinematics(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["KinematicsApi.inverseKinematics"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async projectJointPositionDirectionConstraint(t,a,s){var i,c;const n=await r.projectJointPositionDirectionConstraint(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["KinematicsApi.projectJointPositionDirectionConstraint"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)}}};var Zt=class extends Q{forwardKinematics(e,r,t){return _e(this.configuration).forwardKinematics(e,r,t).then(a=>a(this.axios,this.basePath))}inverseKinematics(e,r,t){return _e(this.configuration).inverseKinematics(e,r,t).then(a=>a(this.axios,this.basePath))}projectJointPositionDirectionConstraint(e,r,t){return _e(this.configuration).projectJointPositionDirectionConstraint(e,r,t).then(a=>a(this.axios,this.basePath))}};const Xt=function(e){return{getCurrentMotionGroupState:async(r,t,a,s,n={})=>{h("getCurrentMotionGroupState","cell",r),h("getCurrentMotionGroupState","controller",t),h("getCurrentMotionGroupState","motionGroup",a);const o="/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"GET",...i,...n},p={},d={};await b(p,e),s!==void 0&&(d.response_coordinate_system=s),C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},{url:y(l),options:c}},getMotionGroupDescription:async(r,t,a,s={})=>{h("getMotionGroupDescription","cell",r),h("getMotionGroupDescription","controller",t),h("getMotionGroupDescription","motionGroup",a);const n="/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},streamMotionGroupState:async(r,t,a,s,n,o={})=>{h("streamMotionGroupState","cell",r),h("streamMotionGroupState","controller",t),h("streamMotionGroupState","motionGroup",a);const l="/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state-stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),i=new URL(l,S);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={},u={};await b(d,e),s!==void 0&&(u.response_rate=s),n!==void 0&&(u.response_coordinate_system=n),C(i,u);let I=c&&c.headers?c.headers:{};return p.headers={...d,...I,...o.headers},{url:y(i),options:p}}}},je=function(e){const r=Xt(e);return{async getCurrentMotionGroupState(t,a,s,n,o){var p,d;const l=await r.getCurrentMotionGroupState(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["MotionGroupApi.getCurrentMotionGroupState"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)},async getMotionGroupDescription(t,a,s,n){var c,p;const o=await r.getMotionGroupDescription(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["MotionGroupApi.getMotionGroupDescription"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async streamMotionGroupState(t,a,s,n,o,l){var d,u;const i=await r.streamMotionGroupState(t,a,s,n,o,l),c=(e==null?void 0:e.serverIndex)??0,p=(u=(d=V["MotionGroupApi.streamMotionGroupState"])==null?void 0:d[c])==null?void 0:u.url;return(I,M)=>P(i,m,O,e)(I,p||M)}}};var er=class extends Q{getCurrentMotionGroupState(e,r,t,a,s){return je(this.configuration).getCurrentMotionGroupState(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}getMotionGroupDescription(e,r,t,a){return je(this.configuration).getMotionGroupDescription(e,r,t,a).then(s=>s(this.axios,this.basePath))}streamMotionGroupState(e,r,t,a,s,n){return je(this.configuration).streamMotionGroupState(e,r,t,a,s,n).then(o=>o(this.axios,this.basePath))}};const tr=function(e){return{getMotionGroupCollisionModel:async(r,t={})=>{h("getMotionGroupCollisionModel","motionGroupModel",r);const a="/motion-group-models/{motion-group-model}/collision".replace("{motion-group-model}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},getMotionGroupGlbModel:async(r,t={})=>{h("getMotionGroupGlbModel","motionGroupModel",r);const a="/motion-group-models/{motion-group-model}/glb".replace("{motion-group-model}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},getMotionGroupKinematicModel:async(r,t={})=>{h("getMotionGroupKinematicModel","motionGroupModel",r);const a="/motion-group-models/{motion-group-model}/kinematic".replace("{motion-group-model}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},getMotionGroupModels:async(r={})=>{const t=new URL("/motion-group-models",S);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},n={},o={};await b(n,e),C(t,o);let l=a&&a.headers?a.headers:{};return s.headers={...n,...l,...r.headers},{url:y(t),options:s}},getMotionGroupUsdModel:async(r,t={})=>{h("getMotionGroupUsdModel","motionGroupModel",r);const a="/motion-group-models/{motion-group-model}/usd".replace("{motion-group-model}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}}}},me=function(e){const r=tr(e);return{async getMotionGroupCollisionModel(t,a){var l,i;const s=await r.getMotionGroupCollisionModel(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["MotionGroupModelsApi.getMotionGroupCollisionModel"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getMotionGroupGlbModel(t,a){var l,i;const s=await r.getMotionGroupGlbModel(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["MotionGroupModelsApi.getMotionGroupGlbModel"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getMotionGroupKinematicModel(t,a){var l,i;const s=await r.getMotionGroupKinematicModel(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["MotionGroupModelsApi.getMotionGroupKinematicModel"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getMotionGroupModels(t){var o,l;const a=await r.getMotionGroupModels(t),s=(e==null?void 0:e.serverIndex)??0,n=(l=(o=V["MotionGroupModelsApi.getMotionGroupModels"])==null?void 0:o[s])==null?void 0:l.url;return(i,c)=>P(a,m,O,e)(i,n||c)},async getMotionGroupUsdModel(t,a){var l,i;const s=await r.getMotionGroupUsdModel(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["MotionGroupModelsApi.getMotionGroupUsdModel"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)}}};var rr=class extends Q{getMotionGroupCollisionModel(e,r){return me(this.configuration).getMotionGroupCollisionModel(e,r).then(t=>t(this.axios,this.basePath))}getMotionGroupGlbModel(e,r){return me(this.configuration).getMotionGroupGlbModel(e,r).then(t=>t(this.axios,this.basePath))}getMotionGroupKinematicModel(e,r){return me(this.configuration).getMotionGroupKinematicModel(e,r).then(t=>t(this.axios,this.basePath))}getMotionGroupModels(e){return me(this.configuration).getMotionGroupModels(e).then(r=>r(this.axios,this.basePath))}getMotionGroupUsdModel(e,r){return me(this.configuration).getMotionGroupUsdModel(e,r).then(t=>t(this.axios,this.basePath))}};const ar=function(e){return{deleteStoredCollider:async(r,t,a={})=>{h("deleteStoredCollider","cell",r),h("deleteStoredCollider","collider",t);const s="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(r))).replace("{collider}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deleteStoredCollisionLinkChain:async(r,t,a={})=>{h("deleteStoredCollisionLinkChain","cell",r),h("deleteStoredCollisionLinkChain","linkChain",t);const s="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(r))).replace("{link-chain}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deleteStoredCollisionTool:async(r,t,a={})=>{h("deleteStoredCollisionTool","cell",r),h("deleteStoredCollisionTool","tool",t);const s="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(r))).replace("{tool}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getStoredCollider:async(r,t,a={})=>{h("getStoredCollider","cell",r),h("getStoredCollider","collider",t);const s="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(r))).replace("{collider}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getStoredCollisionLinkChain:async(r,t,a={})=>{h("getStoredCollisionLinkChain","cell",r),h("getStoredCollisionLinkChain","linkChain",t);const s="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(r))).replace("{link-chain}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getStoredCollisionTool:async(r,t,a={})=>{h("getStoredCollisionTool","cell",r),h("getStoredCollisionTool","tool",t);const s="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(r))).replace("{tool}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},listCollisionLinkChains:async(r,t={})=>{h("listCollisionLinkChains","cell",r);const a="/cells/{cell}/store/collision/link-chains".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listCollisionLinkChainsKeys:async(r,t={})=>{h("listCollisionLinkChainsKeys","cell",r);const a="/cells/{cell}/store/collision/link-chains-keys".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listStoredColliders:async(r,t={})=>{h("listStoredColliders","cell",r);const a="/cells/{cell}/store/collision/colliders".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listStoredCollidersKeys:async(r,t={})=>{h("listStoredCollidersKeys","cell",r);const a="/cells/{cell}/store/collision/colliders-keys".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listStoredCollisionTools:async(r,t={})=>{h("listStoredCollisionTools","cell",r);const a="/cells/{cell}/store/collision/tools".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listStoredCollisionToolsKeys:async(r,t={})=>{h("listStoredCollisionToolsKeys","cell",r);const a="/cells/{cell}/store/collision/tools-keys".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},storeCollider:async(r,t,a,s={})=>{h("storeCollider","cell",r),h("storeCollider","collider",t),h("storeCollider","collider2",a);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(r))).replace("{collider}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},storeCollisionLinkChain:async(r,t,a,s={})=>{h("storeCollisionLinkChain","cell",r),h("storeCollisionLinkChain","linkChain",t),h("storeCollisionLinkChain","collider",a);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(r))).replace("{link-chain}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},storeCollisionTool:async(r,t,a,s={})=>{h("storeCollisionTool","cell",r),h("storeCollisionTool","tool",t),h("storeCollisionTool","requestBody",a);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(r))).replace("{tool}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}}}},K=function(e){const r=ar(e);return{async deleteStoredCollider(t,a,s){var i,c;const n=await r.deleteStoredCollider(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreCollisionComponentsApi.deleteStoredCollider"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deleteStoredCollisionLinkChain(t,a,s){var i,c;const n=await r.deleteStoredCollisionLinkChain(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreCollisionComponentsApi.deleteStoredCollisionLinkChain"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deleteStoredCollisionTool(t,a,s){var i,c;const n=await r.deleteStoredCollisionTool(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreCollisionComponentsApi.deleteStoredCollisionTool"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getStoredCollider(t,a,s){var i,c;const n=await r.getStoredCollider(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreCollisionComponentsApi.getStoredCollider"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getStoredCollisionLinkChain(t,a,s){var i,c;const n=await r.getStoredCollisionLinkChain(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreCollisionComponentsApi.getStoredCollisionLinkChain"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getStoredCollisionTool(t,a,s){var i,c;const n=await r.getStoredCollisionTool(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreCollisionComponentsApi.getStoredCollisionTool"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async listCollisionLinkChains(t,a){var l,i;const s=await r.listCollisionLinkChains(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreCollisionComponentsApi.listCollisionLinkChains"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listCollisionLinkChainsKeys(t,a){var l,i;const s=await r.listCollisionLinkChainsKeys(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreCollisionComponentsApi.listCollisionLinkChainsKeys"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listStoredColliders(t,a){var l,i;const s=await r.listStoredColliders(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreCollisionComponentsApi.listStoredColliders"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listStoredCollidersKeys(t,a){var l,i;const s=await r.listStoredCollidersKeys(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreCollisionComponentsApi.listStoredCollidersKeys"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listStoredCollisionTools(t,a){var l,i;const s=await r.listStoredCollisionTools(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreCollisionComponentsApi.listStoredCollisionTools"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listStoredCollisionToolsKeys(t,a){var l,i;const s=await r.listStoredCollisionToolsKeys(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreCollisionComponentsApi.listStoredCollisionToolsKeys"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async storeCollider(t,a,s,n){var c,p;const o=await r.storeCollider(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["StoreCollisionComponentsApi.storeCollider"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async storeCollisionLinkChain(t,a,s,n){var c,p;const o=await r.storeCollisionLinkChain(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["StoreCollisionComponentsApi.storeCollisionLinkChain"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async storeCollisionTool(t,a,s,n){var c,p;const o=await r.storeCollisionTool(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["StoreCollisionComponentsApi.storeCollisionTool"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)}}};var sr=class extends Q{deleteStoredCollider(e,r,t){return K(this.configuration).deleteStoredCollider(e,r,t).then(a=>a(this.axios,this.basePath))}deleteStoredCollisionLinkChain(e,r,t){return K(this.configuration).deleteStoredCollisionLinkChain(e,r,t).then(a=>a(this.axios,this.basePath))}deleteStoredCollisionTool(e,r,t){return K(this.configuration).deleteStoredCollisionTool(e,r,t).then(a=>a(this.axios,this.basePath))}getStoredCollider(e,r,t){return K(this.configuration).getStoredCollider(e,r,t).then(a=>a(this.axios,this.basePath))}getStoredCollisionLinkChain(e,r,t){return K(this.configuration).getStoredCollisionLinkChain(e,r,t).then(a=>a(this.axios,this.basePath))}getStoredCollisionTool(e,r,t){return K(this.configuration).getStoredCollisionTool(e,r,t).then(a=>a(this.axios,this.basePath))}listCollisionLinkChains(e,r){return K(this.configuration).listCollisionLinkChains(e,r).then(t=>t(this.axios,this.basePath))}listCollisionLinkChainsKeys(e,r){return K(this.configuration).listCollisionLinkChainsKeys(e,r).then(t=>t(this.axios,this.basePath))}listStoredColliders(e,r){return K(this.configuration).listStoredColliders(e,r).then(t=>t(this.axios,this.basePath))}listStoredCollidersKeys(e,r){return K(this.configuration).listStoredCollidersKeys(e,r).then(t=>t(this.axios,this.basePath))}listStoredCollisionTools(e,r){return K(this.configuration).listStoredCollisionTools(e,r).then(t=>t(this.axios,this.basePath))}listStoredCollisionToolsKeys(e,r){return K(this.configuration).listStoredCollisionToolsKeys(e,r).then(t=>t(this.axios,this.basePath))}storeCollider(e,r,t,a){return K(this.configuration).storeCollider(e,r,t,a).then(s=>s(this.axios,this.basePath))}storeCollisionLinkChain(e,r,t,a){return K(this.configuration).storeCollisionLinkChain(e,r,t,a).then(s=>s(this.axios,this.basePath))}storeCollisionTool(e,r,t,a){return K(this.configuration).storeCollisionTool(e,r,t,a).then(s=>s(this.axios,this.basePath))}};const or=function(e){return{deleteStoredCollisionSetup:async(r,t,a={})=>{h("deleteStoredCollisionSetup","cell",r),h("deleteStoredCollisionSetup","setup",t);const s="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(r))).replace("{setup}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getStoredCollisionSetup:async(r,t,a={})=>{h("getStoredCollisionSetup","cell",r),h("getStoredCollisionSetup","setup",t);const s="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(r))).replace("{setup}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},listStoredCollisionSetups:async(r,t={})=>{h("listStoredCollisionSetups","cell",r);const a="/cells/{cell}/store/collision/setups".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},listStoredCollisionSetupsKeys:async(r,t={})=>{h("listStoredCollisionSetupsKeys","cell",r);const a="/cells/{cell}/store/collision/setups-keys".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},storeCollisionSetup:async(r,t,a,s={})=>{h("storeCollisionSetup","cell",r),h("storeCollisionSetup","setup",t),h("storeCollisionSetup","collisionSetup",a);const n="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(r))).replace("{setup}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}}}},Oe=function(e){const r=or(e);return{async deleteStoredCollisionSetup(t,a,s){var i,c;const n=await r.deleteStoredCollisionSetup(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreCollisionSetupsApi.deleteStoredCollisionSetup"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getStoredCollisionSetup(t,a,s){var i,c;const n=await r.getStoredCollisionSetup(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreCollisionSetupsApi.getStoredCollisionSetup"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async listStoredCollisionSetups(t,a){var l,i;const s=await r.listStoredCollisionSetups(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreCollisionSetupsApi.listStoredCollisionSetups"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async listStoredCollisionSetupsKeys(t,a){var l,i;const s=await r.listStoredCollisionSetupsKeys(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreCollisionSetupsApi.listStoredCollisionSetupsKeys"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async storeCollisionSetup(t,a,s,n){var c,p;const o=await r.storeCollisionSetup(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["StoreCollisionSetupsApi.storeCollisionSetup"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)}}};var lr=class extends Q{deleteStoredCollisionSetup(e,r,t){return Oe(this.configuration).deleteStoredCollisionSetup(e,r,t).then(a=>a(this.axios,this.basePath))}getStoredCollisionSetup(e,r,t){return Oe(this.configuration).getStoredCollisionSetup(e,r,t).then(a=>a(this.axios,this.basePath))}listStoredCollisionSetups(e,r){return Oe(this.configuration).listStoredCollisionSetups(e,r).then(t=>t(this.axios,this.basePath))}listStoredCollisionSetupsKeys(e,r){return Oe(this.configuration).listStoredCollisionSetupsKeys(e,r).then(t=>t(this.axios,this.basePath))}storeCollisionSetup(e,r,t,a){return Oe(this.configuration).storeCollisionSetup(e,r,t,a).then(s=>s(this.axios,this.basePath))}};const nr=function(e){return{clearAllObjects:async(r,t={})=>{h("clearAllObjects","cell",r);const a="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},deleteObject:async(r,t,a={})=>{h("deleteObject","cell",r),h("deleteObject","key",t);const s="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(r))).replace("{key}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getObject:async(r,t,a={})=>{h("getObject","cell",r),h("getObject","key",t);const s="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(r))).replace("{key}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getObjectMetadata:async(r,t,a={})=>{h("getObjectMetadata","cell",r),h("getObjectMetadata","key",t);const s="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(r))).replace("{key}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"HEAD",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},listAllObjectKeys:async(r,t={})=>{h("listAllObjectKeys","cell",r);const a="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(r))),s=new URL(a,S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...t},l={},i={};await b(l,e),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...t.headers},{url:y(s),options:o}},storeObject:async(r,t,a,s,n={})=>{h("storeObject","cell",r),h("storeObject","key",t);const o="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(r))).replace("{key}",encodeURIComponent(String(t))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"PUT",...i,...n},p={},d={},u=new(e&&e.formDataCtor||FormData);await b(p,e),s!==void 0&&u.append("any_value",new Blob([JSON.stringify(s)],{type:"application/json"})),p["Content-Type"]="multipart/form-data",a!=null&&(p["X-Metadata"]=typeof a=="string"?a:JSON.stringify(a)),C(l,d);let I=i&&i.headers?i.headers:{};return c.headers={...p,...I,...n.headers},c.data=u,{url:y(l),options:c}}}},ce=function(e){const r=nr(e);return{async clearAllObjects(t,a){var l,i;const s=await r.clearAllObjects(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreObjectApi.clearAllObjects"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async deleteObject(t,a,s){var i,c;const n=await r.deleteObject(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreObjectApi.deleteObject"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getObject(t,a,s){var i,c;const n=await r.getObject(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreObjectApi.getObject"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getObjectMetadata(t,a,s){var i,c;const n=await r.getObjectMetadata(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["StoreObjectApi.getObjectMetadata"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async listAllObjectKeys(t,a){var l,i;const s=await r.listAllObjectKeys(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["StoreObjectApi.listAllObjectKeys"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async storeObject(t,a,s,n,o){var p,d;const l=await r.storeObject(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["StoreObjectApi.storeObject"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)}}};var ir=class extends Q{clearAllObjects(e,r){return ce(this.configuration).clearAllObjects(e,r).then(t=>t(this.axios,this.basePath))}deleteObject(e,r,t){return ce(this.configuration).deleteObject(e,r,t).then(a=>a(this.axios,this.basePath))}getObject(e,r,t){return ce(this.configuration).getObject(e,r,t).then(a=>a(this.axios,this.basePath))}getObjectMetadata(e,r,t){return ce(this.configuration).getObjectMetadata(e,r,t).then(a=>a(this.axios,this.basePath))}listAllObjectKeys(e,r){return ce(this.configuration).listAllObjectKeys(e,r).then(t=>t(this.axios,this.basePath))}storeObject(e,r,t,a,s){return ce(this.configuration).storeObject(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}};const cr=function(e){return{backupConfiguration:async(r,t,a={})=>{const s=new URL("/system/configuration",S);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},l={},i={};await b(l,e),r&&(i.resources=r.join($e.csv)),t!==void 0&&(i.metadata=t),C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...a.headers},{url:y(s),options:o}},checkNovaVersionUpdate:async(r,t={})=>{h("checkNovaVersionUpdate","channel",r);const a=new URL("/system/update",S);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},l={};await b(o,e),r!==void 0&&(l.channel=r),C(a,l);let i=s&&s.headers?s.headers:{};return n.headers={...o,...i,...t.headers},{url:y(a),options:n}},getArpScan:async(r,t,a,s={})=>{const n=new URL("/experimental/system/network/arp-scan",S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...s},i={},c={};await b(i,e),r!==void 0&&(c.interface=r),t!==void 0&&(c.cidr=t),a!==void 0&&(c.timeout=a),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...s.headers},{url:y(n),options:l}},getConfigurationBackupStatus:async(r,t={})=>{h("getConfigurationBackupStatus","operationId",r);const a=new URL("/system/configuration/status",S);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},l={};await b(o,e),r!==void 0&&(l.operation_id=r),C(a,l);let i=s&&s.headers?s.headers:{};return n.headers={...o,...i,...t.headers},{url:y(a),options:n}},getDiagnosePackage:async(r={})=>{const t=new URL("/system/diagnosis-package/zip",S);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},n={},o={};await b(n,e),C(t,o);let l=a&&a.headers?a.headers:{};return s.headers={...n,...l,...r.headers},{url:y(t),options:s}},getNetworkInterfaces:async(r={})=>{const t=new URL("/experimental/system/network/interfaces",S);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},n={},o={};await b(n,e),C(t,o);let l=a&&a.headers?a.headers:{};return s.headers={...n,...l,...r.headers},{url:y(t),options:s}},getNetworkState:async(r={})=>{const t=new URL("/experimental/system/network/status",S);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},n={},o={};await b(n,e),C(t,o);let l=a&&a.headers?a.headers:{};return s.headers={...n,...l,...r.headers},{url:y(t),options:s}},getSystemStatus:async(r={})=>{const t=new URL("/system/status",S);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},n={},o={};await b(n,e),C(t,o);let l=a&&a.headers?a.headers:{};return s.headers={...n,...l,...r.headers},{url:y(t),options:s}},getSystemVersion:async(r={})=>{const t=new URL("/system/version",S);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},n={},o={};await b(n,e),C(t,o);let l=a&&a.headers?a.headers:{};return s.headers={...n,...l,...r.headers},{url:y(t),options:s}},listConfigurationResources:async(r={})=>{const t=new URL("/system/configuration/resources",S);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},n={},o={};await b(n,e),C(t,o);let l=a&&a.headers?a.headers:{};return s.headers={...n,...l,...r.headers},{url:y(t),options:s}},restoreConfiguration:async(r,t,a={})=>{h("restoreConfiguration","body",r);const s=new URL("/system/configuration",S);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},l={},i={};await b(l,e),t&&(i.resources=t.join($e.csv)),l["Content-Type"]="application/gzip",C(s,i);let c=n&&n.headers?n.headers:{};return o.headers={...l,...c,...a.headers},o.data=E(r,o,e),{url:y(s),options:o}},updateNovaVersion:async(r,t={})=>{h("updateNovaVersion","updateNovaVersionRequest",r);const a=new URL("/system/update",S);let s;e&&(s=e.baseOptions);const n={method:"PUT",...s,...t},o={},l={};await b(o,e),o["Content-Type"]="application/json",C(a,l);let i=s&&s.headers?s.headers:{};return n.headers={...o,...i,...t.headers},n.data=E(r,n,e),{url:y(a),options:n}}}},Z=function(e){const r=cr(e);return{async backupConfiguration(t,a,s){var i,c;const n=await r.backupConfiguration(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["SystemApi.backupConfiguration"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async checkNovaVersionUpdate(t,a){var l,i;const s=await r.checkNovaVersionUpdate(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["SystemApi.checkNovaVersionUpdate"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getArpScan(t,a,s,n){var c,p;const o=await r.getArpScan(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["SystemApi.getArpScan"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async getConfigurationBackupStatus(t,a){var l,i;const s=await r.getConfigurationBackupStatus(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["SystemApi.getConfigurationBackupStatus"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)},async getDiagnosePackage(t){var o,l;const a=await r.getDiagnosePackage(t),s=(e==null?void 0:e.serverIndex)??0,n=(l=(o=V["SystemApi.getDiagnosePackage"])==null?void 0:o[s])==null?void 0:l.url;return(i,c)=>P(a,m,O,e)(i,n||c)},async getNetworkInterfaces(t){var o,l;const a=await r.getNetworkInterfaces(t),s=(e==null?void 0:e.serverIndex)??0,n=(l=(o=V["SystemApi.getNetworkInterfaces"])==null?void 0:o[s])==null?void 0:l.url;return(i,c)=>P(a,m,O,e)(i,n||c)},async getNetworkState(t){var o,l;const a=await r.getNetworkState(t),s=(e==null?void 0:e.serverIndex)??0,n=(l=(o=V["SystemApi.getNetworkState"])==null?void 0:o[s])==null?void 0:l.url;return(i,c)=>P(a,m,O,e)(i,n||c)},async getSystemStatus(t){var o,l;const a=await r.getSystemStatus(t),s=(e==null?void 0:e.serverIndex)??0,n=(l=(o=V["SystemApi.getSystemStatus"])==null?void 0:o[s])==null?void 0:l.url;return(i,c)=>P(a,m,O,e)(i,n||c)},async getSystemVersion(t){var o,l;const a=await r.getSystemVersion(t),s=(e==null?void 0:e.serverIndex)??0,n=(l=(o=V["SystemApi.getSystemVersion"])==null?void 0:o[s])==null?void 0:l.url;return(i,c)=>P(a,m,O,e)(i,n||c)},async listConfigurationResources(t){var o,l;const a=await r.listConfigurationResources(t),s=(e==null?void 0:e.serverIndex)??0,n=(l=(o=V["SystemApi.listConfigurationResources"])==null?void 0:o[s])==null?void 0:l.url;return(i,c)=>P(a,m,O,e)(i,n||c)},async restoreConfiguration(t,a,s){var i,c;const n=await r.restoreConfiguration(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["SystemApi.restoreConfiguration"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async updateNovaVersion(t,a){var l,i;const s=await r.updateNovaVersion(t,a),n=(e==null?void 0:e.serverIndex)??0,o=(i=(l=V["SystemApi.updateNovaVersion"])==null?void 0:l[n])==null?void 0:i.url;return(c,p)=>P(s,m,O,e)(c,o||p)}}};var pr=class extends Q{backupConfiguration(e,r,t){return Z(this.configuration).backupConfiguration(e,r,t).then(a=>a(this.axios,this.basePath))}checkNovaVersionUpdate(e,r){return Z(this.configuration).checkNovaVersionUpdate(e,r).then(t=>t(this.axios,this.basePath))}getArpScan(e,r,t,a){return Z(this.configuration).getArpScan(e,r,t,a).then(s=>s(this.axios,this.basePath))}getConfigurationBackupStatus(e,r){return Z(this.configuration).getConfigurationBackupStatus(e,r).then(t=>t(this.axios,this.basePath))}getDiagnosePackage(e){return Z(this.configuration).getDiagnosePackage(e).then(r=>r(this.axios,this.basePath))}getNetworkInterfaces(e){return Z(this.configuration).getNetworkInterfaces(e).then(r=>r(this.axios,this.basePath))}getNetworkState(e){return Z(this.configuration).getNetworkState(e).then(r=>r(this.axios,this.basePath))}getSystemStatus(e){return Z(this.configuration).getSystemStatus(e).then(r=>r(this.axios,this.basePath))}getSystemVersion(e){return Z(this.configuration).getSystemVersion(e).then(r=>r(this.axios,this.basePath))}listConfigurationResources(e){return Z(this.configuration).listConfigurationResources(e).then(r=>r(this.axios,this.basePath))}restoreConfiguration(e,r,t){return Z(this.configuration).restoreConfiguration(e,r,t).then(a=>a(this.axios,this.basePath))}updateNovaVersion(e,r){return Z(this.configuration).updateNovaVersion(e,r).then(t=>t(this.axios,this.basePath))}};const dr=function(e){return{addTrajectory:async(r,t,a,s={})=>{h("addTrajectory","cell",r),h("addTrajectory","controller",t),h("addTrajectory","addTrajectoryRequest",a);const n="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"POST",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},clearTrajectories:async(r,t,a={})=>{h("clearTrajectories","cell",r),h("clearTrajectories","controller",t);const s="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"DELETE",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},deleteTrajectory:async(r,t,a,s={})=>{h("deleteTrajectory","cell",r),h("deleteTrajectory","controller",t),h("deleteTrajectory","trajectory",a);const n="/cells/{cell}/controllers/{controller}/trajectories/{trajectory}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{trajectory}",encodeURIComponent(String(a))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"DELETE",...l,...s},c={},p={};await b(c,e),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},getTrajectory:async(r,t,a,s={})=>{h("getTrajectory","cell",r),h("getTrajectory","controller",t),h("getTrajectory","trajectory",a);const n="/cells/{cell}/controllers/{controller}/trajectories/{trajectory}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{trajectory}",encodeURIComponent(String(a))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},listTrajectories:async(r,t,a={})=>{h("listTrajectories","cell",r),h("listTrajectories","controller",t);const s="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}}}},Ve=function(e){const r=dr(e);return{async addTrajectory(t,a,s,n){var c,p;const o=await r.addTrajectory(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["TrajectoryCachingApi.addTrajectory"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async clearTrajectories(t,a,s){var i,c;const n=await r.clearTrajectories(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["TrajectoryCachingApi.clearTrajectories"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async deleteTrajectory(t,a,s,n){var c,p;const o=await r.deleteTrajectory(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["TrajectoryCachingApi.deleteTrajectory"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async getTrajectory(t,a,s,n){var c,p;const o=await r.getTrajectory(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["TrajectoryCachingApi.getTrajectory"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async listTrajectories(t,a,s){var i,c;const n=await r.listTrajectories(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["TrajectoryCachingApi.listTrajectories"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)}}};var hr=class extends Q{addTrajectory(e,r,t,a){return Ve(this.configuration).addTrajectory(e,r,t,a).then(s=>s(this.axios,this.basePath))}clearTrajectories(e,r,t){return Ve(this.configuration).clearTrajectories(e,r,t).then(a=>a(this.axios,this.basePath))}deleteTrajectory(e,r,t,a){return Ve(this.configuration).deleteTrajectory(e,r,t,a).then(s=>s(this.axios,this.basePath))}getTrajectory(e,r,t,a){return Ve(this.configuration).getTrajectory(e,r,t,a).then(s=>s(this.axios,this.basePath))}listTrajectories(e,r,t){return Ve(this.configuration).listTrajectories(e,r,t).then(a=>a(this.axios,this.basePath))}};const ur=function(e){return{executeTrajectory:async(r,t,a,s={})=>{h("executeTrajectory","cell",r),h("executeTrajectory","controller",t),h("executeTrajectory","executeTrajectoryRequest",a);const n="/cells/{cell}/controllers/{controller}/execution/trajectory".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}}}},mr=function(e){const r=ur(e);return{async executeTrajectory(t,a,s,n){var c,p;const o=await r.executeTrajectory(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["TrajectoryExecutionApi.executeTrajectory"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)}}};var Or=class extends Q{executeTrajectory(e,r,t,a){return mr(this.configuration).executeTrajectory(e,r,t,a).then(s=>s(this.axios,this.basePath))}};const Vr=function(e){return{mergeTrajectories:async(r,t,a={})=>{h("mergeTrajectories","cell",r),h("mergeTrajectories","mergeTrajectoriesRequest",t);const s="/experimental/cells/{cell}/trajectory-planning/merge-trajectories".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}},planCollisionFree:async(r,t,a={})=>{h("planCollisionFree","cell",r),h("planCollisionFree","planCollisionFreeRequest",t);const s="/cells/{cell}/trajectory-planning/plan-collision-free".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}},planTrajectory:async(r,t,a={})=>{h("planTrajectory","cell",r),h("planTrajectory","planTrajectoryRequest",t);const s="/cells/{cell}/trajectory-planning/plan-trajectory".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}},searchCollisionFreeMultiMotionGroup:async(r,t,a={})=>{h("searchCollisionFreeMultiMotionGroup","cell",r),h("searchCollisionFreeMultiMotionGroup","multiSearchCollisionFreeRequest",t);const s="/experimental/cells/{cell}/trajectory-planning/search-collision-free-multi-motion-group".replace("{cell}",encodeURIComponent(String(r))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"POST",...o,...a},i={},c={};await b(i,e),i["Content-Type"]="application/json",C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},l.data=E(t,l,e),{url:y(n),options:l}}}},Re=function(e){const r=Vr(e);return{async mergeTrajectories(t,a,s){var i,c;const n=await r.mergeTrajectories(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["TrajectoryPlanningApi.mergeTrajectories"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async planCollisionFree(t,a,s){var i,c;const n=await r.planCollisionFree(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["TrajectoryPlanningApi.planCollisionFree"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async planTrajectory(t,a,s){var i,c;const n=await r.planTrajectory(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["TrajectoryPlanningApi.planTrajectory"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async searchCollisionFreeMultiMotionGroup(t,a,s){var i,c;const n=await r.searchCollisionFreeMultiMotionGroup(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["TrajectoryPlanningApi.searchCollisionFreeMultiMotionGroup"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)}}};var Sr=class extends Q{mergeTrajectories(e,r,t){return Re(this.configuration).mergeTrajectories(e,r,t).then(a=>a(this.axios,this.basePath))}planCollisionFree(e,r,t){return Re(this.configuration).planCollisionFree(e,r,t).then(a=>a(this.axios,this.basePath))}planTrajectory(e,r,t){return Re(this.configuration).planTrajectory(e,r,t).then(a=>a(this.axios,this.basePath))}searchCollisionFreeMultiMotionGroup(e,r,t){return Re(this.configuration).searchCollisionFreeMultiMotionGroup(e,r,t).then(a=>a(this.axios,this.basePath))}};const br=function(e){return{addVirtualControllerCoordinateSystem:async(r,t,a,s,n={})=>{h("addVirtualControllerCoordinateSystem","cell",r),h("addVirtualControllerCoordinateSystem","controller",t),h("addVirtualControllerCoordinateSystem","coordinateSystem",a),h("addVirtualControllerCoordinateSystem","coordinateSystemData",s);const o="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(a))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"PUT",...i,...n},p={},d={};await b(p,e),p["Content-Type"]="application/json",C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},c.data=E(s,c,e),{url:y(l),options:c}},addVirtualControllerMotionGroup:async(r,t,a,s={})=>{h("addVirtualControllerMotionGroup","cell",r),h("addVirtualControllerMotionGroup","controller",t),h("addVirtualControllerMotionGroup","addVirtualControllerMotionGroupRequest",a);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"POST",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},addVirtualControllerSafetyZone:async(r,t,a,s={})=>{h("addVirtualControllerSafetyZone","cell",r),h("addVirtualControllerSafetyZone","controller",t),h("addVirtualControllerSafetyZone","safetyZone",a);const n="/cells/{cell}/virtual-controllers/{controller}/safety-zones".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"POST",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},addVirtualControllerTcp:async(r,t,a,s,n,o={})=>{h("addVirtualControllerTcp","cell",r),h("addVirtualControllerTcp","controller",t),h("addVirtualControllerTcp","motionGroup",a),h("addVirtualControllerTcp","tcp",s),h("addVirtualControllerTcp","robotTcpData",n);const l="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))).replace("{tcp}",encodeURIComponent(String(s))),i=new URL(l,S);let c;e&&(c=e.baseOptions);const p={method:"PUT",...c,...o},d={},u={};await b(d,e),d["Content-Type"]="application/json",C(i,u);let I=c&&c.headers?c.headers:{};return p.headers={...d,...I,...o.headers},p.data=E(n,p,e),{url:y(i),options:p}},deleteVirtualControllerCoordinateSystem:async(r,t,a,s,n={})=>{h("deleteVirtualControllerCoordinateSystem","cell",r),h("deleteVirtualControllerCoordinateSystem","controller",t),h("deleteVirtualControllerCoordinateSystem","coordinateSystem",a);const o="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(a))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"DELETE",...i,...n},p={},d={};await b(p,e),s!==void 0&&(d.delete_dependent=s),C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},{url:y(l),options:c}},deleteVirtualControllerMotionGroup:async(r,t,a,s={})=>{h("deleteVirtualControllerMotionGroup","cell",r),h("deleteVirtualControllerMotionGroup","controller",t),h("deleteVirtualControllerMotionGroup","motionGroup",a);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"DELETE",...l,...s},c={},p={};await b(c,e),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},deleteVirtualControllerSafetyZone:async(r,t,a,s={})=>{h("deleteVirtualControllerSafetyZone","cell",r),h("deleteVirtualControllerSafetyZone","controller",t),h("deleteVirtualControllerSafetyZone","id",a);const n="/cells/{cell}/virtual-controllers/{controller}/safety-zones/{id}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{id}",encodeURIComponent(String(a))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"DELETE",...l,...s},c={},p={};await b(c,e),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},deleteVirtualControllerTcp:async(r,t,a,s,n={})=>{h("deleteVirtualControllerTcp","cell",r),h("deleteVirtualControllerTcp","controller",t),h("deleteVirtualControllerTcp","motionGroup",a),h("deleteVirtualControllerTcp","tcp",s);const o="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))).replace("{tcp}",encodeURIComponent(String(s))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"DELETE",...i,...n},p={},d={};await b(p,e),C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},{url:y(l),options:c}},getEmergencyStop:async(r,t,a={})=>{h("getEmergencyStop","cell",r),h("getEmergencyStop","controller",t);const s="/cells/{cell}/virtual-controllers/{controller}/emergency-stop".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getMotionGroupState:async(r,t,a,s={})=>{h("getMotionGroupState","cell",r),h("getMotionGroupState","controller",t),h("getMotionGroupState","motionGroup",a);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},getMotionGroups:async(r,t,a={})=>{h("getMotionGroups","cell",r),h("getMotionGroups","controller",t);const s="/cells/{cell}/virtual-controllers/{controller}/motion-groups".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getOperationMode:async(r,t,a={})=>{h("getOperationMode","cell",r),h("getOperationMode","controller",t);const s="/cells/{cell}/virtual-controllers/{controller}/operationmode".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getVirtualControllerMounting:async(r,t,a,s={})=>{h("getVirtualControllerMounting","cell",r),h("getVirtualControllerMounting","controller",t),h("getVirtualControllerMounting","motionGroup",a);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},getVirtualControllerSafetyZones:async(r,t,a={})=>{h("getVirtualControllerSafetyZones","cell",r),h("getVirtualControllerSafetyZones","controller",t);const s="/cells/{cell}/virtual-controllers/{controller}/safety-zones".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},listVirtualControllerCoordinateSystems:async(r,t,a={})=>{h("listVirtualControllerCoordinateSystems","cell",r),h("listVirtualControllerCoordinateSystems","controller",t);const s="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},listVirtualControllerTcps:async(r,t,a,s={})=>{h("listVirtualControllerTcps","cell",r),h("listVirtualControllerTcps","controller",t),h("listVirtualControllerTcps","motionGroup",a);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/tcps".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},setEmergencyStop:async(r,t,a,s={})=>{h("setEmergencyStop","cell",r),h("setEmergencyStop","controller",t);const n="/cells/{cell}/virtual-controllers/{controller}/emergency-stop".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.active=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},setMotionGroupState:async(r,t,a,s,n={})=>{h("setMotionGroupState","cell",r),h("setMotionGroupState","controller",t),h("setMotionGroupState","motionGroup",a),h("setMotionGroupState","motionGroupJoints",s);const o="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"PUT",...i,...n},p={},d={};await b(p,e),p["Content-Type"]="application/json",C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},c.data=E(s,c,e),{url:y(l),options:c}},setOperationMode:async(r,t,a,s={})=>{h("setOperationMode","cell",r),h("setOperationMode","controller",t),h("setOperationMode","mode",a);const n="/cells/{cell}/virtual-controllers/{controller}/operationmode".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.mode=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},setVirtualControllerMounting:async(r,t,a,s,n={})=>{h("setVirtualControllerMounting","cell",r),h("setVirtualControllerMounting","controller",t),h("setVirtualControllerMounting","motionGroup",a),h("setVirtualControllerMounting","coordinateSystem",s);const o="/cells/{cell}/virtual-controllers/{controller}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(a))),l=new URL(o,S);let i;e&&(i=e.baseOptions);const c={method:"PUT",...i,...n},p={},d={};await b(p,e),p["Content-Type"]="application/json",C(l,d);let u=i&&i.headers?i.headers:{};return c.headers={...p,...u,...n.headers},c.data=E(s,c,e),{url:y(l),options:c}}}},D=function(e){const r=br(e);return{async addVirtualControllerCoordinateSystem(t,a,s,n,o){var p,d;const l=await r.addVirtualControllerCoordinateSystem(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["VirtualControllerApi.addVirtualControllerCoordinateSystem"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)},async addVirtualControllerMotionGroup(t,a,s,n){var c,p;const o=await r.addVirtualControllerMotionGroup(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.addVirtualControllerMotionGroup"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async addVirtualControllerSafetyZone(t,a,s,n){var c,p;const o=await r.addVirtualControllerSafetyZone(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.addVirtualControllerSafetyZone"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async addVirtualControllerTcp(t,a,s,n,o,l){var d,u;const i=await r.addVirtualControllerTcp(t,a,s,n,o,l),c=(e==null?void 0:e.serverIndex)??0,p=(u=(d=V["VirtualControllerApi.addVirtualControllerTcp"])==null?void 0:d[c])==null?void 0:u.url;return(I,M)=>P(i,m,O,e)(I,p||M)},async deleteVirtualControllerCoordinateSystem(t,a,s,n,o){var p,d;const l=await r.deleteVirtualControllerCoordinateSystem(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["VirtualControllerApi.deleteVirtualControllerCoordinateSystem"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)},async deleteVirtualControllerMotionGroup(t,a,s,n){var c,p;const o=await r.deleteVirtualControllerMotionGroup(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.deleteVirtualControllerMotionGroup"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async deleteVirtualControllerSafetyZone(t,a,s,n){var c,p;const o=await r.deleteVirtualControllerSafetyZone(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.deleteVirtualControllerSafetyZone"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async deleteVirtualControllerTcp(t,a,s,n,o){var p,d;const l=await r.deleteVirtualControllerTcp(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["VirtualControllerApi.deleteVirtualControllerTcp"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)},async getEmergencyStop(t,a,s){var i,c;const n=await r.getEmergencyStop(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["VirtualControllerApi.getEmergencyStop"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getMotionGroupState(t,a,s,n){var c,p;const o=await r.getMotionGroupState(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.getMotionGroupState"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async getMotionGroups(t,a,s){var i,c;const n=await r.getMotionGroups(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["VirtualControllerApi.getMotionGroups"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getOperationMode(t,a,s){var i,c;const n=await r.getOperationMode(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["VirtualControllerApi.getOperationMode"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getVirtualControllerMounting(t,a,s,n){var c,p;const o=await r.getVirtualControllerMounting(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.getVirtualControllerMounting"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async getVirtualControllerSafetyZones(t,a,s){var i,c;const n=await r.getVirtualControllerSafetyZones(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["VirtualControllerApi.getVirtualControllerSafetyZones"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async listVirtualControllerCoordinateSystems(t,a,s){var i,c;const n=await r.listVirtualControllerCoordinateSystems(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["VirtualControllerApi.listVirtualControllerCoordinateSystems"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async listVirtualControllerTcps(t,a,s,n){var c,p;const o=await r.listVirtualControllerTcps(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.listVirtualControllerTcps"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async setEmergencyStop(t,a,s,n){var c,p;const o=await r.setEmergencyStop(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.setEmergencyStop"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async setMotionGroupState(t,a,s,n,o){var p,d;const l=await r.setMotionGroupState(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["VirtualControllerApi.setMotionGroupState"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)},async setOperationMode(t,a,s,n){var c,p;const o=await r.setOperationMode(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerApi.setOperationMode"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async setVirtualControllerMounting(t,a,s,n,o){var p,d;const l=await r.setVirtualControllerMounting(t,a,s,n,o),i=(e==null?void 0:e.serverIndex)??0,c=(d=(p=V["VirtualControllerApi.setVirtualControllerMounting"])==null?void 0:p[i])==null?void 0:d.url;return(u,I)=>P(l,m,O,e)(u,c||I)}}};var Cr=class extends Q{addVirtualControllerCoordinateSystem(e,r,t,a,s){return D(this.configuration).addVirtualControllerCoordinateSystem(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}addVirtualControllerMotionGroup(e,r,t,a){return D(this.configuration).addVirtualControllerMotionGroup(e,r,t,a).then(s=>s(this.axios,this.basePath))}addVirtualControllerSafetyZone(e,r,t,a){return D(this.configuration).addVirtualControllerSafetyZone(e,r,t,a).then(s=>s(this.axios,this.basePath))}addVirtualControllerTcp(e,r,t,a,s,n){return D(this.configuration).addVirtualControllerTcp(e,r,t,a,s,n).then(o=>o(this.axios,this.basePath))}deleteVirtualControllerCoordinateSystem(e,r,t,a,s){return D(this.configuration).deleteVirtualControllerCoordinateSystem(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}deleteVirtualControllerMotionGroup(e,r,t,a){return D(this.configuration).deleteVirtualControllerMotionGroup(e,r,t,a).then(s=>s(this.axios,this.basePath))}deleteVirtualControllerSafetyZone(e,r,t,a){return D(this.configuration).deleteVirtualControllerSafetyZone(e,r,t,a).then(s=>s(this.axios,this.basePath))}deleteVirtualControllerTcp(e,r,t,a,s){return D(this.configuration).deleteVirtualControllerTcp(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}getEmergencyStop(e,r,t){return D(this.configuration).getEmergencyStop(e,r,t).then(a=>a(this.axios,this.basePath))}getMotionGroupState(e,r,t,a){return D(this.configuration).getMotionGroupState(e,r,t,a).then(s=>s(this.axios,this.basePath))}getMotionGroups(e,r,t){return D(this.configuration).getMotionGroups(e,r,t).then(a=>a(this.axios,this.basePath))}getOperationMode(e,r,t){return D(this.configuration).getOperationMode(e,r,t).then(a=>a(this.axios,this.basePath))}getVirtualControllerMounting(e,r,t,a){return D(this.configuration).getVirtualControllerMounting(e,r,t,a).then(s=>s(this.axios,this.basePath))}getVirtualControllerSafetyZones(e,r,t){return D(this.configuration).getVirtualControllerSafetyZones(e,r,t).then(a=>a(this.axios,this.basePath))}listVirtualControllerCoordinateSystems(e,r,t){return D(this.configuration).listVirtualControllerCoordinateSystems(e,r,t).then(a=>a(this.axios,this.basePath))}listVirtualControllerTcps(e,r,t,a){return D(this.configuration).listVirtualControllerTcps(e,r,t,a).then(s=>s(this.axios,this.basePath))}setEmergencyStop(e,r,t,a){return D(this.configuration).setEmergencyStop(e,r,t,a).then(s=>s(this.axios,this.basePath))}setMotionGroupState(e,r,t,a,s){return D(this.configuration).setMotionGroupState(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}setOperationMode(e,r,t,a){return D(this.configuration).setOperationMode(e,r,t,a).then(s=>s(this.axios,this.basePath))}setVirtualControllerMounting(e,r,t,a,s){return D(this.configuration).setVirtualControllerMounting(e,r,t,a,s).then(n=>n(this.axios,this.basePath))}};const yr=function(e){return{externalJointsStream:async(r,t,a,s={})=>{h("externalJointsStream","cell",r),h("externalJointsStream","controller",t),h("externalJointsStream","externalJointStreamRequest",a);const n="/cells/{cell}/virtual-controllers/{controller}/external-joints-stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}},getCycleTime:async(r,t,a={})=>{h("getCycleTime","cell",r),h("getCycleTime","controller",t);const s="/cells/{cell}/virtual-controllers/{controller}/cycle-time".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},getVirtualControllerBehavior:async(r,t,a={})=>{h("getVirtualControllerBehavior","cell",r),h("getVirtualControllerBehavior","controller",t);const s="/cells/{cell}/virtual-controllers/{controller}/behavior".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(s,S);let o;e&&(o=e.baseOptions);const l={method:"GET",...o,...a},i={},c={};await b(i,e),C(n,c);let p=o&&o.headers?o.headers:{};return l.headers={...i,...p,...a.headers},{url:y(n),options:l}},setVirtualControllerBehavior:async(r,t,a,s={})=>{h("setVirtualControllerBehavior","cell",r),h("setVirtualControllerBehavior","controller",t);const n="/cells/{cell}/virtual-controllers/{controller}/behavior".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),a!==void 0&&(p.behavior=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}}}},xe=function(e){const r=yr(e);return{async externalJointsStream(t,a,s,n){var c,p;const o=await r.externalJointsStream(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerBehaviorApi.externalJointsStream"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async getCycleTime(t,a,s){var i,c;const n=await r.getCycleTime(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["VirtualControllerBehaviorApi.getCycleTime"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async getVirtualControllerBehavior(t,a,s){var i,c;const n=await r.getVirtualControllerBehavior(t,a,s),o=(e==null?void 0:e.serverIndex)??0,l=(c=(i=V["VirtualControllerBehaviorApi.getVirtualControllerBehavior"])==null?void 0:i[o])==null?void 0:c.url;return(p,d)=>P(n,m,O,e)(p,l||d)},async setVirtualControllerBehavior(t,a,s,n){var c,p;const o=await r.setVirtualControllerBehavior(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerBehaviorApi.setVirtualControllerBehavior"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)}}};var Pr=class extends Q{externalJointsStream(e,r,t,a){return xe(this.configuration).externalJointsStream(e,r,t,a).then(s=>s(this.axios,this.basePath))}getCycleTime(e,r,t){return xe(this.configuration).getCycleTime(e,r,t).then(a=>a(this.axios,this.basePath))}getVirtualControllerBehavior(e,r,t){return xe(this.configuration).getVirtualControllerBehavior(e,r,t).then(a=>a(this.axios,this.basePath))}setVirtualControllerBehavior(e,r,t,a){return xe(this.configuration).setVirtualControllerBehavior(e,r,t,a).then(s=>s(this.axios,this.basePath))}};const vr=function(e){return{listIOs:async(r,t,a,s={})=>{h("listIOs","cell",r),h("listIOs","controller",t),h("listIOs","ios",a);const n="/cells/{cell}/virtual-controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"GET",...l,...s},c={},p={};await b(c,e),a&&(p.ios=a),C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},{url:y(o),options:i}},listVirtualControllerIODescriptions:async(r,t,a,s,n,o,l={})=>{h("listVirtualControllerIODescriptions","cell",r),h("listVirtualControllerIODescriptions","controller",t);const i="/cells/{cell}/virtual-controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),c=new URL(i,S);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...l},u={},I={};await b(u,e),a&&(I.ios=a),s!==void 0&&(I.direction=s),n!==void 0&&(I.value_type=n),o!==void 0&&(I.group=o),C(c,I);let M=p&&p.headers?p.headers:{};return d.headers={...u,...M,...l.headers},{url:y(c),options:d}},setIOValues:async(r,t,a,s={})=>{h("setIOValues","cell",r),h("setIOValues","controller",t),h("setIOValues","iOValue",a);const n="/cells/{cell}/virtual-controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(n,S);let l;e&&(l=e.baseOptions);const i={method:"PUT",...l,...s},c={},p={};await b(c,e),c["Content-Type"]="application/json",C(o,p);let d=l&&l.headers?l.headers:{};return i.headers={...c,...d,...s.headers},i.data=E(a,i,e),{url:y(o),options:i}}}},Be=function(e){const r=vr(e);return{async listIOs(t,a,s,n){var c,p;const o=await r.listIOs(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerInputsOutputsApi.listIOs"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)},async listVirtualControllerIODescriptions(t,a,s,n,o,l,i){var u,I;const c=await r.listVirtualControllerIODescriptions(t,a,s,n,o,l,i),p=(e==null?void 0:e.serverIndex)??0,d=(I=(u=V["VirtualControllerInputsOutputsApi.listVirtualControllerIODescriptions"])==null?void 0:u[p])==null?void 0:I.url;return(M,X)=>P(c,m,O,e)(M,d||X)},async setIOValues(t,a,s,n){var c,p;const o=await r.setIOValues(t,a,s,n),l=(e==null?void 0:e.serverIndex)??0,i=(p=(c=V["VirtualControllerInputsOutputsApi.setIOValues"])==null?void 0:c[l])==null?void 0:p.url;return(d,u)=>P(o,m,O,e)(d,i||u)}}};var Ir=class extends Q{listIOs(e,r,t,a){return Be(this.configuration).listIOs(e,r,t,a).then(s=>s(this.axios,this.basePath))}listVirtualControllerIODescriptions(e,r,t,a,s,n,o){return Be(this.configuration).listVirtualControllerIODescriptions(e,r,t,a,s,n,o).then(l=>l(this.axios,this.basePath))}setIOValues(e,r,t,a){return Be(this.configuration).setIOValues(e,r,t,a).then(s=>s(this.axios,this.basePath))}},Rr=class{constructor(e,r){this.cellId=e,this.opts=r,this.system=this.withUnwrappedResponsesOnly(pr),this.cell=this.withUnwrappedResponsesOnly(Ht),this.motionGroup=this.withCellId(er),this.motionGroupModels=this.withUnwrappedResponsesOnly(rr),this.controller=this.withCellId(Jt),this.controllerIOs=this.withCellId(ft),this.trajectoryPlanning=this.withCellId(Sr),this.trajectoryExecution=this.withCellId(Or),this.trajectoryCaching=this.withCellId(hr),this.application=this.withCellId(fe),this.applicationGlobal=this.withUnwrappedResponsesOnly(fe),this.jogging=this.withCellId(zt),this.kinematics=this.withCellId(Zt),this.busInputsOutputs=this.withCellId(qt),this.virtualController=this.withCellId(Cr),this.virtualControllerBehavior=this.withCellId(Pr),this.virtualControllerIOs=this.withCellId(Ir),this.storeObject=this.withCellId(ir),this.storeCollisionComponents=this.withCellId(sr),this.storeCollisionSetups=this.withCellId(lr)}withCellId(e){const r=new e({...this.opts,isJsonMime:t=>t==="application/json"},this.opts.basePath??"",this.opts.axiosInstance??m.create());for(const t of Reflect.ownKeys(Reflect.getPrototypeOf(r)))if(t!=="constructor"&&typeof r[t]=="function"){const a=r[t];r[t]=(...s)=>a.apply(r,[this.cellId,...s]).then(n=>n.data)}return r}withUnwrappedResponsesOnly(e){const r=new e({...this.opts,isJsonMime:t=>t==="application/json"},this.opts.basePath??"",this.opts.axiosInstance??m.create());for(const t of Reflect.ownKeys(Reflect.getPrototypeOf(r)))if(t!=="constructor"&&typeof r[t]=="function"){const a=r[t];r[t]=(...s)=>a.apply(r,s).then(n=>n.data)}return r}};const xr={method:"GET",path:"/cells/:cellId/controllers/:controllerId/state",handle(){return{mode:"MODE_CONTROL",last_error:[],timestamp:"2025-10-16T09:19:26.634534092Z",sequence_number:1054764,controller:"mock-ur5e",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",velocity_override:100,motion_groups:[{timestamp:"2025-10-16T09:19:26.634534092Z",sequence_number:1054764,motion_group:"0@mock-ur5e",controller:"mock-ur5e",joint_position:[1.487959623336792,-1.8501918315887451,1.8003005981445312,6.034560203552246,1.4921919107437134,1.593459963798523],joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_torque:[],joint_current:[0,0,0,0,0,0],flange_pose:{position:[107.6452433732927,-409.0402987746852,524.2402132330305],orientation:[.9874434028353319,-.986571714997442,1.3336589451098142]},tcp:"Flange",tcp_pose:{position:[107.6452433732927,-409.0402987746852,524.2402132330305],orientation:[.9874434028353319,-.986571714997442,1.3336589451098142]},payload:"",coordinate_system:"",standstill:!0}]}}},wr={method:"GET",path:"/cells/:cellId/controllers/:controllerId/motion-groups/:motionGroupId/description",handle(){return{motion_group_model:"UniversalRobots_UR5e",mounting:{position:[0,0,0],orientation:[0,0,0]},tcps:{Flange:{name:"Default-Flange",pose:{position:[0,0,0],orientation:[0,0,0]}}},payloads:{"FPay-0":{name:"FPay-0",payload:0,center_of_mass:[0,0,0],moment_of_inertia:[0,0,0]}},cycle_time:8,dh_parameters:[{alpha:1.5707963267948966,d:162.25},{a:-425},{a:-392.2},{alpha:1.5707963267948966,d:133.3},{alpha:-1.5707963267948966,d:99.7},{d:99.6}],operation_limits:{auto_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3},elbow:{velocity:5e3},flange:{velocity:5e3}},manual_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}},manual_t1_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}},manual_t2_limits:{joints:[{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:150},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28},{position:{lower_limit:-6.283185307179586,upper_limit:6.283185307179586},velocity:3.34159255027771,acceleration:40,torque:28}],tcp:{velocity:5e3}}},serial_number:"WBVirtualRobot"}}},Ar={method:"GET",path:"/motion-group-models/:motionGroupModel/kinematic",handle(){return{dh_parameters:[{alpha:1.5707963267948966,theta:0,a:0,d:162.25,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-425,d:0,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-392.2,d:0,reverse_rotation_direction:!1},{alpha:1.5707963267948966,theta:0,a:0,d:133.3,reverse_rotation_direction:!1},{alpha:-1.5707963267948966,theta:0,a:0,d:99.7,reverse_rotation_direction:!1},{alpha:0,theta:0,a:0,d:99.6,reverse_rotation_direction:!1}],inverse_solver:"Universalrobots"}}},Tr={method:"GET",path:"/cells/:cellId/controllers/:controllerId",handle(){return{configuration:{initial_joint_position:"[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",kind:"VirtualController",manufacturer:"universalrobots",type:"universalrobots-ur5e"},name:"mock-ur5"}}},Ur={method:"GET",path:"/cells/:cellId/controllers/:controllerId/coordinate-systems",handle(){return[{coordinate_system:"",name:"world",reference_coordinate_system:"",position:[0,0,0],orientation:[0,0,0],orientation_type:"ROTATION_VECTOR"},{coordinate_system:"CS-0",name:"Default-CS",reference_coordinate_system:"",position:[0,0,0],orientation:[0,0,0],orientation_type:"ROTATION_VECTOR"}]}},Er={method:"GET",path:"/cells/:cellId/controllers",handle(){return["mock-ur5e"]}};var gr=class{constructor(){this.connections=[]}async handleAPIRequest(e){var s;const r=[Er,Tr,wr,xr,Ur,Ar],t=((s=e.method)==null?void 0:s.toUpperCase())||"GET";if(!e.url)throw new Error("No url sent with request");const a=e.url.split("?")[0];for(const n of r){const o=_t.match(n.path)(a);if(t===n.method&&o){const l=n.handle();return{status:200,statusText:"Success",data:JSON.stringify(l),headers:{},config:e,request:{responseURL:e.url}}}}throw new m.AxiosError(`No mock handler matched this request: ${t} ${a}`,"404",e)}handleWebsocketConnection(e){this.connections.push(e),setTimeout(()=>{e.dispatchEvent(new Event("open")),console.log("Websocket connection opened from",e.url),e.url.includes("/state-stream")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify(_r)})),e.url.includes("/execution/jogging")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{message:"string",kind:"INITIALIZE_RECEIVED"}})}))},10)}handleWebsocketMessage(e,r){console.log(`Received message on ${e.url}`,r)}};const _r={result:{motion_group:"0@universalrobots-ur5e",controller:"universalrobots-ur5e",timestamp:new Date().toISOString(),sequence_number:1,joint_position:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705],joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},standstill:!1,flange_pose:{position:[1.3300010259703043,-409.2680714682808,531.0203477065281],orientation:[1.7564919306270736,-1.7542521568325058,.7326972590614671]},tcp_pose:{position:[1.3300010259703043,-409.2680714682808,531.0203477065281],orientation:[1.7564919306270736,-1.7542521568325058,.7326972590614671]},description_revision:0}};var jr=class{constructor(e){this.authPromise=null,this.accessToken=null;const r=e.cellId??"cell";this.config={cellId:r,...e},this.accessToken=e.accessToken||Ie.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"&&(this.mock=new gr),this.instanceUrl=At(this.config.instanceUrl);const t=m.create({baseURL:ge(this.instanceUrl.href,"/api/v2"),headers:typeof window<"u"&&window.location.origin.includes("localhost")?{}:{"X-Wandelbots-Client":"Wandelbots-Nova-JS-SDK"}});t.interceptors.request.use(async a=>(a.headers.Authorization||(this.accessToken?a.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(a.headers.Authorization=`Basic ${btoa(`${e.username}:${e.password}`)}`)),a)),typeof window<"u"&&t.interceptors.response.use(a=>a,async a=>{var s,n;if(m.isAxiosError(a))if(((s=a.response)==null?void 0:s.status)===401)try{if(await this.renewAuthentication(),a.config)return this.accessToken?a.config.headers.Authorization=`Bearer ${this.accessToken}`:delete a.config.headers.Authorization,t.request(a.config)}catch(o){return Promise.reject(o)}else((n=a.response)==null?void 0:n.status)===503&&(await fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(a)}),this.api=new Rr(r,{...e,basePath:ge(this.instanceUrl.href,"/api/v2"),isJsonMime:a=>a==="application/json",baseOptions:{...this.mock?{adapter:a=>this.mock.handleAPIRequest(a)}:{},...e.baseOptions},axiosInstance:t})}async renewAuthentication(){if(this.authPromise)return;const e=Ie.getString("wbjs.access_token");if(e&&this.accessToken!==e){this.accessToken=e;return}this.authPromise=Ut(this.instanceUrl);try{this.accessToken=await this.authPromise,this.accessToken?Ie.setString("wbjs.access_token",this.accessToken):Ie.delete("wbjs.access_token")}finally{this.authPromise=null}}makeWebsocketURL(e){const r=new URL(ge(this.instanceUrl.href,`/api/v2/cells/${this.config.cellId}`,e));return r.protocol=r.protocol.replace("http","ws"),r.protocol=r.protocol.replace("https","wss"),this.accessToken?r.searchParams.append("token",this.accessToken):this.config.username&&this.config.password&&(r.username=this.config.username,r.password=this.config.password),r.toString()}openReconnectingWebsocket(e){return new Rt(this.makeWebsocketURL(e),{mock:this.mock})}};function Br(e){var n,o,l,i,c,p;const r=[((n=e.position)==null?void 0:n[0])??0,((o=e.position)==null?void 0:o[1])??0,((l=e.position)==null?void 0:l[2])??0],t=[((i=e.orientation)==null?void 0:i[0])??0,((c=e.orientation)==null?void 0:c[1])??0,((p=e.orientation)==null?void 0:p[2])??0],a=r.map(d=>d.toFixed(1)),s=t.map(d=>d.toFixed(4));return`(${a.concat(s).join(", ")})`}function we(e){Se.useEffect(e,[])}function Mr(e){we(()=>We.autorun(e))}function Fr(e,r,t){we(()=>We.reaction(e,r,t))}function Lr(e){return we(()=>{let r;function t(){e(),r=requestAnimationFrame(t)}return r=requestAnimationFrame(t),()=>{cancelAnimationFrame(r)}})}class Ze{constructor(r=[],t={}){this.currentValues=[],this.targetValues=[],this.previousTargetValues=[],this.targetUpdateTime=0,this.animationId=null,this.updateCount=0,this.velocities=[],this.animate=()=>{this.update(.016666666666666666)?this.animationId=null:this.animationId=requestAnimationFrame(this.animate)},this.options={tension:120,friction:20,threshold:.001,onChange:()=>{},onComplete:()=>{},...t},this.currentValues=[...r],this.targetValues=[...r],this.previousTargetValues=[...r],this.velocities=new Array(r.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0}update(r=1/60){let t=!1,a=!0;this.updateCount++;const s=Math.min(r,1/15),n=this.updateCount===1?.7:1;for(let o=0;o<this.currentValues.length;o++){const l=this.currentValues[o],i=this.targetValues[o],c=this.velocities[o],p=i-l,d=p*this.options.tension*n,u=c*this.options.friction,I=d-u,M=c+I*s,X=l+M*s;Math.abs(p)<this.options.threshold&&Math.abs(M)<this.options.threshold*10?this.currentValues[o]!==i&&(this.currentValues[o]=i,this.velocities[o]=0,t=!0):(a=!1,this.currentValues[o]=X,this.velocities[o]=M,t=!0)}return t&&this.options.onChange(this.currentValues),a&&this.options.onComplete(this.currentValues),a}setTarget(r){const t=performance.now(),a=t-this.targetUpdateTime;this.previousTargetValues=[...this.targetValues],this.targetValues=[...r],this.targetUpdateTime=t,this.updateCount=0;const s=this.previousTargetValues.every((n,o)=>n===this.currentValues[o]);if(a<8&&a>0&&this.previousTargetValues.length>0&&!s){const n=Math.min(a/8,1);for(let o=0;o<this.targetValues.length;o++){const l=this.previousTargetValues[o]||0,i=r[o]||0;Math.abs(i-l)>.1&&(this.targetValues[o]=l+(i-l)*n)}}for(;this.currentValues.length<r.length;)this.currentValues.push(r[this.currentValues.length]),this.velocities.push(0);this.currentValues.length>r.length&&(this.currentValues=this.currentValues.slice(0,r.length),this.velocities=this.velocities.slice(0,r.length))}getCurrentValues(){return[...this.currentValues]}getValue(r){return this.currentValues[r]??0}isInterpolating(){return this.animationId!==null}stop(){this.animationId!==null&&(cancelAnimationFrame(this.animationId),this.animationId=null)}setImmediate(r){this.stop(),this.currentValues=[...r],this.targetValues=[...r],this.previousTargetValues=[...r],this.velocities=new Array(r.length).fill(0),this.targetUpdateTime=performance.now(),this.updateCount=0,this.options.onChange(this.currentValues)}updateOptions(r){this.options={...this.options,...r}}startAutoInterpolation(){this.startInterpolation()}destroy(){this.stop()}startInterpolation(){this.animationId===null&&this.animate()}}function kr(e=[],r={}){const t=Se.useRef(null);return t.current||(t.current=new Ze(e,r)),Se.useEffect(()=>{var a;(a=t.current)==null||a.updateOptions(r)},[r]),Se.useEffect(()=>()=>{var a;(a=t.current)==null||a.destroy()},[]),[t.current]}exports.JointTypeEnum=Lt;exports.Manufacturer=kt;exports.NovaClient=jr;exports.ProgramControl=mt;exports.ProgramState=z;exports.ProgramStateIndicator=Ot;exports.ValueInterpolator=Ze;exports.dhParametersToPlaneSize=ct;exports.externalizeComponent=De;exports.i18n=Ge;exports.jsxRuntimeExports=$;exports.orientationToQuaternion=it;exports.poseToWandelscriptString=Br;exports.tryStringifyJson=nt;exports.useAnimationFrame=Lr;exports.useAutorun=Mr;exports.useInterpolation=kr;exports.useMounted=we;exports.useReaction=Fr;exports.verticesToCoplanarity=pt;
42
+ //# sourceMappingURL=interpolation-B3pbgXYX.cjs.map