@wandelbots/wandelbots-js-react-components 4.3.0 → 4.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 (34) hide show
  1. package/dist/3d.cjs.js +1 -1
  2. package/dist/3d.es.js +1 -1
  3. package/dist/{MotionGroupVisualizer-BgvrTXeT.js → MotionGroupVisualizer-Catdk92m.js} +339 -376
  4. package/dist/{MotionGroupVisualizer-BgvrTXeT.js.map → MotionGroupVisualizer-Catdk92m.js.map} +1 -1
  5. package/dist/MotionGroupVisualizer-DePl371W.cjs +2 -0
  6. package/dist/{MotionGroupVisualizer-C_fyiA-X.cjs.map → MotionGroupVisualizer-DePl371W.cjs.map} +1 -1
  7. package/dist/{auth0-spa-js.production.esm-mvPojIrB.js → auth0-spa-js.production.esm-DNao6_S5.js} +1478 -1457
  8. package/dist/auth0-spa-js.production.esm-DNao6_S5.js.map +1 -0
  9. package/dist/auth0-spa-js.production.esm-DaBMfOV8.cjs +5 -0
  10. package/dist/auth0-spa-js.production.esm-DaBMfOV8.cjs.map +1 -0
  11. package/dist/components/robots/MotionGroupVisualizer.d.ts.map +1 -1
  12. package/dist/core.cjs.js +1 -1
  13. package/dist/core.es.js +2 -2
  14. package/dist/index.cjs.js +1 -1
  15. package/dist/index.es.js +3 -3
  16. package/dist/{interpolation-6ZZN4S_x.js → interpolation-Chyc6Hfo.js} +3054 -2868
  17. package/dist/interpolation-Chyc6Hfo.js.map +1 -0
  18. package/dist/interpolation-CiEw5jkz.cjs +20 -0
  19. package/dist/interpolation-CiEw5jkz.cjs.map +1 -0
  20. package/dist/lib/ConnectedMotionGroup.d.ts +1 -0
  21. package/dist/lib/ConnectedMotionGroup.d.ts.map +1 -1
  22. package/dist/{theming-gUgI75AD.js → theming-CZbXnFej.js} +2 -2
  23. package/dist/{theming-gUgI75AD.js.map → theming-CZbXnFej.js.map} +1 -1
  24. package/dist/{theming-Cqo-msxF.cjs → theming-b98f6nXs.cjs} +2 -2
  25. package/dist/{theming-Cqo-msxF.cjs.map → theming-b98f6nXs.cjs.map} +1 -1
  26. package/package.json +2 -3
  27. package/src/components/robots/MotionGroupVisualizer.tsx +33 -75
  28. package/dist/MotionGroupVisualizer-C_fyiA-X.cjs +0 -2
  29. package/dist/auth0-spa-js.production.esm-D_IhPirK.cjs +0 -5
  30. package/dist/auth0-spa-js.production.esm-D_IhPirK.cjs.map +0 -1
  31. package/dist/auth0-spa-js.production.esm-mvPojIrB.js.map +0 -1
  32. package/dist/interpolation-6ZZN4S_x.js.map +0 -1
  33. package/dist/interpolation-CyO6DaVa.cjs +0 -20
  34. package/dist/interpolation-CyO6DaVa.cjs.map +0 -1
