openc3-cosmos-tool-tablemanager 6.9.1 → 6.9.2

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/tools/tablemanager/ArrayWidget-C59wpWWk-77f61ba333e3f3f77b4b.js +2 -0
  3. data/tools/tablemanager/{ArrayplotWidget-CoRsUxHG-a35ebbc8ced1b2492222.js → ArrayplotWidget-tKqIV461-89b2c1066b95f65f23cd.js} +1 -1
  4. data/tools/tablemanager/{BarColumn-DHP-zQ4R-5079f1b2b1176c77e10e.js → BarColumn-CUO9ur6W-2523afd12d726c10f5b5.js} +1 -1
  5. data/tools/tablemanager/{BlockWidget-BmHSFvOq-8e2b63157857b35ab9a8.js → BlockWidget-BdlMR_1A-31dee484117976acb950.js} +2 -2
  6. data/tools/tablemanager/{ButtonWidget-C3ZWRjZZ-f984094b2fe5afb892fc.js → ButtonWidget-C2JVmh3p-e9dc6f15ad229eb05bed.js} +2 -2
  7. data/tools/tablemanager/{CanvasWidget-CL-XzPF4-857194ae521d3ccbe7c7.js → CanvasWidget-BRbdw1fu-618d6c8f4b8271c0ae9d.js} +1 -1
  8. data/tools/tablemanager/{CanvasdotWidget-D8Y9DgVE-3c48976d34aae44e83ce.js → CanvasdotWidget-C8T_w03p-276f587c03eba9c0de5c.js} +1 -1
  9. data/tools/tablemanager/{CanvasimageWidget-DHSGK_tD-76772b4f593204369050.js → CanvasimageWidget-C1w2vSsG-e5e6da73c4f0c8f5b620.js} +1 -1
  10. data/tools/tablemanager/{CanvasimagevalueWidget-Btt_fQfC-44cfefc92d07bea98ece.js → CanvasimagevalueWidget-BMv2SmEq-e95b83de6cf5343f9af1.js} +1 -1
  11. data/tools/tablemanager/{CanvaslabelWidget-BF_8RTjv-7e5fb649ae00ec0f2ec9.js → CanvaslabelWidget-LEBZQ3DR-550b15a57018f95c8086.js} +1 -1
  12. data/tools/tablemanager/{CanvaslabelvalueWidget-scbwaujI-7c24b780f048c189668c.js → CanvaslabelvalueWidget-Q6UdEanF-e4d98df0ba2573b0e45a.js} +1 -1
  13. data/tools/tablemanager/{CanvaslineWidget-gRvm_-TT-609e5a6e98169c0a7d3d.js → CanvaslineWidget-BhvBCDoS-4e290c940a2d9b56b7f4.js} +1 -1
  14. data/tools/tablemanager/{CanvaslinevalueWidget-CljziRek-9231ec647c19eb446cd8.js → CanvaslinevalueWidget-EaASC9TU-b48e5751e2fe6501502a.js} +1 -1
  15. data/tools/tablemanager/CheckbuttonWidget-C3bjQwrp-a488c99f24fe320ed304.js +1 -0
  16. data/tools/tablemanager/{ComboboxWidget-BLXNYFiY-2f76d0d69c111f1ae0b4.js → ComboboxWidget-CmruSbJy-607a70fdd69f2761fcb6.js} +1 -1
  17. data/tools/tablemanager/{DateWidget-BTqLCtLS-e25256e3d2cfef39b747.js → DateWidget-CcUxRlJ2-9920a4b37bdb0d5e7d05.js} +1 -1
  18. data/tools/tablemanager/{DetailsDialog-BNCS3QAe-ed931620c06a99fafb92.js → DetailsDialog-DxYZre4A-d55a9e5c297f02d792da.js} +1 -1
  19. data/tools/tablemanager/{DynamicWidget-CfMtj7H8-cf60bb12ba823a543189.js → DynamicWidget-DHL7pbgW-78b3cb96dcba0dc398ad.js} +1 -1
  20. data/tools/tablemanager/{FormatvalueWidget-CLYx8qbg-3d550a2a0cbaadd32c45.js → FormatvalueWidget-Lk5K0wTL-cd2ebb4482dece798af6.js} +1 -1
  21. data/tools/tablemanager/Graph-CjEE2WxX-82a0df6a00bb006aec3b.js +1 -0
  22. data/tools/tablemanager/{GraphWidget-Cb6Ozf54-15d9b9fe58e5f51213c1.js → GraphWidget-BaO2FpKo-574c8509dc4df24955c4.js} +1 -1
  23. data/tools/tablemanager/{HorizontalWidget-AY2M01qP-3f954cdff85016b47e71.js → HorizontalWidget-D3Q5IUQg-f8a632850d714e3cad70.js} +1 -1
  24. data/tools/tablemanager/{HorizontalboxWidget-2MEKvq_C-a1055284b26d386a57da.js → HorizontalboxWidget-D7bUUqfG-575178a98040e96d9612.js} +1 -1
  25. data/tools/tablemanager/HorizontallineWidget-DZcIetQh-1c690632d6fea2561a89.js +1 -0
  26. data/tools/tablemanager/{IframeWidget-UKKUl7k5-8ba43274a15299f3eb70.js → IframeWidget-Df7vTYZj-dd076fa553b1f47c9376.js} +1 -1
  27. data/tools/tablemanager/{ImageLoader-C-CIL4YD-f620df8a15a80a2b4a75.js → ImageLoader-DpKY46fX-f867e0e3d4dd782468fd.js} +1 -1
  28. data/tools/tablemanager/{ImageviewerWidget-DhuQH5Io-e6d3e499c5c8ff286fb4.js → ImageviewerWidget-wHbhv08x-e855bc2bad36895c97b3.js} +1 -1
  29. data/tools/tablemanager/{LabelWidget-SO9zqcNN-8c5ccb544d97bece91cd.js → LabelWidget-BehwzOCR-b76c2d3ff3c362bfa15e.js} +1 -1
  30. data/tools/tablemanager/LabelledWidget-DJKR8ikj-51cc9ed9bb4a170060a7.js +1 -0
  31. data/tools/tablemanager/LabelprogressbarWidget-D4Qzq894-c1ecc91fe544dbaa2c80.js +1 -0
  32. data/tools/tablemanager/LabelsparklineWidget-CwCOklZG-43599809d1e7107ef701.js +1 -0
  33. data/tools/tablemanager/{LabelvalueWidget-B6BbNFnk-932834a2f083563ecb83.js → LabelvalueWidget-DW8Q7BTX-c0d6449705ab96c4791f.js} +1 -1
  34. data/tools/tablemanager/{LabelvaluedescWidget-CxfL-H9C-9aab8824dfdefe3da440.js → LabelvaluedescWidget-DgNX7tK2-14c36d0448f905952b33.js} +1 -1
  35. data/tools/tablemanager/{LabelvaluelimitsbarWidget-BT5k9mHv-c02cc343badcca59d5c5.js → LabelvaluelimitsbarWidget-DAEBW0hU-f6c5095b99c432419787.js} +1 -1
  36. data/tools/tablemanager/LabelvaluelimitscolumnWidget-Dok-of6n-fff6ea1097e10ed0a108.js +1 -0
  37. data/tools/tablemanager/{LabelvaluerangebarWidget-DexAc2UB-5d9ff193ed3bbd66ef2f.js → LabelvaluerangebarWidget-CQ0xCUFU-e45ddae3196e0cdc42e3.js} +1 -1
  38. data/tools/tablemanager/{Layout-Dd6dRf3R-22e7980cc4d9deed5eb0.js → Layout-CrCMUbtG-cbf43f755a7cc657f4ff.js} +1 -1
  39. data/tools/tablemanager/{LedWidget-D1RwHb_V-dbbd33e0d57a8c03da51.js → LedWidget-DzQNEDF7-98aa33b3fc5adbc5cdc1.js} +1 -1
  40. data/tools/tablemanager/{LimitsbarWidget-ClOmoV50-1a3aba905a8d30bf96f6.js → LimitsbarWidget-zkoAz9SQ-9954d767cba3b513f8f4.js} +1 -1
  41. data/tools/tablemanager/{LimitscolorWidget-CBUoEYKp-1c0bad8068b70acc4c9b.js → LimitscolorWidget-dez316Rk-41510b74a10576bf838d.js} +1 -1
  42. data/tools/tablemanager/{LimitscolumnWidget-hsHkmY-_-92fa5366352bc6f77909.js → LimitscolumnWidget-D-IPNDVg-b8dc278c395cad86dc75.js} +1 -1
  43. data/tools/tablemanager/LinegraphWidget-CicnZgjt-8025dc4f344248cf32ed.js +1 -0
  44. data/tools/tablemanager/{MatrixbycolumnsWidget-CsogVU9c-f490b98cb18b2fa9fa66.js → MatrixbycolumnsWidget-D3qN6GTr-d123ebbf79e32701352f.js} +1 -1
  45. data/tools/tablemanager/{ProgressbarWidget-CO6CEkxP-d07272ae712e3476f8f0.js → ProgressbarWidget-CLilcPBe-355707087c3a6766ee45.js} +1 -1
  46. data/tools/tablemanager/{RadiobuttonWidget-DrxUclws-42444ee2899b6a89532a.js → RadiobuttonWidget-Dsy01RJ--01dc22b50126911bb76f.js} +1 -1
  47. data/tools/tablemanager/RadiogroupWidget-BNcVGNj1-18b195bbbd7cfea77a32.js +1 -0
  48. data/tools/tablemanager/{RangebarWidget-5uQTfLMP-e33b04a42411ec4652f6.js → RangebarWidget-DhcoIdNf-3f1cd4f2a2716e71e029.js} +1 -1
  49. data/tools/tablemanager/{RollupWidget-B0DCULnu-af16ab7801944ee91407.js → RollupWidget-BypuPvE7-bab0a9cb7f9c3626523f.js} +1 -1
  50. data/tools/tablemanager/{ScrollwindowWidget-BOkZQgtf-90668364d1a0d454b2b9.js → ScrollwindowWidget-DNQgHoNO-41d117052d5b07fad78f.js} +1 -1
  51. data/tools/tablemanager/{SignalWidget-Cis0Xkea-bb8554aa12a284dfe453.js → SignalWidget-BHwyScCG-e28aab4d0435b781db4a.js} +1 -1
  52. data/tools/tablemanager/{SpacerWidget-CLcqC2Qk-49bffacbe6dd27adcc3f.js → SpacerWidget-CFxXXTm7-f1b4e2faeb044df5e656.js} +1 -1
  53. data/tools/tablemanager/{SparklineWidget-CTp83eZ--2e5abfc0be125a25296d.js → SparklineWidget-C0lRpRrp-14c0ed42f4688182227b.js} +1 -1
  54. data/tools/tablemanager/{TabbookWidget-uucd-zsX-e3ea9941853c50765800.js → TabbookWidget-CeeBOYOt-f8fa7dfc3045c82137b4.js} +1 -1
  55. data/tools/tablemanager/TableManager-7f7026f0dd9e83428229.js +13 -0
  56. data/tools/tablemanager/TextboxWidget-DoA2b3YU-da561688656847a79bf0.js +1 -0
  57. data/tools/tablemanager/{TextfieldWidget--HTv9ddk-3420980089502318a750.js → TextfieldWidget-Dj4DV74o-5255d9d1753fe83a6639.js} +1 -1
  58. data/tools/tablemanager/{TimeWidget-CPNVZaUM-f39f95eb8b76a1c99783.js → TimeWidget-DAQDQ0UM-41948210fcdb648d8443.js} +1 -1
  59. data/tools/tablemanager/TitleWidget-Ct0JlY9s-f03fa562b8e27df425ac.js +1 -0
  60. data/tools/tablemanager/{VWidget-DQGJRgAk-310a282de1ac7a21b132.js → VWidget-A802LGvR-a9f15ae9284995027636.js} +1 -1
  61. data/tools/tablemanager/{ValueWidget-Bk1RFjks-8e6bfec819006b01220b.js → ValueWidget-QaBYsiZz-1433e7c600f0e241193f.js} +1 -1
  62. data/tools/tablemanager/ValuelimitsbarWidget-CFToRM7w-7167b5265fc9123d9840.js +1 -0
  63. data/tools/tablemanager/ValuelimitscolumnWidget-BG7naMYx-a5ea1aa8ba8f5d610785.js +1 -0
  64. data/tools/tablemanager/{ValuerangebarWidget-CcQw_XK9-96c8379055e882d2aed7.js → ValuerangebarWidget-CChK2Lmm-d7a6742b356565d3e20c.js} +1 -1
  65. data/tools/tablemanager/{VerticalWidget-CNtFQv3R-dda553a4ccc311741516.js → VerticalWidget-C8iN5DJK-f86145fdcc46d329c134.js} +1 -1
  66. data/tools/tablemanager/VerticalboxWidget-CXwUSWrP-fb5b8bbc8ffc5aea4773.js +1 -0
  67. data/tools/tablemanager/{Widget-LsyjS7ZS-94cf800423e8fa13ab2f.js → Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js} +1 -1
  68. data/tools/tablemanager/main-eefbb0af54e75407723d.js +1503 -0
  69. data/tools/tablemanager/main.js +1 -1
  70. metadata +68 -68
  71. data/tools/tablemanager/ArrayWidget-DLfNWDzN-5292686ae227fce41653.js +0 -2
  72. data/tools/tablemanager/CheckbuttonWidget-BOabI_jE-59ffead0a3d42c97f497.js +0 -1
  73. data/tools/tablemanager/Graph-BliBYJxD-aa99a1c01328270da017.js +0 -1
  74. data/tools/tablemanager/HorizontallineWidget-DgpOPA7q-ec5ac519eaa97c0cd633.js +0 -1
  75. data/tools/tablemanager/LabelledWidget-DWoM5AJ5-ce606e3cd9f2eb6f4e72.js +0 -1
  76. data/tools/tablemanager/LabelprogressbarWidget-D3vnkvQZ-e4afa3b6a46d33a6cf55.js +0 -1
  77. data/tools/tablemanager/LabelsparklineWidget-DO0T-Jot-643d505c8e83ea484e99.js +0 -1
  78. data/tools/tablemanager/LabelvaluelimitscolumnWidget-DUbmxh4p-23ec013a8e08eb8f248f.js +0 -1
  79. data/tools/tablemanager/LinegraphWidget-CXrKtxOo-2aa4b5b940f6986ce4ae.js +0 -1
  80. data/tools/tablemanager/RadiogroupWidget-DN9C38cg-96fab4cc497f692baa03.js +0 -1
  81. data/tools/tablemanager/TableManager-ea39fb61c2ca185e54cd.js +0 -13
  82. data/tools/tablemanager/TextboxWidget-C2n38ti5-29ecf1ac8b51edf5e924.js +0 -1
  83. data/tools/tablemanager/TitleWidget-Cp0cb6V8-1fddb1337c306ba9fb4f.js +0 -1
  84. data/tools/tablemanager/ValuelimitsbarWidget-C0HIBYh2-bdfce77a46e0e5c6bc4c.js +0 -1
  85. data/tools/tablemanager/ValuelimitscolumnWidget-BTT90uyX-5dc4f3e59bad9114ce11.js +0 -1
  86. data/tools/tablemanager/VerticalboxWidget-Yxmz1SnU-c691c1061113decccf48.js +0 -1
  87. data/tools/tablemanager/main-58ba860622dd5d1833ca.js +0 -1503
