openc3-cosmos-tool-cmdtlmserver 6.0.0 → 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/tools/cmdtlmserver/ArrayWidget-DBpEoQ1y-84132d15e020efa0adf1.js +2 -0
  3. data/tools/cmdtlmserver/BarColumn-B6tCmNJm-6eff86fdc1e74ef6f1c9.js +1 -0
  4. data/tools/cmdtlmserver/BlockWidget-Bmi0UcUW-c8722bb58622a8814b0b.js +2 -0
  5. data/tools/cmdtlmserver/ButtonWidget-CHrHS_Bw-70e879d3bbdf933eb10a.js +2 -0
  6. data/tools/cmdtlmserver/CanvasWidget-BqdyLbQz-184dc2d3c4b6c7ab6bf0.js +1 -0
  7. data/tools/cmdtlmserver/CanvasdotWidget-YYwca104-4fffaf81ed40b0efed4b.js +1 -0
  8. data/tools/cmdtlmserver/CanvasimageWidget-BrYlPQCf-c9b4b7ca9e5b29f12d09.js +1 -0
  9. data/tools/cmdtlmserver/CanvasimagevalueWidget-HnEOXmZy-5583c55cf5bbdfadba5d.js +1 -0
  10. data/tools/cmdtlmserver/CanvaslabelWidget-BfMHNei--81068b9cfc5ea4370382.js +1 -0
  11. data/tools/cmdtlmserver/CanvaslabelvalueWidget-0zRDJav3-293602564dbb12cd36fd.js +1 -0
  12. data/tools/cmdtlmserver/CanvaslineWidget-BmOwJP_G-b2f20a0461abbe1c4aec.js +1 -0
  13. data/tools/cmdtlmserver/CanvaslinevalueWidget-H3L1aUKM-6eb08878d7d5720ce613.js +1 -0
  14. data/tools/cmdtlmserver/CheckbuttonWidget-BnT9X7wE-5f6d8077e8d80b62862c.js +1 -0
  15. data/tools/cmdtlmserver/CmdPacketsTab-1174eeae24f567559f43.js +1 -0
  16. data/tools/cmdtlmserver/CmdTlmServer-909a975f2c448b6dfdd9.js +2 -0
  17. data/tools/cmdtlmserver/ComboboxWidget-BykAAoxH-b67d237b4347e57c1776.js +1 -0
  18. data/tools/cmdtlmserver/DateWidget-FtYD86xW-eee42f7093a7d5232e7e.js +1 -0
  19. data/tools/cmdtlmserver/{DetailsDialog-EWjtBjle-37b6940e1f2a2dead428.js → DetailsDialog-DiVcC3Fg-926dc00ae99f202f7bbb.js} +1 -1
  20. data/tools/cmdtlmserver/DynamicWidget-m9EliUR2-b792f7d3791995de4557.js +1 -0
  21. data/tools/cmdtlmserver/FormatvalueWidget-OykwwCrw-ec440c1e59a54a11e1c0.js +1 -0
  22. data/tools/cmdtlmserver/GraphWidget-BohHW-97-79648f0f5f760947a337.js +1 -0
  23. data/tools/cmdtlmserver/HorizontalWidget-B7YdcFVN-1adf1fbb47940ffc2bbb.js +1 -0
  24. data/tools/cmdtlmserver/HorizontalboxWidget-D-kCNwI3-d5280f31e632d3a19530.js +1 -0
  25. data/tools/cmdtlmserver/HorizontallineWidget-BdlNB951-97bac9ec958ae9185006.js +1 -0
  26. data/tools/cmdtlmserver/IframeWidget-0C7GYEVc-7d9db206f561f13924bb.js +1 -0
  27. data/tools/cmdtlmserver/{ImageLoader-CDLQopxJ-4c9cccf9c544ba381bd4.js → ImageLoader-y6fAZe9P-32c5109a53a2e67d4546.js} +1 -1
  28. data/tools/cmdtlmserver/ImageviewerWidget-B4HbUIfR-cc56d18d351a216f45dc.js +1 -0
  29. data/tools/cmdtlmserver/InterfacesTab-1a220be708030742672f.js +1 -0
  30. data/tools/cmdtlmserver/LabelWidget-D1JhQAzR-637ca102152e7cb0159f.js +1 -0
  31. data/tools/cmdtlmserver/LabelledWidget-C2VGJ5OJ-63324f13b32cbd3d1e09.js +1 -0
  32. data/tools/cmdtlmserver/LabelprogressbarWidget-DN0cAeLK-9414ccaa3c0bd5213eaf.js +1 -0
  33. data/tools/cmdtlmserver/LabelsparklineWidget--sxBENxs-9bbfaf33dcea3a9a4163.js +1 -0
  34. data/tools/cmdtlmserver/LabelvalueWidget-BWpP5KX6-e70143eae4825e3ca295.js +1 -0
  35. data/tools/cmdtlmserver/LabelvaluedescWidget-DtJwggDu-297f5e4f5cdd4e997a84.js +1 -0
  36. data/tools/cmdtlmserver/LabelvaluelimitsbarWidget-Bj6UVK-5-d0e6cb1105035131b388.js +1 -0
  37. data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-BVcEEcUx-5ffbd14ed49f43d1a770.js +1 -0
  38. data/tools/cmdtlmserver/LabelvaluerangebarWidget-DCJ42bmf-951b68255fe130b397b4.js +1 -0
  39. data/tools/cmdtlmserver/{Layout-klOVw-YN-a721899dc469c373afa9.js → Layout-D4YBjuWs-d949f0668cb092f7f268.js} +1 -1
  40. data/tools/cmdtlmserver/LedWidget-hN9JHxjr-d3630538860ea110829a.js +1 -0
  41. data/tools/cmdtlmserver/LimitsbarWidget-D-wfz_St-71b4065ff350d86e47f1.js +1 -0
  42. data/tools/cmdtlmserver/LimitscolorWidget-B0AVGdkz-8af3823cc815001ee996.js +1 -0
  43. data/tools/cmdtlmserver/LimitscolumnWidget-Dt5ce4hN-4bf9236958883e049ac5.js +1 -0
  44. data/tools/cmdtlmserver/LinegraphWidget-CTjtvtPd-3472bcb2292fccce0780.js +1 -0
  45. data/tools/cmdtlmserver/MatrixbycolumnsWidget-wLx4NvXV-789df70ba148ac45d935.js +1 -0
  46. data/tools/cmdtlmserver/ProgressbarWidget-B7l0BBiX-28bb09016921e507b157.js +1 -0
  47. data/tools/cmdtlmserver/RadiobuttonWidget-B032jKIw-751b0da1a0eac1f428eb.js +1 -0
  48. data/tools/cmdtlmserver/RadiogroupWidget-Busjqikr-fdbbff7df3b152de9174.js +1 -0
  49. data/tools/cmdtlmserver/RangebarWidget-DbYrwEfC-672c02ff8fc7508bbfe0.js +1 -0
  50. data/tools/cmdtlmserver/{RawDialog-7cfffbbe1160eb2dfa0f.js → RawDialog-3ba881626e2141cf6261.js} +1 -1
  51. data/tools/cmdtlmserver/RollupWidget-rKxLXuCv-84804fdfa2a67e0c586f.js +1 -0
  52. data/tools/cmdtlmserver/RoutersTab-821ac863905d6fc1f0f3.js +1 -0
  53. data/tools/cmdtlmserver/ScrollwindowWidget-D4NKIzQO-e7fc825a7640800925b3.js +1 -0
  54. data/tools/cmdtlmserver/SignalWidget-h-oivReC-a52944079f1106d5b9e8.js +1 -0
  55. data/tools/cmdtlmserver/SpacerWidget-BSy9eOlB-d21cb40c89cf46239df2.js +1 -0
  56. data/tools/cmdtlmserver/SparklineWidget-C9vdxar--5fe9233f121a11766f79.js +1 -0
  57. data/tools/cmdtlmserver/StatusTab-4f20ea8483d65cd2f43f.js +1 -0
  58. data/tools/cmdtlmserver/TabbookWidget-DTFTKURm-8a001c50117950e4dff3.js +1 -0
  59. data/tools/cmdtlmserver/TargetsTab-45e297b994fc5f0d21d0.js +1 -0
  60. data/tools/cmdtlmserver/TextboxWidget-BZyYHmBq-69732416c05b62947a52.js +1 -0
  61. data/tools/cmdtlmserver/TextfieldWidget-aVRdXRsT-6158511014a61f90ddea.js +1 -0
  62. data/tools/cmdtlmserver/TimeWidget-BE2rtMxg-26adb974402be26d1aaf.js +1 -0
  63. data/tools/cmdtlmserver/TitleWidget-BB29MZb2-2f453a7f1f364727debd.js +1 -0
  64. data/tools/cmdtlmserver/TlmPacketsTab-b9aab218beb2e197b269.js +1 -0
  65. data/tools/cmdtlmserver/{Updater-3608194712b19b896303.js → Updater-6f453064b0e1f1f5fb0e.js} +1 -1
  66. data/tools/cmdtlmserver/{VWidget-Dmqf_jKM-2854e5bda271afc8bffe.js → VWidget-CGdM4sTw-a078921174583b0d9185.js} +1 -1
  67. data/tools/cmdtlmserver/ValueWidget-h3905woQ-9b7964d625c1c99b145b.js +1 -0
  68. data/tools/cmdtlmserver/ValuelimitsbarWidget-LMXYjWtS-c85b0d0fb89533be596b.js +1 -0
  69. data/tools/cmdtlmserver/ValuelimitscolumnWidget-gA3ZcfAT-faa7e73a393653ce138d.js +1 -0
  70. data/tools/cmdtlmserver/ValuerangebarWidget-DwZ9KQ0O-1b288730ccf9a87d6d8f.js +1 -0
  71. data/tools/cmdtlmserver/VerticalWidget-DziyURNu-750d852c42a2d5f2f703.js +1 -0
  72. data/tools/cmdtlmserver/VerticalboxWidget-OcoZBsFU-b0a8579fcda69ee76cfc.js +1 -0
  73. data/tools/cmdtlmserver/{Widget-orNSvnOh-c2189f557c1c3db5d0d5.js → Widget-C7ms_xDE-bce61b3f1521054f57a4.js} +1 -1
  74. data/tools/cmdtlmserver/main-fcf5991e219cb9464cd3.js +1422 -0
  75. data/tools/cmdtlmserver/main.js +1 -1
  76. data/tools/cmdtlmserver/{services-6fab0d9d3d41ee3bbe0a.js → services-d6821e5ba7167450844f.js} +6 -6
  77. metadata +76 -76
  78. data/tools/cmdtlmserver/ArrayWidget-By62tXtU-71c668c2b12f3647b2aa.js +0 -2
  79. data/tools/cmdtlmserver/BarColumn-Dm3D1Lhp-0e936d8648b3ed447feb.js +0 -1
  80. data/tools/cmdtlmserver/BlockWidget-CrT45ode-886b3faff84b37db6c51.js +0 -2
  81. data/tools/cmdtlmserver/ButtonWidget-CKyBBv6m-3b8176a5b59e2fe6ede9.js +0 -2
  82. data/tools/cmdtlmserver/CanvasWidget-PqkppHC7-fd8f2fe4b4158775777e.js +0 -1
  83. data/tools/cmdtlmserver/CanvasdotWidget-BUbJgM2d-7f320c3f245428eff6e0.js +0 -1
  84. data/tools/cmdtlmserver/CanvasimageWidget-DPVBY7mi-21593c9450e5c05595d2.js +0 -1
  85. data/tools/cmdtlmserver/CanvasimagevalueWidget-GX37zzNc-35ce65c12b0ff93c1e64.js +0 -1
  86. data/tools/cmdtlmserver/CanvaslabelWidget-P2_Y6Edw-1fc22fee78e455e0bacc.js +0 -1
  87. data/tools/cmdtlmserver/CanvaslabelvalueWidget-Cuas1i9P-958866656e489e737d07.js +0 -1
  88. data/tools/cmdtlmserver/CanvaslineWidget-BYOYgPya-d389d6419c193203d6b8.js +0 -1
  89. data/tools/cmdtlmserver/CanvaslinevalueWidget-3cVJMFo7-2946dcc156558454a815.js +0 -1
  90. data/tools/cmdtlmserver/CheckbuttonWidget-B3wgSMuB-2e200064cf109304de12.js +0 -1
  91. data/tools/cmdtlmserver/CmdPacketsTab-b15d0514cdb75bd29bd8.js +0 -1
  92. data/tools/cmdtlmserver/CmdTlmServer-18df2af9fea7fa1a5a7c.js +0 -2
  93. data/tools/cmdtlmserver/ComboboxWidget-Dzr4Scvf-699c8eacd9a8687ee70d.js +0 -1
  94. data/tools/cmdtlmserver/DateWidget-BWh76Ibb-d6f7da26ea2fd4cb72e8.js +0 -1
  95. data/tools/cmdtlmserver/DynamicWidget-m9EliUR2-62ab2ad533de794320d4.js +0 -1
  96. data/tools/cmdtlmserver/FormatvalueWidget-Rk0_eeIm-50cdf441547b0cb8608d.js +0 -1
  97. data/tools/cmdtlmserver/GraphWidget-LqekkNDr-da2fa45489caf0d4fad1.js +0 -1
  98. data/tools/cmdtlmserver/HorizontalWidget-BcfJ24Zn-21157dc1940825a36df8.js +0 -1
  99. data/tools/cmdtlmserver/HorizontalboxWidget-CQy1Hv9E-d2088459c65904a689d2.js +0 -1
  100. data/tools/cmdtlmserver/HorizontallineWidget-BdlNB951-4dee66ec89d4aa3f5f07.js +0 -1
  101. data/tools/cmdtlmserver/IframeWidget-BBaDrRLo-c6c36b42c6c6f9a2dfa3.js +0 -1
  102. data/tools/cmdtlmserver/ImageviewerWidget-BgO3Pq6I-49d5b6d7e95afdb924d9.js +0 -1
  103. data/tools/cmdtlmserver/InterfacesTab-acffaa153abb0955b428.js +0 -1
  104. data/tools/cmdtlmserver/LabelWidget-B_C6lKOE-21bc54b64ce81b8d5e91.js +0 -1
  105. data/tools/cmdtlmserver/LabelledWidget-B_UGivhr-45bd4b27e27af75c76ce.js +0 -1
  106. data/tools/cmdtlmserver/LabelprogressbarWidget-BJWCmsYC-a38332a26d43fbc7cb11.js +0 -1
  107. data/tools/cmdtlmserver/LabelsparklineWidget-DILCIh3q-a123a563ebb202129724.js +0 -1
  108. data/tools/cmdtlmserver/LabelvalueWidget-CCZd1NXE-e3c1d1b547bd294e08fc.js +0 -1
  109. data/tools/cmdtlmserver/LabelvaluedescWidget-Bsllq8W6-c61edd74c658e4cbc152.js +0 -1
  110. data/tools/cmdtlmserver/LabelvaluelimitsbarWidget-BV-cfaD--6fbc9f8ce13090936c15.js +0 -1
  111. data/tools/cmdtlmserver/LabelvaluelimitscolumnWidget-DwA0eRBw-20f41ba3a09d3c059323.js +0 -1
  112. data/tools/cmdtlmserver/LabelvaluerangebarWidget-3GDJz3dj-13a0899a53ecebdbdb8d.js +0 -1
  113. data/tools/cmdtlmserver/LedWidget-BAt02s0J-710e81df00d16611ca6c.js +0 -1
  114. data/tools/cmdtlmserver/LimitsbarWidget-JJiyzZjb-b5becd869841fa1595ff.js +0 -1
  115. data/tools/cmdtlmserver/LimitscolorWidget-CYzXKbYd-7e2a7414bebb0d967056.js +0 -1
  116. data/tools/cmdtlmserver/LimitscolumnWidget-Cd76tBo7-6de0345076b09ddf4e33.js +0 -1
  117. data/tools/cmdtlmserver/LinegraphWidget-DWRtO6Ej-cedf2afc896274387b0a.js +0 -1
  118. data/tools/cmdtlmserver/MatrixbycolumnsWidget-cwsyjNV2-c35c7acd7f9bbe099adc.js +0 -1
  119. data/tools/cmdtlmserver/ProgressbarWidget-CYDziFej-98afe46a60db5ef50bc2.js +0 -1
  120. data/tools/cmdtlmserver/RadiobuttonWidget-U6jcQZoD-f8933c81d6f206fea4f9.js +0 -1
  121. data/tools/cmdtlmserver/RadiogroupWidget-HTPJnsB0-10f8679497847aa5eedf.js +0 -1
  122. data/tools/cmdtlmserver/RangebarWidget-DW0FJK6y-ca5c172b1f8d8b0bdd04.js +0 -1
  123. data/tools/cmdtlmserver/RollupWidget-B2qrx55f-9b4d46c83244d93b538e.js +0 -1
  124. data/tools/cmdtlmserver/RoutersTab-e227a58650cef2f7cb45.js +0 -1
  125. data/tools/cmdtlmserver/ScrollwindowWidget-CwIDxgO6-ea5bb31dc3cfde35e775.js +0 -1
  126. data/tools/cmdtlmserver/SignalWidget-Bosa3AbW-d0ae775dd5c4743bd297.js +0 -1
  127. data/tools/cmdtlmserver/SpacerWidget-DYAlt5mt-78b1595bcafcd837342e.js +0 -1
  128. data/tools/cmdtlmserver/SparklineWidget-CDrVXOFV-2183c82cc253586cf77f.js +0 -1
  129. data/tools/cmdtlmserver/StatusTab-e815b6f5b133af771d3c.js +0 -1
  130. data/tools/cmdtlmserver/TabbookWidget-DDdlzCkv-ccba59d5746cd2b8788e.js +0 -1
  131. data/tools/cmdtlmserver/TargetsTab-22e2db6d75a3e9456d69.js +0 -1
  132. data/tools/cmdtlmserver/TextboxWidget-5euFelEq-eb2c48ecf9a4852448b3.js +0 -1
  133. data/tools/cmdtlmserver/TextfieldWidget-BFripYeh-5f0267b7e9745eb772d6.js +0 -1
  134. data/tools/cmdtlmserver/TimeWidget-BBSbsUYJ-41f6ac9de864b392c87e.js +0 -1
  135. data/tools/cmdtlmserver/TitleWidget-p8cjo-Bs-ae7c644a01c9f5ffd68c.js +0 -1
  136. data/tools/cmdtlmserver/TlmPacketsTab-d2f22dccdcd0109dc9fc.js +0 -1
  137. data/tools/cmdtlmserver/ValueWidget-CZh7JWwT-561515c3bc47da2968a1.js +0 -1
  138. data/tools/cmdtlmserver/ValuelimitsbarWidget-DU7ybswC-bccfe404aabe243d72f4.js +0 -1
  139. data/tools/cmdtlmserver/ValuelimitscolumnWidget-DMw-h5jM-1cfd35ce298999a0ff6a.js +0 -1
  140. data/tools/cmdtlmserver/ValuerangebarWidget-DPpofDpA-d242d66cd64e9a78f881.js +0 -1
  141. data/tools/cmdtlmserver/VerticalWidget-Ch7VAEmz-71645022feffa66a8825.js +0 -1
  142. data/tools/cmdtlmserver/VerticalboxWidget-DYx-TFT4-5f9dfe83d76b0a3739bd.js +0 -1
  143. data/tools/cmdtlmserver/main-74390a4d748a97f336a8.js +0 -1422
