openc3-cosmos-tool-cmdtlmserver 6.0.2 → 6.2.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.
- checksums.yaml +4 -4
- data/tools/cmdtlmserver/{ArrayWidget-DBpEoQ1y-84132d15e020efa0adf1.js → ArrayWidget-BxEO5hEG-89ca0a2e546d77657dd9.js} +2 -2
- data/tools/cmdtlmserver/ArrayplotWidget-B_VPoV4v-7b820a5e88bad1425d1c.js +1 -0
- data/tools/cmdtlmserver/{BarColumn-B6tCmNJm-6eff86fdc1e74ef6f1c9.js → BarColumn-C9dkpg2O-7723dc0faa77b237d7f9.js} +1 -1
- data/tools/cmdtlmserver/BlockWidget-CuefOin6-edc80607b7a1d528f5e3.js +2 -0
- data/tools/cmdtlmserver/{ButtonWidget-CHrHS_Bw-70e879d3bbdf933eb10a.js → ButtonWidget-B6HM0Doo-ce7e70aebc6509184e26.js} +2 -2
- data/tools/cmdtlmserver/CanvasWidget-DZQGG-yQ-6864bab874dccb2db67c.js +1 -0
- data/tools/cmdtlmserver/CanvasdotWidget-6wuCSnw_-e0f154be630a0c8394bc.js +1 -0
- data/tools/cmdtlmserver/{CanvasimageWidget-BrYlPQCf-c9b4b7ca9e5b29f12d09.js → CanvasimageWidget-mhcPpAuN-441a8a40b76b47f0e9dd.js} +1 -1
- data/tools/cmdtlmserver/{CanvasimagevalueWidget-HnEOXmZy-5583c55cf5bbdfadba5d.js → CanvasimagevalueWidget-Cx-dH8Gc-c505d808df433d5fd979.js} +1 -1
- data/tools/cmdtlmserver/CanvaslabelWidget-CQZCeohU-85c23c2118739625a3a1.js +1 -0
- data/tools/cmdtlmserver/{CanvaslabelvalueWidget-0zRDJav3-293602564dbb12cd36fd.js → CanvaslabelvalueWidget-CwmYDCjr-aca636f4d86f04fc6120.js} +1 -1
- data/tools/cmdtlmserver/CanvaslineWidget-nTP3fJB4-78e605105cd357f98670.js +1 -0
- data/tools/cmdtlmserver/CanvaslinevalueWidget-C3sJnjLQ-c20af62fc101f2e6d9e7.js +1 -0
- data/tools/cmdtlmserver/CheckbuttonWidget-5-8YDsQL-e19c2b901eae43feeb7c.js +1 -0
- data/tools/cmdtlmserver/{CmdPacketsTab-1174eeae24f567559f43.js → CmdPacketsTab-543bcdcded38905596c1.js} +1 -1
- data/tools/cmdtlmserver/{CmdTlmServer-909a975f2c448b6dfdd9.js → CmdTlmServer-c5e0c27cd668cb4acdd2.js} +2 -2
- data/tools/cmdtlmserver/{ComboboxWidget-BykAAoxH-b67d237b4347e57c1776.js → ComboboxWidget-DzBL8h9f-d1afd3d09dbb57142156.js} +1 -1
- data/tools/cmdtlmserver/{DateWidget-FtYD86xW-eee42f7093a7d5232e7e.js → DateWidget-CW7Od7lB-14c75cebe909660c92a6.js} +1 -1
- data/tools/cmdtlmserver/{DetailsDialog-DiVcC3Fg-926dc00ae99f202f7bbb.js → DetailsDialog-BvbziA7Y-a6d191d4c24ae44227f5.js} +1 -1
- data/tools/cmdtlmserver/{DynamicWidget-m9EliUR2-b792f7d3791995de4557.js → DynamicWidget-gFSYxzvT-5b7c1448f53e03ca3e91.js} +1 -1
- data/tools/cmdtlmserver/{FormatvalueWidget-OykwwCrw-ec440c1e59a54a11e1c0.js → FormatvalueWidget-CGpnTqVH-5a4cac76beeee76398b5.js} +1 -1
- data/tools/cmdtlmserver/Graph-3rkhFP3G-b8db0cdb9ecf80ac5155.js +1 -0
- data/tools/cmdtlmserver/GraphWidget-Dycey-mj-d4aa575ef98087670b47.js +1 -0
- data/tools/cmdtlmserver/{HorizontalWidget-B7YdcFVN-1adf1fbb47940ffc2bbb.js → HorizontalWidget-D31NRWy5-567abe97366db941d1d0.js} +1 -1
- data/tools/cmdtlmserver/{HorizontalboxWidget-D-kCNwI3-d5280f31e632d3a19530.js → HorizontalboxWidget-Br8dSVHD-7c9a14b981c6d7631921.js} +1 -1
- data/tools/cmdtlmserver/HorizontallineWidget-CbxREBYI-cd6486b6aeb6fbdd102b.js +1 -0
- data/tools/cmdtlmserver/IframeWidget-Ctj8OIcG-8eb7274680df97862be9.js +1 -0
- data/tools/cmdtlmserver/ImageLoader-BrNrCBvi-c56dfbfda95fe546284c.js +1 -0
- data/tools/cmdtlmserver/{ImageviewerWidget-B4HbUIfR-cc56d18d351a216f45dc.js → ImageviewerWidget-XrsqxmLo-e5e72a6a85a49cb007ad.js} +1 -1
- data/tools/cmdtlmserver/{InterfacesTab-1a220be708030742672f.js → InterfacesTab-5fe4b0f137ffde75f928.js} +1 -1
- data/tools/cmdtlmserver/{LabelWidget-D1JhQAzR-637ca102152e7cb0159f.js → LabelWidget-t7I87dp7-c8e7d564e904105dba56.js} +1 -1
- data/tools/cmdtlmserver/{LabelledWidget-C2VGJ5OJ-63324f13b32cbd3d1e09.js → LabelledWidget-C7TDf92M-e5c2e34c391a4721e565.js} +1 -1
- data/tools/cmdtlmserver/{LabelprogressbarWidget-DN0cAeLK-9414ccaa3c0bd5213eaf.js → LabelprogressbarWidget-wwLURt1u-c12f252a4577e90e8ba4.js} +1 -1
- data/tools/cmdtlmserver/LabelsparklineWidget-B3awLUyP-dafc251f2886e5de7219.js +1 -0
- data/tools/cmdtlmserver/LabelvalueWidget-Zx_yHCtl-761beda3ba9005900e83.js +1 -0
- data/tools/cmdtlmserver/{LabelvaluedescWidget-DtJwggDu-297f5e4f5cdd4e997a84.js → LabelvaluedescWidget-BBSBh4vI-7930a82f5e07d7ac49ee.js} +1 -1
- data/tools/cmdtlmserver/LabelvaluelimitsbarWidget-CZueHYWG-24b90c24e80fd1a209b0.js +1 -0
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-BTvzyQMq-8ef478f7a9ed47139a9b.js +1 -0
- data/tools/cmdtlmserver/{LabelvaluerangebarWidget-DCJ42bmf-951b68255fe130b397b4.js → LabelvaluerangebarWidget-BhYTBgDq-f7d7ee8128f9058ef8c3.js} +1 -1
- data/tools/cmdtlmserver/{Layout-D4YBjuWs-d949f0668cb092f7f268.js → Layout-Bh7VzCZd-dcb9c3641454e6c67c47.js} +1 -1
- data/tools/cmdtlmserver/LedWidget-CxJjJBBS-71046e57b3786c5a7889.js +1 -0
- data/tools/cmdtlmserver/{LimitsbarWidget-D-wfz_St-71b4065ff350d86e47f1.js → LimitsbarWidget-Djui0IpK-c1dec25b5074f46c266b.js} +1 -1
- data/tools/cmdtlmserver/LimitscolorWidget-DdmvKzmx-6cf2a6f3dc4493ea0ef5.js +1 -0
- data/tools/cmdtlmserver/{LimitscolumnWidget-Dt5ce4hN-4bf9236958883e049ac5.js → LimitscolumnWidget-Cc19IEjq-bc58d443d9a79a05718e.js} +1 -1
- data/tools/cmdtlmserver/LinegraphWidget-BtieJxeL-be15f3c0e6a500ecc463.js +1 -0
- data/tools/cmdtlmserver/{MatrixbycolumnsWidget-wLx4NvXV-789df70ba148ac45d935.js → MatrixbycolumnsWidget-DnExVRF8-4a69d3f7ece972d3f5e2.js} +1 -1
- data/tools/cmdtlmserver/{ProgressbarWidget-B7l0BBiX-28bb09016921e507b157.js → ProgressbarWidget-DIfqhHRE-aebd8d5a762deda63d9c.js} +1 -1
- data/tools/cmdtlmserver/RadiobuttonWidget-QzIkNP7m-300018a2418b2cbe7f09.js +1 -0
- data/tools/cmdtlmserver/{RadiogroupWidget-Busjqikr-fdbbff7df3b152de9174.js → RadiogroupWidget-Ci9sCX39-db829f94bee5140bb9cc.js} +1 -1
- data/tools/cmdtlmserver/{RangebarWidget-DbYrwEfC-672c02ff8fc7508bbfe0.js → RangebarWidget-CN0YuHqy-9b49a64ed4d1a23e9fa2.js} +1 -1
- data/tools/cmdtlmserver/{RawDialog-3ba881626e2141cf6261.js → RawDialog-2b725610c629b9879bac.js} +3 -3
- data/tools/cmdtlmserver/{RollupWidget-rKxLXuCv-84804fdfa2a67e0c586f.js → RollupWidget-y4jBtJB2-2fa7012d1e3c1cc9a765.js} +1 -1
- data/tools/cmdtlmserver/{RoutersTab-821ac863905d6fc1f0f3.js → RoutersTab-97a4ce9897517bb6bde4.js} +1 -1
- data/tools/cmdtlmserver/{ScrollwindowWidget-D4NKIzQO-e7fc825a7640800925b3.js → ScrollwindowWidget-CBzYk4Y3-48abadd8da946b6c65a5.js} +1 -1
- data/tools/cmdtlmserver/{SignalWidget-h-oivReC-a52944079f1106d5b9e8.js → SignalWidget-DQ5Uc2uV-864549b10d055bc6c168.js} +1 -1
- data/tools/cmdtlmserver/SpacerWidget-6rsc_dSM-4c67a06ee2036a93075a.js +1 -0
- data/tools/cmdtlmserver/SparklineWidget-CZtvu2ss-a652a442fd625a97a9b0.js +1 -0
- data/tools/cmdtlmserver/{StatusTab-4f20ea8483d65cd2f43f.js → StatusTab-ebf6453fac33bf59a564.js} +1 -1
- data/tools/cmdtlmserver/TabbookWidget-DNALU0jl-ae79a3b9beef34b7efde.js +1 -0
- data/tools/cmdtlmserver/{TargetsTab-45e297b994fc5f0d21d0.js → TargetsTab-ae3381cde4d9b22a9272.js} +1 -1
- data/tools/cmdtlmserver/TextboxWidget-5hqPj74D-292f2786815b2027f6e6.js +1 -0
- data/tools/cmdtlmserver/{TextfieldWidget-aVRdXRsT-6158511014a61f90ddea.js → TextfieldWidget-Df0ANSiU-a45885e9c031fa702946.js} +1 -1
- data/tools/cmdtlmserver/TimeWidget-C6XQMUG2-fa62efc8fea7b7a08ccc.js +1 -0
- data/tools/cmdtlmserver/TitleWidget-B9SPUlbW-55092f64413a6ce5551d.js +1 -0
- data/tools/cmdtlmserver/{TlmPacketsTab-b9aab218beb2e197b269.js → TlmPacketsTab-60429ad30f45f45c7ac9.js} +1 -1
- data/tools/cmdtlmserver/{Updater-6f453064b0e1f1f5fb0e.js → Updater-82fa1a354a9721098906.js} +1 -1
- data/tools/cmdtlmserver/VWidget-C4spAawK-e7dee3c34a6d790327ec.js +1 -0
- data/tools/cmdtlmserver/ValueWidget-D4RrYVEK-c90078a7e58747e8aa55.js +1 -0
- data/tools/cmdtlmserver/ValuelimitsbarWidget-Bc9_Vj_f-b088c7ef6cd4bf20f55e.js +1 -0
- data/tools/cmdtlmserver/ValuelimitscolumnWidget-DHKIL7sf-72a766dafcef2f6c4767.js +1 -0
- data/tools/cmdtlmserver/ValuerangebarWidget-CecQRIok-5cef01f82763ccf9350a.js +1 -0
- data/tools/cmdtlmserver/{VerticalWidget-DziyURNu-750d852c42a2d5f2f703.js → VerticalWidget-D8jUFxjS-dc1f1f22baae1b1bf9ee.js} +1 -1
- data/tools/cmdtlmserver/VerticalboxWidget-B4eGUSYH-24dd29d0e54de2ba61eb.js +1 -0
- data/tools/cmdtlmserver/{Widget-C7ms_xDE-bce61b3f1521054f57a4.js → Widget-fRCERxGf-6cf6e886d2d5ee76cfc6.js} +1 -1
- data/tools/cmdtlmserver/main-4bad43bda3e8a8483ba9.js +1423 -0
- data/tools/cmdtlmserver/main.js +1 -1
- data/tools/cmdtlmserver/services-6c036365da68dd4327ff.js +7 -0
- metadata +78 -76
- data/tools/cmdtlmserver/BlockWidget-Bmi0UcUW-c8722bb58622a8814b0b.js +0 -2
- data/tools/cmdtlmserver/CanvasWidget-BqdyLbQz-184dc2d3c4b6c7ab6bf0.js +0 -1
- data/tools/cmdtlmserver/CanvasdotWidget-YYwca104-4fffaf81ed40b0efed4b.js +0 -1
- data/tools/cmdtlmserver/CanvaslabelWidget-BfMHNei--81068b9cfc5ea4370382.js +0 -1
- data/tools/cmdtlmserver/CanvaslineWidget-BmOwJP_G-b2f20a0461abbe1c4aec.js +0 -1
- data/tools/cmdtlmserver/CanvaslinevalueWidget-H3L1aUKM-6eb08878d7d5720ce613.js +0 -1
- data/tools/cmdtlmserver/CheckbuttonWidget-BnT9X7wE-5f6d8077e8d80b62862c.js +0 -1
- data/tools/cmdtlmserver/GraphWidget-BohHW-97-79648f0f5f760947a337.js +0 -1
- data/tools/cmdtlmserver/HorizontallineWidget-BdlNB951-97bac9ec958ae9185006.js +0 -1
- data/tools/cmdtlmserver/IframeWidget-0C7GYEVc-7d9db206f561f13924bb.js +0 -1
- data/tools/cmdtlmserver/ImageLoader-y6fAZe9P-32c5109a53a2e67d4546.js +0 -1
- data/tools/cmdtlmserver/LabelsparklineWidget--sxBENxs-9bbfaf33dcea3a9a4163.js +0 -1
- data/tools/cmdtlmserver/LabelvalueWidget-BWpP5KX6-e70143eae4825e3ca295.js +0 -1
- data/tools/cmdtlmserver/LabelvaluelimitsbarWidget-Bj6UVK-5-d0e6cb1105035131b388.js +0 -1
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-BVcEEcUx-5ffbd14ed49f43d1a770.js +0 -1
- data/tools/cmdtlmserver/LedWidget-hN9JHxjr-d3630538860ea110829a.js +0 -1
- data/tools/cmdtlmserver/LimitscolorWidget-B0AVGdkz-8af3823cc815001ee996.js +0 -1
- data/tools/cmdtlmserver/LinegraphWidget-CTjtvtPd-3472bcb2292fccce0780.js +0 -1
- data/tools/cmdtlmserver/RadiobuttonWidget-B032jKIw-751b0da1a0eac1f428eb.js +0 -1
- data/tools/cmdtlmserver/SpacerWidget-BSy9eOlB-d21cb40c89cf46239df2.js +0 -1
- data/tools/cmdtlmserver/SparklineWidget-C9vdxar--5fe9233f121a11766f79.js +0 -1
- data/tools/cmdtlmserver/TabbookWidget-DTFTKURm-8a001c50117950e4dff3.js +0 -1
- data/tools/cmdtlmserver/TextboxWidget-BZyYHmBq-69732416c05b62947a52.js +0 -1
- data/tools/cmdtlmserver/TimeWidget-BE2rtMxg-26adb974402be26d1aaf.js +0 -1
- data/tools/cmdtlmserver/TitleWidget-BB29MZb2-2f453a7f1f364727debd.js +0 -1
- data/tools/cmdtlmserver/VWidget-CGdM4sTw-a078921174583b0d9185.js +0 -1
- data/tools/cmdtlmserver/ValueWidget-h3905woQ-9b7964d625c1c99b145b.js +0 -1
- data/tools/cmdtlmserver/ValuelimitsbarWidget-LMXYjWtS-c85b0d0fb89533be596b.js +0 -1
- data/tools/cmdtlmserver/ValuelimitscolumnWidget-gA3ZcfAT-faa7e73a393653ce138d.js +0 -1
- data/tools/cmdtlmserver/ValuerangebarWidget-DwZ9KQ0O-1b288730ccf9a87d6d8f.js +0 -1
- data/tools/cmdtlmserver/VerticalboxWidget-OcoZBsFU-b0a8579fcda69ee76cfc.js +0 -1
- data/tools/cmdtlmserver/main-fcf5991e219cb9464cd3.js +0 -1422
- data/tools/cmdtlmserver/services-d6821e5ba7167450844f.js +0 -6
@@ -1,6 +0,0 @@
|
|
1
|
-
System.register([],function(oe,rr){"use strict";return{execute:function(){var ft=Object.defineProperty,pt=(t,e,n)=>e in t?ft(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mt=(t,e,n)=>pt(t,e+"",n);function Re(t,e){return function(){return t.apply(e,arguments)}}const{toString:gt}=Object.prototype,{getPrototypeOf:ie}=Object,$=(t=>e=>{const n=gt.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),T=t=>(t=t.toLowerCase(),e=>$(e)===t),W=t=>e=>typeof e===t,{isArray:j}=Array,F=W("undefined");function _t(t){return t!==null&&!F(t)&&t.constructor!==null&&!F(t.constructor)&&R(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Te=T("ArrayBuffer");function bt(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Te(t.buffer),e}const yt=W("string"),R=W("function"),xe=W("number"),H=t=>t!==null&&typeof t=="object",wt=t=>t===!0||t===!1,V=t=>{if($(t)!=="object")return!1;const e=ie(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},St=T("Date"),Et=T("File"),Ot=T("Blob"),At=T("FileList"),Rt=t=>H(t)&&R(t.pipe),Tt=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||R(t.append)&&((e=$(t))==="formdata"||e==="object"&&R(t.toString)&&t.toString()==="[object FormData]"))},xt=T("URLSearchParams"),[Ct,kt,vt,Pt]=["ReadableStream","Request","Response","Headers"].map(T),Nt=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),j(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let c;for(r=0;r<i;r++)c=o[r],e.call(null,t[c],c,t)}}function Ce(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const v=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ke=t=>!F(t)&&t!==v;function ae(){const{caseless:t}=ke(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ce(e,s)||s;V(e[o])&&V(r)?e[o]=ae(e[o],r):V(r)?e[o]=ae({},r):j(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&L(arguments[r],n);return e}const jt=(t,e,n,{allOwnKeys:r}={})=>(L(e,(s,o)=>{n&&R(s)?t[o]=Re(s,n):t[o]=s},{allOwnKeys:r}),t),Ut=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Dt=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Ft=(t,e,n,r)=>{let s,o,i;const c={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!c[i]&&(e[i]=t[i],c[i]=!0);t=n!==!1&&ie(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Lt=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Bt=t=>{if(!t)return null;if(j(t))return t;let e=t.length;if(!xe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},It=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ie(Uint8Array)),qt=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},Mt=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},zt=T("HTMLFormElement"),$t=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,r){return n.toUpperCase()+r}),ve=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Wt=T("RegExp"),Pe=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};L(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},Ht=t=>{Pe(t,(e,n)=>{if(R(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(R(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Vt=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return j(t)?r(t):r(String(t).split(e)),n},Jt=()=>{},Gt=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ce="abcdefghijklmnopqrstuvwxyz",Ne="0123456789",je={DIGIT:Ne,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+Ne},Kt=(t=16,e=je.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Xt(t){return!!(t&&R(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Qt=t=>{const e=new Array(10),n=(r,s)=>{if(H(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=j(r)?[]:{};return L(r,(i,c)=>{const l=n(i,s+1);!F(l)&&(o[c]=l)}),e[s]=void 0,o}}return r};return n(t,0)},Yt=T("AsyncFunction"),Zt=t=>t&&(H(t)||R(t))&&R(t.then)&&R(t.catch),Ue=((t,e)=>t?setImmediate:e?((n,r)=>(v.addEventListener("message",({source:s,data:o})=>{s===v&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),v.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",R(v.postMessage)),en=typeof queueMicrotask<"u"?queueMicrotask.bind(v):typeof process<"u"&&process.nextTick||Ue,a={isArray:j,isArrayBuffer:Te,isBuffer:_t,isFormData:Tt,isArrayBufferView:bt,isString:yt,isNumber:xe,isBoolean:wt,isObject:H,isPlainObject:V,isReadableStream:Ct,isRequest:kt,isResponse:vt,isHeaders:Pt,isUndefined:F,isDate:St,isFile:Et,isBlob:Ot,isRegExp:Wt,isFunction:R,isStream:Rt,isURLSearchParams:xt,isTypedArray:It,isFileList:At,forEach:L,merge:ae,extend:jt,trim:Nt,stripBOM:Ut,inherits:Dt,toFlatObject:Ft,kindOf:$,kindOfTest:T,endsWith:Lt,toArray:Bt,forEachEntry:qt,matchAll:Mt,isHTMLForm:zt,hasOwnProperty:ve,hasOwnProp:ve,reduceDescriptors:Pe,freezeMethods:Ht,toObjectSet:Vt,toCamelCase:$t,noop:Jt,toFiniteNumber:Gt,findKey:Ce,global:v,isContextDefined:ke,ALPHABET:je,generateString:Kt,isSpecCompliantForm:Xt,toJSONObject:Qt,isAsyncFn:Yt,isThenable:Zt,setImmediate:Ue,asap:en};function g(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const De=g.prototype,Fe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Fe[t]={value:t}}),Object.defineProperties(g,Fe),Object.defineProperty(De,"isAxiosError",{value:!0}),g.from=(t,e,n,r,s,o)=>{const i=Object.create(De);return a.toFlatObject(t,i,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const tn=null;function ue(t){return a.isPlainObject(t)||a.isArray(t)}function Le(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function Be(t,e,n){return t?t.concat(e).map(function(r,s){return r=Le(r),!n&&s?"["+r+"]":r}).join(n?".":""):e}function nn(t){return a.isArray(t)&&!t.some(ue)}const rn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function J(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,f){return!a.isUndefined(f[m])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(a.isDate(m))return m.toISOString();if(!c&&a.isBlob(m))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(m)||a.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,f,h){let O=m;if(m&&!h&&typeof m=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),m=JSON.stringify(m);else if(a.isArray(m)&&nn(m)||(a.isFileList(m)||a.endsWith(f,"[]"))&&(O=a.toArray(m)))return f=Le(f),O.forEach(function(S,y){!(a.isUndefined(S)||S===null)&&e.append(i===!0?Be([f],y,o):i===null?f:f+"[]",l(S))}),!1}return ue(m)?!0:(e.append(Be(h,f,o),l(m)),!1)}const d=[],p=Object.assign(rn,{defaultVisitor:u,convertValue:l,isVisitable:ue});function _(m,f){if(!a.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(m),a.forEach(m,function(h,O){(!(a.isUndefined(h)||h===null)&&s.call(e,h,a.isString(O)?O.trim():O,f,p))===!0&&_(h,f?f.concat(O):[O])}),d.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Ie(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function le(t,e){this._pairs=[],t&&J(t,this,e)}const qe=le.prototype;qe.append=function(t,e){this._pairs.push([t,e])},qe.toString=function(t){const e=t?function(n){return t.call(this,n,Ie)}:Ie;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function sn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Me(t,e,n){if(!e)return t;const r=n&&n.encode||sn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=a.isURLSearchParams(e)?e.toString():new le(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class ze{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const $e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},on=typeof URLSearchParams<"u"?URLSearchParams:le,an=typeof FormData<"u"?FormData:null,cn=typeof Blob<"u"?Blob:null,un={isBrowser:!0,classes:{URLSearchParams:on,FormData:an,Blob:cn},protocols:["http","https","file","blob","url","data"]},de=typeof window<"u"&&typeof document<"u",he=typeof navigator=="object"&&navigator||void 0,ln=de&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),dn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hn=de&&window.location.href||"http://localhost",fn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:de,hasStandardBrowserEnv:ln,hasStandardBrowserWebWorkerEnv:dn,navigator:he,origin:hn},Symbol.toStringTag,{value:"Module"})),E={...fn,...un};function pn(t,e){return J(t,new E.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return E.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function mn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gn(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function We(t){function e(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),l=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,l?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=gn(s[i])),!c)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(r,s)=>{e(mn(r),s,n,0)}),n}return null}function _n(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const B={transitional:$e,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(We(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pn(t,this.formSerializer).toString();if((o=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return J(o?{"files[]":t}:t,i&&new i,this.formSerializer)}}return s||r?(e.setContentType("application/json",!1),_n(t)):t}],transformResponse:[function(t){const e=this.transitional||B.transitional,n=e&&e.forcedJSONParsing,r=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||r)){const s=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?g.from(o,g.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:E.classes.FormData,Blob:E.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{B.headers[t]={}});const bn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yn=t=>{const e={};let n,r,s;return t&&t.split(`
|
2
|
-
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||e[n]&&bn[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},He=Symbol("internals");function I(t){return t&&String(t).trim().toLowerCase()}function G(t){return t===!1||t==null?t:a.isArray(t)?t.map(G):String(t)}function wn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Sn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fe(t,e,n,r,s){if(a.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!a.isString(e)){if(a.isString(r))return e.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(e)}}function En(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function On(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}class A{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(c,l,u){const d=I(l);if(!d)throw new Error("header name must be a non-empty string");const p=a.findKey(s,d);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||l]=G(c))}const i=(c,l)=>a.forEach(c,(u,d)=>o(u,d,l));if(a.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(a.isString(e)&&(e=e.trim())&&!Sn(e))i(yn(e),n);else if(a.isHeaders(e))for(const[c,l]of e.entries())o(l,c,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=I(e),e){const r=a.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return wn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=I(e),e){const r=a.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=I(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||fe(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=G(s),delete n[o];return}const c=e?En(o):String(o).trim();c!==o&&delete n[o],n[c]=G(s),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const n=(this[He]=this[He]={accessors:{}}).accessors,r=this.prototype;function s(o){const i=I(o);n[i]||(On(r,o),n[i]=!0)}return a.isArray(e)?e.forEach(s):s(e),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(A.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),a.freezeMethods(A);function pe(t,e){const n=this||B,r=e||n,s=A.from(r.headers);let o=r.data;return a.forEach(t,function(i){o=i.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Ve(t){return!!(t&&t.__CANCEL__)}function U(t,e,n){g.call(this,t??"canceled",g.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(U,g,{__CANCEL__:!0});function Je(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function An(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Rn(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),u=r[o];i||(i=l),n[s]=c,r[s]=l;let d=o,p=0;for(;d!==s;)p+=n[d++],d=d%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),l-i<e)return;const _=u&&l-u;return _?Math.round(p*1e3/_):void 0}}function Tn(t,e){let n=0,r=1e3/e,s,o;const i=(c,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),t.apply(null,c)};return[(...c)=>{const l=Date.now(),u=l-n;u>=r?i(c,l):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-u)))},()=>s&&i(s)]}const K=(t,e,n=3)=>{let r=0;const s=Rn(50,250);return Tn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=i-r,u=s(l),d=i<=c;r=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&d?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(p)},n)},Ge=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ke=t=>(...e)=>a.asap(()=>t(...e)),xn=E.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,E.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(E.origin),E.navigator&&/(msie|trident)/i.test(E.navigator.userAgent)):()=>!0,Cn=E.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const i=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function vn(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Xe(t,e){return t&&!kn(e)?vn(t,e):e}const Qe=t=>t instanceof A?{...t}:t;function P(t,e){e=e||{};const n={};function r(u,d,p,_){return a.isPlainObject(u)&&a.isPlainObject(d)?a.merge.call({caseless:_},u,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(u,d,p,_){if(a.isUndefined(d)){if(!a.isUndefined(u))return r(void 0,u,p,_)}else return r(u,d,p,_)}function o(u,d){if(!a.isUndefined(d))return r(void 0,d)}function i(u,d){if(a.isUndefined(d)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,p){if(p in e)return r(u,d);if(p in t)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,d,p)=>s(Qe(u),Qe(d),p,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(u){const d=l[u]||s,p=d(t[u],e[u],u);a.isUndefined(p)&&d!==c||(n[u]=p)}),n}const Ye=t=>{const e=P({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=e;e.headers=i=A.from(i),e.url=Me(Xe(e.baseURL,e.url),t.params,t.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(a.isFormData(n)){if(E.hasStandardBrowserEnv||E.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[u,...d]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(E.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(e)),r||r!==!1&&xn(e.url))){const u=s&&o&&Cn.read(o);u&&i.set(s,u)}return e},Pn=typeof XMLHttpRequest<"u",Nn=Pn&&function(t){return new Promise(function(e,n){const r=Ye(t);let s=r.data;const o=A.from(r.headers).normalize();let{responseType:i,onUploadProgress:c,onDownloadProgress:l}=r,u,d,p,_,m;function f(){_&&_(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function O(){if(!h)return;const y=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!i||i==="text"||i==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:y,config:t,request:h};Je(function(z){e(z),f()},function(z){n(z),f()},C),h=null}"onloadend"in h?h.onloadend=O:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(O)},h.onabort=function(){h&&(n(new g("Request aborted",g.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new g("Network Error",g.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let y=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const C=r.transitional||$e;r.timeoutErrorMessage&&(y=r.timeoutErrorMessage),n(new g(y,C.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,t,h)),h=null},s===void 0&&o.setContentType(null),"setRequestHeader"in h&&a.forEach(o.toJSON(),function(y,C){h.setRequestHeader(C,y)}),a.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),i&&i!=="json"&&(h.responseType=r.responseType),l&&([p,m]=K(l,!0),h.addEventListener("progress",p)),c&&h.upload&&([d,_]=K(c),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",_)),(r.cancelToken||r.signal)&&(u=y=>{h&&(n(!y||y.type?new U(null,t,h):y),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const S=An(r.url);if(S&&E.protocols.indexOf(S)===-1){n(new g("Unsupported protocol "+S+":",g.ERR_BAD_REQUEST,t));return}h.send(s||null)})},jn=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof g?d:new U(d instanceof Error?d.message:d))}};let i=e&&setTimeout(()=>{i=null,o(new g(`timeout ${e} of ms exceeded`,g.ETIMEDOUT))},e);const c=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>a.asap(c),l}},Un=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},Dn=async function*(t,e){for await(const n of Fn(t))yield*Un(n,e)},Fn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Ze=(t,e,n,r)=>{const s=Dn(t,e);let o=0,i,c=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await s.next();if(u){c(),l.close();return}let p=d.byteLength;if(n){let _=o+=p;n(_)}l.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(l){return c(l),s.return()}},{highWaterMark:2})},X=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",et=X&&typeof ReadableStream=="function",Ln=X&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),tt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Bn=et&&tt(()=>{let t=!1;const e=new Request(E.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),nt=64*1024,me=et&&tt(()=>a.isReadableStream(new Response("").body)),Q={stream:me&&(t=>t.body)};X&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Q[e]&&(Q[e]=a.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new g(`Response type '${e}' is not supported`,g.ERR_NOT_SUPPORT,r)})})})(new Response);const In=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(E.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await Ln(t)).byteLength},qn=async(t,e)=>a.toFiniteNumber(t.getContentLength())??In(e),Mn=X&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:_}=Ye(t);u=u?(u+"").toLowerCase():"text";let m=jn([s,o&&o.toAbortSignal()],i),f;const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let O;try{if(l&&Bn&&n!=="get"&&n!=="head"&&(O=await qn(d,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),D;if(a.isFormData(r)&&(D=k.headers.get("content-type"))&&d.setContentType(D),k.body){const[Ae,se]=Ge(O,K(Ke(l)));r=Ze(k.body,nt,Ae,se)}}a.isString(p)||(p=p?"include":"omit");const S="credentials"in Request.prototype;f=new Request(e,{..._,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:S?p:void 0});let y=await fetch(f);const C=me&&(u==="stream"||u==="response");if(me&&(c||C&&h)){const k={};["status","statusText","headers"].forEach(ht=>{k[ht]=y[ht]});const D=a.toFiniteNumber(y.headers.get("content-length")),[Ae,se]=c&&Ge(D,K(Ke(c),!0))||[];y=new Response(Ze(y.body,nt,Ae,()=>{se&&se(),h&&h()}),k)}u=u||"text";let z=await Q[a.findKey(Q,u)||"text"](y,t);return!C&&h&&h(),await new Promise((k,D)=>{Je(k,D,{data:z,headers:A.from(y.headers),status:y.status,statusText:y.statusText,config:t,request:f})})}catch(S){throw h&&h(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,t,f),{cause:S.cause||S}):g.from(S,S&&S.code,t,f)}}),ge={http:tn,xhr:Nn,fetch:Mn};a.forEach(ge,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const rt=t=>`- ${t}`,zn=t=>a.isFunction(t)||t===null||t===!1,st={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let i;if(r=n,!zn(n)&&(r=ge[(i=String(n)).toLowerCase()],r===void 0))throw new g(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since :
|
4
|
-
`+o.map(rt).join(`
|
5
|
-
`):" "+rt(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ge};function _e(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new U(null,t)}function ot(t){return _e(t),t.headers=A.from(t.headers),t.data=pe.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),st.getAdapter(t.adapter||B.adapter)(t).then(function(e){return _e(t),e.data=pe.call(t,t.transformResponse,e),e.headers=A.from(e.headers),e},function(e){return Ve(e)||(_e(t),e&&e.response&&(e.response.data=pe.call(t,t.transformResponse,e.response),e.response.headers=A.from(e.response.headers))),Promise.reject(e)})}const it="1.7.9",Y={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Y[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const at={};Y.transitional=function(t,e,n){function r(s,o){return"[Axios v"+it+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,i)=>{if(t===!1)throw new g(r(o," has been removed"+(e?" in "+e:"")),g.ERR_DEPRECATED);return e&&!at[o]&&(at[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,o,i):!0}},Y.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function $n(t,e,n){if(typeof t!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const c=t[o],l=c===void 0||i(c,o,t);if(l!==!0)throw new g("option "+o+" must be "+l,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+o,g.ERR_BAD_OPTION)}}const Z={assertOptions:$n,validators:Y},x=Z.validators;class N{constructor(e){this.defaults=e,this.interceptors={request:new ze,response:new ze}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
6
|
-
`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=P(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Z.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:Z.assertOptions(s,{encode:x.function,serialize:x.function},!0)),Z.assertOptions(n,{baseUrl:x.spelling("baseURL"),withXsrfToken:x.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=A.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(l=l&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let d,p=0,_;if(!l){const f=[ot.bind(this),void 0];for(f.unshift.apply(f,c),f.push.apply(f,u),_=f.length,d=Promise.resolve(n);p<_;)d=d.then(f[p++],f[p++]);return d}_=c.length;let m=n;for(p=0;p<_;){const f=c[p++],h=c[p++];try{m=f(m)}catch(O){h.call(this,O);break}}try{d=ot.call(this,m)}catch(f){return Promise.reject(f)}for(p=0,_=u.length;p<_;)d=d.then(u[p++],u[p++]);return d}getUri(e){e=P(this.defaults,e);const n=Xe(e.baseURL,e.url);return Me(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){N.prototype[t]=function(e,n){return this.request(P(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(r,s,o){return this.request(P(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}N.prototype[t]=e(),N.prototype[t+"Form"]=e(!0)});class be{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(s,o,i){r.reason||(r.reason=new U(s,o,i),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new be(function(n){e=n}),cancel:e}}}function Wn(t){return function(e){return t.apply(null,e)}}function Hn(t){return a.isObject(t)&&t.isAxiosError===!0}const ye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ye).forEach(([t,e])=>{ye[e]=t});function ct(t){const e=new N(t),n=Re(N.prototype.request,e);return a.extend(n,N.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return ct(P(t,r))},n}const w=ct(B);w.Axios=N,w.CanceledError=U,w.CancelToken=be,w.isCancel=Ve,w.VERSION=it,w.toFormData=J,w.AxiosError=g,w.Cancel=w.CanceledError,w.all=function(t){return Promise.all(t)},w.spread=Wn,w.isAxiosError=Hn,w.mergeConfig=P,w.AxiosHeaders=A,w.formToJSON=t=>We(a.isHTMLForm(t)?new FormData(t):t),w.getAdapter=st.getAdapter,w.HttpStatusCode=ye,w.default=w;const we=w.create({baseURL:location.origin,timeout:6e4,params:{}});we.interceptors.response.use(t=>t,t=>{var e,n,r,s,o,i,c,l,u,d,p;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(f){f&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let _=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(_+=`${t.response.statusText} `),(r=(n=t.response)==null?void 0:n.config)!=null&&r.data&&(_+=`${t.response.config.data} `),(o=(s=t.response)==null?void 0:s.data)!=null&&o.message?_+=`${t.response.data.message}`:(c=(i=t.response)==null?void 0:i.data)!=null&&c.exception?_+=`${t.response.data.exception}`:(d=(u=(l=t.response)==null?void 0:l.data)==null?void 0:u.error)!=null&&d.message?(t.response.data.error.class&&(_+=`${t.response.data.error.class} `),_+=`${t.response.data.error.message}`):_+=`${(p=t.response)==null?void 0:p.data}`;const{$cosmosNotify:m}=window;throw m&&m.serious({title:"Network error",body:_}),t}else throw t});const ee=async function(t,e,{data:n,params:r={},headers:s,noAuth:o=!1,noScope:i=!1,onUploadProgress:c=!1}={}){if(!o){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}s.Authorization=localStorage.openc3Token}return s.manual=!0,!i&&!r.scope&&(r.scope=window.openc3Scope),we({method:t,url:e,data:n,params:r,headers:s,onUploadProgress:c})},Se={Accept:"application/json"},ut={...Se,"Content-Type":"application/json"},sr=oe("n",{get:function(t,{params:e,headers:n=Se,noScope:r,noAuth:s,onUploadProgress:o}={}){return ee("get",t,{params:e,headers:n,noScope:r,noAuth:s,onUploadProgress:o})},put:function(t,{data:e,params:n,headers:r=ut,noScope:s,noAuth:o,onUploadProgress:i}={}){return ee("put",t,{data:e,params:n,headers:r,noScope:s,noAuth:o,onUploadProgress:i})},post:function(t,{data:e,params:n,headers:r=ut,noScope:s,noAuth:o,onUploadProgress:i}={}){return ee("post",t,{data:e,params:n,headers:r,noScope:s,noAuth:o,onUploadProgress:i})},delete:function(t,{params:e,headers:n=Se,noScope:r,noAuth:s,onUploadProgress:o}={}){return ee("delete",t,{params:e,headers:n,noScope:r,noAuth:s,onUploadProgress:o})}});var te={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},b={log(...t){this.enabled&&(t.push(Date.now()),te.logger.log("[ActionCable]",...t))}};const q=()=>new Date().getTime(),ne=t=>(q()-t)/1e3;class re{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=q(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),b.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=q(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),b.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=q()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,b.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=q(),b.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:n}=this.constructor,r=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),s=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*r*(1+s)}reconnectIfStale(){this.connectionIsStale()&&(b.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${ne(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?b.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${ne(this.disconnectedAt)} s`):(b.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return ne(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&ne(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(b.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}re.staleThreshold=6,re.reconnectionBackoffRate=.15;var lt={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:M,protocols:Ee}=lt,Vn=Ee.slice(0,Ee.length-1),dt=[].indexOf;class Oe{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new re(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return b.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...Ee,...this.consumer.subprotocols||[]];return b.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new te.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(b.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){b.log("Failed to reopen WebSocket",e)}finally{b.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return dt.call(Vn,this.getProtocol())>=0}isState(...e){return dt.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in te.WebSocket)if(te.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const n=this.events[e].bind(this);this.webSocket[`on${e}`]=n}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}Oe.reopenDelay=500,Oe.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:r,reconnect:s,type:o}=JSON.parse(t.data);switch(o){case M.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case M.disconnect:return b.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:s});case M.ping:return this.monitor.recordPing();case M.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case M.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(b.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return b.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(b.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){b.log("WebSocket onerror event")}};const Jn=function(t,e){if(e!=null)for(let n in e){const r=e[n];t[n]=r}return t};class Gn{constructor(e,n={},r){this.consumer=e,this.identifier=JSON.stringify(n),Jn(this,r)}perform(e,n={}){return n.action=e,this.send(n)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class Kn{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(b.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):b.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){b.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{b.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class Xn{constructor(e){this.consumer=e,this.guarantor=new Kn(this),this.subscriptions=[]}create(e,n){const r=e,s=typeof r=="object"?r:{channel:r},o=new Gn(this.consumer,s,n);return this.add(o)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(n=>n!==e),e}findAll(e){return this.subscriptions.filter(n=>n.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...n){return this.subscriptions.map(r=>this.notify(r,e,...n))}notify(e,n,...r){let s;return typeof e=="string"?s=this.findAll(e):s=[e],s.map(o=>typeof o[n]=="function"?o[n](...r):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){b.log(`Subscription confirmed ${e}`),this.findAll(e).map(n=>this.guarantor.forget(n))}sendCommand(e,n){const{identifier:r}=e;return this.consumer.send({command:n,identifier:r})}}class Qn{constructor(e){this._url=e,this.subscriptions=new Xn(this),this.connection=new Oe(this),this.subprotocols=[]}get url(){return Yn(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function Yn(t){if(typeof t=="function"&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return t}function Zn(t=er("url")||lt.default_mount_path){return new Qn(t)}function er(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}re.staleThreshold=10;class tr{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,r={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(o=>{if(o&&OpenC3Auth.setTokens(),this._cable==null){let i=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=Zn(i)}return this._cable.subscriptions.create({channel:e,...s},r)})}recordPing(){this._cable.connection.monitor.recordPing()}}oe("s",tr);class nr{constructor(){mt(this,"id",1)}async exec(e,n,r={},s={},o=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,s.manual=!0,(await we.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:o})).data.result}catch(i){let c=new Error;throw i.response?(c.name=i.response.data.error.data.class,c.message=i.response.data.error.data.message,c.object=i.response.data.error):i.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...r){return this.exec("interface_cmd",[e,n,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,r){return this.exec("get_item",[e,n,r])}get_param(e,n,r){return this.exec("get_param",[e,n,r])}get_parameter(e,n,r){return this.exec("get_param",[e,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,n,r,s=30){const o=await this.exec("get_tlm_packet",[e,n],{type:r,stale_time:s});if(o!=null){let i=o.length,c=null;for(let l=0;l<i;l++)c=this.decode_openc3_type(o[l][1]),c!==null&&(o[l][1]=c)}return o}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,r=null){let s={stale_time:n};r!==null&&(s.cache_timeout=r);const o=await this.exec("get_tlm_values",[e],s,{},1e4);let i=o[0].length,c=null;for(let l=0;l<i;l++)c=this.decode_openc3_type(o[0][l]),c!==null&&(o[0][l]=c);return o}get_limits(e,n,r){return this.exec("get_limits",[e,n,r])}async tlm(e,n,r,s="CONVERTED"){let o=null;if(n===void 0)o=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))o=await this.exec("tlm",[e],{type:n});else{let c=new Error;throw c.name="TypeError",c.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,c}else o=await this.exec("tlm",[e,n,r],{type:s});let i=this.decode_openc3_type(o);return i!==null&&(o=i),o}async inject_tlm(e,n,r=null,s="CONVERTED"){data=await this.exec("inject_tlm",[e,n,r],{type:s})}set_tlm(e,n,r,s){return this.exec("set_tlm",[e,n,r],{type:s})}override_tlm(e,n,r,s){return this.exec("override_tlm",[e,n,r],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,r,s){return this.exec("normalize_tlm",[e,n,r],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,r,s="CONVERTED"){return this.exec("get_cmd_value",[e,n,r,s])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,r,s,o){let i=null;for(let c in s)Object.prototype.hasOwnProperty.call(s,c)&&(i=this.encode_openc3_type(s[c]),i!==null&&(s[c]=i));return this.exec(e,[n,r,s],{},o)}get_cmd_hazardous(e,n,r,s={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,n,r,s)}cmd(e,n,r,s={}){return n===void 0?this.exec("cmd",e,{},s):this._cmd("cmd",e,n,r,s)}cmd_no_range_check(e,n,r,s={}){return n===void 0?this.exec("cmd_no_range_check",e,{},s):this._cmd("cmd_no_range_check",e,n,r,s)}cmd_raw(e,n,r,s={}){return n===void 0?this.exec("cmd_raw",e,{},s):this._cmd("cmd_raw",e,n,r,s)}cmd_raw_no_range_check(e,n,r,s={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},s):this._cmd("cmd_raw_no_range_check",e,n,r,s)}cmd_no_hazardous_check(e,n,r,s={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},s):this._cmd("cmd_no_hazardous_check",e,n,r,s)}cmd_no_checks(e,n,r,s={}){return n===void 0?this.exec("cmd_no_checks",e,{},s):this._cmd("cmd_no_checks",e,n,r,s)}cmd_raw_no_hazardous_check(e,n,r,s={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},s):this._cmd("cmd_raw_no_hazardous_check",e,n,r,s)}cmd_raw_no_checks(e,n,r,s={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},s):this._cmd("cmd_raw_no_checks",e,n,r,s)}build_cmd(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}build_command(e,n,r){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,r){return this.exec("save_config",[e,n,r])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,r){return this.exec("enable_limits",[e,n,r])}disable_limits(e,n,r){return this.exec("disable_limits",[e,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(o=>o.toString(16).padStart(2,"0")).join("")}}}oe("i",nr)}}});
|