openc3-cosmos-tool-tablemanager 7.1.0 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/tools/tablemanager/ArrayWidget-D1PArcGr-5e95e59dcd9c498f7462.js +2 -0
  3. data/tools/tablemanager/{ArrayplotWidget-DGJEXAY0-91d5f5f22643db4f83d7.js → ArrayplotWidget-DPUPy0qM-02afcf3196e0ab69e054.js} +1 -1
  4. data/tools/tablemanager/{BarColumn-DwZmAe8g-b1b7c936b8c4d196f5b2.js → BarColumn-BpdscDQf-75c9b31e68a938d09581.js} +1 -1
  5. data/tools/tablemanager/{BlockWidget-BHtugveV-24f4ed2f1875b0e73ce6.js → BlockWidget-_VUsK5T9-b55f17f61fb9dc63ebb2.js} +2 -2
  6. data/tools/tablemanager/ButtonWidget-DE41o-cg-fd878760439035b4c3ad.js +2 -0
  7. data/tools/tablemanager/CanvasWidget-BEi8h3Mq-731b9435323b23471b38.js +1 -0
  8. data/tools/tablemanager/CanvasdotWidget-eZuMgkhL-e3ced7b65730b72ced83.js +1 -0
  9. data/tools/tablemanager/{CanvasimageWidget-BpM05v_m-56014748cf3f5ecae65c.js → CanvasimageWidget-COv_Qnc8-e72ec484ab8853f95915.js} +1 -1
  10. data/tools/tablemanager/{CanvasimagevalueWidget-E6G93iGc-5c7e605915ac0533d0f8.js → CanvasimagevalueWidget-BhuUqLOo-c978e5e18a04ebe27725.js} +1 -1
  11. data/tools/tablemanager/CanvaslabelWidget-DtvbgeYH-c7f72b59d16957ed11db.js +1 -0
  12. data/tools/tablemanager/{CanvaslabelvalueWidget-B0nJeS4X-081388af5418d024ae20.js → CanvaslabelvalueWidget-C_FRIeNb-77738c4dc906dd5186ef.js} +1 -1
  13. data/tools/tablemanager/CanvaslineWidget-D1K_6mAY-f5e0e4eb054a726b3fa3.js +1 -0
  14. data/tools/tablemanager/{CanvaslinevalueWidget-BwfFyCwH-f5105bf66afc47411398.js → CanvaslinevalueWidget-D4eaxWhR-4edb9ea2c937343604af.js} +1 -1
  15. data/tools/tablemanager/CheckbuttonWidget-ByxMDkiS-4eae4e3fd85f4e53163b.js +1 -0
  16. data/tools/tablemanager/ComboboxWidget-CAGxGv2r-7a2128f28ca0b22e3930.js +1 -0
  17. data/tools/tablemanager/{DateWidget-CAiG2FIl-8974d2013233ace03575.js → DateWidget-DkNWx28s-b05a32453043a2c4dee7.js} +1 -1
  18. data/tools/tablemanager/{DetailsDialog-q5SDzw3R-5b6c429783e6055b14b4.js → DetailsDialog-F4KgYM6m-97497691b215ff8fa563.js} +1 -1
  19. data/tools/tablemanager/{DynamicWidget-BuSbQVhf-92b3a887d161c5debd83.js → DynamicWidget-BuSbQVhf-002551a789d140c03049.js} +1 -1
  20. data/tools/tablemanager/{FilechecksumWidget-DeW9wy5d-53853a7d1f86f4c7bf47.js → FilechecksumWidget-DSfNEnDJ-8de8e59b31eda4a23382.js} +1 -1
  21. data/tools/tablemanager/{FiledisplayWidget-C_zPFu2E-1f50702d4e35e8a1b146.js → FiledisplayWidget-D2cxMmrP-f986e2375a1de8049c8a.js} +1 -1
  22. data/tools/tablemanager/{FormatvalueWidget-BrvPWwfN-c719d590d6ca30637196.js → FormatvalueWidget-6-bj_PJO-a589d3637831f708d52e.js} +1 -1
  23. data/tools/tablemanager/Graph-Cz0Ns1FD-746f620dd1a4ae354bf5.js +1 -0
  24. data/tools/tablemanager/{GraphWidget-QS-VJoes-bf8cd808af1a8572eeca.js → GraphWidget-COXK3Dab-60eb240312875e235f41.js} +1 -1
  25. data/tools/tablemanager/{HorizontalWidget-cFSsdChw-f4b81125e13d416286b5.js → HorizontalWidget-C9UFBPsk-9a12a146ad84bb65862c.js} +1 -1
  26. data/tools/tablemanager/HorizontalboxWidget-CWLfmRtr-8d983507852559a33ad1.js +1 -0
  27. data/tools/tablemanager/{HorizontallineWidget-BqbLK0zc-63f04d4d32921b8f0338.js → HorizontallineWidget-DeFkOaYO-567c37b07d9e06c88f62.js} +1 -1
  28. data/tools/tablemanager/{IframeWidget-CITX8Es1-a6d41bb9ddc48a9408f3.js → IframeWidget-Bn9eGzrq-d787fdb2e4bff44fc5ed.js} +1 -1
  29. data/tools/tablemanager/{ImageLoader-DQV_11Vd-057d3d21e4709dfcb2f8.js → ImageLoader-_gAudhVo-d5409e20dc8fae1a1e77.js} +1 -1
  30. data/tools/tablemanager/{ImageviewerWidget-BIsSA7KD-e07c17c416967936de09.js → ImageviewerWidget-BUWhF32Z-1f0aab59a439aae5f3a5.js} +1 -1
  31. data/tools/tablemanager/{LabelWidget-FQI-cH_A-fdc45fd4a27f1965c765.js → LabelWidget-BhzkN06D-80ee3cd612c60e471dea.js} +1 -1
  32. data/tools/tablemanager/{LabelledWidget-KGXtQ4Zb-2bd96844e73006717b46.js → LabelledWidget-vx8NvW1b-5a692651bc93336c31bd.js} +1 -1
  33. data/tools/tablemanager/LabelprogressbarWidget-t5PvKuS4-33c79db8902659c02f08.js +1 -0
  34. data/tools/tablemanager/LabelsparklineWidget-CebbEH-j-ab1ff80b05b9d12e1847.js +1 -0
  35. data/tools/tablemanager/LabelvalueWidget-Cbs1DBK2-bab12a58f9349a0fac81.js +1 -0
  36. data/tools/tablemanager/{LabelvaluedescWidget-BppM5vGp-10583a91ca75140f1ad5.js → LabelvaluedescWidget-B7OIOGc0-88f646fffbb5da0600d4.js} +1 -1
  37. data/tools/tablemanager/LabelvaluelimitsbarWidget-C57kf-oQ-7243959fa5d615fad793.js +1 -0
  38. data/tools/tablemanager/LabelvaluelimitscolumnWidget-BRlNDEqp-a8ab53d87ae363d6a4c8.js +1 -0
  39. data/tools/tablemanager/LabelvaluerangebarWidget-Pt_evm3v-8468d72c7f60d21444e7.js +1 -0
  40. data/tools/tablemanager/{Layout-d-vb0okO-ec80da92f46fda74e8fc.js → Layout-CKmC50QZ-f129ebe9d33eebd829c0.js} +1 -1
  41. data/tools/tablemanager/{LedWidget-Cmr6eVG2-18f13db3a2c52267fd78.js → LedWidget-D1lmNXpi-0532ee6126116c7b10e8.js} +1 -1
  42. data/tools/tablemanager/{LimitsBar-qMynDHYT-d6962c5816b0af6e1dcf.js → LimitsBar-D5IZu7eX-3666f677e8a141dda10d.js} +1 -1
  43. data/tools/tablemanager/{LimitsbarWidget-CMvcwa-m-cfc6b4ec3b5292d9e5ad.js → LimitsbarWidget-VpxQXE-e-d51a6f6b51bdd91a0018.js} +1 -1
  44. data/tools/tablemanager/{LimitscolorWidget-CZ9wMtcI-397b9d7345feb996626c.js → LimitscolorWidget-79P41CX7-10a451e619a6ee6377d6.js} +1 -1
  45. data/tools/tablemanager/{LimitscolumnWidget-r84KJGU--630178083b7420d3dcb1.js → LimitscolumnWidget-BFDXhJeZ-7265ed002be5217eb052.js} +1 -1
  46. data/tools/tablemanager/LinegraphWidget-VqkpOlws-b7a5600f0bc7eabe4d98.js +1 -0
  47. data/tools/tablemanager/MatrixbycolumnsWidget--ihvirDP-de5a9fd6e5d6cf1b75a9.js +1 -0
  48. data/tools/tablemanager/OpenC3TimePicker-B0lAIU91-4af4359c26da8bf0fd6e.js +1 -0
  49. data/tools/tablemanager/{ProgressbarWidget-DPbAVjdC-950884dfb2ab6b18713e.js → ProgressbarWidget-BIB3r9SL-5bff9b74a5a24ed332bb.js} +1 -1
  50. data/tools/tablemanager/RadiobuttonWidget-C5rxLM7K-6ba3c583302a040d1d44.js +1 -0
  51. data/tools/tablemanager/{RadiogroupWidget-CMM_p1eA-b952d23c29c125d9e7e0.js → RadiogroupWidget-CciTCv1U-8efa48d60d0b5ec07d7c.js} +1 -1
  52. data/tools/tablemanager/{RangebarWidget-DJXGUHAc-cb3e8fc32ed244040e9f.js → RangebarWidget-MPQYi2Km-08c5e4108a4d3988031d.js} +1 -1
  53. data/tools/tablemanager/{RollupWidget-BbWLSsTT-d0bb5029f70ebe3c9ec9.js → RollupWidget-CfjGAhzg-f761abccfc7066c772e5.js} +1 -1
  54. data/tools/tablemanager/ScrollwindowWidget-CupaygNN-8a53ebfdaf51c1036ebf.js +1 -0
  55. data/tools/tablemanager/{SignalWidget-65q0tiuo-b8f73bec8cff5e18010d.js → SignalWidget-C-qecoTO-910a9bc38b99bedcd57e.js} +1 -1
  56. data/tools/tablemanager/{SpacerWidget-DFzbojmX-439544d138673f167cbf.js → SpacerWidget-VVkOCb6N-4f3eea68b518ed5f022f.js} +1 -1
  57. data/tools/tablemanager/SparklineWidget-Dsmn38z_-9041d23b2e4e015d7a75.js +1 -0
  58. data/tools/tablemanager/{TabbookWidget-CELMWyx7-7af33bb0a8a9f8cfd444.js → TabbookWidget-CXklff-l-360d2c65390c0571d22b.js} +1 -1
  59. data/tools/tablemanager/TableManager-00f177903f37778a5336.js +16 -0
  60. data/tools/tablemanager/TextboxWidget-CHs2VYIv-2868d4fd63c2561bf97b.js +1 -0
  61. data/tools/tablemanager/TextfieldWidget-CdANAW-6-97c5831ab8e88bb90cb3.js +1 -0
  62. data/tools/tablemanager/TimeWidget-D0xT1wXR-dfefd33ed56e1d52f59d.js +1 -0
  63. data/tools/tablemanager/TitleWidget-68NWCcXB-1f3e7ca4624c976e380e.js +1 -0
  64. data/tools/tablemanager/{VWidget-BDy0211S-0e20de64faf652f6eef1.js → VWidget-oMbywhLA-a3445c8c7a212fc13231.js} +1 -1
  65. data/tools/tablemanager/ValueWidget-B1aGUBP7-2b9a2c1b61afe90af221.js +1 -0
  66. data/tools/tablemanager/ValuelimitsbarWidget-B7KcRjLS-399973d3f9b5b24ed812.js +1 -0
  67. data/tools/tablemanager/{ValuelimitscolumnWidget-7DXCsVW_-256430774855a4a542bd.js → ValuelimitscolumnWidget-BVt6nLXq-6d27ca205ba3d773006f.js} +1 -1
  68. data/tools/tablemanager/ValuerangebarWidget-uVZEI32U-8b3b083a5f9cdbef7df9.js +1 -0
  69. data/tools/tablemanager/{VerticalWidget-BOtXAhxt-5e4c9d1cd9f7de6a3a9f.js → VerticalWidget-DlftYBjH-ead366d0a8e5ac6d1747.js} +1 -1
  70. data/tools/tablemanager/VerticalboxWidget-C7RrkfY0-24b8e8bde647e0523a8a.js +1 -0
  71. data/tools/tablemanager/{Widget-BDsgRxuV-0ee27357bedb11780ab2.js → Widget-D_HaosJK-24d34ad275ee06d9cb88.js} +1 -1
  72. data/tools/tablemanager/main-90fc5051cec3c87257d6.js +1497 -0
  73. data/tools/tablemanager/main.js +1 -1
  74. metadata +72 -72
  75. data/tools/tablemanager/ArrayWidget-CcQFJGCA-f231b89fb021aba5212e.js +0 -2
  76. data/tools/tablemanager/ButtonWidget-Cc9cYsg8-4c8564e5b813084f0c22.js +0 -2
  77. data/tools/tablemanager/CanvasWidget-Bn70gBcc-a0f4bbcadd8ae233c33f.js +0 -1
  78. data/tools/tablemanager/CanvasdotWidget-CMROfW3O-24b77de6fc57f6c6afa2.js +0 -1
  79. data/tools/tablemanager/CanvaslabelWidget-C074R2Fy-5d5bc71e5a8922b6d5a0.js +0 -1
  80. data/tools/tablemanager/CanvaslineWidget-CxnNAqOX-ad3e5ec7247519227dd9.js +0 -1
  81. data/tools/tablemanager/CheckbuttonWidget-yAm10oX0-2a5d7d1e219beeacd56c.js +0 -1
  82. data/tools/tablemanager/ComboboxWidget-BnWksnnp-b547dbc0d3cfb7babaee.js +0 -1
  83. data/tools/tablemanager/Graph-BCvaO4yI-f908519d103fe994d48b.js +0 -1
  84. data/tools/tablemanager/HorizontalboxWidget-CKA7rLGd-21e5cac4595b75ac9019.js +0 -1
  85. data/tools/tablemanager/LabelprogressbarWidget-72WyzD_Q-83ed58465cbd1c776337.js +0 -1
  86. data/tools/tablemanager/LabelsparklineWidget-DtWNf4mK-a384be413f7c4f308093.js +0 -1
  87. data/tools/tablemanager/LabelvalueWidget-D_JLdY7r-37fcf5b7a01b8405e52d.js +0 -1
  88. data/tools/tablemanager/LabelvaluelimitsbarWidget-B69ogLif-32f7e527784b412c76c3.js +0 -1
  89. data/tools/tablemanager/LabelvaluelimitscolumnWidget-DPYwFdgq-88e4af427d0101d6e2c0.js +0 -1
  90. data/tools/tablemanager/LabelvaluerangebarWidget-BT0BcOoK-b950af451ee3344ddc13.js +0 -1
  91. data/tools/tablemanager/LinegraphWidget-COGBGOjF-da8b26e4c1c27c91a0a3.js +0 -1
  92. data/tools/tablemanager/MatrixbycolumnsWidget-Dx2iz0YF-baaad99786a72a8e5eff.js +0 -1
  93. data/tools/tablemanager/OpenC3TimePicker-C3vCnk72-c3b637642f2d18362bd4.js +0 -1
  94. data/tools/tablemanager/RadiobuttonWidget-iXI9yCDk-bc1e3c1684232c056349.js +0 -1
  95. data/tools/tablemanager/ScrollwindowWidget-Dxhp7yKn-df01e5f5b5a0f23385fa.js +0 -1
  96. data/tools/tablemanager/SparklineWidget-Bu4I8zY0-5e3ae7c6264fb6221e50.js +0 -1
  97. data/tools/tablemanager/TableManager-1de8a7dfafe124bf884e.js +0 -16
  98. data/tools/tablemanager/TextboxWidget-DYsqXntS-9b9ac9b528c39a2e78d8.js +0 -1
  99. data/tools/tablemanager/TextfieldWidget-BIUgV9Q4-d1fa3486ce9e9f86183d.js +0 -1
  100. data/tools/tablemanager/TimeWidget-BPXcY1Wy-df6106df72f0570f5323.js +0 -1
  101. data/tools/tablemanager/TitleWidget-DJ9mHRLE-505381536ce922d060cb.js +0 -1
  102. data/tools/tablemanager/ValueWidget-DzOSy7lp-f87f7987cdf1897032cb.js +0 -1
  103. data/tools/tablemanager/ValuelimitsbarWidget-D5dSlW6D-07339164d1282f72cccd.js +0 -1
  104. data/tools/tablemanager/ValuerangebarWidget-BWjnpmyy-189339a4c5fd1b8e3621.js +0 -1
  105. data/tools/tablemanager/VerticalboxWidget-RAsXfGdI-d0c453757b2a1bbf74b0.js +0 -1
  106. data/tools/tablemanager/main-00f66f7e3e3538618993.js +0 -1496