@@ -1 +1 @@
1
- System.register(["vue","./main-74390a4d748a97f336a8.js","vue-router","vuex","vuetify"],function(t,e){"use strict";return{setters:[null,u=>{t({bootstrap:u.e,mount:u.m,unmount:u.u})},null,null,null],execute:function(){}}});
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(){}}});
@@ -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(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)}}});
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.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: 2024-12-17 00:00:00.000000000 Z
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-By62tXtU-71c668c2b12f3647b2aa.js
27
- - tools/cmdtlmserver/BarColumn-Dm3D1Lhp-0e936d8648b3ed447feb.js
28
- - tools/cmdtlmserver/BlockWidget-CrT45ode-886b3faff84b37db6c51.js
29
- - tools/cmdtlmserver/ButtonWidget-CKyBBv6m-3b8176a5b59e2fe6ede9.js
30
- - tools/cmdtlmserver/CanvasWidget-PqkppHC7-fd8f2fe4b4158775777e.js
31
- - tools/cmdtlmserver/CanvasdotWidget-BUbJgM2d-7f320c3f245428eff6e0.js
32
- - tools/cmdtlmserver/CanvasimageWidget-DPVBY7mi-21593c9450e5c05595d2.js
33
- - tools/cmdtlmserver/CanvasimagevalueWidget-GX37zzNc-35ce65c12b0ff93c1e64.js
34
- - tools/cmdtlmserver/CanvaslabelWidget-P2_Y6Edw-1fc22fee78e455e0bacc.js
35
- - tools/cmdtlmserver/CanvaslabelvalueWidget-Cuas1i9P-958866656e489e737d07.js
36
- - tools/cmdtlmserver/CanvaslineWidget-BYOYgPya-d389d6419c193203d6b8.js
37
- - tools/cmdtlmserver/CanvaslinevalueWidget-3cVJMFo7-2946dcc156558454a815.js
38
- - tools/cmdtlmserver/CheckbuttonWidget-B3wgSMuB-2e200064cf109304de12.js
39
- - tools/cmdtlmserver/CmdPacketsTab-b15d0514cdb75bd29bd8.js
40
- - tools/cmdtlmserver/CmdTlmServer-18df2af9fea7fa1a5a7c.js
41
- - tools/cmdtlmserver/ComboboxWidget-Dzr4Scvf-699c8eacd9a8687ee70d.js
42
- - tools/cmdtlmserver/DateWidget-BWh76Ibb-d6f7da26ea2fd4cb72e8.js
43
- - tools/cmdtlmserver/DetailsDialog-EWjtBjle-37b6940e1f2a2dead428.js
44
- - tools/cmdtlmserver/DynamicWidget-m9EliUR2-62ab2ad533de794320d4.js
45
- - tools/cmdtlmserver/FormatvalueWidget-Rk0_eeIm-50cdf441547b0cb8608d.js
46
- - tools/cmdtlmserver/GraphWidget-LqekkNDr-da2fa45489caf0d4fad1.js
47
- - tools/cmdtlmserver/HorizontalWidget-BcfJ24Zn-21157dc1940825a36df8.js
48
- - tools/cmdtlmserver/HorizontalboxWidget-CQy1Hv9E-d2088459c65904a689d2.js
49
- - tools/cmdtlmserver/HorizontallineWidget-BdlNB951-4dee66ec89d4aa3f5f07.js
50
- - tools/cmdtlmserver/IframeWidget-BBaDrRLo-c6c36b42c6c6f9a2dfa3.js
51
- - tools/cmdtlmserver/ImageLoader-CDLQopxJ-4c9cccf9c544ba381bd4.js
52
- - tools/cmdtlmserver/ImageviewerWidget-BgO3Pq6I-49d5b6d7e95afdb924d9.js
53
- - tools/cmdtlmserver/InterfacesTab-acffaa153abb0955b428.js
54
- - tools/cmdtlmserver/LabelWidget-B_C6lKOE-21bc54b64ce81b8d5e91.js
55
- - tools/cmdtlmserver/LabelledWidget-B_UGivhr-45bd4b27e27af75c76ce.js
56
- - tools/cmdtlmserver/LabelprogressbarWidget-BJWCmsYC-a38332a26d43fbc7cb11.js
57
- - tools/cmdtlmserver/LabelsparklineWidget-DILCIh3q-a123a563ebb202129724.js
58
- - tools/cmdtlmserver/LabelvalueWidget-CCZd1NXE-e3c1d1b547bd294e08fc.js
59
- - tools/cmdtlmserver/LabelvaluedescWidget-Bsllq8W6-c61edd74c658e4cbc152.js
60
- - tools/cmdtlmserver/LabelvaluelimitsbarWidget-BV-cfaD--6fbc9f8ce13090936c15.js
61
- - tools/cmdtlmserver/LabelvaluelimitscolumnWidget-DwA0eRBw-20f41ba3a09d3c059323.js
62
- - tools/cmdtlmserver/LabelvaluerangebarWidget-3GDJz3dj-13a0899a53ecebdbdb8d.js
63
- - tools/cmdtlmserver/Layout-klOVw-YN-a721899dc469c373afa9.js
64
- - tools/cmdtlmserver/LedWidget-BAt02s0J-710e81df00d16611ca6c.js
65
- - tools/cmdtlmserver/LimitsbarWidget-JJiyzZjb-b5becd869841fa1595ff.js
66
- - tools/cmdtlmserver/LimitscolorWidget-CYzXKbYd-7e2a7414bebb0d967056.js
67
- - tools/cmdtlmserver/LimitscolumnWidget-Cd76tBo7-6de0345076b09ddf4e33.js
68
- - tools/cmdtlmserver/LinegraphWidget-DWRtO6Ej-cedf2afc896274387b0a.js
69
- - tools/cmdtlmserver/MatrixbycolumnsWidget-cwsyjNV2-c35c7acd7f9bbe099adc.js
70
- - tools/cmdtlmserver/ProgressbarWidget-CYDziFej-98afe46a60db5ef50bc2.js
71
- - tools/cmdtlmserver/RadiobuttonWidget-U6jcQZoD-f8933c81d6f206fea4f9.js
72
- - tools/cmdtlmserver/RadiogroupWidget-HTPJnsB0-10f8679497847aa5eedf.js
73
- - tools/cmdtlmserver/RangebarWidget-DW0FJK6y-ca5c172b1f8d8b0bdd04.js
74
- - tools/cmdtlmserver/RawDialog-7cfffbbe1160eb2dfa0f.js
75
- - tools/cmdtlmserver/RollupWidget-B2qrx55f-9b4d46c83244d93b538e.js
76
- - tools/cmdtlmserver/RoutersTab-e227a58650cef2f7cb45.js
77
- - tools/cmdtlmserver/ScrollwindowWidget-CwIDxgO6-ea5bb31dc3cfde35e775.js
78
- - tools/cmdtlmserver/SignalWidget-Bosa3AbW-d0ae775dd5c4743bd297.js
79
- - tools/cmdtlmserver/SpacerWidget-DYAlt5mt-78b1595bcafcd837342e.js
80
- - tools/cmdtlmserver/SparklineWidget-CDrVXOFV-2183c82cc253586cf77f.js
81
- - tools/cmdtlmserver/StatusTab-e815b6f5b133af771d3c.js
82
- - tools/cmdtlmserver/TabbookWidget-DDdlzCkv-ccba59d5746cd2b8788e.js
83
- - tools/cmdtlmserver/TargetsTab-22e2db6d75a3e9456d69.js
84
- - tools/cmdtlmserver/TextboxWidget-5euFelEq-eb2c48ecf9a4852448b3.js
85
- - tools/cmdtlmserver/TextfieldWidget-BFripYeh-5f0267b7e9745eb772d6.js
86
- - tools/cmdtlmserver/TimeWidget-BBSbsUYJ-41f6ac9de864b392c87e.js
87
- - tools/cmdtlmserver/TitleWidget-p8cjo-Bs-ae7c644a01c9f5ffd68c.js
88
- - tools/cmdtlmserver/TlmPacketsTab-d2f22dccdcd0109dc9fc.js
89
- - tools/cmdtlmserver/Updater-3608194712b19b896303.js
90
- - tools/cmdtlmserver/VWidget-Dmqf_jKM-2854e5bda271afc8bffe.js
91
- - tools/cmdtlmserver/ValueWidget-CZh7JWwT-561515c3bc47da2968a1.js
92
- - tools/cmdtlmserver/ValuelimitsbarWidget-DU7ybswC-bccfe404aabe243d72f4.js
93
- - tools/cmdtlmserver/ValuelimitscolumnWidget-DMw-h5jM-1cfd35ce298999a0ff6a.js
94
- - tools/cmdtlmserver/ValuerangebarWidget-DPpofDpA-d242d66cd64e9a78f881.js
95
- - tools/cmdtlmserver/VerticalWidget-Ch7VAEmz-71645022feffa66a8825.js
96
- - tools/cmdtlmserver/VerticalboxWidget-DYx-TFT4-5f9dfe83d76b0a3739bd.js
97
- - tools/cmdtlmserver/Widget-orNSvnOh-c2189f557c1c3db5d0d5.js
98
- - tools/cmdtlmserver/main-74390a4d748a97f336a8.js
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-6fab0d9d3d41ee3bbe0a.js
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-74390a4d748a97f336a8.js","vue","./DetailsDialog-EWjtBjle-37b6940e1f2a2dead428.js","./VWidget-Dmqf_jKM-2854e5bda271afc8bffe.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js"],function(S,P){"use strict";var h,a,m,c,i,d,p,l,g,f,v,w,y,x,C,V;return{setters:[t=>{h=t.s},t=>{a=t.resolveComponent,m=t.openBlock,c=t.createElementBlock,i=t.createVNode,d=t.normalizeClass,p=t.normalizeStyle,l=t.withCtx,g=t.Fragment,f=t.renderList,v=t.createBlock,w=t.withModifiers,y=t.createTextVNode,x=t.toDisplayString},t=>{C=t.P},t=>{V=t.L},null,null,null,null],execute:function(){const t={components:{DetailsDialog:C},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[V],computed:{aging(){return{"--aging":this.grayLevel}}},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.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){let e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var r;let s="",k=" ",D=`
2
- `,o=0;if(Array.isArray(e)){for(const u of e)this.formatter&&((r=this.formatter)==null?void 0:r.toLowerCase())!=="nil"?s+=sprintf(this.formatter,u):s+=u,o+=1,o%this.itemsPerRow===0?(o=0,s+=D):s+=k;return s.trim()}else return e}}},B={class:"array-widget-container"};function _(e,r,s,k,D,o){const u=a("v-textarea"),j=a("v-list-item-title"),M=a("v-list-item"),z=a("v-list"),L=a("v-menu"),N=a("details-dialog");return m(),c("div",B,[i(u,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:d(e.valueClass),style:p([e.computedStyle,o.aging]),"data-test":"array-widget",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),i(L,{modelValue:e.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=n=>e.contextMenuShown=n),target:[e.x,e.y]},{default:l(()=>[i(z,null,{default:l(()=>[(m(!0),c(g,null,f(e.contextMenuOptions,(n,E)=>(m(),v(M,{key:E,onClick:w(n.action,["stop"])},{default:l(()=>[i(j,null,{default:l(()=>[y(x(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),i(N,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>e.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const R=S("default",h(t,[["render",_],["__scopeId","data-v-62b9e9e1"]]))}}});
@@ -1 +0,0 @@
1
- System.register(["./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js","./main-74390a4d748a97f336a8.js"],function(a,n){"use strict";var h,l;return{setters:[s=>{h=s.o},s=>{l=s.W}],execute:function(){const s=a("u",{mixins:[h],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let t=this.screenValues[this.valueId][0],i=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(i),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(t,i)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new l,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then(t=>{this.limitsSettings=t}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.appliedSettings.forEach(t=>{t[0]==="MIN_VALUE"&&(this.minValue=parseInt(t[1])),t[0]==="MAX_VALUE"&&(this.maxValue=parseInt(t[1]))}),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},destroyed(){this.$emit("deleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(t){this.redLow=10,this.redHigh=10,this.minValue!==null&&(t[0]<=this.minValue&&(t[0]=this.minValue,this.redLow=0),t[1]<=this.minValue&&(t[1]=this.minValue),t[2]<=this.minValue&&(t[2]=this.minValue),t[3]<=this.minValue&&(t[3]=this.minValue),t.length>4&&t[4]<=this.minValue&&(t[4]=this.minValue),t.length>4&&t[5]<=this.minValue&&(t[5]=this.minValue)),this.maxValue!==null&&(t[0]>=this.maxValue&&(t[0]=this.maxValue),t[1]>=this.maxValue&&(t[1]=this.maxValue),t[2]>=this.maxValue&&(t[2]=this.maxValue),t[3]>=this.maxValue&&(t[3]=this.maxValue,this.redHigh=0),t.length>4&&t[4]>=this.maxValue&&(t[4]=this.maxValue),t.length>4&&t[5]>=this.maxValue&&(t[5]=this.maxValue)),t[0]==t[1]&&(this.yellowLow=0),t[2]==t[3]&&(this.yellowHigh=0);let i=80;return this.redLow==0&&(i+=10),this.redHigh==0&&(i+=10),this.scale=(t[3]-t[0])/i,t},calcPosition(t,i){if(!t||!i)return;let r=i[0]-10*this.scale;if(this.minValue&&this.minValue==i[0]&&(r=i[0]),i[3]-10*this.scale,this.maxValue&&this.maxValue==i[3]&&i[3],t.raw)return t.raw==="-Infinity"?0:100;if(t<this.min)return 0;if(t>this.max)return 100;{const e=parseInt((t-r)/this.scale);return e>100?100:e<0?0:e}},calcLimits(t){t&&(this.yellowLow=Math.round((t[1]-t[0])/this.scale),this.yellowHigh=Math.round((t[3]-t[2])/this.scale),t.length>4?(this.greenLow=Math.round((t[4]-t[1])/this.scale),this.greenHigh=Math.round((t[2]-t[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then(t=>{this.currentLimitsSet=t})}}})}}});
@@ -1,2 +0,0 @@
1
- System.register(["./main-74390a4d748a97f336a8.js","vue","./DetailsDialog-EWjtBjle-37b6940e1f2a2dead428.js","./VWidget-Dmqf_jKM-2854e5bda271afc8bffe.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js"],function(P,z){"use strict";var u,a,h,m,s,p,g,o,w,f,v,y,x,k,C,V;return{setters:[e=>{u=e.s},e=>{a=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,k=e.toDisplayString},e=>{C=e.P},e=>{V=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:C},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[V],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 r="";if(t&&t.raw){let S=" ",D=`
2
- `,i=0,l=0;const d=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(r+=sprintf(this.addrFormat,l),l+=d),r+=sprintf(this.formatter,c),i+=1,i%d===0?(i=0,r+=D):i%this.bytesPerWord===0&&(r+=S)}else r=t;return r}}},W={class:"block-widget-container"};function M(t,r,S,D,i,l){const d=a("v-textarea"),c=a("v-list-item-title"),_=a("v-list-item"),j=a("v-list"),B=a("v-menu"),F=a("details-dialog");return h(),m("div",W,[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(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=n=>t.contextMenuShown=n),target:[t.x,t.y]},{default:o(()=>[s(j,null,{default:o(()=>[(h(!0),m(w,null,f(t.contextMenuOptions,(n,b)=>(h(),v(_,{key:b,onClick:y(n.action,["stop"])},{default:o(()=>[s(c,null,{default:o(()=>[x(k(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),s(F,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>t.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const L=P("default",u(e,[["render",M],["__scopeId","data-v-4d4589c2"]]))}}});
@@ -1,2 +0,0 @@
1
- System.register(["./main-74390a4d748a97f336a8.js","vue","./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js","vue-router","vuex","vuetify"],function(exports,module){"use strict";var s,Ok,S$1,Wk,resolveComponent,openBlock,createBlock,withCtx,createVNode,createElementVNode,createTextVNode,toDisplayString,createCommentVNode,withModifiers,createElementBlock,normalizeStyle,o;return{setters:[e=>{s=e.s,Ok=e.O,S$1=e.S,Wk=e.W},e=>{resolveComponent=e.resolveComponent,openBlock=e.openBlock,createBlock=e.createBlock,withCtx=e.withCtx,createVNode=e.createVNode,createElementVNode=e.createElementVNode,createTextVNode=e.createTextVNode,toDisplayString=e.toDisplayString,createCommentVNode=e.createCommentVNode,withModifiers=e.withModifiers,createElementBlock=e.createElementBlock,normalizeStyle=e.normalizeStyle},e=>{o=e.o},null,null,null],execute:function(){const S={props:{uuid:String,cmdUser:String,cmdString:String,persistent:{type:Boolean,default:!1},modelValue:Boolean},data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},beforeUnmount(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},watch:{modelValue:function(e,t){e?(Ok.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(r=>{r.data.status==="ok"&&(this.canApprove=!0)}),this.updater=setInterval(()=>{this.uuid?Ok.get("/openc3-api/criticalcmd/status/"+this.uuid).then(r=>{r.data.status!=="WAITING"&&(this.$emit("status",r.data.status),this.show=!1)}):this.show=!1},1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},methods:{async approve(){if(this.canApprove)await Ok.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","APPROVED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();S$1.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(t=>{this.$emit("status","APPROVED"),this.show=!1,this.error=!1}).catch(t=>{this.error=!0,t.response?this.errorText=t.response.data.message:this.errorText=t.message})}},async reject(){if(this.canApprove)await Ok.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();(await S$1.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3})).status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)}},async getKeycloakToken(){return(await S$1.post(localStorage.keycloakUrl+"/realms/"+localStorage.keycloakRealm+"/protocol/openid-connect/token",{username:this.username,password:this.password,client_id:localStorage.keycloakClientId,grant_type:"password",scope:"openid"},{headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:5e3})).data.access_token}}};function E(e,t,r,p,a,n){const c=resolveComponent("v-spacer"),v=resolveComponent("v-toolbar"),m=resolveComponent("v-alert"),l=resolveComponent("v-row"),h=resolveComponent("v-text-field"),C=resolveComponent("v-btn"),V=resolveComponent("v-container"),w=resolveComponent("v-card-text"),u=resolveComponent("v-card"),f=resolveComponent("v-dialog");return openBlock(),createBlock(f,{persistent:r.persistent,modelValue:n.show,"onUpdate:modelValue":t[3]||(t[3]=d=>n.show=d),width:"600"},{default:withCtx(()=>[createVNode(u,null,{default:withCtx(()=>[createVNode(v,{height:"24"},{default:withCtx(()=>[createVNode(c),t[4]||(t[4]=createElementVNode("span",null," Waiting for Critical Command Approval ",-1)),createVNode(c)]),_:1}),createVNode(w,null,{default:withCtx(()=>[createVNode(V,{fluid:""},{default:withCtx(()=>[createVNode(m,{type:"error",modelValue:a.error,"onUpdate:modelValue":t[0]||(t[0]=d=>a.error=d),dismissible:""},{default:withCtx(()=>[createTextVNode(toDisplayString(a.errorText),1)]),_:1},8,["modelValue"]),createVNode(l,{class:"pt-4",style:{color:"white"}},{default:withCtx(()=>[createTextVNode("User "+toDisplayString(r.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),createVNode(l,{class:"pa-4",style:{color:"white"}},{default:withCtx(()=>[createTextVNode(toDisplayString(r.cmdString),1)]),_:1}),createVNode(l,{class:"text-subtitle-2"},{default:withCtx(()=>[createTextVNode("UUID: "+toDisplayString(r.uuid),1)]),_:1}),a.canApprove?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:0},{default:withCtx(()=>[createVNode(h,{modelValue:a.username,"onUpdate:modelValue":t[1]||(t[1]=d=>a.username=d),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),a.canApprove?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:1},{default:withCtx(()=>[createVNode(h,{modelValue:a.password,"onUpdate:modelValue":t[2]||(t[2]=d=>a.password=d),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),createVNode(l,{class:"pt-2"},{default:withCtx(()=>[createVNode(c),createVNode(C,{type:"submit",onClick:withModifiers(n.reject,["prevent"]),class:"mx-2",color:"secondary",outlined:"",disabled:n.disableButtons,"data-test":"reject"},{default:withCtx(()=>t[5]||(t[5]=[createTextVNode(" Reject ")])),_:1},8,["onClick","disabled"]),createVNode(C,{type:"submit",onClick:withModifiers(n.approve,["prevent"]),class:"mx-2",color:"primary",disabled:n.disableButtons,"data-test":"approve"},{default:withCtx(()=>t[6]||(t[6]=[createTextVNode(" Approve ")])),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["persistent","modelValue"])}const N=s(S,[["render",E],["__scopeId","data-v-edfbf188"]]),_sfc_main={mixins:[o],components:{CriticalCmdDialog:N},data(){return{api:null,displaySendHazardous:!1,lastCmd:"",criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new Wk},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,screenValues=this.screenValues,screenTimeZone=this.screenTimeZone,api=this.api,runScript=this.runScript;(self||screen||screenValues||screenTimeZone||api||runScript)&&this.$nextTick(()=>{});for(let i=0;i<lines.length;i++)try{const result=eval(lines[i].trim());result instanceof Promise&&await result}catch(e){if(e.message.includes("CriticalCmdError"))this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0;else if(e.message.includes("is Hazardous"))for(this.lastCmd=e.message.split(`
2
- `).pop(),this.displaySendHazardous=!0;this.displaySendHazardous;)await new Promise(t=>setTimeout(t,500));else console.error(e)}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(e){e.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,t=!0,r={}){let p=[];for(const a in r)p.push({key:a,value:r[a],readonly:!1});Ok.post(`/script-api/scripts/${e}/run`,{data:{environment:p}}).then(a=>{t&&window.open(`/tools/scriptrunner/${a.data}`,"_blank")})}}},_hoisted_1={class:"mx-1"};function _sfc_render(e,t,r,p,a,n){const c=resolveComponent("v-btn"),v=resolveComponent("v-card-title"),m=resolveComponent("v-row"),l=resolveComponent("v-spacer"),h=resolveComponent("v-card-text"),C=resolveComponent("v-card"),V=resolveComponent("v-dialog"),w=resolveComponent("critical-cmd-dialog");return openBlock(),createElementBlock("div",null,[createVNode(c,{class:"ma-1",color:"primary",style:normalizeStyle(e.computedStyle),onClick:n.onClick},{default:withCtx(()=>[createTextVNode(toDisplayString(n.buttonText),1)]),_:1},8,["style","onClick"]),createVNode(V,{modelValue:a.displaySendHazardous,"onUpdate:modelValue":t[0]||(t[0]=u=>a.displaySendHazardous=u),"max-width":"300"},{default:withCtx(()=>[createVNode(C,null,{default:withCtx(()=>[createVNode(v,null,{default:withCtx(()=>t[2]||(t[2]=[createTextVNode("Hazardous")])),_:1}),createVNode(h,null,{default:withCtx(()=>[createElementVNode("div",_hoisted_1,[createVNode(m,{class:"my-2"},{default:withCtx(()=>t[3]||(t[3]=[createElementVNode("span",null," Warning: Command is Hazardous. Send? ",-1)])),_:1}),createVNode(m,null,{default:withCtx(()=>[createVNode(l),createVNode(c,{onClick:n.cancelHazardousCmd,variant:"outlined"},{default:withCtx(()=>t[4]||(t[4]=[createTextVNode(" Cancel ")])),_:1},8,["onClick"]),createVNode(c,{onClick:n.sendHazardousCmd,class:"bg-primary mx-1"},{default:withCtx(()=>t[5]||(t[5]=[createTextVNode(" Send ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),createVNode(w,{uuid:a.criticalCmdUuid,cmdString:a.criticalCmdString,cmdUser:a.criticalCmdUser,modelValue:a.displayCriticalCmd,"onUpdate:modelValue":t[1]||(t[1]=u=>a.displayCriticalCmd=u)},null,8,["uuid","cmdString","cmdUser","modelValue"])])}const ButtonWidget=exports("default",s(_sfc_main,[["render",_sfc_render]]))}}});
@@ -1 +0,0 @@
1
- System.register(["./Layout-klOVw-YN-a721899dc469c373afa9.js","vue","./main-74390a4d748a97f336a8.js","./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js","vue-router","vuex","vuetify"],function(h,f){"use strict";var i,n,s,a,c,l,o,u,m;return{setters:[e=>{i=e.r},e=>{n=e.openBlock,s=e.createElementBlock,a=e.Fragment,c=e.renderList,l=e.createBlock,o=e.resolveDynamicComponent,u=e.mergeProps},e=>{m=e.s},null,null,null,null],execute:function(){const e={mixins:[i],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},p=["width","height"];function d(r,k,y,B,b,g){return n(),s("svg",{id:"canvas",width:g.width,height:g.height},[(n(!0),s(a,null,c(r.widgets,(t,v)=>(n(),l(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,p)}const w=h("default",m(e,[["render",d],["__scopeId","data-v-47bdfc3c"]]))}}});
@@ -1 +0,0 @@
1
- System.register(["./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js","vue","./main-74390a4d748a97f336a8.js","vue-router","vuex","vuetify"],function(s,i){"use strict";var t,n,l,c;return{setters:[e=>{t=e.o},e=>{n=e.openBlock,l=e.createElementBlock},e=>{c=e.s},null,null,null],execute:function(){const e={mixins:[t]},u=["cx","cy","r","fill"];function o(r,m,f,p,v,x){return n(),l("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,u)}const a=s("default",c(e,[["render",o]]))}}});
@@ -1 +0,0 @@
1
- System.register(["./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js","./ImageLoader-CDLQopxJ-4c9cccf9c544ba381bd4.js","vue","./main-74390a4d748a97f336a8.js","vue-router","vuex","vuetify"],function(m,d){"use strict";var s,i,n,a,c,l,h;return{setters:[e=>{s=e.o},e=>{i=e.s},e=>{n=e.openBlock,a=e.createElementBlock,c=e.normalizeStyle,l=e.createCommentVNode},e=>{h=e.s},null,null,null],execute:function(){const e={mixins:[s,i],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(t=>{t[0]==="SCREEN"&&(this.screenTarget=t[1],this.screenName=t[2])}),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then(t=>{this.imageUrl=t})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},u=["href","x","y","width","height"];function p(t,o,y,k,N,r){return t.imageUrl?(n(),a("image",{key:0,href:t.imageUrl,x:t.parameters[1],y:t.parameters[2],width:r.width,height:r.height,style:c(r.pointerStyle),onClick:o[0]||(o[0]=(...g)=>r.clickHandler&&r.clickHandler(...g))},null,12,u)):l("",!0)}const f=m("default",h(e,[["render",p]]))}}});
@@ -1 +0,0 @@
1
- System.register(["./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js","./ImageLoader-CDLQopxJ-4c9cccf9c544ba381bd4.js","vue","./main-74390a4d748a97f336a8.js","vue-router","vuex","vuetify"],function(v,S){"use strict";var m,d,l,n,o,g,h,u,c,p,f;return{setters:[t=>{m=t.o},t=>{d=t.s},t=>{l=t.openBlock,n=t.createElementBlock,o=t.Fragment,g=t.renderList,h=t.withDirectives,u=t.normalizeStyle,c=t.vShow,p=t.createCommentVNode},t=>{f=t.s},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(r=>r.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 r=this.appliedSettings.filter(e=>e[0]==="IMAGE").map(async e=>{let i=e[2];return i.startsWith("http")||(i=await this.getPresignedUrl(i)),{url:i,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}});if(Promise.all(r).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 i=this.parameters[4];i.startsWith("http")?this.defaultImage={...e,url:i}:this.getPresignedUrl(i).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)}}},I=["href","x","y","width","height"],w=["href","x","y","width","height"];function k(r,e,i,y,N,a){return l(),n("g",null,[(l(!0),n(o,null,g(r.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,I)),[[c,s.value==a.selectedValue]])),128)),r.defaultImage?h((l(),n("image",{key:0,href:r.defaultImage.url,x:r.defaultImage.x,y:r.defaultImage.y,width:r.defaultImage.width,height:r.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 $=v("default",f(t,[["render",k]]))}}});
@@ -1 +0,0 @@
1
- System.register(["./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js","vue","./main-74390a4d748a97f336a8.js","vue-router","vuex","vuetify"],function(i,m){"use strict";var r,l,n,s,o;return{setters:[e=>{r=e.o},e=>{l=e.openBlock,n=e.createElementBlock,s=e.toDisplayString},e=>{o=e.s},null,null,null],execute:function(){const e={mixins:[r],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},a=["x","y","fill"];function u(t,f,x,v,y,c){return l(),n("text",{x:t.parameters[0],y:t.parameters[1],fill:c.fillColor},s(t.parameters[2]),9,a)}const p=i("default",o(e,[["render",u]]))}}});
@@ -1 +0,0 @@
1
- System.register(["./Widget-orNSvnOh-c2189f557c1c3db5d0d5.js","vue","./main-74390a4d748a97f336a8.js","vue-router","vuex","vuetify"],function(u,p){"use strict";var s,a,i,l,n;return{setters:[e=>{s=e.o},e=>{a=e.openBlock,i=e.createElementBlock,l=e.toDisplayString},e=>{n=e.s},null,null,null],execute:function(){const e={mixins:[s],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId][0]},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let t="CONVERTED";this.parameters[7]&&(t=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},o=["x","y","font-size","fill"];function m(t,h,d,f,v,r){return a(),i("text",{x:t.parameters[3],y:t.parameters[4],"font-size":r.fontSize,fill:r.fillColor},l(r._value),9,o)}const c=u("default",n(e,[["render",m]]))}}});