@@ -0,0 +1,20 @@
1
+ "use strict";const D=require("./externalizeComponent-CkVWk2F_.cjs"),W=require("@mui/material"),xe=require("mobx-react-lite"),we=require("react-i18next"),te=require("@mui/icons-material"),m=require("axios"),Ae=require("mobx"),ie=require("react");var H=(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))(H||{});const Fe=D.externalizeComponent(xe.observer(({state:e,onRun:r,onPause:t,onStop:s,onReset:a,requiresManualReset:n=!1,variant:l="with_pause",className:o})=>{const c=W.useTheme(),{t:i}=we.useTranslation(),p=()=>{const I={run:{enabled:e==="idle"||e==="stopped"||e==="paused"||e==="completed"||e==="failed"||e==="error",label:i(e==="paused"?"ProgramControl.Resume.bt":e==="error"||e==="failed"?"ProgramControl.Retry.bt":"ProgramControl.Start.bt"),color:c.palette.success.main,onClick:r},pause:{enabled:e==="running",label:i("ProgramControl.Pause.bt"),color:"#FFFFFF33",onClick:t||(()=>{})},stop:{enabled:e==="preparing"||e==="starting"||e==="running"||e==="pausing"||e==="paused",label:i("ProgramControl.Stop.bt"),color:c.palette.error.main,onClick:s}};return l==="without_pause"?[I.run,I.stop]:[I.run,I.pause,I.stop]},d=I=>{const _={sx:{fontSize:"55px"}};if(l==="without_pause")return I===0?D.jsxRuntimeExports.jsx(te.PlayArrow,{..._}):D.jsxRuntimeExports.jsx(te.Stop,{..._});switch(I){case 0:return D.jsxRuntimeExports.jsx(te.PlayArrow,{..._});case 1:return D.jsxRuntimeExports.jsx(te.Pause,{..._});case 2:return D.jsxRuntimeExports.jsx(te.Stop,{..._});default:return null}},u=p();return D.jsxRuntimeExports.jsx(W.Box,{className:o,sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:D.jsxRuntimeExports.jsx(W.Box,{sx:{display:"flex",gap:"40px",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},children:u.map((I,_)=>D.jsxRuntimeExports.jsxs(W.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[D.jsxRuntimeExports.jsx(W.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(_)}),D.jsxRuntimeExports.jsx(W.Typography,{variant:"body1",sx:{color:I.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?I.color:c.palette.text.disabled,textAlign:"center",opacity:I.enabled&&e!=="preparing"&&e!=="starting"&&e!=="pausing"&&!(e==="stopping"&&!n)?1:.3},children:I.label})]},I.label))})})})),Ge=D.externalizeComponent(xe.observer(({programState:e,safetyState:r,operationMode:t,className:s})=>{const a=W.useTheme(),{t:n}=we.useTranslation(),l=()=>{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:a.palette.error.main};if(r==="SAFETY_STATE_UNKNOWN"||r==="SAFETY_STATE_FAULT")return{label:n("ProgramStateIndicator.Error.lb"),color:a.palette.error.main};if(r==="SAFETY_STATE_NORMAL")switch(e){case H.PREPARING:return{label:n("ProgramStateIndicator.Preparing.lb"),color:a.palette.warning.main};case H.STARTING:return{label:n("ProgramStateIndicator.Starting.lb"),color:a.palette.warning.main};case H.RUNNING:return{label:n("ProgramStateIndicator.Running.lb"),color:a.palette.success.main};case H.PAUSING:return{label:n("ProgramStateIndicator.Pausing.lb"),color:a.palette.warning.main};case H.PAUSED:return{label:n("ProgramStateIndicator.Paused.lb"),color:a.palette.grey[600]};case H.STOPPING:return{label:n("ProgramStateIndicator.Stopping.lb"),color:a.palette.warning.main};case H.COMPLETED:return{label:n("ProgramStateIndicator.Completed.lb"),color:a.palette.success.main};case H.FAILED:return{label:n("ProgramStateIndicator.Failed.lb"),color:a.palette.error.main};case H.STOPPED:return{label:n("ProgramStateIndicator.Stopped.lb"),color:a.palette.warning.main};case H.ERROR:return{label:n("ProgramStateIndicator.Error.lb"),color:a.palette.error.main};case H.IDLE:default:return{label:n("ProgramStateIndicator.Ready.lb"),color:a.palette.success.main}}return{label:n("ProgramStateIndicator.Idle.lb"),color:a.palette.grey[600]}},{label:o,color:c}=l(),p=`${o} / ${(()=>{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 D.jsxRuntimeExports.jsx(W.Chip,{className:s,label:D.jsxRuntimeExports.jsx(W.Typography,{variant:"body2",sx:{fontSize:"0.75rem",lineHeight:1.2},children:p}),variant:"filled",sx:{backgroundColor:c,color:a.palette.getContrastText(c),fontWeight:500,height:"auto","& .MuiChip-label":{paddingX:1.5,paddingY:.5}}})}));/*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */var Ve=function(e,r){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var a in s)s.hasOwnProperty(a)&&(t[a]=s[a])},Ve(e,r)};function Re(e,r){Ve(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function ke(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 qe(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var s=t.call(e),a,n=[],l;try{for(;(r===void 0||r-- >0)&&!(a=s.next()).done;)n.push(a.value)}catch(o){l={error:o}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(l)throw l.error}}return n}function ge(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(qe(arguments[r]));return e}var Ue=(function(){function e(r,t){this.target=t,this.type=r}return e})(),De=(function(e){Re(r,e);function r(t,s){var a=e.call(this,"error",s)||this;return a.message=t.message,a.error=t,a}return r})(Ue),Qe=(function(e){Re(r,e);function r(t,s,a){t===void 0&&(t=1e3),s===void 0&&(s="");var n=e.call(this,"close",a)||this;return n.wasClean=!0,n.code=t,n.reason=s,n}return r})(Ue);/*!
15
+ * Reconnecting WebSocket
16
+ * by Pedro Ladaria <pedro.ladaria@gmail.com>
17
+ * https://github.com/pladaria/reconnecting-websocket
18
+ * License MIT
19
+ */var He=function(){if(typeof WebSocket<"u")return WebSocket},Ne=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},X={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Ke=(function(){function e(r,t,s){var a=this;s===void 0&&(s={}),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){a._debug("open event");var l=a._options.minUptime,o=l===void 0?X.minUptime:l;clearTimeout(a._connectTimeout),a._uptimeTimeout=setTimeout(function(){return a._acceptOpen()},o),a._ws.binaryType=a._binaryType,a._messageQueue.forEach(function(c){return a._ws.send(c)}),a._messageQueue=[],a.onopen&&a.onopen(n),a._listeners.open.forEach(function(c){return a._callEventListener(n,c)})},this._handleMessage=function(n){a._debug("message event"),a.onmessage&&a.onmessage(n),a._listeners.message.forEach(function(l){return a._callEventListener(n,l)})},this._handleError=function(n){a._debug("error event",n.message),a._disconnect(void 0,n.message==="TIMEOUT"?"timeout":void 0),a.onerror&&a.onerror(n),a._debug("exec error listeners"),a._listeners.error.forEach(function(l){return a._callEventListener(n,l)}),a._connect()},this._handleClose=function(n){a._debug("close event"),a._clearTimeouts(),a._shouldReconnect&&a._connect(),a.onclose&&a.onclose(n),a._listeners.close.forEach(function(l){return a._callEventListener(n,l)})},this._url=r,this._protocols=t,this._options=s,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,s){return typeof s=="string"?t+=s.length:s instanceof Blob?t+=s.size:t+=s.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,s=t===void 0?X.maxEnqueuedMessages:t;this._messageQueue.length<s&&(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,s,a=this._listeners[r.type];if(a)try{for(var n=ke(a),l=n.next();!l.done;l=n.next()){var o=l.value;this._callEventListener(r,o)}}catch(c){t={error:c}}finally{try{l&&!l.done&&(s=n.return)&&s.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(s){return s!==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,ge(["RWS>"],r))},e.prototype._getNextDelay=function(){var r=this._options,t=r.reconnectionDelayGrowFactor,s=t===void 0?X.reconnectionDelayGrowFactor:t,a=r.minReconnectionDelay,n=a===void 0?X.minReconnectionDelay:a,l=r.maxReconnectionDelay,o=l===void 0?X.maxReconnectionDelay:l,c=0;return this._retryCount>0&&(c=n*Math.pow(s,this._retryCount-1),c>o&&(c=o)),this._debug("next delay",c),c},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,s=t.maxRetries,a=s===void 0?X.maxRetries:s,n=t.connectionTimeout,l=n===void 0?X.connectionTimeout:n,o=t.WebSocket,c=o===void 0?He():o;if(this._retryCount>=a){this._debug("max retries reached",this._retryCount,">=",a);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!Ne(c))throw Error("No valid WebSocket class provided");this._wait().then(function(){return r._getNextUrl(r._url)}).then(function(i){r._closeCalled||(r._debug("connect",{url:i,protocols:r._protocols}),r._ws=r._protocols?new c(i,r._protocols):new c(i),r._ws.binaryType=r._binaryType,r._connectLock=!1,r._addListeners(),r._connectTimeout=setTimeout(function(){return r._handleTimeout()},l))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new De(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 Qe(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})(),$e=class extends Ke{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",s=>{this.receivedFirstMessage||(this.receivedFirstMessage=s)}),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=a=>{this.receivedFirstMessage=a,this.removeEventListener("message",t),this.removeEventListener("error",s),e(a)},s=a=>{this.removeEventListener("message",t),this.removeEventListener("error",s),r(a)};this.addEventListener("message",t),this.addEventListener("error",s)})}async nextMessage(){return new Promise((e,r)=>{const t=a=>{this.removeEventListener("message",t),this.removeEventListener("error",s),e(a)},s=a=>{this.removeEventListener("message",t),this.removeEventListener("error",s),r(a)};this.addEventListener("message",t),this.addEventListener("error",s)})}},Je=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 ne=new Je;function Ce(e,r={}){const{scheme:t,defaultScheme:s}=r,a=/^[a-zA-Z]+:\/\//;return t?(e=e.replace(a,""),e=`${t}://${e}`):s&&!a.test(e)&&(e=`${s}://${e}`),new URL(e)}function We(e,r={}){try{return Ce(e,r)}catch{return}}function Ye(e){var r;return(r=We(e,{defaultScheme:"http"}))!=null&&r.host.endsWith(".wandelbots.io")?Ce(e,{defaultScheme:"https"}):Ce(e,{defaultScheme:"http"})}const de={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"}},ze=e=>{if(e.host.endsWith(".dev.wandelbots.io"))return de.dev;if(e.host.endsWith(".stg.wandelbots.io"))return de.stg;if(e.host.endsWith(".wandelbots.io"))return de.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".`)},Xe=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-DaBMfOV8.cjs")),t=ze(e),s=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:a}=await s.handleRedirectCallback();window.history.replaceState({},document.title,(a==null?void 0:a.returnTo)||window.location.pathname)}else await s.loginWithRedirect();return await s.getTokenSilently()};function Ze(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 s=0;s<e.length;s++){var a=e[s];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(s>0&&(a=a.replace(/^[\/]+/,"")),s<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),r.push(a))}var n=r.join("/");n=n.replace(/\/(\?|&|#[^!])/g,"$1");var l=n.split("?");return n=l.shift()+(l.length>0?"?":"")+l.join("&"),n}function he(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),Ze(e)}var K={},be;function fe(){if(be)return K;be=1,Object.defineProperty(K,"__esModule",{value:!0}),K.PathError=K.TokenData=void 0,K.parse=i,K.compile=p,K.match=I,K.pathToRegexp=_,K.stringify=Ee;const e="/",r=v=>v,t=/^[$_\p{ID_Start}]$/u,s=/^[$\u200c\u200d\p{ID_Continue}]$/u,a={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function n(v){return v.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function l(v){return v.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class o{constructor(A,R){this.tokens=A,this.originalPath=R}}K.TokenData=o;class c extends TypeError{constructor(A,R){let U=A;R&&(U+=`: ${R}`),U+="; visit https://git.new/pathToRegexpError for info",super(U),this.originalPath=R}}K.PathError=c;function i(v,A={}){const{encodePath:R=r}=A,U=[...v],w=[];let x=0,B=0;function E(){let j="";if(t.test(U[x]))do j+=U[x++];while(s.test(U[x]));else if(U[x]==='"'){let q=x;for(;x++<U.length;){if(U[x]==='"'){x++,q=0;break}U[x]==="\\"&&x++,j+=U[x]}if(q)throw new c(`Unterminated quote at index ${q}`,v)}if(!j)throw new c(`Missing parameter name at index ${x}`,v);return j}for(;x<U.length;){const j=U[x],q=a[j];q?w.push({type:q,index:x++,value:j}):j==="\\"?w.push({type:"escape",index:x++,value:U[x++]}):j===":"?w.push({type:"param",index:x++,value:E()}):j==="*"?w.push({type:"wildcard",index:x++,value:E()}):w.push({type:"char",index:x++,value:j})}w.push({type:"end",index:x,value:""});function Q(j){const q=[];for(;;){const L=w[B++];if(L.type===j)break;if(L.type==="char"||L.type==="escape"){let N=L.value,z=w[B];for(;z.type==="char"||z.type==="escape";)N+=z.value,z=w[++B];q.push({type:"text",value:R(N)});continue}if(L.type==="param"||L.type==="wildcard"){q.push({type:L.type,name:L.value});continue}if(L.type==="{"){q.push({type:"group",tokens:Q("}")});continue}throw new c(`Unexpected ${L.type} at index ${L.index}, expected ${j}`,v)}return q}return new o(Q("end"),v)}function p(v,A={}){const{encode:R=encodeURIComponent,delimiter:U=e}=A,w=typeof v=="object"?v:i(v,A),x=d(w.tokens,U,R);return function(E={}){const[Q,...j]=x(E);if(j.length)throw new TypeError(`Missing parameters: ${j.join(", ")}`);return Q}}function d(v,A,R){const U=v.map(w=>u(w,A,R));return w=>{const x=[""];for(const B of U){const[E,...Q]=B(w);x[0]+=E,x.push(...Q)}return x}}function u(v,A,R){if(v.type==="text")return()=>[v.value];if(v.type==="group"){const w=d(v.tokens,A,R);return x=>{const[B,...E]=w(x);return E.length?[""]:[B]}}const U=R||r;return v.type==="wildcard"&&R!==!1?w=>{const x=w[v.name];if(x==null)return["",v.name];if(!Array.isArray(x)||x.length===0)throw new TypeError(`Expected "${v.name}" to be a non-empty array`);return[x.map((B,E)=>{if(typeof B!="string")throw new TypeError(`Expected "${v.name}/${E}" to be a string`);return U(B)}).join(A)]}:w=>{const x=w[v.name];if(x==null)return["",v.name];if(typeof x!="string")throw new TypeError(`Expected "${v.name}" to be a string`);return[U(x)]}}function I(v,A={}){const{decode:R=decodeURIComponent,delimiter:U=e}=A,{regexp:w,keys:x}=_(v,A),B=x.map(E=>R===!1?r:E.type==="param"?R:Q=>Q.split(U).map(R));return function(Q){const j=w.exec(Q);if(!j)return!1;const q=j[0],L=Object.create(null);for(let N=1;N<j.length;N++){if(j[N]===void 0)continue;const z=x[N-1],Le=B[N-1];L[z.name]=Le(j[N])}return{path:q,params:L}}}function _(v,A={}){const{delimiter:R=e,end:U=!0,sensitive:w=!1,trailing:x=!0}=A,B=[],E=w?"":"i",Q=[];for(const L of Y(v,[])){const N=typeof L=="object"?L:i(L,A);for(const z of ee(N.tokens,0,[]))Q.push(je(z,R,B,N.originalPath))}let j=`^(?:${Q.join("|")})`;return x&&(j+=`(?:${l(R)}$)?`),j+=U?"$":`(?=${l(R)}|$)`,{regexp:new RegExp(j,E),keys:B}}function Y(v,A){if(Array.isArray(v))for(const R of v)Y(R,A);else A.push(v);return A}function*ee(v,A,R){if(A===v.length)return yield R;const U=v[A];if(U.type==="group")for(const w of ee(U.tokens,0,R.slice()))yield*ee(v,A+1,w);else R.push(U);yield*ee(v,A+1,R)}function je(v,A,R,U){let w="",x="",B=!0;for(const E of v){if(E.type==="text"){w+=l(E.value),x+=E.value,B||(B=E.value.includes(A));continue}if(E.type==="param"||E.type==="wildcard"){if(!B&&!x)throw new c(`Missing text before "${E.name}" ${E.type}`,U);E.type==="param"?w+=`(${_e(A,B?"":x)}+)`:w+="([\\s\\S]+)",R.push(E),x="",B=!1;continue}}return w}function _e(v,A){return A.length<2?v.length<2?`[^${l(v+A)}]`:`(?:(?!${l(v)})[^${l(A)}])`:v.length<2?`(?:(?!${l(A)})[^${l(v)}])`:`(?:(?!${l(A)}|${l(v)})[\\s\\S])`}function ye(v){let A="",R=0;function U(w){return Be(w)&&Me(v[R])?w:JSON.stringify(w)}for(;R<v.length;){const w=v[R++];if(w.type==="text"){A+=n(w.value);continue}if(w.type==="group"){A+=`{${ye(w.tokens)}}`;continue}if(w.type==="param"){A+=`:${U(w.name)}`;continue}if(w.type==="wildcard"){A+=`*${U(w.name)}`;continue}throw new TypeError(`Unknown token type: ${w.type}`)}return A}function Ee(v){return ye(v.tokens)}function Be(v){const[A,...R]=v;return t.test(A)&&R.every(U=>s.test(U))}function Me(v){return v&&v.type==="text"?!s.test(v.value[0]):!0}return K}var et=fe();function oe(e){"@babel/helpers - typeof";return oe=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},oe(e)}function tt(e,r){if(oe(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var s=t.call(e,r);if(oe(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function rt(e){var r=tt(e,"string");return oe(r)=="symbol"?r:r+""}function st(e,r,t){return(r=rt(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const O="/api/v2".replace(/\/+$/,""),Pe={csv:","};var M=class{constructor(e,r=O,t=m){this.basePath=r,this.axios=t,st(this,"configuration",void 0),e&&(this.configuration=e,this.basePath=e.basePath??r)}},at=class extends Error{constructor(e,r){super(r),this.field=e,this.name="RequiredError"}};const V={},C="https://example.com",h=function(e,r,t){if(t==null)throw new at(r,`Required parameter ${r} was null or undefined when calling ${e}.`)},S=async function(e,r){r&&r.accessToken&&(e.Authorization="Bearer "+(typeof r.accessToken=="function"?await r.accessToken():await r.accessToken))};function Se(e,r,t=""){r!=null&&(typeof r=="object"?Array.isArray(r)?r.forEach(s=>Se(e,s,t)):Object.keys(r).forEach(s=>Se(e,r[s],`${t}${t!==""?".":""}${s}`)):e.has(t)?e.append(t,r):e.set(t,r))}const y=function(e,...r){const t=new URLSearchParams(e.search);Se(t,r),e.search=t.toString()},T=function(e,r,t){const s=typeof e!="string";return(s&&t&&t.isJsonMime?t.isJsonMime(r.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},b=function(e){return e.pathname+e.search+e.hash},P=function(e,r,t,s){return(a=r,n=t)=>{const l={...e.options,url:(a.defaults.baseURL?"":(s==null?void 0:s.basePath)??n)+e.url};return a.request(l)}},lt={RevoluteJoint:"REVOLUTE_JOINT",PrismaticJoint:"PRISMATIC_JOINT"},ot={Abb:"abb",Fanuc:"fanuc",Kuka:"kuka",Universalrobots:"universalrobots",Yaskawa:"yaskawa"},nt=function(e){return{addApp:async(r,t,s,a={})=>{h("addApp","cell",r),h("addApp","app",t);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(t,c,e),{url:b(l),options:c}},clearApps:async(r,t,s={})=>{h("clearApps","cell",r);const a="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),t!==void 0&&(i.completion_timeout=t),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deleteApp:async(r,t,s,a={})=>{h("deleteApp","cell",r),h("deleteApp","app",t);const n="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"DELETE",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.completion_timeout=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},getApp:async(r,t,s={})=>{h("getApp","cell",r),h("getApp","app",t);const a="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},listApps:async(r,t={})=>{h("listApps","cell",r);const s="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},updateApp:async(r,t,s,a,n={})=>{h("updateApp","cell",r),h("updateApp","app",t),h("updateApp","app2",s);const l="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(r))).replace("{app}",encodeURIComponent(String(t))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};await S(p,e),a!==void 0&&(d.completion_timeout=a),p["Content-Type"]="application/json",y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=T(s,i,e),{url:b(o),options:i}}}},Z=function(e){const r=nt(e);return{async addApp(t,s,a,n){var i,p;const l=await r.addApp(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ApplicationApi.addApp"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async clearApps(t,s,a){var c,i;const n=await r.clearApps(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["ApplicationApi.clearApps"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deleteApp(t,s,a,n){var i,p;const l=await r.deleteApp(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ApplicationApi.deleteApp"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async getApp(t,s,a){var c,i;const n=await r.getApp(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["ApplicationApi.getApp"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async listApps(t,s){var o,c;const a=await r.listApps(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["ApplicationApi.listApps"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async updateApp(t,s,a,n,l){var p,d;const o=await r.updateApp(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["ApplicationApi.updateApp"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)}}};var Ie=class extends M{addApp(e,r,t,s){return Z(this.configuration).addApp(e,r,t,s).then(a=>a(this.axios,this.basePath))}clearApps(e,r,t){return Z(this.configuration).clearApps(e,r,t).then(s=>s(this.axios,this.basePath))}deleteApp(e,r,t,s){return Z(this.configuration).deleteApp(e,r,t,s).then(a=>a(this.axios,this.basePath))}getApp(e,r,t){return Z(this.configuration).getApp(e,r,t).then(s=>s(this.axios,this.basePath))}listApps(e,r){return Z(this.configuration).listApps(e,r).then(t=>t(this.axios,this.basePath))}updateApp(e,r,t,s,a){return Z(this.configuration).updateApp(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}};const ct=function(e){return{addBusIOService:async(r,t,s,a={})=>{h("addBusIOService","cell",r),h("addBusIOService","busIOType",t);const n="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(t,c,e),{url:b(l),options:c}},addModbusIO:async(r,t,s,a={})=>{h("addModbusIO","cell",r),h("addModbusIO","io",t),h("addModbusIO","modbusIOData",s);const n="/cells/{cell}/bus-ios/modbus/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}},addProfinetIO:async(r,t,s,a={})=>{h("addProfinetIO","cell",r),h("addProfinetIO","io",t),h("addProfinetIO","profinetIOData",s);const n="/cells/{cell}/bus-ios/profinet/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}},clearBusIOService:async(r,t,s={})=>{h("clearBusIOService","cell",r);const a="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),t!==void 0&&(i.completion_timeout=t),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deleteAllModbusIOs:async(r,t={})=>{h("deleteAllModbusIOs","cell",r);const s="/cells/{cell}/bus-ios/modbus/ios".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"DELETE",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},deleteAllProfinetIOs:async(r,t={})=>{h("deleteAllProfinetIOs","cell",r);const s="/cells/{cell}/bus-ios/profinet/ios".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"DELETE",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},deleteModbusIO:async(r,t,s={})=>{h("deleteModbusIO","cell",r),h("deleteModbusIO","io",t);const a="/cells/{cell}/bus-ios/modbus/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deleteProfinetIO:async(r,t,s={})=>{h("deleteProfinetIO","cell",r),h("deleteProfinetIO","io",t);const a="/cells/{cell}/bus-ios/profinet/ios/{io}".replace("{cell}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getBusIOService:async(r,t={})=>{h("getBusIOService","cell",r);const s="/cells/{cell}/bus-ios".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},getBusIOState:async(r,t={})=>{h("getBusIOState","cell",r);const s="/cells/{cell}/bus-ios/state".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},getBusIOValues:async(r,t,s={})=>{h("getBusIOValues","cell",r);const a="/cells/{cell}/bus-ios/ios/values".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),t&&(i.ios=t),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getProfinetDescription:async(r,t={})=>{h("getProfinetDescription","cell",r);const s="/cells/{cell}/bus-ios/profinet/description".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},getProfinetIOsFromFile:async(r,t,s,a={})=>{h("getProfinetIOsFromFile","cell",r);const n="/cells/{cell}/bus-ios/profinet/iofile".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),t!==void 0&&(p.input_offset=t),s!==void 0&&(p.output_offset=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},listBusIODescriptions:async(r,t={})=>{h("listBusIODescriptions","cell",r);const s="/cells/{cell}/bus-ios/ios/description".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listModbusIOs:async(r,t={})=>{h("listModbusIOs","cell",r);const s="/cells/{cell}/bus-ios/modbus/ios".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listProfinetIOs:async(r,t={})=>{h("listProfinetIOs","cell",r);const s="/cells/{cell}/bus-ios/profinet/ios".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},setBusIOValues:async(r,t,s={})=>{h("setBusIOValues","cell",r),h("setBusIOValues","iOValue",t);const a="/cells/{cell}/bus-ios/ios/values".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"PUT",...l,...s},c={},i={};await S(c,e),c["Content-Type"]="application/json",y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},o.data=T(t,o,e),{url:b(n),options:o}},setProfinetIOsFromFile:async(r,t,s={})=>{h("setProfinetIOsFromFile","cell",r),h("setProfinetIOsFromFile","profinetInputOutputConfig",t);const a="/cells/{cell}/bus-ios/profinet/iofile".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"PUT",...l,...s},c={},i={};await S(c,e),c["Content-Type"]="application/json",y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},o.data=T(t,o,e),{url:b(n),options:o}}}},F=function(e){const r=ct(e);return{async addBusIOService(t,s,a,n){var i,p;const l=await r.addBusIOService(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["BUSInputsOutputsApi.addBusIOService"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async addModbusIO(t,s,a,n){var i,p;const l=await r.addModbusIO(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["BUSInputsOutputsApi.addModbusIO"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async addProfinetIO(t,s,a,n){var i,p;const l=await r.addProfinetIO(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["BUSInputsOutputsApi.addProfinetIO"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async clearBusIOService(t,s,a){var c,i;const n=await r.clearBusIOService(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["BUSInputsOutputsApi.clearBusIOService"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deleteAllModbusIOs(t,s){var o,c;const a=await r.deleteAllModbusIOs(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["BUSInputsOutputsApi.deleteAllModbusIOs"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async deleteAllProfinetIOs(t,s){var o,c;const a=await r.deleteAllProfinetIOs(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["BUSInputsOutputsApi.deleteAllProfinetIOs"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async deleteModbusIO(t,s,a){var c,i;const n=await r.deleteModbusIO(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["BUSInputsOutputsApi.deleteModbusIO"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deleteProfinetIO(t,s,a){var c,i;const n=await r.deleteProfinetIO(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["BUSInputsOutputsApi.deleteProfinetIO"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getBusIOService(t,s){var o,c;const a=await r.getBusIOService(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["BUSInputsOutputsApi.getBusIOService"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getBusIOState(t,s){var o,c;const a=await r.getBusIOState(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["BUSInputsOutputsApi.getBusIOState"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getBusIOValues(t,s,a){var c,i;const n=await r.getBusIOValues(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["BUSInputsOutputsApi.getBusIOValues"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getProfinetDescription(t,s){var o,c;const a=await r.getProfinetDescription(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["BUSInputsOutputsApi.getProfinetDescription"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getProfinetIOsFromFile(t,s,a,n){var i,p;const l=await r.getProfinetIOsFromFile(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["BUSInputsOutputsApi.getProfinetIOsFromFile"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async listBusIODescriptions(t,s){var o,c;const a=await r.listBusIODescriptions(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["BUSInputsOutputsApi.listBusIODescriptions"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listModbusIOs(t,s){var o,c;const a=await r.listModbusIOs(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["BUSInputsOutputsApi.listModbusIOs"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listProfinetIOs(t,s){var o,c;const a=await r.listProfinetIOs(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["BUSInputsOutputsApi.listProfinetIOs"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async setBusIOValues(t,s,a){var c,i;const n=await r.setBusIOValues(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["BUSInputsOutputsApi.setBusIOValues"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async setProfinetIOsFromFile(t,s,a){var c,i;const n=await r.setProfinetIOsFromFile(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["BUSInputsOutputsApi.setProfinetIOsFromFile"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)}}};var it=class extends M{addBusIOService(e,r,t,s){return F(this.configuration).addBusIOService(e,r,t,s).then(a=>a(this.axios,this.basePath))}addModbusIO(e,r,t,s){return F(this.configuration).addModbusIO(e,r,t,s).then(a=>a(this.axios,this.basePath))}addProfinetIO(e,r,t,s){return F(this.configuration).addProfinetIO(e,r,t,s).then(a=>a(this.axios,this.basePath))}clearBusIOService(e,r,t){return F(this.configuration).clearBusIOService(e,r,t).then(s=>s(this.axios,this.basePath))}deleteAllModbusIOs(e,r){return F(this.configuration).deleteAllModbusIOs(e,r).then(t=>t(this.axios,this.basePath))}deleteAllProfinetIOs(e,r){return F(this.configuration).deleteAllProfinetIOs(e,r).then(t=>t(this.axios,this.basePath))}deleteModbusIO(e,r,t){return F(this.configuration).deleteModbusIO(e,r,t).then(s=>s(this.axios,this.basePath))}deleteProfinetIO(e,r,t){return F(this.configuration).deleteProfinetIO(e,r,t).then(s=>s(this.axios,this.basePath))}getBusIOService(e,r){return F(this.configuration).getBusIOService(e,r).then(t=>t(this.axios,this.basePath))}getBusIOState(e,r){return F(this.configuration).getBusIOState(e,r).then(t=>t(this.axios,this.basePath))}getBusIOValues(e,r,t){return F(this.configuration).getBusIOValues(e,r,t).then(s=>s(this.axios,this.basePath))}getProfinetDescription(e,r){return F(this.configuration).getProfinetDescription(e,r).then(t=>t(this.axios,this.basePath))}getProfinetIOsFromFile(e,r,t,s){return F(this.configuration).getProfinetIOsFromFile(e,r,t,s).then(a=>a(this.axios,this.basePath))}listBusIODescriptions(e,r){return F(this.configuration).listBusIODescriptions(e,r).then(t=>t(this.axios,this.basePath))}listModbusIOs(e,r){return F(this.configuration).listModbusIOs(e,r).then(t=>t(this.axios,this.basePath))}listProfinetIOs(e,r){return F(this.configuration).listProfinetIOs(e,r).then(t=>t(this.axios,this.basePath))}setBusIOValues(e,r,t){return F(this.configuration).setBusIOValues(e,r,t).then(s=>s(this.axios,this.basePath))}setProfinetIOsFromFile(e,r,t){return F(this.configuration).setProfinetIOsFromFile(e,r,t).then(s=>s(this.axios,this.basePath))}};const pt=function(e){return{checkCellVersionUpdate:async(r,t,s={})=>{h("checkCellVersionUpdate","cell",r),h("checkCellVersionUpdate","channel",t);const a="/cells/{cell}/update".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),t!==void 0&&(i.channel=t),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deleteCell:async(r,t,s={})=>{h("deleteCell","cell",r);const a="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),t!==void 0&&(i.completion_timeout=t),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deployCell:async(r,t,s={})=>{h("deployCell","cell",r);const a=new URL("/cells",C);let n;e&&(n=e.baseOptions);const l={method:"POST",...n,...s},o={},c={};await S(o,e),t!==void 0&&(c.completion_timeout=t),o["Content-Type"]="application/json",y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...s.headers},l.data=T(r,l,e),{url:b(a),options:l}},getCell:async(r,t={})=>{h("getCell","cell",r);const s="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},getCellStatus:async(r,t={})=>{h("getCellStatus","cell",r);const s="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listCells:async(r={})=>{const t=new URL("/cells",C);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},n={},l={};await S(n,e),y(t,l);let o=s&&s.headers?s.headers:{};return a.headers={...n,...o,...r.headers},{url:b(t),options:a}},setCellStatus:async(r,t,s={})=>{h("setCellStatus","cell",r),h("setCellStatus","operatingState",t);const a="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"PUT",...l,...s},c={},i={};await S(c,e),t!==void 0&&(i.operating_state=t),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},updateCell:async(r,t,s,a={})=>{h("updateCell","cell",r),h("updateCell","cell2",t);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(t,c,e),{url:b(l),options:c}},updateCellVersion:async(r,t,s={})=>{h("updateCellVersion","cell",r),h("updateCellVersion","updateCellVersionRequest",t);const a="/cells/{cell}/update".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"PUT",...l,...s},c={},i={};await S(c,e),c["Content-Type"]="application/json",y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},o.data=T(t,o,e),{url:b(n),options:o}}}},J=function(e){const r=pt(e);return{async checkCellVersionUpdate(t,s,a){var c,i;const n=await r.checkCellVersionUpdate(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["CellApi.checkCellVersionUpdate"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deleteCell(t,s,a){var c,i;const n=await r.deleteCell(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["CellApi.deleteCell"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deployCell(t,s,a){var c,i;const n=await r.deployCell(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["CellApi.deployCell"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getCell(t,s){var o,c;const a=await r.getCell(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["CellApi.getCell"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getCellStatus(t,s){var o,c;const a=await r.getCellStatus(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["CellApi.getCellStatus"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listCells(t){var l,o;const s=await r.listCells(t),a=(e==null?void 0:e.serverIndex)??0,n=(o=(l=V["CellApi.listCells"])==null?void 0:l[a])==null?void 0:o.url;return(c,i)=>P(s,m,O,e)(c,n||i)},async setCellStatus(t,s,a){var c,i;const n=await r.setCellStatus(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["CellApi.setCellStatus"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async updateCell(t,s,a,n){var i,p;const l=await r.updateCell(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["CellApi.updateCell"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async updateCellVersion(t,s,a){var c,i;const n=await r.updateCellVersion(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["CellApi.updateCellVersion"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)}}};var dt=class extends M{checkCellVersionUpdate(e,r,t){return J(this.configuration).checkCellVersionUpdate(e,r,t).then(s=>s(this.axios,this.basePath))}deleteCell(e,r,t){return J(this.configuration).deleteCell(e,r,t).then(s=>s(this.axios,this.basePath))}deployCell(e,r,t){return J(this.configuration).deployCell(e,r,t).then(s=>s(this.axios,this.basePath))}getCell(e,r){return J(this.configuration).getCell(e,r).then(t=>t(this.axios,this.basePath))}getCellStatus(e,r){return J(this.configuration).getCellStatus(e,r).then(t=>t(this.axios,this.basePath))}listCells(e){return J(this.configuration).listCells(e).then(r=>r(this.axios,this.basePath))}setCellStatus(e,r,t){return J(this.configuration).setCellStatus(e,r,t).then(s=>s(this.axios,this.basePath))}updateCell(e,r,t,s){return J(this.configuration).updateCell(e,r,t,s).then(a=>a(this.axios,this.basePath))}updateCellVersion(e,r,t){return J(this.configuration).updateCellVersion(e,r,t).then(s=>s(this.axios,this.basePath))}};const ht=function(e){return{addRobotController:async(r,t,s,a={})=>{h("addRobotController","cell",r),h("addRobotController","robotController",t);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.completion_timeout=s),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(t,c,e),{url:b(l),options:c}},clearRobotControllers:async(r,t,s={})=>{h("clearRobotControllers","cell",r);const a="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),t!==void 0&&(i.completion_timeout=t),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deleteRobotController:async(r,t,s,a={})=>{h("deleteRobotController","cell",r),h("deleteRobotController","controller",t);const n="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"DELETE",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.completion_timeout=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},getControllerDescription:async(r,t,s={})=>{h("getControllerDescription","cell",r),h("getControllerDescription","controller",t);const a="/cells/{cell}/controllers/{controller}/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getCoordinateSystem:async(r,t,s,a,n={})=>{h("getCoordinateSystem","cell",r),h("getCoordinateSystem","controller",t),h("getCoordinateSystem","coordinateSystem",s);const l="/cells/{cell}/controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(s))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...n},p={},d={};await S(p,e),a!==void 0&&(d.orientation_type=a),y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:b(o),options:i}},getCurrentRobotControllerState:async(r,t,s={})=>{h("getCurrentRobotControllerState","cell",r),h("getCurrentRobotControllerState","controller",t);const a="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getRobotController:async(r,t,s={})=>{h("getRobotController","cell",r),h("getRobotController","controller",t);const a="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getVirtualControllerConfiguration:async(r,t,s={})=>{h("getVirtualControllerConfiguration","cell",r),h("getVirtualControllerConfiguration","controller",t);const a="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},listCoordinateSystems:async(r,t,s,a={})=>{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))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.orientation_type=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},listRobotControllers:async(r,t={})=>{h("listRobotControllers","cell",r);const s="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},setDefaultMode:async(r,t,s,a={})=>{h("setDefaultMode","cell",r),h("setDefaultMode","controller",t),h("setDefaultMode","mode",s);const n="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.mode=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},streamFreeDrive:async(r,t,s,a={})=>{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))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.response_rate=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},streamRobotControllerState:async(r,t,s,a,n={})=>{h("streamRobotControllerState","cell",r),h("streamRobotControllerState","controller",t);const l="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...n},p={},d={};await S(p,e),s!==void 0&&(d.response_rate=s),a!==void 0&&(d.add_controller_timeout=a),y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:b(o),options:i}},updateRobotController:async(r,t,s,a,n={})=>{h("updateRobotController","cell",r),h("updateRobotController","controller",t),h("updateRobotController","robotController",s);const l="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};await S(p,e),a!==void 0&&(d.completion_timeout=a),p["Content-Type"]="application/json",y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=T(s,i,e),{url:b(o),options:i}}}},g=function(e){const r=ht(e);return{async addRobotController(t,s,a,n){var i,p;const l=await r.addRobotController(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.addRobotController"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async clearRobotControllers(t,s,a){var c,i;const n=await r.clearRobotControllers(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["ControllerApi.clearRobotControllers"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deleteRobotController(t,s,a,n){var i,p;const l=await r.deleteRobotController(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.deleteRobotController"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async getControllerDescription(t,s,a){var c,i;const n=await r.getControllerDescription(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["ControllerApi.getControllerDescription"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getCoordinateSystem(t,s,a,n,l){var p,d;const o=await r.getCoordinateSystem(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["ControllerApi.getCoordinateSystem"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)},async getCurrentRobotControllerState(t,s,a){var c,i;const n=await r.getCurrentRobotControllerState(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["ControllerApi.getCurrentRobotControllerState"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getRobotController(t,s,a){var c,i;const n=await r.getRobotController(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["ControllerApi.getRobotController"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getVirtualControllerConfiguration(t,s,a){var c,i;const n=await r.getVirtualControllerConfiguration(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["ControllerApi.getVirtualControllerConfiguration"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async listCoordinateSystems(t,s,a,n){var i,p;const l=await r.listCoordinateSystems(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.listCoordinateSystems"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async listRobotControllers(t,s){var o,c;const a=await r.listRobotControllers(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["ControllerApi.listRobotControllers"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async setDefaultMode(t,s,a,n){var i,p;const l=await r.setDefaultMode(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.setDefaultMode"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async streamFreeDrive(t,s,a,n){var i,p;const l=await r.streamFreeDrive(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerApi.streamFreeDrive"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async streamRobotControllerState(t,s,a,n,l){var p,d;const o=await r.streamRobotControllerState(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["ControllerApi.streamRobotControllerState"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)},async updateRobotController(t,s,a,n,l){var p,d;const o=await r.updateRobotController(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["ControllerApi.updateRobotController"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)}}};var ut=class extends M{addRobotController(e,r,t,s){return g(this.configuration).addRobotController(e,r,t,s).then(a=>a(this.axios,this.basePath))}clearRobotControllers(e,r,t){return g(this.configuration).clearRobotControllers(e,r,t).then(s=>s(this.axios,this.basePath))}deleteRobotController(e,r,t,s){return g(this.configuration).deleteRobotController(e,r,t,s).then(a=>a(this.axios,this.basePath))}getControllerDescription(e,r,t){return g(this.configuration).getControllerDescription(e,r,t).then(s=>s(this.axios,this.basePath))}getCoordinateSystem(e,r,t,s,a){return g(this.configuration).getCoordinateSystem(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}getCurrentRobotControllerState(e,r,t){return g(this.configuration).getCurrentRobotControllerState(e,r,t).then(s=>s(this.axios,this.basePath))}getRobotController(e,r,t){return g(this.configuration).getRobotController(e,r,t).then(s=>s(this.axios,this.basePath))}getVirtualControllerConfiguration(e,r,t){return g(this.configuration).getVirtualControllerConfiguration(e,r,t).then(s=>s(this.axios,this.basePath))}listCoordinateSystems(e,r,t,s){return g(this.configuration).listCoordinateSystems(e,r,t,s).then(a=>a(this.axios,this.basePath))}listRobotControllers(e,r){return g(this.configuration).listRobotControllers(e,r).then(t=>t(this.axios,this.basePath))}setDefaultMode(e,r,t,s){return g(this.configuration).setDefaultMode(e,r,t,s).then(a=>a(this.axios,this.basePath))}streamFreeDrive(e,r,t,s){return g(this.configuration).streamFreeDrive(e,r,t,s).then(a=>a(this.axios,this.basePath))}streamRobotControllerState(e,r,t,s,a){return g(this.configuration).streamRobotControllerState(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}updateRobotController(e,r,t,s,a){return g(this.configuration).updateRobotController(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}};const mt=function(e){return{listIODescriptions:async(r,t,s,a,n,l,o={})=>{h("listIODescriptions","cell",r),h("listIODescriptions","controller",t);const c="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),i=new URL(c,C);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...o},u={},I={};await S(u,e),s&&(I.ios=s),a!==void 0&&(I.direction=a),n!==void 0&&(I.value_type=n),l!==void 0&&(I.group=l),y(i,I);let _=p&&p.headers?p.headers:{};return d.headers={...u,..._,...o.headers},{url:b(i),options:d}},listIOValues:async(r,t,s,a={})=>{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))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),s&&(p.ios=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},setOutputValues:async(r,t,s,a={})=>{h("setOutputValues","cell",r),h("setOutputValues","controller",t),h("setOutputValues","iOValue",s);const n="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}},streamIOValues:async(r,t,s,a={})=>{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))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),s&&(p.ios=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},waitForIOEvent:async(r,t,s,a={})=>{h("waitForIOEvent","cell",r),h("waitForIOEvent","controller",t),h("waitForIOEvent","waitForIOEventRequest",s);const n="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}}}},re=function(e){const r=mt(e);return{async listIODescriptions(t,s,a,n,l,o,c){var u,I;const i=await r.listIODescriptions(t,s,a,n,l,o,c),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(_,Y)=>P(i,m,O,e)(_,d||Y)},async listIOValues(t,s,a,n){var i,p;const l=await r.listIOValues(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerInputsOutputsApi.listIOValues"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async setOutputValues(t,s,a,n){var i,p;const l=await r.setOutputValues(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerInputsOutputsApi.setOutputValues"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async streamIOValues(t,s,a,n){var i,p;const l=await r.streamIOValues(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerInputsOutputsApi.streamIOValues"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async waitForIOEvent(t,s,a,n){var i,p;const l=await r.waitForIOEvent(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["ControllerInputsOutputsApi.waitForIOEvent"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)}}};var Ot=class extends M{listIODescriptions(e,r,t,s,a,n,l){return re(this.configuration).listIODescriptions(e,r,t,s,a,n,l).then(o=>o(this.axios,this.basePath))}listIOValues(e,r,t,s){return re(this.configuration).listIOValues(e,r,t,s).then(a=>a(this.axios,this.basePath))}setOutputValues(e,r,t,s){return re(this.configuration).setOutputValues(e,r,t,s).then(a=>a(this.axios,this.basePath))}streamIOValues(e,r,t,s){return re(this.configuration).streamIOValues(e,r,t,s).then(a=>a(this.axios,this.basePath))}waitForIOEvent(e,r,t,s){return re(this.configuration).waitForIOEvent(e,r,t,s).then(a=>a(this.axios,this.basePath))}};const Vt=function(e){return{executeJogging:async(r,t,s,a={})=>{h("executeJogging","cell",r),h("executeJogging","controller",t),h("executeJogging","executeJoggingRequest",s);const n="/cells/{cell}/controllers/{controller}/execution/jogging".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}}}},Ct=function(e){const r=Vt(e);return{async executeJogging(t,s,a,n){var i,p;const l=await r.executeJogging(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["JoggingApi.executeJogging"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)}}};var St=class extends M{executeJogging(e,r,t,s){return Ct(this.configuration).executeJogging(e,r,t,s).then(a=>a(this.axios,this.basePath))}};const yt=function(e){return{forwardKinematics:async(r,t,s={})=>{h("forwardKinematics","cell",r),h("forwardKinematics","forwardKinematicsRequest",t);const a="/cells/{cell}/kinematic/forward".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"POST",...l,...s},c={},i={};await S(c,e),c["Content-Type"]="application/json",y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},o.data=T(t,o,e),{url:b(n),options:o}},inverseKinematics:async(r,t,s={})=>{h("inverseKinematics","cell",r),h("inverseKinematics","inverseKinematicsRequest",t);const a="/cells/{cell}/kinematic/inverse".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"POST",...l,...s},c={},i={};await S(c,e),c["Content-Type"]="application/json",y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},o.data=T(t,o,e),{url:b(n),options:o}}}},ve=function(e){const r=yt(e);return{async forwardKinematics(t,s,a){var c,i;const n=await r.forwardKinematics(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["KinematicsApi.forwardKinematics"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async inverseKinematics(t,s,a){var c,i;const n=await r.inverseKinematics(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["KinematicsApi.inverseKinematics"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)}}};var bt=class extends M{forwardKinematics(e,r,t){return ve(this.configuration).forwardKinematics(e,r,t).then(s=>s(this.axios,this.basePath))}inverseKinematics(e,r,t){return ve(this.configuration).inverseKinematics(e,r,t).then(s=>s(this.axios,this.basePath))}};const Pt=function(e){return{getCurrentMotionGroupState:async(r,t,s,a,n={})=>{h("getCurrentMotionGroupState","cell",r),h("getCurrentMotionGroupState","controller",t),h("getCurrentMotionGroupState","motionGroup",s);const l="/cells/{cell}/controllers/{controller}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(s))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"GET",...c,...n},p={},d={};await S(p,e),a!==void 0&&(d.response_coordinate_system=a),y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:b(o),options:i}},getMotionGroupDescription:async(r,t,s,a={})=>{h("getMotionGroupDescription","cell",r),h("getMotionGroupDescription","controller",t),h("getMotionGroupDescription","motionGroup",s);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(s))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},streamMotionGroupState:async(r,t,s,a,n,l={})=>{h("streamMotionGroupState","cell",r),h("streamMotionGroupState","controller",t),h("streamMotionGroupState","motionGroup",s);const o="/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(s))),c=new URL(o,C);let i;e&&(i=e.baseOptions);const p={method:"GET",...i,...l},d={},u={};await S(d,e),a!==void 0&&(u.response_rate=a),n!==void 0&&(u.response_coordinate_system=n),y(c,u);let I=i&&i.headers?i.headers:{};return p.headers={...d,...I,...l.headers},{url:b(c),options:p}}}},ue=function(e){const r=Pt(e);return{async getCurrentMotionGroupState(t,s,a,n,l){var p,d;const o=await r.getCurrentMotionGroupState(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["MotionGroupApi.getCurrentMotionGroupState"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)},async getMotionGroupDescription(t,s,a,n){var i,p;const l=await r.getMotionGroupDescription(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["MotionGroupApi.getMotionGroupDescription"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async streamMotionGroupState(t,s,a,n,l,o){var d,u;const c=await r.streamMotionGroupState(t,s,a,n,l,o),i=(e==null?void 0:e.serverIndex)??0,p=(u=(d=V["MotionGroupApi.streamMotionGroupState"])==null?void 0:d[i])==null?void 0:u.url;return(I,_)=>P(c,m,O,e)(I,p||_)}}};var It=class extends M{getCurrentMotionGroupState(e,r,t,s,a){return ue(this.configuration).getCurrentMotionGroupState(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}getMotionGroupDescription(e,r,t,s){return ue(this.configuration).getMotionGroupDescription(e,r,t,s).then(a=>a(this.axios,this.basePath))}streamMotionGroupState(e,r,t,s,a,n){return ue(this.configuration).streamMotionGroupState(e,r,t,s,a,n).then(l=>l(this.axios,this.basePath))}};const vt=function(e){return{getMotionGroupCollisionModel:async(r,t={})=>{h("getMotionGroupCollisionModel","motionGroupModel",r);const s="/motion-group-models/{motion-group-model}/collision".replace("{motion-group-model}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},getMotionGroupGlbModel:async(r,t={})=>{h("getMotionGroupGlbModel","motionGroupModel",r);const s="/motion-group-models/{motion-group-model}/glb".replace("{motion-group-model}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},getMotionGroupKinematicModel:async(r,t={})=>{h("getMotionGroupKinematicModel","motionGroupModel",r);const s="/motion-group-models/{motion-group-model}/kinematic".replace("{motion-group-model}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},getMotionGroupModels:async(r={})=>{const t=new URL("/motion-group-models",C);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},n={},l={};await S(n,e),y(t,l);let o=s&&s.headers?s.headers:{};return a.headers={...n,...o,...r.headers},{url:b(t),options:a}},getMotionGroupUsdModel:async(r,t={})=>{h("getMotionGroupUsdModel","motionGroupModel",r);const s="/motion-group-models/{motion-group-model}/usd".replace("{motion-group-model}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}}}},se=function(e){const r=vt(e);return{async getMotionGroupCollisionModel(t,s){var o,c;const a=await r.getMotionGroupCollisionModel(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["MotionGroupModelsApi.getMotionGroupCollisionModel"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getMotionGroupGlbModel(t,s){var o,c;const a=await r.getMotionGroupGlbModel(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["MotionGroupModelsApi.getMotionGroupGlbModel"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getMotionGroupKinematicModel(t,s){var o,c;const a=await r.getMotionGroupKinematicModel(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["MotionGroupModelsApi.getMotionGroupKinematicModel"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getMotionGroupModels(t){var l,o;const s=await r.getMotionGroupModels(t),a=(e==null?void 0:e.serverIndex)??0,n=(o=(l=V["MotionGroupModelsApi.getMotionGroupModels"])==null?void 0:l[a])==null?void 0:o.url;return(c,i)=>P(s,m,O,e)(c,n||i)},async getMotionGroupUsdModel(t,s){var o,c;const a=await r.getMotionGroupUsdModel(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["MotionGroupModelsApi.getMotionGroupUsdModel"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)}}};var xt=class extends M{getMotionGroupCollisionModel(e,r){return se(this.configuration).getMotionGroupCollisionModel(e,r).then(t=>t(this.axios,this.basePath))}getMotionGroupGlbModel(e,r){return se(this.configuration).getMotionGroupGlbModel(e,r).then(t=>t(this.axios,this.basePath))}getMotionGroupKinematicModel(e,r){return se(this.configuration).getMotionGroupKinematicModel(e,r).then(t=>t(this.axios,this.basePath))}getMotionGroupModels(e){return se(this.configuration).getMotionGroupModels(e).then(r=>r(this.axios,this.basePath))}getMotionGroupUsdModel(e,r){return se(this.configuration).getMotionGroupUsdModel(e,r).then(t=>t(this.axios,this.basePath))}};const wt=function(e){return{deleteStoredCollider:async(r,t,s={})=>{h("deleteStoredCollider","cell",r),h("deleteStoredCollider","collider",t);const a="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(r))).replace("{collider}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deleteStoredCollisionLinkChain:async(r,t,s={})=>{h("deleteStoredCollisionLinkChain","cell",r),h("deleteStoredCollisionLinkChain","linkChain",t);const a="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(r))).replace("{link-chain}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deleteStoredCollisionTool:async(r,t,s={})=>{h("deleteStoredCollisionTool","cell",r),h("deleteStoredCollisionTool","tool",t);const a="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(r))).replace("{tool}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getStoredCollider:async(r,t,s={})=>{h("getStoredCollider","cell",r),h("getStoredCollider","collider",t);const a="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(r))).replace("{collider}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getStoredCollisionLinkChain:async(r,t,s={})=>{h("getStoredCollisionLinkChain","cell",r),h("getStoredCollisionLinkChain","linkChain",t);const a="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(r))).replace("{link-chain}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getStoredCollisionTool:async(r,t,s={})=>{h("getStoredCollisionTool","cell",r),h("getStoredCollisionTool","tool",t);const a="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(r))).replace("{tool}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},listCollisionLinkChains:async(r,t={})=>{h("listCollisionLinkChains","cell",r);const s="/cells/{cell}/store/collision/link-chains".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listCollisionLinkChainsKeys:async(r,t={})=>{h("listCollisionLinkChainsKeys","cell",r);const s="/cells/{cell}/store/collision/link-chains-keys".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listStoredColliders:async(r,t={})=>{h("listStoredColliders","cell",r);const s="/cells/{cell}/store/collision/colliders".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listStoredCollidersKeys:async(r,t={})=>{h("listStoredCollidersKeys","cell",r);const s="/cells/{cell}/store/collision/colliders-keys".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listStoredCollisionTools:async(r,t={})=>{h("listStoredCollisionTools","cell",r);const s="/cells/{cell}/store/collision/tools".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listStoredCollisionToolsKeys:async(r,t={})=>{h("listStoredCollisionToolsKeys","cell",r);const s="/cells/{cell}/store/collision/tools-keys".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},storeCollider:async(r,t,s,a={})=>{h("storeCollider","cell",r),h("storeCollider","collider",t),h("storeCollider","collider2",s);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(r))).replace("{collider}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}},storeCollisionLinkChain:async(r,t,s,a={})=>{h("storeCollisionLinkChain","cell",r),h("storeCollisionLinkChain","linkChain",t),h("storeCollisionLinkChain","collider",s);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(r))).replace("{link-chain}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}},storeCollisionTool:async(r,t,s,a={})=>{h("storeCollisionTool","cell",r),h("storeCollisionTool","tool",t),h("storeCollisionTool","requestBody",s);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(r))).replace("{tool}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}}}},k=function(e){const r=wt(e);return{async deleteStoredCollider(t,s,a){var c,i;const n=await r.deleteStoredCollider(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreCollisionComponentsApi.deleteStoredCollider"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deleteStoredCollisionLinkChain(t,s,a){var c,i;const n=await r.deleteStoredCollisionLinkChain(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreCollisionComponentsApi.deleteStoredCollisionLinkChain"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deleteStoredCollisionTool(t,s,a){var c,i;const n=await r.deleteStoredCollisionTool(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreCollisionComponentsApi.deleteStoredCollisionTool"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getStoredCollider(t,s,a){var c,i;const n=await r.getStoredCollider(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreCollisionComponentsApi.getStoredCollider"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getStoredCollisionLinkChain(t,s,a){var c,i;const n=await r.getStoredCollisionLinkChain(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreCollisionComponentsApi.getStoredCollisionLinkChain"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getStoredCollisionTool(t,s,a){var c,i;const n=await r.getStoredCollisionTool(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreCollisionComponentsApi.getStoredCollisionTool"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async listCollisionLinkChains(t,s){var o,c;const a=await r.listCollisionLinkChains(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreCollisionComponentsApi.listCollisionLinkChains"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listCollisionLinkChainsKeys(t,s){var o,c;const a=await r.listCollisionLinkChainsKeys(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreCollisionComponentsApi.listCollisionLinkChainsKeys"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listStoredColliders(t,s){var o,c;const a=await r.listStoredColliders(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreCollisionComponentsApi.listStoredColliders"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listStoredCollidersKeys(t,s){var o,c;const a=await r.listStoredCollidersKeys(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreCollisionComponentsApi.listStoredCollidersKeys"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listStoredCollisionTools(t,s){var o,c;const a=await r.listStoredCollisionTools(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreCollisionComponentsApi.listStoredCollisionTools"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listStoredCollisionToolsKeys(t,s){var o,c;const a=await r.listStoredCollisionToolsKeys(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreCollisionComponentsApi.listStoredCollisionToolsKeys"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async storeCollider(t,s,a,n){var i,p;const l=await r.storeCollider(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["StoreCollisionComponentsApi.storeCollider"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async storeCollisionLinkChain(t,s,a,n){var i,p;const l=await r.storeCollisionLinkChain(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["StoreCollisionComponentsApi.storeCollisionLinkChain"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async storeCollisionTool(t,s,a,n){var i,p;const l=await r.storeCollisionTool(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["StoreCollisionComponentsApi.storeCollisionTool"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)}}};var At=class extends M{deleteStoredCollider(e,r,t){return k(this.configuration).deleteStoredCollider(e,r,t).then(s=>s(this.axios,this.basePath))}deleteStoredCollisionLinkChain(e,r,t){return k(this.configuration).deleteStoredCollisionLinkChain(e,r,t).then(s=>s(this.axios,this.basePath))}deleteStoredCollisionTool(e,r,t){return k(this.configuration).deleteStoredCollisionTool(e,r,t).then(s=>s(this.axios,this.basePath))}getStoredCollider(e,r,t){return k(this.configuration).getStoredCollider(e,r,t).then(s=>s(this.axios,this.basePath))}getStoredCollisionLinkChain(e,r,t){return k(this.configuration).getStoredCollisionLinkChain(e,r,t).then(s=>s(this.axios,this.basePath))}getStoredCollisionTool(e,r,t){return k(this.configuration).getStoredCollisionTool(e,r,t).then(s=>s(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,s){return k(this.configuration).storeCollider(e,r,t,s).then(a=>a(this.axios,this.basePath))}storeCollisionLinkChain(e,r,t,s){return k(this.configuration).storeCollisionLinkChain(e,r,t,s).then(a=>a(this.axios,this.basePath))}storeCollisionTool(e,r,t,s){return k(this.configuration).storeCollisionTool(e,r,t,s).then(a=>a(this.axios,this.basePath))}};const Rt=function(e){return{deleteStoredCollisionSetup:async(r,t,s={})=>{h("deleteStoredCollisionSetup","cell",r),h("deleteStoredCollisionSetup","setup",t);const a="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(r))).replace("{setup}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getStoredCollisionSetup:async(r,t,s={})=>{h("getStoredCollisionSetup","cell",r),h("getStoredCollisionSetup","setup",t);const a="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(r))).replace("{setup}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},listStoredCollisionSetups:async(r,t={})=>{h("listStoredCollisionSetups","cell",r);const s="/cells/{cell}/store/collision/setups".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},listStoredCollisionSetupsKeys:async(r,t={})=>{h("listStoredCollisionSetupsKeys","cell",r);const s="/cells/{cell}/store/collision/setups-keys".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},storeCollisionSetup:async(r,t,s,a={})=>{h("storeCollisionSetup","cell",r),h("storeCollisionSetup","setup",t),h("storeCollisionSetup","collisionSetup",s);const n="/cells/{cell}/store/collision/setups/{setup}".replace("{cell}",encodeURIComponent(String(r))).replace("{setup}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}}}},ae=function(e){const r=Rt(e);return{async deleteStoredCollisionSetup(t,s,a){var c,i;const n=await r.deleteStoredCollisionSetup(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreCollisionSetupsApi.deleteStoredCollisionSetup"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getStoredCollisionSetup(t,s,a){var c,i;const n=await r.getStoredCollisionSetup(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreCollisionSetupsApi.getStoredCollisionSetup"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async listStoredCollisionSetups(t,s){var o,c;const a=await r.listStoredCollisionSetups(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreCollisionSetupsApi.listStoredCollisionSetups"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async listStoredCollisionSetupsKeys(t,s){var o,c;const a=await r.listStoredCollisionSetupsKeys(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreCollisionSetupsApi.listStoredCollisionSetupsKeys"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async storeCollisionSetup(t,s,a,n){var i,p;const l=await r.storeCollisionSetup(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["StoreCollisionSetupsApi.storeCollisionSetup"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)}}};var Ut=class extends M{deleteStoredCollisionSetup(e,r,t){return ae(this.configuration).deleteStoredCollisionSetup(e,r,t).then(s=>s(this.axios,this.basePath))}getStoredCollisionSetup(e,r,t){return ae(this.configuration).getStoredCollisionSetup(e,r,t).then(s=>s(this.axios,this.basePath))}listStoredCollisionSetups(e,r){return ae(this.configuration).listStoredCollisionSetups(e,r).then(t=>t(this.axios,this.basePath))}listStoredCollisionSetupsKeys(e,r){return ae(this.configuration).listStoredCollisionSetupsKeys(e,r).then(t=>t(this.axios,this.basePath))}storeCollisionSetup(e,r,t,s){return ae(this.configuration).storeCollisionSetup(e,r,t,s).then(a=>a(this.axios,this.basePath))}};const Tt=function(e){return{clearAllObjects:async(r,t={})=>{h("clearAllObjects","cell",r);const s="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"DELETE",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},deleteObject:async(r,t,s={})=>{h("deleteObject","cell",r),h("deleteObject","key",t);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(r))).replace("{key}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getObject:async(r,t,s={})=>{h("getObject","cell",r),h("getObject","key",t);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(r))).replace("{key}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getObjectMetadata:async(r,t,s={})=>{h("getObjectMetadata","cell",r),h("getObjectMetadata","key",t);const a="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(r))).replace("{key}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"HEAD",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},listAllObjectKeys:async(r,t={})=>{h("listAllObjectKeys","cell",r);const s="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(r))),a=new URL(s,C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...t},o={},c={};await S(o,e),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...t.headers},{url:b(a),options:l}},storeObject:async(r,t,s,a,n={})=>{h("storeObject","cell",r),h("storeObject","key",t);const l="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(r))).replace("{key}",encodeURIComponent(String(t))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={},u=new(e&&e.formDataCtor||FormData);await S(p,e),a!==void 0&&u.append("any_value",new Blob([JSON.stringify(a)],{type:"application/json"})),p["Content-Type"]="multipart/form-data",s!=null&&(p["X-Metadata"]=typeof s=="string"?s:JSON.stringify(s)),y(o,d);let I=c&&c.headers?c.headers:{};return i.headers={...p,...I,...n.headers},i.data=u,{url:b(o),options:i}}}},f=function(e){const r=Tt(e);return{async clearAllObjects(t,s){var o,c;const a=await r.clearAllObjects(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreObjectApi.clearAllObjects"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async deleteObject(t,s,a){var c,i;const n=await r.deleteObject(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreObjectApi.deleteObject"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getObject(t,s,a){var c,i;const n=await r.getObject(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreObjectApi.getObject"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getObjectMetadata(t,s,a){var c,i;const n=await r.getObjectMetadata(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["StoreObjectApi.getObjectMetadata"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async listAllObjectKeys(t,s){var o,c;const a=await r.listAllObjectKeys(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["StoreObjectApi.listAllObjectKeys"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async storeObject(t,s,a,n,l){var p,d;const o=await r.storeObject(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["StoreObjectApi.storeObject"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)}}};var jt=class extends M{clearAllObjects(e,r){return f(this.configuration).clearAllObjects(e,r).then(t=>t(this.axios,this.basePath))}deleteObject(e,r,t){return f(this.configuration).deleteObject(e,r,t).then(s=>s(this.axios,this.basePath))}getObject(e,r,t){return f(this.configuration).getObject(e,r,t).then(s=>s(this.axios,this.basePath))}getObjectMetadata(e,r,t){return f(this.configuration).getObjectMetadata(e,r,t).then(s=>s(this.axios,this.basePath))}listAllObjectKeys(e,r){return f(this.configuration).listAllObjectKeys(e,r).then(t=>t(this.axios,this.basePath))}storeObject(e,r,t,s,a){return f(this.configuration).storeObject(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}};const _t=function(e){return{backupConfiguration:async(r,t,s={})=>{const a=new URL("/system/configuration",C);let n;e&&(n=e.baseOptions);const l={method:"GET",...n,...s},o={},c={};await S(o,e),r&&(c.resources=r.join(Pe.csv)),t!==void 0&&(c.metadata=t),y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...s.headers},{url:b(a),options:l}},checkNovaVersionUpdate:async(r,t={})=>{h("checkNovaVersionUpdate","channel",r);const s=new URL("/system/update",C);let a;e&&(a=e.baseOptions);const n={method:"GET",...a,...t},l={},o={};await S(l,e),r!==void 0&&(o.channel=r),y(s,o);let c=a&&a.headers?a.headers:{};return n.headers={...l,...c,...t.headers},{url:b(s),options:n}},getArpScan:async(r,t,s,a={})=>{const n=new URL("/experimental/system/network/arp-scan",C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...a},c={},i={};await S(c,e),r!==void 0&&(i.interface=r),t!==void 0&&(i.cidr=t),s!==void 0&&(i.timeout=s),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...a.headers},{url:b(n),options:o}},getConfigurationBackupStatus:async(r,t={})=>{h("getConfigurationBackupStatus","operationId",r);const s=new URL("/system/configuration/status",C);let a;e&&(a=e.baseOptions);const n={method:"GET",...a,...t},l={},o={};await S(l,e),r!==void 0&&(o.operation_id=r),y(s,o);let c=a&&a.headers?a.headers:{};return n.headers={...l,...c,...t.headers},{url:b(s),options:n}},getDiagnosePackage:async(r={})=>{const t=new URL("/system/diagnosis-package/zip",C);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},n={},l={};await S(n,e),y(t,l);let o=s&&s.headers?s.headers:{};return a.headers={...n,...o,...r.headers},{url:b(t),options:a}},getNetworkInterfaces:async(r={})=>{const t=new URL("/experimental/system/network/interfaces",C);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},n={},l={};await S(n,e),y(t,l);let o=s&&s.headers?s.headers:{};return a.headers={...n,...o,...r.headers},{url:b(t),options:a}},getNetworkState:async(r={})=>{const t=new URL("/experimental/system/network/status",C);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},n={},l={};await S(n,e),y(t,l);let o=s&&s.headers?s.headers:{};return a.headers={...n,...o,...r.headers},{url:b(t),options:a}},getSystemStatus:async(r={})=>{const t=new URL("/system/status",C);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},n={},l={};await S(n,e),y(t,l);let o=s&&s.headers?s.headers:{};return a.headers={...n,...o,...r.headers},{url:b(t),options:a}},getSystemVersion:async(r={})=>{const t=new URL("/system/version",C);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},n={},l={};await S(n,e),y(t,l);let o=s&&s.headers?s.headers:{};return a.headers={...n,...o,...r.headers},{url:b(t),options:a}},listConfigurationResources:async(r={})=>{const t=new URL("/system/configuration/resources",C);let s;e&&(s=e.baseOptions);const a={method:"GET",...s,...r},n={},l={};await S(n,e),y(t,l);let o=s&&s.headers?s.headers:{};return a.headers={...n,...o,...r.headers},{url:b(t),options:a}},restoreConfiguration:async(r,t,s={})=>{h("restoreConfiguration","body",r);const a=new URL("/system/configuration",C);let n;e&&(n=e.baseOptions);const l={method:"POST",...n,...s},o={},c={};await S(o,e),t&&(c.resources=t.join(Pe.csv)),o["Content-Type"]="application/gzip",y(a,c);let i=n&&n.headers?n.headers:{};return l.headers={...o,...i,...s.headers},l.data=T(r,l,e),{url:b(a),options:l}},updateNovaVersion:async(r,t={})=>{h("updateNovaVersion","updateNovaVersionRequest",r);const s=new URL("/system/update",C);let a;e&&(a=e.baseOptions);const n={method:"PUT",...a,...t},l={},o={};await S(l,e),l["Content-Type"]="application/json",y(s,o);let c=a&&a.headers?a.headers:{};return n.headers={...l,...c,...t.headers},n.data=T(r,n,e),{url:b(s),options:n}}}},$=function(e){const r=_t(e);return{async backupConfiguration(t,s,a){var c,i;const n=await r.backupConfiguration(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["SystemApi.backupConfiguration"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async checkNovaVersionUpdate(t,s){var o,c;const a=await r.checkNovaVersionUpdate(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["SystemApi.checkNovaVersionUpdate"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getArpScan(t,s,a,n){var i,p;const l=await r.getArpScan(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["SystemApi.getArpScan"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async getConfigurationBackupStatus(t,s){var o,c;const a=await r.getConfigurationBackupStatus(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["SystemApi.getConfigurationBackupStatus"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)},async getDiagnosePackage(t){var l,o;const s=await r.getDiagnosePackage(t),a=(e==null?void 0:e.serverIndex)??0,n=(o=(l=V["SystemApi.getDiagnosePackage"])==null?void 0:l[a])==null?void 0:o.url;return(c,i)=>P(s,m,O,e)(c,n||i)},async getNetworkInterfaces(t){var l,o;const s=await r.getNetworkInterfaces(t),a=(e==null?void 0:e.serverIndex)??0,n=(o=(l=V["SystemApi.getNetworkInterfaces"])==null?void 0:l[a])==null?void 0:o.url;return(c,i)=>P(s,m,O,e)(c,n||i)},async getNetworkState(t){var l,o;const s=await r.getNetworkState(t),a=(e==null?void 0:e.serverIndex)??0,n=(o=(l=V["SystemApi.getNetworkState"])==null?void 0:l[a])==null?void 0:o.url;return(c,i)=>P(s,m,O,e)(c,n||i)},async getSystemStatus(t){var l,o;const s=await r.getSystemStatus(t),a=(e==null?void 0:e.serverIndex)??0,n=(o=(l=V["SystemApi.getSystemStatus"])==null?void 0:l[a])==null?void 0:o.url;return(c,i)=>P(s,m,O,e)(c,n||i)},async getSystemVersion(t){var l,o;const s=await r.getSystemVersion(t),a=(e==null?void 0:e.serverIndex)??0,n=(o=(l=V["SystemApi.getSystemVersion"])==null?void 0:l[a])==null?void 0:o.url;return(c,i)=>P(s,m,O,e)(c,n||i)},async listConfigurationResources(t){var l,o;const s=await r.listConfigurationResources(t),a=(e==null?void 0:e.serverIndex)??0,n=(o=(l=V["SystemApi.listConfigurationResources"])==null?void 0:l[a])==null?void 0:o.url;return(c,i)=>P(s,m,O,e)(c,n||i)},async restoreConfiguration(t,s,a){var c,i;const n=await r.restoreConfiguration(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["SystemApi.restoreConfiguration"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async updateNovaVersion(t,s){var o,c;const a=await r.updateNovaVersion(t,s),n=(e==null?void 0:e.serverIndex)??0,l=(c=(o=V["SystemApi.updateNovaVersion"])==null?void 0:o[n])==null?void 0:c.url;return(i,p)=>P(a,m,O,e)(i,l||p)}}};var Et=class extends M{backupConfiguration(e,r,t){return $(this.configuration).backupConfiguration(e,r,t).then(s=>s(this.axios,this.basePath))}checkNovaVersionUpdate(e,r){return $(this.configuration).checkNovaVersionUpdate(e,r).then(t=>t(this.axios,this.basePath))}getArpScan(e,r,t,s){return $(this.configuration).getArpScan(e,r,t,s).then(a=>a(this.axios,this.basePath))}getConfigurationBackupStatus(e,r){return $(this.configuration).getConfigurationBackupStatus(e,r).then(t=>t(this.axios,this.basePath))}getDiagnosePackage(e){return $(this.configuration).getDiagnosePackage(e).then(r=>r(this.axios,this.basePath))}getNetworkInterfaces(e){return $(this.configuration).getNetworkInterfaces(e).then(r=>r(this.axios,this.basePath))}getNetworkState(e){return $(this.configuration).getNetworkState(e).then(r=>r(this.axios,this.basePath))}getSystemStatus(e){return $(this.configuration).getSystemStatus(e).then(r=>r(this.axios,this.basePath))}getSystemVersion(e){return $(this.configuration).getSystemVersion(e).then(r=>r(this.axios,this.basePath))}listConfigurationResources(e){return $(this.configuration).listConfigurationResources(e).then(r=>r(this.axios,this.basePath))}restoreConfiguration(e,r,t){return $(this.configuration).restoreConfiguration(e,r,t).then(s=>s(this.axios,this.basePath))}updateNovaVersion(e,r){return $(this.configuration).updateNovaVersion(e,r).then(t=>t(this.axios,this.basePath))}};const Bt=function(e){return{addTrajectory:async(r,t,s,a={})=>{h("addTrajectory","cell",r),h("addTrajectory","controller",t),h("addTrajectory","addTrajectoryRequest",s);const n="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}},clearTrajectories:async(r,t,s={})=>{h("clearTrajectories","cell",r),h("clearTrajectories","controller",t);const a="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"DELETE",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},deleteTrajectory:async(r,t,s,a={})=>{h("deleteTrajectory","cell",r),h("deleteTrajectory","controller",t),h("deleteTrajectory","trajectory",s);const n="/cells/{cell}/controllers/{controller}/trajectories/{trajectory}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{trajectory}",encodeURIComponent(String(s))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"DELETE",...o,...a},i={},p={};await S(i,e),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},getTrajectory:async(r,t,s,a={})=>{h("getTrajectory","cell",r),h("getTrajectory","controller",t),h("getTrajectory","trajectory",s);const n="/cells/{cell}/controllers/{controller}/trajectories/{trajectory}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{trajectory}",encodeURIComponent(String(s))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},listTrajectories:async(r,t,s={})=>{h("listTrajectories","cell",r),h("listTrajectories","controller",t);const a="/cells/{cell}/controllers/{controller}/trajectories".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}}}},le=function(e){const r=Bt(e);return{async addTrajectory(t,s,a,n){var i,p;const l=await r.addTrajectory(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["TrajectoryCachingApi.addTrajectory"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async clearTrajectories(t,s,a){var c,i;const n=await r.clearTrajectories(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["TrajectoryCachingApi.clearTrajectories"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async deleteTrajectory(t,s,a,n){var i,p;const l=await r.deleteTrajectory(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["TrajectoryCachingApi.deleteTrajectory"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async getTrajectory(t,s,a,n){var i,p;const l=await r.getTrajectory(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["TrajectoryCachingApi.getTrajectory"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async listTrajectories(t,s,a){var c,i;const n=await r.listTrajectories(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["TrajectoryCachingApi.listTrajectories"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)}}};var Mt=class extends M{addTrajectory(e,r,t,s){return le(this.configuration).addTrajectory(e,r,t,s).then(a=>a(this.axios,this.basePath))}clearTrajectories(e,r,t){return le(this.configuration).clearTrajectories(e,r,t).then(s=>s(this.axios,this.basePath))}deleteTrajectory(e,r,t,s){return le(this.configuration).deleteTrajectory(e,r,t,s).then(a=>a(this.axios,this.basePath))}getTrajectory(e,r,t,s){return le(this.configuration).getTrajectory(e,r,t,s).then(a=>a(this.axios,this.basePath))}listTrajectories(e,r,t){return le(this.configuration).listTrajectories(e,r,t).then(s=>s(this.axios,this.basePath))}};const Lt=function(e){return{executeTrajectory:async(r,t,s,a={})=>{h("executeTrajectory","cell",r),h("executeTrajectory","controller",t),h("executeTrajectory","executeTrajectoryRequest",s);const n="/cells/{cell}/controllers/{controller}/execution/trajectory".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}}}},Ft=function(e){const r=Lt(e);return{async executeTrajectory(t,s,a,n){var i,p;const l=await r.executeTrajectory(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["TrajectoryExecutionApi.executeTrajectory"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)}}};var Gt=class extends M{executeTrajectory(e,r,t,s){return Ft(this.configuration).executeTrajectory(e,r,t,s).then(a=>a(this.axios,this.basePath))}};const kt=function(e){return{mergeTrajectories:async(r,t,s={})=>{h("mergeTrajectories","cell",r),h("mergeTrajectories","mergeTrajectoriesRequest",t);const a="/experimental/cells/{cell}/trajectory-planning/merge-trajectories".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"POST",...l,...s},c={},i={};await S(c,e),c["Content-Type"]="application/json",y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},o.data=T(t,o,e),{url:b(n),options:o}},planCollisionFree:async(r,t,s={})=>{h("planCollisionFree","cell",r),h("planCollisionFree","planCollisionFreeRequest",t);const a="/cells/{cell}/trajectory-planning/plan-collision-free".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"POST",...l,...s},c={},i={};await S(c,e),c["Content-Type"]="application/json",y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},o.data=T(t,o,e),{url:b(n),options:o}},planTrajectory:async(r,t,s={})=>{h("planTrajectory","cell",r),h("planTrajectory","planTrajectoryRequest",t);const a="/cells/{cell}/trajectory-planning/plan-trajectory".replace("{cell}",encodeURIComponent(String(r))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"POST",...l,...s},c={},i={};await S(c,e),c["Content-Type"]="application/json",y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},o.data=T(t,o,e),{url:b(n),options:o}}}},me=function(e){const r=kt(e);return{async mergeTrajectories(t,s,a){var c,i;const n=await r.mergeTrajectories(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["TrajectoryPlanningApi.mergeTrajectories"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async planCollisionFree(t,s,a){var c,i;const n=await r.planCollisionFree(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["TrajectoryPlanningApi.planCollisionFree"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async planTrajectory(t,s,a){var c,i;const n=await r.planTrajectory(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["TrajectoryPlanningApi.planTrajectory"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)}}};var qt=class extends M{mergeTrajectories(e,r,t){return me(this.configuration).mergeTrajectories(e,r,t).then(s=>s(this.axios,this.basePath))}planCollisionFree(e,r,t){return me(this.configuration).planCollisionFree(e,r,t).then(s=>s(this.axios,this.basePath))}planTrajectory(e,r,t){return me(this.configuration).planTrajectory(e,r,t).then(s=>s(this.axios,this.basePath))}};const gt=function(e){return{addVirtualControllerCoordinateSystem:async(r,t,s,a,n={})=>{h("addVirtualControllerCoordinateSystem","cell",r),h("addVirtualControllerCoordinateSystem","controller",t),h("addVirtualControllerCoordinateSystem","coordinateSystem",s),h("addVirtualControllerCoordinateSystem","coordinateSystemData",a);const l="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(s))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};await S(p,e),p["Content-Type"]="application/json",y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=T(a,i,e),{url:b(o),options:i}},addVirtualControllerMotionGroup:async(r,t,s,a={})=>{h("addVirtualControllerMotionGroup","cell",r),h("addVirtualControllerMotionGroup","controller",t),h("addVirtualControllerMotionGroup","addVirtualControllerMotionGroupRequest",s);const n="/cells/{cell}/virtual-controllers/{controller}/motion-groups".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}},addVirtualControllerTcp:async(r,t,s,a,n,l={})=>{h("addVirtualControllerTcp","cell",r),h("addVirtualControllerTcp","controller",t),h("addVirtualControllerTcp","motionGroup",s),h("addVirtualControllerTcp","tcp",a),h("addVirtualControllerTcp","robotTcpData",n);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(s))).replace("{tcp}",encodeURIComponent(String(a))),c=new URL(o,C);let i;e&&(i=e.baseOptions);const p={method:"PUT",...i,...l},d={},u={};await S(d,e),d["Content-Type"]="application/json",y(c,u);let I=i&&i.headers?i.headers:{};return p.headers={...d,...I,...l.headers},p.data=T(n,p,e),{url:b(c),options:p}},deleteVirtualControllerCoordinateSystem:async(r,t,s,a,n={})=>{h("deleteVirtualControllerCoordinateSystem","cell",r),h("deleteVirtualControllerCoordinateSystem","controller",t),h("deleteVirtualControllerCoordinateSystem","coordinateSystem",s);const l="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(s))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"DELETE",...c,...n},p={},d={};await S(p,e),a!==void 0&&(d.delete_dependent=a),y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:b(o),options:i}},deleteVirtualControllerMotionGroup:async(r,t,s,a={})=>{h("deleteVirtualControllerMotionGroup","cell",r),h("deleteVirtualControllerMotionGroup","controller",t),h("deleteVirtualControllerMotionGroup","motionGroup",s);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(s))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"DELETE",...o,...a},i={},p={};await S(i,e),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},deleteVirtualControllerTcp:async(r,t,s,a,n={})=>{h("deleteVirtualControllerTcp","cell",r),h("deleteVirtualControllerTcp","controller",t),h("deleteVirtualControllerTcp","motionGroup",s),h("deleteVirtualControllerTcp","tcp",a);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(s))).replace("{tcp}",encodeURIComponent(String(a))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"DELETE",...c,...n},p={},d={};await S(p,e),y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},{url:b(o),options:i}},getEmergencyStop:async(r,t,s={})=>{h("getEmergencyStop","cell",r),h("getEmergencyStop","controller",t);const a="/cells/{cell}/virtual-controllers/{controller}/emergency-stop".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getMotionGroupState:async(r,t,s,a={})=>{h("getMotionGroupState","cell",r),h("getMotionGroupState","controller",t),h("getMotionGroupState","motionGroup",s);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(s))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},getMotionGroups:async(r,t,s={})=>{h("getMotionGroups","cell",r),h("getMotionGroups","controller",t);const a="/cells/{cell}/virtual-controllers/{controller}/motion-groups".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getOperationMode:async(r,t,s={})=>{h("getOperationMode","cell",r),h("getOperationMode","controller",t);const a="/cells/{cell}/virtual-controllers/{controller}/operationmode".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getVirtualControllerMounting:async(r,t,s,a={})=>{h("getVirtualControllerMounting","cell",r),h("getVirtualControllerMounting","controller",t),h("getVirtualControllerMounting","motionGroup",s);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(s))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},listVirtualControllerCoordinateSystems:async(r,t,s={})=>{h("listVirtualControllerCoordinateSystems","cell",r),h("listVirtualControllerCoordinateSystems","controller",t);const a="/cells/{cell}/virtual-controllers/{controller}/coordinate-systems".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},listVirtualControllerTcps:async(r,t,s,a={})=>{h("listVirtualControllerTcps","cell",r),h("listVirtualControllerTcps","controller",t),h("listVirtualControllerTcps","motionGroup",s);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(s))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},setEmergencyStop:async(r,t,s,a={})=>{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))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.active=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},setMotionGroupState:async(r,t,s,a,n={})=>{h("setMotionGroupState","cell",r),h("setMotionGroupState","controller",t),h("setMotionGroupState","motionGroup",s),h("setMotionGroupState","motionGroupJoints",a);const l="/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(s))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};await S(p,e),p["Content-Type"]="application/json",y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=T(a,i,e),{url:b(o),options:i}},setOperationMode:async(r,t,s,a={})=>{h("setOperationMode","cell",r),h("setOperationMode","controller",t),h("setOperationMode","mode",s);const n="/cells/{cell}/virtual-controllers/{controller}/operationmode".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.mode=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},setVirtualControllerMounting:async(r,t,s,a,n={})=>{h("setVirtualControllerMounting","cell",r),h("setVirtualControllerMounting","controller",t),h("setVirtualControllerMounting","motionGroup",s),h("setVirtualControllerMounting","coordinateSystem",a);const l="/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(s))),o=new URL(l,C);let c;e&&(c=e.baseOptions);const i={method:"PUT",...c,...n},p={},d={};await S(p,e),p["Content-Type"]="application/json",y(o,d);let u=c&&c.headers?c.headers:{};return i.headers={...p,...u,...n.headers},i.data=T(a,i,e),{url:b(o),options:i}}}},G=function(e){const r=gt(e);return{async addVirtualControllerCoordinateSystem(t,s,a,n,l){var p,d;const o=await r.addVirtualControllerCoordinateSystem(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.addVirtualControllerCoordinateSystem"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)},async addVirtualControllerMotionGroup(t,s,a,n){var i,p;const l=await r.addVirtualControllerMotionGroup(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.addVirtualControllerMotionGroup"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async addVirtualControllerTcp(t,s,a,n,l,o){var d,u;const c=await r.addVirtualControllerTcp(t,s,a,n,l,o),i=(e==null?void 0:e.serverIndex)??0,p=(u=(d=V["VirtualControllerApi.addVirtualControllerTcp"])==null?void 0:d[i])==null?void 0:u.url;return(I,_)=>P(c,m,O,e)(I,p||_)},async deleteVirtualControllerCoordinateSystem(t,s,a,n,l){var p,d;const o=await r.deleteVirtualControllerCoordinateSystem(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.deleteVirtualControllerCoordinateSystem"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)},async deleteVirtualControllerMotionGroup(t,s,a,n){var i,p;const l=await r.deleteVirtualControllerMotionGroup(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.deleteVirtualControllerMotionGroup"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async deleteVirtualControllerTcp(t,s,a,n,l){var p,d;const o=await r.deleteVirtualControllerTcp(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.deleteVirtualControllerTcp"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)},async getEmergencyStop(t,s,a){var c,i;const n=await r.getEmergencyStop(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["VirtualControllerApi.getEmergencyStop"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getMotionGroupState(t,s,a,n){var i,p;const l=await r.getMotionGroupState(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.getMotionGroupState"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async getMotionGroups(t,s,a){var c,i;const n=await r.getMotionGroups(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["VirtualControllerApi.getMotionGroups"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getOperationMode(t,s,a){var c,i;const n=await r.getOperationMode(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["VirtualControllerApi.getOperationMode"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getVirtualControllerMounting(t,s,a,n){var i,p;const l=await r.getVirtualControllerMounting(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.getVirtualControllerMounting"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async listVirtualControllerCoordinateSystems(t,s,a){var c,i;const n=await r.listVirtualControllerCoordinateSystems(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["VirtualControllerApi.listVirtualControllerCoordinateSystems"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async listVirtualControllerTcps(t,s,a,n){var i,p;const l=await r.listVirtualControllerTcps(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.listVirtualControllerTcps"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async setEmergencyStop(t,s,a,n){var i,p;const l=await r.setEmergencyStop(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.setEmergencyStop"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async setMotionGroupState(t,s,a,n,l){var p,d;const o=await r.setMotionGroupState(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.setMotionGroupState"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)},async setOperationMode(t,s,a,n){var i,p;const l=await r.setOperationMode(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerApi.setOperationMode"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async setVirtualControllerMounting(t,s,a,n,l){var p,d;const o=await r.setVirtualControllerMounting(t,s,a,n,l),c=(e==null?void 0:e.serverIndex)??0,i=(d=(p=V["VirtualControllerApi.setVirtualControllerMounting"])==null?void 0:p[c])==null?void 0:d.url;return(u,I)=>P(o,m,O,e)(u,i||I)}}};var Dt=class extends M{addVirtualControllerCoordinateSystem(e,r,t,s,a){return G(this.configuration).addVirtualControllerCoordinateSystem(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}addVirtualControllerMotionGroup(e,r,t,s){return G(this.configuration).addVirtualControllerMotionGroup(e,r,t,s).then(a=>a(this.axios,this.basePath))}addVirtualControllerTcp(e,r,t,s,a,n){return G(this.configuration).addVirtualControllerTcp(e,r,t,s,a,n).then(l=>l(this.axios,this.basePath))}deleteVirtualControllerCoordinateSystem(e,r,t,s,a){return G(this.configuration).deleteVirtualControllerCoordinateSystem(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}deleteVirtualControllerMotionGroup(e,r,t,s){return G(this.configuration).deleteVirtualControllerMotionGroup(e,r,t,s).then(a=>a(this.axios,this.basePath))}deleteVirtualControllerTcp(e,r,t,s,a){return G(this.configuration).deleteVirtualControllerTcp(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}getEmergencyStop(e,r,t){return G(this.configuration).getEmergencyStop(e,r,t).then(s=>s(this.axios,this.basePath))}getMotionGroupState(e,r,t,s){return G(this.configuration).getMotionGroupState(e,r,t,s).then(a=>a(this.axios,this.basePath))}getMotionGroups(e,r,t){return G(this.configuration).getMotionGroups(e,r,t).then(s=>s(this.axios,this.basePath))}getOperationMode(e,r,t){return G(this.configuration).getOperationMode(e,r,t).then(s=>s(this.axios,this.basePath))}getVirtualControllerMounting(e,r,t,s){return G(this.configuration).getVirtualControllerMounting(e,r,t,s).then(a=>a(this.axios,this.basePath))}listVirtualControllerCoordinateSystems(e,r,t){return G(this.configuration).listVirtualControllerCoordinateSystems(e,r,t).then(s=>s(this.axios,this.basePath))}listVirtualControllerTcps(e,r,t,s){return G(this.configuration).listVirtualControllerTcps(e,r,t,s).then(a=>a(this.axios,this.basePath))}setEmergencyStop(e,r,t,s){return G(this.configuration).setEmergencyStop(e,r,t,s).then(a=>a(this.axios,this.basePath))}setMotionGroupState(e,r,t,s,a){return G(this.configuration).setMotionGroupState(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}setOperationMode(e,r,t,s){return G(this.configuration).setOperationMode(e,r,t,s).then(a=>a(this.axios,this.basePath))}setVirtualControllerMounting(e,r,t,s,a){return G(this.configuration).setVirtualControllerMounting(e,r,t,s,a).then(n=>n(this.axios,this.basePath))}};const Qt=function(e){return{externalJointsStream:async(r,t,s,a={})=>{h("externalJointsStream","cell",r),h("externalJointsStream","controller",t),h("externalJointsStream","externalJointStreamRequest",s);const n="/cells/{cell}/virtual-controllers/{controller}/external-joints-stream".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}},getCycleTime:async(r,t,s={})=>{h("getCycleTime","cell",r),h("getCycleTime","controller",t);const a="/cells/{cell}/virtual-controllers/{controller}/cycle-time".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},getVirtualControllerBehavior:async(r,t,s={})=>{h("getVirtualControllerBehavior","cell",r),h("getVirtualControllerBehavior","controller",t);const a="/cells/{cell}/virtual-controllers/{controller}/behavior".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),n=new URL(a,C);let l;e&&(l=e.baseOptions);const o={method:"GET",...l,...s},c={},i={};await S(c,e),y(n,i);let p=l&&l.headers?l.headers:{};return o.headers={...c,...p,...s.headers},{url:b(n),options:o}},setVirtualControllerBehavior:async(r,t,s,a={})=>{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))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),s!==void 0&&(p.behavior=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}}}},ce=function(e){const r=Qt(e);return{async externalJointsStream(t,s,a,n){var i,p;const l=await r.externalJointsStream(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerBehaviorApi.externalJointsStream"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async getCycleTime(t,s,a){var c,i;const n=await r.getCycleTime(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["VirtualControllerBehaviorApi.getCycleTime"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async getVirtualControllerBehavior(t,s,a){var c,i;const n=await r.getVirtualControllerBehavior(t,s,a),l=(e==null?void 0:e.serverIndex)??0,o=(i=(c=V["VirtualControllerBehaviorApi.getVirtualControllerBehavior"])==null?void 0:c[l])==null?void 0:i.url;return(p,d)=>P(n,m,O,e)(p,o||d)},async setVirtualControllerBehavior(t,s,a,n){var i,p;const l=await r.setVirtualControllerBehavior(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerBehaviorApi.setVirtualControllerBehavior"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)}}};var Ht=class extends M{externalJointsStream(e,r,t,s){return ce(this.configuration).externalJointsStream(e,r,t,s).then(a=>a(this.axios,this.basePath))}getCycleTime(e,r,t){return ce(this.configuration).getCycleTime(e,r,t).then(s=>s(this.axios,this.basePath))}getVirtualControllerBehavior(e,r,t){return ce(this.configuration).getVirtualControllerBehavior(e,r,t).then(s=>s(this.axios,this.basePath))}setVirtualControllerBehavior(e,r,t,s){return ce(this.configuration).setVirtualControllerBehavior(e,r,t,s).then(a=>a(this.axios,this.basePath))}};const Nt=function(e){return{listIOs:async(r,t,s,a={})=>{h("listIOs","cell",r),h("listIOs","controller",t),h("listIOs","ios",s);const n="/cells/{cell}/virtual-controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...a},i={},p={};await S(i,e),s&&(p.ios=s),y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},{url:b(l),options:c}},listVirtualControllerIODescriptions:async(r,t,s,a,n,l,o={})=>{h("listVirtualControllerIODescriptions","cell",r),h("listVirtualControllerIODescriptions","controller",t);const c="/cells/{cell}/virtual-controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),i=new URL(c,C);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...o},u={},I={};await S(u,e),s&&(I.ios=s),a!==void 0&&(I.direction=a),n!==void 0&&(I.value_type=n),l!==void 0&&(I.group=l),y(i,I);let _=p&&p.headers?p.headers:{};return d.headers={...u,..._,...o.headers},{url:b(i),options:d}},setIOValues:async(r,t,s,a={})=>{h("setIOValues","cell",r),h("setIOValues","controller",t),h("setIOValues","iOValue",s);const n="/cells/{cell}/virtual-controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(r))).replace("{controller}",encodeURIComponent(String(t))),l=new URL(n,C);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...a},i={},p={};await S(i,e),i["Content-Type"]="application/json",y(l,p);let d=o&&o.headers?o.headers:{};return c.headers={...i,...d,...a.headers},c.data=T(s,c,e),{url:b(l),options:c}}}},Oe=function(e){const r=Nt(e);return{async listIOs(t,s,a,n){var i,p;const l=await r.listIOs(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerInputsOutputsApi.listIOs"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)},async listVirtualControllerIODescriptions(t,s,a,n,l,o,c){var u,I;const i=await r.listVirtualControllerIODescriptions(t,s,a,n,l,o,c),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(_,Y)=>P(i,m,O,e)(_,d||Y)},async setIOValues(t,s,a,n){var i,p;const l=await r.setIOValues(t,s,a,n),o=(e==null?void 0:e.serverIndex)??0,c=(p=(i=V["VirtualControllerInputsOutputsApi.setIOValues"])==null?void 0:i[o])==null?void 0:p.url;return(d,u)=>P(l,m,O,e)(d,c||u)}}};var Kt=class extends M{listIOs(e,r,t,s){return Oe(this.configuration).listIOs(e,r,t,s).then(a=>a(this.axios,this.basePath))}listVirtualControllerIODescriptions(e,r,t,s,a,n,l){return Oe(this.configuration).listVirtualControllerIODescriptions(e,r,t,s,a,n,l).then(o=>o(this.axios,this.basePath))}setIOValues(e,r,t,s){return Oe(this.configuration).setIOValues(e,r,t,s).then(a=>a(this.axios,this.basePath))}},$t=class{constructor(e,r){this.cellId=e,this.opts=r,this.system=this.withUnwrappedResponsesOnly(Et),this.cell=this.withUnwrappedResponsesOnly(dt),this.motionGroup=this.withCellId(It),this.motionGroupModels=this.withUnwrappedResponsesOnly(xt),this.controller=this.withCellId(ut),this.controllerIOs=this.withCellId(Ot),this.trajectoryPlanning=this.withCellId(qt),this.trajectoryExecution=this.withCellId(Gt),this.trajectoryCaching=this.withCellId(Mt),this.application=this.withCellId(Ie),this.applicationGlobal=this.withUnwrappedResponsesOnly(Ie),this.jogging=this.withCellId(St),this.kinematics=this.withCellId(bt),this.busInputsOutputs=this.withCellId(it),this.virtualController=this.withCellId(Dt),this.virtualControllerBehavior=this.withCellId(Ht),this.virtualControllerIOs=this.withCellId(Kt),this.storeObject=this.withCellId(jt),this.storeCollisionComponents=this.withCellId(At),this.storeCollisionSetups=this.withCellId(Ut)}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 s=r[t];r[t]=(...a)=>s.apply(r,[this.cellId,...a]).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 s=r[t];r[t]=(...a)=>s.apply(r,a).then(n=>n.data)}return r}};const Jt={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}]}}},Wt={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"}}},Yt={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"}}},zt={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"}}},Xt={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"}]}},Zt={method:"GET",path:"/cells/:cellId/controllers",handle(){return["mock-ur5e"]}};var ft=class{constructor(){this.connections=[]}async handleAPIRequest(e){var a;const r=[Zt,zt,Wt,Jt,Xt,Yt],t=((a=e.method)==null?void 0:a.toUpperCase())||"GET";if(!e.url)throw new Error("No url sent with request");const s=e.url.split("?")[0];for(const n of r){const l=et.match(n.path)(s);if(t===n.method&&l){const o=n.handle();return{status:200,statusText:"Success",data:JSON.stringify(o),headers:{},config:e,request:{responseURL:e.url}}}}throw new m.AxiosError(`No mock handler matched this request: ${t} ${s}`,"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(er)})),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 er={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]}}};var tr=class{constructor(e){this.authPromise=null,this.accessToken=null;const r=e.cellId??"cell";this.config={cellId:r,...e},this.accessToken=e.accessToken||ne.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"&&(this.mock=new ft),this.instanceUrl=Ye(this.config.instanceUrl);const t=m.create({baseURL:he(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 s=>(s.headers.Authorization||(this.accessToken?s.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(s.headers.Authorization=`Basic ${btoa(`${e.username}:${e.password}`)}`)),s)),typeof window<"u"&&t.interceptors.response.use(s=>s,async s=>{var a,n;if(m.isAxiosError(s))if(((a=s.response)==null?void 0:a.status)===401)try{if(await this.renewAuthentication(),s.config)return this.accessToken?s.config.headers.Authorization=`Bearer ${this.accessToken}`:delete s.config.headers.Authorization,t.request(s.config)}catch(l){return Promise.reject(l)}else((n=s.response)==null?void 0:n.status)===503&&(await fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(s)}),this.api=new $t(r,{...e,basePath:he(this.instanceUrl.href,"/api/v2"),isJsonMime:s=>s==="application/json",baseOptions:{...this.mock?{adapter:s=>this.mock.handleAPIRequest(s)}:{},...e.baseOptions},axiosInstance:t})}async renewAuthentication(){if(this.authPromise)return;const e=ne.getString("wbjs.access_token");if(e&&this.accessToken!==e){this.accessToken=e;return}this.authPromise=Xe(this.instanceUrl);try{this.accessToken=await this.authPromise,this.accessToken?ne.setString("wbjs.access_token",this.accessToken):ne.delete("wbjs.access_token")}finally{this.authPromise=null}}makeWebsocketURL(e){const r=new URL(he(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 $e(this.makeWebsocketURL(e),{mock:this.mock})}};function rr(e){var n,l,o,c,i,p;const r=[((n=e.position)==null?void 0:n[0])??0,((l=e.position)==null?void 0:l[1])??0,((o=e.position)==null?void 0:o[2])??0],t=[((c=e.orientation)==null?void 0:c[0])??0,((i=e.orientation)==null?void 0:i[1])??0,((p=e.orientation)==null?void 0:p[2])??0],s=r.map(d=>d.toFixed(1)),a=t.map(d=>d.toFixed(4));return`(${s.concat(a).join(", ")})`}function pe(e){ie.useEffect(e,[])}function sr(e){pe(()=>Ae.autorun(e))}function ar(e,r,t){pe(()=>Ae.reaction(e,r,t))}function lr(e){return pe(()=>{let r;function t(){e(),r=requestAnimationFrame(t)}return r=requestAnimationFrame(t),()=>{cancelAnimationFrame(r)}})}class Te{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,s=!0;this.updateCount++;const a=Math.min(r,1/15),n=this.updateCount===1?.7:1;for(let l=0;l<this.currentValues.length;l++){const o=this.currentValues[l],c=this.targetValues[l],i=this.velocities[l],p=c-o,d=p*this.options.tension*n,u=i*this.options.friction,I=d-u,_=i+I*a,Y=o+_*a;Math.abs(p)<this.options.threshold&&Math.abs(_)<this.options.threshold*10?this.currentValues[l]!==c&&(this.currentValues[l]=c,this.velocities[l]=0,t=!0):(s=!1,this.currentValues[l]=Y,this.velocities[l]=_,t=!0)}return t&&this.options.onChange(this.currentValues),s&&this.options.onComplete(this.currentValues),s}setTarget(r){const t=performance.now(),s=t-this.targetUpdateTime;this.previousTargetValues=[...this.targetValues],this.targetValues=[...r],this.targetUpdateTime=t,this.updateCount=0;const a=this.previousTargetValues.every((n,l)=>n===this.currentValues[l]);if(s<8&&s>0&&this.previousTargetValues.length>0&&!a){const n=Math.min(s/8,1);for(let l=0;l<this.targetValues.length;l++){const o=this.previousTargetValues[l]||0,c=r[l]||0;Math.abs(c-o)>.1&&(this.targetValues[l]=o+(c-o)*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 or(e=[],r={}){const t=ie.useRef(null);return t.current||(t.current=new Te(e,r)),ie.useEffect(()=>{var s;(s=t.current)==null||s.updateOptions(r)},[r]),ie.useEffect(()=>()=>{var s;(s=t.current)==null||s.destroy()},[]),[t.current]}exports.JointTypeEnum=lt;exports.Manufacturer=ot;exports.NovaClient=tr;exports.ProgramControl=Fe;exports.ProgramState=H;exports.ProgramStateIndicator=Ge;exports.ValueInterpolator=Te;exports.poseToWandelscriptString=rr;exports.useAnimationFrame=lr;exports.useAutorun=sr;exports.useInterpolation=or;exports.useMounted=pe;exports.useReaction=ar;
20
+ //# sourceMappingURL=interpolation-CiEw5jkz.cjs.map