openc3-cosmos-tool-cmdtlmserver 6.0.1 → 6.1.0
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-DzHELdHv-1cfde870ea63d4573d20.js +2 -0
- data/tools/cmdtlmserver/ArrayplotWidget-BDvziGSm-e2d9fd0c66b39266dc7c.js +1 -0
- data/tools/cmdtlmserver/{BarColumn-Cdu3OoMa-c782b2168b94ee7b1c5a.js → BarColumn-CNhS2KKq-767c9486a4e443c42bc7.js} +1 -1
- data/tools/cmdtlmserver/{BlockWidget-PmjzrkXF-877fd89adeda71f65d12.js → BlockWidget-D0On4x3d-54b0f07404fece73b33e.js} +2 -2
- data/tools/cmdtlmserver/{ButtonWidget-nwDlOBJT-47c3fd49f7fe11027319.js → ButtonWidget-BOYLHMt4-6ab7fb97fe052d8802a6.js} +2 -2
- data/tools/cmdtlmserver/{CanvasWidget-BL8930eT-51040855b4e007ab5d2b.js → CanvasWidget-CQIqiLEy-8134fbc55f313a763f32.js} +1 -1
- data/tools/cmdtlmserver/CanvasdotWidget-BVWutPMF-f506e882c3236b53896a.js +1 -0
- data/tools/cmdtlmserver/{CanvasimageWidget-BIw7Wbf2-ccaadc84310305b8724c.js → CanvasimageWidget-ayu_ASKf-7b3ed2be4b78024a32e9.js} +1 -1
- data/tools/cmdtlmserver/CanvasimagevalueWidget-mv319g5T-deaaf709ef21cf5db0e9.js +1 -0
- data/tools/cmdtlmserver/CanvaslabelWidget-BNjbXDb8-8ceda00adbbd3da999d4.js +1 -0
- data/tools/cmdtlmserver/{CanvaslabelvalueWidget-CI3yYwFs-dc94a676241ddd24df6a.js → CanvaslabelvalueWidget-CrhPwTSP-44116d33f8a81a77b89e.js} +1 -1
- data/tools/cmdtlmserver/CanvaslineWidget--HdKH6oO-72eb687891a0213a981a.js +1 -0
- data/tools/cmdtlmserver/{CanvaslinevalueWidget-CI-Bbzfi-526c06fb122282240d11.js → CanvaslinevalueWidget-CJsuF6RY-ce76d2dccf8f9edc4699.js} +1 -1
- data/tools/cmdtlmserver/CheckbuttonWidget-CQ2HlgIk-c98446c9ffe1e6405baa.js +1 -0
- data/tools/cmdtlmserver/{CmdPacketsTab-eb1fa49f7541f717295c.js → CmdPacketsTab-2c0c4903f7cd5e2d492f.js} +1 -1
- data/tools/cmdtlmserver/{CmdTlmServer-774dde4622e0b08dc844.js → CmdTlmServer-d13edb0abf2c53a5bcbf.js} +2 -2
- data/tools/cmdtlmserver/ComboboxWidget-BxILACwz-cfb4c1ffd4cb57d959ac.js +1 -0
- data/tools/cmdtlmserver/{DateWidget-B5R_9rA8-9872c5984c6fbe955d2c.js → DateWidget-CIkO0xqH-d3da4940b3f961694415.js} +1 -1
- data/tools/cmdtlmserver/{DetailsDialog-DLRMqetn-ea4056f15a1003ff0665.js → DetailsDialog-DyGpm5TP-c2adbdd157ab5f884f6f.js} +1 -1
- data/tools/cmdtlmserver/{DynamicWidget-m9EliUR2-32e2fa24ad4f0cfcceff.js → DynamicWidget-gFSYxzvT-c7ac8d6e5d3f41824765.js} +1 -1
- data/tools/cmdtlmserver/{FormatvalueWidget-DZkRJce8-fa00fba21c8fe46f41dc.js → FormatvalueWidget-D8-EO_3E-2503055f4eccb3a4b79e.js} +1 -1
- data/tools/cmdtlmserver/Graph-EV7oK3qM-f7f07aa312f5934b97f9.js +1 -0
- data/tools/cmdtlmserver/GraphWidget-BTNYbd21-fbea3cc94b9a4190d464.js +1 -0
- data/tools/cmdtlmserver/{HorizontalWidget-CirtfuL8-e382a5357367b10cc6e4.js → HorizontalWidget-Bp-qtqoh-5637173d360666d3182e.js} +1 -1
- data/tools/cmdtlmserver/{HorizontalboxWidget-CyTDt2nl-cc6db1e0fac4003a9b6b.js → HorizontalboxWidget-CrJuGY3s-e2fe9300840c97ddddef.js} +1 -1
- data/tools/cmdtlmserver/HorizontallineWidget-CbxREBYI-61a8a8088971c3f08034.js +1 -0
- data/tools/cmdtlmserver/IframeWidget-DusiWNNj-32cb5541afdd5fe67f67.js +1 -0
- data/tools/cmdtlmserver/ImageLoader-BapCB-Li-f461eddb2af2e265fd48.js +1 -0
- data/tools/cmdtlmserver/{ImageviewerWidget-DIkmb_C9-28636a49486b47368c8f.js → ImageviewerWidget-c0gJ9VDC-5af6501486a08bc8532e.js} +1 -1
- data/tools/cmdtlmserver/{InterfacesTab-099692b4beab8c926e99.js → InterfacesTab-d900a3491d1da534368e.js} +1 -1
- data/tools/cmdtlmserver/{LabelWidget-BDsypYho-642c12a9e82c6fda4515.js → LabelWidget-pPgc0ve3-a8c20e96febfb654ebbc.js} +1 -1
- data/tools/cmdtlmserver/LabelledWidget-CkNjby55-17d35c79064d8ced688b.js +1 -0
- data/tools/cmdtlmserver/LabelprogressbarWidget-e2R2yQKw-32ba7d925d5938b9e647.js +1 -0
- data/tools/cmdtlmserver/LabelsparklineWidget-D7MQ_oNw-6b2f73958f78cd48cf72.js +1 -0
- data/tools/cmdtlmserver/LabelvalueWidget-4DShBBvr-2989613328b42b690607.js +1 -0
- data/tools/cmdtlmserver/{LabelvaluedescWidget-CsUP7J4U-4c293aeade527694a600.js → LabelvaluedescWidget-Z1m8Bi6N-84bd53d94bc877e5a83b.js} +1 -1
- data/tools/cmdtlmserver/LabelvaluelimitsbarWidget-DVa-oYxU-65dac25a645be58bc69d.js +1 -0
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-DduuX632-da2af8fa3f16e0ca4bc6.js +1 -0
- data/tools/cmdtlmserver/{LabelvaluerangebarWidget-DpcXhlfF-5b5018bd879c9284f08c.js → LabelvaluerangebarWidget-BR9vXOlt-b683cd94686b6a02b94f.js} +1 -1
- data/tools/cmdtlmserver/{Layout-C1HoM4Kl-a25fa864ced06bd30900.js → Layout-Bk8EGxbP-aa19b0fb74b246a1ce88.js} +1 -1
- data/tools/cmdtlmserver/LedWidget-f7bf8ls_-dc76da1106f2ea6ba1c1.js +1 -0
- data/tools/cmdtlmserver/{LimitsbarWidget-DXbqsi4J-7dc436e5fbcba0283992.js → LimitsbarWidget-B7fHaDcJ-6401cd1dca32d9d23e9d.js} +1 -1
- data/tools/cmdtlmserver/{LimitscolorWidget-Ckmuw0YX-38605ffc3e405586bf13.js → LimitscolorWidget-CpC4D_TC-fa80d8dccfdbce9a3085.js} +1 -1
- data/tools/cmdtlmserver/{LimitscolumnWidget-BfY4su5U-f366ea17283d53231bcc.js → LimitscolumnWidget-C9FbNC-U-69b1a5ce1e37519311a9.js} +1 -1
- data/tools/cmdtlmserver/LinegraphWidget-DkWDQ_3K-a2e11e9260d6be61a562.js +1 -0
- data/tools/cmdtlmserver/MatrixbycolumnsWidget-CHJDyYa3-e7cbac8e29ec890726df.js +1 -0
- data/tools/cmdtlmserver/{ProgressbarWidget-DpA_-vy9-532c600c1f7577d1401a.js → ProgressbarWidget-CRZDxClT-97ca0eb1a7d82a61f1bf.js} +1 -1
- data/tools/cmdtlmserver/RadiobuttonWidget-BW4yFweH-303da45be9f3bc5c02ef.js +1 -0
- data/tools/cmdtlmserver/RadiogroupWidget-_0bVCHjr-21b6a6a889648dc39713.js +1 -0
- data/tools/cmdtlmserver/{RangebarWidget-DHS7S3vI-a69bd469c64d7a664045.js → RangebarWidget-CEQFiG4l-88e919bc219c10974ea9.js} +1 -1
- data/tools/cmdtlmserver/{RawDialog-a90a4b5f8d8572d4512f.js → RawDialog-4fc24b3a5134f08b5233.js} +3 -3
- data/tools/cmdtlmserver/{RollupWidget-CTk9Kjwr-7683649370d397c390a9.js → RollupWidget-579c7y0R-6dc6a63ce8ba38021e87.js} +1 -1
- data/tools/cmdtlmserver/{RoutersTab-5d08e7c9f3ba52589b7a.js → RoutersTab-bd726501304a35125437.js} +1 -1
- data/tools/cmdtlmserver/{ScrollwindowWidget-DD0TOW6s-1a3939f83a85675d4e84.js → ScrollwindowWidget-Kcre9gM3-a4242c83569b10650eb0.js} +1 -1
- data/tools/cmdtlmserver/{SignalWidget-CC33KMTW-efcb60975938ae4db5cb.js → SignalWidget-D55Myd0q-82abf10be1d381cebe25.js} +1 -1
- data/tools/cmdtlmserver/{SpacerWidget-BnJe_Hq6-b310f25a3248e49ff181.js → SpacerWidget-DBDv_w_s-1a2edb5ee70ddb76a3b2.js} +1 -1
- data/tools/cmdtlmserver/SparklineWidget-DJvIL24z-aca49e14883f617297b1.js +1 -0
- data/tools/cmdtlmserver/{StatusTab-58b1a61560ae7bee6e29.js → StatusTab-70f7f21eb7f45c574053.js} +1 -1
- data/tools/cmdtlmserver/TabbookWidget-DH9DHnp1-f9eb87a79548613c9d87.js +1 -0
- data/tools/cmdtlmserver/{TargetsTab-34eb32660daa4f41320b.js → TargetsTab-7af853e3096b44615549.js} +1 -1
- data/tools/cmdtlmserver/TextboxWidget-DCjIEzJn-1d6d9572908a65421217.js +1 -0
- data/tools/cmdtlmserver/{TextfieldWidget-DXSdgqVP-cc69d5c01bd58fd71775.js → TextfieldWidget-BRQ6oPzR-fe6ec784f241da3b1dfb.js} +1 -1
- data/tools/cmdtlmserver/{TimeWidget-DvrRaEMz-a9047ff28b5d6b011533.js → TimeWidget-pXtrK5IC-93e17a05d6ecf2eccade.js} +1 -1
- data/tools/cmdtlmserver/{TitleWidget-DqViFQl--be097b712c7b366b29ba.js → TitleWidget-CfAa2SyT-e9f3d1a8a71d4118fdd9.js} +1 -1
- data/tools/cmdtlmserver/{TlmPacketsTab-ab9ca71cbd44cc41aa54.js → TlmPacketsTab-60a107b4ac232aac2322.js} +1 -1
- data/tools/cmdtlmserver/{Updater-3608194712b19b896303.js → Updater-ebc27e8a2a7fdd687c65.js} +1 -1
- data/tools/cmdtlmserver/VWidget-CN_afCKJ-b8a49f5b611e52c35dd5.js +1 -0
- data/tools/cmdtlmserver/ValueWidget-DIFivXw_-c4ebf34840bab5aca614.js +1 -0
- data/tools/cmdtlmserver/ValuelimitsbarWidget-Cb7_SIUF-dd0cab6a7600b9eb6fc8.js +1 -0
- data/tools/cmdtlmserver/ValuelimitscolumnWidget-D8bgZ7YP-cc6ddac478a316c83821.js +1 -0
- data/tools/cmdtlmserver/{ValuerangebarWidget-B6M02a9d-35a8846604b2ee963544.js → ValuerangebarWidget-VKygtFwP-545f2608d522c90b483d.js} +1 -1
- data/tools/cmdtlmserver/VerticalWidget-BuvedA_b-b5c11afb3b194946a478.js +1 -0
- data/tools/cmdtlmserver/{VerticalboxWidget-3a9cVsW--b7245f0a2f9c2b4eb888.js → VerticalboxWidget-D_LcL3GF-ff10f59775ba060533af.js} +1 -1
- data/tools/cmdtlmserver/{Widget-C4QVI4IH-8eb3ea2c769d216e1508.js → Widget-CERFa1CU-5311b94ad21a3c7b3574.js} +1 -1
- data/tools/cmdtlmserver/main-30c8b9128a62bc0a519c.js +1422 -0
- data/tools/cmdtlmserver/main.js +1 -1
- data/tools/cmdtlmserver/services-7ecf8098cef34840e93e.js +6 -0
- metadata +78 -76
- data/tools/cmdtlmserver/ArrayWidget-BTxChSds-3cf159536429e6883c2e.js +0 -2
- data/tools/cmdtlmserver/CanvasdotWidget-VCf1fL-G-f6463321d3a30f208f07.js +0 -1
- data/tools/cmdtlmserver/CanvasimagevalueWidget-CE3Dj5bH-282f53984193d39a59ac.js +0 -1
- data/tools/cmdtlmserver/CanvaslabelWidget-DWmb356h-b76906b84aa03a84c71a.js +0 -1
- data/tools/cmdtlmserver/CanvaslineWidget-COeapH3P-c1972bd0296003fc1dfd.js +0 -1
- data/tools/cmdtlmserver/CheckbuttonWidget-BQhggcZ2-203eb2f8dce3bb29a90d.js +0 -1
- data/tools/cmdtlmserver/ComboboxWidget-BzsbOv54-e6a8a4d274e5f229db45.js +0 -1
- data/tools/cmdtlmserver/GraphWidget-amwxyH1r-ac89940777c22d7746b3.js +0 -1
- data/tools/cmdtlmserver/HorizontallineWidget-BdlNB951-db852634def5179b351c.js +0 -1
- data/tools/cmdtlmserver/IframeWidget-DnJmCrCA-61de005ba939e8bb74ad.js +0 -1
- data/tools/cmdtlmserver/ImageLoader-CpcR6tPi-64d627c07bbe3bafc636.js +0 -1
- data/tools/cmdtlmserver/LabelledWidget-DjturGl5-f9cc57c5b8ad3be43aea.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/LabelvaluelimitsbarWidget-Blj1QXV8-206f10580b17f11e1c5a.js +0 -1
- data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-CvCo-uCe-7223e7b4ead90ddd0bbd.js +0 -1
- data/tools/cmdtlmserver/LedWidget-B_K2e5tq-daa21a2f2c8f400e5e72.js +0 -1
- data/tools/cmdtlmserver/LinegraphWidget-y-Qy9P0R-c3e6dd1b1801cb2d0677.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/SparklineWidget-DMvMQCPm-f269f9c87f957b329bed.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/VWidget-02CG-3Av-282fe2eacc23edb71aea.js +0 -1
- data/tools/cmdtlmserver/ValueWidget-KLYY8L8U-1c6337a11d8ce971b16e.js +0 -1
- data/tools/cmdtlmserver/ValuelimitsbarWidget-SR8XNZFB-3ad50960c7911530750b.js +0 -1
- data/tools/cmdtlmserver/ValuelimitscolumnWidget-xYZSp6YZ-fa9436a9514cbdeace85.js +0 -1
- data/tools/cmdtlmserver/VerticalWidget-z6xUM-ql-5b64611067fb9cb9988c.js +0 -1
- data/tools/cmdtlmserver/main-9a5b81b5417615361b70.js +0 -1422
- data/tools/cmdtlmserver/services-6fab0d9d3d41ee3bbe0a.js +0 -6
@@ -1,6 +0,0 @@
|
|
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(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+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,o){if(a.isFunction(r))return r.call(this,e,n);if(o&&(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(o,s,i){return this[r].call(this,e,o,s,i)},configurable:!0})})}class A{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(c,u,l){const d=I(u);if(!d)throw new Error("header name must be a non-empty string");const p=a.findKey(o,d);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||u]=G(c))}const i=(c,u)=>a.forEach(c,(l,d)=>s(l,d,u));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,u]of e.entries())s(u,c,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=I(e),e){const r=a.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return wn(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);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 o=!1;function s(i){if(i=I(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||fe(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=G(o),delete n[s];return}const c=e?En(s):String(s).trim();c!==s&&delete n[s],n[c]=G(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=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(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
|
-
`+s.map(rt).join(`
|
5
|
-
`):" "+rt(s[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 st(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),ot.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(o,s){return"[Axios v"+it+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,i)=>{if(t===!1)throw new g(r(s," has been removed"+(e?" in "+e:"")),g.ERR_DEPRECATED);return e&&!at[s]&&(at[s]=!0,console.warn(r(s," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(o,s,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 o=r.length;for(;o-- >0;){const s=r[o],i=e[s];if(i){const c=t[s],u=c===void 0||i(c,s,t);if(u!==!0)throw new g("option "+s+" must be "+u,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+s,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 o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
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)}}});
|