@openremote/rest 1.7.0-snapshot.20250707100509 → 1.7.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.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ORRest=e():t.ORRest=e()}(self,(()=>(()=>{var t={9048:(t,e,r)=>{t.exports=r(2556)},8424:(t,e,r)=>{"use strict";var n=r(568),o=r(8028),s=r(8472),i=r(7056),a=r(7724),u=r(1264),l=r(6128),c=r(4736),p=r(7596),f=r(2717);t.exports=function(t){return new Promise((function(e,r){var h,d=t.data,y=t.headers,m=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(d)&&delete y["Content-Type"];var b=new XMLHttpRequest;if(t.auth){var v=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";y.Authorization="Basic "+btoa(v+":"+w)}var E=a(t.baseURL,t.url);function C(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,s={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:t,request:b};o((function(t){e(t),g()}),(function(t){r(t),g()}),s),b=null}}if(b.open(t.method.toUpperCase(),i(E,t.params,t.paramsSerializer),!0),b.timeout=t.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(r(c("Request aborted",t,"ECONNABORTED",b)),b=null)},b.onerror=function(){r(c("Network Error",t,null,b)),b=null},b.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||p.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(c(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var S=(t.withCredentials||l(E))&&t.xsrfCookieName?s.read(t.xsrfCookieName):void 0;S&&(y[t.xsrfHeaderName]=S)}"setRequestHeader"in b&&n.forEach(y,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete y[e]:b.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),m&&"json"!==m&&(b.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&b.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){b&&(r(!t||t&&t.type?new f("canceled"):t),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),d||(d=null),b.send(d)}))}},2556:(t,e,r)=>{"use strict";var n=r(568),o=r(4664),s=r(7624),i=r(1072),a=function t(e){var r=new s(e),a=o(s.prototype.request,r);return n.extend(a,s.prototype,r),n.extend(a,r),a.create=function(r){return t(i(e,r))},a}(r(7596));a.Axios=s,a.Cancel=r(2717),a.CancelToken=r(7123),a.isCancel=r(3136),a.VERSION=r(7856).version,a.all=function(t){return Promise.all(t)},a.spread=r(8920),a.isAxiosError=r(2420),t.exports=a,t.exports.default=a},2717:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},7123:(t,e,r)=>{"use strict";var n=r(2717);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},3136:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},7624:(t,e,r)=>{"use strict";var n=r(568),o=r(7056),s=r(4080),i=r(7240),a=r(1072),u=r(5888),l=u.validators;function c(t){this.defaults=t,this.interceptors={request:new s,response:new s}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&u.assertOptions(e,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!n){var c=[i,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(s),o=Promise.resolve(t);c.length;)o=o.then(c.shift(),c.shift());return o}for(var p=t;r.length;){var f=r.shift(),h=r.shift();try{p=f(p)}catch(t){h(t);break}}try{o=i(p)}catch(t){return Promise.reject(t)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},c.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,r){return this.request(a(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,r,n){return this.request(a(n||{},{method:t,url:e,data:r}))}})),t.exports=c},4080:(t,e,r)=>{"use strict";var n=r(568);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},7724:(t,e,r)=>{"use strict";var n=r(2788),o=r(2176);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},4736:(t,e,r)=>{"use strict";var n=r(8072);t.exports=function(t,e,r,o,s){var i=new Error(t);return n(i,e,r,o,s)}},7240:(t,e,r)=>{"use strict";var n=r(568),o=r(3820),s=r(3136),i=r(7596),a=r(2717);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new a("canceled")}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return u(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return s(e)||(u(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},8072:t=>{"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},1072:(t,e,r)=>{"use strict";var n=r(568);t.exports=function(t,e){e=e||{};var r={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function s(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(t[r],e[r])}function i(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function a(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(void 0,e[r])}function u(r){return r in e?o(t[r],e[r]):r in t?o(void 0,t[r]):void 0}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=l[t]||s,o=e(t);n.isUndefined(o)&&e!==u||(r[t]=o)})),r}},8028:(t,e,r)=>{"use strict";var n=r(4736);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},3820:(t,e,r)=>{"use strict";var n=r(568),o=r(7596);t.exports=function(t,e,r){var s=this||o;return n.forEach(r,(function(r){t=r.call(s,t,e)})),t}},7596:(t,e,r)=>{"use strict";var n=r(568),o=r(6296),s=r(8072),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(8424)),u),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(a(e,"application/json"),function(t,e,r){if(n.isString(t))try{return(0,JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||l.transitional,r=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw s(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){l.headers[t]=n.merge(i)})),t.exports=l},7856:t=>{t.exports={version:"0.24.0"}},4664:t=>{"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},7056:(t,e,r)=>{"use strict";var n=r(568);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var s;if(r)s=r(e);else if(n.isURLSearchParams(e))s=e.toString();else{var i=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),s=i.join("&")}if(s){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}},2176:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},8472:(t,e,r)=>{"use strict";var n=r(568);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,s,i){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(s)&&a.push("domain="+s),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2788:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},2420:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},6128:(t,e,r)=>{"use strict";var n=r(568);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6296:(t,e,r)=>{"use strict";var n=r(568);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},1264:(t,e,r)=>{"use strict";var n=r(568),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,s,i={};return t?(n.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),e=n.trim(t.substr(0,s)).toLowerCase(),r=n.trim(t.substr(s+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},8920:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},5888:(t,e,r)=>{"use strict";var n=r(7856).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var s={};o.transitional=function(t,e,r){function o(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,i){if(!1===t)throw new Error(o(n," has been removed"+(e?" in "+e:"")));return e&&!s[n]&&(s[n]=!0,console.warn(o(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,i)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var s=n[o],i=e[s];if(i){var a=t[s],u=void 0===a||i(a,s,t);if(!0!==u)throw new TypeError("option "+s+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+s)}},validators:o}},568:(t,e,r)=>{"use strict";var n=r(4664),o=Object.prototype.toString;function s(t){return"[object Array]"===o.call(t)}function i(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===o.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),s(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:s,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:u,isUndefined:i,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:l,isStream:function(t){return a(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):s(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return e},extend:function(t,e,r){return c(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},256:(t,e,r)=>{"use strict";var n=r(2795),o=r(6772),s=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?o(r):r}},6772:(t,e,r)=>{"use strict";var n=r(3200),o=r(2795),s=r(1328),i=r(352),a=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||n.call(u,a),c=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){if("function"!=typeof t)throw new i("a function is required");var e=l(n,u,arguments);return s(e,1+p(0,t.length-(arguments.length-1)),!0)};var f=function(){return l(n,a,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},8780:(t,e,r)=>{"use strict";var n=r(3960)(),o=r(2795),s=n&&o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(t){s=!1}var i=r(5568),a=r(352),u=r(7036);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new a("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],p=!!u&&u(t,e);if(s)s(t,e,{configurable:null===l&&p?p.configurable:!l,enumerable:null===n&&p?p.enumerable:!n,value:r,writable:null===o&&p?p.writable:!o});else{if(!c&&(n||o||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},9648:t=>{"use strict";t.exports=EvalError},3212:t=>{"use strict";t.exports=Error},4500:t=>{"use strict";t.exports=RangeError},9276:t=>{"use strict";t.exports=ReferenceError},5568:t=>{"use strict";t.exports=SyntaxError},352:t=>{"use strict";t.exports=TypeError},4160:t=>{"use strict";t.exports=URIError},6432:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var s,i=function(t,e){for(var r=[],n=1,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments),a=r(0,o.length-i.length),u=[],l=0;l<a;l++)u[l]="$"+l;if(s=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=",");return r}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var e=o.apply(this,n(i,arguments));return Object(e)===e?e:this}return o.apply(t,n(i,arguments))})),o.prototype){var c=function(){};c.prototype=o.prototype,s.prototype=new c,c.prototype=null}return s}},3200:(t,e,r)=>{"use strict";var n=r(6432);t.exports=Function.prototype.bind||n},2795:(t,e,r)=>{"use strict";var n,o=r(3212),s=r(9648),i=r(4500),a=r(9276),u=r(5568),l=r(352),c=r(4160),p=Function,f=function(t){try{return p('"use strict"; return ('+t+").constructor;")()}catch(t){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(t){h=null}var d=function(){throw new l},y=h?function(){try{return d}catch(t){try{return h(arguments,"callee").get}catch(t){return d}}}():d,m=r(9212)(),g=r(8528)(),b=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":m&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&b?b(""[Symbol.iterator]()):n,"%Symbol%":m?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":y,"%TypedArray%":w,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(t){var C=b(b(t));E["%Error.prototype%"]=C}var S=function t(e){var r;if("%AsyncFunction%"===e)r=f("async function () {}");else if("%GeneratorFunction%"===e)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=f("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&b&&(r=b(o.prototype))}return E[e]=r,r},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=r(3200),A=r(3504),T=R.call(Function.call,Array.prototype.concat),x=R.call(Function.apply,Array.prototype.splice),q=R.call(Function.call,String.prototype.replace),O=R.call(Function.call,String.prototype.slice),j=R.call(Function.call,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,$=function(t,e){var r,n=t;if(A(P,n)&&(n="%"+(r=P[n])[0]+"%"),A(E,n)){var o=E[n];if(o===v&&(o=S(n)),void 0===o&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=O(t,0,1),r=O(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return q(t,U,(function(t,e,r,o){n[n.length]=r?q(o,_,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=$("%"+n+"%",e),s=o.name,i=o.value,a=!1,c=o.alias;c&&(n=c[0],x(r,T([0,1],c)));for(var p=1,f=!0;p<r.length;p+=1){var d=r[p],y=O(d,0,1),m=O(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&f||(a=!0),A(E,s="%"+(n+="."+d)+"%"))i=E[s];else if(null!=i){if(!(d in i)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(h&&p+1>=r.length){var g=h(i,d);i=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:i[d]}else f=A(i,d),i=i[d];f&&!a&&(E[s]=i)}}return i}},7036:(t,e,r)=>{"use strict";var n=r(2795)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},3960:(t,e,r)=>{"use strict";var n=r(2795)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},8528:t=>{"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},9212:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(7632);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},7632:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3504:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,s=r(3200);t.exports=s.call(n,o)},636:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&o&&"function"==typeof o.get?o.get:null,i=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&u&&"function"==typeof u.get?u.get:null,c=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,C=RegExp.prototype.test,S=Array.prototype.concat,P=Array.prototype.join,R=Array.prototype.slice,A=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,_=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function $(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||C.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-A(-t):A(t);if(n!==t){var o=String(n),s=b.call(e,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var D=r(8132),N=D.custom,L=M(N)?N:null;function I(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function k(t){return v.call(String(t),/"/g,"&quot;")}function G(t){return!("[object Array]"!==H(t)||j&&"object"==typeof t&&j in t)}function F(t){return!("[object RegExp]"!==H(t)||j&&"object"==typeof t&&j in t)}function M(t){if(O)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!q)return!1;try{return q.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,o,a){var u=n||{};if(W(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!W(u,"customInspect")||u.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return z(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var C=String(e);return w?$(e,C):C}if("bigint"==typeof e){var A=String(e)+"n";return w?$(e,A):A}var x=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=x&&x>0&&"object"==typeof e)return G(e)?"[Array]":"[Object]";var N,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=P.call(Array(t.indent+1)," ")}return{base:r,prev:P.call(Array(e+1),r)}}(u,o);if(void 0===a)a=[];else if(V(a,e)>=0)return"[Circular]";function J(e,r,n){if(r&&(a=R.call(a)).push(r),n){var s={depth:u.depth};return W(u,"quoteStyle")&&(s.quoteStyle=u.quoteStyle),t(e,s,o+1,a)}return t(e,u,o+1,a)}if("function"==typeof e&&!F(e)){var tt=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),et=Z(e,J);return"[Function"+(tt?": "+tt:" (anonymous)")+"]"+(et.length>0?" { "+P.call(et,", ")+" }":"")}if(M(e)){var rt=O?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(e);return"object"!=typeof e||O?rt:Q(rt)}if((N=e)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var nt="<"+E.call(String(e.nodeName)),ot=e.attributes||[],st=0;st<ot.length;st++)nt+=" "+ot[st].name+"="+I(k(ot[st].value),"double",u);return nt+=">",e.childNodes&&e.childNodes.length&&(nt+="..."),nt+"</"+E.call(String(e.nodeName))+">"}if(G(e)){if(0===e.length)return"[]";var it=Z(e,J);return B&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=0)return!1;return!0}(it)?"["+Y(it,B)+"]":"[ "+P.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==H(t)||j&&"object"==typeof t&&j in t)}(e)){var at=Z(e,J);return"cause"in Error.prototype||!("cause"in e)||U.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(at,", ")+" }":"{ ["+String(e)+"] "+P.call(S.call("[cause]: "+J(e.cause),at),", ")+" }"}if("object"==typeof e&&y){if(L&&"function"==typeof e[L]&&D)return D(e,{depth:x-o});if("symbol"!==y&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ut=[];return i&&i.call(e,(function(t,r){ut.push(J(r,e,!0)+" => "+J(t,e))})),K("Map",s.call(e),ut,B)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var lt=[];return c&&c.call(e,(function(t){lt.push(J(t,e))})),K("Set",l.call(e),lt,B)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return X("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return X("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return X("WeakRef");if(function(t){return!("[object Number]"!==H(t)||j&&"object"==typeof t&&j in t)}(e))return Q(J(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return Q(J(T.call(e)));if(function(t){return!("[object Boolean]"!==H(t)||j&&"object"==typeof t&&j in t)}(e))return Q(d.call(e));if(function(t){return!("[object String]"!==H(t)||j&&"object"==typeof t&&j in t)}(e))return Q(J(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==H(t)||j&&"object"==typeof t&&j in t)}(e)&&!F(e)){var ct=Z(e,J),pt=_?_(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",ht=!pt&&j&&Object(e)===e&&j in e?b.call(H(e),8,-1):ft?"Object":"",dt=(pt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||ft?"["+P.call(S.call([],ht||[],ft||[]),": ")+"] ":"");return 0===ct.length?dt+"{}":B?dt+"{"+Y(ct,B)+"}":dt+"{ "+P.call(ct,", ")+" }"}return String(e)};var B=Object.prototype.hasOwnProperty||function(t){return t in this};function W(t,e){return B.call(t,e)}function H(t){return y.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function z(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return z(b.call(t,0,e.maxStringLength),e)+n}return I(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Q(t){return"Object("+t+")"}function X(t){return t+" { ? }"}function K(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):P.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+P.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=G(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=W(t,o)?e(t[o],t):""}var s,i="function"==typeof x?x(t):[];if(O){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)W(t,u)&&(r&&String(Number(u))===u&&u<t.length||O&&s["$"+u]instanceof Symbol||(C.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof x)for(var l=0;l<i.length;l++)U.call(t,i[l])&&n.push("["+e(i[l])+"]: "+e(t[i[l]],t));return n}},3516:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},6960:(t,e,r)=>{"use strict";var n=r(3976),o=r(4688),s=r(3516);t.exports={formats:s,parse:o,stringify:n}},4688:(t,e,r)=>{"use strict";var n=r(72),o=Object.prototype.hasOwnProperty,s=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,r,n){if(t){var s=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(s),l=a?s.slice(0,a.index):s,c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var p=0;r.depth>0&&null!==(a=i.exec(s))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+s.slice(a.index)+"]"),function(t,e,r,n){for(var o=n?e:u(e,r),s=t.length-1;s>=0;--s){var i,a=t[s];if("[]"===a&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=o:"__proto__"!==l&&(i[l]=o):i={0:o}}o=i}return o}(c,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:i.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var r,l={__proto__:null},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=c.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),h=r,r=f.length);for(r=0;r<f.length;++r)if(r!==h){var y,m,g=f[r],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(y=e.decoder(g,i.decoder,d,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,v),i.decoder,d,"key"),m=n.maybeMap(u(g.slice(v+1),e),(function(t){return e.decoder(t,i.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=a(m)),g.indexOf("[]=")>-1&&(m=s(m)?[m]:m),o.call(l,y)?l[y]=n.combine(l[y],m):l[y]=m}return l}(t,r):t,p=r.plainObjects?Object.create(null):{},f=Object.keys(c),h=0;h<f.length;++h){var d=f[h],y=l(d,c[d],r,"string"==typeof t);p=n.merge(p,y,r)}return!0===r.allowSparse?p:n.compact(p)}},3976:(t,e,r)=>{"use strict";var n=r(5252),o=r(72),s=r(3516),i=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,u(e)?e:[e])},p=Date.prototype.toISOString,f=s.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:s.formatters[f],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},d={},y=function t(e,r,s,i,a,l,p,f,y,m,g,b,v,w,E,C){for(var S,P=e,R=C,A=0,T=!1;void 0!==(R=R.get(d))&&!T;){var x=R.get(e);if(A+=1,void 0!==x){if(x===A)throw new RangeError("Cyclic object value");T=!0}void 0===R.get(d)&&(A=0)}if("function"==typeof f?P=f(r,P):P instanceof Date?P=g(P):"comma"===s&&u(P)&&(P=o.maybeMap(P,(function(t){return t instanceof Date?g(t):t}))),null===P){if(a)return p&&!w?p(r,h.encoder,E,"key",b):r;P=""}if("string"==typeof(S=P)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(P))return p?[v(w?r:p(r,h.encoder,E,"key",b))+"="+v(p(P,h.encoder,E,"value",b))]:[v(r)+"="+v(String(P))];var q,O=[];if(void 0===P)return O;if("comma"===s&&u(P))w&&p&&(P=o.maybeMap(P,p)),q=[{value:P.length>0?P.join(",")||null:void 0}];else if(u(f))q=f;else{var j=Object.keys(P);q=y?j.sort(y):j}for(var U=i&&u(P)&&1===P.length?r+"[]":r,_=0;_<q.length;++_){var $=q[_],D="object"==typeof $&&void 0!==$.value?$.value:P[$];if(!l||null!==D){var N=u(P)?"function"==typeof s?s(U,$):U:U+(m?"."+$:"["+$+"]");C.set(e,A);var L=n();L.set(d,C),c(O,t(D,N,s,i,a,l,"comma"===s&&w&&u(P)?null:p,f,y,m,g,b,v,w,E,L))}}return O};t.exports=function(t,e){var r,o=t,l=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=s.default;if(void 0!==t.format){if(!i.call(s.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=s.formatters[r],o=h.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof l.filter?o=(0,l.filter)("",o):u(l.filter)&&(r=l.filter);var p,f=[];if("object"!=typeof o||null===o)return"";p=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=a[p];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===d&&e&&e.commaRoundTrip;r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var g=n(),b=0;b<r.length;++b){var v=r[b];l.skipNulls&&null===o[v]||c(f,y(o[v],v,d,m,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var w=f.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),w.length>0?E+w:""}},72:(t,e,r)=>{"use strict";var n=r(3516),o=Object.prototype.hasOwnProperty,s=Array.isArray,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var l=a[u],c=i[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:l}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(s(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,o,s){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",l=0;l<a.length;++l){var c=a.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===n.RFC1738&&(40===c||41===c)?u+=a.charAt(l):c<128?u+=i[c]:c<2048?u+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?u+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(l)),u+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(s(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(s(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var i=e;return s(e)&&!s(r)&&(i=a(e,n)),s(e)&&s(r)?(r.forEach((function(r,s){if(o.call(e,s)){var i=e[s];i&&"object"==typeof i&&r&&"object"==typeof r?e[s]=t(i,r,n):e.push(r)}else e[s]=r})),e):Object.keys(r).reduce((function(e,s){var i=r[s];return o.call(e,s)?e[s]=t(e[s],i,n):e[s]=i,e}),i)}}},1328:(t,e,r)=>{"use strict";var n=r(2795),o=r(8780),s=r(3960)(),i=r(7036),a=r(352),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in t&&i){var c=i(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(l=!1)}return(n||l||!r)&&(s?o(t,"length",e,!0,!0):o(t,"length",e)),t}},5252:(t,e,r)=>{"use strict";var n=r(2795),o=r(256),s=r(636),i=r(352),a=n("%WeakMap%",!0),u=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),y=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new i("Side channel does not contain "+s(t))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return l(t,n)}else if(u){if(e)return f(e,n)}else if(r)return function(t,e){var r=y(t,e);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return p(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!y(t,e)}(r,n);return!1},set:function(n,o){a&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new a),c(t,n,o)):u?(e||(e=new u),h(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=y(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},8132:()=>{}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,r),s.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{RestApi:()=>Y,default:()=>Z,isAxiosError:()=>K});var t=r(9048),e=r.n(t);class o{constructor(t){this.httpClient=t}startTunnel(t,e){return this.httpClient.request({method:"POST",url:R`gateway/tunnel`,data:t,options:e})}stopTunnel(t,e){return this.httpClient.request({method:"DELETE",url:R`gateway/tunnel`,data:t,options:e})}getAllActiveTunnelInfos(t,e){return this.httpClient.request({method:"GET",url:R`gateway/tunnel/${t}`,options:e})}getGatewayActiveTunnelInfos(t,e,r){return this.httpClient.request({method:"GET",url:R`gateway/tunnel/${t}/${e}`,options:r})}getActiveTunnelInfo(t,e,r,n,o){return this.httpClient.request({method:"GET",url:R`gateway/tunnel/${t}/${e}/${r}/${n}`,options:o})}}class s{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:R`realm`,data:t,options:e})}getAll(t){return this.httpClient.request({method:"GET",url:R`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:R`realm/accessible`,options:t})}delete(t,e){return this.httpClient.request({method:"DELETE",url:R`realm/${t}`,options:e})}get(t,e){return this.httpClient.request({method:"GET",url:R`realm/${t}`,options:e})}update(t,e,r){return this.httpClient.request({method:"PUT",url:R`realm/${t}`,data:e,options:r})}}class i{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:R`map`,options:t})}saveSettings(t,e){return this.httpClient.request({method:"PUT",url:R`map`,data:t,options:e})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:R`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:R`map/getCustomMapInfo`,options:t})}getSettingsJs(t){return this.httpClient.request({method:"GET",url:R`map/js`,options:t})}getTile(t,e,r,n){return this.httpClient.request({method:"GET",url:R`map/tile/${t}/${e}/${r}`,options:n})}uploadMap(t,e){return this.httpClient.request({method:"POST",url:R`map/upload`,queryParams:t,options:e})}}class a{constructor(t){this.httpClient=t}getDatapointExport(t,e){return this.httpClient.request({method:"GET",url:R`asset/datapoint/export`,queryParams:t,options:e})}getDatapointPeriod(t,e){return this.httpClient.request({method:"GET",url:R`asset/datapoint/periods`,queryParams:t,options:e})}getDatapoints(t,e,r,n){return this.httpClient.request({method:"POST",url:R`asset/datapoint/${t}/${e}`,data:r,options:n})}}class u{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:R`configuration/manager`,options:t})}update(t,e){return this.httpClient.request({method:"PUT",url:R`configuration/manager`,data:t,options:e})}fileUpload(t,e,r){return this.httpClient.request({method:"POST",url:R`configuration/manager/file`,queryParams:e,data:t,options:r})}getManagerConfigImage(t,e){return this.httpClient.request({method:"GET",url:R`configuration/manager/image/${t}`,options:e})}}class l{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:R`dashboard`,data:t,options:e})}update(t,e){return this.httpClient.request({method:"PUT",url:R`dashboard`,data:t,options:e})}getAllRealmDashboards(t,e){return this.httpClient.request({method:"GET",url:R`dashboard/all/${t}`,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:R`dashboard/query`,data:t,options:e})}delete(t,e,r){return this.httpClient.request({method:"DELETE",url:R`dashboard/${t}/${e}`,options:r})}get(t,e,r){return this.httpClient.request({method:"GET",url:R`dashboard/${t}/${e}`,options:r})}}class c{constructor(t){this.httpClient=t}getNotifications(t,e){return this.httpClient.request({method:"GET",url:R`notification`,queryParams:t,options:e})}removeNotifications(t,e){return this.httpClient.request({method:"DELETE",url:R`notification`,queryParams:t,options:e})}sendNotification(t,e){return this.httpClient.request({method:"POST",url:R`notification/alert`,data:t,options:e})}removeNotification(t,e){return this.httpClient.request({method:"DELETE",url:R`notification/${t}`,options:e})}notificationAcknowledged(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`notification/${t}/acknowledged`,queryParams:r,data:e,options:n})}notificationDelivered(t,e,r){return this.httpClient.request({method:"PUT",url:R`notification/${t}/delivered`,queryParams:e,options:r})}}class p{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:R`asset`,data:t,options:e})}delete(t,e){return this.httpClient.request({method:"DELETE",url:R`asset`,queryParams:t,options:e})}writeAttributeValues(t,e){return this.httpClient.request({method:"PUT",url:R`asset/attributes`,data:t,options:e})}writeAttributeEvents(t,e){return this.httpClient.request({method:"PUT",url:R`asset/attributes/timestamp`,data:t,options:e})}updateNoneParent(t,e){return this.httpClient.request({method:"DELETE",url:R`asset/parent`,queryParams:t,options:e})}getPartial(t,e){return this.httpClient.request({method:"GET",url:R`asset/partial/${t}`,options:e})}queryAssets(t,e){return this.httpClient.request({method:"POST",url:R`asset/query`,data:t,options:e})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:R`asset/user/current`,options:t})}createUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:R`asset/user/link`,data:t,options:e})}getUserAssetLinks(t,e){return this.httpClient.request({method:"GET",url:R`asset/user/link`,queryParams:t,options:e})}deleteUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:R`asset/user/link/delete`,data:t,options:e})}deleteAllUserAssetLinks(t,e,r){return this.httpClient.request({method:"DELETE",url:R`asset/user/link/${t}/${e}`,options:r})}deleteUserAssetLink(t,e,r,n){return this.httpClient.request({method:"DELETE",url:R`asset/user/link/${t}/${e}/${r}`,options:n})}get(t,e){return this.httpClient.request({method:"GET",url:R`asset/${t}`,options:e})}update(t,e,r){return this.httpClient.request({method:"PUT",url:R`asset/${t}`,data:e,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`asset/${t}/attribute/${e}`,data:r,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,e,r,n,o){return this.httpClient.request({method:"PUT",url:R`asset/${t}/attribute/${e}/${r}`,data:n,options:o})}updateParent(t,e,r){return this.httpClient.request({method:"PUT",url:R`asset/${t}/child`,queryParams:e,options:r})}}class f{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:R`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:R`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:R`apps/info`,options:t})}}class h{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,e){return this.httpClient.request({method:"PUT",url:R`user/locale`,data:t,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:R`user/query`,data:t,options:e})}getCurrent(t){return this.httpClient.request({method:"GET",url:R`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:R`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,e){return this.httpClient.request({method:"GET",url:R`user/userRoles/${t}`,options:e})}disconnectUserSession(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/disconnect/${e}`,options:r})}resetPassword(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`user/${t}/reset-password/${e}`,data:r,options:n})}resetSecret(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/reset-secret/${e}`,options:r})}updateRoles(t,e,r){return this.httpClient.request({method:"PUT",url:R`user/${t}/roles`,data:e,options:r})}getUserRealmRoles(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/userRealmRoles/${e}`,options:r})}updateUserRealmRoles(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`user/${t}/userRealmRoles/${e}`,data:r,options:n})}getUserClientRoles(t,e,r,n){return this.httpClient.request({method:"GET",url:R`user/${t}/userRoles/${e}/${r}`,options:n})}updateUserClientRoles(t,e,r,n,o){return this.httpClient.request({method:"PUT",url:R`user/${t}/userRoles/${e}/${r}`,data:n,options:o})}getUserSessions(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/userSessions/${e}`,options:r})}create(t,e,r){return this.httpClient.request({method:"POST",url:R`user/${t}/users`,data:e,options:r})}update(t,e,r){return this.httpClient.request({method:"PUT",url:R`user/${t}/users`,data:e,options:r})}delete(t,e,r){return this.httpClient.request({method:"DELETE",url:R`user/${t}/users/${e}`,options:r})}getClientRoles(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/${e}/roles`,options:r})}updateClientRoles(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`user/${t}/${e}/roles`,data:r,options:n})}get(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/${e}`,options:r})}}class d{constructor(t){this.httpClient=t}getAssetDescriptors(t,e){return this.httpClient.request({method:"GET",url:R`model/assetDescriptors`,queryParams:t,options:e})}getAssetInfo(t,e,r){return this.httpClient.request({method:"GET",url:R`model/assetInfo/${t}`,queryParams:e,options:r})}getAssetInfos(t,e){return this.httpClient.request({method:"GET",url:R`model/assetInfos`,queryParams:t,options:e})}getMetaItemDescriptors(t,e){return this.httpClient.request({method:"GET",url:R`model/metaItemDescriptors`,queryParams:t,options:e})}getValueDescriptors(t,e){return this.httpClient.request({method:"GET",url:R`model/valueDescriptors`,queryParams:t,options:e})}}class y{constructor(t){this.httpClient=t}createGlobalRuleset(t,e){return this.httpClient.request({method:"POST",url:R`rules`,data:t,options:e})}getGlobalRulesets(t,e){return this.httpClient.request({method:"GET",url:R`rules`,queryParams:t,options:e})}createAssetRuleset(t,e){return this.httpClient.request({method:"POST",url:R`rules/asset`,data:t,options:e})}getAssetRulesets(t,e,r){return this.httpClient.request({method:"GET",url:R`rules/asset/for/${t}`,queryParams:e,options:r})}deleteAssetRuleset(t,e){return this.httpClient.request({method:"DELETE",url:R`rules/asset/${t}`,options:e})}getAssetRuleset(t,e){return this.httpClient.request({method:"GET",url:R`rules/asset/${t}`,options:e})}updateAssetRuleset(t,e,r){return this.httpClient.request({method:"PUT",url:R`rules/asset/${t}`,data:e,options:r})}getAssetGeofences(t,e){return this.httpClient.request({method:"GET",url:R`rules/geofences/${t}`,options:e})}getAssetEngineInfo(t,e){return this.httpClient.request({method:"GET",url:R`rules/info/asset/${t}`,options:e})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:R`rules/info/global`,options:t})}getRealmEngineInfo(t,e){return this.httpClient.request({method:"GET",url:R`rules/info/realm/${t}`,options:e})}createRealmRuleset(t,e){return this.httpClient.request({method:"POST",url:R`rules/realm`,data:t,options:e})}getRealmRulesets(t,e,r){return this.httpClient.request({method:"GET",url:R`rules/realm/for/${t}`,queryParams:e,options:r})}deleteRealmRuleset(t,e){return this.httpClient.request({method:"DELETE",url:R`rules/realm/${t}`,options:e})}getRealmRuleset(t,e){return this.httpClient.request({method:"GET",url:R`rules/realm/${t}`,options:e})}updateRealmRuleset(t,e,r){return this.httpClient.request({method:"PUT",url:R`rules/realm/${t}`,data:e,options:r})}deleteGlobalRuleset(t,e){return this.httpClient.request({method:"DELETE",url:R`rules/${t}`,options:e})}getGlobalRuleset(t,e){return this.httpClient.request({method:"GET",url:R`rules/${t}`,options:e})}updateGlobalRuleset(t,e,r){return this.httpClient.request({method:"PUT",url:R`rules/${t}`,data:e,options:r})}}class m{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,e,r){return this.httpClient.request({method:"GET",url:R`agent/assetDiscovery/${t}`,queryParams:e,options:r})}doProtocolAssetImport(t,e,r,n){return this.httpClient.request({method:"POST",url:R`agent/assetImport/${t}`,queryParams:r,data:e,options:n})}doProtocolInstanceDiscovery(t,e,r){return this.httpClient.request({method:"GET",url:R`agent/instanceDiscovery/${t}`,queryParams:e,options:r})}}class g{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:R`flow`,options:t})}getNodeDefinition(t,e){return this.httpClient.request({method:"GET",url:R`flow/${t}`,options:e})}getAllNodeDefinitionsByType(t,e){return this.httpClient.request({method:"GET",url:R`flow/${t}`,options:e})}}class b{constructor(t){this.httpClient=t}deleteConnections(t,e){return this.httpClient.request({method:"DELETE",url:R`gateway/connection`,queryParams:t,options:e})}getConnections(t){return this.httpClient.request({method:"GET",url:R`gateway/connection`,options:t})}deleteConnection(t,e){return this.httpClient.request({method:"DELETE",url:R`gateway/connection/${t}`,options:e})}getConnection(t,e){return this.httpClient.request({method:"GET",url:R`gateway/connection/${t}`,options:e})}setConnection(t,e,r){return this.httpClient.request({method:"PUT",url:R`gateway/connection/${t}`,data:e,options:r})}getConnectionStatus(t,e){return this.httpClient.request({method:"GET",url:R`gateway/status/${t}`,options:e})}}class v{constructor(t){this.httpClient=t}createAlarm(t,e,r){return this.httpClient.request({method:"POST",url:R`alarm`,queryParams:e,data:t,options:r})}getAlarms(t,e){return this.httpClient.request({method:"GET",url:R`alarm`,queryParams:t,options:e})}removeAlarms(t,e){return this.httpClient.request({method:"DELETE",url:R`alarm`,data:t,options:e})}setAssetLinks(t,e){return this.httpClient.request({method:"PUT",url:R`alarm/assets`,data:t,options:e})}getAlarm(t,e){return this.httpClient.request({method:"GET",url:R`alarm/${t}`,options:e})}removeAlarm(t,e){return this.httpClient.request({method:"DELETE",url:R`alarm/${t}`,options:e})}updateAlarm(t,e,r){return this.httpClient.request({method:"PUT",url:R`alarm/${t}`,data:e,options:r})}getAssetLinks(t,e,r){return this.httpClient.request({method:"GET",url:R`alarm/${t}/assets`,queryParams:e,options:r})}}class w{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:R`syslog/config`,options:t})}updateConfig(t,e){return this.httpClient.request({method:"PUT",url:R`syslog/config`,data:t,options:e})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:R`syslog/event`,options:t})}getEvents(t,e){return this.httpClient.request({method:"GET",url:R`syslog/event`,queryParams:t,options:e})}}class E{constructor(t){this.httpClient=t}register(t,e){return this.httpClient.request({method:"POST",url:R`console/register`,data:t,options:e})}}class C{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:R`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:R`info`,options:t})}}class S{constructor(t){this.httpClient=t}getPredictedDatapoints(t,e,r,n){return this.httpClient.request({method:"POST",url:R`asset/predicted/${t}/${e}`,data:r,options:n})}writePredictedDatapoints(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`asset/predicted/${t}/${e}`,data:r,options:n})}}class P{constructor(t){this.httpClient=t}createProvisioningConfig(t,e){return this.httpClient.request({method:"POST",url:R`provisioning`,data:t,options:e})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:R`provisioning`,options:t})}deleteProvisioningConfig(t,e){return this.httpClient.request({method:"DELETE",url:R`provisioning/${t}`,options:e})}updateProvisioningConfig(t,e,r){return this.httpClient.request({method:"PUT",url:R`provisioning/${t}`,data:e,options:r})}}function R(t,...e){let r="";for(let n=0;n<e.length;n++)r+=t[n],r+=encodeURIComponent(e[n]);return r+=t[t.length-1],r}class A{constructor(t,r=e().create()){this._gatewayServiceResource=new x(t,r),this._realmResource=new q(t,r),this._mapResource=new O(t,r),this._assetDatapointResource=new j(t,r),this._configurationResource=new U(t,r),this._dashboardResource=new _(t,r),this._notificationResource=new $(t,r),this._assetResource=new D(t,r),this._appResource=new N(t,r),this._userResource=new L(t,r),this._assetModelResource=new I(t,r),this._rulesResource=new k(t,r),this._agentResource=new G(t,r),this._flowResource=new F(t,r),this._gatewayClientResource=new M(t,r),this._alarmResource=new B(t,r),this._syslogResource=new W(t,r),this._consoleResource=new H(t,r),this._statusResource=new V(t,r),this._assetPredictedDatapointResource=new z(t,r),this._provisioningResource=new J(t,r),this._assetResource=new D(t,r)}get GatewayServiceResource(){return this._gatewayServiceResource}get RealmResource(){return this._realmResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get ConfigurationResource(){return this._configurationResource}get DashboardResource(){return this._dashboardResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get AppResource(){return this._appResource}get UserResource(){return this._userResource}get AssetModelResource(){return this._assetModelResource}get RulesResource(){return this._rulesResource}get AgentResource(){return this._agentResource}get FlowResource(){return this._flowResource}get GatewayClientResource(){return this._gatewayClientResource}get AlarmResource(){return this._alarmResource}get SyslogResource(){return this._syslogResource}get ConsoleResource(){return this._consoleResource}get StatusResource(){return this._statusResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ProvisioningResource(){return this._provisioningResource}}class T{constructor(t){this.axios=t}request(t){const e={};e.method=t.method,e.url=t.url,e.params=t.queryParams,e.data=t.data,function(t,e){if(null!=e)for(const r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}(e,t.options);const r=t.copyFn;return this.axios.request(e).then((t=>(r&&t.data&&(t.originalData=t.data,t.data=r(t.data)),t)))}}class x extends o{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class q extends s{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class O extends i{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class j extends a{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class U extends u{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class _ extends l{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class $ extends c{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class D extends p{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class N extends f{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class L extends h{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class I extends d{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class k extends y{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class G extends m{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class F extends g{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class M extends b{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class B extends v{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class W extends w{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class H extends E{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class V extends C{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class z extends S{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class J extends P{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}var Q=r(6960),X=r.n(Q);const K=e().isAxiosError;class Y{get api(){return this._client}constructor(){this._axiosInstance=e().create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use((t=>(t.paramsSerializer=t=>X().stringify(t,{arrayFormat:"repeat"}),t)))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new A(t,this._axiosInstance)}}const Z=new Y})(),n})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ORRest=e():t.ORRest=e()}(self,(()=>(()=>{var t={9048:(t,e,r)=>{t.exports=r(2556)},8424:(t,e,r)=>{"use strict";var n=r(568),o=r(8028),s=r(8472),i=r(7056),a=r(7724),u=r(1264),l=r(6128),c=r(4736),p=r(7596),f=r(2717);t.exports=function(t){return new Promise((function(e,r){var h,d=t.data,y=t.headers,m=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(d)&&delete y["Content-Type"];var b=new XMLHttpRequest;if(t.auth){var v=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";y.Authorization="Basic "+btoa(v+":"+w)}var E=a(t.baseURL,t.url);function C(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,s={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:t,request:b};o((function(t){e(t),g()}),(function(t){r(t),g()}),s),b=null}}if(b.open(t.method.toUpperCase(),i(E,t.params,t.paramsSerializer),!0),b.timeout=t.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(r(c("Request aborted",t,"ECONNABORTED",b)),b=null)},b.onerror=function(){r(c("Network Error",t,null,b)),b=null},b.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||p.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(c(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},n.isStandardBrowserEnv()){var S=(t.withCredentials||l(E))&&t.xsrfCookieName?s.read(t.xsrfCookieName):void 0;S&&(y[t.xsrfHeaderName]=S)}"setRequestHeader"in b&&n.forEach(y,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete y[e]:b.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),m&&"json"!==m&&(b.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&b.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){b&&(r(!t||t&&t.type?new f("canceled"):t),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),d||(d=null),b.send(d)}))}},2556:(t,e,r)=>{"use strict";var n=r(568),o=r(4664),s=r(7624),i=r(1072),a=function t(e){var r=new s(e),a=o(s.prototype.request,r);return n.extend(a,s.prototype,r),n.extend(a,r),a.create=function(r){return t(i(e,r))},a}(r(7596));a.Axios=s,a.Cancel=r(2717),a.CancelToken=r(7123),a.isCancel=r(3136),a.VERSION=r(7856).version,a.all=function(t){return Promise.all(t)},a.spread=r(8920),a.isAxiosError=r(2420),t.exports=a,t.exports.default=a},2717:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},7123:(t,e,r)=>{"use strict";var n=r(2717);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},3136:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},7624:(t,e,r)=>{"use strict";var n=r(568),o=r(7056),s=r(4080),i=r(7240),a=r(1072),u=r(5888),l=u.validators;function c(t){this.defaults=t,this.interceptors={request:new s,response:new s}}c.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&u.assertOptions(e,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,s=[];if(this.interceptors.response.forEach((function(t){s.push(t.fulfilled,t.rejected)})),!n){var c=[i,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(s),o=Promise.resolve(t);c.length;)o=o.then(c.shift(),c.shift());return o}for(var p=t;r.length;){var f=r.shift(),h=r.shift();try{p=f(p)}catch(t){h(t);break}}try{o=i(p)}catch(t){return Promise.reject(t)}for(;s.length;)o=o.then(s.shift(),s.shift());return o},c.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,r){return this.request(a(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,r,n){return this.request(a(n||{},{method:t,url:e,data:r}))}})),t.exports=c},4080:(t,e,r)=>{"use strict";var n=r(568);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},7724:(t,e,r)=>{"use strict";var n=r(2788),o=r(2176);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},4736:(t,e,r)=>{"use strict";var n=r(8072);t.exports=function(t,e,r,o,s){var i=new Error(t);return n(i,e,r,o,s)}},7240:(t,e,r)=>{"use strict";var n=r(568),o=r(3820),s=r(3136),i=r(7596),a=r(2717);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new a("canceled")}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||i.adapter)(t).then((function(e){return u(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return s(e)||(u(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},8072:t=>{"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},1072:(t,e,r)=>{"use strict";var n=r(568);t.exports=function(t,e){e=e||{};var r={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function s(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(t[r],e[r])}function i(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function a(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(void 0,e[r])}function u(r){return r in e?o(t[r],e[r]):r in t?o(void 0,t[r]):void 0}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=l[t]||s,o=e(t);n.isUndefined(o)&&e!==u||(r[t]=o)})),r}},8028:(t,e,r)=>{"use strict";var n=r(4736);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},3820:(t,e,r)=>{"use strict";var n=r(568),o=r(7596);t.exports=function(t,e,r){var s=this||o;return n.forEach(r,(function(r){t=r.call(s,t,e)})),t}},7596:(t,e,r)=>{"use strict";var n=r(568),o=r(6296),s=r(8072),i={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var u,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=r(8424)),u),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(a(e,"application/json"),function(t,e,r){if(n.isString(t))try{return(0,JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||l.transitional,r=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw s(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){l.headers[t]=n.merge(i)})),t.exports=l},7856:t=>{t.exports={version:"0.24.0"}},4664:t=>{"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},7056:(t,e,r)=>{"use strict";var n=r(568);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var s;if(r)s=r(e);else if(n.isURLSearchParams(e))s=e.toString();else{var i=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),i.push(o(e)+"="+o(t))})))})),s=i.join("&")}if(s){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}},2176:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},8472:(t,e,r)=>{"use strict";var n=r(568);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,s,i){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(s)&&a.push("domain="+s),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},2788:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},2420:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},6128:(t,e,r)=>{"use strict";var n=r(568);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},6296:(t,e,r)=>{"use strict";var n=r(568);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},1264:(t,e,r)=>{"use strict";var n=r(568),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,s,i={};return t?(n.forEach(t.split("\n"),(function(t){if(s=t.indexOf(":"),e=n.trim(t.substr(0,s)).toLowerCase(),r=n.trim(t.substr(s+1)),e){if(i[e]&&o.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([r]):i[e]?i[e]+", "+r:r}})),i):i}},8920:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},5888:(t,e,r)=>{"use strict";var n=r(7856).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var s={};o.transitional=function(t,e,r){function o(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,i){if(!1===t)throw new Error(o(n," has been removed"+(e?" in "+e:"")));return e&&!s[n]&&(s[n]=!0,console.warn(o(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,i)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var s=n[o],i=e[s];if(i){var a=t[s],u=void 0===a||i(a,s,t);if(!0!==u)throw new TypeError("option "+s+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+s)}},validators:o}},568:(t,e,r)=>{"use strict";var n=r(4664),o=Object.prototype.toString;function s(t){return"[object Array]"===o.call(t)}function i(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===o.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),s(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:s,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!i(t)&&null!==t.constructor&&!i(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:u,isUndefined:i,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:l,isStream:function(t){return a(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):s(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)c(arguments[n],r);return e},extend:function(t,e,r){return c(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},256:(t,e,r)=>{"use strict";var n=r(2795),o=r(6772),s=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?o(r):r}},6772:(t,e,r)=>{"use strict";var n=r(3200),o=r(2795),s=r(1328),i=r(352),a=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||n.call(u,a),c=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){if("function"!=typeof t)throw new i("a function is required");var e=l(n,u,arguments);return s(e,1+p(0,t.length-(arguments.length-1)),!0)};var f=function(){return l(n,a,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},8780:(t,e,r)=>{"use strict";var n=r(3960)(),o=r(2795),s=n&&o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(t){s=!1}var i=r(5568),a=r(352),u=r(7036);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new a("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],p=!!u&&u(t,e);if(s)s(t,e,{configurable:null===l&&p?p.configurable:!l,enumerable:null===n&&p?p.enumerable:!n,value:r,writable:null===o&&p?p.writable:!o});else{if(!c&&(n||o||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},9648:t=>{"use strict";t.exports=EvalError},3212:t=>{"use strict";t.exports=Error},4500:t=>{"use strict";t.exports=RangeError},9276:t=>{"use strict";t.exports=ReferenceError},5568:t=>{"use strict";t.exports=SyntaxError},352:t=>{"use strict";t.exports=TypeError},4160:t=>{"use strict";t.exports=URIError},6432:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var s,i=function(t,e){for(var r=[],n=1,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments),a=r(0,o.length-i.length),u=[],l=0;l<a;l++)u[l]="$"+l;if(s=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=",");return r}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var e=o.apply(this,n(i,arguments));return Object(e)===e?e:this}return o.apply(t,n(i,arguments))})),o.prototype){var c=function(){};c.prototype=o.prototype,s.prototype=new c,c.prototype=null}return s}},3200:(t,e,r)=>{"use strict";var n=r(6432);t.exports=Function.prototype.bind||n},2795:(t,e,r)=>{"use strict";var n,o=r(3212),s=r(9648),i=r(4500),a=r(9276),u=r(5568),l=r(352),c=r(4160),p=Function,f=function(t){try{return p('"use strict"; return ('+t+").constructor;")()}catch(t){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(t){h=null}var d=function(){throw new l},y=h?function(){try{return d}catch(t){try{return h(arguments,"callee").get}catch(t){return d}}}():d,m=r(9212)(),g=r(8528)(),b=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,E={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":m&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&b?b(""[Symbol.iterator]()):n,"%Symbol%":m?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":y,"%TypedArray%":w,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(t){var C=b(b(t));E["%Error.prototype%"]=C}var S=function t(e){var r;if("%AsyncFunction%"===e)r=f("async function () {}");else if("%GeneratorFunction%"===e)r=f("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=f("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&b&&(r=b(o.prototype))}return E[e]=r,r},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=r(3200),A=r(3504),T=R.call(Function.call,Array.prototype.concat),x=R.call(Function.apply,Array.prototype.splice),q=R.call(Function.call,String.prototype.replace),O=R.call(Function.call,String.prototype.slice),j=R.call(Function.call,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,$=function(t,e){var r,n=t;if(A(P,n)&&(n="%"+(r=P[n])[0]+"%"),A(E,n)){var o=E[n];if(o===v&&(o=S(n)),void 0===o&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=O(t,0,1),r=O(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return q(t,U,(function(t,e,r,o){n[n.length]=r?q(o,_,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=$("%"+n+"%",e),s=o.name,i=o.value,a=!1,c=o.alias;c&&(n=c[0],x(r,T([0,1],c)));for(var p=1,f=!0;p<r.length;p+=1){var d=r[p],y=O(d,0,1),m=O(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&f||(a=!0),A(E,s="%"+(n+="."+d)+"%"))i=E[s];else if(null!=i){if(!(d in i)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(h&&p+1>=r.length){var g=h(i,d);i=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:i[d]}else f=A(i,d),i=i[d];f&&!a&&(E[s]=i)}}return i}},7036:(t,e,r)=>{"use strict";var n=r(2795)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},3960:(t,e,r)=>{"use strict";var n=r(2795)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},8528:t=>{"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},9212:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(7632);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},7632:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3504:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,s=r(3200);t.exports=s.call(n,o)},636:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&o&&"function"==typeof o.get?o.get:null,i=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&u&&"function"==typeof u.get?u.get:null,c=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,C=RegExp.prototype.test,S=Array.prototype.concat,P=Array.prototype.join,R=Array.prototype.slice,A=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,_=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function $(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||C.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-A(-t):A(t);if(n!==t){var o=String(n),s=b.call(e,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var D=r(8132),N=D.custom,L=M(N)?N:null;function I(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function k(t){return v.call(String(t),/"/g,"&quot;")}function G(t){return!("[object Array]"!==H(t)||j&&"object"==typeof t&&j in t)}function F(t){return!("[object RegExp]"!==H(t)||j&&"object"==typeof t&&j in t)}function M(t){if(O)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!q)return!1;try{return q.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,o,a){var u=n||{};if(W(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!W(u,"customInspect")||u.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return z(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var C=String(e);return w?$(e,C):C}if("bigint"==typeof e){var A=String(e)+"n";return w?$(e,A):A}var x=void 0===u.depth?5:u.depth;if(void 0===o&&(o=0),o>=x&&x>0&&"object"==typeof e)return G(e)?"[Array]":"[Object]";var N,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=P.call(Array(t.indent+1)," ")}return{base:r,prev:P.call(Array(e+1),r)}}(u,o);if(void 0===a)a=[];else if(V(a,e)>=0)return"[Circular]";function J(e,r,n){if(r&&(a=R.call(a)).push(r),n){var s={depth:u.depth};return W(u,"quoteStyle")&&(s.quoteStyle=u.quoteStyle),t(e,s,o+1,a)}return t(e,u,o+1,a)}if("function"==typeof e&&!F(e)){var tt=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),et=Z(e,J);return"[Function"+(tt?": "+tt:" (anonymous)")+"]"+(et.length>0?" { "+P.call(et,", ")+" }":"")}if(M(e)){var rt=O?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(e);return"object"!=typeof e||O?rt:Q(rt)}if((N=e)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var nt="<"+E.call(String(e.nodeName)),ot=e.attributes||[],st=0;st<ot.length;st++)nt+=" "+ot[st].name+"="+I(k(ot[st].value),"double",u);return nt+=">",e.childNodes&&e.childNodes.length&&(nt+="..."),nt+"</"+E.call(String(e.nodeName))+">"}if(G(e)){if(0===e.length)return"[]";var it=Z(e,J);return B&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=0)return!1;return!0}(it)?"["+Y(it,B)+"]":"[ "+P.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==H(t)||j&&"object"==typeof t&&j in t)}(e)){var at=Z(e,J);return"cause"in Error.prototype||!("cause"in e)||U.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+P.call(at,", ")+" }":"{ ["+String(e)+"] "+P.call(S.call("[cause]: "+J(e.cause),at),", ")+" }"}if("object"==typeof e&&y){if(L&&"function"==typeof e[L]&&D)return D(e,{depth:x-o});if("symbol"!==y&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ut=[];return i&&i.call(e,(function(t,r){ut.push(J(r,e,!0)+" => "+J(t,e))})),K("Map",s.call(e),ut,B)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var lt=[];return c&&c.call(e,(function(t){lt.push(J(t,e))})),K("Set",l.call(e),lt,B)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return X("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return X("WeakSet");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{return h.call(t),!0}catch(t){}return!1}(e))return X("WeakRef");if(function(t){return!("[object Number]"!==H(t)||j&&"object"==typeof t&&j in t)}(e))return Q(J(Number(e)));if(function(t){if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(t){}return!1}(e))return Q(J(T.call(e)));if(function(t){return!("[object Boolean]"!==H(t)||j&&"object"==typeof t&&j in t)}(e))return Q(d.call(e));if(function(t){return!("[object String]"!==H(t)||j&&"object"==typeof t&&j in t)}(e))return Q(J(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==H(t)||j&&"object"==typeof t&&j in t)}(e)&&!F(e)){var ct=Z(e,J),pt=_?_(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",ht=!pt&&j&&Object(e)===e&&j in e?b.call(H(e),8,-1):ft?"Object":"",dt=(pt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||ft?"["+P.call(S.call([],ht||[],ft||[]),": ")+"] ":"");return 0===ct.length?dt+"{}":B?dt+"{"+Y(ct,B)+"}":dt+"{ "+P.call(ct,", ")+" }"}return String(e)};var B=Object.prototype.hasOwnProperty||function(t){return t in this};function W(t,e){return B.call(t,e)}function H(t){return y.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function z(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return z(b.call(t,0,e.maxStringLength),e)+n}return I(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Q(t){return"Object("+t+")"}function X(t){return t+" { ? }"}function K(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):P.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+P.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=G(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=W(t,o)?e(t[o],t):""}var s,i="function"==typeof x?x(t):[];if(O){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)W(t,u)&&(r&&String(Number(u))===u&&u<t.length||O&&s["$"+u]instanceof Symbol||(C.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof x)for(var l=0;l<i.length;l++)U.call(t,i[l])&&n.push("["+e(i[l])+"]: "+e(t[i[l]],t));return n}},3516:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},6960:(t,e,r)=>{"use strict";var n=r(3976),o=r(4688),s=r(3516);t.exports={formats:s,parse:o,stringify:n}},4688:(t,e,r)=>{"use strict";var n=r(72),o=Object.prototype.hasOwnProperty,s=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,r,n){if(t){var s=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(s),l=a?s.slice(0,a.index):s,c=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}for(var p=0;r.depth>0&&null!==(a=i.exec(s))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+s.slice(a.index)+"]"),function(t,e,r,n){for(var o=n?e:u(e,r),s=t.length-1;s>=0;--s){var i,a=t[s];if("[]"===a&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);r.parseArrays||""!==l?!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=o:"__proto__"!==l&&(i[l]=o):i={0:o}}o=i}return o}(c,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return i;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:i.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var r,l={__proto__:null},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=c.split(e.delimiter,p),h=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?d="utf-8":"utf8=%26%2310003%3B"===f[r]&&(d="iso-8859-1"),h=r,r=f.length);for(r=0;r<f.length;++r)if(r!==h){var y,m,g=f[r],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(y=e.decoder(g,i.decoder,d,"key"),m=e.strictNullHandling?null:""):(y=e.decoder(g.slice(0,v),i.decoder,d,"key"),m=n.maybeMap(u(g.slice(v+1),e),(function(t){return e.decoder(t,i.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=a(m)),g.indexOf("[]=")>-1&&(m=s(m)?[m]:m),o.call(l,y)?l[y]=n.combine(l[y],m):l[y]=m}return l}(t,r):t,p=r.plainObjects?Object.create(null):{},f=Object.keys(c),h=0;h<f.length;++h){var d=f[h],y=l(d,c[d],r,"string"==typeof t);p=n.merge(p,y,r)}return!0===r.allowSparse?p:n.compact(p)}},3976:(t,e,r)=>{"use strict";var n=r(5252),o=r(72),s=r(3516),i=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,l=Array.prototype.push,c=function(t,e){l.apply(t,u(e)?e:[e])},p=Date.prototype.toISOString,f=s.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:s.formatters[f],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},d={},y=function t(e,r,s,i,a,l,p,f,y,m,g,b,v,w,E,C){for(var S,P=e,R=C,A=0,T=!1;void 0!==(R=R.get(d))&&!T;){var x=R.get(e);if(A+=1,void 0!==x){if(x===A)throw new RangeError("Cyclic object value");T=!0}void 0===R.get(d)&&(A=0)}if("function"==typeof f?P=f(r,P):P instanceof Date?P=g(P):"comma"===s&&u(P)&&(P=o.maybeMap(P,(function(t){return t instanceof Date?g(t):t}))),null===P){if(a)return p&&!w?p(r,h.encoder,E,"key",b):r;P=""}if("string"==typeof(S=P)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(P))return p?[v(w?r:p(r,h.encoder,E,"key",b))+"="+v(p(P,h.encoder,E,"value",b))]:[v(r)+"="+v(String(P))];var q,O=[];if(void 0===P)return O;if("comma"===s&&u(P))w&&p&&(P=o.maybeMap(P,p)),q=[{value:P.length>0?P.join(",")||null:void 0}];else if(u(f))q=f;else{var j=Object.keys(P);q=y?j.sort(y):j}for(var U=i&&u(P)&&1===P.length?r+"[]":r,_=0;_<q.length;++_){var $=q[_],D="object"==typeof $&&void 0!==$.value?$.value:P[$];if(!l||null!==D){var N=u(P)?"function"==typeof s?s(U,$):U:U+(m?"."+$:"["+$+"]");C.set(e,A);var L=n();L.set(d,C),c(O,t(D,N,s,i,a,l,"comma"===s&&w&&u(P)?null:p,f,y,m,g,b,v,w,E,L))}}return O};t.exports=function(t,e){var r,o=t,l=function(t){if(!t)return h;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||h.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=s.default;if(void 0!==t.format){if(!i.call(s.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=s.formatters[r],o=h.filter;return("function"==typeof t.filter||u(t.filter))&&(o=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===t.allowDots?h.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:h.charsetSentinel,delimiter:void 0===t.delimiter?h.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:h.encode,encoder:"function"==typeof t.encoder?t.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:h.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:h.strictNullHandling}}(e);"function"==typeof l.filter?o=(0,l.filter)("",o):u(l.filter)&&(r=l.filter);var p,f=[];if("object"!=typeof o||null===o)return"";p=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=a[p];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===d&&e&&e.commaRoundTrip;r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var g=n(),b=0;b<r.length;++b){var v=r[b];l.skipNulls&&null===o[v]||c(f,y(o[v],v,d,m,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var w=f.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),w.length>0?E+w:""}},72:(t,e,r)=>{"use strict";var n=r(3516),o=Object.prototype.hasOwnProperty,s=Array.isArray,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var l=a[u],c=i[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(e.push({obj:i,prop:l}),r.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(s(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,o,s){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",l=0;l<a.length;++l){var c=a.charCodeAt(l);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===n.RFC1738&&(40===c||41===c)?u+=a.charAt(l):c<128?u+=i[c]:c<2048?u+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?u+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(l)),u+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(s(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(s(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var i=e;return s(e)&&!s(r)&&(i=a(e,n)),s(e)&&s(r)?(r.forEach((function(r,s){if(o.call(e,s)){var i=e[s];i&&"object"==typeof i&&r&&"object"==typeof r?e[s]=t(i,r,n):e.push(r)}else e[s]=r})),e):Object.keys(r).reduce((function(e,s){var i=r[s];return o.call(e,s)?e[s]=t(e[s],i,n):e[s]=i,e}),i)}}},1328:(t,e,r)=>{"use strict";var n=r(2795),o=r(8780),s=r(3960)(),i=r(7036),a=r(352),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in t&&i){var c=i(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(l=!1)}return(n||l||!r)&&(s?o(t,"length",e,!0,!0):o(t,"length",e)),t}},5252:(t,e,r)=>{"use strict";var n=r(2795),o=r(256),s=r(636),i=r(352),a=n("%WeakMap%",!0),u=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),y=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new i("Side channel does not contain "+s(t))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return l(t,n)}else if(u){if(e)return f(e,n)}else if(r)return function(t,e){var r=y(t,e);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return p(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!y(t,e)}(r,n);return!1},set:function(n,o){a&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new a),c(t,n,o)):u?(e||(e=new u),h(e,n,o)):(r||(r={key:{},next:null}),function(t,e,r){var n=y(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,o))}};return n}},8132:()=>{}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,r),s.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{RestApi:()=>Y,default:()=>Z,isAxiosError:()=>K});var t=r(9048),e=r.n(t);class o{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:R`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:R`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:R`apps/info`,options:t})}}class s{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:R`map`,options:t})}saveSettings(t,e){return this.httpClient.request({method:"PUT",url:R`map`,data:t,options:e})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:R`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:R`map/getCustomMapInfo`,options:t})}getSettingsJs(t){return this.httpClient.request({method:"GET",url:R`map/js`,options:t})}getTile(t,e,r,n){return this.httpClient.request({method:"GET",url:R`map/tile/${t}/${e}/${r}`,options:n})}uploadMap(t,e){return this.httpClient.request({method:"POST",url:R`map/upload`,queryParams:t,options:e})}}class i{constructor(t){this.httpClient=t}startTunnel(t,e){return this.httpClient.request({method:"POST",url:R`gateway/tunnel`,data:t,options:e})}stopTunnel(t,e){return this.httpClient.request({method:"DELETE",url:R`gateway/tunnel`,data:t,options:e})}getAllActiveTunnelInfos(t,e){return this.httpClient.request({method:"GET",url:R`gateway/tunnel/${t}`,options:e})}getGatewayActiveTunnelInfos(t,e,r){return this.httpClient.request({method:"GET",url:R`gateway/tunnel/${t}/${e}`,options:r})}getActiveTunnelInfo(t,e,r,n,o){return this.httpClient.request({method:"GET",url:R`gateway/tunnel/${t}/${e}/${r}/${n}`,options:o})}}class a{constructor(t){this.httpClient=t}getAssetDescriptors(t,e){return this.httpClient.request({method:"GET",url:R`model/assetDescriptors`,queryParams:t,options:e})}getAssetInfo(t,e,r){return this.httpClient.request({method:"GET",url:R`model/assetInfo/${t}`,queryParams:e,options:r})}getAssetInfos(t,e){return this.httpClient.request({method:"GET",url:R`model/assetInfos`,queryParams:t,options:e})}getMetaItemDescriptors(t,e){return this.httpClient.request({method:"GET",url:R`model/metaItemDescriptors`,queryParams:t,options:e})}getValueDescriptors(t,e){return this.httpClient.request({method:"GET",url:R`model/valueDescriptors`,queryParams:t,options:e})}}class u{constructor(t){this.httpClient=t}createAlarm(t,e,r){return this.httpClient.request({method:"POST",url:R`alarm`,queryParams:e,data:t,options:r})}getAlarms(t,e){return this.httpClient.request({method:"GET",url:R`alarm`,queryParams:t,options:e})}removeAlarms(t,e){return this.httpClient.request({method:"DELETE",url:R`alarm`,data:t,options:e})}setAssetLinks(t,e){return this.httpClient.request({method:"PUT",url:R`alarm/assets`,data:t,options:e})}getAlarm(t,e){return this.httpClient.request({method:"GET",url:R`alarm/${t}`,options:e})}removeAlarm(t,e){return this.httpClient.request({method:"DELETE",url:R`alarm/${t}`,options:e})}updateAlarm(t,e,r){return this.httpClient.request({method:"PUT",url:R`alarm/${t}`,data:e,options:r})}getAssetLinks(t,e,r){return this.httpClient.request({method:"GET",url:R`alarm/${t}/assets`,queryParams:e,options:r})}}class l{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:R`syslog/config`,options:t})}updateConfig(t,e){return this.httpClient.request({method:"PUT",url:R`syslog/config`,data:t,options:e})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:R`syslog/event`,options:t})}getEvents(t,e){return this.httpClient.request({method:"GET",url:R`syslog/event`,queryParams:t,options:e})}}class c{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:R`asset`,data:t,options:e})}delete(t,e){return this.httpClient.request({method:"DELETE",url:R`asset`,queryParams:t,options:e})}writeAttributeValues(t,e){return this.httpClient.request({method:"PUT",url:R`asset/attributes`,data:t,options:e})}writeAttributeEvents(t,e){return this.httpClient.request({method:"PUT",url:R`asset/attributes/timestamp`,data:t,options:e})}updateNoneParent(t,e){return this.httpClient.request({method:"DELETE",url:R`asset/parent`,queryParams:t,options:e})}getPartial(t,e){return this.httpClient.request({method:"GET",url:R`asset/partial/${t}`,options:e})}queryAssets(t,e){return this.httpClient.request({method:"POST",url:R`asset/query`,data:t,options:e})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:R`asset/user/current`,options:t})}createUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:R`asset/user/link`,data:t,options:e})}getUserAssetLinks(t,e){return this.httpClient.request({method:"GET",url:R`asset/user/link`,queryParams:t,options:e})}deleteUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:R`asset/user/link/delete`,data:t,options:e})}deleteAllUserAssetLinks(t,e,r){return this.httpClient.request({method:"DELETE",url:R`asset/user/link/${t}/${e}`,options:r})}deleteUserAssetLink(t,e,r,n){return this.httpClient.request({method:"DELETE",url:R`asset/user/link/${t}/${e}/${r}`,options:n})}get(t,e){return this.httpClient.request({method:"GET",url:R`asset/${t}`,options:e})}update(t,e,r){return this.httpClient.request({method:"PUT",url:R`asset/${t}`,data:e,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`asset/${t}/attribute/${e}`,data:r,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,e,r,n,o){return this.httpClient.request({method:"PUT",url:R`asset/${t}/attribute/${e}/${r}`,data:n,options:o})}updateParent(t,e,r){return this.httpClient.request({method:"PUT",url:R`asset/${t}/child`,queryParams:e,options:r})}}class p{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,e){return this.httpClient.request({method:"PUT",url:R`user/locale`,data:t,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:R`user/query`,data:t,options:e})}getCurrent(t){return this.httpClient.request({method:"GET",url:R`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:R`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,e){return this.httpClient.request({method:"GET",url:R`user/userRoles/${t}`,options:e})}disconnectUserSession(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/disconnect/${e}`,options:r})}resetPassword(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`user/${t}/reset-password/${e}`,data:r,options:n})}resetSecret(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/reset-secret/${e}`,options:r})}updateRoles(t,e,r){return this.httpClient.request({method:"PUT",url:R`user/${t}/roles`,data:e,options:r})}getUserRealmRoles(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/userRealmRoles/${e}`,options:r})}updateUserRealmRoles(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`user/${t}/userRealmRoles/${e}`,data:r,options:n})}getUserClientRoles(t,e,r,n){return this.httpClient.request({method:"GET",url:R`user/${t}/userRoles/${e}/${r}`,options:n})}updateUserClientRoles(t,e,r,n,o){return this.httpClient.request({method:"PUT",url:R`user/${t}/userRoles/${e}/${r}`,data:n,options:o})}getUserSessions(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/userSessions/${e}`,options:r})}create(t,e,r){return this.httpClient.request({method:"POST",url:R`user/${t}/users`,data:e,options:r})}update(t,e,r){return this.httpClient.request({method:"PUT",url:R`user/${t}/users`,data:e,options:r})}delete(t,e,r){return this.httpClient.request({method:"DELETE",url:R`user/${t}/users/${e}`,options:r})}getClientRoles(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/${e}/roles`,options:r})}updateClientRoles(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`user/${t}/${e}/roles`,data:r,options:n})}get(t,e,r){return this.httpClient.request({method:"GET",url:R`user/${t}/${e}`,options:r})}}class f{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:R`realm`,data:t,options:e})}getAll(t){return this.httpClient.request({method:"GET",url:R`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:R`realm/accessible`,options:t})}delete(t,e){return this.httpClient.request({method:"DELETE",url:R`realm/${t}`,options:e})}get(t,e){return this.httpClient.request({method:"GET",url:R`realm/${t}`,options:e})}update(t,e,r){return this.httpClient.request({method:"PUT",url:R`realm/${t}`,data:e,options:r})}}class h{constructor(t){this.httpClient=t}deleteConnections(t,e){return this.httpClient.request({method:"DELETE",url:R`gateway/connection`,queryParams:t,options:e})}getConnections(t){return this.httpClient.request({method:"GET",url:R`gateway/connection`,options:t})}deleteConnection(t,e){return this.httpClient.request({method:"DELETE",url:R`gateway/connection/${t}`,options:e})}getConnection(t,e){return this.httpClient.request({method:"GET",url:R`gateway/connection/${t}`,options:e})}setConnection(t,e,r){return this.httpClient.request({method:"PUT",url:R`gateway/connection/${t}`,data:e,options:r})}getConnectionStatus(t,e){return this.httpClient.request({method:"GET",url:R`gateway/status/${t}`,options:e})}}class d{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:R`dashboard`,data:t,options:e})}update(t,e){return this.httpClient.request({method:"PUT",url:R`dashboard`,data:t,options:e})}getAllRealmDashboards(t,e){return this.httpClient.request({method:"GET",url:R`dashboard/all/${t}`,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:R`dashboard/query`,data:t,options:e})}delete(t,e,r){return this.httpClient.request({method:"DELETE",url:R`dashboard/${t}/${e}`,options:r})}get(t,e,r){return this.httpClient.request({method:"GET",url:R`dashboard/${t}/${e}`,options:r})}}class y{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,e,r){return this.httpClient.request({method:"GET",url:R`agent/assetDiscovery/${t}`,queryParams:e,options:r})}doProtocolAssetImport(t,e,r,n){return this.httpClient.request({method:"POST",url:R`agent/assetImport/${t}`,queryParams:r,data:e,options:n})}doProtocolInstanceDiscovery(t,e,r){return this.httpClient.request({method:"GET",url:R`agent/instanceDiscovery/${t}`,queryParams:e,options:r})}}class m{constructor(t){this.httpClient=t}getPredictedDatapoints(t,e,r,n){return this.httpClient.request({method:"POST",url:R`asset/predicted/${t}/${e}`,data:r,options:n})}writePredictedDatapoints(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`asset/predicted/${t}/${e}`,data:r,options:n})}}class g{constructor(t){this.httpClient=t}createProvisioningConfig(t,e){return this.httpClient.request({method:"POST",url:R`provisioning`,data:t,options:e})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:R`provisioning`,options:t})}deleteProvisioningConfig(t,e){return this.httpClient.request({method:"DELETE",url:R`provisioning/${t}`,options:e})}updateProvisioningConfig(t,e,r){return this.httpClient.request({method:"PUT",url:R`provisioning/${t}`,data:e,options:r})}}class b{constructor(t){this.httpClient=t}getNotifications(t,e){return this.httpClient.request({method:"GET",url:R`notification`,queryParams:t,options:e})}removeNotifications(t,e){return this.httpClient.request({method:"DELETE",url:R`notification`,queryParams:t,options:e})}sendNotification(t,e){return this.httpClient.request({method:"POST",url:R`notification/alert`,data:t,options:e})}removeNotification(t,e){return this.httpClient.request({method:"DELETE",url:R`notification/${t}`,options:e})}notificationAcknowledged(t,e,r,n){return this.httpClient.request({method:"PUT",url:R`notification/${t}/acknowledged`,queryParams:r,data:e,options:n})}notificationDelivered(t,e,r){return this.httpClient.request({method:"PUT",url:R`notification/${t}/delivered`,queryParams:e,options:r})}}class v{constructor(t){this.httpClient=t}register(t,e){return this.httpClient.request({method:"POST",url:R`console/register`,data:t,options:e})}}class w{constructor(t){this.httpClient=t}createGlobalRuleset(t,e){return this.httpClient.request({method:"POST",url:R`rules`,data:t,options:e})}getGlobalRulesets(t,e){return this.httpClient.request({method:"GET",url:R`rules`,queryParams:t,options:e})}createAssetRuleset(t,e){return this.httpClient.request({method:"POST",url:R`rules/asset`,data:t,options:e})}getAssetRulesets(t,e,r){return this.httpClient.request({method:"GET",url:R`rules/asset/for/${t}`,queryParams:e,options:r})}deleteAssetRuleset(t,e){return this.httpClient.request({method:"DELETE",url:R`rules/asset/${t}`,options:e})}getAssetRuleset(t,e){return this.httpClient.request({method:"GET",url:R`rules/asset/${t}`,options:e})}updateAssetRuleset(t,e,r){return this.httpClient.request({method:"PUT",url:R`rules/asset/${t}`,data:e,options:r})}getAssetGeofences(t,e){return this.httpClient.request({method:"GET",url:R`rules/geofences/${t}`,options:e})}getAssetEngineInfo(t,e){return this.httpClient.request({method:"GET",url:R`rules/info/asset/${t}`,options:e})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:R`rules/info/global`,options:t})}getRealmEngineInfo(t,e){return this.httpClient.request({method:"GET",url:R`rules/info/realm/${t}`,options:e})}createRealmRuleset(t,e){return this.httpClient.request({method:"POST",url:R`rules/realm`,data:t,options:e})}getRealmRulesets(t,e,r){return this.httpClient.request({method:"GET",url:R`rules/realm/for/${t}`,queryParams:e,options:r})}deleteRealmRuleset(t,e){return this.httpClient.request({method:"DELETE",url:R`rules/realm/${t}`,options:e})}getRealmRuleset(t,e){return this.httpClient.request({method:"GET",url:R`rules/realm/${t}`,options:e})}updateRealmRuleset(t,e,r){return this.httpClient.request({method:"PUT",url:R`rules/realm/${t}`,data:e,options:r})}deleteGlobalRuleset(t,e){return this.httpClient.request({method:"DELETE",url:R`rules/${t}`,options:e})}getGlobalRuleset(t,e){return this.httpClient.request({method:"GET",url:R`rules/${t}`,options:e})}updateGlobalRuleset(t,e,r){return this.httpClient.request({method:"PUT",url:R`rules/${t}`,data:e,options:r})}}class E{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:R`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:R`info`,options:t})}}class C{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:R`flow`,options:t})}getNodeDefinition(t,e){return this.httpClient.request({method:"GET",url:R`flow/${t}`,options:e})}getAllNodeDefinitionsByType(t,e){return this.httpClient.request({method:"GET",url:R`flow/${t}`,options:e})}}class S{constructor(t){this.httpClient=t}getDatapointExport(t,e){return this.httpClient.request({method:"GET",url:R`asset/datapoint/export`,queryParams:t,options:e})}getDatapointPeriod(t,e){return this.httpClient.request({method:"GET",url:R`asset/datapoint/periods`,queryParams:t,options:e})}getDatapoints(t,e,r,n){return this.httpClient.request({method:"POST",url:R`asset/datapoint/${t}/${e}`,data:r,options:n})}}class P{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:R`configuration/manager`,options:t})}update(t,e){return this.httpClient.request({method:"PUT",url:R`configuration/manager`,data:t,options:e})}fileUpload(t,e,r){return this.httpClient.request({method:"POST",url:R`configuration/manager/file`,queryParams:e,data:t,options:r})}getManagerConfigImage(t,e){return this.httpClient.request({method:"GET",url:R`configuration/manager/image/${t}`,options:e})}}function R(t,...e){let r="";for(let n=0;n<e.length;n++)r+=t[n],r+=encodeURIComponent(e[n]);return r+=t[t.length-1],r}class A{constructor(t,r=e().create()){this._appResource=new x(t,r),this._mapResource=new q(t,r),this._gatewayServiceResource=new O(t,r),this._assetModelResource=new j(t,r),this._alarmResource=new U(t,r),this._syslogResource=new _(t,r),this._assetResource=new $(t,r),this._userResource=new D(t,r),this._realmResource=new N(t,r),this._gatewayClientResource=new L(t,r),this._dashboardResource=new I(t,r),this._agentResource=new k(t,r),this._assetPredictedDatapointResource=new G(t,r),this._provisioningResource=new F(t,r),this._notificationResource=new M(t,r),this._consoleResource=new B(t,r),this._rulesResource=new W(t,r),this._statusResource=new H(t,r),this._flowResource=new V(t,r),this._assetDatapointResource=new z(t,r),this._configurationResource=new J(t,r),this._assetResource=new $(t,r)}get AppResource(){return this._appResource}get MapResource(){return this._mapResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}get AlarmResource(){return this._alarmResource}get SyslogResource(){return this._syslogResource}get AssetResource(){return this._assetResource}get UserResource(){return this._userResource}get RealmResource(){return this._realmResource}get GatewayClientResource(){return this._gatewayClientResource}get DashboardResource(){return this._dashboardResource}get AgentResource(){return this._agentResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ProvisioningResource(){return this._provisioningResource}get NotificationResource(){return this._notificationResource}get ConsoleResource(){return this._consoleResource}get RulesResource(){return this._rulesResource}get StatusResource(){return this._statusResource}get FlowResource(){return this._flowResource}get AssetDatapointResource(){return this._assetDatapointResource}get ConfigurationResource(){return this._configurationResource}}class T{constructor(t){this.axios=t}request(t){const e={};e.method=t.method,e.url=t.url,e.params=t.queryParams,e.data=t.data,function(t,e){if(null!=e)for(const r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}(e,t.options);const r=t.copyFn;return this.axios.request(e).then((t=>(r&&t.data&&(t.originalData=t.data,t.data=r(t.data)),t)))}}class x extends o{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class q extends s{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class O extends i{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class j extends a{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class U extends u{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class _ extends l{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class $ extends c{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class D extends p{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class N extends f{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class L extends h{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class I extends d{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class k extends y{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class G extends m{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class F extends g{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class M extends b{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class B extends v{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class W extends w{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class H extends E{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class V extends C{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class z extends S{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}class J extends P{constructor(t,r=e().create()){r.defaults.baseURL=t,super(new T(r))}}var Q=r(6960),X=r.n(Q);const K=e().isAxiosError;class Y{get api(){return this._client}constructor(){this._axiosInstance=e().create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use((t=>(t.paramsSerializer=t=>X().stringify(t,{arrayFormat:"repeat"}),t)))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new A(t,this._axiosInstance)}}const Z=new Y})(),n})()));
package/dist/umd/index.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("axios"),require("Qs")):"function"==typeof define&&define.amd?define(["axios","Qs"],e):"object"==typeof exports?exports.ORRest=e(require("axios"),require("Qs")):t.ORRest=e(t.axios,t.Qs)}(self,((t,e)=>(()=>{"use strict";var s={968:t=>{t.exports=e},368:e=>{e.exports=t}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={exports:{}};return s[t](n,n.exports,o),n.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var s in e)o.o(e,s)&&!o.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{RestApi:()=>Y,default:()=>Z,isAxiosError:()=>X});var t=o(368),e=o.n(t);class s{constructor(t){this.httpClient=t}startTunnel(t,e){return this.httpClient.request({method:"POST",url:w`gateway/tunnel`,data:t,options:e})}stopTunnel(t,e){return this.httpClient.request({method:"DELETE",url:w`gateway/tunnel`,data:t,options:e})}getAllActiveTunnelInfos(t,e){return this.httpClient.request({method:"GET",url:w`gateway/tunnel/${t}`,options:e})}getGatewayActiveTunnelInfos(t,e,s){return this.httpClient.request({method:"GET",url:w`gateway/tunnel/${t}/${e}`,options:s})}getActiveTunnelInfo(t,e,s,r,o){return this.httpClient.request({method:"GET",url:w`gateway/tunnel/${t}/${e}/${s}/${r}`,options:o})}}class r{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:w`realm`,data:t,options:e})}getAll(t){return this.httpClient.request({method:"GET",url:w`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:w`realm/accessible`,options:t})}delete(t,e){return this.httpClient.request({method:"DELETE",url:w`realm/${t}`,options:e})}get(t,e){return this.httpClient.request({method:"GET",url:w`realm/${t}`,options:e})}update(t,e,s){return this.httpClient.request({method:"PUT",url:w`realm/${t}`,data:e,options:s})}}class u{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:w`map`,options:t})}saveSettings(t,e){return this.httpClient.request({method:"PUT",url:w`map`,data:t,options:e})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:w`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:w`map/getCustomMapInfo`,options:t})}getSettingsJs(t){return this.httpClient.request({method:"GET",url:w`map/js`,options:t})}getTile(t,e,s,r){return this.httpClient.request({method:"GET",url:w`map/tile/${t}/${e}/${s}`,options:r})}uploadMap(t,e){return this.httpClient.request({method:"POST",url:w`map/upload`,queryParams:t,options:e})}}class i{constructor(t){this.httpClient=t}getDatapointExport(t,e){return this.httpClient.request({method:"GET",url:w`asset/datapoint/export`,queryParams:t,options:e})}getDatapointPeriod(t,e){return this.httpClient.request({method:"GET",url:w`asset/datapoint/periods`,queryParams:t,options:e})}getDatapoints(t,e,s,r){return this.httpClient.request({method:"POST",url:w`asset/datapoint/${t}/${e}`,data:s,options:r})}}class a{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:w`configuration/manager`,options:t})}update(t,e){return this.httpClient.request({method:"PUT",url:w`configuration/manager`,data:t,options:e})}fileUpload(t,e,s){return this.httpClient.request({method:"POST",url:w`configuration/manager/file`,queryParams:e,data:t,options:s})}getManagerConfigImage(t,e){return this.httpClient.request({method:"GET",url:w`configuration/manager/image/${t}`,options:e})}}class l{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:w`dashboard`,data:t,options:e})}update(t,e){return this.httpClient.request({method:"PUT",url:w`dashboard`,data:t,options:e})}getAllRealmDashboards(t,e){return this.httpClient.request({method:"GET",url:w`dashboard/all/${t}`,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:w`dashboard/query`,data:t,options:e})}delete(t,e,s){return this.httpClient.request({method:"DELETE",url:w`dashboard/${t}/${e}`,options:s})}get(t,e,s){return this.httpClient.request({method:"GET",url:w`dashboard/${t}/${e}`,options:s})}}class h{constructor(t){this.httpClient=t}getNotifications(t,e){return this.httpClient.request({method:"GET",url:w`notification`,queryParams:t,options:e})}removeNotifications(t,e){return this.httpClient.request({method:"DELETE",url:w`notification`,queryParams:t,options:e})}sendNotification(t,e){return this.httpClient.request({method:"POST",url:w`notification/alert`,data:t,options:e})}removeNotification(t,e){return this.httpClient.request({method:"DELETE",url:w`notification/${t}`,options:e})}notificationAcknowledged(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`notification/${t}/acknowledged`,queryParams:s,data:e,options:r})}notificationDelivered(t,e,s){return this.httpClient.request({method:"PUT",url:w`notification/${t}/delivered`,queryParams:e,options:s})}}class p{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:w`asset`,data:t,options:e})}delete(t,e){return this.httpClient.request({method:"DELETE",url:w`asset`,queryParams:t,options:e})}writeAttributeValues(t,e){return this.httpClient.request({method:"PUT",url:w`asset/attributes`,data:t,options:e})}writeAttributeEvents(t,e){return this.httpClient.request({method:"PUT",url:w`asset/attributes/timestamp`,data:t,options:e})}updateNoneParent(t,e){return this.httpClient.request({method:"DELETE",url:w`asset/parent`,queryParams:t,options:e})}getPartial(t,e){return this.httpClient.request({method:"GET",url:w`asset/partial/${t}`,options:e})}queryAssets(t,e){return this.httpClient.request({method:"POST",url:w`asset/query`,data:t,options:e})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:w`asset/user/current`,options:t})}createUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:w`asset/user/link`,data:t,options:e})}getUserAssetLinks(t,e){return this.httpClient.request({method:"GET",url:w`asset/user/link`,queryParams:t,options:e})}deleteUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:w`asset/user/link/delete`,data:t,options:e})}deleteAllUserAssetLinks(t,e,s){return this.httpClient.request({method:"DELETE",url:w`asset/user/link/${t}/${e}`,options:s})}deleteUserAssetLink(t,e,s,r){return this.httpClient.request({method:"DELETE",url:w`asset/user/link/${t}/${e}/${s}`,options:r})}get(t,e){return this.httpClient.request({method:"GET",url:w`asset/${t}`,options:e})}update(t,e,s){return this.httpClient.request({method:"PUT",url:w`asset/${t}`,data:e,options:s})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`asset/${t}/attribute/${e}`,data:s,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,e,s,r,o){return this.httpClient.request({method:"PUT",url:w`asset/${t}/attribute/${e}/${s}`,data:r,options:o})}updateParent(t,e,s){return this.httpClient.request({method:"PUT",url:w`asset/${t}/child`,queryParams:e,options:s})}}class d{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:w`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:w`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:w`apps/info`,options:t})}}class c{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,e){return this.httpClient.request({method:"PUT",url:w`user/locale`,data:t,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:w`user/query`,data:t,options:e})}getCurrent(t){return this.httpClient.request({method:"GET",url:w`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:w`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,e){return this.httpClient.request({method:"GET",url:w`user/userRoles/${t}`,options:e})}disconnectUserSession(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/disconnect/${e}`,options:s})}resetPassword(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`user/${t}/reset-password/${e}`,data:s,options:r})}resetSecret(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/reset-secret/${e}`,options:s})}updateRoles(t,e,s){return this.httpClient.request({method:"PUT",url:w`user/${t}/roles`,data:e,options:s})}getUserRealmRoles(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/userRealmRoles/${e}`,options:s})}updateUserRealmRoles(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`user/${t}/userRealmRoles/${e}`,data:s,options:r})}getUserClientRoles(t,e,s,r){return this.httpClient.request({method:"GET",url:w`user/${t}/userRoles/${e}/${s}`,options:r})}updateUserClientRoles(t,e,s,r,o){return this.httpClient.request({method:"PUT",url:w`user/${t}/userRoles/${e}/${s}`,data:r,options:o})}getUserSessions(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/userSessions/${e}`,options:s})}create(t,e,s){return this.httpClient.request({method:"POST",url:w`user/${t}/users`,data:e,options:s})}update(t,e,s){return this.httpClient.request({method:"PUT",url:w`user/${t}/users`,data:e,options:s})}delete(t,e,s){return this.httpClient.request({method:"DELETE",url:w`user/${t}/users/${e}`,options:s})}getClientRoles(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/${e}/roles`,options:s})}updateClientRoles(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`user/${t}/${e}/roles`,data:s,options:r})}get(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/${e}`,options:s})}}class m{constructor(t){this.httpClient=t}getAssetDescriptors(t,e){return this.httpClient.request({method:"GET",url:w`model/assetDescriptors`,queryParams:t,options:e})}getAssetInfo(t,e,s){return this.httpClient.request({method:"GET",url:w`model/assetInfo/${t}`,queryParams:e,options:s})}getAssetInfos(t,e){return this.httpClient.request({method:"GET",url:w`model/assetInfos`,queryParams:t,options:e})}getMetaItemDescriptors(t,e){return this.httpClient.request({method:"GET",url:w`model/metaItemDescriptors`,queryParams:t,options:e})}getValueDescriptors(t,e){return this.httpClient.request({method:"GET",url:w`model/valueDescriptors`,queryParams:t,options:e})}}class C{constructor(t){this.httpClient=t}createGlobalRuleset(t,e){return this.httpClient.request({method:"POST",url:w`rules`,data:t,options:e})}getGlobalRulesets(t,e){return this.httpClient.request({method:"GET",url:w`rules`,queryParams:t,options:e})}createAssetRuleset(t,e){return this.httpClient.request({method:"POST",url:w`rules/asset`,data:t,options:e})}getAssetRulesets(t,e,s){return this.httpClient.request({method:"GET",url:w`rules/asset/for/${t}`,queryParams:e,options:s})}deleteAssetRuleset(t,e){return this.httpClient.request({method:"DELETE",url:w`rules/asset/${t}`,options:e})}getAssetRuleset(t,e){return this.httpClient.request({method:"GET",url:w`rules/asset/${t}`,options:e})}updateAssetRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:w`rules/asset/${t}`,data:e,options:s})}getAssetGeofences(t,e){return this.httpClient.request({method:"GET",url:w`rules/geofences/${t}`,options:e})}getAssetEngineInfo(t,e){return this.httpClient.request({method:"GET",url:w`rules/info/asset/${t}`,options:e})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:w`rules/info/global`,options:t})}getRealmEngineInfo(t,e){return this.httpClient.request({method:"GET",url:w`rules/info/realm/${t}`,options:e})}createRealmRuleset(t,e){return this.httpClient.request({method:"POST",url:w`rules/realm`,data:t,options:e})}getRealmRulesets(t,e,s){return this.httpClient.request({method:"GET",url:w`rules/realm/for/${t}`,queryParams:e,options:s})}deleteRealmRuleset(t,e){return this.httpClient.request({method:"DELETE",url:w`rules/realm/${t}`,options:e})}getRealmRuleset(t,e){return this.httpClient.request({method:"GET",url:w`rules/realm/${t}`,options:e})}updateRealmRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:w`rules/realm/${t}`,data:e,options:s})}deleteGlobalRuleset(t,e){return this.httpClient.request({method:"DELETE",url:w`rules/${t}`,options:e})}getGlobalRuleset(t,e){return this.httpClient.request({method:"GET",url:w`rules/${t}`,options:e})}updateGlobalRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:w`rules/${t}`,data:e,options:s})}}class q{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,e,s){return this.httpClient.request({method:"GET",url:w`agent/assetDiscovery/${t}`,queryParams:e,options:s})}doProtocolAssetImport(t,e,s,r){return this.httpClient.request({method:"POST",url:w`agent/assetImport/${t}`,queryParams:s,data:e,options:r})}doProtocolInstanceDiscovery(t,e,s){return this.httpClient.request({method:"GET",url:w`agent/instanceDiscovery/${t}`,queryParams:e,options:s})}}class g{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:w`flow`,options:t})}getNodeDefinition(t,e){return this.httpClient.request({method:"GET",url:w`flow/${t}`,options:e})}getAllNodeDefinitionsByType(t,e){return this.httpClient.request({method:"GET",url:w`flow/${t}`,options:e})}}class T{constructor(t){this.httpClient=t}deleteConnections(t,e){return this.httpClient.request({method:"DELETE",url:w`gateway/connection`,queryParams:t,options:e})}getConnections(t){return this.httpClient.request({method:"GET",url:w`gateway/connection`,options:t})}deleteConnection(t,e){return this.httpClient.request({method:"DELETE",url:w`gateway/connection/${t}`,options:e})}getConnection(t,e){return this.httpClient.request({method:"GET",url:w`gateway/connection/${t}`,options:e})}setConnection(t,e,s){return this.httpClient.request({method:"PUT",url:w`gateway/connection/${t}`,data:e,options:s})}getConnectionStatus(t,e){return this.httpClient.request({method:"GET",url:w`gateway/status/${t}`,options:e})}}class R{constructor(t){this.httpClient=t}createAlarm(t,e,s){return this.httpClient.request({method:"POST",url:w`alarm`,queryParams:e,data:t,options:s})}getAlarms(t,e){return this.httpClient.request({method:"GET",url:w`alarm`,queryParams:t,options:e})}removeAlarms(t,e){return this.httpClient.request({method:"DELETE",url:w`alarm`,data:t,options:e})}setAssetLinks(t,e){return this.httpClient.request({method:"PUT",url:w`alarm/assets`,data:t,options:e})}getAlarm(t,e){return this.httpClient.request({method:"GET",url:w`alarm/${t}`,options:e})}removeAlarm(t,e){return this.httpClient.request({method:"DELETE",url:w`alarm/${t}`,options:e})}updateAlarm(t,e,s){return this.httpClient.request({method:"PUT",url:w`alarm/${t}`,data:e,options:s})}getAssetLinks(t,e,s){return this.httpClient.request({method:"GET",url:w`alarm/${t}/assets`,queryParams:e,options:s})}}class E{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:w`syslog/config`,options:t})}updateConfig(t,e){return this.httpClient.request({method:"PUT",url:w`syslog/config`,data:t,options:e})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:w`syslog/event`,options:t})}getEvents(t,e){return this.httpClient.request({method:"GET",url:w`syslog/event`,queryParams:t,options:e})}}class f{constructor(t){this.httpClient=t}register(t,e){return this.httpClient.request({method:"POST",url:w`console/register`,data:t,options:e})}}class ${constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:w`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:w`info`,options:t})}}class P{constructor(t){this.httpClient=t}getPredictedDatapoints(t,e,s,r){return this.httpClient.request({method:"POST",url:w`asset/predicted/${t}/${e}`,data:s,options:r})}writePredictedDatapoints(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`asset/predicted/${t}/${e}`,data:s,options:r})}}class y{constructor(t){this.httpClient=t}createProvisioningConfig(t,e){return this.httpClient.request({method:"POST",url:w`provisioning`,data:t,options:e})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:w`provisioning`,options:t})}deleteProvisioningConfig(t,e){return this.httpClient.request({method:"DELETE",url:w`provisioning/${t}`,options:e})}updateProvisioningConfig(t,e,s){return this.httpClient.request({method:"PUT",url:w`provisioning/${t}`,data:e,options:s})}}function w(t,...e){let s="";for(let r=0;r<e.length;r++)s+=t[r],s+=encodeURIComponent(e[r]);return s+=t[t.length-1],s}class G{constructor(t,s=e().create()){this._gatewayServiceResource=new b(t,s),this._realmResource=new _(t,s),this._mapResource=new A(t,s),this._assetDatapointResource=new x(t,s),this._configurationResource=new L(t,s),this._dashboardResource=new D(t,s),this._notificationResource=new v(t,s),this._assetResource=new S(t,s),this._appResource=new I(t,s),this._userResource=new O(t,s),this._assetModelResource=new M(t,s),this._rulesResource=new k(t,s),this._agentResource=new N(t,s),this._flowResource=new j(t,s),this._gatewayClientResource=new Q(t,s),this._alarmResource=new V(t,s),this._syslogResource=new F(t,s),this._consoleResource=new z(t,s),this._statusResource=new B(t,s),this._assetPredictedDatapointResource=new H(t,s),this._provisioningResource=new J(t,s),this._assetResource=new S(t,s)}get GatewayServiceResource(){return this._gatewayServiceResource}get RealmResource(){return this._realmResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get ConfigurationResource(){return this._configurationResource}get DashboardResource(){return this._dashboardResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get AppResource(){return this._appResource}get UserResource(){return this._userResource}get AssetModelResource(){return this._assetModelResource}get RulesResource(){return this._rulesResource}get AgentResource(){return this._agentResource}get FlowResource(){return this._flowResource}get GatewayClientResource(){return this._gatewayClientResource}get AlarmResource(){return this._alarmResource}get SyslogResource(){return this._syslogResource}get ConsoleResource(){return this._consoleResource}get StatusResource(){return this._statusResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ProvisioningResource(){return this._provisioningResource}}class U{constructor(t){this.axios=t}request(t){const e={};e.method=t.method,e.url=t.url,e.params=t.queryParams,e.data=t.data,function(t,e){if(null!=e)for(const s in e)e.hasOwnProperty(s)&&(t[s]=e[s])}(e,t.options);const s=t.copyFn;return this.axios.request(e).then((t=>(s&&t.data&&(t.originalData=t.data,t.data=s(t.data)),t)))}}class b extends s{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class _ extends r{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class A extends u{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class x extends i{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class L extends a{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class D extends l{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class v extends h{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class S extends p{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class I extends d{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class O extends c{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class M extends m{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class k extends C{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class N extends q{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class j extends g{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class Q extends T{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class V extends R{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class F extends E{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class z extends f{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class B extends ${constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class H extends P{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class J extends y{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}var K=o(968),W=o.n(K);const X=e().isAxiosError;class Y{get api(){return this._client}constructor(){this._axiosInstance=e().create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use((t=>(t.paramsSerializer=t=>W().stringify(t,{arrayFormat:"repeat"}),t)))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new G(t,this._axiosInstance)}}const Z=new Y})(),n})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("axios"),require("Qs")):"function"==typeof define&&define.amd?define(["axios","Qs"],e):"object"==typeof exports?exports.ORRest=e(require("axios"),require("Qs")):t.ORRest=e(t.axios,t.Qs)}(self,((t,e)=>(()=>{"use strict";var s={968:t=>{t.exports=e},368:e=>{e.exports=t}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={exports:{}};return s[t](n,n.exports,o),n.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var s in e)o.o(e,s)&&!o.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{RestApi:()=>Y,default:()=>Z,isAxiosError:()=>X});var t=o(368),e=o.n(t);class s{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:w`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:w`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:w`apps/info`,options:t})}}class r{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:w`map`,options:t})}saveSettings(t,e){return this.httpClient.request({method:"PUT",url:w`map`,data:t,options:e})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:w`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:w`map/getCustomMapInfo`,options:t})}getSettingsJs(t){return this.httpClient.request({method:"GET",url:w`map/js`,options:t})}getTile(t,e,s,r){return this.httpClient.request({method:"GET",url:w`map/tile/${t}/${e}/${s}`,options:r})}uploadMap(t,e){return this.httpClient.request({method:"POST",url:w`map/upload`,queryParams:t,options:e})}}class u{constructor(t){this.httpClient=t}startTunnel(t,e){return this.httpClient.request({method:"POST",url:w`gateway/tunnel`,data:t,options:e})}stopTunnel(t,e){return this.httpClient.request({method:"DELETE",url:w`gateway/tunnel`,data:t,options:e})}getAllActiveTunnelInfos(t,e){return this.httpClient.request({method:"GET",url:w`gateway/tunnel/${t}`,options:e})}getGatewayActiveTunnelInfos(t,e,s){return this.httpClient.request({method:"GET",url:w`gateway/tunnel/${t}/${e}`,options:s})}getActiveTunnelInfo(t,e,s,r,o){return this.httpClient.request({method:"GET",url:w`gateway/tunnel/${t}/${e}/${s}/${r}`,options:o})}}class i{constructor(t){this.httpClient=t}getAssetDescriptors(t,e){return this.httpClient.request({method:"GET",url:w`model/assetDescriptors`,queryParams:t,options:e})}getAssetInfo(t,e,s){return this.httpClient.request({method:"GET",url:w`model/assetInfo/${t}`,queryParams:e,options:s})}getAssetInfos(t,e){return this.httpClient.request({method:"GET",url:w`model/assetInfos`,queryParams:t,options:e})}getMetaItemDescriptors(t,e){return this.httpClient.request({method:"GET",url:w`model/metaItemDescriptors`,queryParams:t,options:e})}getValueDescriptors(t,e){return this.httpClient.request({method:"GET",url:w`model/valueDescriptors`,queryParams:t,options:e})}}class a{constructor(t){this.httpClient=t}createAlarm(t,e,s){return this.httpClient.request({method:"POST",url:w`alarm`,queryParams:e,data:t,options:s})}getAlarms(t,e){return this.httpClient.request({method:"GET",url:w`alarm`,queryParams:t,options:e})}removeAlarms(t,e){return this.httpClient.request({method:"DELETE",url:w`alarm`,data:t,options:e})}setAssetLinks(t,e){return this.httpClient.request({method:"PUT",url:w`alarm/assets`,data:t,options:e})}getAlarm(t,e){return this.httpClient.request({method:"GET",url:w`alarm/${t}`,options:e})}removeAlarm(t,e){return this.httpClient.request({method:"DELETE",url:w`alarm/${t}`,options:e})}updateAlarm(t,e,s){return this.httpClient.request({method:"PUT",url:w`alarm/${t}`,data:e,options:s})}getAssetLinks(t,e,s){return this.httpClient.request({method:"GET",url:w`alarm/${t}/assets`,queryParams:e,options:s})}}class l{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:w`syslog/config`,options:t})}updateConfig(t,e){return this.httpClient.request({method:"PUT",url:w`syslog/config`,data:t,options:e})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:w`syslog/event`,options:t})}getEvents(t,e){return this.httpClient.request({method:"GET",url:w`syslog/event`,queryParams:t,options:e})}}class h{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:w`asset`,data:t,options:e})}delete(t,e){return this.httpClient.request({method:"DELETE",url:w`asset`,queryParams:t,options:e})}writeAttributeValues(t,e){return this.httpClient.request({method:"PUT",url:w`asset/attributes`,data:t,options:e})}writeAttributeEvents(t,e){return this.httpClient.request({method:"PUT",url:w`asset/attributes/timestamp`,data:t,options:e})}updateNoneParent(t,e){return this.httpClient.request({method:"DELETE",url:w`asset/parent`,queryParams:t,options:e})}getPartial(t,e){return this.httpClient.request({method:"GET",url:w`asset/partial/${t}`,options:e})}queryAssets(t,e){return this.httpClient.request({method:"POST",url:w`asset/query`,data:t,options:e})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:w`asset/user/current`,options:t})}createUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:w`asset/user/link`,data:t,options:e})}getUserAssetLinks(t,e){return this.httpClient.request({method:"GET",url:w`asset/user/link`,queryParams:t,options:e})}deleteUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:w`asset/user/link/delete`,data:t,options:e})}deleteAllUserAssetLinks(t,e,s){return this.httpClient.request({method:"DELETE",url:w`asset/user/link/${t}/${e}`,options:s})}deleteUserAssetLink(t,e,s,r){return this.httpClient.request({method:"DELETE",url:w`asset/user/link/${t}/${e}/${s}`,options:r})}get(t,e){return this.httpClient.request({method:"GET",url:w`asset/${t}`,options:e})}update(t,e,s){return this.httpClient.request({method:"PUT",url:w`asset/${t}`,data:e,options:s})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`asset/${t}/attribute/${e}`,data:s,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,e,s,r,o){return this.httpClient.request({method:"PUT",url:w`asset/${t}/attribute/${e}/${s}`,data:r,options:o})}updateParent(t,e,s){return this.httpClient.request({method:"PUT",url:w`asset/${t}/child`,queryParams:e,options:s})}}class p{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,e){return this.httpClient.request({method:"PUT",url:w`user/locale`,data:t,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:w`user/query`,data:t,options:e})}getCurrent(t){return this.httpClient.request({method:"GET",url:w`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:w`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,e){return this.httpClient.request({method:"GET",url:w`user/userRoles/${t}`,options:e})}disconnectUserSession(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/disconnect/${e}`,options:s})}resetPassword(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`user/${t}/reset-password/${e}`,data:s,options:r})}resetSecret(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/reset-secret/${e}`,options:s})}updateRoles(t,e,s){return this.httpClient.request({method:"PUT",url:w`user/${t}/roles`,data:e,options:s})}getUserRealmRoles(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/userRealmRoles/${e}`,options:s})}updateUserRealmRoles(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`user/${t}/userRealmRoles/${e}`,data:s,options:r})}getUserClientRoles(t,e,s,r){return this.httpClient.request({method:"GET",url:w`user/${t}/userRoles/${e}/${s}`,options:r})}updateUserClientRoles(t,e,s,r,o){return this.httpClient.request({method:"PUT",url:w`user/${t}/userRoles/${e}/${s}`,data:r,options:o})}getUserSessions(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/userSessions/${e}`,options:s})}create(t,e,s){return this.httpClient.request({method:"POST",url:w`user/${t}/users`,data:e,options:s})}update(t,e,s){return this.httpClient.request({method:"PUT",url:w`user/${t}/users`,data:e,options:s})}delete(t,e,s){return this.httpClient.request({method:"DELETE",url:w`user/${t}/users/${e}`,options:s})}getClientRoles(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/${e}/roles`,options:s})}updateClientRoles(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`user/${t}/${e}/roles`,data:s,options:r})}get(t,e,s){return this.httpClient.request({method:"GET",url:w`user/${t}/${e}`,options:s})}}class d{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:w`realm`,data:t,options:e})}getAll(t){return this.httpClient.request({method:"GET",url:w`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:w`realm/accessible`,options:t})}delete(t,e){return this.httpClient.request({method:"DELETE",url:w`realm/${t}`,options:e})}get(t,e){return this.httpClient.request({method:"GET",url:w`realm/${t}`,options:e})}update(t,e,s){return this.httpClient.request({method:"PUT",url:w`realm/${t}`,data:e,options:s})}}class c{constructor(t){this.httpClient=t}deleteConnections(t,e){return this.httpClient.request({method:"DELETE",url:w`gateway/connection`,queryParams:t,options:e})}getConnections(t){return this.httpClient.request({method:"GET",url:w`gateway/connection`,options:t})}deleteConnection(t,e){return this.httpClient.request({method:"DELETE",url:w`gateway/connection/${t}`,options:e})}getConnection(t,e){return this.httpClient.request({method:"GET",url:w`gateway/connection/${t}`,options:e})}setConnection(t,e,s){return this.httpClient.request({method:"PUT",url:w`gateway/connection/${t}`,data:e,options:s})}getConnectionStatus(t,e){return this.httpClient.request({method:"GET",url:w`gateway/status/${t}`,options:e})}}class m{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:w`dashboard`,data:t,options:e})}update(t,e){return this.httpClient.request({method:"PUT",url:w`dashboard`,data:t,options:e})}getAllRealmDashboards(t,e){return this.httpClient.request({method:"GET",url:w`dashboard/all/${t}`,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:w`dashboard/query`,data:t,options:e})}delete(t,e,s){return this.httpClient.request({method:"DELETE",url:w`dashboard/${t}/${e}`,options:s})}get(t,e,s){return this.httpClient.request({method:"GET",url:w`dashboard/${t}/${e}`,options:s})}}class C{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,e,s){return this.httpClient.request({method:"GET",url:w`agent/assetDiscovery/${t}`,queryParams:e,options:s})}doProtocolAssetImport(t,e,s,r){return this.httpClient.request({method:"POST",url:w`agent/assetImport/${t}`,queryParams:s,data:e,options:r})}doProtocolInstanceDiscovery(t,e,s){return this.httpClient.request({method:"GET",url:w`agent/instanceDiscovery/${t}`,queryParams:e,options:s})}}class q{constructor(t){this.httpClient=t}getPredictedDatapoints(t,e,s,r){return this.httpClient.request({method:"POST",url:w`asset/predicted/${t}/${e}`,data:s,options:r})}writePredictedDatapoints(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`asset/predicted/${t}/${e}`,data:s,options:r})}}class g{constructor(t){this.httpClient=t}createProvisioningConfig(t,e){return this.httpClient.request({method:"POST",url:w`provisioning`,data:t,options:e})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:w`provisioning`,options:t})}deleteProvisioningConfig(t,e){return this.httpClient.request({method:"DELETE",url:w`provisioning/${t}`,options:e})}updateProvisioningConfig(t,e,s){return this.httpClient.request({method:"PUT",url:w`provisioning/${t}`,data:e,options:s})}}class T{constructor(t){this.httpClient=t}getNotifications(t,e){return this.httpClient.request({method:"GET",url:w`notification`,queryParams:t,options:e})}removeNotifications(t,e){return this.httpClient.request({method:"DELETE",url:w`notification`,queryParams:t,options:e})}sendNotification(t,e){return this.httpClient.request({method:"POST",url:w`notification/alert`,data:t,options:e})}removeNotification(t,e){return this.httpClient.request({method:"DELETE",url:w`notification/${t}`,options:e})}notificationAcknowledged(t,e,s,r){return this.httpClient.request({method:"PUT",url:w`notification/${t}/acknowledged`,queryParams:s,data:e,options:r})}notificationDelivered(t,e,s){return this.httpClient.request({method:"PUT",url:w`notification/${t}/delivered`,queryParams:e,options:s})}}class R{constructor(t){this.httpClient=t}register(t,e){return this.httpClient.request({method:"POST",url:w`console/register`,data:t,options:e})}}class E{constructor(t){this.httpClient=t}createGlobalRuleset(t,e){return this.httpClient.request({method:"POST",url:w`rules`,data:t,options:e})}getGlobalRulesets(t,e){return this.httpClient.request({method:"GET",url:w`rules`,queryParams:t,options:e})}createAssetRuleset(t,e){return this.httpClient.request({method:"POST",url:w`rules/asset`,data:t,options:e})}getAssetRulesets(t,e,s){return this.httpClient.request({method:"GET",url:w`rules/asset/for/${t}`,queryParams:e,options:s})}deleteAssetRuleset(t,e){return this.httpClient.request({method:"DELETE",url:w`rules/asset/${t}`,options:e})}getAssetRuleset(t,e){return this.httpClient.request({method:"GET",url:w`rules/asset/${t}`,options:e})}updateAssetRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:w`rules/asset/${t}`,data:e,options:s})}getAssetGeofences(t,e){return this.httpClient.request({method:"GET",url:w`rules/geofences/${t}`,options:e})}getAssetEngineInfo(t,e){return this.httpClient.request({method:"GET",url:w`rules/info/asset/${t}`,options:e})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:w`rules/info/global`,options:t})}getRealmEngineInfo(t,e){return this.httpClient.request({method:"GET",url:w`rules/info/realm/${t}`,options:e})}createRealmRuleset(t,e){return this.httpClient.request({method:"POST",url:w`rules/realm`,data:t,options:e})}getRealmRulesets(t,e,s){return this.httpClient.request({method:"GET",url:w`rules/realm/for/${t}`,queryParams:e,options:s})}deleteRealmRuleset(t,e){return this.httpClient.request({method:"DELETE",url:w`rules/realm/${t}`,options:e})}getRealmRuleset(t,e){return this.httpClient.request({method:"GET",url:w`rules/realm/${t}`,options:e})}updateRealmRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:w`rules/realm/${t}`,data:e,options:s})}deleteGlobalRuleset(t,e){return this.httpClient.request({method:"DELETE",url:w`rules/${t}`,options:e})}getGlobalRuleset(t,e){return this.httpClient.request({method:"GET",url:w`rules/${t}`,options:e})}updateGlobalRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:w`rules/${t}`,data:e,options:s})}}class f{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:w`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:w`info`,options:t})}}class ${constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:w`flow`,options:t})}getNodeDefinition(t,e){return this.httpClient.request({method:"GET",url:w`flow/${t}`,options:e})}getAllNodeDefinitionsByType(t,e){return this.httpClient.request({method:"GET",url:w`flow/${t}`,options:e})}}class P{constructor(t){this.httpClient=t}getDatapointExport(t,e){return this.httpClient.request({method:"GET",url:w`asset/datapoint/export`,queryParams:t,options:e})}getDatapointPeriod(t,e){return this.httpClient.request({method:"GET",url:w`asset/datapoint/periods`,queryParams:t,options:e})}getDatapoints(t,e,s,r){return this.httpClient.request({method:"POST",url:w`asset/datapoint/${t}/${e}`,data:s,options:r})}}class y{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:w`configuration/manager`,options:t})}update(t,e){return this.httpClient.request({method:"PUT",url:w`configuration/manager`,data:t,options:e})}fileUpload(t,e,s){return this.httpClient.request({method:"POST",url:w`configuration/manager/file`,queryParams:e,data:t,options:s})}getManagerConfigImage(t,e){return this.httpClient.request({method:"GET",url:w`configuration/manager/image/${t}`,options:e})}}function w(t,...e){let s="";for(let r=0;r<e.length;r++)s+=t[r],s+=encodeURIComponent(e[r]);return s+=t[t.length-1],s}class G{constructor(t,s=e().create()){this._appResource=new b(t,s),this._mapResource=new _(t,s),this._gatewayServiceResource=new A(t,s),this._assetModelResource=new x(t,s),this._alarmResource=new L(t,s),this._syslogResource=new D(t,s),this._assetResource=new v(t,s),this._userResource=new S(t,s),this._realmResource=new I(t,s),this._gatewayClientResource=new O(t,s),this._dashboardResource=new M(t,s),this._agentResource=new k(t,s),this._assetPredictedDatapointResource=new N(t,s),this._provisioningResource=new j(t,s),this._notificationResource=new Q(t,s),this._consoleResource=new V(t,s),this._rulesResource=new F(t,s),this._statusResource=new z(t,s),this._flowResource=new B(t,s),this._assetDatapointResource=new H(t,s),this._configurationResource=new J(t,s),this._assetResource=new v(t,s)}get AppResource(){return this._appResource}get MapResource(){return this._mapResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}get AlarmResource(){return this._alarmResource}get SyslogResource(){return this._syslogResource}get AssetResource(){return this._assetResource}get UserResource(){return this._userResource}get RealmResource(){return this._realmResource}get GatewayClientResource(){return this._gatewayClientResource}get DashboardResource(){return this._dashboardResource}get AgentResource(){return this._agentResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ProvisioningResource(){return this._provisioningResource}get NotificationResource(){return this._notificationResource}get ConsoleResource(){return this._consoleResource}get RulesResource(){return this._rulesResource}get StatusResource(){return this._statusResource}get FlowResource(){return this._flowResource}get AssetDatapointResource(){return this._assetDatapointResource}get ConfigurationResource(){return this._configurationResource}}class U{constructor(t){this.axios=t}request(t){const e={};e.method=t.method,e.url=t.url,e.params=t.queryParams,e.data=t.data,function(t,e){if(null!=e)for(const s in e)e.hasOwnProperty(s)&&(t[s]=e[s])}(e,t.options);const s=t.copyFn;return this.axios.request(e).then((t=>(s&&t.data&&(t.originalData=t.data,t.data=s(t.data)),t)))}}class b extends s{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class _ extends r{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class A extends u{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class x extends i{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class L extends a{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class D extends l{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class v extends h{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class S extends p{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class I extends d{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class O extends c{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class M extends m{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class k extends C{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class N extends q{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class j extends g{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class Q extends T{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class V extends R{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class F extends E{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class z extends f{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class B extends ${constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class H extends P{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}class J extends y{constructor(t,s=e().create()){s.defaults.baseURL=t,super(new U(s))}}var K=o(968),W=o.n(K);const X=e().isAxiosError;class Y{get api(){return this._client}constructor(){this._axiosInstance=e().create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use((t=>(t.paramsSerializer=t=>W().stringify(t,{arrayFormat:"repeat"}),t)))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new G(t,this._axiosInstance)}}const Z=new Y})(),n})()));