@@ -0,0 +1,13 @@
1
+ System.register(["./main-eefbb0af54e75407723d.js","vue","single-spa","./VWidget-A802LGvR-a9f15ae9284995027636.js","./IframeWidget-Df7vTYZj-dd076fa553b1f47c9376.js","vue-router","vuex","vuetify","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js"],function(gn,ps){"use strict";var he,pe,Se,y,C,w,dt,g,p,V,U,$,K,Q,A,qe,Ee,ee,ke,Oe,me,ft,ht,ze,pt,He,mt,gt,_t;return{setters:[T=>{he=T.d,pe=T.F,Se=T._},T=>{y=T.resolveComponent,C=T.createBlock,w=T.openBlock,dt=T.Teleport,g=T.createVNode,p=T.withCtx,V=T.createElementVNode,U=T.toDisplayString,$=T.createElementBlock,K=T.Fragment,Q=T.renderList,A=T.createTextVNode,qe=T.mergeProps,Ee=T.createSlots,ee=T.createCommentVNode,ke=T.normalizeStyle,Oe=T.withKeys,me=T.withModifiers,ft=T.withDirectives,ht=T.vShow,ze=T.ref,pt=T.computed,He=T.watch,mt=T.normalizeProps,gt=T.guardReactiveProps},null,T=>{_t=T.a},null,null,null,null,null],execute:function(){var T=document.createElement("style");T.textContent=`.filename[data-v-2eb6d698]{background-color:var(--color-background-base-default)}
2
+ /*$vite$:1*/`,document.head.appendChild(T);const _n={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},bn={class:"app-title mr-2"};function yn(e,t,n,r,i,o){const s=y("v-col"),a=y("v-row"),c=y("v-icon"),u=y("v-btn"),d=y("v-divider"),_=y("v-list-item-title"),b=y("v-list-item"),h=y("v-list"),f=y("v-menu"),m=y("v-radio"),O=y("v-list-item-action"),k=y("v-radio-group"),F=y("v-checkbox");return w(),C(dt,{to:"#openc3-menu"},[g(a,{"no-gutters":""},{default:p(()=>[g(s,{"align-self":"end"},{default:p(()=>[V("span",bn,U(n.title),1)]),_:1})]),_:1}),g(a,{dense:"",class:"flex-nowrap"},{default:p(()=>[(w(!0),$(K,null,Q(n.menus,(R,L)=>(w(),C(f,{ref_for:!0,ref:"topmenu",key:L},{activator:p(({props:E})=>[g(u,qe({ref_for:!0},E,{variant:"outlined",class:"mx-1 menu-button",text:R.label,"data-test":o.formatDT(`${n.title} ${R.label}`)}),{append:p(()=>[g(c,{class:"menu-button-icon"},{default:p(()=>[...t[0]||(t[0]=[A(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:p(()=>[g(h,null,{default:p(()=>[(w(!0),$(K,null,Q(R.items,(E,J)=>(w(),$(K,null,[E.divider?(w(),C(d,{key:J+"-divider"})):E.subMenu&&E.subMenu.length>0?(w(),$("div",{key:J+"-submenu"},[(w(),C(f,{"open-on-hover":"",location:"right",key:J},{activator:p(({props:j})=>[(w(),C(b,qe({ref_for:!0},j,{disabled:E.disabled,key:J}),Ee({append:p(()=>[g(c,null,{default:p(()=>[...t[1]||(t[1]=[A(" mdi-chevron-right ",-1)])]),_:1})]),default:p(()=>[!E.radio&&!E.checkbox?(w(),C(_,{key:0,style:ke("cursor: pointer;"+(E.disabled?"opacity: 0.2":""))},{default:p(()=>[A(U(E.label),1)]),_:2},1032,["style"])):ee("",!0)]),_:2},[E.icon?{name:"prepend",fn:p(()=>[g(c,{disabled:E.disabled},{default:p(()=>[A(U(E.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:p(()=>[g(h,null,{default:p(()=>[(w(!0),$(K,null,Q(E.subMenu,(j,Z)=>(w(),C(b,{key:Z,"prepend-icon":j.icon,onClick:ne=>o.subMenuClick(j)},{default:p(()=>[g(_,null,{default:p(()=>[A(U(j.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):E.radioGroup?(w(),C(k,{"model-value":E.value,"onUpdate:modelValue":E.command,key:J+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:p(()=>[(w(!0),$(K,null,Q(E.choices,(j,Z)=>(w(),C(b,{key:Z+"-choice"},{default:p(()=>[g(O,{class:"list-action"},{default:p(()=>[g(m,{color:"secondary",label:j.label,value:j.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(w(),C(b,{onClick:j=>E.command(E),disabled:E.disabled,"data-test":o.formatDT(`${n.title} ${R.label} ${E.label}`),key:J+"-list"},Ee({default:p(()=>[E.checkbox?(w(),C(O,{key:0,class:"list-action"},{default:p(()=>[g(F,{modelValue:E.checked,"onUpdate:modelValue":j=>E.checked=j,label:E.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ee("",!0),!E.radio&&!E.checkbox?(w(),C(_,{key:1,style:ke("cursor: pointer;"+(E.disabled?"opacity: 0.2":""))},{default:p(()=>[A(U(E.label),1)]),_:2},1032,["style"])):ee("",!0)]),_:2},[E.icon?{name:"prepend",fn:p(()=>[g(c,{icon:E.icon,disabled:E.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const wn=he(_n,[["render",yn],["__scopeId","data-v-4d454b93"]]),vn=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"},xn={class:"tree-node"},Sn={class:"content-wrapper"},En=["tabindex"],kn={key:1},On={key:2,class:"children"},Cn={__name:"TreeNode",props:{node:{type:Object,required:!0},search:{type:String,default:""},type:{type:String,default:"open"}},emits:["nodeToggled","request"],setup(e,{emit:t}){const n=e,r=ze(n.node.isOpen||!1),i=pt(()=>{const h=f=>{var m;return!n.search||f.path.toLowerCase().includes(n.search.toLowerCase())?!0:!!((m=f.children)!=null&&m.some(h))};return h(n.node)});He(()=>n.node.isOpen,h=>{r.value=h}),He(()=>n.search,h=>{h?n.node.isOpen||d():n.node.isOpen&&d()});const o=t,s=ze({show:!1,text:"",x:0,y:0}),a=(h,f)=>{if(!f||f.length<=50)return;const m=h.target.getBoundingClientRect(),O=m.left,k=m.top;s.value.text=f,s.value.x=O,s.value.y=k-40,s.value.show=!0},c=()=>{s.value.show=!1},u=h=>{h.children?(d(),n.type==="save"&&o("request",h)):o("request",h)},d=()=>{n.node.children&&(r.value=!r.value,n.node.isOpen=r.value,o("nodeToggled",n.node.id,r.value))},_=(h,f)=>{o("nodeToggled",h,f)},b=h=>{o("request",h)};return(h,f)=>{const m=y("v-tooltip"),O=y("v-icon"),k=y("v-btn"),F=y("tree-node",!0);return w(),$(K,null,[g(m,{modelValue:s.value.show,"onUpdate:modelValue":f[0]||(f[0]=R=>s.value.show=R),text:s.value.text,location:"top",style:ke(`position: fixed; left: ${s.value.x}px; top: ${s.value.y}px; pointer-events: none;`)},null,8,["modelValue","text","style"]),V("div",xn,[i.value?(w(),$("div",{key:0,class:"node-content",onClick:f[4]||(f[4]=R=>u(e.node))},[V("div",Sn,[e.node.children?(w(),C(O,{key:0,class:"toggle-icon",style:{"padding-right":"10px"}},{default:p(()=>[A(U(e.node.isOpen?"mdi-menu-down":"mdi-menu-right"),1)]),_:1})):ee("",!0),e.node.children?(w(),C(O,{key:1,size:"small",style:{"padding-right":"10px"}},{default:p(()=>[...f[5]||(f[5]=[A(U("mdi-folder"),-1)])]),_:1})):e.node.title.includes(".rb")?(w(),C(O,{key:2,size:"small",style:{"padding-right":"10px"}},{default:p(()=>[...f[6]||(f[6]=[A(U("mdi-language-ruby"),-1)])]),_:1})):e.node.title.includes(".py")?(w(),C(O,{key:3,size:"small",style:{"padding-right":"10px"}},{default:p(()=>[...f[7]||(f[7]=[A(U("mdi-language-python"),-1)])]),_:1})):(w(),C(O,{key:4,size:"small",style:{"padding-right":"10px"}},{default:p(()=>[...f[8]||(f[8]=[A(U("mdi-file-document"),-1)])]),_:1})),V("span",{class:"title",tabindex:e.node.children?-1:0,onKeyup:f[1]||(f[1]=Oe(R=>u(e.node),["enter"])),onMouseenter:f[2]||(f[2]=R=>a(R,e.node.title)),onMouseleave:c},U(e.node.title),41,En),e.node.title==="__TEMP__"?(w(),C(k,{key:5,icon:"mdi-delete",variant:"text",style:{"margin-left":"auto"},"aria-label":"Delete",onClick:f[3]||(f[3]=R=>o("delete"))})):ee("",!0)])])):(w(),$("div",kn)),e.node.children&&e.node.isOpen?(w(),$("div",On,[(w(!0),$(K,null,Q(e.node.children,R=>(w(),C(F,{key:R.id,node:R,search:e.search,type:e.type,onNodeToggled:_,onRequest:b},null,8,["node","search","type"]))),128))])):ee("",!0)])],64)}}},An=he(Cn,[["__scopeId","data-v-9d98e565"]]),Tn={components:{TreeNode:An},props:{type:{type:String,required:!0,validator:function(e){return["open","save"].indexOf(e)!==-1}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,modelValue:Boolean},data(){return{tree:[],items:[],search:null,selectedFile:null,disableButtons:!1,targets:[],targetsRetrieved:[],loading:!0}},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.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(){pe.get("/openc3-api/targets").then(e=>{this.targets=e.data,this.targets.push("__TEMP__"),this.targets.forEach(t=>{this.items.push({id:t,disabled:!0,title:t,children:[],path:t}),this.loadFiles(t)}),this.loading=!1})},methods:{calcIcon:function(e){return vn(e)},loadFiles:function(e){pe.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.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=>pe.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,pe.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 i=e.findIndex(o=>o.title===r[0]);i===-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[i].children,t+1,r.slice(1).join("/"))}}},Rn={class:"pa-3"},Fn={class:"overflow-y-auto tree-container"};function Nn(e,t,n,r,i,o){const s=y("v-progress-circular"),a=y("v-overlay"),c=y("v-spacer"),u=y("v-toolbar"),d=y("v-row"),_=y("v-text-field"),b=y("tree-node"),h=y("v-btn"),f=y("v-card-text"),m=y("v-card"),O=y("v-dialog");return w(),C(O,{modelValue:o.show,"onUpdate:modelValue":t[4]||(t[4]=k=>o.show=k),persistent:"",width:"800",onKeydown:[t[5]||(t[5]=Oe(k=>o.success(),["enter"])),t[6]||(t[6]=Oe(k=>i.disableButtons?null:o.show=!1,["esc"]))]},{default:p(()=>[g(m,null,{default:p(()=>[g(a,{"model-value":i.loading},{default:p(()=>[g(s,{indeterminate:"",absolute:"",size:"64"})]),_:1},8,["model-value"]),V("form",{onSubmit:t[3]||(t[3]=me((...k)=>o.success&&o.success(...k),["prevent"]))},[g(u,{height:"24"},{default:p(()=>[g(c),V("span",null,U(o.title),1),g(c)]),_:1}),g(f,null,{default:p(()=>[V("div",Rn,[g(d,null,{default:p(()=>[A(U(o.helpText),1)]),_:1}),g(d,{dense:"",class:"mt-5"},{default:p(()=>[g(_,{modelValue:i.search,"onUpdate:modelValue":t[0]||(t[0]=k=>i.search=k),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),V("div",Fn,[(w(!0),$(K,null,Q(i.items,k=>(w(),C(b,{key:`${k.id}`,node:k,search:i.search,type:n.type,onRequest:o.activeFile,onDelete:o.deleteTemp},null,8,["node","search","type","onRequest","onDelete"]))),128))]),g(d,{class:"my-2"},{default:p(()=>[g(_,{modelValue:i.selectedFile,"onUpdate:modelValue":t[1]||(t[1]=k=>i.selectedFile=k),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:n.type==="open"},null,8,["modelValue","disabled"])]),_:1}),g(d,{dense:""},{default:p(()=>[ft(V("div",{class:"my-2 text-red",style:{"white-space":"pre-line"}},U(o.error),513),[[ht,o.error]])]),_:1}),g(d,{class:"mt-2"},{default:p(()=>[g(c),g(h,{variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:i.disableButtons,onClick:t[2]||(t[2]=k=>o.show=!1)},{default:p(()=>[...t[7]||(t[7]=[A(" Cancel ",-1)])]),_:1},8,["disabled"]),g(h,{ref:"submitBtn",type:"submit",color:"primary",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:i.disableButtons||!!o.error,onClick:me(o.success,["prevent"])},{default:p(()=>[A(U(o.submit),1)]),_:1},8,["disabled","onClick"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const jn=he(Tn,[["render",Nn]]),Un={props:{modelValue:Boolean,text:String,title:String,width:{type:Number,default:800}},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()}}},In={class:"mx-2"},Dn={class:"pa-3"},Vn={class:"text"};function $n(e,t,n,r,i,o){const s=y("v-spacer"),a=y("v-btn"),c=y("v-toolbar"),u=y("v-card-text"),d=y("v-card-actions"),_=y("v-card"),b=y("v-dialog");return w(),C(b,{modelValue:o.show,"onUpdate:modelValue":t[1]||(t[1]=h=>o.show=h),width:n.width,scrollable:""},{default:p(()=>[g(_,null,{default:p(()=>[g(c,{height:"24"},{default:p(()=>[g(s),V("span",null,U(n.title),1),g(s),V("div",In,[g(a,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:o.download},null,8,["onClick"])])]),_:1}),g(u,{style:{"max-height":"80vh"}},{default:p(()=>[V("div",Dn,[V("span",Vn,U(n.text),1)])]),_:1}),g(d,{class:"px-2"},{default:p(()=>[g(s),g(a,{variant:"flat",onClick:t[0]||(t[0]=h=>o.show=!o.show)},{default:p(()=>[...t[2]||(t[2]=[A(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const Pn=he(Un,[["render",$n],["__scopeId","data-v-087ffcee"]]);var Bn=Object.defineProperty,Ln=(e,t,n)=>t in e?Bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ce=(e,t,n)=>Ln(e,typeof t!="symbol"?t+"":t,n);function bt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mn}=Object.prototype,{getPrototypeOf:Je}=Object,{iterator:Ae,toStringTag:yt}=Symbol,Te=(e=>t=>{const n=Mn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Y=e=>(e=e.toLowerCase(),t=>Te(t)===e),Re=e=>t=>typeof t===e,{isArray:ce}=Array,ue=Re("undefined");function ge(e){return e!==null&&!ue(e)&&e.constructor!==null&&!ue(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wt=Y("ArrayBuffer");function qn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wt(e.buffer),t}const zn=Re("string"),q=Re("function"),vt=Re("number"),_e=e=>e!==null&&typeof e=="object",Hn=e=>e===!0||e===!1,Fe=e=>{if(Te(e)!=="object")return!1;const t=Je(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(yt in e)&&!(Ae in e)},Jn=e=>{if(!_e(e)||ge(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Wn=Y("Date"),Kn=Y("File"),Gn=Y("Blob"),Xn=Y("FileList"),Yn=e=>_e(e)&&q(e.pipe),Zn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=Te(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},Qn=Y("URLSearchParams"),[er,tr,nr,rr]=["ReadableStream","Request","Response","Headers"].map(Y),ir=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ce(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ge(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function xt(e,t){if(ge(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,St=e=>!ue(e)&&e!==se;function We(){const{caseless:e,skipUndefined:t}=St(this)&&this||{},n={},r=(i,o)=>{const s=e&&xt(n,o)||o;Fe(n[s])&&Fe(i)?n[s]=We(n[s],i):Fe(i)?n[s]=We({},i):ce(i)?n[s]=i.slice():(!t||!ue(i))&&(n[s]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&be(arguments[i],r);return n}const sr=(e,t,n,{allOwnKeys:r}={})=>(be(t,(i,o)=>{n&&q(i)?e[o]=bt(i,n):e[o]=i},{allOwnKeys:r}),e),or=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ar=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},lr=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Je(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cr=(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},ur=e=>{if(!e)return null;if(ce(e))return e;let t=e.length;if(!vt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Je(Uint8Array)),fr=(e,t)=>{const n=(e&&e[Ae]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},hr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pr=Y("HTMLFormElement"),mr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),Et=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gr=Y("RegExp"),kt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};be(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},_r=e=>{kt(e,(t,n)=>{if(q(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(q(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+"'")})}})},br=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ce(e)?r(e):r(String(e).split(t)),n},yr=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vr(e){return!!(e&&q(e.append)&&e[yt]==="FormData"&&e[Ae])}const xr=e=>{const t=new Array(10),n=(r,i)=>{if(_e(r)){if(t.indexOf(r)>=0)return;if(ge(r))return r;if(!("toJSON"in r)){t[i]=r;const o=ce(r)?[]:{};return be(r,(s,a)=>{const c=n(s,i+1);!ue(c)&&(o[a]=c)}),t[i]=void 0,o}}return r};return n(e,0)},Sr=Y("AsyncFunction"),Er=e=>e&&(_e(e)||q(e))&&q(e.then)&&q(e.catch),Ot=((e,t)=>e?setImmediate:t?((n,r)=>(se.addEventListener("message",({source:i,data:o})=>{i===se&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),se.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",q(se.postMessage)),kr=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||Ot,Or=e=>e!=null&&q(e[Ae]),l={isArray:ce,isArrayBuffer:wt,isBuffer:ge,isFormData:Zn,isArrayBufferView:qn,isString:zn,isNumber:vt,isBoolean:Hn,isObject:_e,isPlainObject:Fe,isEmptyObject:Jn,isReadableStream:er,isRequest:tr,isResponse:nr,isHeaders:rr,isUndefined:ue,isDate:Wn,isFile:Kn,isBlob:Gn,isRegExp:gr,isFunction:q,isStream:Yn,isURLSearchParams:Qn,isTypedArray:dr,isFileList:Xn,forEach:be,merge:We,extend:sr,trim:ir,stripBOM:or,inherits:ar,toFlatObject:lr,kindOf:Te,kindOfTest:Y,endsWith:cr,toArray:ur,forEachEntry:fr,matchAll:hr,isHTMLForm:pr,hasOwnProperty:Et,hasOwnProp:Et,reduceDescriptors:kt,freezeMethods:_r,toObjectSet:br,toCamelCase:mr,noop:yr,toFiniteNumber:wr,findKey:xt,global:se,isContextDefined:St,isSpecCompliantForm:vr,toJSONObject:xr,isAsyncFn:Sr,isThenable:Er,setImmediate:Ot,asap:kr,isIterable:Or};function S(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}l.inherits(S,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const Ct=S.prototype,At={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{At[e]={value:e}}),Object.defineProperties(S,At),Object.defineProperty(Ct,"isAxiosError",{value:!0}),S.from=(e,t,n,r,i,o)=>{const s=Object.create(Ct);l.toFlatObject(e,s,function(u){return u!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return S.call(s,a,c,n,r,i),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",o&&Object.assign(s,o),s};const Cr=null;function Ke(e){return l.isPlainObject(e)||l.isArray(e)}function Tt(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function Rt(e,t,n){return e?e.concat(t).map(function(r,i){return r=Tt(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Ar(e){return l.isArray(e)&&!e.some(Ke)}const Tr=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Ne(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(h,f){return!l.isUndefined(f[h])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(l.isDate(h))return h.toISOString();if(l.isBoolean(h))return h.toString();if(!a&&l.isBlob(h))throw new S("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(h)||l.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,f,m){let O=h;if(h&&!m&&typeof h=="object"){if(l.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(l.isArray(h)&&Ar(h)||(l.isFileList(h)||l.endsWith(f,"[]"))&&(O=l.toArray(h)))return f=Tt(f),O.forEach(function(k,F){!(l.isUndefined(k)||k===null)&&t.append(s===!0?Rt([f],F,o):s===null?f:f+"[]",c(k))}),!1}return Ke(h)?!0:(t.append(Rt(m,f,o),c(h)),!1)}const d=[],_=Object.assign(Tr,{defaultVisitor:u,convertValue:c,isVisitable:Ke});function b(h,f){if(!l.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(h),l.forEach(h,function(m,O){(!(l.isUndefined(m)||m===null)&&i.call(t,m,l.isString(O)?O.trim():O,f,_))===!0&&b(m,f?f.concat(O):[O])}),d.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Ft(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ge(e,t){this._pairs=[],e&&Ne(e,this,t)}const Nt=Ge.prototype;Nt.append=function(e,t){this._pairs.push([e,t])},Nt.toString=function(e){const t=e?function(n){return e.call(this,n,Ft)}:Ft;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function Rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function jt(e,t,n){if(!t)return e;const r=n&&n.encode||Rr;l.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=l.isURLSearchParams(t)?t.toString():new Ge(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ut{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 It={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fr=typeof URLSearchParams<"u"?URLSearchParams:Ge,Nr=typeof FormData<"u"?FormData:null,jr=typeof Blob<"u"?Blob:null,Ur={isBrowser:!0,classes:{URLSearchParams:Fr,FormData:Nr,Blob:jr},protocols:["http","https","file","blob","url","data"]},Xe=typeof window<"u"&&typeof document<"u",Ye=typeof navigator=="object"&&navigator||void 0,Ir=Xe&&(!Ye||["ReactNative","NativeScript","NS"].indexOf(Ye.product)<0),Dr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vr=Xe&&window.location.href||"http://localhost",$r=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xe,hasStandardBrowserEnv:Ir,hasStandardBrowserWebWorkerEnv:Dr,navigator:Ye,origin:Vr},Symbol.toStringTag,{value:"Module"})),P={...$r,...Ur};function Pr(e,t){return Ne(e,new P.classes.URLSearchParams,{visitor:function(n,r,i,o){return P.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Br(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Lr(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Dt(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=o>=n.length;return s=!s&&l.isArray(i)?i.length:s,c?(l.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!l.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&l.isArray(i[s])&&(i[s]=Lr(i[s])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,i)=>{t(Br(r),i,n,0)}),n}return null}function Mr(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 ye={transitional:It,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=l.isObject(e);if(i&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return r?JSON.stringify(Dt(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 o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Pr(e,this.formSerializer).toString();if((o=l.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ne(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),Mr(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(n&&!this.responseType||r)){const i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(i)throw o.name==="SyntaxError"?S.from(o,S.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.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"],e=>{ye.headers[e]={}});const qr=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"]),zr=e=>{const t={};let n,r,i;return e&&e.split(`
5
+ `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&qr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Vt=Symbol("internals");function we(e){return e&&String(e).trim().toLowerCase()}function je(e){return e===!1||e==null?e:l.isArray(e)?e.map(je):String(e)}function Hr(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 Jr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ze(e,t,n,r,i){if(l.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!l.isString(t)){if(l.isString(r))return t.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(t)}}function Wr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Kr(e,t){const n=l.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let z=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(s,a,c){const u=we(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]=je(s))}const o=(s,a)=>l.forEach(s,(c,u)=>i(c,u,a));if(l.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(l.isString(e)&&(e=e.trim())&&!Jr(e))o(zr(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]}o(s,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=we(e),e){const n=l.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return Hr(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=we(e),e){const n=l.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ze(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function i(o){if(o=we(o),o){const s=l.findKey(n,o);s&&(!t||Ze(n,n[s],s,t))&&(delete n[s],r=!0)}}return l.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];(!e||Ze(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return l.forEach(this,(r,i)=>{const o=l.findKey(n,i);if(o){t[o]=je(r),delete t[i];return}const s=e?Wr(i):String(i).trim();s!==i&&delete t[i],t[s]=je(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[Vt]=this[Vt]={accessors:{}}).accessors,n=this.prototype;function r(i){const o=we(i);t[o]||(Kr(n,i),t[o]=!0)}return l.isArray(e)?e.forEach(r):r(e),this}};z.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(z.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),l.freezeMethods(z);function Qe(e,t){const n=this||ye,r=t||n,i=z.from(r.headers);let o=r.data;return l.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function $t(e){return!!(e&&e.__CANCEL__)}function de(e,t,n){S.call(this,e??"canceled",S.ERR_CANCELED,t,n),this.name="CanceledError"}l.inherits(de,S,{__CANCEL__:!0});function Pt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new S("Request failed with status code "+n.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Gr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=r[o];s||(s=c),n[i]=a,r[i]=c;let d=o,_=0;for(;d!==i;)_+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const b=u&&c-u;return b?Math.round(_*1e3/b):void 0}}function Yr(e,t){let n=0,r=1e3/t,i,o;const s=(a,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const c=Date.now(),u=c-n;u>=r?s(a,c):(i=a,o||(o=setTimeout(()=>{o=null,s(i)},r-u)))},()=>i&&s(i)]}const Ue=(e,t,n=3)=>{let r=0;const i=Xr(50,250);return Yr(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,c=s-r,u=i(c),d=s<=a;r=s;const _={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(_)},n)},Bt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Lt=e=>(...t)=>l.asap(()=>e(...t)),Zr=P.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,P.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,Qr=P.hasStandardBrowserEnv?{write(e,t,n,r,i,o,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(i)&&a.push(`domain=${i}`),o===!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.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ei(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ti(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Mt(e,t,n){let r=!ei(t);return e&&(r||n==!1)?ti(e,t):t}const qt=e=>e instanceof z?{...e}:e;function oe(e,t){t=t||{};const n={};function r(u,d,_,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 i(u,d,_,b){if(l.isUndefined(d)){if(!l.isUndefined(u))return r(void 0,u,_,b)}else return r(u,d,_,b)}function o(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,_){if(_ in t)return r(u,d);if(_ in e)return r(void 0,u)}const c={url:o,method:o,data:o,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,responseEncoding:s,validateStatus:a,headers:(u,d,_)=>i(qt(u),qt(d),_,!0)};return l.forEach(Object.keys({...e,...t}),function(u){const d=c[u]||i,_=d(e[u],t[u],u);l.isUndefined(_)&&d!==a||(n[u]=_)}),n}const zt=e=>{const t=oe({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=z.from(s),t.url=jt(Mt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),l.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(l.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,_])=>{u.includes(d.toLowerCase())&&s.set(d,_)})}}if(P.hasStandardBrowserEnv&&(r&&l.isFunction(r)&&(r=r(t)),r||r!==!1&&Zr(t.url))){const c=i&&o&&Qr.read(o);c&&s.set(i,c)}return t},ni=typeof XMLHttpRequest<"u",ri=ni&&function(e){return new Promise(function(t,n){const r=zt(e);let i=r.data;const o=z.from(r.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:c}=r,u,d,_,b,h;function f(){b&&b(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function O(){if(!m)return;const F=z.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),R={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:F,config:e,request:m};Pt(function(L){t(L),f()},function(L){n(L),f()},R),m=null}"onloadend"in m?m.onloadend=O:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(O)},m.onabort=function(){m&&(n(new S("Request aborted",S.ECONNABORTED,e,m)),m=null)},m.onerror=function(F){const R=F&&F.message?F.message:"Network Error",L=new S(R,S.ERR_NETWORK,e,m);L.event=F||null,n(L),m=null},m.ontimeout=function(){let F=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||It;r.timeoutErrorMessage&&(F=r.timeoutErrorMessage),n(new S(F,R.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&l.forEach(o.toJSON(),function(F,R){m.setRequestHeader(R,F)}),l.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),s&&s!=="json"&&(m.responseType=r.responseType),c&&([_,h]=Ue(c,!0),m.addEventListener("progress",_)),a&&m.upload&&([d,b]=Ue(a),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",b)),(r.cancelToken||r.signal)&&(u=F=>{m&&(n(!F||F.type?new de(null,e,m):F),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const k=Gr(r.url);if(k&&P.protocols.indexOf(k)===-1){n(new S("Unsupported protocol "+k+":",S.ERR_BAD_REQUEST,e));return}m.send(i||null)})},ii=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,a();const d=u instanceof Error?u:this.reason;r.abort(d instanceof S?d:new de(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,o(new S(`timeout ${t} of ms exceeded`,S.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>l.asap(a),c}},si=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},oi=async function*(e,t){for await(const n of ai(e))yield*si(n,t)},ai=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()}},Ht=(e,t,n,r)=>{const i=oi(e,t);let o=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){a(),c.close();return}let _=d.byteLength;if(n){let b=o+=_;n(b)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),i.return()}},{highWaterMark:2})},Jt=64*1024,{isFunction:Ie}=l,li=(({Request:e,Response:t})=>({Request:e,Response:t}))(l.global),{ReadableStream:Wt,TextEncoder:Kt}=l.global,Gt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ci=e=>{e=l.merge.call({skipUndefined:!0},li,e);const{fetch:t,Request:n,Response:r}=e,i=t?Ie(t):typeof fetch=="function",o=Ie(n),s=Ie(r);if(!i)return!1;const a=i&&Ie(Wt),c=i&&(typeof Kt=="function"?(f=>m=>f.encode(m))(new Kt):async f=>new Uint8Array(await new n(f).arrayBuffer())),u=o&&a&&Gt(()=>{let f=!1;const m=new n(P.origin,{body:new Wt,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!m}),d=s&&a&&Gt(()=>l.isReadableStream(new r("").body)),_={stream:d&&(f=>f.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!_[f]&&(_[f]=(m,O)=>{let k=m&&m[f];if(k)return k.call(m);throw new S(`Response type '${f}' is not supported`,S.ERR_NOT_SUPPORT,O)})});const b=async f=>{if(f==null)return 0;if(l.isBlob(f))return f.size;if(l.isSpecCompliantForm(f))return(await new n(P.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(l.isArrayBufferView(f)||l.isArrayBuffer(f))return f.byteLength;if(l.isURLSearchParams(f)&&(f=f+""),l.isString(f))return(await c(f)).byteLength},h=async(f,m)=>l.toFiniteNumber(f.getContentLength())??b(m);return async f=>{let{url:m,method:O,data:k,signal:F,cancelToken:R,timeout:L,onDownloadProgress:E,onUploadProgress:J,responseType:j,headers:Z,withCredentials:ne="same-origin",fetchOptions:fe}=zt(f),v=t||fetch;j=j?(j+"").toLowerCase():"text";let G=ii([F,R&&R.toAbortSignal()],L),H=null;const M=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Le;try{if(J&&u&&O!=="get"&&O!=="head"&&(Le=await h(Z,k))!==0){let W=new n(m,{method:"POST",body:k,duplex:"half"}),ie;if(l.isFormData(k)&&(ie=W.headers.get("content-type"))&&Z.setContentType(ie),W.body){const[ut,Me]=Bt(Le,Ue(Lt(J)));k=Ht(W.body,Jt,ut,Me)}}l.isString(ne)||(ne=ne?"include":"omit");const D=o&&"credentials"in n.prototype,x={...fe,signal:G,method:O.toUpperCase(),headers:Z.normalize().toJSON(),body:k,duplex:"half",credentials:D?ne:void 0};H=o&&new n(m,x);let N=await(o?v(H,fe):v(m,x));const X=d&&(j==="stream"||j==="response");if(d&&(E||X&&M)){const W={};["status","statusText","headers"].forEach(pn=>{W[pn]=N[pn]});const ie=l.toFiniteNumber(N.headers.get("content-length")),[ut,Me]=E&&Bt(ie,Ue(Lt(E),!0))||[];N=new r(Ht(N.body,Jt,ut,()=>{Me&&Me(),M&&M()}),W)}j=j||"text";let re=await _[l.findKey(_,j)||"text"](N,f);return!X&&M&&M(),await new Promise((W,ie)=>{Pt(W,ie,{data:re,headers:z.from(N.headers),status:N.status,statusText:N.statusText,config:f,request:H})})}catch(D){throw M&&M(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,f,H),{cause:D.cause||D}):S.from(D,D&&D.code,f,H)}}},ui=new Map,Xt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s=o.length,a=s,c,u,d=ui;for(;a--;)c=o[a],u=d.get(c),u===void 0&&d.set(c,u=a?new Map:ci(t)),d=u;return u};Xt();const et={http:Cr,xhr:ri,fetch:{get:Xt}};l.forEach(et,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yt=e=>`- ${e}`,di=e=>l.isFunction(e)||e===null||e===!1;function fi(e,t){e=l.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){r=e[s];let a;if(i=r,!di(r)&&(i=et[(a=String(r)).toLowerCase()],i===void 0))throw new S(`Unknown adapter '${a}'`);if(i&&(l.isFunction(i)||(i=i.get(t))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
7
+ `+s.map(Yt).join(`
8
+ `):" "+Yt(s[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const Zt={getAdapter:fi,adapters:et};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new de(null,e)}function Qt(e){return tt(e),e.headers=z.from(e.headers),e.data=Qe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zt.getAdapter(e.adapter||ye.adapter,e)(e).then(function(t){return tt(e),t.data=Qe.call(e,e.transformResponse,t),t.headers=z.from(t.headers),t},function(t){return $t(t)||(tt(e),t&&t.response&&(t.response.data=Qe.call(e,e.transformResponse,t.response),t.response.headers=z.from(t.response.headers))),Promise.reject(t)})}const en="1.13.1",De={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{De[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const tn={};De.transitional=function(e,t,n){function r(i,o){return"[Axios v"+en+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(e===!1)throw new S(r(o," has been removed"+(t?" in "+t:"")),S.ERR_DEPRECATED);return t&&!tn[o]&&(tn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}},De.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function hi(e,t,n){if(typeof e!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new S("option "+o+" must be "+c,S.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new S("Unknown option "+o,S.ERR_BAD_OPTION)}}const Ve={assertOptions:hi,validators:De},te=Ve.validators;let ae=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ut,response:new Ut}}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 i=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
9
+ `+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=oe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Ve.assertOptions(n,{silentJSONParsing:te.transitional(te.boolean),forcedJSONParsing:te.transitional(te.boolean),clarifyTimeoutError:te.transitional(te.boolean)},!1),r!=null&&(l.isFunction(r)?t.paramsSerializer={serialize:r}:Ve.assertOptions(r,{encode:te.function,serialize:te.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ve.assertOptions(t,{baseUrl:te.spelling("baseURL"),withXsrfToken:te.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&l.merge(i.common,i[t.method]);i&&l.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=z.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(a=a&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,d=0,_;if(!a){const h=[Qt.bind(this),void 0];for(h.unshift(...s),h.push(...c),_=h.length,u=Promise.resolve(t);d<_;)u=u.then(h[d++],h[d++]);return u}_=s.length;let b=t;for(;d<_;){const h=s[d++],f=s[d++];try{b=h(b)}catch(m){f.call(this,m);break}}try{u=Qt.call(this,b)}catch(h){return Promise.reject(h)}for(d=0,_=c.length;d<_;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=oe(this.defaults,e);const t=Mt(e.baseURL,e.url,e.allowAbsoluteUrls);return jt(t,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){ae.prototype[e]=function(t,n){return this.request(oe(n||{},{method:e,url:t,data:(n||{}).data}))}}),l.forEach(["post","put","patch"],function(e){function t(n){return function(r,i,o){return this.request(oe(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}ae.prototype[e]=t(),ae.prototype[e+"Form"]=t(!0)});let pi=class mn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(i,o,s){r.reason||(r.reason=new de(i,o,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 mn(function(n){t=n}),cancel:t}}};function mi(e){return function(t){return e.apply(null,t)}}function gi(e){return l.isObject(e)&&e.isAxiosError===!0}const nt={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(nt).forEach(([e,t])=>{nt[t]=e});function nn(e){const t=new ae(e),n=bt(ae.prototype.request,t);return l.extend(n,ae.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return nn(oe(e,r))},n}const I=nn(ye);I.Axios=ae,I.CanceledError=de,I.CancelToken=pi,I.isCancel=$t,I.VERSION=en,I.toFormData=Ne,I.AxiosError=S,I.Cancel=I.CanceledError,I.all=function(e){return Promise.all(e)},I.spread=mi,I.isAxiosError=gi,I.mergeConfig=oe,I.AxiosHeaders=z,I.formToJSON=e=>Dt(l.isHTMLForm(e)?new FormData(e):e),I.getAdapter=Zt.getAdapter,I.HttpStatusCode=nt,I.default=I;const{Axios:ms,AxiosError:gs,CanceledError:_s,isCancel:bs,CancelToken:ys,VERSION:ws,all:vs,Cancel:xs,isAxiosError:Ss,spread:Es,toFormData:ks,AxiosHeaders:Os,HttpStatusCode:Cs,formToJSON:As,getAdapter:Ts,mergeConfig:Rs}=I,rt=I.create({baseURL:location.origin,timeout:6e4,params:{}});rt.interceptors.response.use(e=>e,e=>{var t,n,r,i,o,s,a,c,u,d,_;if(e.response){if(e.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(f){f&&OpenC3Auth.setTokens()}),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let b=`HTTP ${e.response.status} - `;(t=e.response)!=null&&t.statusText&&(b+=`${e.response.statusText} `),(r=(n=e.response)==null?void 0:n.config)!=null&&r.data&&(b+=`${e.response.config.data} `),(o=(i=e.response)==null?void 0:i.data)!=null&&o.message?b+=`${e.response.data.message}`:(a=(s=e.response)==null?void 0:s.data)!=null&&a.exception?b+=`${e.response.data.exception}`:(d=(u=(c=e.response)==null?void 0:c.data)==null?void 0:u.error)!=null&&d.message?(e.response.data.error.class&&(b+=`${e.response.data.error.class} `),b+=`${e.response.data.error.message}`):b+=`${(_=e.response)==null?void 0:_.data}`;const{$cosmosNotify:h}=window;throw h&&h.serious({title:"Network error",body:b}),e}else throw e});const $e=async function(e,t,{data:n,params:r={},headers:i,noAuth:o=!1,noScope:s=!1,onUploadProgress:a=!1}={}){if(!o){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}i.Authorization=localStorage.openc3Token}return i.manual=!0,!s&&!r.scope&&(r.scope=window.openc3Scope),rt({method:e,url:t,data:n,params:r,headers:i,onUploadProgress:a})},it={Accept:"application/json"},rn={...it,"Content-Type":"application/json"},B={get:function(e,{params:t,headers:n=it,noScope:r,noAuth:i,onUploadProgress:o}={}){return $e("get",e,{params:t,headers:n,noScope:r,noAuth:i,onUploadProgress:o})},put:function(e,{data:t,params:n,headers:r=rn,noScope:i,noAuth:o,onUploadProgress:s}={}){return $e("put",e,{data:t,params:n,headers:r,noScope:i,noAuth:o,onUploadProgress:s})},post:function(e,{data:t,params:n,headers:r=rn,noScope:i,noAuth:o,onUploadProgress:s}={}){return $e("post",e,{data:t,params:n,headers:r,noScope:i,noAuth:o,onUploadProgress:s})},delete:function(e,{params:t,headers:n=it,noScope:r,noAuth:i,onUploadProgress:o}={}){return $e("delete",e,{params:t,headers:n,noScope:r,noAuth:i,onUploadProgress:o})}};let _i=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){var n;return((n=this.events)[e]||(n[e]=[])).push(t),()=>{var r;this.events[e]=(r=this.events[e])==null?void 0:r.filter(i=>t!==i)}}});class bi extends Error{constructor(t,n){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=n,this.name="ReasonError"}}function yi(e){return e?`{${Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>{let n=JSON.stringify(e[t]);return`${JSON.stringify(t)}:${n}`}).join(",")}}`:""}class wi{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,n){if(!this._info)return this._info={id:t,info:n},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((n,{id:r,info:i})=>(n[r]=i,n),{})}}const le=Symbol("state");class sn{constructor(t={}){this.emitter=_i(),this.params=Object.freeze(t),this.presence=new wi(this),this.initialConnect=!0,this[le]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=yi({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[le]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[le]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[le]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[le]="connected";let t=!0,n=!0;this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[le]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[le]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,n){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,n)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(n){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",n)}}receive(t,n){this.emit("message",t,n)}on(t,n){return this.emitter.on(t,n)}once(t,n){let r=this.emitter.on(t,(...i)=>{r(),n(...i)});return r}emit(t,...n){return this.emitter.emit(t,...n)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((t,n)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(i=>i()),t()})),r.push(this.on("close",i=>{r.forEach(o=>o()),n(i||new bi("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class vi extends sn{constructor(t,n){super(n),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}Ce(vi,"identifier","__ghost__");const xi="$pubsub";class Si extends sn{async perform(t,n){if(t.startsWith("$"))return super.perform(t,n);throw Error("not implemented")}}Ce(Si,"identifier",xi);function ve(e){return Ei.test(e)}const Ei=/^-?[0-9]+$/;function on(e){return ki.test(e)}const ki=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function an(e,t){if(ve(e))return Number.isSafeInteger(Number.parseInt(e,10));const n=Number.parseFloat(e),r=String(n);if(e===r)return!0;const i=ln(e),o=ln(r);return!!(i===o||(t==null?void 0:t.approx)===!0&&!ve(e)&&o.length>=14&&i.startsWith(o.substring(0,14)))}let xe=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function Oi(e){if(an(e,{approx:!1}))return;if(ve(e))return xe.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?xe.underflow:xe.truncate_float:xe.overflow}function ln(e){const{start:t,end:n}=Ci(e),r=e.substring(t,n),i=r.indexOf(".");return i===-1?r:r.substring(0,i)+r.substring(i+1)}function Ci(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 Ai{constructor(t){if(Ce(this,"isLosslessNumber",!0),!on(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=Oi(this.value);if(t===void 0||t===xe.truncate_float)return Number.parseFloat(this.value);if(ve(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 Ti(e){return e&&typeof e=="object"&&e.isLosslessNumber||!1}function Ri(e){return new Ai(e)}function Fi(e,t){return st({"":e},"",e,t)}function st(e,t,n,r){return Array.isArray(n)?r.call(e,t,ji(n,r)):n&&typeof n=="object"&&!Ti(n)?r.call(e,t,Ni(n,r)):r.call(e,t,n)}function Ni(e,t){for(const n of Object.keys(e)){const r=st(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function ji(e,t){for(let n=0;n<e.length;n++)e[n]=st(e,String(n),e[n],t);return e}function Ui(e,t,n){const r=typeof n=="function"?{parseNumber:n}:n,i=(r==null?void 0:r.parseNumber)??Ri,o=(r==null?void 0:r.onDuplicateKey)??j;let s=0;const a=d();return k(a),R(),t?Fi(a,t):a;function c(){if(e.charCodeAt(s)===Bi){s++,b();const x={};let N=!0;for(;s<e.length&&e.charCodeAt(s)!==un;){N?N=!1:(m(),b());const X=s,re=h();if(re===void 0){J();return}b(),O();const W=d();if(W===void 0){G();return}if(Object.prototype.hasOwnProperty.call(x,re)&&!ot(W,x[re])){const ie=o({key:re,position:X+1,oldValue:x[re],newValue:W});ie!==void 0&&(x[re]=ie)}else x[re]=W}return e.charCodeAt(s)!==un&&Z(),s++,x}}function u(){if(e.charCodeAt(s)===Li){s++,b();const x=[];let N=!0;for(;s<e.length&&e.charCodeAt(s)!==dn;){N?N=!1:m();const X=d();F(X),x.push(X)}return e.charCodeAt(s)!==dn&&ne(),s++,x}}function d(){b();const x=h()??f()??c()??u()??_("true",!0)??_("false",!1)??_("null",null);return b(),x}function _(x,N){if(e.slice(s,s+x.length)===x)return s+=x.length,N}function b(){for(;Ii(e.charCodeAt(s));)s++}function h(){if(e.charCodeAt(s)===at){s++;let x="";for(;s<e.length&&e.charCodeAt(s)!==at;){if(e.charCodeAt(s)===Pi){const N=e[s+1],X=$i[N];X!==void 0?(x+=X,s++):N==="u"?Pe(e.charCodeAt(s+2))&&Pe(e.charCodeAt(s+3))&&Pe(e.charCodeAt(s+4))&&Pe(e.charCodeAt(s+5))?(x+=String.fromCharCode(Number.parseInt(e.slice(s+2,s+6),16)),s+=5):H(s):v(s)}else Vi(e.charCodeAt(s))?x+=e[s]:fe(e[s]);s++}return E(),s++,x}}function f(){const x=s;if(e.charCodeAt(s)===fn&&(s++,L(x)),e.charCodeAt(s)===lt)s++;else if(Di(e.charCodeAt(s)))for(s++;Be(e.charCodeAt(s));)s++;if(e.charCodeAt(s)===Gi)for(s++,L(x);Be(e.charCodeAt(s));)s++;if(e.charCodeAt(s)===es||e.charCodeAt(s)===Qi)for(s++,(e.charCodeAt(s)===fn||e.charCodeAt(s)===Ji)&&s++,L(x);Be(e.charCodeAt(s));)s++;if(s>x)return i(e.slice(x,s))}function m(){if(e.charCodeAt(s)!==Ki)throw new SyntaxError(`Comma ',' expected after value ${D()}`);s++}function O(){if(e.charCodeAt(s)!==Xi)throw new SyntaxError(`Colon ':' expected after property name ${D()}`);s++}function k(x){if(x===void 0)throw new SyntaxError(`JSON value expected ${D()}`)}function F(x){if(x===void 0)throw new SyntaxError(`Array item expected ${D()}`)}function R(){if(s<e.length)throw new SyntaxError(`Expected end of input ${D()}`)}function L(x){if(!Be(e.charCodeAt(s))){const N=e.slice(x,s);throw new SyntaxError(`Invalid number '${N}', expecting a digit ${D()}`)}}function E(){if(e.charCodeAt(s)!==at)throw new SyntaxError(`End of string '"' expected ${D()}`)}function J(){throw new SyntaxError(`Quoted object key expected ${D()}`)}function j(x){let{key:N,position:X}=x;throw new SyntaxError(`Duplicate key '${N}' encountered at position ${X}`)}function Z(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${D()}`)}function ne(){throw new SyntaxError(`Array item or end of array ']' expected ${D()}`)}function fe(x){throw new SyntaxError(`Invalid character '${x}' ${M()}`)}function v(x){const N=e.slice(x,x+2);throw new SyntaxError(`Invalid escape character '${N}' ${M()}`)}function G(){throw new SyntaxError(`Object value expected after ':' ${M()}`)}function H(x){const N=e.slice(x,x+6);throw new SyntaxError(`Invalid unicode character '${N}' ${M()}`)}function M(){return`at position ${s}`}function Le(){return s<e.length?`but got '${e[s]}'`:"but reached end of input"}function D(){return`${Le()} ${M()}`}}function Ii(e){return e===Mi||e===qi||e===zi||e===Hi}function Pe(e){return e>=lt&&e<=ct||e>=Yi&&e<=ts||e>=Zi&&e<=ns}function Be(e){return e>=lt&&e<=ct}function Di(e){return e>=Wi&&e<=ct}function Vi(e){return e>=32&&e<=1114111}function ot(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>ot(n,t[r])):cn(e)&&cn(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(n=>ot(e[n],t[n])):!1}function cn(e){return typeof e=="object"&&e!==null}const $i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
10
+ `,r:"\r",t:" "},Pi=92,Bi=123,un=125,Li=91,dn=93,Mi=32,qi=10,zi=9,Hi=13,at=34,Ji=43,fn=45,lt=48,Wi=49,ct=57,Ki=44,Gi=46,Xi=58,Yi=65,Zi=97,Qi=69,es=101,ts=70,ns=102;function hn(e,t,n,r){return i(e);function i(c,u){if(Array.isArray(r)){const d=r.find(_=>_.test(c));if(d){const _=d.stringify(c);if(typeof _!="string"||!on(_))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${_})`);return _}}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!=null&&c.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return o(c);if(c&&typeof c=="object")return s(c)}function o(c,u){if(c.length===0)return"[]";let d="[";for(let _=0;_<c.length;_++){const b=c[_];typeof b<"u"&&typeof b!="function"?d+=i(b):d+="null",_<c.length-1&&(d+=",")}return d+="]",d}function s(c,u){if(typeof c.toJSON=="function")return hn(c.toJSON(),t,n,void 0);const d=Array.isArray(t)?t.map(String):Object.keys(c);if(d.length===0)return"{}";let _=!0,b="{";for(const h of d){const f=c[h];if(a(h,f)){_?_=!1:b+=",";const m=JSON.stringify(h);b+=`${m}:`,b+=i(f)}}return b+="}",b}function a(c,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function rs(e){return ve(e)&&!an(e)?BigInt(e):parseFloat(e)}class is{constructor(){Ce(this,"id",1)}async exec(t,n,r={},i={},o=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,i.manual=!0,(await rt.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",...i},timeout:o,transformRequest:[(s,a)=>hn(s)],transformResponse:[s=>Ui(s,void 0,rs)]})).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,i,o){return this.exec("map_target_to_interface",[t,n],{cmd_only:r,tlm_only:i,unmap_old:o})}unmap_target_from_interface(t,n,r,i){return this.exec("unmap_target_from_interface",[t,n],{cmd_only:r,tlm_only:i})}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,i=!1){return this.exec("interface_target_enable",[t,n],{cmd_only:r,tlm_only:i})}interface_target_disable(t,n,r=!1,i=!1){return this.exec("interface_target_disable",[t,n],{cmd_only:r,tlm_only:i})}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,i,o){return this.exec("map_target_to_router",[t,n],{cmd_only:r,tlm_only:i,unmap_old:o})}unmap_target_from_router(t,n,r,i){return this.exec("unmap_target_from_router",[t,n],{cmd_only:r,tlm_only:i})}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,i=!1){return this.exec("router_target_enable",[t,n],{cmd_only:r,tlm_only:i})}router_target_disable(t,n,r=!1,i=!1){return this.exec("router_target_disable",[t,n],{cmd_only:r,tlm_only:i})}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,i=30){const o=await this.exec("get_tlm_packet",[t,n],{type:r,stale_time:i});if(o!=null){let s=o.length,a=null;for(let c=0;c<s;c++)a=this.decode_openc3_type(o[c][1]),a!==null&&(o[c][1]=a)}return o}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,i=null,o=null){let s={stale_time:n};r!==null&&(s.cache_timeout=r),i!==null&&(s.start_time=i.toISOString()),o!==null&&(s.end_time=o.toISOString());const a=await this.exec("get_tlm_values",[t],s,{},1e4);if(a&&a.length>0){let c=a[0].length,u=null;for(let d=0;d<c;d++)u=this.decode_openc3_type(a[0][d]),u!==null&&(a[0][d]=u)}return a}get_limits(t,n,r){return this.exec("get_limits",[t,n,r])}async tlm(t,n,r,i="CONVERTED"){let o=null;if(n===void 0)o=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))o=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, FORMATTED, and WITH_UNITS.`,a}else o=await this.exec("tlm",[t,n,r],{type:i});let s=this.decode_openc3_type(o);return s!==null&&(o=s),o}async inject_tlm(t,n,r=null,i="CONVERTED"){await this.exec("inject_tlm",[t,n,r],{type:i})}set_tlm(t,n,r,i){return this.exec("set_tlm",[t,n,r],{type:i})}override_tlm(t,n,r,i){return this.exec("override_tlm",[t,n,r],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,n,r,i){return this.exec("normalize_tlm",[t,n,r],{type:i})}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,i="CONVERTED"){return this.exec("get_cmd_value",[t,n,r,i])}get_cmd_buffer(t,n){return this.exec("get_cmd_buffer",[t,n])}_cmd(t,n,r,i,o,s={}){let a=null;for(let c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a=this.encode_openc3_type(i[c]),a!==null&&(i[c]=a));return this.exec(t,[n,r,i],s,o)}get_cmd_hazardous(t,n,r,i={}){return n===void 0?this.exec("get_cmd_hazardous",t,{},i):this._cmd("get_cmd_hazardous",t,n,r,i)}cmd(t,n,r,i={},o={}){return n===void 0?this.exec("cmd",t,o,i):this._cmd("cmd",t,n,r,i,o)}cmd_no_range_check(t,n,r,i={},o={}){return n===void 0?this.exec("cmd_no_range_check",t,o,i):this._cmd("cmd_no_range_check",t,n,r,i,o)}cmd_raw(t,n,r,i={},o={}){return n===void 0?this.exec("cmd_raw",t,o,i):this._cmd("cmd_raw",t,n,r,i,o)}cmd_raw_no_range_check(t,n,r,i={},o={}){return n===void 0?this.exec("cmd_raw_no_range_check",t,o,i):this._cmd("cmd_raw_no_range_check",t,n,r,i,o)}cmd_no_hazardous_check(t,n,r,i={},o={}){return n===void 0?this.exec("cmd_no_hazardous_check",t,o,i):this._cmd("cmd_no_hazardous_check",t,n,r,i,o)}cmd_no_checks(t,n,r,i={},o={}){return n===void 0?this.exec("cmd_no_checks",t,o,i):this._cmd("cmd_no_checks",t,n,r,i,o)}cmd_raw_no_hazardous_check(t,n,r,i={},o={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",t,o,i):this._cmd("cmd_raw_no_hazardous_check",t,n,r,i,o)}cmd_raw_no_checks(t,n,r,i={},o={}){return n===void 0?this.exec("cmd_raw_no_checks",t,o,i):this._cmd("cmd_raw_no_checks",t,n,r,i,o)}build_cmd(t,n,r,i={},o={}){return n===void 0?this.exec("build_cmd",t,o,i):this._cmd("build_cmd",t,n,r,i,o)}build_command(t,n,r,i={},o={}){return n===void 0?this.exec("build_cmd",t,o,i):this._cmd("build_cmd",t,n,r,i,o)}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",[])}async hashString(t){if(window.isSecureContext){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(o=>o.toString(16).padStart(2,"0")).join("")}}}const ss={mixins:[_t],props:{item:{type:Object,required:!0}},data(){return{dataItem:this.item,stateValue:null,checkValue:!1}},created(){this.dataItem.states&&(this.stateValue=this.dataItem.states[this.dataItem.value]),this.isCheckbox&&(this.checkValue=this.stateValue===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.checkValue?this.$emit("change","CHECKED"):this.$emit("change","UNCHECKED")},stateValue:function(){let e=Object.keys(this.dataItem.states).find(t=>this.dataItem.states[t]===this.stateValue);this.$emit("change",e)}},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 os(e,t,n,r,i,o){const s=y("v-checkbox"),a=y("v-select"),c=y("v-text-field");return w(),$("td",null,[o.isCheckbox?(w(),C(s,{key:0,density:"compact","hide-details":"",modelValue:i.checkValue,"onUpdate:modelValue":t[0]||(t[0]=u=>i.checkValue=u),disabled:!i.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):i.dataItem.states?(w(),C(a,{key:1,density:"compact","hide-details":"",modelValue:i.stateValue,"onUpdate:modelValue":t[1]||(t[1]=u=>i.stateValue=u),items:o.itemStates,disabled:!i.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(w(),C(c,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","onUpdate:modelValue":o.textChange,"model-value":o.format(i.dataItem.value),disabled:!i.dataItem.editable,"data-test":"table-item-text-field"},null,8,["onUpdate:modelValue","model-value","disabled"]))])}const as={components:{TableItem:Se(ss,[["render",os]])},props:{items:{type:Object,required:!0}},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})}}},ls={class:"text-start"},cs={key:0,class:"text-start"};function us(e,t,n,r,i,o){const s=y("table-item");return w(),$("tr",null,[V("td",ls,U(i.dataItems[0].index),1),o.oneDimensional?(w(),$("td",cs,U(i.dataItems[0].name),1)):ee("",!0),(w(!0),$(K,null,Q(i.dataItems,(a,c)=>(w(),C(s,{key:a.name,item:a,onChange:me(u=>o.onChange(a,c,u),["self"])},null,8,["item","onChange"]))),128))])}const ds={components:{TopBar:wn,TableRow:Se(as,[["render",us]]),FileOpenSaveDialog:jn,SimpleTextDialog:Pn},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 File",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";B.get(`/openc3-api/tables/${t}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.uploadScript=`${t}.rb`}).catch(r=>{B.get(`/openc3-api/tables/${t}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(i=>{this.uploadScript=`${t}.py`}).catch(i=>{this.uploadScript=null})}),B.get(`/openc3-api/tables/${n}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.downloadScript=`${n}.rb`}).catch(r=>{B.get(`/openc3-api/tables/${n}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(i=>{this.downloadScript=`${n}.py`}).catch(i=>{this.downloadScript=null})})}},created(){this.api=new is,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.buildNewBinary(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)),B.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){B.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=>B.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),B.post("/openc3-api/tables/binary",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=window.atob(n.data.contents),i=new Uint8Array(r.length);for(let a=0;a<r.length;++a)i[a]=r.charCodeAt(a);const o=new Blob([i],{type:"application/octet-stream"}),s=document.createElement("a");s.href=URL.createObjectURL(o),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),B.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"}),i=document.createElement("a");i.href=URL.createObjectURL(r),i.setAttribute("download",n.data.filename),i.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),B.post("/openc3-api/tables/report",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=`Binary: ${this.filename}
11
+ Definition: ${this.definitionFilename}
12
+
13
+ `,i=new Blob([r,n.data.contents],{type:"text/plain"}),o=document.createElement("a");o.href=URL.createObjectURL(i),o.setAttribute("download",n.data.filename),o.click()})},upload(){B.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(()=>{B.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 B.post(`/openc3-api/tables/${this.filename}/lock`)},unlockFile:function(){this.filename!==""&&!this.readOnly&&B.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),B.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((i,o)=>{const s={title:i,filterable:i!=="INDEX"};return r.numColumns===1?{...s,value:`[0].${i.toLowerCase()}`}:{...s,value:`[${o}].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}`})})},buildNewBinary:function(e){const t=new FormData;t.append("definition",e),B.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}}},fs={style:{position:"absolute"},class:"ma-3"};function hs(e,t,n,r,i,o){const s=y("top-bar"),a=y("v-file-input"),c=y("v-text-field"),u=y("v-col"),d=y("v-row"),_=y("v-icon"),b=y("v-btn"),h=y("v-checkbox-btn"),f=y("v-tooltip"),m=y("v-card-text"),O=y("v-spacer"),k=y("v-card-title"),F=y("v-tab"),R=y("v-tabs"),L=y("table-row"),E=y("v-data-table"),J=y("v-tabs-window-item"),j=y("v-tabs-window"),Z=y("v-card"),ne=y("file-open-save-dialog"),fe=y("simple-text-dialog");return w(),$("div",null,[g(s,{menus:o.menus,title:i.title},null,8,["menus","title"]),g(a,{ref:"fileInput",modelValue:i.fileInput,"onUpdate:modelValue":t[0]||(t[0]=v=>i.fileInput=v),"show-size":"",accept:".bin","data-test":"file-input",style:{position:"fixed",top:"-100%"}},null,8,["modelValue"]),g(Z,null,{default:p(()=>[g(m,null,{default:p(()=>[g(d,{dense:""},{default:p(()=>[g(u,{cols:"6"},{default:p(()=>[g(c,{id:"filename",modelValue:o.fullFilename,"onUpdate:modelValue":t[1]||(t[1]=v=>o.fullFilename=v),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Filename",class:"filename","data-test":"filename"},null,8,["modelValue"])]),_:1}),g(u,{cols:"6"},{default:p(()=>[g(c,{id:"definition-filename",modelValue:i.definitionFilename,"onUpdate:modelValue":t[2]||(t[2]=v=>i.definitionFilename=v),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Definition",class:"filename","data-test":"definition-filename"},null,8,["modelValue"])]),_:1})]),_:1}),g(d,{dense:""},{default:p(()=>[g(u,{cols:"auto",class:"mr-auto"},{default:p(()=>[t[25]||(t[25]=V("span",{class:"text-body-1 ma-2"},"File Download:",-1)),g(b,{dense:"",color:"primary",class:"mr-3",disabled:i.filename=="","data-test":"download-file-binary",onClick:t[3]||(t[3]=v=>o.downloadBinary(null))},{default:p(()=>[t[20]||(t[20]=A(" Binary ",-1)),g(_,{end:"",theme:"dark"},{default:p(()=>[...t[19]||(t[19]=[A(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled"]),g(b,{dense:"",color:"primary",class:"mr-3",disabled:i.filename=="","data-test":"download-file-definition",onClick:t[4]||(t[4]=v=>o.downloadDefinition(null))},{default:p(()=>[t[22]||(t[22]=A(" Definition ",-1)),g(_,{end:"",theme:"dark"},{default:p(()=>[...t[21]||(t[21]=[A(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled"]),g(b,{dense:"",color:"primary",disabled:i.filename=="","data-test":"download-file-report",onClick:t[5]||(t[5]=v=>o.downloadReport(null))},{default:p(()=>[t[24]||(t[24]=A(" Report ",-1)),g(_,{end:"",theme:"dark"},{default:p(()=>[...t[23]||(t[23]=[A(" mdi-file-document ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:p(()=>[g(b,{dense:"",color:"primary",disabled:!i.uploadScript,"data-test":"upload-file",onClick:t[6]||(t[6]=v=>o.upload())},{default:p(()=>[t[27]||(t[27]=A(" Upload ",-1)),g(_,{end:"",theme:"dark"},{default:p(()=>[...t[26]||(t[26]=[A(" mdi-file-upload ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:p(()=>[g(b,{dense:"",color:"primary",disabled:!i.downloadScript,"data-test":"download-file",onClick:t[7]||(t[7]=v=>o.download())},{default:p(()=>[t[29]||(t[29]=A(" Download ",-1)),g(_,{end:"",theme:"dark"},{default:p(()=>[...t[28]||(t[28]=[A(" mdi-file-download ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),g(u,{cols:"auto"},{default:p(()=>[g(f,{"open-delay":600,location:"top"},{activator:p(({props:v})=>[V("span",mt(gt(v)),[g(h,{modelValue:i.scriptBackground,"onUpdate:modelValue":t[8]||(t[8]=G=>i.scriptBackground=G),label:"B/G",class:"shrink mt-0","data-test":"upload-background"},null,8,["modelValue"])],16)]),default:p(()=>[t[30]||(t[30]=V("span",null,"Run upload download scripts in the background",-1))]),_:1})]),_:1})]),_:1})]),_:1}),g(k,{class:"d-flex align-center"},{default:p(()=>[t[31]||(t[31]=A(" Items ",-1)),g(O),g(c,{modelValue:i.search,"onUpdate:modelValue":t[9]||(t[9]=v=>i.search=v),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),(w(),C(R,{key:`v-tabs_${i.tables.length}`,modelValue:i.curTab,"onUpdate:modelValue":t[10]||(t[10]=v=>i.curTab=v)},{default:p(()=>[(w(!0),$(K,null,Q(i.tables,(v,G)=>(w(),C(F,{key:G},{default:p(()=>[A(U(v.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])),(w(),C(j,{key:`v-tabs-window_${i.tables.length}`,modelValue:i.curTab,"onUpdate:modelValue":t[11]||(t[11]=v=>i.curTab=v)},{default:p(()=>[(w(!0),$(K,null,Q(i.tables,(v,G)=>(w(),C(J,{key:`${i.filename}${G}`},{default:p(()=>[g(E,{headers:v.headers,items:v.rows,search:i.search,"items-per-page":20,"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact","data-test":v.name},Ee({item:p(({item:H})=>[(w(),C(L,{key:H[0].name,items:H,onChange:me(M=>o.onChange(H,M),["self"])},null,8,["items","onChange"]))]),_:2},[i.tables.length>1?{name:"tfoot",fn:p(()=>[V("div",fs,[t[38]||(t[38]=V("span",{class:"text-body-1 mr-3"},"Table Download:",-1)),g(b,{dense:"",color:"primary",class:"mr-3",disabled:i.filename=="","data-test":"download-table-binary",onClick:H=>o.downloadBinary(v.name)},{default:p(()=>[t[33]||(t[33]=A(" Binary ",-1)),g(_,{end:"",theme:"dark"},{default:p(()=>[...t[32]||(t[32]=[A(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),g(b,{dense:"",color:"primary",class:"mr-3",disabled:i.filename=="","data-test":"download-table-definition",onClick:H=>o.downloadDefinition(v.name)},{default:p(()=>[t[35]||(t[35]=A(" Definition ",-1)),g(_,{end:"",theme:"dark"},{default:p(()=>[...t[34]||(t[34]=[A(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),g(b,{dense:"",color:"primary",disabled:i.filename=="","data-test":"download-table-report",onClick:H=>o.downloadReport(v.name)},{default:p(()=>[t[37]||(t[37]=A(" Report ",-1)),g(_,{end:"",theme:"dark"},{default:p(()=>[...t[36]||(t[36]=[A(" 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}),i.fileOpen?(w(),C(ne,{key:0,modelValue:i.fileOpen,"onUpdate:modelValue":t[12]||(t[12]=v=>i.fileOpen=v),type:"open","api-url":"/openc3-api/tables",onFile:t[13]||(t[13]=v=>o.setFile(v)),onError:t[14]||(t[14]=v=>o.setError(v))},null,8,["modelValue"])):ee("",!0),i.showSaveAs?(w(),C(ne,{key:1,modelValue:i.showSaveAs,"onUpdate:modelValue":t[15]||(t[15]=v=>i.showSaveAs=v),type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":i.filename,onFilename:t[16]||(t[16]=v=>o.saveAsFilename(v)),onError:t[17]||(t[17]=v=>o.setError(v))},null,8,["modelValue","input-filename"])):ee("",!0),g(fe,{modelValue:i.showError,"onUpdate:modelValue":t[18]||(t[18]=v=>i.showError=v),title:i.errorTitle,text:i.errorText},null,8,["modelValue","title","text"])])}const js=gn("default",Se(ds,[["render",hs],["__scopeId","data-v-2eb6d698"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-eefbb0af54e75407723d.js","vue","./DetailsDialog-DxYZre4A-d55a9e5c297f02d792da.js","single-spa","./VWidget-A802LGvR-a9f15ae9284995027636.js","vue-router","vuex","vuetify","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js"],function(y,T){"use strict";var c,a,o,s,n,u,d,l,m,h,g,p,v,x,f,w;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.h},null,null,null,null],execute:function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],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}}},C={class:"textbox-widget-container"};function V(t,r,E,L,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),_=a("v-list"),z=a("v-menu"),M=a("details-dialog");return s(),o("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(z,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(_,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,N)=>(s(),g(B,{key:N,onClick:p(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const j=y("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-LsyjS7ZS-94cf800423e8fa13ab2f.js","vue","./main-58ba860622dd5d1833ca.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.d},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,r,y,f,u,S){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
1
+ System.register(["./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js","vue","./main-eefbb0af54e75407723d.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.d},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,r,y,f,u,x){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-LsyjS7ZS-94cf800423e8fa13ab2f.js","./main-58ba860622dd5d1833ca.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,a,r,s,o;return{setters:[e=>{l=e.o},e=>{i=e.d,n=e.R},e=>{a=e.resolveComponent,r=e.createBlock,s=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],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 c(d,u,f,v,t,S){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))}}});
1
+ System.register(["./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js","./main-eefbb0af54e75407723d.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,a,r,s,o;return{setters:[e=>{l=e.o},e=>{i=e.d,n=e.R},e=>{a=e.resolveComponent,r=e.createBlock,s=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],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 c(d,u,f,v,t,x){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js","vue","./main-eefbb0af54e75407723d.js","vue-router","single-spa","vuex","vuetify"],function(a,m){"use strict";var t,r,n,l,o,s;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,n=e.openBlock,l=e.normalizeStyle,o=e.toDisplayString},e=>{s=e.d},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 i(c,x,d,f,y,u){return n(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},o(u.labelText),5)}const p=a("default",s(e,[["render",i]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-58ba860622dd5d1833ca.js","./Widget-LsyjS7ZS-94cf800423e8fa13ab2f.js"],function(a,n){"use strict";var r,i;return{setters:[s=>{r=s.R},s=>{i=s.o}],execute:function(){const s={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?this.formatArray(e):this.isObject(e)?"":t&&e?sprintf(t,e):String(e)},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),l=>("0"+(l&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"}}};a({a:s,h:{mixins:[i,r,s],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("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2])+"/","_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},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let e=this._limitsState;if(e!=null)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}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="WITH_UNITS";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-eefbb0af54e75407723d.js","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js"],function(a,n){"use strict";var r,i;return{setters:[s=>{r=s.R},s=>{i=s.o}],execute:function(){const s={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?this.formatArray(e):this.isObject(e)?"":t&&e?sprintf(t,e):String(e)},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),l=>("0"+(l&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"}}};a({a:s,h:{mixins:[i,r,s],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("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2])+"/","_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},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let e=this._limitsState;if(e!=null)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}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="WITH_UNITS";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 +1 @@
1
- System.register(["./main-58ba860622dd5d1833ca.js","vue","./DetailsDialog-BNCS3QAe-ed931620c06a99fafb92.js","single-spa","./VWidget-DQGJRgAk-310a282de1ac7a21b132.js","vue-router","vuex","vuetify","./Widget-LsyjS7ZS-94cf800423e8fa13ab2f.js"],function(w,j){"use strict";var c,a,o,r,d,n,l,m,u,p,v,g,h,f,y,x,S,V;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,h=e.renderList,f=e.createBlock,y=e.withModifiers,x=e.createTextVNode},e=>{S=e.P},null,e=>{V=e.h},null,null,null,null],execute:function(){const C={components:{DetailsDialog:S},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(parseInt(this.parameters[4])+4,"ch",this.width)}};function _(t,i,W,I,z,k){const D=a("rux-status"),E=a("v-text-field"),N=a("v-tooltip"),B=a("v-list-item-title"),T=a("v-list-item"),A=a("v-list"),L=a("v-menu"),M=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,k.aging])},[n(N,{"open-delay":600,location:"top"},{activator:l(({props:s})=>[n(E,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value"},s,{onContextmenu:t.showContextMenu}),v({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(D,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[m("span",null,u(k.fullName),1)]),_:1}),n(L,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(A,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,P)=>(r(),f(T,{key:P,onClick:y(s.action,["stop"])},{default:l(()=>[n(B,null,{default:l(()=>[x(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[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 U=w("default",c(C,[["render",_],["__scopeId","data-v-0d38b850"]]))}}});
1
+ System.register(["./main-eefbb0af54e75407723d.js","vue","./DetailsDialog-DxYZre4A-d55a9e5c297f02d792da.js","single-spa","./VWidget-A802LGvR-a9f15ae9284995027636.js","vue-router","vuex","vuetify","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js"],function(C,j){"use strict";var c,a,o,r,d,n,l,m,u,p,v,g,h,f,x,y,V,k;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{k=e.h},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[k],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(parseInt(this.parameters[4])+4,"ch",this.width)}};function _(t,i,W,I,z,w){const D=a("rux-status"),E=a("v-text-field"),N=a("v-tooltip"),B=a("v-list-item-title"),T=a("v-list-item"),A=a("v-list"),L=a("v-menu"),M=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,w.aging])},[n(N,{"open-delay":600,location:"top"},{activator:l(({props:s})=>[n(E,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value"},s,{onContextmenu:t.showContextMenu}),v({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(D,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[m("span",null,u(w.fullName),1)]),_:1}),n(L,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(A,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,P)=>(r(),f(T,{key:P,onClick:x(s.action,["stop"])},{default:l(()=>[n(B,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[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 U=C("default",c(S,[["render",_],["__scopeId","data-v-0d38b850"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-QaBYsiZz-1433e7c600f0e241193f.js","./LimitsbarWidget-zkoAz9SQ-9954d767cba3b513f8f4.js","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js","vue","./main-eefbb0af54e75407723d.js","./DetailsDialog-DxYZre4A-d55a9e5c297f02d792da.js","single-spa","./VWidget-A802LGvR-a9f15ae9284995027636.js","vue-router","vuex","vuetify","./BarColumn-CUO9ur6W-2523afd12d726c10f5b5.js"],function(g,f){"use strict";var l,i,a,n,u,o,c,s,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,r=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,j,z,b,y,B){const p=n("value-widget"),v=n("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(p,r(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,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const x=g("default",m(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-QaBYsiZz-1433e7c600f0e241193f.js","./LimitscolumnWidget-D-IPNDVg-b8dc278c395cad86dc75.js","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js","vue","./main-eefbb0af54e75407723d.js","./DetailsDialog-DxYZre4A-d55a9e5c297f02d792da.js","single-spa","./VWidget-A802LGvR-a9f15ae9284995027636.js","vue-router","vuex","vuetify","./BarColumn-CUO9ur6W-2523afd12d726c10f5b5.js"],function(g,f){"use strict";var l,i,a,n,u,o,c,s,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,r=e.mergeProps},e=>{m=e.d},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitscolumnWidget:i}};function d(t,j,x,B,W,w){const p=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,r(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 V=g("default",m(e,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["./ValueWidget-Bk1RFjks-8e6bfec819006b01220b.js","./RangebarWidget-5uQTfLMP-e33b04a42411ec4652f6.js","./Widget-LsyjS7ZS-94cf800423e8fa13ab2f.js","vue","./main-58ba860622dd5d1833ca.js","./DetailsDialog-BNCS3QAe-ed931620c06a99fafb92.js","single-spa","./VWidget-DQGJRgAk-310a282de1ac7a21b132.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.createElementBlock,m=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.d},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},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,B,k,x,c){const v=r("value-widget"),h=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,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(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const S=g("default",p(e,[["render",d]]))}}});
1
+ System.register(["./ValueWidget-QaBYsiZz-1433e7c600f0e241193f.js","./RangebarWidget-DhcoIdNf-3f1cd4f2a2716e71e029.js","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js","vue","./main-eefbb0af54e75407723d.js","./DetailsDialog-DxYZre4A-d55a9e5c297f02d792da.js","single-spa","./VWidget-A802LGvR-a9f15ae9284995027636.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,u,m,o,s,a,c;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.createElementBlock,m=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{c=e.d},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},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,B,j,S,V,p){const v=r("value-widget"),h=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:p.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(h,a(t.$attrs,{parameters:p.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const x=g("default",c(e,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["./Layout-Dd6dRf3R-22e7980cc4d9deed5eb0.js","vue","./main-58ba860622dd5d1833ca.js","./Widget-LsyjS7ZS-94cf800423e8fa13ab2f.js","vue-router","single-spa","vuex","vuetify"],function(f,k){"use strict";var l,i,r,c,o,u,m,g,p,d;return{setters:[e=>{l=e.r},e=>{i=e.createElementBlock,r=e.openBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{d=e.d},null,null,null,null,null],execute:function(){const e={mixins:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0].startsWith("RAW")&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function y(n,a,s,R,B,S){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=f("default",d(e,[["render",y]]))}}});
1
+ System.register(["./Layout-CrCMUbtG-cbf43f755a7cc657f4ff.js","vue","./main-eefbb0af54e75407723d.js","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js","vue-router","single-spa","vuex","vuetify"],function(f,k){"use strict";var l,i,r,c,o,u,m,g,p,d;return{setters:[e=>{l=e.r},e=>{i=e.createElementBlock,r=e.openBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{d=e.d},null,null,null,null,null],execute:function(){const e={mixins:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0].startsWith("RAW")&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function y(n,a,s,B,C,w){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=f("default",d(e,[["render",y]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./LabelWidget-BehwzOCR-b76c2d3ff3c362bfa15e.js","./HorizontallineWidget-DZcIetQh-1c690632d6fea2561a89.js","./VerticalWidget-C8iN5DJK-f86145fdcc46d329c134.js","./Layout-CrCMUbtG-cbf43f755a7cc657f4ff.js","vue","./main-eefbb0af54e75407723d.js","./Widget-Cx1jBJHK-95f8d8cd9b24924a91eb.js","vue-router","single-spa","vuex","vuetify"],function(m,W){"use strict";var r,l,a,o,s,c,n,g,d,i,u,p;return{setters:[e=>{r=e.default},e=>{l=e.default},e=>{a=e.default},e=>{o=e.r},e=>{s=e.resolveComponent,c=e.createElementBlock,n=e.openBlock,g=e.createBlock,d=e.createCommentVNode,i=e.createVNode,u=e.mergeProps},e=>{p=e.d},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 h(t,C,S,B,V,j){const w=s("label-widget"),f=s("horizontal-line-widget"),v=s("vertical-widget");return n(),c("div",null,[t.parameters.length>0?(n(),g(w,{key:0,parameters:t.parameters.slice(0,1),settings:[...t.labelSettings],"widget-index":0},null,8,["parameters","settings"])):d("",!0),i(f,{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",h]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-58ba860622dd5d1833ca.js"],function(p,d){"use strict";var o,r;return{setters:[n=>{o=n.z,r=n.k}],execute:function(){const n=p("o",{mixins:[o],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:{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.getters.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,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("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":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(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":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(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 a={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 r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[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(a=>a[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}`}}})}}});
1
+ System.register(["./main-eefbb0af54e75407723d.js"],function(p,d){"use strict";var o,r;return{setters:[n=>{o=n.U,r=n.k}],execute:function(){const n=p("o",{mixins:[o],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:{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.getters.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,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("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":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(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":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(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 a={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 r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[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(a=>a[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}`}}})}}});