@@ -0,0 +1,16 @@
1
+ System.register(["./main-90fc5051cec3c87257d6.js","vue","single-spa","./VWidget-oMbywhLA-a3445c8c7a212fc13231.js","./IframeWidget-Bn9eGzrq-d787fdb2e4bff44fc5ed.js","vue-router","pinia","vuetify","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(En,Ti){"use strict";var ge,ye,Ne,v,E,C,Et,g,h,U,j,P,K,te,Fe,T,Ye,je,De,ne,Be,be,Ot,St,kt,Ze,At,Ct,Tt;return{setters:[R=>{ge=R.e,ye=R.u,Ne=R._},R=>{v=R.resolveComponent,E=R.openBlock,C=R.createBlock,Et=R.Teleport,g=R.createVNode,h=R.withCtx,U=R.createElementVNode,j=R.toDisplayString,P=R.createElementBlock,K=R.Fragment,te=R.renderList,Fe=R.ref,T=R.createTextVNode,Ye=R.mergeProps,je=R.createSlots,De=R.normalizeStyle,ne=R.createCommentVNode,Be=R.withKeys,be=R.withModifiers,Ot=R.withDirectives,St=R.vShow,kt=R.computed,Ze=R.watch,At=R.normalizeProps,Ct=R.guardReactiveProps},null,R=>{Tt=R.g},null,null,null,null,null,null],execute:(function(){var R=document.createElement("style");R.textContent=`.filename[data-v-1da113a2]{background-color:var(--color-background-base-default)}
2
+ /*$vite$:1*/`,document.head.appendChild(R);const On={__name:"TopBarMenu",props:{menu:{type:Object,required:!0},title:{type:String,required:!0}},emits:["submenu-click"],setup(e,{emit:t}){const n=t,r=Fe(!1);function o(){r.value=!1}function i(s){return s.replaceAll(" ","-").toLowerCase()}return(s,a)=>{const c=v("v-icon"),u=v("v-btn"),d=v("v-divider"),p=v("v-list-item-title"),b=v("v-list-item"),m=v("v-list"),x=v("v-menu"),f=v("v-radio"),A=v("v-list-item-action"),y=v("v-radio-group"),S=v("v-checkbox");return E(),C(x,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=_=>r.value=_),"close-on-content-click":!1},{activator:h(({props:_})=>[g(u,Ye(_,{variant:"outlined",class:"mx-1 menu-button",text:e.menu.label,"data-test":i(`${e.title} ${e.menu.label}`)}),{append:h(()=>[g(c,{class:"menu-button-icon"},{default:h(()=>[...a[1]||(a[1]=[T(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:h(()=>[g(m,null,{default:h(()=>[(E(!0),P(K,null,te(e.menu.items,(_,N)=>(E(),P(K,null,[_.divider?(E(),C(d,{key:N+"-divider"})):_.subMenu&&_.subMenu.length>0?(E(),P("div",{key:N+"-submenu"},[(E(),C(x,{key:N,"open-on-hover":"",location:"right"},{activator:h(({props:q})=>[(E(),C(b,Ye({ref_for:!0},q,{key:N,disabled:_.disabled}),je({append:h(()=>[g(c,null,{default:h(()=>[...a[2]||(a[2]=[T(" mdi-chevron-right ",-1)])]),_:1})]),default:h(()=>[!_.radio&&!_.checkbox?(E(),C(p,{key:0,style:De("cursor: pointer;"+(_.disabled?"opacity: 0.2":""))},{default:h(()=>[T(j(_.label),1)]),_:2},1032,["style"])):ne("",!0)]),_:2},[_.icon?{name:"prepend",fn:h(()=>[g(c,{disabled:_.disabled},{default:h(()=>[T(j(_.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:h(()=>[g(m,null,{default:h(()=>[(E(!0),P(K,null,te(_.subMenu,(q,re)=>(E(),C(b,{key:re,"prepend-icon":q.icon,onClick:me=>n("submenu-click",q)},{default:h(()=>[g(p,null,{default:h(()=>[T(j(q.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):_.radioGroup?(E(),C(y,{key:N+"-radio-group",class:"ma-0 pa-0",density:"compact","hide-details":"","model-value":_.value,"onUpdate:modelValue":_.command},{default:h(()=>[(E(!0),P(K,null,te(_.choices,(q,re)=>(E(),C(b,{key:re+"-choice"},{default:h(()=>[g(A,{class:"list-action"},{default:h(()=>[g(f,{color:"secondary",label:q.label,value:q.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(E(),C(b,{key:N+"-list",disabled:_.disabled,"data-test":i(`${e.title} ${e.menu.label} ${_.label}`),onClick:()=>{_.command(_),_.checkbox||o()}},je({default:h(()=>[_.checkbox?(E(),C(A,{key:0,class:"list-action"},{default:h(()=>[g(S,{modelValue:_.checked,"onUpdate:modelValue":q=>_.checked=q,label:_.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ne("",!0),!_.radio&&!_.checkbox?(E(),C(p,{key:1,style:De("cursor: pointer;"+(_.disabled?"opacity: 0.2":""))},{default:h(()=>[T(j(_.label),1)]),_:2},1032,["style"])):ne("",!0)]),_:2},[_.icon?{name:"prepend",fn:h(()=>[g(c,{icon:_.icon,disabled:_.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["disabled","data-test","onClick"]))],64))),256))]),_:1})]),_:1},8,["modelValue"])}}},Sn={components:{TopBarMenu:On},props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},mounted(){document.title=this.title},methods:{subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}}},kn={class:"app-title mr-2"};function An(e,t,n,r,o,i){const s=v("v-col"),a=v("v-row"),c=v("TopBarMenu");return E(),C(Et,{to:"#openc3-menu"},[g(a,{"no-gutters":""},{default:h(()=>[g(s,{"align-self":"end"},{default:h(()=>[U("span",kn,j(n.title),1)]),_:1})]),_:1}),g(a,{dense:"",class:"flex-nowrap"},{default:h(()=>[(E(!0),P(K,null,te(n.menus,(u,d)=>(E(),C(c,{key:d+"-top-menu",ref_for:!0,ref:"topmenu",menu:u,title:n.title,onSubmenuClick:i.subMenuClick},null,8,["menu","title","onSubmenuClick"]))),128))]),_:1})])}const Cn=ge(Sn,[["render",An],["__scopeId","data-v-f4fb184e"]]),Tn=function(e){if(e&&e.includes(".")){let t=e.split(".").pop();if(t==="py")return"mdi-language-python";if(t==="rb")return"mdi-language-ruby";if(t==="js")return"mdi-language-javascript";if(t==="csv")return"mdi-file-delimited";if(t==="txt")return"mdi-file-document";if(t==="png"||t==="gif"||t==="jpg")return"mdi-file-image"}return"mdi-file"},Rn={class:"tree-node"},Nn={class:"content-wrapper"},Fn=["tabindex"],jn={key:1},Dn={key:2,class:"children"},Bn={__name:"TreeNode",props:{node:{type:Object,required:!0},search:{type:String,default:""},type:{type:String,default:"open"}},emits:["nodeToggled","request","delete"],setup(e,{emit:t}){const n=e,r=Fe(n.node.isOpen||!1),o=kt(()=>{const m=x=>!n.search||x.path.toLowerCase().includes(n.search.toLowerCase())?!0:!!x.children?.some(m);return m(n.node)});Ze(()=>n.node.isOpen,m=>{r.value=m}),Ze(()=>n.search,m=>{m?n.node.isOpen||d():n.node.isOpen&&d()});const i=t,s=Fe({show:!1,text:"",x:0,y:0}),a=(m,x)=>{if(!x||x.length<=50)return;const f=m.target.getBoundingClientRect(),A=f.left,y=f.top;s.value.text=x,s.value.x=A,s.value.y=y-40,s.value.show=!0},c=()=>{s.value.show=!1},u=m=>{m.children?(d(),n.type==="save"&&i("request",m)):i("request",m)},d=()=>{n.node.children&&(r.value=!r.value,n.node.isOpen=r.value,i("nodeToggled",n.node.id,r.value))},p=(m,x)=>{i("nodeToggled",m,x)},b=m=>{i("request",m)};return(m,x)=>{const f=v("v-tooltip"),A=v("v-icon"),y=v("v-btn"),S=v("tree-node",!0);return E(),P(K,null,[g(f,{modelValue:s.value.show,"onUpdate:modelValue":x[0]||(x[0]=_=>s.value.show=_),text:s.value.text,location:"top",style:De(`position: fixed; left: ${s.value.x}px; top: ${s.value.y}px; pointer-events: none;`)},null,8,["modelValue","text","style"]),U("div",Rn,[o.value?(E(),P("div",{key:0,class:"node-content",onClick:x[4]||(x[4]=_=>u(e.node))},[U("div",Nn,[e.node.children?(E(),C(A,{key:0,class:"toggle-icon",style:{"padding-right":"10px"}},{default:h(()=>[T(j(e.node.isOpen||e.search?"mdi-menu-down":"mdi-menu-right"),1)]),_:1})):ne("",!0),e.node.children?(E(),C(A,{key:1,size:"small",style:{"padding-right":"10px"}},{default:h(()=>[...x[5]||(x[5]=[T(j("mdi-folder"),-1)])]),_:1})):e.node.title.includes(".rb")?(E(),C(A,{key:2,size:"small",style:{"padding-right":"10px"}},{default:h(()=>[...x[6]||(x[6]=[T(j("mdi-language-ruby"),-1)])]),_:1})):e.node.title.includes(".py")?(E(),C(A,{key:3,size:"small",style:{"padding-right":"10px"}},{default:h(()=>[...x[7]||(x[7]=[T(j("mdi-language-python"),-1)])]),_:1})):(E(),C(A,{key:4,size:"small",style:{"padding-right":"10px"}},{default:h(()=>[...x[8]||(x[8]=[T(j("mdi-file-document"),-1)])]),_:1})),U("span",{class:"text-h6",tabindex:e.node.children?-1:0,onKeyup:x[1]||(x[1]=Be(_=>u(e.node),["enter"])),onMouseenter:x[2]||(x[2]=_=>a(_,e.node.title)),onMouseleave:c},j(e.node.title),41,Fn),e.node.title==="__TEMP__"?(E(),C(y,{key:5,icon:"mdi-delete",variant:"text",style:{"margin-left":"auto"},"aria-label":"Delete",onClick:x[3]||(x[3]=_=>i("delete"))})):ne("",!0)])])):(E(),P("div",jn)),e.node.children&&(e.node.isOpen||e.search)?(E(),P("div",Dn,[(E(!0),P(K,null,te(e.node.children,_=>(E(),C(S,{key:_.id,node:_,search:e.search,type:e.type,onNodeToggled:p,onRequest:b},null,8,["node","search","type"]))),128))])):ne("",!0)])],64)}}},Un=ge(Bn,[["__scopeId","data-v-83f7a088"]]),Pn={components:{TreeNode:Un},props:{type:{type:String,required:!0,validator:function(e){return["open","save"].indexOf(e)!==-1}},apiUrl:{type:String,default:null},requireTargetParentDir:Boolean,inputFilename:{type:String,default:null},modelValue:Boolean,customHelpText:{type:String,default:null}},emits:["update:modelValue","error","clear-temp","file","filename"],data(){return{tree:[],items:[],search:null,selectedFile:null,disableButtons:!0,targets:[],targetsRetrieved:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},title:function(){return this.type==="open"?"File Open":"File Save As..."},submit:function(){return this.type==="open"?"OPEN":"SAVE"},helpText:function(){return this.customHelpText?this.customHelpText:this.type==="open"?"Click on folders to open them and then click a file to select it before clicking Open. Use the search box to filter the results. You can also Tab to the files and Enter to select.":"Click on the folder to save into. Then complete the filename path with the desired name. Use the search box to filter the results."},error:function(){if(this.selectedFile===""||this.selectedFile===null)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let e=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(e+="be in a target directory and "),e+=`only contain alphanumeric characters (including !-_.*) and a valid extension.
3
+
4
+ For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,e}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const e="0-9a-zA-Z";let t=`[${`${e}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${e}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},created(){ye.get("/openc3-api/targets").then(e=>{this.targets=e.data,this.targets.push("__TEMP__");const t=this.targets.map(n=>(this.items.push({id:n,disabled:!0,title:n,children:[],path:n}),this.loadFiles(n)));Promise.all(t).then(()=>{this.disableButtons=!1})})},methods:{calcIcon:function(e){return Tn(e)},loadFiles:function(e){return ye.get(this.apiUrl,{params:{target:e}}).then(t=>{if(t.data.length===0){this.items=this.items.filter(r=>r.id!==e);return}for(let r of t.data.sort())this.filepath=r,this.insertFile(this.items,2,r);this.inputFilename&&(this.selectedFile=this.inputFilename);const n=this.items.findIndex(r=>r.id===e);n!==-1&&(this.items[n].disabled=!1)}).catch(t=>{this.$emit("error",`Failed to connect to OpenC3. ${t}`)})},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(e){e.length===0?this.selectedFile=null:(this.selectedFile=this.findItem(this.items,e.id),setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100))},findItem:function(e,t){for(let n of e){if(n.id===t)return n.path;if(n.children){const r=this.findItem(n.children,t);if(r)return r}}return null},exists:function(e,t){let n=!1;for(let r of e){if(r.path===t||r.path.length>1&&r.path[r.path.length-1]==="*"&&r.path.slice(0,r.path.length-1)===t)return!0;r.children&&(n=n||this.exists(r.children,t))}return n},success:function(){this.selectedFile!==null&&this.error===null&&!this.disableButtons&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(e=>ye.delete("/script-api/scripts/temp_files")).then(e=>{this.$emit("clear-temp"),this.loadFiles("__TEMP__")}).catch(e=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${e}`})})},openSuccess:function(){this.disableButtons=!0,ye.get(`${this.apiUrl}/${this.selectedFile}`).then(e=>{const t={name:this.selectedFile,contents:e.data.contents};e.data.suites&&(t.suites=JSON.parse(e.data.suites)),e.data.error&&(t.error=e.data.error),e.data.success&&(t.success=e.data.success);const n=e.data.locked,r=e.data.breakpoints;this.$emit("file",{file:t,locked:n,breakpoints:r}),this.clear()}).catch(e=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${e}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(e=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(e=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,t,n){let r=n.split("/");if(r.length===1){e.push({id:this.filepath,title:r[0],file:"ruby",path:this.filepath});return}const o=e.findIndex(i=>i.title===r[0]);o===-1?(e.push({id:this.filepath.split("/").slice(0,t-1).join("/"),title:r[0],children:[],path:this.filepath.split("/").slice(0,t-1).join("/")}),this.insertFile(e[e.length-1].children,t+1,r.slice(1).join("/"))):this.insertFile(e[o].children,t+1,r.slice(1).join("/"))}}},In={class:"pa-3"},Vn={class:"overflow-y-auto tree-container"};function Ln(e,t,n,r,o,i){const s=v("v-spacer"),a=v("v-progress-linear"),c=v("v-toolbar"),u=v("v-row"),d=v("v-text-field"),p=v("tree-node"),b=v("v-card-text"),m=v("v-btn"),x=v("v-card-actions"),f=v("v-card"),A=v("v-dialog");return E(),C(A,{modelValue:i.show,"onUpdate:modelValue":t[4]||(t[4]=y=>i.show=y),persistent:"",width:"800",onKeydown:[t[5]||(t[5]=Be(y=>o.disableButtons?null:i.success(),["enter"])),t[6]||(t[6]=Be(y=>o.disableButtons?null:i.show=!1,["esc"]))]},{default:h(()=>[g(f,{class:"file-open-save-card d-flex flex-column"},{default:h(()=>[U("form",{class:"d-flex flex-column",onSubmit:t[3]||(t[3]=be((...y)=>i.success&&i.success(...y),["prevent"]))},[g(c,{height:"24"},{default:h(()=>[g(s),U("span",null,j(i.title),1),g(s),g(a,{active:o.disableButtons,indeterminate:"",location:"bottom",absolute:""},null,8,["active"])]),_:1}),g(b,{class:"overflow-y-auto"},{default:h(()=>[U("div",In,[g(u,null,{default:h(()=>[T(j(i.helpText),1)]),_:1}),g(u,{dense:"",class:"mt-5"},{default:h(()=>[g(d,{modelValue:o.search,"onUpdate:modelValue":t[0]||(t[0]=y=>o.search=y),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),U("div",Vn,[(E(!0),P(K,null,te(o.items,y=>(E(),C(p,{key:`${y.id}`,node:y,search:o.search,type:n.type,onRequest:i.activeFile,onDelete:i.deleteTemp},null,8,["node","search","type","onRequest","onDelete"]))),128))]),g(u,{class:"my-2"},{default:h(()=>[g(d,{modelValue:o.selectedFile,"onUpdate:modelValue":t[1]||(t[1]=y=>o.selectedFile=y),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:o.disableButtons||n.type==="open"},null,8,["modelValue","disabled"])]),_:1}),g(u,{dense:""},{default:h(()=>[Ot(U("div",{class:"my-2 text-red overflow-y-auto error-container",style:{"white-space":"pre-line"}},j(i.error),513),[[St,i.error]])]),_:1})])]),_:1}),g(x,null,{default:h(()=>[g(s),g(m,{variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:o.disableButtons,onClick:t[2]||(t[2]=y=>i.show=!1)},{default:h(()=>[...t[7]||(t[7]=[T(" Cancel ",-1)])]),_:1},8,["disabled"]),g(m,{ref:"submitBtn",type:"submit",color:"primary",variant:"elevated",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:o.disableButtons||!!i.error,onClick:be(i.success,["prevent"])},{default:h(()=>[T(j(i.submit),1)]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const $n=ge(Pn,[["render",Ln]]),Mn={props:{modelValue:Boolean,text:{type:String,default:null},title:{type:String,default:null},width:{type:Number,default:800}},emits:["update:modelValue"],computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{download:function(){const e=new Blob([this.text],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.title}.txt`),t.click()}}},qn={class:"mx-2"},zn={class:"pa-3"},Hn={class:"text"};function Jn(e,t,n,r,o,i){const s=v("v-spacer"),a=v("v-btn"),c=v("v-toolbar"),u=v("v-card-text"),d=v("v-card-actions"),p=v("v-card"),b=v("v-dialog");return E(),C(b,{modelValue:i.show,"onUpdate:modelValue":t[1]||(t[1]=m=>i.show=m),width:n.width,scrollable:""},{default:h(()=>[g(p,null,{default:h(()=>[g(c,{height:"24"},{default:h(()=>[g(s),U("span",null,j(n.title),1),g(s),U("div",qn,[g(a,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:i.download},null,8,["onClick"])])]),_:1}),g(u,{style:{"max-height":"80vh"}},{default:h(()=>[U("div",zn,[U("span",Hn,j(n.text),1)])]),_:1}),g(d,{class:"px-2"},{default:h(()=>[g(s),g(a,{variant:"flat",onClick:t[0]||(t[0]=m=>i.show=!i.show)},{default:h(()=>[...t[2]||(t[2]=[T(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const Wn=ge(Mn,[["render",Jn],["__scopeId","data-v-1a0bca65"]]);function Rt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Kn}=Object.prototype,{getPrototypeOf:Ue}=Object,{iterator:Pe,toStringTag:Nt}=Symbol,Ie=(e=>t=>{const n=Kn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Z=e=>(e=e.toLowerCase(),t=>Ie(t)===e),Ve=e=>t=>typeof t===e,{isArray:fe}=Array,pe=Ve("undefined");function we(e){return e!==null&&!pe(e)&&e.constructor!==null&&!pe(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ft=Z("ArrayBuffer");function Xn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ft(e.buffer),t}const Gn=Ve("string"),W=Ve("function"),jt=Ve("number"),ve=e=>e!==null&&typeof e=="object",Qn=e=>e===!0||e===!1,Le=e=>{if(Ie(e)!=="object")return!1;const t=Ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Nt in e)&&!(Pe in e)},Yn=e=>{if(!ve(e)||we(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Zn=Z("Date"),er=Z("File"),tr=e=>!!(e&&typeof e.uri<"u"),nr=e=>e&&typeof e.getParts<"u",rr=Z("Blob"),or=Z("FileList"),ir=e=>ve(e)&&W(e.pipe);function sr(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Dt=sr(),Bt=typeof Dt.FormData<"u"?Dt.FormData:void 0,ar=e=>{if(!e)return!1;if(Bt&&e instanceof Bt)return!0;const t=Ue(e);if(!t||t===Object.prototype||!W(e.append))return!1;const n=Ie(e);return n==="formdata"||n==="object"&&W(e.toString)&&e.toString()==="[object FormData]"},lr=Z("URLSearchParams"),[cr,ur,dr,fr]=["ReadableStream","Request","Response","Headers"].map(Z),pr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xe(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),fe(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(we(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function Ut(e,t){if(we(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ae=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pt=e=>!pe(e)&&e!==ae;function et(...e){const{caseless:t,skipUndefined:n}=Pt(this)&&this||{},r={},o=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=t&&Ut(r,s)||s,c=tt(r,a)?r[a]:void 0;Le(c)&&Le(i)?r[a]=et(c,i):Le(i)?r[a]=et({},i):fe(i)?r[a]=i.slice():(!n||!pe(i))&&(r[a]=i)};for(let i=0,s=e.length;i<s;i++)e[i]&&xe(e[i],o);return r}const hr=(e,t,n,{allOwnKeys:r}={})=>(xe(t,(o,i)=>{n&&W(o)?Object.defineProperty(e,i,{__proto__:null,value:Rt(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),mr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_r=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},gr=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yr=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},br=e=>{if(!e)return null;if(fe(e))return e;let t=e.length;if(!jt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},wr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ue(Uint8Array)),vr=(e,t)=>{const n=(e&&e[Pe]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},xr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Er=Z("HTMLFormElement"),Or=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),tt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Sr=Z("RegExp"),It=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};xe(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},kr=e=>{It(e,(t,n)=>{if(W(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(W(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ar=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return fe(e)?r(e):r(String(e).split(t)),n},Cr=()=>{},Tr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Rr(e){return!!(e&&W(e.append)&&e[Nt]==="FormData"&&e[Pe])}const Nr=e=>{const t=new WeakSet,n=r=>{if(ve(r)){if(t.has(r))return;if(we(r))return r;if(!("toJSON"in r)){t.add(r);const o=fe(r)?[]:{};return xe(r,(i,s)=>{const a=n(i);!pe(a)&&(o[s]=a)}),t.delete(r),o}}return r};return n(e)},Fr=Z("AsyncFunction"),jr=e=>e&&(ve(e)||W(e))&&W(e.then)&&W(e.catch),Vt=((e,t)=>e?setImmediate:t?((n,r)=>(ae.addEventListener("message",({source:o,data:i})=>{o===ae&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ae.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",W(ae.postMessage)),Dr=typeof queueMicrotask<"u"?queueMicrotask.bind(ae):typeof process<"u"&&process.nextTick||Vt,Br=e=>e!=null&&W(e[Pe]),l={isArray:fe,isArrayBuffer:Ft,isBuffer:we,isFormData:ar,isArrayBufferView:Xn,isString:Gn,isNumber:jt,isBoolean:Qn,isObject:ve,isPlainObject:Le,isEmptyObject:Yn,isReadableStream:cr,isRequest:ur,isResponse:dr,isHeaders:fr,isUndefined:pe,isDate:Zn,isFile:er,isReactNativeBlob:tr,isReactNative:nr,isBlob:rr,isRegExp:Sr,isFunction:W,isStream:ir,isURLSearchParams:lr,isTypedArray:wr,isFileList:or,forEach:xe,merge:et,extend:hr,trim:pr,stripBOM:mr,inherits:_r,toFlatObject:gr,kindOf:Ie,kindOfTest:Z,endsWith:yr,toArray:br,forEachEntry:vr,matchAll:xr,isHTMLForm:Er,hasOwnProperty:tt,hasOwnProp:tt,reduceDescriptors:It,freezeMethods:kr,toObjectSet:Ar,toCamelCase:Or,noop:Cr,toFiniteNumber:Tr,findKey:Ut,global:ae,isContextDefined:Pt,isSpecCompliantForm:Rr,toJSONObject:Nr,isAsyncFn:Fr,isThenable:jr,setImmediate:Vt,asap:Dr,isIterable:Br},Ur=l.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"]),Pr=e=>{const t={};let n,r,o;return e&&e.split(`
5
+ `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Ur[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function Ir(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Vr=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Lr=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function nt(e,t){return l.isArray(e)?e.map(n=>nt(n,t)):Ir(String(e).replace(t,""))}const $r=e=>nt(e,Vr),Mr=e=>nt(e,Lr);function Lt(e){const t=Object.create(null);return l.forEach(e.toJSON(),(n,r)=>{t[r]=Mr(n)}),t}const $t=Symbol("internals");function Ee(e){return e&&String(e).trim().toLowerCase()}function $e(e){return e===!1||e==null?e:l.isArray(e)?e.map($e):$r(String(e))}function qr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const zr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rt(e,t,n,r,o){if(l.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!l.isString(t)){if(l.isString(r))return t.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(t)}}function Hr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jr(e,t){const n=l.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let J=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(s,a,c){const u=Ee(a);if(!u)throw new Error("header name must be a non-empty string");const d=l.findKey(r,u);(!d||r[d]===void 0||c===!0||c===void 0&&r[d]!==!1)&&(r[d||a]=$e(s))}const i=(s,a)=>l.forEach(s,(c,u)=>o(c,u,a));if(l.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(l.isString(e)&&(e=e.trim())&&!zr(e))i(Pr(e),t);else if(l.isObject(e)&&l.isIterable(e)){let s={},a,c;for(const u of e){if(!l.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(a=s[c])?l.isArray(a)?[...a,u[1]]:[a,u[1]]:u[1]}i(s,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=Ee(e),e){const n=l.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return qr(r);if(l.isFunction(t))return t.call(this,r,n);if(l.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ee(e),e){const n=l.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||rt(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function o(i){if(i=Ee(i),i){const s=l.findKey(n,i);s&&(!t||rt(n,n[s],s,t))&&(delete n[s],r=!0)}}return l.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];(!e||rt(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return l.forEach(this,(r,o)=>{const i=l.findKey(n,o);if(i){t[i]=$e(r),delete t[o];return}const s=e?Hr(o):String(o).trim();s!==o&&delete t[o],t[s]=$e(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return l.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&l.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
6
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const t=(this[$t]=this[$t]={accessors:{}}).accessors,n=this.prototype;function r(o){const i=Ee(o);t[i]||(Jr(n,o),t[i]=!0)}return l.isArray(e)?e.forEach(r):r(e),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(J.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),l.freezeMethods(J);const Wr="[REDACTED ****]";function Kr(e){if(l.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(l.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Xr(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],o=i=>{if(i===null||typeof i!="object"||l.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof J&&(i=i.toJSON()),r.push(i);let s;if(l.isArray(i))s=[],i.forEach((a,c)=>{const u=o(a);l.isUndefined(u)||(s[c]=u)});else{if(!l.isPlainObject(i)&&Kr(i))return r.pop(),i;s=Object.create(null);for(const[a,c]of Object.entries(i)){const u=n.has(a.toLowerCase())?Wr:o(c);l.isUndefined(u)||(s[a]=u)}}return r.pop(),s};return o(e)}let w=class vn extends Error{static from(t,n,r,o,i,s){const a=new vn(t.message,n||t.code,r,o,i);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(t,n,r,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&l.hasOwnProp(t,"redact")?t.redact:void 0,r=l.isArray(n)&&n.length>0?Xr(t,n):l.toJSONObject(t);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:r,code:this.code,status:this.status}}};w.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",w.ERR_BAD_OPTION="ERR_BAD_OPTION",w.ECONNABORTED="ECONNABORTED",w.ETIMEDOUT="ETIMEDOUT",w.ECONNREFUSED="ECONNREFUSED",w.ERR_NETWORK="ERR_NETWORK",w.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",w.ERR_DEPRECATED="ERR_DEPRECATED",w.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",w.ERR_BAD_REQUEST="ERR_BAD_REQUEST",w.ERR_CANCELED="ERR_CANCELED",w.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",w.ERR_INVALID_URL="ERR_INVALID_URL",w.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Gr=null;function ot(e){return l.isPlainObject(e)||l.isArray(e)}function Mt(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function it(e,t,n){return e?e.concat(t).map(function(r,o){return r=Mt(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Qr(e){return l.isArray(e)&&!e.some(ot)}const Yr=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Me(e,t,n){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,A){return!l.isUndefined(A[f])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,s=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,u=a&&l.isSpecCompliantForm(t);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(l.isDate(f))return f.toISOString();if(l.isBoolean(f))return f.toString();if(!u&&l.isBlob(f))throw new w("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(f)||l.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function p(f,A,y){let S=f;if(l.isReactNative(t)&&l.isReactNativeBlob(f))return t.append(it(y,A,i),d(f)),!1;if(f&&!y&&typeof f=="object"){if(l.endsWith(A,"{}"))A=r?A:A.slice(0,-2),f=JSON.stringify(f);else if(l.isArray(f)&&Qr(f)||(l.isFileList(f)||l.endsWith(A,"[]"))&&(S=l.toArray(f)))return A=Mt(A),S.forEach(function(_,N){!(l.isUndefined(_)||_===null)&&t.append(s===!0?it([A],N,i):s===null?A:A+"[]",d(_))}),!1}return ot(f)?!0:(t.append(it(y,A,i),d(f)),!1)}const b=[],m=Object.assign(Yr,{defaultVisitor:p,convertValue:d,isVisitable:ot});function x(f,A,y=0){if(!l.isUndefined(f)){if(y>c)throw new w("Object is too deeply nested ("+y+" levels). Max depth: "+c,w.ERR_FORM_DATA_DEPTH_EXCEEDED);if(b.indexOf(f)!==-1)throw Error("Circular reference detected in "+A.join("."));b.push(f),l.forEach(f,function(S,_){(!(l.isUndefined(S)||S===null)&&o.call(t,S,l.isString(_)?_.trim():_,A,m))===!0&&x(S,A?A.concat(_):[_],y+1)}),b.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return x(e),t}function qt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function st(e,t){this._pairs=[],e&&Me(e,this,t)}const zt=st.prototype;zt.append=function(e,t){this._pairs.push([e,t])},zt.toString=function(e){const t=e?function(n){return e.call(this,n,qt)}:qt;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function Zr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ht(e,t,n){if(!t)return e;const r=n&&n.encode||Zr,o=l.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let s;if(i?s=i(t,o):s=l.isURLSearchParams(t)?t.toString():new st(t,o).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Jt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},eo=typeof URLSearchParams<"u"?URLSearchParams:st,to=typeof FormData<"u"?FormData:null,no=typeof Blob<"u"?Blob:null,ro={isBrowser:!0,classes:{URLSearchParams:eo,FormData:to,Blob:no},protocols:["http","https","file","blob","url","data"]},lt=typeof window<"u"&&typeof document<"u",ct=typeof navigator=="object"&&navigator||void 0,oo=lt&&(!ct||["ReactNative","NativeScript","NS"].indexOf(ct.product)<0),io=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",so=lt&&window.location.href||"http://localhost",ao=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lt,hasStandardBrowserEnv:oo,hasStandardBrowserWebWorkerEnv:io,navigator:ct,origin:so},Symbol.toStringTag,{value:"Module"})),M={...ao,...ro};function lo(e,t){return Me(e,new M.classes.URLSearchParams,{visitor:function(n,r,o,i){return M.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function co(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uo(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Wt(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&l.isArray(o)?o.length:s,c?(l.hasOwnProp(o,s)?o[s]=l.isArray(o[s])?o[s].concat(r):[o[s],r]:o[s]=r,!a):((!l.hasOwnProp(o,s)||!l.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&l.isArray(o[s])&&(o[s]=uo(o[s])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,o)=>{t(co(r),o,n,0)}),n}return null}const he=(e,t)=>e!=null&&l.hasOwnProp(e,t)?e[t]:void 0;function fo(e,t,n){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Oe={transitional:at,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=l.isObject(e);if(o&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return r?JSON.stringify(Wt(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const s=he(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return lo(e,s).toString();if((i=l.isFileList(e))||n.indexOf("multipart/form-data")>-1){const a=he(this,"env"),c=a&&a.FormData;return Me(i?{"files[]":e}:e,c&&new c,s)}}return o||r?(t.setContentType("application/json",!1),fo(e)):e}],transformResponse:[function(e){const t=he(this,"transitional")||Oe.transitional,n=t&&t.forcedJSONParsing,r=he(this,"responseType"),o=r==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(n&&!r||o)){const i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,he(this,"parseReviver"))}catch(s){if(i)throw s.name==="SyntaxError"?w.from(s,w.ERR_BAD_RESPONSE,this,null,he(this,"response")):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:M.classes.FormData,Blob:M.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch","query"],e=>{Oe.headers[e]={}});function ut(e,t){const n=this||Oe,r=t||n,o=J.from(r.headers);let i=r.data;return l.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Kt(e){return!!(e&&e.__CANCEL__)}let Se=class extends w{constructor(e,t,n){super(e??"canceled",w.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Xt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new w("Request failed with status code "+n.status,n.status>=400&&n.status<500?w.ERR_BAD_REQUEST:w.ERR_BAD_RESPONSE,n.config,n.request,n))}function po(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function ho(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=r[i];s||(s=c),n[o]=a,r[o]=c;let d=i,p=0;for(;d!==o;)p+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const b=u&&c-u;return b?Math.round(p*1e3/b):void 0}}function mo(e,t){let n=0,r=1e3/t,o,i;const s=(a,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e(...a)};return[(...a)=>{const c=Date.now(),u=c-n;u>=r?s(a,c):(o=a,i||(i=setTimeout(()=>{i=null,s(o)},r-u)))},()=>o&&s(o)]}const qe=(e,t,n=3)=>{let r=0;const o=ho(50,250);return mo(i=>{if(!i||typeof i.loaded!="number")return;const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=a!=null?Math.min(s,a):s,u=Math.max(0,c-r),d=o(u);r=Math.max(r,c);const p={loaded:c,total:a,progress:a?c/a:void 0,bytes:u,rate:d||void 0,estimated:d&&a?(a-c)/d:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Gt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qt=e=>(...t)=>l.asap(()=>e(...t)),_o=M.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,M.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(M.origin),M.navigator&&/(msie|trident)/i.test(M.navigator.userAgent)):()=>!0,go=M.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];l.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),l.isString(r)&&a.push(`path=${r}`),l.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),l.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function yo(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yt(e,t,n){let r=!yo(t);return e&&(r||n===!1)?bo(e,t):t}const Zt=e=>e instanceof J?{...e}:e;function le(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,d,p,b){return l.isPlainObject(u)&&l.isPlainObject(d)?l.merge.call({caseless:b},u,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function o(u,d,p,b){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u,p,b)}else return r(u,d,p,b)}function i(u,d){if(!l.isUndefined(d))return r(void 0,d)}function s(u,d){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,p){if(l.hasOwnProp(t,p))return r(u,d);if(l.hasOwnProp(e,p))return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(u,d,p)=>o(Zt(u),Zt(d),p,!0)};return l.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const d=l.hasOwnProp(c,u)?c[u]:o,p=l.hasOwnProp(e,u)?e[u]:void 0,b=l.hasOwnProp(t,u)?t[u]:void 0,m=d(p,b,u);l.isUndefined(m)&&d!==a||(n[u]=m)}),n}const wo=["content-type","content-length"];function vo(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,o])=>{wo.includes(r.toLowerCase())&&e.set(r,o)})}const xo=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),en=e=>{const t=le({},e),n=b=>l.hasOwnProp(t,b)?t[b]:void 0,r=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const c=n("auth"),u=n("baseURL"),d=n("allowAbsoluteUrls"),p=n("url");if(t.headers=a=J.from(a),t.url=Ht(Yt(u,p,d),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?xo(c.password):""))),l.isFormData(r)&&(M.hasStandardBrowserEnv||M.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):l.isFunction(r.getHeaders)&&vo(a,r.getHeaders(),n("formDataHeaderPolicy"))),M.hasStandardBrowserEnv&&(l.isFunction(o)&&(o=o(t)),o===!0||o==null&&_o(t.url))){const b=i&&s&&go.read(s);b&&a.set(i,b)}return t},Eo=typeof XMLHttpRequest<"u",Oo=Eo&&function(e){return new Promise(function(t,n){const r=en(e);let o=r.data;const i=J.from(r.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:c}=r,u,d,p,b,m;function x(){b&&b(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let f=new XMLHttpRequest;f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout;function A(){if(!f)return;const S=J.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:e,request:f};Xt(function(N){t(N),x()},function(N){n(N),x()},_),f=null}"onloadend"in f?f.onloadend=A:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.startsWith("file:"))||setTimeout(A)},f.onabort=function(){f&&(n(new w("Request aborted",w.ECONNABORTED,e,f)),x(),f=null)},f.onerror=function(S){const _=S&&S.message?S.message:"Network Error",N=new w(_,w.ERR_NETWORK,e,f);N.event=S||null,n(N),x(),f=null},f.ontimeout=function(){let S=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const _=r.transitional||at;r.timeoutErrorMessage&&(S=r.timeoutErrorMessage),n(new w(S,_.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,e,f)),x(),f=null},o===void 0&&i.setContentType(null),"setRequestHeader"in f&&l.forEach(Lt(i),function(S,_){f.setRequestHeader(_,S)}),l.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),s&&s!=="json"&&(f.responseType=r.responseType),c&&([p,m]=qe(c,!0),f.addEventListener("progress",p)),a&&f.upload&&([d,b]=qe(a),f.upload.addEventListener("progress",d),f.upload.addEventListener("loadend",b)),(r.cancelToken||r.signal)&&(u=S=>{f&&(n(!S||S.type?new Se(null,e,f):S),f.abort(),x(),f=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const y=po(r.url);if(y&&!M.protocols.includes(y)){n(new w("Unsupported protocol "+y+":",w.ERR_BAD_REQUEST,e));return}f.send(o||null)})},So=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(c){if(!r){r=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof w?u:new Se(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new w(`timeout of ${t}ms exceeded`,w.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>l.asap(s),a},ko=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Ao=async function*(e,t){for await(const n of Co(e))yield*ko(n,t)},Co=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},tn=(e,t,n,r)=>{const o=Ao(e,t);let i=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){a(),c.close();return}let p=d.byteLength;if(n){let b=i+=p;n(b)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})};function To(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let i=r.length;const s=r.length;for(let p=0;p<s;p++)if(r.charCodeAt(p)===37&&p+2<s){const b=r.charCodeAt(p+1),m=r.charCodeAt(p+2);(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(i-=2,p+=2)}let a=0,c=s-1;const u=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);c>=0&&(r.charCodeAt(c)===61?(a++,c--):u(c)&&(a++,c-=3)),a===1&&c>=0&&(r.charCodeAt(c)===61||u(c))&&a++;const d=Math.floor(i/4)*3-(a||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let o=0;for(let i=0,s=r.length;i<s;i++){const a=r.charCodeAt(i);if(a<128)o+=1;else if(a<2048)o+=2;else if(a>=55296&&a<=56319&&i+1<s){const c=r.charCodeAt(i+1);c>=56320&&c<=57343?(o+=4,i++):o+=3}else o+=3}return o}const dt="1.16.1",nn=64*1024,{isFunction:ze}=l,rn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ro=e=>{const t=l.global!==void 0&&l.global!==null?l.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=l.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:s}=e,a=o?ze(o):typeof fetch=="function",c=ze(i),u=ze(s);if(!a)return!1;const d=a&&ze(n),p=a&&(typeof r=="function"?(y=>S=>y.encode(S))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),b=c&&d&&rn(()=>{let y=!1;const S=new i(M.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),_=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),y&&!_}),m=u&&d&&rn(()=>l.isReadableStream(new s("").body)),x={stream:m&&(y=>y.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!x[y]&&(x[y]=(S,_)=>{let N=S&&S[y];if(N)return N.call(S);throw new w(`Response type '${y}' is not supported`,w.ERR_NOT_SUPPORT,_)})});const f=async y=>{if(y==null)return 0;if(l.isBlob(y))return y.size;if(l.isSpecCompliantForm(y))return(await new i(M.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(l.isArrayBufferView(y)||l.isArrayBuffer(y))return y.byteLength;if(l.isURLSearchParams(y)&&(y=y+""),l.isString(y))return(await p(y)).byteLength},A=async(y,S)=>l.toFiniteNumber(y.getContentLength())??f(S);return async y=>{let{url:S,method:_,data:N,signal:q,cancelToken:re,timeout:me,onDownloadProgress:ue,onUploadProgress:de,responseType:G,headers:O,withCredentials:Q="same-origin",fetchOptions:ee,maxContentLength:V,maxBodyLength:Ce}=en(y);const z=l.isNumber(V)&&V>-1,k=l.isNumber(Ce)&&Ce>-1;let B=o||fetch;G=G?(G+"").toLowerCase():"text";let L=So([q,re&&re.toAbortSignal()],me),I=null;const Y=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let Te;try{if(z&&typeof S=="string"&&S.startsWith("data:")&&To(S)>V)throw new w("maxContentLength size of "+V+" exceeded",w.ERR_BAD_RESPONSE,y,I);if(k&&_!=="get"&&_!=="head"){const F=await A(O,N);if(typeof F=="number"&&isFinite(F)&&F>Ce)throw new w("Request body larger than maxBodyLength limit",w.ERR_BAD_REQUEST,y,I)}if(de&&b&&_!=="get"&&_!=="head"&&(Te=await A(O,N))!==0){let F=new i(S,{method:"POST",body:N,duplex:"half"}),_e;if(l.isFormData(N)&&(_e=F.headers.get("content-type"))&&O.setContentType(_e),F.body){const[Ge,Qe]=Gt(Te,qe(Qt(de)));N=tn(F.body,nn,Ge,Qe)}}l.isString(Q)||(Q=Q?"include":"omit");const H=c&&"credentials"in i.prototype;if(l.isFormData(N)){const F=O.getContentType();F&&/^multipart\/form-data/i.test(F)&&!/boundary=/i.test(F)&&O.delete("content-type")}O.set("User-Agent","axios/"+dt,!1);const se={...ee,signal:L,method:_.toUpperCase(),headers:Lt(O.normalize()),body:N,duplex:"half",credentials:H?Q:void 0};I=c&&new i(S,se);let oe=await(c?B(I,ee):B(S,se));if(z){const F=l.toFiniteNumber(oe.headers.get("content-length"));if(F!=null&&F>V)throw new w("maxContentLength size of "+V+" exceeded",w.ERR_BAD_RESPONSE,y,I)}const xt=m&&(G==="stream"||G==="response");if(m&&oe.body&&(ue||z||xt&&Y)){const F={};["status","statusText","headers"].forEach(Re=>{F[Re]=oe[Re]});const _e=l.toFiniteNumber(oe.headers.get("content-length")),[Ge,Qe]=ue&&Gt(_e,qe(Qt(ue),!0))||[];let wn=0;const Ci=Re=>{if(z&&(wn=Re,wn>V))throw new w("maxContentLength size of "+V+" exceeded",w.ERR_BAD_RESPONSE,y,I);Ge&&Ge(Re)};oe=new s(tn(oe.body,nn,Ci,()=>{Qe&&Qe(),Y&&Y()}),F)}G=G||"text";let ie=await x[l.findKey(x,G)||"text"](oe,y);if(z&&!m&&!xt){let F;if(ie!=null&&(typeof ie.byteLength=="number"?F=ie.byteLength:typeof ie.size=="number"?F=ie.size:typeof ie=="string"&&(F=typeof r=="function"?new r().encode(ie).byteLength:ie.length)),typeof F=="number"&&F>V)throw new w("maxContentLength size of "+V+" exceeded",w.ERR_BAD_RESPONSE,y,I)}return!xt&&Y&&Y(),await new Promise((F,_e)=>{Xt(F,_e,{data:ie,headers:J.from(oe.headers),status:oe.status,statusText:oe.statusText,config:y,request:I})})}catch(H){if(Y&&Y(),L&&L.aborted&&L.reason instanceof w){const se=L.reason;throw se.config=y,I&&(se.request=I),H!==se&&(se.cause=H),se}throw H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,y,I,H&&H.response),{cause:H.cause||H}):w.from(H,H&&H.code,y,I,H&&H.response)}}},No=new Map,on=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,c,u,d=No;for(;a--;)c=i[a],u=d.get(c),u===void 0&&d.set(c,u=a?new Map:Ro(t)),d=u;return u};on();const ft={http:Gr,xhr:Oo,fetch:{get:on}};l.forEach(ft,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const sn=e=>`- ${e}`,Fo=e=>l.isFunction(e)||e===null||e===!1;function jo(e,t){e=l.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){r=e[s];let a;if(o=r,!Fo(r)&&(o=ft[(a=String(r)).toLowerCase()],o===void 0))throw new w(`Unknown adapter '${a}'`);if(o&&(l.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
7
+ `+s.map(sn).join(`
8
+ `):" "+sn(s[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const an={getAdapter:jo,adapters:ft};function pt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se(null,e)}function ln(e){return pt(e),e.headers=J.from(e.headers),e.data=ut.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),an.getAdapter(e.adapter||Oe.adapter,e)(e).then(function(t){pt(e),e.response=t;try{t.data=ut.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=J.from(t.headers),t},function(t){if(!Kt(t)&&(pt(e),t&&t.response)){e.response=t.response;try{t.response.data=ut.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=J.from(t.response.headers)}return Promise.reject(t)})}const He={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{He[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const cn={};He.transitional=function(e,t,n){function r(o,i){return"[Axios v"+dt+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,s)=>{if(e===!1)throw new w(r(i," has been removed"+(t?" in "+t:"")),w.ERR_DEPRECATED);return t&&!cn[i]&&(cn[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,i,s):!0}},He.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Do(e,t,n){if(typeof e!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new w("option "+i+" must be "+c,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+i,w.ERR_BAD_OPTION)}}const Je={assertOptions:Do,validators:He},X=Je.validators;let ce=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Jt,response:new Jt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=(()=>{if(!r.stack)return"";const i=r.stack.indexOf(`
9
+ `);return i===-1?"":r.stack.slice(i+1)})();try{if(!n.stack)n.stack=o;else if(o){const i=o.indexOf(`
10
+ `),s=i===-1?-1:o.indexOf(`
11
+ `,i+1),a=s===-1?"":o.slice(s+1);String(n.stack).endsWith(a)||(n.stack+=`
12
+ `+o)}}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=le(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;n!==void 0&&Je.assertOptions(n,{silentJSONParsing:X.transitional(X.boolean),forcedJSONParsing:X.transitional(X.boolean),clarifyTimeoutError:X.transitional(X.boolean),legacyInterceptorReqResOrdering:X.transitional(X.boolean)},!1),r!=null&&(l.isFunction(r)?t.paramsSerializer={serialize:r}:Je.assertOptions(r,{encode:X.function,serialize:X.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Je.assertOptions(t,{baseUrl:X.spelling("baseURL"),withXsrfToken:X.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&l.merge(o.common,o[t.method]);o&&l.forEach(["delete","get","head","post","put","patch","query","common"],m=>{delete o[m]}),t.headers=J.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(t)===!1)return;a=a&&m.synchronous;const x=t.transitional||at;x&&x.legacyInterceptorReqResOrdering?s.unshift(m.fulfilled,m.rejected):s.push(m.fulfilled,m.rejected)});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,p;if(!a){const m=[ln.bind(this),void 0];for(m.unshift(...s),m.push(...c),p=m.length,u=Promise.resolve(t);d<p;)u=u.then(m[d++],m[d++]);return u}p=s.length;let b=t;for(;d<p;){const m=s[d++],x=s[d++];try{b=m(b)}catch(f){x.call(this,f);break}}try{u=ln.call(this,b)}catch(m){return Promise.reject(m)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=le(this.defaults,e);const t=Yt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ht(t,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){ce.prototype[e]=function(t,n){return this.request(le(n||{},{method:e,url:t,data:(n||{}).data}))}}),l.forEach(["post","put","patch","query"],function(e){function t(n){return function(r,o,i){return this.request(le(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ce.prototype[e]=t(),e!=="query"&&(ce.prototype[e+"Form"]=t(!0))});let Bo=class xn{constructor(t){if(typeof t!="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 i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(o,i,s){r.reason||(r.reason=new Se(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new xn(function(n){t=n}),cancel:t}}};function Uo(e){return function(t){return e.apply(null,t)}}function Po(e){return l.isObject(e)&&e.isAxiosError===!0}const ht={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ht).forEach(([e,t])=>{ht[t]=e});function un(e){const t=new ce(e),n=Rt(ce.prototype.request,t);return l.extend(n,ce.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return un(le(e,r))},n}const D=un(Oe);D.Axios=ce,D.CanceledError=Se,D.CancelToken=Bo,D.isCancel=Kt,D.VERSION=dt,D.toFormData=Me,D.AxiosError=w,D.Cancel=D.CanceledError,D.all=function(e){return Promise.all(e)},D.spread=Uo,D.isAxiosError=Po,D.mergeConfig=le,D.AxiosHeaders=J,D.formToJSON=e=>Wt(l.isHTMLForm(e)?new FormData(e):e),D.getAdapter=an.getAdapter,D.HttpStatusCode=ht,D.default=D;const{Axios:Ri,AxiosError:Ni,CanceledError:Fi,isCancel:ji,CancelToken:Di,VERSION:Bi,all:Ui,Cancel:Pi,isAxiosError:Ii,spread:Vi,toFormData:Li,AxiosHeaders:$i,HttpStatusCode:Mi,formToJSON:qi,getAdapter:zi,mergeConfig:Hi,create:Ji}=D,mt=D.create({baseURL:location.origin,timeout:6e4,params:{}});mt.interceptors.response.use(e=>e,e=>{if(e.response){if(e.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(r){r&&OpenC3Auth.setTokens()}),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let t=`HTTP ${e.response.status} - `;e.response?.statusText&&(t+=`${e.response.statusText} `),e.response?.config?.data&&(t+=`${e.response.config.data} `),e.response?.data?.message?t+=`${e.response.data.message}`:e.response?.data?.exception?t+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(t+=`${e.response.data.error.class} `),t+=`${e.response.data.error.message}`):t+=`${e.response?.data}`;const{$cosmosNotify:n}=window;throw n&&n.serious({title:"Network error",body:t}),e}else throw e});const We=async function(e,t,{data:n,params:r={},headers:o,noAuth:i=!1,noScope:s=!1,onUploadProgress:a=!1}={}){if(!i){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}o.Authorization=localStorage.openc3Token}return o.manual=!0,!s&&!r.scope&&(r.scope=window.openc3Scope),mt({method:e,url:t,data:n,params:r,headers:o,onUploadProgress:a})},_t={Accept:"application/json"},dn={..._t,"Content-Type":"application/json"},$={get:function(e,{params:t,headers:n=_t,noScope:r,noAuth:o,onUploadProgress:i}={}){return We("get",e,{params:t,headers:n,noScope:r,noAuth:o,onUploadProgress:i})},put:function(e,{data:t,params:n,headers:r=dn,noScope:o,noAuth:i,onUploadProgress:s}={}){return We("put",e,{data:t,params:n,headers:r,noScope:o,noAuth:i,onUploadProgress:s})},post:function(e,{data:t,params:n,headers:r=dn,noScope:o,noAuth:i,onUploadProgress:s}={}){return We("post",e,{data:t,params:n,headers:r,noScope:o,noAuth:i,onUploadProgress:s})},delete:function(e,{params:t,headers:n=_t,noScope:r,noAuth:o,onUploadProgress:i}={}){return We("delete",e,{params:t,headers:n,noScope:r,noAuth:o,onUploadProgress:i})}};function ke(e){return Io.test(e)}const Io=/^-?[0-9]+$/;function fn(e){return Vo.test(e)}const Vo=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function pn(e,t){if(ke(e))return Number.isSafeInteger(Number.parseInt(e,10));const n=Number.parseFloat(e),r=String(n);if(e===r)return!0;const o=hn(e),i=hn(r);return!!(o===i||t?.approx===!0&&!ke(e)&&i.length>=14&&o.startsWith(i.substring(0,14)))}let Ae=(function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e})({});function Lo(e){if(pn(e,{approx:!1}))return;if(ke(e))return Ae.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?Ae.underflow:Ae.truncate_float:Ae.overflow}function hn(e){const{start:t,end:n}=$o(e),r=e.substring(t,n),o=r.indexOf(".");return o===-1?r:r.substring(0,o)+r.substring(o+1)}function $o(e){let t=0;for(e[0]==="-"&&t++;e[t]==="0"||e[t]===".";)t++;let n=e.lastIndexOf("e");for(n===-1&&(n=e.lastIndexOf("E")),n===-1&&(n=e.length);(e[n-1]==="0"||e[n-1]===".")&&n>t;)n--;return{start:t,end:n}}class Mo{isLosslessNumber=!0;constructor(t){if(!fn(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=Lo(this.value);if(t===void 0||t===Ae.truncate_float)return Number.parseFloat(this.value);if(ke(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function qo(e){return e&&typeof e=="object"&&e.isLosslessNumber||!1}function zo(e){return new Mo(e)}function Ho(e,t){return gt({"":e},"",e,t)}function gt(e,t,n,r){return Array.isArray(n)?r.call(e,t,Wo(n,r)):n&&typeof n=="object"&&!qo(n)?r.call(e,t,Jo(n,r)):r.call(e,t,n)}function Jo(e,t){for(const n of Object.keys(e)){const r=gt(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function Wo(e,t){for(let n=0;n<e.length;n++)e[n]=gt(e,String(n),e[n],t);return e}function Ko(e,t,n){const r=typeof n=="function"?{parseNumber:n}:n,o=r?.parseNumber??zo,i=r?.onDuplicateKey??me;let s=0;const a=d();return y(a),_(),t?Ho(a,t):a;function c(){if(e.charCodeAt(s)===ei){s++,b();const k={};let B=!0;for(;s<e.length&&e.charCodeAt(s)!==_n;){B?B=!1:(f(),b());const L=s,I=m();if(I===void 0){re();return}b(),A();const Y=d();if(Y===void 0){Q();return}if(Object.prototype.hasOwnProperty.call(k,I)&&!yt(Y,k[I])){const Te=i({key:I,position:L+1,oldValue:k[I],newValue:Y});Te!==void 0&&(k[I]=Te)}else k[I]=Y}return e.charCodeAt(s)!==_n&&ue(),s++,k}}function u(){if(e.charCodeAt(s)===ti){s++,b();const k=[];let B=!0;for(;s<e.length&&e.charCodeAt(s)!==gn;){B?B=!1:f();const L=d();S(L),k.push(L)}return e.charCodeAt(s)!==gn&&de(),s++,k}}function d(){b();const k=m()??x()??c()??u()??p("true",!0)??p("false",!1)??p("null",null);return b(),k}function p(k,B){if(e.slice(s,s+k.length)===k)return s+=k.length,B}function b(){for(;Xo(e.charCodeAt(s));)s++}function m(){if(e.charCodeAt(s)===bt){s++;let k="";for(;s<e.length&&e.charCodeAt(s)!==bt;){if(e.charCodeAt(s)===Zo){const B=e[s+1],L=Yo[B];L!==void 0?(k+=L,s++):B==="u"?Ke(e.charCodeAt(s+2))&&Ke(e.charCodeAt(s+3))&&Ke(e.charCodeAt(s+4))&&Ke(e.charCodeAt(s+5))?(k+=String.fromCharCode(Number.parseInt(e.slice(s+2,s+6),16)),s+=5):ee(s):O(s)}else Qo(e.charCodeAt(s))?k+=e[s]:G(e[s]);s++}return q(),s++,k}}function x(){const k=s;if(e.charCodeAt(s)===yn&&(s++,N(k)),e.charCodeAt(s)===wt)s++;else if(Go(e.charCodeAt(s)))for(s++;Xe(e.charCodeAt(s));)s++;if(e.charCodeAt(s)===ci)for(s++,N(k);Xe(e.charCodeAt(s));)s++;if(e.charCodeAt(s)===hi||e.charCodeAt(s)===pi)for(s++,(e.charCodeAt(s)===yn||e.charCodeAt(s)===si)&&s++,N(k);Xe(e.charCodeAt(s));)s++;if(s>k)return o(e.slice(k,s))}function f(){if(e.charCodeAt(s)!==li)throw new SyntaxError(`Comma ',' expected after value ${z()}`);s++}function A(){if(e.charCodeAt(s)!==ui)throw new SyntaxError(`Colon ':' expected after property name ${z()}`);s++}function y(k){if(k===void 0)throw new SyntaxError(`JSON value expected ${z()}`)}function S(k){if(k===void 0)throw new SyntaxError(`Array item expected ${z()}`)}function _(){if(s<e.length)throw new SyntaxError(`Expected end of input ${z()}`)}function N(k){if(!Xe(e.charCodeAt(s))){const B=e.slice(k,s);throw new SyntaxError(`Invalid number '${B}', expecting a digit ${z()}`)}}function q(){if(e.charCodeAt(s)!==bt)throw new SyntaxError(`End of string '"' expected ${z()}`)}function re(){throw new SyntaxError(`Quoted object key expected ${z()}`)}function me(k){let{key:B,position:L}=k;throw new SyntaxError(`Duplicate key '${B}' encountered at position ${L}`)}function ue(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${z()}`)}function de(){throw new SyntaxError(`Array item or end of array ']' expected ${z()}`)}function G(k){throw new SyntaxError(`Invalid character '${k}' ${V()}`)}function O(k){const B=e.slice(k,k+2);throw new SyntaxError(`Invalid escape character '${B}' ${V()}`)}function Q(){throw new SyntaxError(`Object value expected after ':' ${V()}`)}function ee(k){const B=e.slice(k,k+6);throw new SyntaxError(`Invalid unicode character '${B}' ${V()}`)}function V(){return`at position ${s}`}function Ce(){return s<e.length?`but got '${e[s]}'`:"but reached end of input"}function z(){return`${Ce()} ${V()}`}}function Xo(e){return e===ni||e===ri||e===oi||e===ii}function Ke(e){return e>=wt&&e<=vt||e>=di&&e<=mi||e>=fi&&e<=_i}function Xe(e){return e>=wt&&e<=vt}function Go(e){return e>=ai&&e<=vt}function Qo(e){return e>=32&&e<=1114111}function yt(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>yt(n,t[r])):mn(e)&&mn(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(n=>yt(e[n],t[n])):!1}function mn(e){return typeof e=="object"&&e!==null}const Yo={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
13
+ `,r:"\r",t:" "},Zo=92,ei=123,_n=125,ti=91,gn=93,ni=32,ri=10,oi=9,ii=13,bt=34,si=43,yn=45,wt=48,ai=49,vt=57,li=44,ci=46,ui=58,di=65,fi=97,pi=69,hi=101,mi=70,_i=102;function bn(e,t,n,r){return o(e);function o(c,u){if(Array.isArray(r)){const d=r.find(p=>p.test(c));if(d){const p=d.stringify(c);if(typeof p!="string"||!fn(p))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${p})`);return p}}if(typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c===null||c instanceof Date||c instanceof Boolean||c instanceof Number||c instanceof String)return JSON.stringify(c);if(c?.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return i(c);if(c&&typeof c=="object")return s(c)}function i(c,u){if(c.length===0)return"[]";let d="[";for(let p=0;p<c.length;p++){const b=c[p];typeof b<"u"&&typeof b!="function"?d+=o(b):d+="null",p<c.length-1&&(d+=",")}return d+="]",d}function s(c,u){if(typeof c.toJSON=="function")return bn(c.toJSON(),t,n,void 0);const d=Array.isArray(t)?t.map(String):Object.keys(c);if(d.length===0)return"{}";let p=!0,b="{";for(const m of d){const x=c[m];if(a(m,x)){p?p=!1:b+=",";const f=JSON.stringify(m);b+=`${f}:`,b+=o(x)}}return b+="}",b}function a(c,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function gi(e){return ke(e)&&!pn(e)?BigInt(e):parseFloat(e)}class yi{id=1;constructor(){}async exec(t,n,r={},o={},i=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 mt.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...o},timeout:i,transformRequest:[(s,a)=>bn(s)],transformResponse:[s=>{try{return Ko(s,void 0,gi)}catch{const a=typeof s=="string"?s.substring(0,200):String(s),c=new Error(`Server returned non-JSON response: ${a}`);throw c.name="ServerError",c}}]})).data.result}catch(s){let a=new Error;throw s.response?(a.name=s.response.data.error.data.class,a.message=s.response.data.error.data.message,a.object=s.response.data.error):s.request?(a.name="Request error",a.message="Request error, no response received"):a=s,a}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(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(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,n,r,o,i){return this.exec("map_target_to_interface",[t,n],{cmd_only:r,tlm_only:o,unmap_old:i})}unmap_target_from_interface(t,n,r,o){return this.exec("unmap_target_from_interface",[t,n],{cmd_only:r,tlm_only:o})}connect_interface(t,...n){return n.length>0?this.exec("connect_interface",[t,...n]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,n,...r){return this.exec("interface_cmd",[t,n,...r])}interface_target_enable(t,n,r=!1,o=!1){return this.exec("interface_target_enable",[t,n],{cmd_only:r,tlm_only:o})}interface_target_disable(t,n,r=!1,o=!1){return this.exec("interface_target_disable",[t,n],{cmd_only:r,tlm_only:o})}interface_details(t){return this.exec("interface_details",[t])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(t,n,r,o,i){return this.exec("map_target_to_router",[t,n],{cmd_only:r,tlm_only:o,unmap_old:i})}unmap_target_from_router(t,n,r,o){return this.exec("unmap_target_from_router",[t,n],{cmd_only:r,tlm_only:o})}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}router_target_enable(t,n,r=!1,o=!1){return this.exec("router_target_enable",[t,n],{cmd_only:r,tlm_only:o})}router_target_disable(t,n,r=!1,o=!1){return this.exec("router_target_disable",[t,n],{cmd_only:r,tlm_only:o})}router_details(t){return this.exec("router_details",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,n,r){return this.exec("get_item",[t,n,r])}get_param(t,n,r){return this.exec("get_param",[t,n,r])}get_parameter(t,n,r){return this.exec("get_param",[t,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,n){return this.exec("get_tlm",[t,n])}get_telemetry(t,n){return this.exec("get_tlm",[t,n])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,n=!1){return this.exec("get_all_tlm_names",[t],{hidden:n})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,n,r,o=30){const i=await this.exec("get_tlm_packet",[t,n],{type:r,stale_time:o});if(i!=null){let s=i.length,a=null;for(let c=0;c<s;c++)a=this.decode_openc3_type(i[c][1]),a!==null&&(i[c][1]=a)}return i}get_packet_derived_items(t,n){return this.exec("get_packet_derived_items",[t,n])}get_tlm_buffer(t,n){return this.exec("get_tlm_buffer",[t,n])}get_tlm_available(t){return this.exec("get_tlm_available",[t])}async get_tlm_values(t,n=30,r=null,o=null,i=null){let s={stale_time:n};r!==null&&(s.cache_timeout=r),o!==null&&(s.start_time=o.toISOString()),i!==null&&(s.end_time=i.toISOString());const a=await this.exec("get_tlm_values",[t],s,{},1e4);if(a&&a.length>0){let c=a.length,u=null;for(let d=0;d<c;d++)u=this.decode_openc3_type(a[d][0]),u!==null&&(a[d][0]=u)}return a}get_limits(t,n,r){return this.exec("get_limits",[t,n,r])}async tlm(t,n,r,o="CONVERTED"){let i=null;if(n===void 0)i=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(n))i=await this.exec("tlm",[t],{type:n});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED or FORMATTED.`,a}else i=await this.exec("tlm",[t,n,r],{type:o});let s=this.decode_openc3_type(i);return s!==null&&(i=s),i}async inject_tlm(t,n,r=null,o="CONVERTED",i=!1){await this.exec("inject_tlm",[t,n,r],{type:o,stored:i})}set_tlm(t,n,r,o){return this.exec("set_tlm",[t,n,r],{type:o})}override_tlm(t,n,r,o){return this.exec("override_tlm",[t,n,r],{type:o})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,n,r,o){return this.exec("normalize_tlm",[t,n,r],{type:o})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,n=!1){return this.exec("get_all_cmd_names",[t],{hidden:n})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,n){return this.exec("get_cmd",[t,n])}get_command(t,n){return this.exec("get_cmd",[t,n])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,n,r,o="CONVERTED"){return this.exec("get_cmd_value",[t,n,r,o])}get_cmd_buffer(t,n){return this.exec("get_cmd_buffer",[t,n])}_cmd(t,n,r,o,i,s={}){let a=null;for(let c in o)Object.prototype.hasOwnProperty.call(o,c)&&(a=this.encode_openc3_type(o[c]),a!==null&&(o[c]=a));return this.exec(t,[n,r,o],s,i)}get_cmd_hazardous(t,n,r,o={}){return n===void 0?this.exec("get_cmd_hazardous",t,{},o):this._cmd("get_cmd_hazardous",t,n,r,o)}cmd(t,n,r,o={},i={}){return n===void 0?this.exec("cmd",t,i,o):this._cmd("cmd",t,n,r,o,i)}cmd_no_range_check(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_no_range_check",t,i,o):this._cmd("cmd_no_range_check",t,n,r,o,i)}cmd_raw(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_raw",t,i,o):this._cmd("cmd_raw",t,n,r,o,i)}cmd_raw_no_range_check(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_raw_no_range_check",t,i,o):this._cmd("cmd_raw_no_range_check",t,n,r,o,i)}cmd_no_hazardous_check(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_no_hazardous_check",t,i,o):this._cmd("cmd_no_hazardous_check",t,n,r,o,i)}cmd_no_checks(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_no_checks",t,i,o):this._cmd("cmd_no_checks",t,n,r,o,i)}cmd_raw_no_hazardous_check(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",t,i,o):this._cmd("cmd_raw_no_hazardous_check",t,n,r,o,i)}cmd_raw_no_checks(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_raw_no_checks",t,i,o):this._cmd("cmd_raw_no_checks",t,n,r,o,i)}build_cmd(t,n,r,o={},i={}){return n===void 0?this.exec("build_cmd",t,i,o):this._cmd("build_cmd",t,n,r,o,i)}build_command(t,n,r,o={},i={}){return n===void 0?this.exec("build_cmd",t,i,o):this._cmd("build_cmd",t,n,r,o,i)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(t,n){return this.exec("send_raw",[t,n])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,n){return this.exec("load_config",[t,n])}save_config(t,n,r){return this.exec("save_config",[t,n,r])}delete_config(t,n){return this.exec("delete_config",[t,n])}enable_limits(t,n,r){return this.exec("enable_limits",[t,n,r])}disable_limits(t,n,r){return this.exec("disable_limits",[t,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t,n){return this.exec("get_setting",[t],n)}get_settings(t,n){return this.exec("get_settings",t,n)}set_setting(t,n){return this.exec("set_setting",[t,n])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(t,n){return this.exec("set_setting",[t,n])}get_metrics(){return this.exec("get_metrics",[])}open_tab(t){window.open(t,"_blank")}async hashString(t){if(window.isSecureContext){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(i=>i.toString(16).padStart(2,"0")).join("")}}}const bi={mixins:[Tt],props:{item:{type:Object,required:!0}},emits:["change"],data(){return{dataItem:this.item,stateValue:null,checkValue:!1,isMounted:!1}},computed:{isCheckbox:function(){let e=!0;if(this.dataItem.states)for(const t of Object.keys(this.dataItem.states))t!=="CHECKED"&&t!=="UNCHECKED"&&(e=!1);else e=!1;return e},itemStates:function(){let e=[];for(const[t,n]of Object.entries(this.dataItem.states))e.push({title:t,value:n});return e}},watch:{checkValue:function(){this.isMounted&&(this.checkValue?this.$emit("change","CHECKED"):this.$emit("change","UNCHECKED"))},stateValue:function(){if(!this.isMounted)return;let e=Object.keys(this.dataItem.states).find(t=>this.dataItem.states[t]===this.stateValue);this.$emit("change",e)}},created(){this.dataItem.states&&(this.stateValue=this.dataItem.states[this.dataItem.value]),this.isCheckbox&&(this.checkValue=this.stateValue===1)},mounted(){this.isMounted=!0},methods:{textChange:function(e){this.dataItem.value=e,this.$emit("change",this.dataItem.value)},format:function(e){return e&&e.json_class==="String"&&e.raw!==void 0&&(this.dataItem.editable=!1),this.formatValueBase(e)}}};function wi(e,t,n,r,o,i){const s=v("v-checkbox"),a=v("v-select"),c=v("v-text-field");return E(),P("td",null,[i.isCheckbox?(E(),C(s,{key:0,modelValue:o.checkValue,"onUpdate:modelValue":t[0]||(t[0]=u=>o.checkValue=u),density:"compact","hide-details":"",disabled:!o.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):o.dataItem.states?(E(),C(a,{key:1,modelValue:o.stateValue,"onUpdate:modelValue":t[1]||(t[1]=u=>o.stateValue=u),density:"compact","hide-details":"",items:i.itemStates,disabled:!o.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(E(),C(c,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","model-value":i.format(o.dataItem.value),disabled:!o.dataItem.editable,"data-test":"table-item-text-field","onUpdate:modelValue":i.textChange},null,8,["model-value","disabled","onUpdate:modelValue"]))])}const vi={components:{TableItem:Ne(bi,[["render",wi]])},props:{items:{type:Object,required:!0}},emits:["change"],data(){return{dataItems:this.items}},computed:{oneDimensional(){return this.dataItems.length===1}},methods:{onChange:function(e,t,n){this.$emit("change",{index:t,event:n})}}},xi={class:"text-start"},Ei={key:0,class:"text-start"};function Oi(e,t,n,r,o,i){const s=v("table-item");return E(),P("tr",null,[U("td",xi,j(o.dataItems[0].index),1),i.oneDimensional?(E(),P("td",Ei,j(o.dataItems[0].name),1)):ne("",!0),(E(!0),P(K,null,te(o.dataItems,(a,c)=>(E(),C(s,{key:a.name,item:a,onChange:be(u=>i.onChange(a,c,u),["self"])},null,8,["item","onChange"]))),128))])}const Si={components:{TopBar:Cn,TableRow:Ne(vi,[["render",Oi]]),FileOpenSaveDialog:$n,SimpleTextDialog:Wn},data(){return{title:"Table Manager",search:"",curTab:null,tables:[],api:null,definition:null,fileInput:null,definitionFilename:"",fileNew:!1,filename:"",fileModified:"",lockedBy:null,fileOpen:!1,showSave:!1,showSaveAs:!1,showError:!1,errorTitle:"",errorText:"",uploadScript:null,downloadScript:null,scriptBackground:!0}},computed:{readOnly:function(){return!!this.lockedBy},fullFilename(){return`${this.filename} ${this.fileModified}`.trim()},menus:function(){return[{label:"File",items:[{label:"New Binary from Definition",icon:"mdi-file-plus",command:()=>{this.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:()=>{this.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:()=>{this.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:()=>{this.saveAs()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:()=>{this.delete()}}]}]}},watch:{filename:function(e){let t=this.filename.split("/").slice(0,2).join("/")+"/procedures/upload",n=this.filename.split("/").slice(0,2).join("/")+"/procedures/download";$.get(`/openc3-api/tables/${t}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.uploadScript=`${t}.rb`}).catch(r=>{$.get(`/openc3-api/tables/${t}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.uploadScript=`${t}.py`}).catch(o=>{this.uploadScript=null})}),$.get(`/openc3-api/tables/${n}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.downloadScript=`${n}.rb`}).catch(r=>{$.get(`/openc3-api/tables/${n}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.downloadScript=`${n}.py`}).catch(o=>{this.downloadScript=null})})}},created(){this.api=new yi,this.api.ensure_offline_access()},methods:{newFile:function(){this.fileModified="",this.fileNew=!0,this.fileOpen=!0},openFile:function(){this.fileOpen=!0},setFile:function({file:e,locked:t}){e.name.includes(".txt")?this.fileNew?(this.checkAndBuildNewBinary(e.name),this.fileNew=!1):this.getDefinition(e.name):(this.unlockFile(),this.filename=e.name.split("*")[0],this.fileModified="",this.lockedBy=t,this.getDefinition())},setError(e){this.errorTitle="Error",this.errorText=`Error: ${e}`,this.errorText=response.data.message,this.showError=!0},saveFile:function(){this.showSave=!0;const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),e.append("tables",JSON.stringify(this.tables)),$.post(`/openc3-api/tables/${this.filename}`,{data:e,headers:{"Content-Type":"multipart/form-data"}}).then(t=>{this.fileModified="",setTimeout(()=>{this.showSave=!1},2e3)}).catch(({response:t})=>{this.showSave=!1,this.errorTitle="Save Error",this.errorText=t.data.message,this.showError=!0}),this.lockFile()},saveAs:function(){this.showSaveAs=!0},saveAsFilename:function(e){$.put(`/openc3-api/tables/${this.filename}/save-as/${e}`).then(t=>{this.filename=e,this.getDefinition(this.definitionFilename)})},delete:function(){this.filename!==""&&this.$dialog.confirm(`Permanently delete file: ${this.filename}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>$.delete(`/openc3-api/tables/${this.filename}`,{data:{}})).then(e=>{this.tables=[],this.filename="",this.definitionFilename=""}).catch(e=>{})},downloadBinary:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),$.post("/openc3-api/tables/binary",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=window.atob(n.data.contents),o=new Uint8Array(r.length);for(let a=0;a<r.length;++a)o[a]=r.charCodeAt(a);const i=new Blob([o],{type:"application/octet-stream"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",n.data.filename),s.click()})},downloadDefinition:function(e=null){const t=new FormData;t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),$.post("/openc3-api/tables/definition",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=new Blob([n.data.contents],{type:"text/plain"}),o=document.createElement("a");o.href=URL.createObjectURL(r),o.setAttribute("download",n.data.filename),o.click()})},downloadReport:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),$.post("/openc3-api/tables/report",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=`Binary: ${this.filename}
14
+ Definition: ${this.definitionFilename}
15
+
16
+ `,o=new Blob([r,n.data.contents],{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(o),i.setAttribute("download",n.data.filename),i.click()})},upload(){$.post(`/script-api/scripts/${this.uploadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(e=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")})},download(){this.$dialog.confirm(`Are you sure you want to overwrite ${this.filename}? You can Save As to create a new file and then Download to preserve the existing file. Note: Once the download completes you will need to re-open the file to see changes.`,{okText:"Download (Overwrite!)",cancelText:"Cancel"}).then(()=>{$.post(`/script-api/scripts/${this.downloadScript}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}}).then(e=>{this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")})}).catch(e=>{})},confirmLocalUnlock:function(){this.$dialog.confirm("Are you sure you want to unlock this file for editing? If another user is editing this file, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then(()=>(this.lockedBy=null,this.lockFile()))},lockFile:function(){return $.post(`/openc3-api/tables/${this.filename}/lock`)},unlockFile:function(){this.filename!==""&&!this.readOnly&&$.post(`/openc3-api/tables/${this.filename}/unlock`)},getDefinition:function(e=null){e||(e=this.filename.replace("/bin/","/config/").replace(".bin","_def.txt")),this.tables=[];const t=new FormData;t.append("binary",this.filename),t.append("definition",e),$.post("/openc3-api/tables/load",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{this.definitionFilename=n.data.definition,this.tables=n.data.tables.map(r=>({...r,headers:r.headers.map((o,i)=>{const s={title:o,filterable:o!=="INDEX"};return r.numColumns===1?{...s,value:`[0].${o.toLowerCase()}`}:{...s,value:`[${i}].value`}})})),n.data.errors&&this.$notify.caution({title:"Warning",body:n.data.errors})}).catch(n=>{n.response.status==404?(this.$notify.normal({title:"Definition File Not Found",body:`Definition file ${e} not found. Please select definition file.`}),this.fileOpen=!0):this.$notify.serious({title:"Error",body:`Error loading due to ${n.response.statusText}. Status: ${n.response.status}`})})},checkAndBuildNewBinary:function(e){const t=e.replace("/config/","/bin/").replace("_def.txt",".bin");$.get(`/openc3-api/tables/${t}`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(n=>{this.$dialog.confirm(`Binary file ${t} already exists. Do you want to overwrite it?`,{okText:"Overwrite",cancelText:"Cancel"}).then(()=>{this.buildNewBinary(e)}).catch(()=>{})}).catch(n=>{this.buildNewBinary(e)})},buildNewBinary:function(e){const t=new FormData;t.append("definition",e),$.post("/openc3-api/tables/generate",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{this.filename=n.data.filename,this.getDefinition(e)})},onChange:function(e,{index:t,event:n}){this.fileModified="*",e[t].value=n}}},ki={style:{position:"absolute"},class:"ma-3"};function Ai(e,t,n,r,o,i){const s=v("top-bar"),a=v("v-file-input"),c=v("v-text-field"),u=v("v-col"),d=v("v-row"),p=v("v-icon"),b=v("v-btn"),m=v("v-checkbox-btn"),x=v("v-tooltip"),f=v("v-card-text"),A=v("v-spacer"),y=v("v-card-title"),S=v("v-tab"),_=v("v-tabs"),N=v("table-row"),q=v("v-data-table"),re=v("v-tabs-window-item"),me=v("v-tabs-window"),ue=v("v-card"),de=v("file-open-save-dialog"),G=v("simple-text-dialog");return E(),P("div",null,[g(s,{menus:i.menus,title:o.title},null,8,["menus","title"]),g(a,{ref:"fileInput",modelValue:o.fileInput,"onUpdate:modelValue":t[0]||(t[0]=O=>o.fileInput=O),"show-size":"",accept:".bin","data-test":"file-input",style:{position:"fixed",top:"-100%"}},null,8,["modelValue"]),g(ue,null,{default:h(()=>[g(f,null,{default:h(()=>[g(d,{dense:""},{default:h(()=>[g(u,{cols:"6"},{default:h(()=>[g(c,{id:"filename",modelValue:i.fullFilename,"onUpdate:modelValue":t[1]||(t[1]=O=>i.fullFilename=O),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Filename",class:"filename","data-test":"filename"},null,8,["modelValue"])]),_:1}),g(u,{cols:"6"},{default:h(()=>[g(c,{id:"definition-filename",modelValue:o.definitionFilename,"onUpdate:modelValue":t[2]||(t[2]=O=>o.definitionFilename=O),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Definition",class:"filename","data-test":"definition-filename"},null,8,["modelValue"])]),_:1})]),_:1}),g(d,{dense:""},{default:h(()=>[g(u,{cols:"auto",class:"mr-auto"},{default:h(()=>[t[25]||(t[25]=U("span",{class:"text-body-1 ma-2"},"File Download:",-1)),g(b,{dense:"",color:"primary",class:"mr-3",disabled:o.filename=="","data-test":"download-file-binary",onClick:t[3]||(t[3]=O=>i.downloadBinary(null))},{default:h(()=>[t[20]||(t[20]=T(" Binary ",-1)),g(p,{end:"",theme:"dark"},{default:h(()=>[...t[19]||(t[19]=[T(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled"]),g(b,{dense:"",color:"primary",class:"mr-3",disabled:o.filename=="","data-test":"download-file-definition",onClick:t[4]||(t[4]=O=>i.downloadDefinition(null))},{default:h(()=>[t[22]||(t[22]=T(" Definition ",-1)),g(p,{end:"",theme:"dark"},{default:h(()=>[...t[21]||(t[21]=[T(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled"]),g(b,{dense:"",color:"primary",disabled:o.filename=="","data-test":"download-file-report",onClick:t[5]||(t[5]=O=>i.downloadReport(null))},{default:h(()=>[t[24]||(t[24]=T(" Report ",-1)),g(p,{end:"",theme:"dark"},{default:h(()=>[...t[23]||(t[23]=[T(" mdi-file-document ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:h(()=>[g(b,{dense:"",color:"primary",disabled:!o.uploadScript,"data-test":"upload-file",onClick:t[6]||(t[6]=O=>i.upload())},{default:h(()=>[t[27]||(t[27]=T(" Upload ",-1)),g(p,{end:"",theme:"dark"},{default:h(()=>[...t[26]||(t[26]=[T(" mdi-file-upload ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:h(()=>[g(b,{dense:"",color:"primary",disabled:!o.downloadScript,"data-test":"download-file",onClick:t[7]||(t[7]=O=>i.download())},{default:h(()=>[t[29]||(t[29]=T(" Download ",-1)),g(p,{end:"",theme:"dark"},{default:h(()=>[...t[28]||(t[28]=[T(" mdi-file-download ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:h(()=>[g(x,{"open-delay":600,location:"top"},{activator:h(({props:O})=>[U("span",At(Ct(O)),[g(m,{modelValue:o.scriptBackground,"onUpdate:modelValue":t[8]||(t[8]=Q=>o.scriptBackground=Q),label:"B/G",class:"shrink mt-0","data-test":"upload-background"},null,8,["modelValue"])],16)]),default:h(()=>[t[30]||(t[30]=U("span",null,"Run upload download scripts in the background",-1))]),_:1})]),_:1})]),_:1})]),_:1}),g(y,{class:"d-flex align-center"},{default:h(()=>[t[31]||(t[31]=T(" Items ",-1)),g(A),g(c,{modelValue:o.search,"onUpdate:modelValue":t[9]||(t[9]=O=>o.search=O),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),(E(),C(_,{key:`v-tabs_${o.tables.length}`,modelValue:o.curTab,"onUpdate:modelValue":t[10]||(t[10]=O=>o.curTab=O)},{default:h(()=>[(E(!0),P(K,null,te(o.tables,(O,Q)=>(E(),C(S,{key:Q},{default:h(()=>[T(j(O.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])),(E(),C(me,{key:`v-tabs-window_${o.tables.length}`,modelValue:o.curTab,"onUpdate:modelValue":t[11]||(t[11]=O=>o.curTab=O)},{default:h(()=>[(E(!0),P(K,null,te(o.tables,(O,Q)=>(E(),C(re,{key:`${o.filename}${Q}`},{default:h(()=>[g(q,{headers:O.headers,items:O.rows,search:o.search,"items-per-page":20,"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact","data-test":O.name},je({item:h(({item:ee})=>[(E(),C(N,{key:ee[0].name,items:ee,onChange:be(V=>i.onChange(ee,V),["self"])},null,8,["items","onChange"]))]),_:2},[o.tables.length>1?{name:"tfoot",fn:h(()=>[U("div",ki,[t[38]||(t[38]=U("span",{class:"text-body-1 mr-3"},"Table Download:",-1)),g(b,{dense:"",color:"primary",class:"mr-3",disabled:o.filename=="","data-test":"download-table-binary",onClick:ee=>i.downloadBinary(O.name)},{default:h(()=>[t[33]||(t[33]=T(" Binary ",-1)),g(p,{end:"",theme:"dark"},{default:h(()=>[...t[32]||(t[32]=[T(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),g(b,{dense:"",color:"primary",class:"mr-3",disabled:o.filename=="","data-test":"download-table-definition",onClick:ee=>i.downloadDefinition(O.name)},{default:h(()=>[t[35]||(t[35]=T(" Definition ",-1)),g(p,{end:"",theme:"dark"},{default:h(()=>[...t[34]||(t[34]=[T(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),g(b,{dense:"",color:"primary",disabled:o.filename=="","data-test":"download-table-report",onClick:ee=>i.downloadReport(O.name)},{default:h(()=>[t[37]||(t[37]=T(" Report ",-1)),g(p,{end:"",theme:"dark"},{default:h(()=>[...t[36]||(t[36]=[T(" mdi-file-document ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),key:"0"}:void 0]),1032,["headers","items","search","data-test"])]),_:2},1024))),128))]),_:1},8,["modelValue"]))]),_:1}),o.fileOpen?(E(),C(de,{key:0,modelValue:o.fileOpen,"onUpdate:modelValue":t[12]||(t[12]=O=>o.fileOpen=O),type:"open","api-url":"/openc3-api/tables","custom-help-text":o.fileNew?"Select a definition file (.txt) to generate a new binary table file using the default values. If you select a binary file (.bin), it will open the existing file instead. Use the search box to filter results.":null,onFile:t[13]||(t[13]=O=>i.setFile(O)),onError:t[14]||(t[14]=O=>i.setError(O))},null,8,["modelValue","custom-help-text"])):ne("",!0),o.showSaveAs?(E(),C(de,{key:1,modelValue:o.showSaveAs,"onUpdate:modelValue":t[15]||(t[15]=O=>o.showSaveAs=O),type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":o.filename,onFilename:t[16]||(t[16]=O=>i.saveAsFilename(O)),onError:t[17]||(t[17]=O=>i.setError(O))},null,8,["modelValue","input-filename"])):ne("",!0),g(G,{modelValue:o.showError,"onUpdate:modelValue":t[18]||(t[18]=O=>o.showError=O),title:o.errorTitle,text:o.errorText},null,8,["modelValue","title","text"])])}const Xi=En("default",Ne(Si,[["render",Ai],["__scopeId","data-v-1da113a2"]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./main-90fc5051cec3c87257d6.js","vue","./DetailsDialog-F4KgYM6m-97497691b215ff8fa563.js","single-spa","./VWidget-oMbywhLA-a3445c8c7a212fc13231.js","vue-router","pinia","vuetify","./LimitsBar-D5IZu7eX-3666f677e8a141dda10d.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js"],(function(C,z){"use strict";var c,a,s,r,n,u,m,l,d,h,p,g,v,x,w,y;return{setters:[e=>{c=e.e},e=>{a=e.resolveComponent,s=e.openBlock,r=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,m=e.normalizeClass,l=e.withCtx,d=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{w=e.Z},null,e=>{y=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:w},mixins:[y],data:function(){return{width:200,height:200}},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)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},f={class:"textbox-widget-container"};function V(t,o,N,E,F,k){const D=a("v-textarea"),B=a("v-list-item-title"),S=a("v-list-item"),_=a("v-list"),M=a("v-menu"),T=a("details-dialog");return s(),r("div",f,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:m(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(M,{modelValue:t.contextMenuShown,"onUpdate:modelValue":o[0]||(o[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(_,null,{default:l(()=>[(s(!0),r(d,null,h(t.contextMenuOptions,(i,j)=>(s(),p(S,{key:j,onClick:g(i.action,["stop"])},{default:l(()=>[n(B,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(T,{modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[1]=i=>t.viewDetails=i),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const L=C("default",c(e,[["render",V],["__scopeId","data-v-ce1e6683"]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","vue","./main-90fc5051cec3c87257d6.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var t,l,n,a,s,r;return{setters:[e=>{t=e.h},e=>{l=e.resolveComponent,n=e.openBlock,a=e.createBlock,s=e.normalizeStyle},e=>{r=e.e},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,i,y,f,o,g){const h=l("v-text-field");return n(),a(h,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=m=>o.value=m),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const v=u("default",r(e,[["render",c]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","./OpenC3TimePicker-B0lAIU91-4af4359c26da8bf0fd6e.js","./main-90fc5051cec3c87257d6.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,f){"use strict";var l,i,n,a,r,s,o,m;return{setters:[e=>{l=e.h},e=>{i=e.w},e=>{n=e.e,a=e.R},e=>{r=e.resolveComponent,s=e.openBlock,o=e.createBlock,m=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:i},mixins:[l,a],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function p(h,u,y,T,t,v){const d=r("OpenC3TimePicker");return s(),o(d,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=V=>t.timeValue=V),label:t.label,style:m(h.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const k=c("default",n(e,[["render",p]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","vue","./main-90fc5051cec3c87257d6.js","vue-router","pinia","single-spa","vuetify"],(function(s,p){"use strict";var t,r,n,l,a,i;return{setters:[e=>{t=e.h},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,a=e.toDisplayString},e=>{i=e.e},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function o(c,f,h,y,d,u){return r(),n("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},a(u.labelText),5)}const m=s("default",i(e,[["render",o]]))})}}));
@@ -1 +1 @@
1
- System.register(["./main-00f66f7e3e3538618993.js","./Widget-BDsgRxuV-0ee27357bedb11780ab2.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(g,v){"use strict";var u,h,o,c;return{setters:[i=>{u=i.R},i=>{h=i.h},i=>{o=i.a,c=i.r}],execute:(function(){const i={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?JSON.stringify(e).replace(/\\n/g,""):this.isObject(e)?JSON.stringify(e).replace(/\\n/g,""):t&&e?typeof e=="bigint"?this.formatBigInt(e,t):sprintf(t,e):e==null?"null":String(e)},formatBigInt(e,t){const a=t.match(/^([^%]*)%([#0 +-]*)(\d+)?\.?(\d+)?([diouxX])(.*)$/);if(a){const[,f,n,m,,r,I]=a;let d=e<0n,l=d?-e:e,s;switch(r){case"d":case"i":case"u":s=l.toString(10);break;case"o":s=l.toString(8);break;case"x":s=l.toString(16);break;case"X":s=l.toString(16).toUpperCase();break}if(n.includes("#")&&(r==="x"?s="0x"+s:r==="X"?s="0X"+s:r==="o"&&!s.startsWith("0")&&(s="0"+s)),d&&(r==="d"||r==="i")&&(s="-"+s),m){const p=Number.parseInt(m);n.includes("-")?s=s.padEnd(p," "):s=s.padStart(p,n.includes("0")?"0":" ")}return f+s+I}return e.toString()},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),a=>("0"+(a&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}};g({g:i,T:{mixins:[h,u,i],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open(this.tlmGrapherUrl,"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor(){return c(this._limitsState)},astroStatus(){return o(this.limitsColor)},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""},tlmGrapherUrl(){let e="/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]);return this.arrayIndex!==null&&(e+=`[${this.arrayIndex}]`),e+"/"}},created(){if(this.value===null||this.limitsState===null){const e=this.parseItemName(this.parameters[2]);this.parameters[2]=e.name,this.arrayIndex=e.arrayIndex,this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="FORMATTED";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.log(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}}})})}}));
1
+ System.register(["./main-90fc5051cec3c87257d6.js","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(f,v){"use strict";var u,o,h,c;return{setters:[i=>{u=i.R},i=>{o=i.h},i=>{h=i.a,c=i.r}],execute:(function(){const i={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?JSON.stringify(e).replace(/\\n/g,""):this.isObject(e)?JSON.stringify(e).replace(/\\n/g,""):t&&e?typeof e=="bigint"?this.formatBigInt(e,t):sprintf(t,e):e==null?"null":String(e)},formatBigInt(e,t){const a=t.match(/^([^%]*)%([#0 +-]*)(\d+)?\.?(\d+)?([diouxX])(.*)$/);if(a){const[,g,n,m,,r,I]=a;let d=e<0n,l=d?-e:e,s;switch(r){case"d":case"i":case"u":s=l.toString(10);break;case"o":s=l.toString(8);break;case"x":s=l.toString(16);break;case"X":s=l.toString(16).toUpperCase();break}if(n.includes("#")&&(r==="x"?s="0x"+s:r==="X"?s="0X"+s:r==="o"&&!s.startsWith("0")&&(s="0"+s)),d&&(r==="d"||r==="i")&&(s="-"+s),m){const p=Number.parseInt(m);n.includes("-")?s=s.padEnd(p," "):s=s.padStart(p,n.includes("0")?"0":" ")}return g+s+I}return e.toString()},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),a=>("0"+(a&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}};f({g:i,T:{mixins:[o,u,i],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open(this.tlmGrapherUrl,"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor(){return c(this._limitsState)},astroStatus(){return h(this.limitsColor)},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""},tlmGrapherUrl(){let e="/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]);return this.arrayIndex!==null&&(e+=`[${this.arrayIndex}]`),e+"/"}},created(){if(this.value===null||this.limitsState===null){const e=this.parseItemName(this.parameters[2]);this.parameters[2]=e.name,this.arrayIndex=e.arrayIndex,this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="FORMATTED";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.log(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}}})})}}));
@@ -0,0 +1 @@
1
+ System.register(["./main-90fc5051cec3c87257d6.js","vue","./DetailsDialog-F4KgYM6m-97497691b215ff8fa563.js","single-spa","./VWidget-oMbywhLA-a3445c8c7a212fc13231.js","vue-router","pinia","vuetify","./LimitsBar-D5IZu7eX-3666f677e8a141dda10d.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js"],(function(D,I){"use strict";var d,a,o,u,p,i,v,c,n,l,g,m,h,y,f,x,C,k,V;return{setters:[e=>{d=e.e},e=>{a=e.resolveComponent,o=e.openBlock,u=e.createElementBlock,p=e.normalizeStyle,i=e.createBlock,v=e.normalizeClass,c=e.createSlots,n=e.withCtx,l=e.createVNode,g=e.createElementVNode,m=e.toDisplayString,h=e.mergeProps,y=e.Fragment,f=e.renderList,x=e.withModifiers,C=e.createTextVNode},e=>{k=e.Z},null,e=>{V=e.T},null,null,null,null,null,null],execute:(function(){const T={components:{DetailsDialog:k},mixins:[V],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(Number.parseInt(this.parameters[4])+4,"ch",this.width)}};function B(t,r,U,W,F,w){const S=a("rux-status"),_=a("v-text-field"),E=a("v-tooltip"),M=a("v-list-item-title"),N=a("v-list-item"),L=a("v-list"),j=a("v-menu"),z=a("details-dialog");return o(),u("div",{class:"value-widget-container",style:p([t.computedStyle,w.aging])},[t.tooltipText?(o(),i(_,{key:1,variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:v(t.valueClass),"data-test":"value",onContextmenu:t.showContextMenu},c({_:2},[t.astroStatus?{name:"prepend-inner",fn:n(()=>[l(S,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1032,["model-value","class","onContextmenu"])):(o(),i(E,{key:0,"open-delay":600,location:"top"},{activator:n(({props:s})=>[l(_,h({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value"},s,{onContextmenu:t.showContextMenu}),c({_:2},[t.astroStatus?{name:"prepend-inner",fn:n(()=>[l(S,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:n(()=>[g("span",null,m(w.fullName),1)]),_:1})),l(j,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:n(()=>[l(L,null,{default:n(()=>[(o(!0),u(y,null,f(t.contextMenuOptions,(s,A)=>(o(),i(N,{key:A,onClick:x(s.action,["stop"])},{default:n(()=>[l(M,null,{default:n(()=>[C(m(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),l(z,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=s=>t.viewDetails=s),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])],4)}const P=D("default",d(T,[["render",B],["__scopeId","data-v-8340df7d"]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-B1aGUBP7-2b9a2c1b61afe90af221.js","./LimitsbarWidget-VpxQXE-e-d51a6f6b51bdd91a0018.js","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","vue","./main-90fc5051cec3c87257d6.js","./DetailsDialog-F4KgYM6m-97497691b215ff8fa563.js","./LimitsBar-D5IZu7eX-3666f677e8a141dda10d.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-oMbywhLA-a3445c8c7a212fc13231.js","vue-router","pinia","vuetify","./BarColumn-BpdscDQf-75c9b31e68a938d09581.js"],(function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.h},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.e},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:r,LimitsbarWidget:i},mixins:[a]};function p(t,j,b,V,w,x){const d=n("value-widget"),v=n("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(v,l(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"])],4)}const B=g("default",m(e,[["render",p]]))})}}));
@@ -1 +1 @@
1
- System.register(["./ValueWidget-DzOSy7lp-f87f7987cdf1897032cb.js","./LimitscolumnWidget-r84KJGU--630178083b7420d3dcb1.js","./Widget-BDsgRxuV-0ee27357bedb11780ab2.js","vue","./main-00f66f7e3e3538618993.js","./DetailsDialog-q5SDzw3R-5b6c429783e6055b14b4.js","./LimitsBar-qMynDHYT-d6962c5816b0af6e1dcf.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-BDy0211S-0e20de64faf652f6eef1.js","vue-router","pinia","vuetify","./BarColumn-DwZmAe8g-b1b7c936b8c4d196f5b2.js"],(function(g,B){"use strict";var i,r,a,n,u,o,c,s,l,m;return{setters:[e=>{i=e.default},e=>{r=e.default},e=>{a=e.h},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:i,LimitscolumnWidget:r},mixins:[a]};function p(t,j,y,S,V,D){const d=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const f=g("default",m(e,[["render",p]]))})}}));
1
+ System.register(["./ValueWidget-B1aGUBP7-2b9a2c1b61afe90af221.js","./LimitscolumnWidget-BFDXhJeZ-7265ed002be5217eb052.js","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","vue","./main-90fc5051cec3c87257d6.js","./DetailsDialog-F4KgYM6m-97497691b215ff8fa563.js","./LimitsBar-D5IZu7eX-3666f677e8a141dda10d.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-oMbywhLA-a3445c8c7a212fc13231.js","vue-router","pinia","vuetify","./BarColumn-BpdscDQf-75c9b31e68a938d09581.js"],(function(g,B){"use strict";var i,r,a,n,u,o,c,s,l,m;return{setters:[e=>{i=e.default},e=>{r=e.default},e=>{a=e.h},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.e},null,null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:i,LimitscolumnWidget:r},mixins:[a]};function p(t,j,V,y,w,C){const d=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,"line-number":t.lineNumber}),null,16,["parameters","settings","screen-values","line","line-number"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const f=g("default",m(e,[["render",p]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-B1aGUBP7-2b9a2c1b61afe90af221.js","./RangebarWidget-MPQYi2Km-08c5e4108a4d3988031d.js","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","vue","./main-90fc5051cec3c87257d6.js","./DetailsDialog-F4KgYM6m-97497691b215ff8fa563.js","./LimitsBar-D5IZu7eX-3666f677e8a141dda10d.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","single-spa","./VWidget-oMbywhLA-a3445c8c7a212fc13231.js","vue-router","pinia","vuetify"],(function(g,f){"use strict";var n,i,l,r,m,u,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.h},e=>{r=e.resolveComponent,m=e.openBlock,u=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.e},null,null,null,null,null,null,null,null],execute:(function(){const e={components:{ValueWidget:n,RangebarWidget:i},mixins:[l],computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,j,P,w,y,c){const h=r("value-widget"),v=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(h,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(v,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const B=g("default",p(e,[["render",d]]))})}}));
@@ -1 +1 @@
1
- System.register(["./Layout-d-vb0okO-ec80da92f46fda74e8fc.js","vue","./main-00f66f7e3e3538618993.js","./Widget-BDsgRxuV-0ee27357bedb11780ab2.js","vue-router","pinia","single-spa","vuetify"],(function(w,T){"use strict";var m,u,n,s,v,l,y,i,o,d,f,c,p,k;return{setters:[t=>{m=t.r},t=>{u=t.resolveComponent,n=t.openBlock,s=t.createElementBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,d=t.createElementVNode,f=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{k=t.d},null,null,null,null,null],execute:(function(){const t={mixins:[m],created:function(){if(this.parameters[0]){let r=this.parameters[0];this.widgets.forEach(g=>{g.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&g.settings.push(["MARGIN",r])})}}};function h(r,g,a,x,z,A){const B=u("v-tooltip");return n(),s("div",{ref:"container",style:v(r.computedStyle)},[(n(!0),s(l,null,y(r.widgets,(e,C)=>(n(),s(l,{key:C},[r.getTooltipText(e)?(n(),i(B,{key:0,"open-delay":r.getTooltipDelay(e),location:"top","activator-props":r.getTooltipActivatorProps(e)},{activator:o(({props:N})=>[(n(),i(c(e.type),p({ref_for:!0},{...r.listeners,...N},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[d("span",null,f(r.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),i(c(e.type),p({key:1,ref_for:!0},r.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const b=w("default",k(t,[["render",h]]))})}}));
1
+ System.register(["./Layout-CKmC50QZ-f129ebe9d33eebd829c0.js","vue","./main-90fc5051cec3c87257d6.js","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","vue-router","pinia","single-spa","vuetify"],(function(C,z){"use strict";var g,u,n,s,v,l,y,i,o,d,f,c,p,w;return{setters:[t=>{g=t.r},t=>{u=t.resolveComponent,n=t.openBlock,s=t.createElementBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,d=t.createElementVNode,f=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{w=t.e},null,null,null,null,null],execute:(function(){const t={mixins:[g],created:function(){if(this.parameters[0]){let r=this.parameters[0];this.widgets.forEach(m=>{m.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&m.settings.push(["MARGIN",r])})}}};function k(r,m,a,b,x,A){const h=u("v-tooltip");return n(),s("div",{ref:"container",style:v(r.computedStyle)},[(n(!0),s(l,null,y(r.widgets,(e,N)=>(n(),s(l,{key:N},[r.getTooltipText(e)?(n(),i(h,{key:0,"open-delay":r.getTooltipDelay(e),location:"top","activator-props":r.getTooltipActivatorProps(e)},{activator:o(({props:T})=>[(n(),i(c(e.type),p({ref_for:!0},{...r.listeners,...T},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[d("span",null,f(r.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),i(c(e.type),p({key:1,ref_for:!0},r.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const B=C("default",w(t,[["render",k]]))})}}));
@@ -0,0 +1 @@
1
+ System.register(["./LabelWidget-BhzkN06D-80ee3cd612c60e471dea.js","./HorizontallineWidget-DeFkOaYO-567c37b07d9e06c88f62.js","./VerticalWidget-DlftYBjH-ead366d0a8e5ac6d1747.js","./Layout-CKmC50QZ-f129ebe9d33eebd829c0.js","vue","./main-90fc5051cec3c87257d6.js","./Widget-D_HaosJK-24d34ad275ee06d9cb88.js","vue-router","pinia","single-spa","vuetify"],(function(m,W){"use strict";var r,l,a,o,n,s,g,c,d,i,u,p;return{setters:[e=>{r=e.default},e=>{l=e.default},e=>{a=e.default},e=>{o=e.r},e=>{n=e.resolveComponent,s=e.openBlock,g=e.createElementBlock,c=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{p=e.e},null,null,null,null,null],execute:(function(){const e={components:{LabelWidget:r,HorizontalLineWidget:l,VerticalWidget:a},mixins:[o],created(){this.labelSettings=[...this.appliedSettings],this.labelSettings.find(t=>t[0]==="0"&&t[1].startsWith("RAW")&&t[2]==="font-weight")||this.labelSettings.push(["0","RAW__font-weight","font-weight","bold"])}};function f(t,k,B,S,j,V){const h=n("label-widget"),w=n("horizontal-line-widget"),v=n("vertical-widget");return s(),g("div",null,[t.parameters.length>0?(s(),c(h,{key:0,parameters:t.parameters.slice(0,1),settings:[...t.labelSettings],"widget-index":0},null,8,["parameters","settings"])):d("",!0),i(w,{settings:[...t.appliedSettings],"widget-index":1},null,8,["settings"]),i(v,u(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const b=m("default",p(e,[["render",f]]))})}}));
@@ -1 +1 @@
1
- System.register(["./main-00f66f7e3e3538618993.js"],(function(d,h){"use strict";var p,n,o;return{setters:[a=>{p=a.w,n=a.N,o=a.c}],execute:(function(){const a=d("h",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{tooltipText:function(){const t=this.appliedSettings.find(e=>e[0]==="TOOLTIP");return t?t[1]:null},tooltipDelay:function(){const t=this.appliedSettings.find(e=>e[0]==="TOOLTIP");return t&&t[2]?parseInt(t[2]):600},computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="1 1 auto"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.store.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},created(){this.store=o(this.$pinia),this.screenId=this.settings.find(t=>t[0]==="__SCREEN_ID__")?.at(1),this.widgetName=this.settings.find(t=>t[0]==="NAMED_WIDGET")?.at(1),this.widgetName&&this.store.setNamedWidget({[this.toQualifiedWidgetName(this.widgetName)]:this}),this.appliedSettings=this.settings.map(t=>{const e=parseInt(t[0]);if(Number.isNaN(e)||this.widgetIndex===null)return t;if(this.widgetIndex===e)return t.slice(1)}).filter(t=>t!==void 0)},beforeUnmount(){this.widgetName&&this.store.clearNamedWidget(this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;default:t[0].startsWith("RAW")&&(this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important");break}},verifyNumParams(t,e,i,s=""){let r={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new n(r,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new n(r,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(r=>r[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(r=>r[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`},parseItemName(t){if(t.includes("[[")){const i=t.replaceAll("[[","[").replaceAll("]]","]");return{name:i,arrayIndex:null,display:i}}const e=t.match(/\[(\d+)\]/);return e?{name:t.replace(e[0],""),arrayIndex:Number.parseInt(e[1]),display:t}:{name:t,arrayIndex:null,display:t}}}})})}}));
1
+ System.register(["./main-90fc5051cec3c87257d6.js"],(function(o,h){"use strict";var p,n,d;return{setters:[a=>{p=a.w,n=a.q,d=a.d}],execute:(function(){const a=o("h",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{tooltipText:function(){const t=this.appliedSettings.find(e=>e[0]==="TOOLTIP");return t?t[1]:null},tooltipDelay:function(){const t=this.appliedSettings.find(e=>e[0]==="TOOLTIP");return t&&t[2]?parseInt(t[2]):600},computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="1 1 auto"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.store.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},created(){this.store=d(this.$pinia),this.screenId=this.settings.find(t=>t[0]==="__SCREEN_ID__")?.at(1),this.widgetName=this.settings.find(t=>t[0]==="NAMED_WIDGET")?.at(1),this.widgetName&&this.store.setNamedWidget({[this.toQualifiedWidgetName(this.widgetName)]:this}),this.appliedSettings=this.settings.map(t=>{const e=parseInt(t[0]);if(Number.isNaN(e)||this.widgetIndex===null)return t;if(this.widgetIndex===e)return t.slice(1)}).filter(t=>t!==void 0)},beforeUnmount(){this.widgetName&&this.store.clearNamedWidget(this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":Number.isFinite(Number(t[1]))&&(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;default:t[0].startsWith("RAW")&&(this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important");break}},verifyNumParams(t,e,i,s=""){let r={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new n(r,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new n(r,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(r=>r[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(r=>r[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`},parseItemName(t){if(t.includes("[[")){const i=t.replaceAll("[[","[").replaceAll("]]","]");return{name:i,arrayIndex:null,display:i}}const e=t.match(/\[(\d+)\]/);return e?{name:t.replace(e[0],""),arrayIndex:Number.parseInt(e[1]),display:t}:{name:t,arrayIndex:null,display:t}}}})})}}));