openc3-cosmos-tool-cmdtlmserver 6.0.1 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/cmdtlmserver/{ArrayWidget-BTxChSds-3cf159536429e6883c2e.js → ArrayWidget-DBpEoQ1y-84132d15e020efa0adf1.js} +2 -2
- data/tools/cmdtlmserver/{BarColumn-Cdu3OoMa-c782b2168b94ee7b1c5a.js → BarColumn-B6tCmNJm-6eff86fdc1e74ef6f1c9.js} +1 -1
- data/tools/cmdtlmserver/BlockWidget-Bmi0UcUW-c8722bb58622a8814b0b.js +2 -0
- data/tools/cmdtlmserver/{ButtonWidget-nwDlOBJT-47c3fd49f7fe11027319.js → ButtonWidget-CHrHS_Bw-70e879d3bbdf933eb10a.js} +2 -2
- data/tools/cmdtlmserver/CanvasWidget-BqdyLbQz-184dc2d3c4b6c7ab6bf0.js +1 -0
- data/tools/cmdtlmserver/CanvasdotWidget-YYwca104-4fffaf81ed40b0efed4b.js +1 -0
- data/tools/cmdtlmserver/{CanvasimageWidget-BIw7Wbf2-ccaadc84310305b8724c.js → CanvasimageWidget-BrYlPQCf-c9b4b7ca9e5b29f12d09.js} +1 -1
- data/tools/cmdtlmserver/CanvasimagevalueWidget-HnEOXmZy-5583c55cf5bbdfadba5d.js +1 -0
- data/tools/cmdtlmserver/{CanvaslabelWidget-DWmb356h-b76906b84aa03a84c71a.js → CanvaslabelWidget-BfMHNei--81068b9cfc5ea4370382.js} +1 -1
- data/tools/cmdtlmserver/{CanvaslabelvalueWidget-CI3yYwFs-dc94a676241ddd24df6a.js → CanvaslabelvalueWidget-0zRDJav3-293602564dbb12cd36fd.js} +1 -1
- data/tools/cmdtlmserver/CanvaslineWidget-BmOwJP_G-b2f20a0461abbe1c4aec.js +1 -0
- data/tools/cmdtlmserver/CanvaslinevalueWidget-H3L1aUKM-6eb08878d7d5720ce613.js +1 -0
- data/tools/cmdtlmserver/CheckbuttonWidget-BnT9X7wE-5f6d8077e8d80b62862c.js +1 -0
- data/tools/cmdtlmserver/{CmdPacketsTab-eb1fa49f7541f717295c.js → CmdPacketsTab-1174eeae24f567559f43.js} +1 -1
- data/tools/cmdtlmserver/{CmdTlmServer-774dde4622e0b08dc844.js → CmdTlmServer-909a975f2c448b6dfdd9.js} +2 -2
- data/tools/cmdtlmserver/{ComboboxWidget-BzsbOv54-e6a8a4d274e5f229db45.js → ComboboxWidget-BykAAoxH-b67d237b4347e57c1776.js} +1 -1
- data/tools/cmdtlmserver/{DateWidget-B5R_9rA8-9872c5984c6fbe955d2c.js → DateWidget-FtYD86xW-eee42f7093a7d5232e7e.js} +1 -1
- data/tools/cmdtlmserver/{DetailsDialog-DLRMqetn-ea4056f15a1003ff0665.js → DetailsDialog-DiVcC3Fg-926dc00ae99f202f7bbb.js} +1 -1
- data/tools/cmdtlmserver/{DynamicWidget-m9EliUR2-32e2fa24ad4f0cfcceff.js → DynamicWidget-m9EliUR2-b792f7d3791995de4557.js} +1 -1
- data/tools/cmdtlmserver/FormatvalueWidget-OykwwCrw-ec440c1e59a54a11e1c0.js +1 -0
- data/tools/cmdtlmserver/{GraphWidget-amwxyH1r-ac89940777c22d7746b3.js → GraphWidget-BohHW-97-79648f0f5f760947a337.js} +1 -1
- data/tools/cmdtlmserver/{HorizontalWidget-CirtfuL8-e382a5357367b10cc6e4.js → HorizontalWidget-B7YdcFVN-1adf1fbb47940ffc2bbb.js} +1 -1
- data/tools/cmdtlmserver/HorizontalboxWidget-D-kCNwI3-d5280f31e632d3a19530.js +1 -0
- data/tools/cmdtlmserver/{HorizontallineWidget-BdlNB951-db852634def5179b351c.js → HorizontallineWidget-BdlNB951-97bac9ec958ae9185006.js} +1 -1
- data/tools/cmdtlmserver/IframeWidget-0C7GYEVc-7d9db206f561f13924bb.js +1 -0
- data/tools/cmdtlmserver/{ImageLoader-CpcR6tPi-64d627c07bbe3bafc636.js → ImageLoader-y6fAZe9P-32c5109a53a2e67d4546.js} +1 -1
- data/tools/cmdtlmserver/{ImageviewerWidget-DIkmb_C9-28636a49486b47368c8f.js → ImageviewerWidget-B4HbUIfR-cc56d18d351a216f45dc.js} +1 -1
- data/tools/cmdtlmserver/{InterfacesTab-099692b4beab8c926e99.js → InterfacesTab-1a220be708030742672f.js} +1 -1
- data/tools/cmdtlmserver/{LabelWidget-BDsypYho-642c12a9e82c6fda4515.js → LabelWidget-D1JhQAzR-637ca102152e7cb0159f.js} +1 -1
- data/tools/cmdtlmserver/{LabelledWidget-DjturGl5-f9cc57c5b8ad3be43aea.js → LabelledWidget-C2VGJ5OJ-63324f13b32cbd3d1e09.js} +1 -1
- data/tools/cmdtlmserver/LabelprogressbarWidget-DN0cAeLK-9414ccaa3c0bd5213eaf.js +1 -0
- data/tools/cmdtlmserver/LabelsparklineWidget--sxBENxs-9bbfaf33dcea3a9a4163.js +1 -0
- data/tools/cmdtlmserver/LabelvalueWidget-BWpP5KX6-e70143eae4825e3ca295.js +1 -0
- data/tools/cmdtlmserver/{LabelvaluedescWidget-CsUP7J4U-4c293aeade527694a600.js → LabelvaluedescWidget-DtJwggDu-297f5e4f5cdd4e997a84.js} +1 -1
- data/tools/cmdtlmserver/{LabelvaluelimitsbarWidget-Blj1QXV8-206f10580b17f11e1c5a.js → LabelvaluelimitsbarWidget-Bj6UVK-5-d0e6cb1105035131b388.js} +1 -1
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-BVcEEcUx-5ffbd14ed49f43d1a770.js +1 -0
- data/tools/cmdtlmserver/{LabelvaluerangebarWidget-DpcXhlfF-5b5018bd879c9284f08c.js → LabelvaluerangebarWidget-DCJ42bmf-951b68255fe130b397b4.js} +1 -1
- data/tools/cmdtlmserver/{Layout-C1HoM4Kl-a25fa864ced06bd30900.js → Layout-D4YBjuWs-d949f0668cb092f7f268.js} +1 -1
- data/tools/cmdtlmserver/{LedWidget-B_K2e5tq-daa21a2f2c8f400e5e72.js → LedWidget-hN9JHxjr-d3630538860ea110829a.js} +1 -1
- data/tools/cmdtlmserver/{LimitsbarWidget-DXbqsi4J-7dc436e5fbcba0283992.js → LimitsbarWidget-D-wfz_St-71b4065ff350d86e47f1.js} +1 -1
- data/tools/cmdtlmserver/{LimitscolorWidget-Ckmuw0YX-38605ffc3e405586bf13.js → LimitscolorWidget-B0AVGdkz-8af3823cc815001ee996.js} +1 -1
- data/tools/cmdtlmserver/{LimitscolumnWidget-BfY4su5U-f366ea17283d53231bcc.js → LimitscolumnWidget-Dt5ce4hN-4bf9236958883e049ac5.js} +1 -1
- data/tools/cmdtlmserver/{LinegraphWidget-y-Qy9P0R-c3e6dd1b1801cb2d0677.js → LinegraphWidget-CTjtvtPd-3472bcb2292fccce0780.js} +1 -1
- data/tools/cmdtlmserver/MatrixbycolumnsWidget-wLx4NvXV-789df70ba148ac45d935.js +1 -0
- data/tools/cmdtlmserver/{ProgressbarWidget-DpA_-vy9-532c600c1f7577d1401a.js → ProgressbarWidget-B7l0BBiX-28bb09016921e507b157.js} +1 -1
- data/tools/cmdtlmserver/RadiobuttonWidget-B032jKIw-751b0da1a0eac1f428eb.js +1 -0
- data/tools/cmdtlmserver/RadiogroupWidget-Busjqikr-fdbbff7df3b152de9174.js +1 -0
- data/tools/cmdtlmserver/{RangebarWidget-DHS7S3vI-a69bd469c64d7a664045.js → RangebarWidget-DbYrwEfC-672c02ff8fc7508bbfe0.js} +1 -1
- data/tools/cmdtlmserver/{RawDialog-a90a4b5f8d8572d4512f.js → RawDialog-3ba881626e2141cf6261.js} +1 -1
- data/tools/cmdtlmserver/{RollupWidget-CTk9Kjwr-7683649370d397c390a9.js → RollupWidget-rKxLXuCv-84804fdfa2a67e0c586f.js} +1 -1
- data/tools/cmdtlmserver/{RoutersTab-5d08e7c9f3ba52589b7a.js → RoutersTab-821ac863905d6fc1f0f3.js} +1 -1
- data/tools/cmdtlmserver/{ScrollwindowWidget-DD0TOW6s-1a3939f83a85675d4e84.js → ScrollwindowWidget-D4NKIzQO-e7fc825a7640800925b3.js} +1 -1
- data/tools/cmdtlmserver/{SignalWidget-CC33KMTW-efcb60975938ae4db5cb.js → SignalWidget-h-oivReC-a52944079f1106d5b9e8.js} +1 -1
- data/tools/cmdtlmserver/SpacerWidget-BSy9eOlB-d21cb40c89cf46239df2.js +1 -0
- data/tools/cmdtlmserver/{SparklineWidget-DMvMQCPm-f269f9c87f957b329bed.js → SparklineWidget-C9vdxar--5fe9233f121a11766f79.js} +1 -1
- data/tools/cmdtlmserver/{StatusTab-58b1a61560ae7bee6e29.js → StatusTab-4f20ea8483d65cd2f43f.js} +1 -1
- data/tools/cmdtlmserver/TabbookWidget-DTFTKURm-8a001c50117950e4dff3.js +1 -0
- data/tools/cmdtlmserver/{TargetsTab-34eb32660daa4f41320b.js → TargetsTab-45e297b994fc5f0d21d0.js} +1 -1
- data/tools/cmdtlmserver/TextboxWidget-BZyYHmBq-69732416c05b62947a52.js +1 -0
- data/tools/cmdtlmserver/{TextfieldWidget-DXSdgqVP-cc69d5c01bd58fd71775.js → TextfieldWidget-aVRdXRsT-6158511014a61f90ddea.js} +1 -1
- data/tools/cmdtlmserver/TimeWidget-BE2rtMxg-26adb974402be26d1aaf.js +1 -0
- data/tools/cmdtlmserver/{TitleWidget-DqViFQl--be097b712c7b366b29ba.js → TitleWidget-BB29MZb2-2f453a7f1f364727debd.js} +1 -1
- data/tools/cmdtlmserver/{TlmPacketsTab-ab9ca71cbd44cc41aa54.js → TlmPacketsTab-b9aab218beb2e197b269.js} +1 -1
- data/tools/cmdtlmserver/{Updater-3608194712b19b896303.js → Updater-6f453064b0e1f1f5fb0e.js} +1 -1
- data/tools/cmdtlmserver/{VWidget-02CG-3Av-282fe2eacc23edb71aea.js → VWidget-CGdM4sTw-a078921174583b0d9185.js} +1 -1
- data/tools/cmdtlmserver/ValueWidget-h3905woQ-9b7964d625c1c99b145b.js +1 -0
- data/tools/cmdtlmserver/{ValuelimitsbarWidget-SR8XNZFB-3ad50960c7911530750b.js → ValuelimitsbarWidget-LMXYjWtS-c85b0d0fb89533be596b.js} +1 -1
- data/tools/cmdtlmserver/{ValuelimitscolumnWidget-xYZSp6YZ-fa9436a9514cbdeace85.js → ValuelimitscolumnWidget-gA3ZcfAT-faa7e73a393653ce138d.js} +1 -1
- data/tools/cmdtlmserver/ValuerangebarWidget-DwZ9KQ0O-1b288730ccf9a87d6d8f.js +1 -0
- data/tools/cmdtlmserver/VerticalWidget-DziyURNu-750d852c42a2d5f2f703.js +1 -0
- data/tools/cmdtlmserver/VerticalboxWidget-OcoZBsFU-b0a8579fcda69ee76cfc.js +1 -0
- data/tools/cmdtlmserver/{Widget-C4QVI4IH-8eb3ea2c769d216e1508.js → Widget-C7ms_xDE-bce61b3f1521054f57a4.js} +1 -1
- data/tools/cmdtlmserver/{main-9a5b81b5417615361b70.js → main-fcf5991e219cb9464cd3.js} +74 -74
- data/tools/cmdtlmserver/main.js +1 -1
- data/tools/cmdtlmserver/{services-6fab0d9d3d41ee3bbe0a.js → services-d6821e5ba7167450844f.js} +6 -6
- metadata +76 -76
- data/tools/cmdtlmserver/BlockWidget-PmjzrkXF-877fd89adeda71f65d12.js +0 -2
- data/tools/cmdtlmserver/CanvasWidget-BL8930eT-51040855b4e007ab5d2b.js +0 -1
- data/tools/cmdtlmserver/CanvasdotWidget-VCf1fL-G-f6463321d3a30f208f07.js +0 -1
- data/tools/cmdtlmserver/CanvasimagevalueWidget-CE3Dj5bH-282f53984193d39a59ac.js +0 -1
- data/tools/cmdtlmserver/CanvaslineWidget-COeapH3P-c1972bd0296003fc1dfd.js +0 -1
- data/tools/cmdtlmserver/CanvaslinevalueWidget-CI-Bbzfi-526c06fb122282240d11.js +0 -1
- data/tools/cmdtlmserver/CheckbuttonWidget-BQhggcZ2-203eb2f8dce3bb29a90d.js +0 -1
- data/tools/cmdtlmserver/FormatvalueWidget-DZkRJce8-fa00fba21c8fe46f41dc.js +0 -1
- data/tools/cmdtlmserver/HorizontalboxWidget-CyTDt2nl-cc6db1e0fac4003a9b6b.js +0 -1
- data/tools/cmdtlmserver/IframeWidget-DnJmCrCA-61de005ba939e8bb74ad.js +0 -1
- data/tools/cmdtlmserver/LabelprogressbarWidget-RADJGLj3-c2cc73533501b6a29f36.js +0 -1
- data/tools/cmdtlmserver/LabelsparklineWidget-BlJoICxu-5751e60aa56459153ba1.js +0 -1
- data/tools/cmdtlmserver/LabelvalueWidget-DVWJqnlY-820f8e054b353826726d.js +0 -1
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-CvCo-uCe-7223e7b4ead90ddd0bbd.js +0 -1
- data/tools/cmdtlmserver/MatrixbycolumnsWidget-BTBColrs-f491ca2ab6e973723db2.js +0 -1
- data/tools/cmdtlmserver/RadiobuttonWidget-BO8zpgwW-7756580188448ae87ac3.js +0 -1
- data/tools/cmdtlmserver/RadiogroupWidget-Oy7V4S-V-2e12ec8be602f19c2826.js +0 -1
- data/tools/cmdtlmserver/SpacerWidget-BnJe_Hq6-b310f25a3248e49ff181.js +0 -1
- data/tools/cmdtlmserver/TabbookWidget-B3w0JtWe-8f595addaa4ebe894087.js +0 -1
- data/tools/cmdtlmserver/TextboxWidget-D2f0-eol-c3f29f980b48240b07b7.js +0 -1
- data/tools/cmdtlmserver/TimeWidget-DvrRaEMz-a9047ff28b5d6b011533.js +0 -1
- data/tools/cmdtlmserver/ValueWidget-KLYY8L8U-1c6337a11d8ce971b16e.js +0 -1
- data/tools/cmdtlmserver/ValuerangebarWidget-B6M02a9d-35a8846604b2ee963544.js +0 -1
- data/tools/cmdtlmserver/VerticalWidget-z6xUM-ql-5b64611067fb9cb9988c.js +0 -1
- data/tools/cmdtlmserver/VerticalboxWidget-3a9cVsW--b7245f0a2f9c2b4eb888.js +0 -1
data/tools/cmdtlmserver/main.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
System.register(["vue","./main-
|
1
|
+
System.register(["vue","./main-fcf5991e219cb9464cd3.js","vue-router","single-spa","vuex","vuetify"],function(e,t){"use strict";return{setters:[null,u=>{e({bootstrap:u.e,mount:u.m,unmount:u.u})},null,null,null,null],execute:function(){}}});
|
data/tools/cmdtlmserver/{services-6fab0d9d3d41ee3bbe0a.js → services-d6821e5ba7167450844f.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
System.register([],function(se,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"),[vt,Ct,kt,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,o;if(typeof t!="object"&&(t=[t]),j(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let c;for(r=0;r<i;r++)c=s[r],e.call(null,t[c],c,t)}}function ve(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const k=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ce=t=>!F(t)&&t!==k;function ae(){const{caseless:t}=Ce(this)&&this||{},e={},n=(r,o)=>{const s=t&&ve(e,o)||o;V(e[s])&&V(r)?e[s]=ae(e[s],r):V(r)?e[s]=ae({},r):j(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&L(arguments[r],n);return e}const jt=(t,e,n,{allOwnKeys:r}={})=>(L(e,(o,s)=>{n&&R(o)?t[s]=Re(o,n):t[s]=o},{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 o,s,i;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!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 o=r.value;e.call(t,o[0],o[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}),ke=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Wt=T("RegExp"),Pe=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};L(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),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=o=>{o.forEach(s=>{n[s]=!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,o)=>{if(H(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=j(r)?[]:{};return L(r,(i,c)=>{const u=n(i,o+1);!F(u)&&(s[c]=u)}),e[o]=void 0,s}}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)=>(k.addEventListener("message",({source:o,data:s})=>{o===k&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),k.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",R(k.postMessage)),en=typeof queueMicrotask<"u"?queueMicrotask.bind(k):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:vt,isRequest:Ct,isResponse:kt,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:ke,hasOwnProp:ke,reduceDescriptors:Pe,freezeMethods:Ht,toObjectSet:Vt,toCamelCase:$t,noop:Jt,toFiniteNumber:Gt,findKey:ve,global:k,isContextDefined:Ce,ALPHABET:je,generateString:Kt,isSpecCompliantForm:Xt,toJSONObject:Qt,isAsyncFn:Yt,isThenable:Zt,setImmediate:Ue,asap:en};function g(t,e,n,r,o){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),o&&(this.response=o,this.status=o.status?o.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,o,s)=>{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,o),i.cause=t,i.name=t.name,s&&Object.assign(i,s),i};const tn=null;function le(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,o){return r=Le(r),!n&&o?"["+r+"]":r}).join(n?".":""):e}function nn(t){return a.isArray(t)&&!t.some(le)}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,o=n.visitor||l,s=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function u(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 l(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,s):i===null?f:f+"[]",u(S))}),!1}return le(m)?!0:(e.append(Be(h,f,s),u(m)),!1)}const d=[],p=Object.assign(rn,{defaultVisitor:l,convertValue:u,isVisitable:le});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)&&o.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 ue(t,e){this._pairs=[],t&&J(t,this,e)}const qe=ue.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 on(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||on;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(e,n):s=a.isURLSearchParams(e)?e.toString():new ue(e,n).toString(r),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}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},sn=typeof URLSearchParams<"u"?URLSearchParams:ue,an=typeof FormData<"u"?FormData:null,cn=typeof Blob<"u"?Blob:null,ln={isBrowser:!0,classes:{URLSearchParams:sn,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,un=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:un,hasStandardBrowserWebWorkerEnv:dn,navigator:he,origin:hn},Symbol.toStringTag,{value:"Module"})),E={...fn,...ln};function pn(t,e){return J(t,new E.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return E.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.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 o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function We(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),u=s>=n.length;return i=!i&&a.isArray(o)?o.length:i,u?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=gn(o[i])),!c)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(r,o)=>{e(mn(r),o,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,o=a.isObject(t);if(o&&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 s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pn(t,this.formSerializer).toString();if((s=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return J(s?{"files[]":t}:t,i&&new i,this.formSerializer)}}return o||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 o=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?g.from(s,g.ERR_BAD_RESPONSE,this,null,this.response):s}}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,o;return t&&t.split(`
|
2
|
-
`).forEach(function(
|
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(o=>r.set(o)),r}static accessor(e){const n=(this[He]=this[He]={accessors:{}}).accessors,r=this.prototype;function o(s){const i=I(s);n[i]||(On(r,s),n[i]=!0)}return a.isArray(e)?e.forEach(o):o(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,o=A.from(r.headers);let s=r.data;return a.forEach(t,function(i){s=i.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}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 o=0,s=0,i;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),l=r[s];i||(i=u),n[o]=c,r[o]=u;let d=s,p=0;for(;d!==o;)p+=n[d++],d=d%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const _=l&&u-l;return _?Math.round(p*1e3/_):void 0}}function Tn(t,e){let n=0,r=1e3/e,o,s;const i=(c,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),t.apply(null,c)};return[(...c)=>{const u=Date.now(),l=u-n;l>=r?i(c,u):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},r-l)))},()=>o&&i(o)]}const K=(t,e,n=3)=>{let r=0;const o=Rn(50,250);return Tn(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,u=i-r,l=o(u),d=i<=c;r=i;const p={loaded:i,total:c,progress:c?i/c:void 0,bytes:u,rate:l||void 0,estimated:l&&c&&d?(c-i)/l:void 0,event:s,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,vn=E.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const i=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!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 Cn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function kn(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Xe(t,e){return t&&!Cn(e)?kn(t,e):e}const Qe=t=>t instanceof A?{...t}:t;function P(t,e){e=e||{};const n={};function r(l,d,p,_){return a.isPlainObject(l)&&a.isPlainObject(d)?a.merge.call({caseless:_},l,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function o(l,d,p,_){if(a.isUndefined(d)){if(!a.isUndefined(l))return r(void 0,l,p,_)}else return r(l,d,p,_)}function s(l,d){if(!a.isUndefined(d))return r(void 0,d)}function i(l,d){if(a.isUndefined(d)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function c(l,d,p){if(p in e)return r(l,d);if(p in t)return r(void 0,l)}const u={url:s,method:s,data:s,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:(l,d,p)=>o(Qe(l),Qe(d),p,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(l){const d=u[l]||o,p=d(t[l],e[l],l);a.isUndefined(p)&&d!==c||(n[l]=p)}),n}const Ye=t=>{const e=P({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,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 u;if(a.isFormData(n)){if(E.hasStandardBrowserEnv||E.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[l,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...d].join("; "))}}if(E.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(e)),r||r!==!1&&xn(e.url))){const l=o&&s&&vn.read(s);l&&i.set(o,l)}return e},Pn=typeof XMLHttpRequest<"u",Nn=Pn&&function(t){return new Promise(function(e,n){const r=Ye(t);let o=r.data;const s=A.from(r.headers).normalize();let{responseType:i,onUploadProgress:c,onDownloadProgress:u}=r,l,d,p,_,m;function f(){_&&_(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}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()),v={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()},v),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 v=r.transitional||$e;r.timeoutErrorMessage&&(y=r.timeoutErrorMessage),n(new g(y,v.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,t,h)),h=null},o===void 0&&s.setContentType(null),"setRequestHeader"in h&&a.forEach(s.toJSON(),function(y,v){h.setRequestHeader(v,y)}),a.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),i&&i!=="json"&&(h.responseType=r.responseType),u&&([p,m]=K(u,!0),h.addEventListener("progress",p)),c&&h.upload&&([d,_]=K(c),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",_)),(r.cancelToken||r.signal)&&(l=y=>{h&&(n(!y||y.type?new U(null,t,h):y),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));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(o||null)})},jn=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const s=function(l){if(!o){o=!0,c();const d=l instanceof Error?l:this.reason;r.abort(d instanceof g?d:new U(d instanceof Error?d.message:d))}};let i=e&&setTimeout(()=>{i=null,s(new g(`timeout ${e} of ms exceeded`,g.ETIMEDOUT))},e);const c=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),t=null)};t.forEach(l=>l.addEventListener("abort",s));const{signal:u}=r;return u.unsubscribe=()=>a.asap(c),u}},Un=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},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 o=Dn(t,e);let s=0,i,c=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:l,value:d}=await o.next();if(l){c(),u.close();return}let p=d.byteLength;if(n){let _=s+=p;n(_)}u.enqueue(new Uint8Array(d))}catch(l){throw c(l),l}},cancel(u){return c(u),o.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:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:u,responseType:l,headers:d,withCredentials:p="same-origin",fetchOptions:_}=Ye(t);l=l?(l+"").toLowerCase():"text";let m=jn([o,s&&s.toAbortSignal()],i),f;const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let O;try{if(u&&Bn&&n!=="get"&&n!=="head"&&(O=await qn(d,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),D;if(a.isFormData(r)&&(D=C.headers.get("content-type"))&&d.setContentType(D),C.body){const[Ae,oe]=Ge(O,K(Ke(u)));r=Ze(C.body,nt,Ae,oe)}}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 v=me&&(l==="stream"||l==="response");if(me&&(c||v&&h)){const C={};["status","statusText","headers"].forEach(ht=>{C[ht]=y[ht]});const D=a.toFiniteNumber(y.headers.get("content-length")),[Ae,oe]=c&&Ge(D,K(Ke(c),!0))||[];y=new Response(Ze(y.body,nt,Ae,()=>{oe&&oe(),h&&h()}),C)}l=l||"text";let z=await Q[a.findKey(Q,l)||"text"](y,t);return!v&&h&&h(),await new Promise((C,D)=>{Je(C,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,ot={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];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;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=e?s.length>1?`since :
|
4
|
-
`+
|
5
|
-
`):" "+rt(
|
6
|
-
`+s):r.stack=s}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:o,headers:s}=n;r!==void 0&&Z.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:Z.assertOptions(o,{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=s&&a.merge(s.common,s[n.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),n.headers=A.concat(i,s);const c=[];let u=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(u=u&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const l=[];this.interceptors.response.forEach(function(f){l.push(f.fulfilled,f.rejected)});let d,p=0,_;if(!u){const f=[st.bind(this),void 0];for(f.unshift.apply(f,c),f.push.apply(f,l),_=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=st.call(this,m)}catch(f){return Promise.reject(f)}for(p=0,_=l.length;p<_;)d=d.then(l[p++],l[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,o,s){return this.request(P(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}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(o){n=o});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(o,s,i){r.reason||(r.reason=new U(o,s,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=ot.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,o,s,i,c,u,l,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} `),(s=(o=t.response)==null?void 0:o.data)!=null&&s.message?_+=`${t.response.data.message}`:(c=(i=t.response)==null?void 0:i.data)!=null&&c.exception?_+=`${t.response.data.exception}`:(d=(l=(u=t.response)==null?void 0:u.data)==null?void 0:l.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:o,noAuth:s=!1,noScope:i=!1,onUploadProgress:c=!1}={}){if(!s){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}o.Authorization=localStorage.openc3Token}return o.manual=!0,!i&&!r.scope&&(r.scope=window.openc3Scope),we({method:t,url:e,data:n,params:r,headers:o,onUploadProgress:c})},Se={Accept:"application/json"},lt={...Se,"Content-Type":"application/json"},or=se("n",{get:function(t,{params:e,headers:n=Se,noScope:r,noAuth:o,onUploadProgress:s}={}){return ee("get",t,{params:e,headers:n,noScope:r,noAuth:o,onUploadProgress:s})},put:function(t,{data:e,params:n,headers:r=lt,noScope:o,noAuth:s,onUploadProgress:i}={}){return ee("put",t,{data:e,params:n,headers:r,noScope:o,noAuth:s,onUploadProgress:i})},post:function(t,{data:e,params:n,headers:r=lt,noScope:o,noAuth:s,onUploadProgress:i}={}){return ee("post",t,{data:e,params:n,headers:r,noScope:o,noAuth:s,onUploadProgress:i})},delete:function(t,{params:e,headers:n=Se,noScope:r,noAuth:o,onUploadProgress:s}={}){return ee("delete",t,{params:e,headers:n,noScope:r,noAuth:o,onUploadProgress:s})}});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)),o=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*r*(1+o)}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 ut={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}=ut,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:o,type:s}=JSON.parse(t.data);switch(s){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:o});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,o=typeof r=="object"?r:{channel:r},s=new Gn(this.consumer,o,n);return this.add(s)}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 o;return typeof e=="string"?o=this.findAll(e):o=[e],o.map(s=>typeof s[n]=="function"?s[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")||ut.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={},o={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(s=>{if(s&&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,...o},r)})}recordPing(){this._cable.connection.monitor.recordPing()}}se("s",tr);class nr{constructor(){mt(this,"id",1)}async exec(e,n,r={},o={},s=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,o.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",...o},timeout:s})).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,o=30){const s=await this.exec("get_tlm_packet",[e,n],{type:r,stale_time:o});if(s!=null){let i=s.length,c=null;for(let u=0;u<i;u++)c=this.decode_openc3_type(s[u][1]),c!==null&&(s[u][1]=c)}return s}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 o={stale_time:n};r!==null&&(o.cache_timeout=r);const s=await this.exec("get_tlm_values",[e],o,{},1e4);let i=s[0].length,c=null;for(let u=0;u<i;u++)c=this.decode_openc3_type(s[0][u]),c!==null&&(s[0][u]=c);return s}get_limits(e,n,r){return this.exec("get_limits",[e,n,r])}async tlm(e,n,r,o="CONVERTED"){let s=null;if(n===void 0)s=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))s=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 s=await this.exec("tlm",[e,n,r],{type:o});let i=this.decode_openc3_type(s);return i!==null&&(s=i),s}async inject_tlm(e,n,r=null,o="CONVERTED"){data=await this.exec("inject_tlm",[e,n,r],{type:o})}set_tlm(e,n,r,o){return this.exec("set_tlm",[e,n,r],{type:o})}override_tlm(e,n,r,o){return this.exec("override_tlm",[e,n,r],{type:o})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,r,o){return this.exec("normalize_tlm",[e,n,r],{type:o})}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,o="CONVERTED"){return this.exec("get_cmd_value",[e,n,r,o])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,r,o,s){let i=null;for(let c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i=this.encode_openc3_type(o[c]),i!==null&&(o[c]=i));return this.exec(e,[n,r,o],{},s)}get_cmd_hazardous(e,n,r,o={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},o):this._cmd("get_cmd_hazardous",e,n,r,o)}cmd(e,n,r,o={}){return n===void 0?this.exec("cmd",e,{},o):this._cmd("cmd",e,n,r,o)}cmd_no_range_check(e,n,r,o={}){return n===void 0?this.exec("cmd_no_range_check",e,{},o):this._cmd("cmd_no_range_check",e,n,r,o)}cmd_raw(e,n,r,o={}){return n===void 0?this.exec("cmd_raw",e,{},o):this._cmd("cmd_raw",e,n,r,o)}cmd_raw_no_range_check(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},o):this._cmd("cmd_raw_no_range_check",e,n,r,o)}cmd_no_hazardous_check(e,n,r,o={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},o):this._cmd("cmd_no_hazardous_check",e,n,r,o)}cmd_no_checks(e,n,r,o={}){return n===void 0?this.exec("cmd_no_checks",e,{},o):this._cmd("cmd_no_checks",e,n,r,o)}cmd_raw_no_hazardous_check(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},o):this._cmd("cmd_raw_no_hazardous_check",e,n,r,o)}cmd_raw_no_checks(e,n,r,o={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},o):this._cmd("cmd_raw_no_checks",e,n,r,o)}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),o=new Uint8Array(r);return Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join("")}}}se("i",nr)}}});
|
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)}}});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc3-cosmos-tool-cmdtlmserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Melton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: " This plugin adds the OpenC3 COSMOS CmdTlmServer Tool\n"
|
15
15
|
email:
|
@@ -23,81 +23,81 @@ files:
|
|
23
23
|
- README.md
|
24
24
|
- Rakefile
|
25
25
|
- plugin.txt
|
26
|
-
- tools/cmdtlmserver/ArrayWidget-
|
27
|
-
- tools/cmdtlmserver/BarColumn-
|
28
|
-
- tools/cmdtlmserver/BlockWidget-
|
29
|
-
- tools/cmdtlmserver/ButtonWidget-
|
30
|
-
- tools/cmdtlmserver/CanvasWidget-
|
31
|
-
- tools/cmdtlmserver/CanvasdotWidget-
|
32
|
-
- tools/cmdtlmserver/CanvasimageWidget-
|
33
|
-
- tools/cmdtlmserver/CanvasimagevalueWidget-
|
34
|
-
- tools/cmdtlmserver/CanvaslabelWidget-
|
35
|
-
- tools/cmdtlmserver/CanvaslabelvalueWidget-
|
36
|
-
- tools/cmdtlmserver/CanvaslineWidget-
|
37
|
-
- tools/cmdtlmserver/CanvaslinevalueWidget-
|
38
|
-
- tools/cmdtlmserver/CheckbuttonWidget-
|
39
|
-
- tools/cmdtlmserver/CmdPacketsTab-
|
40
|
-
- tools/cmdtlmserver/CmdTlmServer-
|
41
|
-
- tools/cmdtlmserver/ComboboxWidget-
|
42
|
-
- tools/cmdtlmserver/DateWidget-
|
43
|
-
- tools/cmdtlmserver/DetailsDialog-
|
44
|
-
- tools/cmdtlmserver/DynamicWidget-m9EliUR2-
|
45
|
-
- tools/cmdtlmserver/FormatvalueWidget-
|
46
|
-
- tools/cmdtlmserver/GraphWidget-
|
47
|
-
- tools/cmdtlmserver/HorizontalWidget-
|
48
|
-
- tools/cmdtlmserver/HorizontalboxWidget-
|
49
|
-
- tools/cmdtlmserver/HorizontallineWidget-BdlNB951-
|
50
|
-
- tools/cmdtlmserver/IframeWidget-
|
51
|
-
- tools/cmdtlmserver/ImageLoader-
|
52
|
-
- tools/cmdtlmserver/ImageviewerWidget-
|
53
|
-
- tools/cmdtlmserver/InterfacesTab-
|
54
|
-
- tools/cmdtlmserver/LabelWidget-
|
55
|
-
- tools/cmdtlmserver/LabelledWidget-
|
56
|
-
- tools/cmdtlmserver/LabelprogressbarWidget-
|
57
|
-
- tools/cmdtlmserver/LabelsparklineWidget-
|
58
|
-
- tools/cmdtlmserver/LabelvalueWidget-
|
59
|
-
- tools/cmdtlmserver/LabelvaluedescWidget-
|
60
|
-
- tools/cmdtlmserver/LabelvaluelimitsbarWidget-
|
61
|
-
- tools/cmdtlmserver/LabelvaluelimitscolumnWidget-
|
62
|
-
- tools/cmdtlmserver/LabelvaluerangebarWidget-
|
63
|
-
- tools/cmdtlmserver/Layout-
|
64
|
-
- tools/cmdtlmserver/LedWidget-
|
65
|
-
- tools/cmdtlmserver/LimitsbarWidget-
|
66
|
-
- tools/cmdtlmserver/LimitscolorWidget-
|
67
|
-
- tools/cmdtlmserver/LimitscolumnWidget-
|
68
|
-
- tools/cmdtlmserver/LinegraphWidget-
|
69
|
-
- tools/cmdtlmserver/MatrixbycolumnsWidget-
|
70
|
-
- tools/cmdtlmserver/ProgressbarWidget-
|
71
|
-
- tools/cmdtlmserver/RadiobuttonWidget-
|
72
|
-
- tools/cmdtlmserver/RadiogroupWidget-
|
73
|
-
- tools/cmdtlmserver/RangebarWidget-
|
74
|
-
- tools/cmdtlmserver/RawDialog-
|
75
|
-
- tools/cmdtlmserver/RollupWidget-
|
76
|
-
- tools/cmdtlmserver/RoutersTab-
|
77
|
-
- tools/cmdtlmserver/ScrollwindowWidget-
|
78
|
-
- tools/cmdtlmserver/SignalWidget-
|
79
|
-
- tools/cmdtlmserver/SpacerWidget-
|
80
|
-
- tools/cmdtlmserver/SparklineWidget-
|
81
|
-
- tools/cmdtlmserver/StatusTab-
|
82
|
-
- tools/cmdtlmserver/TabbookWidget-
|
83
|
-
- tools/cmdtlmserver/TargetsTab-
|
84
|
-
- tools/cmdtlmserver/TextboxWidget-
|
85
|
-
- tools/cmdtlmserver/TextfieldWidget-
|
86
|
-
- tools/cmdtlmserver/TimeWidget-
|
87
|
-
- tools/cmdtlmserver/TitleWidget-
|
88
|
-
- tools/cmdtlmserver/TlmPacketsTab-
|
89
|
-
- tools/cmdtlmserver/Updater-
|
90
|
-
- tools/cmdtlmserver/VWidget-
|
91
|
-
- tools/cmdtlmserver/ValueWidget-
|
92
|
-
- tools/cmdtlmserver/ValuelimitsbarWidget-
|
93
|
-
- tools/cmdtlmserver/ValuelimitscolumnWidget-
|
94
|
-
- tools/cmdtlmserver/ValuerangebarWidget-
|
95
|
-
- tools/cmdtlmserver/VerticalWidget-
|
96
|
-
- tools/cmdtlmserver/VerticalboxWidget-
|
97
|
-
- tools/cmdtlmserver/Widget-
|
98
|
-
- tools/cmdtlmserver/main-
|
26
|
+
- tools/cmdtlmserver/ArrayWidget-DBpEoQ1y-84132d15e020efa0adf1.js
|
27
|
+
- tools/cmdtlmserver/BarColumn-B6tCmNJm-6eff86fdc1e74ef6f1c9.js
|
28
|
+
- tools/cmdtlmserver/BlockWidget-Bmi0UcUW-c8722bb58622a8814b0b.js
|
29
|
+
- tools/cmdtlmserver/ButtonWidget-CHrHS_Bw-70e879d3bbdf933eb10a.js
|
30
|
+
- tools/cmdtlmserver/CanvasWidget-BqdyLbQz-184dc2d3c4b6c7ab6bf0.js
|
31
|
+
- tools/cmdtlmserver/CanvasdotWidget-YYwca104-4fffaf81ed40b0efed4b.js
|
32
|
+
- tools/cmdtlmserver/CanvasimageWidget-BrYlPQCf-c9b4b7ca9e5b29f12d09.js
|
33
|
+
- tools/cmdtlmserver/CanvasimagevalueWidget-HnEOXmZy-5583c55cf5bbdfadba5d.js
|
34
|
+
- tools/cmdtlmserver/CanvaslabelWidget-BfMHNei--81068b9cfc5ea4370382.js
|
35
|
+
- tools/cmdtlmserver/CanvaslabelvalueWidget-0zRDJav3-293602564dbb12cd36fd.js
|
36
|
+
- tools/cmdtlmserver/CanvaslineWidget-BmOwJP_G-b2f20a0461abbe1c4aec.js
|
37
|
+
- tools/cmdtlmserver/CanvaslinevalueWidget-H3L1aUKM-6eb08878d7d5720ce613.js
|
38
|
+
- tools/cmdtlmserver/CheckbuttonWidget-BnT9X7wE-5f6d8077e8d80b62862c.js
|
39
|
+
- tools/cmdtlmserver/CmdPacketsTab-1174eeae24f567559f43.js
|
40
|
+
- tools/cmdtlmserver/CmdTlmServer-909a975f2c448b6dfdd9.js
|
41
|
+
- tools/cmdtlmserver/ComboboxWidget-BykAAoxH-b67d237b4347e57c1776.js
|
42
|
+
- tools/cmdtlmserver/DateWidget-FtYD86xW-eee42f7093a7d5232e7e.js
|
43
|
+
- tools/cmdtlmserver/DetailsDialog-DiVcC3Fg-926dc00ae99f202f7bbb.js
|
44
|
+
- tools/cmdtlmserver/DynamicWidget-m9EliUR2-b792f7d3791995de4557.js
|
45
|
+
- tools/cmdtlmserver/FormatvalueWidget-OykwwCrw-ec440c1e59a54a11e1c0.js
|
46
|
+
- tools/cmdtlmserver/GraphWidget-BohHW-97-79648f0f5f760947a337.js
|
47
|
+
- tools/cmdtlmserver/HorizontalWidget-B7YdcFVN-1adf1fbb47940ffc2bbb.js
|
48
|
+
- tools/cmdtlmserver/HorizontalboxWidget-D-kCNwI3-d5280f31e632d3a19530.js
|
49
|
+
- tools/cmdtlmserver/HorizontallineWidget-BdlNB951-97bac9ec958ae9185006.js
|
50
|
+
- tools/cmdtlmserver/IframeWidget-0C7GYEVc-7d9db206f561f13924bb.js
|
51
|
+
- tools/cmdtlmserver/ImageLoader-y6fAZe9P-32c5109a53a2e67d4546.js
|
52
|
+
- tools/cmdtlmserver/ImageviewerWidget-B4HbUIfR-cc56d18d351a216f45dc.js
|
53
|
+
- tools/cmdtlmserver/InterfacesTab-1a220be708030742672f.js
|
54
|
+
- tools/cmdtlmserver/LabelWidget-D1JhQAzR-637ca102152e7cb0159f.js
|
55
|
+
- tools/cmdtlmserver/LabelledWidget-C2VGJ5OJ-63324f13b32cbd3d1e09.js
|
56
|
+
- tools/cmdtlmserver/LabelprogressbarWidget-DN0cAeLK-9414ccaa3c0bd5213eaf.js
|
57
|
+
- tools/cmdtlmserver/LabelsparklineWidget--sxBENxs-9bbfaf33dcea3a9a4163.js
|
58
|
+
- tools/cmdtlmserver/LabelvalueWidget-BWpP5KX6-e70143eae4825e3ca295.js
|
59
|
+
- tools/cmdtlmserver/LabelvaluedescWidget-DtJwggDu-297f5e4f5cdd4e997a84.js
|
60
|
+
- tools/cmdtlmserver/LabelvaluelimitsbarWidget-Bj6UVK-5-d0e6cb1105035131b388.js
|
61
|
+
- tools/cmdtlmserver/LabelvaluelimitscolumnWidget-BVcEEcUx-5ffbd14ed49f43d1a770.js
|
62
|
+
- tools/cmdtlmserver/LabelvaluerangebarWidget-DCJ42bmf-951b68255fe130b397b4.js
|
63
|
+
- tools/cmdtlmserver/Layout-D4YBjuWs-d949f0668cb092f7f268.js
|
64
|
+
- tools/cmdtlmserver/LedWidget-hN9JHxjr-d3630538860ea110829a.js
|
65
|
+
- tools/cmdtlmserver/LimitsbarWidget-D-wfz_St-71b4065ff350d86e47f1.js
|
66
|
+
- tools/cmdtlmserver/LimitscolorWidget-B0AVGdkz-8af3823cc815001ee996.js
|
67
|
+
- tools/cmdtlmserver/LimitscolumnWidget-Dt5ce4hN-4bf9236958883e049ac5.js
|
68
|
+
- tools/cmdtlmserver/LinegraphWidget-CTjtvtPd-3472bcb2292fccce0780.js
|
69
|
+
- tools/cmdtlmserver/MatrixbycolumnsWidget-wLx4NvXV-789df70ba148ac45d935.js
|
70
|
+
- tools/cmdtlmserver/ProgressbarWidget-B7l0BBiX-28bb09016921e507b157.js
|
71
|
+
- tools/cmdtlmserver/RadiobuttonWidget-B032jKIw-751b0da1a0eac1f428eb.js
|
72
|
+
- tools/cmdtlmserver/RadiogroupWidget-Busjqikr-fdbbff7df3b152de9174.js
|
73
|
+
- tools/cmdtlmserver/RangebarWidget-DbYrwEfC-672c02ff8fc7508bbfe0.js
|
74
|
+
- tools/cmdtlmserver/RawDialog-3ba881626e2141cf6261.js
|
75
|
+
- tools/cmdtlmserver/RollupWidget-rKxLXuCv-84804fdfa2a67e0c586f.js
|
76
|
+
- tools/cmdtlmserver/RoutersTab-821ac863905d6fc1f0f3.js
|
77
|
+
- tools/cmdtlmserver/ScrollwindowWidget-D4NKIzQO-e7fc825a7640800925b3.js
|
78
|
+
- tools/cmdtlmserver/SignalWidget-h-oivReC-a52944079f1106d5b9e8.js
|
79
|
+
- tools/cmdtlmserver/SpacerWidget-BSy9eOlB-d21cb40c89cf46239df2.js
|
80
|
+
- tools/cmdtlmserver/SparklineWidget-C9vdxar--5fe9233f121a11766f79.js
|
81
|
+
- tools/cmdtlmserver/StatusTab-4f20ea8483d65cd2f43f.js
|
82
|
+
- tools/cmdtlmserver/TabbookWidget-DTFTKURm-8a001c50117950e4dff3.js
|
83
|
+
- tools/cmdtlmserver/TargetsTab-45e297b994fc5f0d21d0.js
|
84
|
+
- tools/cmdtlmserver/TextboxWidget-BZyYHmBq-69732416c05b62947a52.js
|
85
|
+
- tools/cmdtlmserver/TextfieldWidget-aVRdXRsT-6158511014a61f90ddea.js
|
86
|
+
- tools/cmdtlmserver/TimeWidget-BE2rtMxg-26adb974402be26d1aaf.js
|
87
|
+
- tools/cmdtlmserver/TitleWidget-BB29MZb2-2f453a7f1f364727debd.js
|
88
|
+
- tools/cmdtlmserver/TlmPacketsTab-b9aab218beb2e197b269.js
|
89
|
+
- tools/cmdtlmserver/Updater-6f453064b0e1f1f5fb0e.js
|
90
|
+
- tools/cmdtlmserver/VWidget-CGdM4sTw-a078921174583b0d9185.js
|
91
|
+
- tools/cmdtlmserver/ValueWidget-h3905woQ-9b7964d625c1c99b145b.js
|
92
|
+
- tools/cmdtlmserver/ValuelimitsbarWidget-LMXYjWtS-c85b0d0fb89533be596b.js
|
93
|
+
- tools/cmdtlmserver/ValuelimitscolumnWidget-gA3ZcfAT-faa7e73a393653ce138d.js
|
94
|
+
- tools/cmdtlmserver/ValuerangebarWidget-DwZ9KQ0O-1b288730ccf9a87d6d8f.js
|
95
|
+
- tools/cmdtlmserver/VerticalWidget-DziyURNu-750d852c42a2d5f2f703.js
|
96
|
+
- tools/cmdtlmserver/VerticalboxWidget-OcoZBsFU-b0a8579fcda69ee76cfc.js
|
97
|
+
- tools/cmdtlmserver/Widget-C7ms_xDE-bce61b3f1521054f57a4.js
|
98
|
+
- tools/cmdtlmserver/main-fcf5991e219cb9464cd3.js
|
99
99
|
- tools/cmdtlmserver/main.js
|
100
|
-
- tools/cmdtlmserver/services-
|
100
|
+
- tools/cmdtlmserver/services-d6821e5ba7167450844f.js
|
101
101
|
homepage: https://github.com/OpenC3/cosmos
|
102
102
|
licenses:
|
103
103
|
- AGPL-3.0-only
|
@@ -1,2 +0,0 @@
|
|
1
|
-
System.register(["./main-9a5b81b5417615361b70.js","vue","./DetailsDialog-DLRMqetn-ea4056f15a1003ff0665.js","single-spa","./VWidget-02CG-3Av-282fe2eacc23edb71aea.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js"],function(S,b){"use strict";var u,r,h,m,s,p,g,o,w,f,v,y,x,C,V,k;return{setters:[e=>{u=e.s},e=>{r=e.resolveComponent,h=e.openBlock,m=e.createElementBlock,s=e.createVNode,p=e.normalizeClass,g=e.normalizeStyle,o=e.withCtx,w=e.Fragment,f=e.renderList,v=e.createBlock,y=e.withModifiers,x=e.createTextVNode,C=e.toDisplayString},e=>{V=e.P},null,e=>{k=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:V},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[k],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let t="RAW";return this.parameters[9]&&(t=this.parameters[9]),t},formatValue:function(t){let a="";if(t&&t.raw){let D=" ",P=`
|
2
|
-
`,i=0,l=0;const d=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(a+=sprintf(this.addrFormat,l),l+=d),a+=sprintf(this.formatter,c),i+=1,i%d===0?(i=0,a+=P):i%this.bytesPerWord===0&&(a+=D)}else a=t;return a}}},M={class:"block-widget-container"};function W(t,a,D,P,i,l){const d=r("v-textarea"),c=r("v-list-item-title"),_=r("v-list-item"),B=r("v-list"),F=r("v-menu"),L=r("details-dialog");return h(),m("div",M,[s(d,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:l.rows,width:t.width,"model-value":t._value,class:p(t.valueClass),style:g([t.computedStyle,l.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),s(F,{modelValue:t.contextMenuShown,"onUpdate:modelValue":a[0]||(a[0]=n=>t.contextMenuShown=n),target:[t.x,t.y]},{default:o(()=>[s(B,null,{default:o(()=>[(h(!0),m(w,null,f(t.contextMenuOptions,(n,R)=>(h(),v(_,{key:R,onClick:y(n.action,["stop"])},{default:o(()=>[s(c,null,{default:o(()=>[x(C(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),s(L,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":a[1]||(a[1]=n=>t.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const z=S("default",u(e,[["render",W],["__scopeId","data-v-4d4589c2"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-C1HoM4Kl-a25fa864ced06bd30900.js","vue","./main-9a5b81b5417615361b70.js","./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue-router","single-spa","vuex","vuetify"],function(p,f){"use strict";var i,n,s,a,l,c,o,u,g;return{setters:[e=>{i=e.r},e=>{n=e.openBlock,s=e.createElementBlock,a=e.Fragment,l=e.renderList,c=e.createBlock,o=e.resolveDynamicComponent,u=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},h=["width","height"];function d(r,k,y,B,b,m){return n(),s("svg",{id:"canvas",width:m.width,height:m.height},[(n(!0),s(a,null,l(r.widgets,(t,v)=>(n(),c(o(t.type),u({ref_for:!0},r.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],8,h)}const w=p("default",g(e,[["render",d],["__scopeId","data-v-47bdfc3c"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify"],function(s,a){"use strict";var t,l,n,c;return{setters:[e=>{t=e.o},e=>{l=e.openBlock,n=e.createElementBlock},e=>{c=e.s},null,null,null,null],execute:function(){const e={mixins:[t]},u=["cx","cy","r","fill"];function i(r,m,f,p,v,x){return l(),n("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,u)}const o=s("default",c(e,[["render",i]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","./ImageLoader-CpcR6tPi-64d627c07bbe3bafc636.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify"],function(I,S){"use strict";var m,d,l,n,g,o,h,u,c,p,f;return{setters:[t=>{m=t.o},t=>{d=t.s},t=>{l=t.openBlock,n=t.createElementBlock,g=t.Fragment,o=t.renderList,h=t.withDirectives,u=t.normalizeStyle,c=t.vShow,p=t.createCommentVNode},t=>{f=t.s},null,null,null,null],execute:function(){const t={mixins:[m,d],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some(i=>i.value==this.selectedValue)},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(e=>{e[0]==="SCREEN"&&(this.screenTarget=e[1],this.screenName=e[2])}),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.$emit("addItem",this.valueId);const i=this.appliedSettings.filter(e=>e[0]==="IMAGE").map(async e=>{let r=e[2];return r.startsWith("http")||(r=await this.getPresignedUrl(r)),{url:r,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}});if(Promise.all(i).then(e=>{this.images=e}),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let r=this.parameters[4];r.startsWith("http")?this.defaultImage={...e,url:r}:this.getPresignedUrl(r).then(y=>{this.defaultImage={...e,url:y}})}},unmounted:function(){this.$emit("deleteItem",this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},v=["href","x","y","width","height"],w=["href","x","y","width","height"];function k(i,e,r,y,N,a){return l(),n("g",null,[(l(!0),n(g,null,o(i.images,s=>h((l(),n("image",{key:s.value,href:s.url,x:s.x,y:s.y,width:s.width,height:s.height,style:u(a.pointerStyle),onClick:e[0]||(e[0]=(...x)=>a.clickHandler&&a.clickHandler(...x))},null,12,v)),[[c,s.value==a.selectedValue]])),128)),i.defaultImage?h((l(),n("image",{key:0,href:i.defaultImage.url,x:i.defaultImage.x,y:i.defaultImage.y,width:i.defaultImage.width,height:i.defaultImage.height,style:u(a.pointerStyle),onClick:e[1]||(e[1]=(...s)=>a.clickHandler&&a.clickHandler(...s))},null,12,w)),[[c,a.showDefault]]):p("",!0)])}const $=I("default",f(t,[["render",k]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify"],function(i,p){"use strict";var l,s,n,a,c;return{setters:[e=>{l=e.o},e=>{s=e.openBlock,n=e.createElementBlock,a=e.normalizeStyle},e=>{c=e.s},null,null,null,null],execute:function(){const e={mixins:[l],computed:{calcStyle(){let t="black";this.parameters[4]&&(t=this.parameters[4]);let r=1;return this.parameters[5]&&(r=this.parameters[5]),"stroke:"+t+";stroke-width:"+r}}},u=["x1","y1","x2","y2"];function o(t,r,k,x,f,m){return s(),n("line",{x1:t.parameters[0],y1:t.parameters[1],x2:t.parameters[2],y2:t.parameters[3],style:a(m.calcStyle)},null,12,u)}const y=i("default",c(e,[["render",o]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify"],function(u,o){"use strict";var s,r,l,i,n;return{setters:[t=>{s=t.o},t=>{r=t.openBlock,l=t.createElementBlock,i=t.normalizeStyle},t=>{n=t.s},null,null,null,null],execute:function(){const t={mixins:[s],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screenValues[this.valueId]&&(e=this.valueMap[this.screenValues[this.valueId][0]]);let a=1;return this.parameters[7]&&(a=this.parameters[7]),"stroke:"+e+";stroke-width:"+a}},created(){this.appliedSettings.forEach(a=>{a[0]==="VALUE_EQ"&&(this.valueMap[a[1]]=a[2])});let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},c=["x1","y1","x2","y2"];function m(e,a,d,v,y,h){return r(),l("line",{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6],style:i(h.calcStyle)},null,12,c)}const p=u("default",n(t,[["render",m]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify"],function(c,h){"use strict";var t,n,a,s,o,r;return{setters:[e=>{t=e.o},e=>{n=e.resolveComponent,a=e.openBlock,s=e.createBlock,o=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function i(d,u,k,y,l,b){const m=n("v-checkbox");return a(),s(m,{"hide-details":"",density:"compact",label:l.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=v=>l.value=v),style:o(d.computedStyle)},null,8,["label","modelValue","style"])}const p=c("default",r(e,[["render",i]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","./ValueWidget-KLYY8L8U-1c6337a11d8ce971b16e.js","vue","./main-9a5b81b5417615361b70.js","./DetailsDialog-DLRMqetn-ea4056f15a1003ff0665.js","single-spa","./VWidget-02CG-3Av-282fe2eacc23edb71aea.js","vue-router","vuex","vuetify"],function(m,v){"use strict";var r,s,n,a,l,i,o,c,u;return{setters:[e=>{r=e.o},e=>{s=e.default},e=>{n=e.resolveComponent,a=e.openBlock,l=e.createElementBlock,i=e.normalizeStyle,o=e.createVNode,c=e.mergeProps},e=>{u=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[r],components:{ValueWidget:s},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}};function p(t,h,y,V,j,g){const d=n("value-widget");return a(),l("div",{ref:"container",class:"d-flex flex-row",style:i(t.computedStyle)},[o(d,c(t.$attrs,{parameters:g.getParameters,settings:t.appliedSettings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"format-string":t.parameters[3]}),null,16,["parameters","settings","screen-values","screen-time-zone","format-string"])],4)}const f=m("default",u(e,[["render",p]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./HorizontalWidget-CirtfuL8-e382a5357367b10cc6e4.js","./Layout-C1HoM4Kl-a25fa864ced06bd30900.js","vue","./main-9a5b81b5417615361b70.js","./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue-router","single-spa","vuex","vuetify"],function(m,x){"use strict";var r,i,n,l,o,s,a,c,u,p,g,d;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{n=e.resolveComponent,l=e.openBlock,o=e.createElementBlock,s=e.createVNode,a=e.normalizeStyle,c=e.withCtx,u=e.createTextVNode,p=e.toDisplayString,g=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],components:{HorizontalWidget:r}};function v(t,w,C,S,V,b){const y=n("v-banner"),f=n("horizontal-widget");return l(),o("div",null,[s(y,{class:"boxbanner",style:a(t.computedStyle),"single-line":""},{default:c(()=>[u(p(t.parameters[0]),1)]),_:1},8,["style"]),s(f,g(t.listeners,{parameters:t.parameters.slice(1),settings:t.appliedSettings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"screen-id":t.screenId}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone","screen-id"])])}const z=m("default",d(e,[["render",v],["__scopeId","data-v-e9e6c14b"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify"],function(h,c){"use strict";var i,n,r,s,l;return{setters:[e=>{i=e.o},e=>{n=e.openBlock,r=e.createElementBlock,s=e.normalizeStyle},e=>{l=e.s},null,null,null,null],execute:function(){const e={mixins:[i],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},u=["src","width","height"];function a(t,d,m,g,p,f){return n(),r("iframe",{title:"IFrameWidget",src:t.parameters[0],width:t.width,height:t.height,style:s(t.computedStyle)},null,12,u)}const o=h("default",l(e,[["render",a]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","./LabelWidget-BDsypYho-642c12a9e82c6fda4515.js","./ProgressbarWidget-DpA_-vy9-532c600c1f7577d1401a.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify"],function(g,v){"use strict";var n,l,a,s,o,i,c,r,u,p;return{setters:[e=>{n=e.o},e=>{l=e.default},e=>{a=e.default},e=>{s=e.resolveComponent,o=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,r=e.createVNode,u=e.mergeProps},e=>{p=e.s},null,null,null,null],execute:function(){const e={mixins:[n],components:{LabelWidget:l,ProgressbarWidget:a},computed:{labelName(){return[this.parameters[2]+":"]}}};function d(t,S,x,w,B,m){const y=s("label-widget"),f=s("progressbar-widget");return o(),i("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[r(y,{parameters:m.labelName,settings:[...t.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),r(f,u(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,style:t.computedStyle,"widget-index":1}),null,16,["parameters","settings","screen-values","style"])],4)}const b=g("default",p(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","./LabelWidget-BDsypYho-642c12a9e82c6fda4515.js","./SparklineWidget-DMvMQCPm-f269f9c87f957b329bed.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify","./GraphWidget-amwxyH1r-ac89940777c22d7746b3.js"],function(m,f){"use strict";var r,i,a,l,o,u,n,s,p;return{setters:[e=>{r=e.o},e=>{i=e.default},e=>{a=e.default},e=>{l=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,n=e.normalizeStyle,s=e.createVNode},e=>{p=e.s},null,null,null,null,null],execute:function(){const e={mixins:[r],components:{LabelWidget:i,SparklineWidget:a},computed:{labelName(){return[this.parameters[2]+":"]}}};function c(t,b,v,x,k,d){const g=l("label-widget"),y=l("sparkline-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:n(t.computedStyle)},[s(g,{parameters:d.labelName,settings:[...t.appliedSettings],line:t.line,lineNumber:t.lineNumber,"widget-index":0},null,8,["parameters","settings","line","lineNumber"]),s(y,{parameters:t.parameters,settings:[...t.appliedSettings],style:n(t.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const S=m("default",p(e,[["render",c]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","./LabelWidget-BDsypYho-642c12a9e82c6fda4515.js","./ValueWidget-KLYY8L8U-1c6337a11d8ce971b16e.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify","./DetailsDialog-DLRMqetn-ea4056f15a1003ff0665.js","./VWidget-02CG-3Av-282fe2eacc23edb71aea.js"],function(g,f){"use strict";var s,l,a,n,i,u,o,r,m,c;return{setters:[e=>{s=e.o},e=>{l=e.default},e=>{a=e.default},e=>{n=e.resolveComponent,i=e.openBlock,u=e.createElementBlock,o=e.normalizeStyle,r=e.createVNode,m=e.mergeProps},e=>{c=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[s],components:{LabelWidget:l,ValueWidget:a},computed:{labelName(){let t=this.parameters[2];return t.includes("[[")&&(t=t.replace("[[","[").replace("]]","]")),[t+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}};function d(t,x,y,S,V,p){const v=n("label-widget"),b=n("value-widget");return i(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[r(v,{parameters:p.labelName,settings:[...t.appliedSettings],line:t.line,"line-number":t.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),r(b,m(t.$attrs,{parameters:p.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,line:t.line,"line-number":t.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const h=g("default",c(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./LabelWidget-BDsypYho-642c12a9e82c6fda4515.js","./ValueWidget-KLYY8L8U-1c6337a11d8ce971b16e.js","./LimitscolumnWidget-BfY4su5U-f366ea17283d53231bcc.js","./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue","./main-9a5b81b5417615361b70.js","vue-router","single-spa","vuex","vuetify","./DetailsDialog-DLRMqetn-ea4056f15a1003ff0665.js","./VWidget-02CG-3Av-282fe2eacc23edb71aea.js","./BarColumn-Cdu3OoMa-c782b2168b94ee7b1c5a.js"],function(d,W){"use strict";var i,r,a,u,n,o,c,m,s,l,g;return{setters:[e=>{i=e.default},e=>{r=e.default},e=>{a=e.default},e=>{u=e.o},e=>{n=e.resolveComponent,o=e.openBlock,c=e.createElementBlock,m=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{g=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[u],components:{LabelWidget:i,ValueWidget:r,LimitscolumnWidget:a}};function p(t,w,V,b,y,B){const v=n("label-widget"),f=n("limitscolumn-widget"),S=n("value-widget");return o(),c("div",{ref:"container",style:m(t.computedStyle)},[s(v,{parameters:[t.parameters[2]],settings:[...t.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),s(f,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":2,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(S,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const j=d("default",g(e,[["render",p]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-C1HoM4Kl-a25fa864ced06bd30900.js","./main-9a5b81b5417615361b70.js","vue","./Widget-C4QVI4IH-8eb3ea2c769d216e1508.js","vue-router","single-spa","vuex","vuetify"],function(f,B){"use strict";var o,u,m,n,r,g,l,a,p,d,y;return{setters:[e=>{o=e.r},e=>{u=e.s,m=e.K},e=>{n=e.openBlock,r=e.createElementBlock,g=e.normalizeStyle,l=e.Fragment,a=e.renderList,p=e.createBlock,d=e.resolveDynamicComponent,y=e.mergeProps},null,null,null,null,null],execute:function(){const e={mixins:[o],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return m.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let s=this.parameters[1];this.widgets.forEach(c=>{c.settings.find(i=>i[0]==="MARGIN"||i[0]==="RAW"&&i[1].toUpperCase().includes("MARGIN"))===void 0&&c.settings.push(["MARGIN",s])})}}};function h(s,c,i,b,A,k){return n(),r("table",{style:g(s.computedStyle),role:"presentation"},[(n(!0),r(l,null,a(k.widgetChunks,(v,C)=>(n(),r("tr",{key:"r"+C},[(n(!0),r(l,null,a(v,(t,w)=>(n(),r("td",{key:"c"+w},[(n(),p(d(t.type),y({ref_for:!0},s.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":s.screenValues,"screen-time-zone":s.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]))),128))]))),128))],4)}const I=f("default",u(e,[["render",h]]))}}});
|