openc3-cosmos-tool-tablemanager 7.2.0 → 7.2.1
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.
- checksums.yaml +4 -4
- data/tools/tablemanager/{ArrayWidget-D1PArcGr-5e95e59dcd9c498f7462.js → ArrayWidget-DMSm_P6c-bd05d93eb21be1b73209.js} +2 -2
- data/tools/tablemanager/{ArrayplotWidget-DPUPy0qM-02afcf3196e0ab69e054.js → ArrayplotWidget-fdXLhGAl-ec544a67ad9499a05a50.js} +1 -1
- data/tools/tablemanager/{BarColumn-BpdscDQf-75c9b31e68a938d09581.js → BarColumn-Bb305iCi-8ada82087aaae8ab6135.js} +1 -1
- data/tools/tablemanager/{BlockWidget-_VUsK5T9-b55f17f61fb9dc63ebb2.js → BlockWidget-Do3W6tZh-8ce74752fb51360c5084.js} +2 -2
- data/tools/tablemanager/{ButtonWidget-DE41o-cg-fd878760439035b4c3ad.js → ButtonWidget-DukCQt0F-9c816c8f0ea2fa388a54.js} +2 -2
- data/tools/tablemanager/CanvasWidget-BRdVWln5-71cf91a1f64574a91524.js +1 -0
- data/tools/tablemanager/CanvasdotWidget-DV8PeDWz-10dc07fb32752a910a49.js +1 -0
- data/tools/tablemanager/{CanvasimageWidget-COv_Qnc8-e72ec484ab8853f95915.js → CanvasimageWidget-Czbq1GuF-f8c4790b235a52624a68.js} +1 -1
- data/tools/tablemanager/{CanvasimagevalueWidget-BhuUqLOo-c978e5e18a04ebe27725.js → CanvasimagevalueWidget-DKt5JgEt-f8c82fedec604bb44942.js} +1 -1
- data/tools/tablemanager/CanvaslabelWidget-DW2I1ra1-1be3870ad36283106458.js +1 -0
- data/tools/tablemanager/CanvaslabelvalueWidget-BhzvZVfD-3d133a7e283fe4aedb19.js +1 -0
- data/tools/tablemanager/{CanvaslineWidget-D1K_6mAY-f5e0e4eb054a726b3fa3.js → CanvaslineWidget-DsjY37tp-35878076e1e178463102.js} +1 -1
- data/tools/tablemanager/{CanvaslinevalueWidget-D4eaxWhR-4edb9ea2c937343604af.js → CanvaslinevalueWidget-ihI97G8T-2dc3bf6b0c1cbb2e65d7.js} +1 -1
- data/tools/tablemanager/CheckbuttonWidget-B778Z-Zo-28e30d3cdc05cc70ac5c.js +1 -0
- data/tools/tablemanager/ComboboxWidget-CuuvOL9K-76a2eccda49acf1989bc.js +1 -0
- data/tools/tablemanager/{DateWidget-DkNWx28s-b05a32453043a2c4dee7.js → DateWidget-COvQTAeo-2fcf229dcb75ba054c43.js} +1 -1
- data/tools/tablemanager/{DetailsDialog-F4KgYM6m-97497691b215ff8fa563.js → DetailsDialog-DE7lK17G-6fa47cafac9fe6ad4cfa.js} +1 -1
- data/tools/tablemanager/{DynamicWidget-BuSbQVhf-002551a789d140c03049.js → DynamicWidget-BuSbQVhf-bca323f12d6b64e86eb5.js} +1 -1
- data/tools/tablemanager/{FilechecksumWidget-DSfNEnDJ-8de8e59b31eda4a23382.js → FilechecksumWidget-DRnOt_UE-b584dd048c90872407a0.js} +1 -1
- data/tools/tablemanager/{FiledisplayWidget-D2cxMmrP-f986e2375a1de8049c8a.js → FiledisplayWidget-26R46EjS-634400e301eccb78201d.js} +1 -1
- data/tools/tablemanager/{FormatvalueWidget-6-bj_PJO-a589d3637831f708d52e.js → FormatvalueWidget-BxyscMJc-3f8dcb12156da5fab36e.js} +1 -1
- data/tools/tablemanager/Graph-BKw7xw1a-aea32881b90e4121a0e9.js +1 -0
- data/tools/tablemanager/{GraphWidget-COXK3Dab-60eb240312875e235f41.js → GraphWidget-Cs9mvqUu-ac352c0e984c4684cc3b.js} +1 -1
- data/tools/tablemanager/{HorizontalWidget-C9UFBPsk-9a12a146ad84bb65862c.js → HorizontalWidget-fWLFj7Kg-5fe2bfdbda9d687afc09.js} +1 -1
- data/tools/tablemanager/{HorizontalboxWidget-CWLfmRtr-8d983507852559a33ad1.js → HorizontalboxWidget-DEaXhKEz-c91383971d92de5e1a78.js} +1 -1
- data/tools/tablemanager/HorizontallineWidget-Bvu1QP3S-4ae6ad3a2cf227f81b64.js +1 -0
- data/tools/tablemanager/{IframeWidget-Bn9eGzrq-d787fdb2e4bff44fc5ed.js → IframeWidget-B143k4lo-7f48900a4edf744a73f0.js} +1 -1
- data/tools/tablemanager/{ImageLoader-_gAudhVo-d5409e20dc8fae1a1e77.js → ImageLoader-BCpmQHIl-8d15ca1951d85b432781.js} +1 -1
- data/tools/tablemanager/{ImageviewerWidget-BUWhF32Z-1f0aab59a439aae5f3a5.js → ImageviewerWidget-CLrvr6dw-4aa73465b7027d0bd0ce.js} +1 -1
- data/tools/tablemanager/{LabelWidget-BhzkN06D-80ee3cd612c60e471dea.js → LabelWidget-CA1bTX2B-07457ce1d8320a1f2654.js} +1 -1
- data/tools/tablemanager/{LabelledWidget-vx8NvW1b-5a692651bc93336c31bd.js → LabelledWidget-BDhvr03J-35821ac1c889e53328b0.js} +1 -1
- data/tools/tablemanager/{LabelprogressbarWidget-t5PvKuS4-33c79db8902659c02f08.js → LabelprogressbarWidget-g7A5CE8S-8451f9adeae423bceeaf.js} +1 -1
- data/tools/tablemanager/LabelsparklineWidget-B27xXxWg-578002537d558c7ee753.js +1 -0
- data/tools/tablemanager/{LabelvalueWidget-Cbs1DBK2-bab12a58f9349a0fac81.js → LabelvalueWidget-DFn8o6LC-c5a9839460122301add3.js} +1 -1
- data/tools/tablemanager/{LabelvaluedescWidget-B7OIOGc0-88f646fffbb5da0600d4.js → LabelvaluedescWidget-BQpaxFaB-c91a35993c4711f96aa3.js} +1 -1
- data/tools/tablemanager/LabelvaluelimitsbarWidget-C-z96q8z-5b92bf9684d255bf14a8.js +1 -0
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-D2TMEv9O-14aa36eb54e73452373a.js +1 -0
- data/tools/tablemanager/{LabelvaluerangebarWidget-Pt_evm3v-8468d72c7f60d21444e7.js → LabelvaluerangebarWidget-D99dZCjz-752f8933011d68130d72.js} +1 -1
- data/tools/tablemanager/{Layout-CKmC50QZ-f129ebe9d33eebd829c0.js → Layout--_zNJWnw-06b7dc2f5e31f438aa44.js} +1 -1
- data/tools/tablemanager/{LedWidget-D1lmNXpi-0532ee6126116c7b10e8.js → LedWidget-D2uxHxe3-d41346f7fa69e0666f51.js} +1 -1
- data/tools/tablemanager/{LimitsBar-D5IZu7eX-3666f677e8a141dda10d.js → LimitsBar-DN1s8-MS-5e84501621bd7341c97e.js} +1 -1
- data/tools/tablemanager/{LimitsbarWidget-VpxQXE-e-d51a6f6b51bdd91a0018.js → LimitsbarWidget-Cqhh7LKU-a877fdb5470d2c851629.js} +1 -1
- data/tools/tablemanager/{LimitscolorWidget-79P41CX7-10a451e619a6ee6377d6.js → LimitscolorWidget-haGB4RbY-126196f968956c610ccb.js} +1 -1
- data/tools/tablemanager/{LimitscolumnWidget-BFDXhJeZ-7265ed002be5217eb052.js → LimitscolumnWidget-B1GdmlR_-03ee2a2cea79cc16f980.js} +1 -1
- data/tools/tablemanager/{LinegraphWidget-VqkpOlws-b7a5600f0bc7eabe4d98.js → LinegraphWidget-COSOQ0uM-d1f7e5351c723d950893.js} +1 -1
- data/tools/tablemanager/{MatrixbycolumnsWidget--ihvirDP-de5a9fd6e5d6cf1b75a9.js → MatrixbycolumnsWidget-coHlLETG-7c23ab1eea14d120385c.js} +1 -1
- data/tools/tablemanager/{OpenC3TimePicker-B0lAIU91-4af4359c26da8bf0fd6e.js → OpenC3TimePicker-B8Vu9GBz-4db1d8c7bb11cb408e89.js} +1 -1
- data/tools/tablemanager/{ProgressbarWidget-BIB3r9SL-5bff9b74a5a24ed332bb.js → ProgressbarWidget-D_yFssIZ-7bb51699c9bd98a8b4e6.js} +1 -1
- data/tools/tablemanager/{RadiobuttonWidget-C5rxLM7K-6ba3c583302a040d1d44.js → RadiobuttonWidget-DL0jVTcb-20603c348d761ae3f75b.js} +1 -1
- data/tools/tablemanager/RadiogroupWidget-2-td69IA-531d21e605363199651d.js +1 -0
- data/tools/tablemanager/{RangebarWidget-MPQYi2Km-08c5e4108a4d3988031d.js → RangebarWidget-i2mlnxys-45d5f6d6084da0ede7b7.js} +1 -1
- data/tools/tablemanager/{RollupWidget-CfjGAhzg-f761abccfc7066c772e5.js → RollupWidget-BEJ2Icg1-3e1fc44a18f7cd543505.js} +1 -1
- data/tools/tablemanager/{ScrollwindowWidget-CupaygNN-8a53ebfdaf51c1036ebf.js → ScrollwindowWidget-BU1cRpL8-5fbe7abf8f7c614c9700.js} +1 -1
- data/tools/tablemanager/{SignalWidget-C-qecoTO-910a9bc38b99bedcd57e.js → SignalWidget-hiTkeem9-11106216ae13c0624b6c.js} +1 -1
- data/tools/tablemanager/SpacerWidget-CBmzzS_X-4959c8d81d91a346f8dc.js +1 -0
- data/tools/tablemanager/SparklineWidget-CizRh6QR-dd92c0fac13bb2530108.js +1 -0
- data/tools/tablemanager/TabbookWidget-CvL3Ozmx-44ca59b7520f756a4c95.js +1 -0
- data/tools/tablemanager/TableManager-db47575a1490b264322b.js +16 -0
- data/tools/tablemanager/TextboxWidget-BtEwXzDO-e3694a5eda91d859c6e3.js +1 -0
- data/tools/tablemanager/{TextfieldWidget-CdANAW-6-97c5831ab8e88bb90cb3.js → TextfieldWidget-BDbb57HP-e5ca568469c68e6a91fd.js} +1 -1
- data/tools/tablemanager/TimeWidget-DzD8U8l8-38508582a85d26da5f7f.js +1 -0
- data/tools/tablemanager/{TitleWidget-68NWCcXB-1f3e7ca4624c976e380e.js → TitleWidget-CL53vf14-777ada839ad730d5539e.js} +1 -1
- data/tools/tablemanager/{VWidget-oMbywhLA-a3445c8c7a212fc13231.js → VWidget-5qOYva88-2f272ee8945cdc8de94c.js} +1 -1
- data/tools/tablemanager/ValueWidget-CAkuc_w_-ac27da8197c47bec55a2.js +1 -0
- data/tools/tablemanager/ValuelimitsbarWidget-Y8sO05E1-7cdb10f3109caa08aa39.js +1 -0
- data/tools/tablemanager/{ValuelimitscolumnWidget-BVt6nLXq-6d27ca205ba3d773006f.js → ValuelimitscolumnWidget-iOjB_fCj-d5ccc7a0de1cf6fda7b3.js} +1 -1
- data/tools/tablemanager/{ValuerangebarWidget-uVZEI32U-8b3b083a5f9cdbef7df9.js → ValuerangebarWidget-DsCoeAm6-868897c525b7726b4d02.js} +1 -1
- data/tools/tablemanager/{VerticalWidget-DlftYBjH-ead366d0a8e5ac6d1747.js → VerticalWidget-C6O0dhRU-c9d63f87655ea15c4228.js} +1 -1
- data/tools/tablemanager/{VerticalboxWidget-C7RrkfY0-24b8e8bde647e0523a8a.js → VerticalboxWidget-B-CoqRJG-6e5ffe844cacdc95f4da.js} +1 -1
- data/tools/tablemanager/{Widget-D_HaosJK-24d34ad275ee06d9cb88.js → Widget-CtYQauzA-384c81334f94e95db951.js} +1 -1
- data/tools/tablemanager/main-46cbce01f21591d8619f.js +1497 -0
- data/tools/tablemanager/main.js +1 -1
- metadata +72 -72
- data/tools/tablemanager/CanvasWidget-BEi8h3Mq-731b9435323b23471b38.js +0 -1
- data/tools/tablemanager/CanvasdotWidget-eZuMgkhL-e3ced7b65730b72ced83.js +0 -1
- data/tools/tablemanager/CanvaslabelWidget-DtvbgeYH-c7f72b59d16957ed11db.js +0 -1
- data/tools/tablemanager/CanvaslabelvalueWidget-C_FRIeNb-77738c4dc906dd5186ef.js +0 -1
- data/tools/tablemanager/CheckbuttonWidget-ByxMDkiS-4eae4e3fd85f4e53163b.js +0 -1
- data/tools/tablemanager/ComboboxWidget-CAGxGv2r-7a2128f28ca0b22e3930.js +0 -1
- data/tools/tablemanager/Graph-Cz0Ns1FD-746f620dd1a4ae354bf5.js +0 -1
- data/tools/tablemanager/HorizontallineWidget-DeFkOaYO-567c37b07d9e06c88f62.js +0 -1
- data/tools/tablemanager/LabelsparklineWidget-CebbEH-j-ab1ff80b05b9d12e1847.js +0 -1
- data/tools/tablemanager/LabelvaluelimitsbarWidget-C57kf-oQ-7243959fa5d615fad793.js +0 -1
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-BRlNDEqp-a8ab53d87ae363d6a4c8.js +0 -1
- data/tools/tablemanager/RadiogroupWidget-CciTCv1U-8efa48d60d0b5ec07d7c.js +0 -1
- data/tools/tablemanager/SpacerWidget-VVkOCb6N-4f3eea68b518ed5f022f.js +0 -1
- data/tools/tablemanager/SparklineWidget-Dsmn38z_-9041d23b2e4e015d7a75.js +0 -1
- data/tools/tablemanager/TabbookWidget-CXklff-l-360d2c65390c0571d22b.js +0 -1
- data/tools/tablemanager/TableManager-00f177903f37778a5336.js +0 -16
- data/tools/tablemanager/TextboxWidget-CHs2VYIv-2868d4fd63c2561bf97b.js +0 -1
- data/tools/tablemanager/TimeWidget-D0xT1wXR-dfefd33ed56e1d52f59d.js +0 -1
- data/tools/tablemanager/ValueWidget-B1aGUBP7-2b9a2c1b61afe90af221.js +0 -1
- data/tools/tablemanager/ValuelimitsbarWidget-B7KcRjLS-399973d3f9b5b24ed812.js +0 -1
- data/tools/tablemanager/main-90fc5051cec3c87257d6.js +0 -1497
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-46cbce01f21591d8619f.js","vue","./DetailsDialog-DE7lK17G-6fa47cafac9fe6ad4cfa.js","single-spa","./VWidget-5qOYva88-2f272ee8945cdc8de94c.js","vue-router","pinia","vuetify","./LimitsBar-DN1s8-MS-5e84501621bd7341c97e.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-CtYQauzA-384c81334f94e95db951.js"],(function(V,I){"use strict";var y,i,n,o,c,d,u,h,p,f,C,x,w,g,S,v,M,k,D;return{setters:[e=>{y=e.h},e=>{i=e.resolveComponent,n=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,d=e.normalizeClass,u=e.createVNode,h=e.createBlock,p=e.withCtx,f=e.createElementVNode,C=e.toDisplayString,x=e.mergeProps,w=e.createCommentVNode,g=e.Fragment,S=e.renderList,v=e.withModifiers,M=e.createTextVNode},e=>{k=e.Z},null,e=>{D=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:k},mixins:[D],data(){return{astro:!1,radius:15,fullLabelDisplay:!1,displayLabel:!0,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")}}]}},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},ledClass(){let t=`led align-self-center ${this.limitsColor}`;return this._limitsState==="STALE"&&(t+=" stale"),t},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px"}},staleClass(){return this._limitsState==="STALE"?"stale":""},myComputedStyle(){const t={...this.computedStyle};return delete t.flex,t}},created(){this.appliedSettings.forEach(t=>{t[0]==="ASTRO"&&(this.astro=t[1]?.toLowerCase()!=="false")}),this.parameters[4]&&(this.radius=Number.parseInt(this.parameters[4])),this.parameters[5]&&(this.parameters[5].toLowerCase()==="true"?this.fullLabelDisplay=!0:this.parameters[5].toLowerCase()==="nil"?this.displayLabel=!1:this.parameters[5].toLowerCase()==="none"&&(this.displayLabel=!1))},methods:{getType(){let t="CONVERTED";return this.parameters[3]&&(t=this.parameters[3]),t},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}};function N(t,l,R,U,r,s){const L=i("rux-status"),b=i("v-tooltip"),_=i("label-widget"),T=i("v-list-item-title"),E=i("v-list-item"),B=i("v-list"),j=i("v-menu"),z=i("details-dialog");return n(),o("div",{ref:"container",class:"d-flex flex-row",style:c(s.myComputedStyle)},[t.tooltipText?r.astro?(n(),o("div",{key:2,class:d(["astroled align-self-center",s.staleClass]),onContextmenu:l[3]||(l[3]=(...a)=>s.showContextMenu&&s.showContextMenu(...a))},[u(L,{status:t.astroStatus},null,8,["status"])],34)):(n(),o("div",{key:1,class:d(s.ledClass),style:c(s.cssProps),onContextmenu:l[2]||(l[2]=(...a)=>s.showContextMenu&&s.showContextMenu(...a))},null,38)):(n(),h(b,{key:0,"open-delay":600,location:"top"},{activator:p(({props:a})=>[r.astro?(n(),o("div",x({key:1,class:["astroled align-self-center",s.staleClass]},a,{onContextmenu:l[1]||(l[1]=(...m)=>s.showContextMenu&&s.showContextMenu(...m))}),[u(L,{status:t.astroStatus},null,8,["status"])],16)):(n(),o("div",x({key:0,class:s.ledClass,style:s.cssProps},a,{onContextmenu:l[0]||(l[0]=(...m)=>s.showContextMenu&&s.showContextMenu(...m))}),null,16))]),default:p(()=>[f("span",null,C(s.fullName),1)]),_:1})),r.displayLabel?(n(),h(_,{key:3,parameters:s.labelName,settings:t.appliedSettings,style:c(t.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])):w("",!0),u(j,{modelValue:r.contextMenuShown,"onUpdate:modelValue":l[4]||(l[4]=a=>r.contextMenuShown=a),target:[r.x,r.y],style:{"z-index":"3000"}},{default:p(()=>[u(B,null,{default:p(()=>[(n(!0),o(g,null,S(r.contextMenuOptions,(a,m)=>(n(),h(E,{key:m,onClick:v(a.action,["stop"])},{default:p(()=>[u(T,null,{default:p(()=>[M(C(a.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),u(z,{modelValue:r.viewDetails,"onUpdate:modelValue":l[5]||(l[5]=a=>r.viewDetails=a),"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 O=V("default",y(e,[["render",N],["__scopeId","data-v-d4f5103d"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./BarColumn-
|
|
1
|
+
System.register(["./BarColumn-Bb305iCi-8ada82087aaae8ab6135.js","vue","./main-46cbce01f21591d8619f.js","./Widget-CtYQauzA-384c81334f94e95db951.js","vue-router","pinia","single-spa","vuetify"],(function(c,v){"use strict";var s,a,l,d,r,h;return{setters:[i=>{s=i.l},i=>{a=i.openBlock,l=i.createElementBlock,d=i.normalizeStyle,r=i.createStaticVNode},i=>{h=i.h},null,null,null,null,null],execute:(function(){const i={mixins:[s],data(){return{width:22,height:120}},computed:{cssProps:function(){if(!this.screenValues[this.valueId])return{};let e=this.screenValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);if(t)return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"};throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSCOLUMN",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function n(e,t,u,g,w,o){return a(),l("div",{class:"limitsbar",style:d([o.cssProps,e.computedStyle])},[...t[0]||(t[0]=[r('<div class="limitsbar__container" data-v-4c4fd53a><div class="limitsbar__redlow" data-v-4c4fd53a></div><div class="limitsbar__redhigh" data-v-4c4fd53a></div><div class="limitsbar__yellowlow" data-v-4c4fd53a></div><div class="limitsbar__yellowhigh" data-v-4c4fd53a></div><div class="limitsbar__greenlow" data-v-4c4fd53a></div><div class="limitsbar__greenhigh" data-v-4c4fd53a></div><div class="limitsbar__blue" data-v-4c4fd53a></div><div class="limitsbar__line" data-v-4c4fd53a></div><div class="limitsbar__arrow" data-v-4c4fd53a></div></div>',1)])],4)}const m=c("default",h(i,[["render",n],["__scopeId","data-v-4c4fd53a"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./GraphWidget-
|
|
1
|
+
System.register(["./GraphWidget-Cs9mvqUu-ac352c0e984c4684cc3b.js","./main-46cbce01f21591d8619f.js","vue","./Graph-BKw7xw1a-aea32881b90e4121a0e9.js","single-spa","./Widget-CtYQauzA-384c81334f94e95db951.js","vue-router","pinia","vuetify","./OpenC3TimePicker-B8Vu9GBz-4db1d8c7bb11cb408e89.js"],(function(p,c){"use strict";var s,n,a,r,o,l,d;return{setters:[t=>{s=t.M},t=>{n=t.h},t=>{a=t.resolveComponent,r=t.openBlock,o=t.createBlock,l=t.normalizeStyle},t=>{d=t.Y},null,null,null,null,null,null],execute:(function(){const t={components:{Graph:d},mixins:[s]};function h(e,i,g,v,z,f){const u=a("graph");return r(),o(u,{id:e.id,ref:"graph"+e.id,state:e.state,"selected-graph-id":e.id,"start-time":e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:l(e.computedStyle),"time-zone":e.screenTimeZone,"hide-toolbar":"","hide-overview":"",onPause:i[0]||(i[0]=()=>e.state="pause"),onStart:i[1]||(i[1]=()=>e.state="start")},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const m=p("default",n(t,[["render",h]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Layout-
|
|
1
|
+
System.register(["./Layout--_zNJWnw-06b7dc2f5e31f438aa44.js","./main-46cbce01f21591d8619f.js","vue","./Widget-CtYQauzA-384c81334f94e95db951.js","vue-router","pinia","single-spa","vuetify"],(function(w,B){"use strict";var g,y,v,d,r,s,h,l,o,i,c,f,k,p,u;return{setters:[t=>{g=t.r},t=>{y=t.h,v=t.a},t=>{d=t.resolveComponent,r=t.openBlock,s=t.createElementBlock,h=t.normalizeStyle,l=t.Fragment,o=t.renderList,i=t.createBlock,c=t.withCtx,f=t.createElementVNode,k=t.toDisplayString,p=t.resolveDynamicComponent,u=t.mergeProps},null,null,null,null,null],execute:(function(){const t={mixins:[g],computed:{columns(){return Number.parseInt(this.parameters[0])},widgetChunks(){return v.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(m=>{m.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&m.settings.push(["MARGIN",n])})}}};function C(n,m,a,D,E,N){const T=d("v-tooltip");return r(),s("table",{style:h(n.computedStyle),role:"presentation"},[(r(!0),s(l,null,o(N.widgetChunks,(b,z)=>(r(),s("tr",{key:"r"+z},[(r(!0),s(l,null,o(b,(e,x)=>(r(),s("td",{key:"c"+x},[n.getTooltipText(e)?(r(),i(T,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:c(({props:A})=>[(r(),i(p(e.type),u({ref_for:!0},{...n.listeners,...A},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:c(()=>[f("span",null,k(n.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(r(),i(p(e.type),u({key:1,ref_for:!0},n.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]))),128))]))),128))],4)}const S=w("default",y(t,[["render",C]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-46cbce01f21591d8619f.js","vue"],(function(F,M){"use strict";var y,V,l,S,g,N,b,v,o,u,p,T;return{setters:[i=>{y=i.F,V=i.h},i=>{l=i.resolveComponent,S=i.openBlock,g=i.createBlock,N=i.withKeys,b=i.normalizeClass,v=i.normalizeStyle,o=i.withCtx,u=i.createVNode,p=i.createTextVNode,T=i.mergeProps}],execute:(function(){const i=new Map,c=new Map;function I(e,t){if(i.has(e))return Promise.resolve(i.get(e));if(!c.has(e)){const a=new y().get_setting(e).then(s=>{const r=s??t;return i.set(e,r),r}).catch(()=>(i.set(e,t),t)).finally(()=>{c.delete(e)});c.set(e,a)}return c.get(e)}function C(e){return i.has(e)?i.get(e):void 0}const k={inheritAttrs:!1,props:{modelValue:{type:String,default:""},label:{type:String,default:"Time"},rules:{type:Array,default:()=>[]},errorMessages:{type:[String,Array],default:()=>[]},hideDetails:{type:[Boolean,String],default:!1},variant:{type:String,default:"filled"},density:{type:String,default:"default"},style:{type:[String,Object],default:""},textFieldClass:{type:String,default:""},dataTest:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","focus"],data(){return{menu:!1,timeFormat:C("time_format")??null,tempTime:null,inputValue:""}},computed:{computedStyle(){return typeof this.style=="string"?this.style:this.style},computedRules(){return this.rules.map(e=>()=>e(this.modelValue))}},watch:{modelValue:{immediate:!0,handler(e){!this.menu&&this.timeFormat!==null&&(this.inputValue=this.formatForDisplay(e))}},inputValue(e){e===""&&this.modelValue!==""&&this.$emit("update:modelValue","")},menu(e){e&&(this.tempTime=this.normalizeTime(this.modelValue)||"00:00:00")},tempTime(e){this.menu&&e&&(this.inputValue=this.formatForDisplay(e))}},async created(){if(this.timeFormat!==null)return;const e=this.inputValue;this.timeFormat=await I("time_format","ampm"),!this.menu&&this.inputValue===e&&(this.inputValue=this.formatForDisplay(this.modelValue))},methods:{formatForDisplay(e){return e?this.timeFormat==="24hr"?e:this.convertTo12Hour(e):""},handleBlur(){const e=this.parseTimeInput(this.inputValue);e?(this.$emit("update:modelValue",e),this.inputValue=this.formatForDisplay(e)):this.inputValue===""?this.$emit("update:modelValue",""):this.inputValue=this.formatForDisplay(this.modelValue)},parseTimeInput(e){if(!e||e.trim()==="")return"";const t=e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);if(t){const s=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10),n=t[3]?Number.parseInt(t[3],10):0;if(s>=0&&s<=23&&r>=0&&r<=59&&n>=0&&n<=59)return`${s.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}const a=e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*(AM|PM|am|pm)$/i);if(a){let s=Number.parseInt(a[1],10);const r=Number.parseInt(a[2],10),n=a[3]?Number.parseInt(a[3],10):0,d=a[4].toUpperCase();if(s>=1&&s<=12&&r>=0&&r<=59&&n>=0&&n<=59)return d==="AM"?s===12&&(s=0):s!==12&&(s+=12),`${s.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}return null},save(){this.$emit("update:modelValue",this.tempTime),this.inputValue=this.formatForDisplay(this.tempTime),this.menu=!1},cancel(){this.tempTime=this.normalizeTime(this.modelValue)||"00:00:00",this.menu=!1},normalizeTime(e){if(!e)return"";const t=e.split(":");if(t.length<2)return e;const a=Number.parseInt(t[0],10),s=Number.parseInt(t[1],10),r=t.length>2?Number.parseInt(t[2],10):0;return Number.isNaN(a)||Number.isNaN(s)||Number.isNaN(r)?"":`${a.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`},convertTo12Hour(e){if(!e)return"";const t=e.split(":");if(t.length<2)return e;let a=Number.parseInt(t[0],10);const s=Number.parseInt(t[1],10),r=t.length>2?Number.parseInt(t[2],10):0;if(Number.isNaN(a)||Number.isNaN(s)||Number.isNaN(r))return e;const n=a>=12?"PM":"AM";a=a%12,a=a||12;const d=a.toString().padStart(2,"0"),h=s.toString().padStart(2,"0"),f=r.toString().padStart(2,"0");return`${d}:${h}:${f} ${n}`}}};function w(e,t,a,s,r,n){const d=l("v-icon"),h=l("v-time-picker"),f=l("v-spacer"),$=l("v-btn"),_=l("v-card-actions"),x=l("v-card"),B=l("v-menu"),D=l("v-text-field");return S(),g(D,{modelValue:r.inputValue,"onUpdate:modelValue":t[2]||(t[2]=m=>r.inputValue=m),label:a.label,rules:n.computedRules,"error-messages":a.errorMessages,"hide-details":a.hideDetails,variant:a.variant,density:a.density,style:v(n.computedStyle),class:b(a.textFieldClass),disabled:a.disabled,"data-test":a.dataTest,onBlur:n.handleBlur,onFocus:t[3]||(t[3]=m=>e.$emit("focus",m)),onKeydown:N(n.handleBlur,["enter"])},{"prepend-inner":o(()=>[u(B,{modelValue:r.menu,"onUpdate:modelValue":t[1]||(t[1]=m=>r.menu=m),"close-on-content-click":!1,transition:"scale-transition",offset:"16"},{activator:o(({props:m})=>[u(d,T(m,{class:"cursor-pointer"}),{default:o(()=>[...t[4]||(t[4]=[p(" mdi-clock-outline ",-1)])]),_:1},16)]),default:o(()=>[u(x,{class:"time-picker-card"},{default:o(()=>[u(h,{modelValue:r.tempTime,"onUpdate:modelValue":t[0]||(t[0]=m=>r.tempTime=m),format:r.timeFormat,scrollable:"","use-seconds":"","hide-header":""},null,8,["modelValue","format"]),u(_,null,{default:o(()=>[u(f),u($,{variant:"text",onClick:n.cancel},{default:o(()=>[...t[5]||(t[5]=[p("Cancel",-1)])]),_:1},8,["onClick"]),u($,{color:"primary",variant:"text",onClick:n.save},{default:o(()=>[...t[6]||(t[6]=[p("OK",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue","label","rules","error-messages","hide-details","variant","density","style","class","disabled","data-test","onBlur","onKeydown"])}const z=F("w",V(k,[["render",w],["__scopeId","data-v-3a6a70ee"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CtYQauzA-384c81334f94e95db951.js","vue","./main-46cbce01f21591d8619f.js","vue-router","pinia","single-spa","vuetify"],(function(n,d){"use strict";var s,a,r,l,i,u;return{setters:[e=>{s=e.h},e=>{a=e.resolveComponent,r=e.openBlock,l=e.createBlock,i=e.normalizeStyle},e=>{u=e.h},null,null,null,null],execute:(function(){const e={mixins:[s],props:{value:{type:[Number,String],default:null}},emits:["addItem","deleteItem"],data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;if(t===null){if(!this.screenValues[this.valueId])return 0;t=this.screenValues[this.valueId][0]}return Number.parseInt(Number.parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=Number.parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,p,v,f,I,c){const h=a("rux-progress");return r(),l(h,{value:c._value,class:"progress",style:i(t.computedStyle)},null,8,["value","style"])}const m=n("default",u(e,[["render",o],["__scopeId","data-v-af1daff2"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CtYQauzA-384c81334f94e95db951.js","vue","./main-46cbce01f21591d8619f.js","vue-router","pinia","single-spa","vuetify"],(function(s,v){"use strict";var l,t,n,a,r,u;return{setters:[e=>{l=e.h},e=>{t=e.resolveComponent,n=e.openBlock,a=e.createBlock,r=e.normalizeStyle},e=>{u=e.h},null,null,null,null],execute:(function(){const e={mixins:[l],props:{value:{type:Number,default:null}},data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function o(i,y,c,b,p,f){const d=t("v-radio");return n(),a(d,{"hide-details":"",dense:"",label:p.label,style:r(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=s("default",u(e,[["render",o]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout--_zNJWnw-06b7dc2f5e31f438aa44.js","vue","./main-46cbce01f21591d8619f.js","./Widget-CtYQauzA-384c81334f94e95db951.js","vue-router","pinia","single-spa","vuetify"],(function(x,C){"use strict";var a,l,r,s,i,c,o,u,m,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,r=e.openBlock,s=e.createBlock,i=e.normalizeStyle,c=e.withCtx,o=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.h},null,null,null,null,null],execute:(function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=Number.parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function f(n,v,z,B,y,w){const k=l("v-radio-group");return r(),s(k,{modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),"hide-details":"",density:"compact",style:i(n.computedStyle)},{default:c(()=>[(r(!0),o(u,null,m(n.widgets,(t,h)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{key:h,value:h,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const I=x("default",g(e,[["render",f]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CtYQauzA-384c81334f94e95db951.js","vue","./main-46cbce01f21591d8619f.js","vue-router","pinia","single-spa","vuetify"],(function(u,m){"use strict";var r,a,n,h,s,l;return{setters:[e=>{r=e.h},e=>{a=e.openBlock,n=e.createElementBlock,h=e.normalizeStyle,s=e.createElementVNode},e=>{l=e.h},null,null,null,null],execute:(function(){const e={mixins:[r],emits:["addItem","deleteItem"],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return Number.parseInt(this.parameters[3])},max(){return Number.parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const t=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){if(!this.screenValues[this.valueId])return 0;let t=this.screenValues[this.valueId][0];if(t==null)return 0;if(t.raw)return t.raw==="-Infinity"?0:100;const i=(t-this.min)/this.range*100;return i>100?100:i<0?0:i}}};function c(t,i,p,g,v,d){return a(),n("div",{class:"rangebar",style:h([d.cssProps,t.computedStyle])},[...i[0]||(i[0]=[s("div",{class:"rangebar__container"},[s("div",{class:"rangebar__line"}),s("div",{class:"rangebar__arrow"})],-1)])],4)}const o=u("default",l(e,[["render",c],["__scopeId","data-v-276a618a"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CtYQauzA-384c81334f94e95db951.js","vue","./main-46cbce01f21591d8619f.js","vue-router","pinia","single-spa","vuetify"],(function(m,p){"use strict";var l,r,a,c,u,o;return{setters:[t=>{l=t.h},t=>{r=t.resolveComponent,a=t.openBlock,c=t.createBlock,u=t.normalizeStyle},t=>{o=t.h},null,null,null,null],execute:(function(){const t={mixins:[l],props:{value:{type:[Number,String],default:null}},emits:["addItem","deleteItem","open"],data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,f,E,i){const d=r("rux-monitoring-icon");return a(),c(d,{class:"rux-icon",style:u([i.pointerStyle,e.computedStyle]),icon:e.icon,status:i.status,label:e.label,sublabel:e.subLabel,onClick:i.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const b=m("default",o(t,[["render",h]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Layout-
|
|
1
|
+
System.register(["./Layout--_zNJWnw-06b7dc2f5e31f438aa44.js","vue","./main-46cbce01f21591d8619f.js","./Widget-CtYQauzA-384c81334f94e95db951.js","vue-router","pinia","single-spa","vuetify"],(function(w,T){"use strict";var g,u,r,s,v,l,y,i,o,f,d,c,p,h;return{setters:[t=>{g=t.r},t=>{u=t.resolveComponent,r=t.openBlock,s=t.createElementBlock,v=t.normalizeStyle,l=t.Fragment,y=t.renderList,i=t.createBlock,o=t.withCtx,f=t.createElementVNode,d=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{h=t.h},null,null,null,null,null],execute:(function(){const t={mixins:[g],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(m=>{m.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&m.settings.push(["MARGIN",n])})}}};function k(n,m,a,A,B,b){const z=u("v-tooltip");return r(),s("div",{ref:"container",style:v(n.computedStyle),class:"overflow-y-auto"},[(r(!0),s(l,null,y(n.widgets,(e,C)=>(r(),s(l,{key:C},[n.getTooltipText(e)?(r(),i(z,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:o(({props:N})=>[(r(),i(c(e.type),p({ref_for:!0},{...n.listeners,...N},{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:o(()=>[f("span",null,d(n.getTooltipText(e)),1)]),_:2},1032,["open-delay","activator-props"])):(r(),i(c(e.type),p({key:1,ref_for:!0},n.listeners,{target:e.target,parameters:e.parameters,settings:e.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:e.widgets,name:e.name,line:e.line,"line-number":e.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))],4)}const x=w("default",h(t,[["render",k]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./VWidget-
|
|
1
|
+
System.register(["./VWidget-5qOYva88-2f272ee8945cdc8de94c.js","vue","./main-46cbce01f21591d8619f.js","./Widget-CtYQauzA-384c81334f94e95db951.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","vue-router","pinia","single-spa","vuetify"],(function(c,p){"use strict";var r,l,n,a,i,s;return{setters:[t=>{r=t.T},t=>{l=t.resolveComponent,n=t.openBlock,a=t.createBlock,i=t.normalizeStyle},t=>{s=t.h},null,null,null,null,null,null],execute:(function(){const t={mixins:[r],props:{value:{type:[Number,String],default:null}},emits:["open"],data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=Number.parseFloat(e[1]),this.twoBar=Number.parseFloat(e[2]),this.threeBar=Number.parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function u(e,d,g,B,v,o){const h=l("v-btn");return n(),a(h,{icon:o.displayedIcon,variant:"text",style:i(e.computedStyle),"aria-label":"Signal Strength",onClick:o.clickHandler},null,8,["icon","style","onClick"])}const m=c("default",s(t,[["render",u]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-CtYQauzA-384c81334f94e95db951.js","vue","./main-46cbce01f21591d8619f.js","vue-router","pinia","single-spa","vuetify"],(function(l,o){"use strict";var t,n,i,s,r;return{setters:[e=>{t=e.h},e=>{n=e.openBlock,i=e.createElementBlock,s=e.normalizeStyle},e=>{r=e.h},null,null,null,null],execute:(function(){const e={mixins:[t],created(){this.parameters[0]!==void 0&&this.appliedSettings.push(["WIDTH",this.parameters[0]]),this.parameters[1]!==void 0&&this.appliedSettings.push(["HEIGHT",this.parameters[1]])}};function a(u,p,m,d,h,v){return n(),i("div",{style:s(u.computedStyle)},null,4)}const c=l("default",r(e,[["render",a]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./GraphWidget-Cs9mvqUu-ac352c0e984c4684cc3b.js","./main-46cbce01f21591d8619f.js","vue","./Graph-BKw7xw1a-aea32881b90e4121a0e9.js","single-spa","./Widget-CtYQauzA-384c81334f94e95db951.js","vue-router","pinia","vuetify","./OpenC3TimePicker-B8Vu9GBz-4db1d8c7bb11cb408e89.js"],(function(l,c){"use strict";var i,s,n,r,a,d,o;return{setters:[e=>{i=e.M},e=>{s=e.h},e=>{n=e.resolveComponent,r=e.openBlock,a=e.createBlock,d=e.normalizeStyle},e=>{o=e.Y},null,null,null,null,null,null],execute:(function(){const e={components:{Graph:o},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,f,z){const h=n("graph");return r(),a(h,{id:t.id,ref:"graph"+t.id,state:t.state,"selected-graph-id":t.id,"start-time":t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:d(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",s(e,[["render",p]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout--_zNJWnw-06b7dc2f5e31f438aa44.js","vue","./main-46cbce01f21591d8619f.js","./Widget-CtYQauzA-384c81334f94e95db951.js","vue-router","pinia","single-spa","vuetify"],(function(k,h){"use strict";var w,l,n,i,g,T,a,c,u,o,f,d,b,y,v,V;return{setters:[e=>{w=e.r},e=>{l=e.resolveComponent,n=e.openBlock,i=e.createElementBlock,g=e.createVNode,T=e.normalizeStyle,a=e.withCtx,c=e.Fragment,u=e.renderList,o=e.createBlock,f=e.createTextVNode,d=e.toDisplayString,b=e.createElementVNode,y=e.resolveDynamicComponent,v=e.mergeProps},e=>{V=e.h},null,null,null,null,null],execute:(function(){const e={mixins:[w],emits:["min-max-screen"],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(r,m,L,P,$,j){const N=l("v-tab"),_=l("v-tabs"),z=l("v-tooltip"),C=l("v-window-item"),S=l("v-window");return n(),i("div",null,[g(_,{modelValue:r.curTab,"onUpdate:modelValue":m[0]||(m[0]=s=>r.curTab=s),style:T(r.computedStyle)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(N,{key:p},{default:a(()=>[f(d(s.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:r.curTab,"onUpdate:modelValue":m[1]||(m[1]=s=>r.curTab=s)},{default:a(()=>[(n(!0),i(c,null,u(r.widgets,(s,p)=>(n(),o(C,{key:p},{default:a(()=>[(n(!0),i(c,null,u(s.widgets,(t,B)=>(n(),i(c,{key:`${p}-${B}`},[r.getTooltipText(t)?(n(),o(z,{key:0,"open-delay":r.getTooltipDelay(t),location:"top","activator-props":r.getTooltipActivatorProps(t)},{activator:a(({props:D})=>[(n(),o(y(t.type),v({ref_for:!0},{...r.listeners,...D},{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]),default:a(()=>[b("span",null,d(r.getTooltipText(t)),1)]),_:2},1032,["open-delay","activator-props"])):(n(),o(y(t.type),v({key:1,ref_for:!0},r.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))],64))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const E=k("default",V(e,[["render",x]]))})}}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
System.register(["./main-46cbce01f21591d8619f.js","vue","single-spa","./VWidget-5qOYva88-2f272ee8945cdc8de94c.js","./IframeWidget-B143k4lo-7f48900a4edf744a73f0.js","vue-router","pinia","vuetify","./Widget-CtYQauzA-384c81334f94e95db951.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(In,es){"use strict";var Oe,Se,Ie,E,O,k,At,b,m,I,U,V,G,oe,Ve,T,rt,Le,$e,ie,Me,Re,kt,Tt,Nt,ot,Ft,Pt,Dt;return{setters:[N=>{Oe=N.h,Se=N.D,Ie=N._},N=>{E=N.resolveComponent,O=N.openBlock,k=N.createBlock,At=N.Teleport,b=N.createVNode,m=N.withCtx,I=N.createElementVNode,U=N.toDisplayString,V=N.createElementBlock,G=N.Fragment,oe=N.renderList,Ve=N.ref,T=N.createTextVNode,rt=N.mergeProps,Le=N.createSlots,$e=N.normalizeStyle,ie=N.createCommentVNode,Me=N.withKeys,Re=N.withModifiers,kt=N.withDirectives,Tt=N.vShow,Nt=N.computed,ot=N.watch,Ft=N.normalizeProps,Pt=N.guardReactiveProps},null,N=>{Dt=N.g},null,null,null,null,null,null],execute:(function(){var N=document.createElement("style");N.textContent=`.filename[data-v-1da113a2]{background-color:var(--color-background-base-default)}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(N);const Vn={__name:"TopBarMenu",props:{menu:{type:Object,required:!0},title:{type:String,required:!0}},emits:["submenu-click"],setup(e,{emit:t}){const n=t,r=Ve(!1);function o(){r.value=!1}function i(s){return s.replaceAll(" ","-").toLowerCase()}return(s,a)=>{const c=E("v-icon"),d=E("v-btn"),u=E("v-divider"),p=E("v-list-item-title"),g=E("v-list-item"),_=E("v-list"),v=E("v-menu"),x=E("v-radio"),D=E("v-list-item-action"),f=E("v-radio-group"),w=E("v-checkbox");return O(),k(v,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=h=>r.value=h),"close-on-content-click":!1},{activator:m(({props:h})=>[b(d,rt(h,{variant:"outlined",class:"mx-1 menu-button",text:e.menu.label,"data-test":i(`${e.title} ${e.menu.label}`)}),{append:m(()=>[b(c,{class:"menu-button-icon"},{default:m(()=>[...a[1]||(a[1]=[T(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:m(()=>[b(_,null,{default:m(()=>[(O(!0),V(G,null,oe(e.menu.items,(h,C)=>(O(),V(G,null,[h.divider?(O(),k(u,{key:C+"-divider"})):h.subMenu&&h.subMenu.length>0?(O(),V("div",{key:C+"-submenu"},[(O(),k(v,{key:C,"open-on-hover":"",location:"right"},{activator:m(({props:F})=>[(O(),k(g,rt({ref_for:!0},F,{key:C,disabled:h.disabled}),Le({append:m(()=>[b(c,null,{default:m(()=>[...a[2]||(a[2]=[T(" mdi-chevron-right ",-1)])]),_:1})]),default:m(()=>[!h.radio&&!h.checkbox?(O(),k(p,{key:0,style:$e("cursor: pointer;"+(h.disabled?"opacity: 0.2":""))},{default:m(()=>[T(U(h.label),1)]),_:2},1032,["style"])):ie("",!0)]),_:2},[h.icon?{name:"prepend",fn:m(()=>[b(c,{disabled:h.disabled},{default:m(()=>[T(U(h.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:m(()=>[b(_,null,{default:m(()=>[(O(!0),V(G,null,oe(h.subMenu,(F,Q)=>(O(),k(g,{key:Q,"prepend-icon":F.icon,onClick:xe=>n("submenu-click",F)},{default:m(()=>[b(p,null,{default:m(()=>[T(U(F.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):h.radioGroup?(O(),k(f,{key:C+"-radio-group",class:"ma-0 pa-0",density:"compact","hide-details":"","model-value":h.value,"onUpdate:modelValue":h.command},{default:m(()=>[(O(!0),V(G,null,oe(h.choices,(F,Q)=>(O(),k(g,{key:Q+"-choice"},{default:m(()=>[b(D,{class:"list-action"},{default:m(()=>[b(x,{color:"secondary",label:F.label,value:F.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(O(),k(g,{key:C+"-list",disabled:h.disabled,"data-test":i(`${e.title} ${e.menu.label} ${h.label}`),onClick:()=>{h.command(h),h.checkbox||o()}},Le({default:m(()=>[h.checkbox?(O(),k(D,{key:0,class:"list-action"},{default:m(()=>[b(w,{modelValue:h.checked,"onUpdate:modelValue":F=>h.checked=F,label:h.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ie("",!0),!h.radio&&!h.checkbox?(O(),k(p,{key:1,style:$e("cursor: pointer;"+(h.disabled?"opacity: 0.2":""))},{default:m(()=>[T(U(h.label),1)]),_:2},1032,["style"])):ie("",!0)]),_:2},[h.icon?{name:"prepend",fn:m(()=>[b(c,{icon:h.icon,disabled:h.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["disabled","data-test","onClick"]))],64))),256))]),_:1})]),_:1},8,["modelValue"])}}},Ln={components:{TopBarMenu:Vn},props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},mounted(){document.title=this.title},methods:{subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}}},$n={class:"app-title mr-2"};function Mn(e,t,n,r,o,i){const s=E("v-col"),a=E("v-row"),c=E("TopBarMenu");return O(),k(At,{to:"#openc3-menu"},[b(a,{"no-gutters":""},{default:m(()=>[b(s,{"align-self":"end"},{default:m(()=>[I("span",$n,U(n.title),1)]),_:1})]),_:1}),b(a,{dense:"",class:"flex-nowrap"},{default:m(()=>[(O(!0),V(G,null,oe(n.menus,(d,u)=>(O(),k(c,{key:u+"-top-menu",ref_for:!0,ref:"topmenu",menu:d,title:n.title,onSubmenuClick:i.subMenuClick},null,8,["menu","title","onSubmenuClick"]))),128))]),_:1})])}const qn=Oe(Ln,[["render",Mn],["__scopeId","data-v-f4fb184e"]]),zn=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"},Hn={class:"tree-node"},Jn={class:"content-wrapper"},Wn=["tabindex"],Kn={key:1},Xn={key:2,class:"children"},Gn={__name:"TreeNode",props:{node:{type:Object,required:!0},search:{type:String,default:""},type:{type:String,default:"open"}},emits:["nodeToggled","request","delete"],setup(e,{emit:t}){const n=e,r=Ve(n.node.isOpen||!1),o=Nt(()=>{const _=v=>!n.search||v.path.toLowerCase().includes(n.search.toLowerCase())?!0:!!v.children?.some(_);return _(n.node)});ot(()=>n.node.isOpen,_=>{r.value=_}),ot(()=>n.search,_=>{_?n.node.isOpen||u():n.node.isOpen&&u()});const i=t,s=Ve({show:!1,text:"",x:0,y:0}),a=(_,v)=>{if(!v||v.length<=50)return;const x=_.target.getBoundingClientRect(),D=x.left,f=x.top;s.value.text=v,s.value.x=D,s.value.y=f-40,s.value.show=!0},c=()=>{s.value.show=!1},d=_=>{_.children?(u(),n.type==="save"&&i("request",_)):i("request",_)},u=()=>{n.node.children&&(r.value=!r.value,n.node.isOpen=r.value,i("nodeToggled",n.node.id,r.value))},p=(_,v)=>{i("nodeToggled",_,v)},g=_=>{i("request",_)};return(_,v)=>{const x=E("v-tooltip"),D=E("v-icon"),f=E("v-btn"),w=E("tree-node",!0);return O(),V(G,null,[b(x,{modelValue:s.value.show,"onUpdate:modelValue":v[0]||(v[0]=h=>s.value.show=h),text:s.value.text,location:"top",style:$e(`position: fixed; left: ${s.value.x}px; top: ${s.value.y}px; pointer-events: none;`)},null,8,["modelValue","text","style"]),I("div",Hn,[o.value?(O(),V("div",{key:0,class:"node-content",onClick:v[4]||(v[4]=h=>d(e.node))},[I("div",Jn,[e.node.children?(O(),k(D,{key:0,class:"toggle-icon",style:{"padding-right":"10px"}},{default:m(()=>[T(U(e.node.isOpen||e.search?"mdi-menu-down":"mdi-menu-right"),1)]),_:1})):ie("",!0),e.node.children?(O(),k(D,{key:1,size:"small",style:{"padding-right":"10px"}},{default:m(()=>[...v[5]||(v[5]=[T(U("mdi-folder"),-1)])]),_:1})):e.node.title.includes(".rb")?(O(),k(D,{key:2,size:"small",style:{"padding-right":"10px"}},{default:m(()=>[...v[6]||(v[6]=[T(U("mdi-language-ruby"),-1)])]),_:1})):e.node.title.includes(".py")?(O(),k(D,{key:3,size:"small",style:{"padding-right":"10px"}},{default:m(()=>[...v[7]||(v[7]=[T(U("mdi-language-python"),-1)])]),_:1})):(O(),k(D,{key:4,size:"small",style:{"padding-right":"10px"}},{default:m(()=>[...v[8]||(v[8]=[T(U("mdi-file-document"),-1)])]),_:1})),I("span",{class:"text-h6",tabindex:e.node.children?-1:0,onKeyup:v[1]||(v[1]=Me(h=>d(e.node),["enter"])),onMouseenter:v[2]||(v[2]=h=>a(h,e.node.title)),onMouseleave:c},U(e.node.title),41,Wn),e.node.title==="__TEMP__"?(O(),k(f,{key:5,icon:"mdi-delete",variant:"text",style:{"margin-left":"auto"},"aria-label":"Delete",onClick:v[3]||(v[3]=h=>i("delete"))})):ie("",!0)])])):(O(),V("div",Kn)),e.node.children&&(e.node.isOpen||e.search)?(O(),V("div",Xn,[(O(!0),V(G,null,oe(e.node.children,h=>(O(),k(w,{key:h.id,node:h,search:e.search,type:e.type,onNodeToggled:p,onRequest:g},null,8,["node","search","type"]))),128))])):ie("",!0)])],64)}}},Qn=Oe(Gn,[["__scopeId","data-v-83f7a088"]]),Yn={components:{TreeNode:Qn},props:{type:{type:String,required:!0,validator:function(e){return["open","save"].indexOf(e)!==-1}},apiUrl:{type:String,default:null},requireTargetParentDir:Boolean,inputFilename:{type:String,default:null},modelValue:Boolean,customHelpText:{type:String,default:null}},emits:["update:modelValue","error","clear-temp","file","filename"],data(){return{tree:[],items:[],search:null,selectedFile:null,disableButtons:!0,targets:[],targetsRetrieved:[]}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},title:function(){return this.type==="open"?"File Open":"File Save As..."},submit:function(){return this.type==="open"?"OPEN":"SAVE"},helpText:function(){return this.customHelpText?this.customHelpText:this.type==="open"?"Click on folders to open them and then click a file to select it before clicking Open. Use the search box to filter the results. You can also Tab to the files and Enter to select.":"Click on the folder to save into. Then complete the filename path with the desired name. Use the search box to filter the results."},error:function(){if(this.selectedFile===""||this.selectedFile===null)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let e=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(e+="be in a target directory and "),e+=`only contain alphanumeric characters (including !-_.*) and a valid extension.
|
|
3
|
+
|
|
4
|
+
For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,e}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const e="0-9a-zA-Z";let t=`[${`${e}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${e}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},created(){Se.get("/openc3-api/targets").then(e=>{this.targets=e.data,this.targets.push("__TEMP__");const t=this.targets.map(n=>(this.items.push({id:n,disabled:!0,title:n,children:[],path:n}),this.loadFiles(n)));Promise.all(t).then(()=>{this.disableButtons=!1})})},methods:{calcIcon:function(e){return zn(e)},loadFiles:function(e){return Se.get(this.apiUrl,{params:{target:e}}).then(t=>{if(t.data.length===0){this.items=this.items.filter(r=>r.id!==e);return}for(let r of t.data.sort())this.filepath=r,this.insertFile(this.items,2,r);this.inputFilename&&(this.selectedFile=this.inputFilename);const n=this.items.findIndex(r=>r.id===e);n!==-1&&(this.items[n].disabled=!1)}).catch(t=>{this.$emit("error",`Failed to connect to OpenC3. ${t}`)})},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(e){e.length===0?this.selectedFile=null:(this.selectedFile=this.findItem(this.items,e.id),setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100))},findItem:function(e,t){for(let n of e){if(n.id===t)return n.path;if(n.children){const r=this.findItem(n.children,t);if(r)return r}}return null},exists:function(e,t){let n=!1;for(let r of e){if(r.path===t||r.path.length>1&&r.path[r.path.length-1]==="*"&&r.path.slice(0,r.path.length-1)===t)return!0;r.children&&(n=n||this.exists(r.children,t))}return n},success:function(){this.selectedFile!==null&&this.error===null&&!this.disableButtons&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(e=>Se.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,Se.get(`${this.apiUrl}/${this.selectedFile}`).then(e=>{const t={name:this.selectedFile,contents:e.data.contents};e.data.suites&&(t.suites=JSON.parse(e.data.suites)),e.data.error&&(t.error=e.data.error),e.data.success&&(t.success=e.data.success);const n=e.data.locked,r=e.data.breakpoints;this.$emit("file",{file:t,locked:n,breakpoints:r}),this.clear()}).catch(e=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${e}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(e=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(e=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,t,n){let r=n.split("/");if(r.length===1){e.push({id:this.filepath,title:r[0],file:"ruby",path:this.filepath});return}const o=e.findIndex(i=>i.title===r[0]);o===-1?(e.push({id:this.filepath.split("/").slice(0,t-1).join("/"),title:r[0],children:[],path:this.filepath.split("/").slice(0,t-1).join("/")}),this.insertFile(e[e.length-1].children,t+1,r.slice(1).join("/"))):this.insertFile(e[o].children,t+1,r.slice(1).join("/"))}}},Zn={class:"pa-3"},er={class:"overflow-y-auto tree-container"};function tr(e,t,n,r,o,i){const s=E("v-spacer"),a=E("v-progress-linear"),c=E("v-toolbar"),d=E("v-row"),u=E("v-text-field"),p=E("tree-node"),g=E("v-card-text"),_=E("v-btn"),v=E("v-card-actions"),x=E("v-card"),D=E("v-dialog");return O(),k(D,{modelValue:i.show,"onUpdate:modelValue":t[4]||(t[4]=f=>i.show=f),persistent:"",width:"800",onKeydown:[t[5]||(t[5]=Me(f=>o.disableButtons?null:i.success(),["enter"])),t[6]||(t[6]=Me(f=>o.disableButtons?null:i.show=!1,["esc"]))]},{default:m(()=>[b(x,{class:"file-open-save-card d-flex flex-column"},{default:m(()=>[I("form",{class:"d-flex flex-column",onSubmit:t[3]||(t[3]=Re((...f)=>i.success&&i.success(...f),["prevent"]))},[b(c,{height:"24"},{default:m(()=>[b(s),I("span",null,U(i.title),1),b(s),b(a,{active:o.disableButtons,indeterminate:"",location:"bottom",absolute:""},null,8,["active"])]),_:1}),b(g,{class:"overflow-y-auto"},{default:m(()=>[I("div",Zn,[b(d,null,{default:m(()=>[T(U(i.helpText),1)]),_:1}),b(d,{dense:"",class:"mt-5"},{default:m(()=>[b(u,{modelValue:o.search,"onUpdate:modelValue":t[0]||(t[0]=f=>o.search=f),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),I("div",er,[(O(!0),V(G,null,oe(o.items,f=>(O(),k(p,{key:`${f.id}`,node:f,search:o.search,type:n.type,onRequest:i.activeFile,onDelete:i.deleteTemp},null,8,["node","search","type","onRequest","onDelete"]))),128))]),b(d,{class:"my-2"},{default:m(()=>[b(u,{modelValue:o.selectedFile,"onUpdate:modelValue":t[1]||(t[1]=f=>o.selectedFile=f),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:o.disableButtons||n.type==="open"},null,8,["modelValue","disabled"])]),_:1}),b(d,{dense:""},{default:m(()=>[kt(I("div",{class:"my-2 text-red overflow-y-auto error-container",style:{"white-space":"pre-line"}},U(i.error),513),[[Tt,i.error]])]),_:1})])]),_:1}),b(v,null,{default:m(()=>[b(s),b(_,{variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:o.disableButtons,onClick:t[2]||(t[2]=f=>i.show=!1)},{default:m(()=>[...t[7]||(t[7]=[T(" Cancel ",-1)])]),_:1},8,["disabled"]),b(_,{ref:"submitBtn",type:"submit",color:"primary",variant:"elevated",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:o.disableButtons||!!i.error,onClick:Re(i.success,["prevent"])},{default:m(()=>[T(U(i.submit),1)]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const nr=Oe(Yn,[["render",tr]]),rr={props:{modelValue:Boolean,text:{type:String,default:null},title:{type:String,default:null},width:{type:Number,default:800}},emits:["update:modelValue"],computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{download:function(){const e=new Blob([this.text],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.title}.txt`),t.click()}}},or={class:"mx-2"},ir={class:"pa-3"},sr={class:"text"};function ar(e,t,n,r,o,i){const s=E("v-spacer"),a=E("v-btn"),c=E("v-toolbar"),d=E("v-card-text"),u=E("v-card-actions"),p=E("v-card"),g=E("v-dialog");return O(),k(g,{modelValue:i.show,"onUpdate:modelValue":t[1]||(t[1]=_=>i.show=_),width:n.width,scrollable:""},{default:m(()=>[b(p,null,{default:m(()=>[b(c,{height:"24"},{default:m(()=>[b(s),I("span",null,U(n.title),1),b(s),I("div",or,[b(a,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:i.download},null,8,["onClick"])])]),_:1}),b(d,{style:{"max-height":"80vh"}},{default:m(()=>[I("div",ir,[I("span",sr,U(n.text),1)])]),_:1}),b(u,{class:"px-2"},{default:m(()=>[b(s),b(a,{variant:"flat",onClick:t[0]||(t[0]=_=>i.show=!i.show)},{default:m(()=>[...t[2]||(t[2]=[T(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const lr=Oe(rr,[["render",ar],["__scopeId","data-v-1a0bca65"]]);function jt(e,t){return function(){return e.apply(t,arguments)}}const{toString:cr}=Object.prototype,{getPrototypeOf:_e}=Object,{iterator:Ce,toStringTag:Ut}=Symbol,qe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ae=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),qe(n,t))return!0;n=_e(n)}return!1},ur=(e,t)=>e!=null&&Ae(e,t)?e[t]:void 0,it=(e=>t=>{const n=cr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ne=e=>(e=e.toLowerCase(),t=>it(t)===e),ze=e=>t=>typeof t===e,{isArray:de}=Array,be=ze("undefined");function ye(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bt=ne("ArrayBuffer");function dr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bt(e.buffer),t}const fr=ze("string"),K=ze("function"),It=ze("number"),we=e=>e!==null&&typeof e=="object",pr=e=>e===!0||e===!1,He=e=>{if(!we(e))return!1;const t=_e(e);return(t===null||t===Object.prototype||_e(t)===null)&&!Ae(e,Ut)&&!Ae(e,Ce)},hr=e=>{if(!we(e)||ye(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},mr=ne("Date"),gr=ne("File"),_r=e=>!!(e&&typeof e.uri<"u"),br=e=>e&&typeof e.getParts<"u",yr=ne("Blob"),wr=ne("FileList"),vr=e=>we(e)&&K(e.pipe);function xr(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Vt=xr(),Lt=typeof Vt.FormData<"u"?Vt.FormData:void 0,Er=e=>{if(!e)return!1;if(Lt&&e instanceof Lt)return!0;const t=_e(e);if(!t||t===Object.prototype||!K(e.append))return!1;const n=it(e);return n==="formdata"||n==="object"&&K(e.toString)&&e.toString()==="[object FormData]"},Or=ne("URLSearchParams"),[Sr,Rr,Cr,Ar]=["ReadableStream","Request","Response","Headers"].map(ne),kr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ke(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),de(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ye(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function $t(e,t){if(ye(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mt=e=>!be(e)&&e!==fe;function st(...e){const{caseless:t,skipUndefined:n}=Mt(this)&&this||{},r={},o=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=t&&typeof s=="string"&&$t(r,s)||s,c=qe(r,a)?r[a]:void 0;He(c)&&He(i)?r[a]=st(c,i):He(i)?r[a]=st({},i):de(i)?r[a]=i.slice():(!n||!be(i))&&(r[a]=i)};for(let i=0,s=e.length;i<s;i++){const a=e[i];if(!a||ye(a)||(ke(a,o),typeof a!="object"||de(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let d=0;d<c.length;d++){const u=c[d];$r.call(a,u)&&o(a[u],u)}}return r}const Tr=(e,t,n,{allOwnKeys:r}={})=>(ke(t,(o,i)=>{n&&K(o)?Object.defineProperty(e,i,{__proto__:null,value:jt(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Nr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Fr=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Pr=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&_e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Dr=(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},jr=e=>{if(!e)return null;if(de(e))return e;let t=e.length;if(!It(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ur=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_e(Uint8Array)),Br=(e,t)=>{const n=(e&&e[Ce]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Ir=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vr=ne("HTMLFormElement"),Lr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),{propertyIsEnumerable:$r}=Object.prototype,Mr=ne("RegExp"),qt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ke(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},qr=e=>{qt(e,(t,n)=>{if(K(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(K(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+"'")})}})},zr=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return de(e)?r(e):r(String(e).split(t)),n},Hr=()=>{},Jr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Wr(e){return!!(e&&K(e.append)&&e[Ut]==="FormData"&&e[Ce])}const Kr=e=>{const t=new WeakSet,n=r=>{if(we(r)){if(t.has(r))return;if(ye(r))return r;if(!("toJSON"in r)){t.add(r);const o=de(r)?[]:{};return ke(r,(i,s)=>{const a=n(i);!be(a)&&(o[s]=a)}),t.delete(r),o}}return r};return n(e)},Xr=ne("AsyncFunction"),Gr=e=>e&&(we(e)||K(e))&&K(e.then)&&K(e.catch),zt=((e,t)=>e?setImmediate:t?((n,r)=>(fe.addEventListener("message",({source:o,data:i})=>{o===fe&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),fe.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",K(fe.postMessage)),Qr=typeof queueMicrotask<"u"?queueMicrotask.bind(fe):typeof process<"u"&&process.nextTick||zt,Ht=e=>e!=null&&K(e[Ce]),Yr=e=>e!=null&&Ae(e,Ce)&&Ht(e),l={isArray:de,isArrayBuffer:Bt,isBuffer:ye,isFormData:Er,isArrayBufferView:dr,isString:fr,isNumber:It,isBoolean:pr,isObject:we,isPlainObject:He,isEmptyObject:hr,isReadableStream:Sr,isRequest:Rr,isResponse:Cr,isHeaders:Ar,isUndefined:be,isDate:mr,isFile:gr,isReactNativeBlob:_r,isReactNative:br,isBlob:yr,isRegExp:Mr,isFunction:K,isStream:vr,isURLSearchParams:Or,isTypedArray:Ur,isFileList:wr,forEach:ke,merge:st,extend:Tr,trim:kr,stripBOM:Nr,inherits:Fr,toFlatObject:Pr,kindOf:it,kindOfTest:ne,endsWith:Dr,toArray:jr,forEachEntry:Br,matchAll:Ir,isHTMLForm:Vr,hasOwnProperty:qe,hasOwnProp:qe,hasOwnInPrototypeChain:Ae,getSafeProp:ur,reduceDescriptors:qt,freezeMethods:qr,toObjectSet:zr,toCamelCase:Lr,noop:Hr,toFiniteNumber:Jr,findKey:$t,global:fe,isContextDefined:Mt,isSpecCompliantForm:Wr,toJSONObject:Kr,isAsyncFn:Xr,isThenable:Gr,setImmediate:zt,asap:Qr,isIterable:Ht,isSafeIterable:Yr},Zr=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"]),eo=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
5
|
+
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Zr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function to(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const no=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ro=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function at(e,t){return l.isArray(e)?e.map(n=>at(n,t)):to(String(e).replace(t,""))}const oo=e=>at(e,no),io=e=>at(e,ro);function Jt(e){const t=Object.create(null);return l.forEach(e.toJSON(),(n,r)=>{t[r]=io(n)}),t}const Wt=Symbol("internals");function Te(e){return e&&String(e).trim().toLowerCase()}function Je(e){return e===!1||e==null?e:l.isArray(e)?e.map(Je):oo(String(e))}function so(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 ao=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lt(e,t,n,r,o){if(l.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!l.isString(t)){if(l.isString(r))return t.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(t)}}function lo(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function co(e,t){const n=l.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let z=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(s,a,c){const d=Te(a);if(!d)return;const u=l.findKey(r,d);(!u||r[u]===void 0||c===!0||c===void 0&&r[u]!==!1)&&(r[u||a]=Je(s))}const i=(s,a)=>l.forEach(s,(c,d)=>o(c,d,a));if(l.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(l.isString(e)&&(e=e.trim())&&!ao(e))i(eo(e),t);else if(l.isObject(e)&&l.isSafeIterable(e)){let s=Object.create(null),a,c;for(const d of e){if(!l.isArray(d))throw new TypeError("Object iterator must return a key-value pair");c=d[0],l.hasOwnProp(s,c)?(a=s[c],s[c]=l.isArray(a)?[...a,d[1]]:[a,d[1]]):s[c]=d[1]}i(s,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=Te(e),e){const n=l.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return so(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=Te(e),e){const n=l.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||lt(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function o(i){if(i=Te(i),i){const s=l.findKey(n,i);s&&(!t||lt(n,n[s],s,t))&&(delete n[s],r=!0)}}return l.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];(!e||lt(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return l.forEach(this,(r,o)=>{const i=l.findKey(n,o);if(i){t[i]=Je(r),delete t[o];return}const s=e?lo(o):String(o).trim();s!==o&&delete t[o],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[Wt]=this[Wt]={accessors:{}}).accessors,n=this.prototype;function r(o){const i=Te(o);t[i]||(co(n,o),t[i]=!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);const uo="[REDACTED ****]";function fo(e){if(l.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(l.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function po(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],o=i=>{if(i===null||typeof i!="object"||l.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof z&&(i=i.toJSON()),r.push(i);let s;if(l.isArray(i))s=[],i.forEach((a,c)=>{const d=o(a);l.isUndefined(d)||(s[c]=d)});else{if(!l.isPlainObject(i)&&fo(i))return r.pop(),i;s=Object.create(null);for(const[a,c]of Object.entries(i)){const d=n.has(a.toLowerCase())?uo:o(c);l.isUndefined(d)||(s[a]=d)}}return r.pop(),s};return o(e)}let y=class Un extends Error{static from(t,n,r,o,i,s){const a=new Un(t.message,n||t.code,r,o,i);return Object.defineProperty(a,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(t,n,r,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&l.hasOwnProp(t,"redact")?t.redact:void 0,r=l.isArray(n)&&n.length>0?po(t,n):l.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",y.ERR_BAD_OPTION="ERR_BAD_OPTION",y.ECONNABORTED="ECONNABORTED",y.ETIMEDOUT="ETIMEDOUT",y.ECONNREFUSED="ECONNREFUSED",y.ERR_NETWORK="ERR_NETWORK",y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",y.ERR_DEPRECATED="ERR_DEPRECATED",y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",y.ERR_BAD_REQUEST="ERR_BAD_REQUEST",y.ERR_CANCELED="ERR_CANCELED",y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",y.ERR_INVALID_URL="ERR_INVALID_URL",y.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const ho=null,Kt=100;function ct(e){return l.isPlainObject(e)||l.isArray(e)}function Xt(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function ut(e,t,n){return e?e.concat(t).map(function(r,o){return r=Xt(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function mo(e){return l.isArray(e)&&!e.some(ct)}const go=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function We(e,t,n){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,w){return!l.isUndefined(w[f])});const r=n.metaTokens,o=n.visitor||v,i=n.dots,s=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?Kt:n.maxDepth,d=a&&l.isSpecCompliantForm(t),u=[];if(!l.isFunction(o))throw new TypeError("visitor must be a function");function p(f){if(f===null)return"";if(l.isDate(f))return f.toISOString();if(l.isBoolean(f))return f.toString();if(!d&&l.isBlob(f))throw new y("Blob is not supported. Use a Buffer instead.");if(l.isArrayBuffer(f)||l.isTypedArray(f)){if(d&&typeof a=="function")return new a([f]);if(typeof Buffer<"u")return Buffer.from(f);throw new y("Blob is not supported. Use a Buffer instead.",y.ERR_NOT_SUPPORT)}return f}function g(f){if(f>c)throw new y("Object is too deeply nested ("+f+" levels). Max depth: "+c,y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function _(f,w){if(c===1/0)return JSON.stringify(f);const h=[];return JSON.stringify(f,function(C,F){if(!l.isObject(F))return F;for(;h.length&&h[h.length-1]!==this;)h.pop();return h.push(F),g(w+h.length-1),F})}function v(f,w,h){let C=f;if(l.isReactNative(t)&&l.isReactNativeBlob(f))return t.append(ut(h,w,i),p(f)),!1;if(f&&!h&&typeof f=="object"){if(l.endsWith(w,"{}"))w=r?w:w.slice(0,-2),f=_(f,1);else if(l.isArray(f)&&mo(f)||(l.isFileList(f)||l.endsWith(w,"[]"))&&(C=l.toArray(f)))return w=Xt(w),C.forEach(function(F,Q){!(l.isUndefined(F)||F===null)&&t.append(s===!0?ut([w],Q,i):s===null?w:w+"[]",p(F))}),!1}return ct(f)?!0:(t.append(ut(h,w,i),p(f)),!1)}const x=Object.assign(go,{defaultVisitor:v,convertValue:p,isVisitable:ct});function D(f,w,h=0){if(!l.isUndefined(f)){if(g(h),u.indexOf(f)!==-1)throw new Error("Circular reference detected in "+w.join("."));u.push(f),l.forEach(f,function(C,F){(!(l.isUndefined(C)||C===null)&&o.call(t,C,l.isString(F)?F.trim():F,w,x))===!0&&D(C,w?w.concat(F):[F],h+1)}),u.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return D(e),t}function Gt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function dt(e,t){this._pairs=[],e&&We(e,this,t)}const Qt=dt.prototype;Qt.append=function(e,t){this._pairs.push([e,t])},Qt.toString=function(e){const t=e?n=>e.call(this,n,Gt):Gt;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function _o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Yt(e,t,n){if(!t)return e;e=e||"";const r=l.isFunction(n)?{serialize:n}:n,o=l.getSafeProp(r,"encode")||_o,i=l.getSafeProp(r,"serialize");let s;if(i?s=i(t,r):s=l.isURLSearchParams(t)?t.toString():new dt(t,r).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Zt{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 ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},bo=typeof URLSearchParams<"u"?URLSearchParams:dt,yo=typeof FormData<"u"?FormData:null,wo=typeof Blob<"u"?Blob:null,vo={isBrowser:!0,classes:{URLSearchParams:bo,FormData:yo,Blob:wo},protocols:["http","https","file","blob","url","data"]},pt=typeof window<"u"&&typeof document<"u",ht=typeof navigator=="object"&&navigator||void 0,xo=pt&&(!ht||["ReactNative","NativeScript","NS"].indexOf(ht.product)<0),Eo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Oo=pt&&window.location.href||"http://localhost",So=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserEnv:xo,hasStandardBrowserWebWorkerEnv:Eo,navigator:ht,origin:Oo},Symbol.toStringTag,{value:"Module"})),M={...So,...vo};function Ro(e,t){return We(e,new M.classes.URLSearchParams,{visitor:function(n,r,o,i){return M.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const en=Kt;function tn(e){if(e>en)throw new y("FormData field is too deeply nested ("+e+" levels). Max depth: "+en,y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Co(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)tn(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function Ao(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function nn(e){function t(n,r,o,i){tn(i);let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&l.isArray(o)?o.length:s,c?(l.hasOwnProp(o,s)?o[s]=l.isArray(o[s])?o[s].concat(r):[o[s],r]:o[s]=r,!a):((!l.hasOwnProp(o,s)||!l.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&l.isArray(o[s])&&(o[s]=Ao(o[s])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const n={};return l.forEachEntry(e,(r,o)=>{t(Co(r),o,n,0)}),n}return null}const ve=(e,t)=>e!=null&&l.hasOwnProp(e,t)?e[t]:void 0;function ko(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 Ne={transitional:ft,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=l.isObject(e);if(o&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return r?JSON.stringify(nn(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const s=ve(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ro(e,s).toString();if((i=l.isFileList(e))||n.indexOf("multipart/form-data")>-1){const a=ve(this,"env"),c=a&&a.FormData;return We(i?{"files[]":e}:e,c&&new c,s)}}return o||r?(t.setContentType("application/json",!1),ko(e)):e}],transformResponse:[function(e){const t=ve(this,"transitional")||Ne.transitional,n=t&&t.forcedJSONParsing,r=ve(this,"responseType"),o=r==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(n&&!r||o)){const i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,ve(this,"parseReviver"))}catch(s){if(i)throw s.name==="SyntaxError"?y.from(s,y.ERR_BAD_RESPONSE,this,null,ve(this,"response")):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:M.classes.FormData,Blob:M.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch","query"],e=>{Ne.headers[e]={}});function mt(e,t){const n=this||Ne,r=t||n,o=z.from(r.headers);let i=r.data;return l.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function rn(e){return!!(e&&e.__CANCEL__)}let Fe=class extends y{constructor(e,t,n){super(e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function on(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,n.status>=400&&n.status<500?y.ERR_BAD_REQUEST:y.ERR_BAD_RESPONSE,n.config,n.request,n))}function To(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function No(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),d=r[i];s||(s=c),n[o]=a,r[o]=c;let u=i,p=0;for(;u!==o;)p+=n[u++],u=u%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const g=d&&c-d;return g?Math.round(p*1e3/g):void 0}}function Fo(e,t){let n=0,r=1e3/t,o,i;const s=(a,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e(...a)};return[(...a)=>{const c=Date.now(),d=c-n;d>=r?s(a,c):(o=a,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const Ke=(e,t,n=3)=>{let r=0;const o=No(50,250);return Fo(i=>{if(!i||typeof i.loaded!="number")return;const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=a!=null?Math.min(s,a):s,d=Math.max(0,c-r),u=o(d);r=Math.max(r,c);const p={loaded:c,total:a,progress:a?c/a:void 0,bytes:d,rate:u||void 0,estimated:u&&a?(a-c)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},sn=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},an=e=>(...t)=>l.asap(()=>e(...t)),Po=M.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,M.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(M.origin),M.navigator&&/(msie|trident)/i.test(M.navigator.userAgent)):()=>!0,Do=M.hasStandardBrowserEnv?{write(e,t,n,r,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];l.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),l.isString(r)&&a.push(`path=${r}`),l.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),l.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function jo(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Uo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const Bo=/^https?:(?!\/\/)/i,Io=/[\t\n\r]/g;function Vo(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Lo(e){return Vo(e).replace(Io,"")}function ln(e,t){if(typeof e=="string"&&Bo.test(Lo(e)))throw new y('Invalid URL: missing "//" after protocol',y.ERR_INVALID_URL,t)}function cn(e,t,n,r){ln(t,r);let o=!jo(t);return e&&(o||n===!1)?(ln(e,r),Uo(e,t)):t}const un=e=>e instanceof z?{...e}:e;function pe(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,p,g,_){return l.isPlainObject(u)&&l.isPlainObject(p)?l.merge.call({caseless:_},u,p):l.isPlainObject(p)?l.merge({},p):l.isArray(p)?p.slice():p}function o(u,p,g,_){if(l.isUndefined(p)){if(!l.isUndefined(u))return r(void 0,u,g,_)}else return r(u,p,g,_)}function i(u,p){if(!l.isUndefined(p))return r(void 0,p)}function s(u,p){if(l.isUndefined(p)){if(!l.isUndefined(u))return r(void 0,u)}else return r(void 0,p)}function a(u){const p=l.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!l.isUndefined(p))if(l.isPlainObject(p)){if(l.hasOwnProp(p,u))return p[u]}else return;const g=l.hasOwnProp(e,"transitional")?e.transitional:void 0;if(l.isPlainObject(g)&&l.hasOwnProp(g,u))return g[u]}function c(u,p,g){if(l.hasOwnProp(t,g))return r(u,p);if(l.hasOwnProp(e,g))return r(void 0,u)}const d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(u,p,g)=>o(un(u),un(p),g,!0)};return l.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const p=l.hasOwnProp(d,u)?d[u]:o,g=l.hasOwnProp(e,u)?e[u]:void 0,_=l.hasOwnProp(t,u)?t[u]:void 0,v=p(g,_,u);l.isUndefined(v)&&p!==c||(n[u]=v)}),l.hasOwnProp(t,"validateStatus")&&l.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(l.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const $o=["content-type","content-length"];function Mo(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{$o.includes(r.toLowerCase())&&e.set(r,o)})}const qo=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function dn(e){const t=pe({},e),n=g=>l.hasOwnProp(t,g)?t[g]:void 0,r=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const c=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),p=n("url");if(t.headers=a=z.from(a),t.url=Yt(cn(d,p,u,t),n("params"),n("paramsSerializer")),c){const g=l.getSafeProp(c,"username")||"",_=l.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(g+":"+(_?qo(_):"")))}catch(v){throw y.from(v,y.ERR_BAD_OPTION_VALUE,e)}}if(l.isFormData(r)&&(M.hasStandardBrowserEnv||M.hasStandardBrowserWebWorkerEnv||l.isReactNative(r)?a.setContentType(void 0):l.isFunction(r.getHeaders)&&Mo(a,r.getHeaders(),n("formDataHeaderPolicy"))),M.hasStandardBrowserEnv&&(l.isFunction(o)&&(o=o(t)),o===!0||o==null&&Po(t.url))){const g=i&&s&&Do.read(s);g&&a.set(i,g)}return t}const zo=typeof XMLHttpRequest<"u",Ho=zo&&function(e){return new Promise(function(t,n){const r=dn(e);let o=r.data;const i=z.from(r.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:c}=r,d,u,p,g,_;function v(){g&&g(),_&&_(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(r.method.toUpperCase(),r.url,!0),x.timeout=r.timeout;function D(){if(!x)return;const w=z.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),h={data:!s||s==="text"||s==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:w,config:e,request:x};on(function(C){t(C),v()},function(C){n(C),v()},h),x=null}"onloadend"in x?x.onloadend=D:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(D)},x.onabort=function(){x&&(n(new y("Request aborted",y.ECONNABORTED,e,x)),v(),x=null)},x.onerror=function(w){const h=w&&w.message?w.message:"Network Error",C=new y(h,y.ERR_NETWORK,e,x);C.event=w||null,n(C),v(),x=null},x.ontimeout=function(){let w=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const h=r.transitional||ft;r.timeoutErrorMessage&&(w=r.timeoutErrorMessage),n(new y(w,h.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,x)),v(),x=null},o===void 0&&i.setContentType(null),"setRequestHeader"in x&&l.forEach(Jt(i),function(w,h){x.setRequestHeader(h,w)}),l.isUndefined(r.withCredentials)||(x.withCredentials=!!r.withCredentials),s&&s!=="json"&&(x.responseType=r.responseType),c&&([p,_]=Ke(c,!0),x.addEventListener("progress",p)),a&&x.upload&&([u,g]=Ke(a),x.upload.addEventListener("progress",u),x.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(d=w=>{x&&(n(!w||w.type?new Fe(null,e,x):w),x.abort(),v(),x=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const f=To(r.url);if(f&&!M.protocols.includes(f)){n(new y("Unsupported protocol "+f+":",y.ERR_BAD_REQUEST,e)),v();return}x.send(o||null)})},Jo=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(c){if(!r){r=!0,s();const d=c instanceof Error?c:this.reason;n.abort(d instanceof y?d:new Fe(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,o(new y(`timeout of ${t}ms exceeded`,y.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o,{once:!0}));const{signal:a}=n;return a.unsubscribe=()=>l.asap(s),a},Wo=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Ko=async function*(e,t){for await(const n of Xo(e))yield*Wo(n,t)},Xo=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()}},fn=(e,t,n,r)=>{const o=Ko(e,t);let i=0,s,a=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await o.next();if(d){a(),c.close();return}let p=u.byteLength;if(n){let g=i+=p;n(g)}c.enqueue(new Uint8Array(u))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},Xe=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Go=(e,t,n)=>t+2<n&&Xe(e.charCodeAt(t+1))&&Xe(e.charCodeAt(t+2));function Qo(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let i=r.length;const s=r.length;for(let p=0;p<s;p++)if(r.charCodeAt(p)===37&&p+2<s){const g=r.charCodeAt(p+1),_=r.charCodeAt(p+2);Xe(g)&&Xe(_)&&(i-=2,p+=2)}let a=0,c=s-1;const d=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);c>=0&&(r.charCodeAt(c)===61?(a++,c--):d(c)&&(a++,c-=3)),a===1&&c>=0&&(r.charCodeAt(c)===61||d(c))&&a++;const u=Math.floor(i/4)*3-(a||0);return u>0?u:0}let o=0;for(let i=0,s=r.length;i<s;i++){const a=r.charCodeAt(i);if(a===37&&Go(r,i,s))o+=1,i+=2;else if(a<128)o+=1;else if(a<2048)o+=2;else if(a>=55296&&a<=56319&&i+1<s){const c=r.charCodeAt(i+1);c>=56320&&c<=57343?(o+=4,i++):o+=3}else o+=3}return o}const gt="1.18.1",pn=64*1024,{isFunction:Ge}=l,Yo=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),hn=e=>{if(!l.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},mn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zo=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},ei=e=>{const t=l.global!==void 0&&l.global!==null?l.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=l.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:s}=e,a=o?Ge(o):typeof fetch=="function",c=Ge(i),d=Ge(s);if(!a)return!1;const u=a&&Ge(n),p=a&&(typeof r=="function"?(f=>w=>f.encode(w))(new r):async f=>new Uint8Array(await new i(f).arrayBuffer())),g=c&&u&&mn(()=>{let f=!1;const w=new i(M.origin,{body:new n,method:"POST",get duplex(){return f=!0,"half"}}),h=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),f&&!h}),_=d&&u&&mn(()=>l.isReadableStream(new s("").body)),v={stream:_&&(f=>f.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!v[f]&&(v[f]=(w,h)=>{let C=w&&w[f];if(C)return C.call(w);throw new y(`Response type '${f}' is not supported`,y.ERR_NOT_SUPPORT,h)})});const x=async f=>{if(f==null)return 0;if(l.isBlob(f))return f.size;if(l.isSpecCompliantForm(f))return(await new i(M.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 p(f)).byteLength},D=async(f,w)=>l.toFiniteNumber(f.getContentLength())??x(w);return async f=>{let{url:w,method:h,data:C,signal:F,cancelToken:Q,timeout:xe,onDownloadProgress:me,onUploadProgress:ce,responseType:Y,headers:S,withCredentials:Z="same-origin",fetchOptions:re,maxContentLength:$,maxBodyLength:Ee}=dn(f);const J=l.isNumber($)&&$>-1,R=l.isNumber(Ee)&&Ee>-1,L=P=>l.hasOwnProp(f,P)?f[P]:void 0;let ee=o||fetch;Y=Y?(Y+"").toLowerCase():"text";let W=Jo([F,Q&&Q.toAbortSignal()],xe),j=null;const se=W&&W.unsubscribe&&(()=>{W.unsubscribe()});let je,Ue=null;const Nn=()=>new y("Request body larger than maxBodyLength limit",y.ERR_BAD_REQUEST,f,j);try{let P;const te=L("auth");if(te){const A=l.getSafeProp(te,"username")||"",X=l.getSafeProp(te,"password")||"";P={username:A,password:X}}if(Zo(w)){const A=new URL(w,M.origin);if(!P&&(A.username||A.password)){const X=hn(A.username),ue=hn(A.password);P={username:X,password:ue}}(A.username||A.password)&&(A.username="",A.password="",w=A.href)}if(P&&(S.delete("authorization"),S.set("Authorization","Basic "+btoa(Yo((P.username||"")+":"+(P.password||""))))),J&&typeof w=="string"&&w.startsWith("data:")&&Qo(w)>$)throw new y("maxContentLength size of "+$+" exceeded",y.ERR_BAD_RESPONSE,f,j);if(R&&h!=="get"&&h!=="head"){const A=await x(C);if(typeof A=="number"&&isFinite(A)&&(je=A,A>Ee))throw Nn()}const nt=R&&(l.isReadableStream(C)||l.isStream(C)),Fn=(A,X,ue)=>fn(A,pn,ge=>{if(R&&ge>Ee)throw Ue=Nn();X&&X(ge)},ue);if(g&&h!=="get"&&h!=="head"&&(ce||nt)){if(je=je??await D(S,C),je!==0||nt){let A=new i(w,{method:"POST",body:C,duplex:"half"}),X;if(l.isFormData(C)&&(X=A.headers.get("content-type"))&&S.setContentType(X),A.body){const[ue,ge]=ce&&sn(je,Ke(an(ce)))||[];C=Fn(A.body,ue,ge)}}}else if(nt&&!c&&u&&h!=="get"&&h!=="head")C=Fn(C);else if(nt&&c&&!g&&h!=="get"&&h!=="head")throw new y("Stream request bodies are not supported by the current fetch implementation",y.ERR_NOT_SUPPORT,f,j);l.isString(Z)||(Z=Z?"include":"omit");const Yi=c&&"credentials"in i.prototype;if(l.isFormData(C)){const A=S.getContentType();A&&/^multipart\/form-data/i.test(A)&&!/boundary=/i.test(A)&&S.delete("content-type")}S.set("User-Agent","axios/"+gt,!1);const Pn={...re,signal:W,method:h.toUpperCase(),headers:Jt(S.normalize()),body:C,duplex:"half",credentials:Yi?Z:void 0};j=c&&new i(w,Pn);let ae=await(c?ee(j,re):ee(w,Pn));const Dn=z.from(ae.headers);if(J){const A=l.toFiniteNumber(Dn.getContentLength());if(A!=null&&A>$)throw new y("maxContentLength size of "+$+" exceeded",y.ERR_BAD_RESPONSE,f,j)}const Ct=_&&(Y==="stream"||Y==="response");if(_&&ae.body&&(me||J||Ct&&se)){const A={};["status","statusText","headers"].forEach(Be=>{A[Be]=ae[Be]});const X=l.toFiniteNumber(Dn.getContentLength()),[ue,ge]=me&&sn(X,Ke(an(me),!0))||[];let jn=0;const Zi=Be=>{if(J&&(jn=Be,jn>$))throw new y("maxContentLength size of "+$+" exceeded",y.ERR_BAD_RESPONSE,f,j);ue&&ue(Be)};ae=new s(fn(ae.body,pn,Zi,()=>{ge&&ge(),se&&se()}),A)}Y=Y||"text";let le=await v[l.findKey(v,Y)||"text"](ae,f);if(J&&!_&&!Ct){let A;if(le!=null&&(typeof le.byteLength=="number"?A=le.byteLength:typeof le.size=="number"?A=le.size:typeof le=="string"&&(A=typeof r=="function"?new r().encode(le).byteLength:le.length)),typeof A=="number"&&A>$)throw new y("maxContentLength size of "+$+" exceeded",y.ERR_BAD_RESPONSE,f,j)}return!Ct&&se&&se(),await new Promise((A,X)=>{on(A,X,{data:le,headers:z.from(ae.headers),status:ae.status,statusText:ae.statusText,config:f,request:j})})}catch(P){if(se&&se(),W&&W.aborted&&W.reason instanceof y){const te=W.reason;throw te.config=f,j&&(te.request=j),P!==te&&Object.defineProperty(te,"cause",{__proto__:null,value:P,writable:!0,enumerable:!1,configurable:!0}),te}if(Ue)throw j&&!Ue.request&&(Ue.request=j),Ue;if(P instanceof y)throw j&&!P.request&&(P.request=j),P;if(P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)){const te=new y("Network Error",y.ERR_NETWORK,f,j,P&&P.response);throw Object.defineProperty(te,"cause",{__proto__:null,value:P.cause||P,writable:!0,enumerable:!1,configurable:!0}),te}throw y.from(P,P&&P.code,f,j,P&&P.response)}}},ti=new Map,gn=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,c,d,u=ti;for(;a--;)c=i[a],d=u.get(c),d===void 0&&u.set(c,d=a?new Map:ei(t)),u=d;return d};gn();const _t={http:ho,xhr:Ho,fetch:{get:gn}};l.forEach(_t,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const _n=e=>`- ${e}`,ni=e=>l.isFunction(e)||e===null||e===!1;function ri(e,t){e=l.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s<n;s++){r=e[s];let a;if(o=r,!ni(r)&&(o=_t[(a=String(r)).toLowerCase()],o===void 0))throw new y(`Unknown adapter '${a}'`);if(o&&(l.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since :
|
|
7
|
+
`+s.map(_n).join(`
|
|
8
|
+
`):" "+_n(s[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+a,y.ERR_NOT_SUPPORT)}return o}const bn={getAdapter:ri,adapters:_t};function bt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function yn(e){return bt(e),e.headers=z.from(e.headers),e.data=mt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bn.getAdapter(e.adapter||Ne.adapter,e)(e).then(function(t){bt(e),e.response=t;try{t.data=mt.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=z.from(t.headers),t},function(t){if(!rn(t)&&(bt(e),t&&t.response)){e.response=t.response;try{t.response.data=mt.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=z.from(t.response.headers)}return Promise.reject(t)})}const Qe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const wn={};Qe.transitional=function(e,t,n){function r(o,i){return"[Axios v"+gt+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,s)=>{if(e===!1)throw new y(r(i," has been removed"+(t?" in "+t:"")),y.ERR_DEPRECATED);return t&&!wn[i]&&(wn[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,i,s):!0}},Qe.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function oi(e,t,n){if(typeof e!="object"||e===null)throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new y("option "+i+" must be "+c,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const Ye={assertOptions:oi,validators:Qe},H=Ye.validators;let he=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zt,response:new Zt}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=(()=>{if(!r.stack)return"";const i=r.stack.indexOf(`
|
|
9
|
+
`);return i===-1?"":r.stack.slice(i+1)})();try{if(!n.stack)n.stack=o;else if(o){const i=o.indexOf(`
|
|
10
|
+
`),s=i===-1?-1:o.indexOf(`
|
|
11
|
+
`,i+1),a=s===-1?"":o.slice(s+1);String(n.stack).endsWith(a)||(n.stack+=`
|
|
12
|
+
`+o)}}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=pe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;n!==void 0&&Ye.assertOptions(n,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean),legacyInterceptorReqResOrdering:H.transitional(H.boolean),advertiseZstdAcceptEncoding:H.transitional(H.boolean),validateStatusUndefinedResolves:H.transitional(H.boolean)},!1),r!=null&&(l.isFunction(r)?t.paramsSerializer={serialize:r}:Ye.assertOptions(r,{encode:H.function,serialize:H.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ye.assertOptions(t,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&l.merge(o.common,o[t.method]);o&&l.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete o[_]}),t.headers=z.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(t)===!1)return;a=a&&_.synchronous;const v=t.transitional||ft;v&&v.legacyInterceptorReqResOrdering?s.unshift(_.fulfilled,_.rejected):s.push(_.fulfilled,_.rejected)});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let d,u=0,p;if(!a){const _=[yn.bind(this),void 0];for(_.unshift(...s),_.push(...c),p=_.length,d=Promise.resolve(t);u<p;)d=d.then(_[u++],_[u++]);return d}p=s.length;let g=t;for(;u<p;){const _=s[u++],v=s[u++];try{g=_(g)}catch(x){v.call(this,x);break}}try{d=yn.call(this,g)}catch(_){return Promise.reject(_)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(e){e=pe(this.defaults,e);const t=cn(e.baseURL,e.url,e.allowAbsoluteUrls,e);return Yt(t,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){he.prototype[e]=function(t,n){return this.request(pe(n||{},{method:e,url:t,data:n&&l.hasOwnProp(n,"data")?n.data:void 0}))}}),l.forEach(["post","put","patch","query"],function(e){function t(n){return function(r,o,i){return this.request(pe(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}he.prototype[e]=t(),e!=="query"&&(he.prototype[e+"Form"]=t(!0))});let ii=class Bn{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(o,i,s){r.reason||(r.reason=new Fe(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Bn(function(n){t=n}),cancel:t}}};function si(e){return function(t){return e.apply(null,t)}}function ai(e){return l.isObject(e)&&e.isAxiosError===!0}const yt={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(yt).forEach(([e,t])=>{yt[t]=e});function vn(e){const t=new he(e),n=jt(he.prototype.request,t);return l.extend(n,he.prototype,t,{allOwnKeys:!0}),l.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return vn(pe(e,r))},n}const B=vn(Ne);B.Axios=he,B.CanceledError=Fe,B.CancelToken=ii,B.isCancel=rn,B.VERSION=gt,B.toFormData=We,B.AxiosError=y,B.Cancel=B.CanceledError,B.all=function(e){return Promise.all(e)},B.spread=si,B.isAxiosError=ai,B.mergeConfig=pe,B.AxiosHeaders=z,B.formToJSON=e=>nn(l.isHTMLForm(e)?new FormData(e):e),B.getAdapter=bn.getAdapter,B.HttpStatusCode=yt,B.default=B;const{Axios:ts,AxiosError:ns,CanceledError:rs,isCancel:os,CancelToken:is,VERSION:ss,all:as,Cancel:ls,isAxiosError:cs,spread:us,toFormData:ds,AxiosHeaders:fs,HttpStatusCode:ps,formToJSON:hs,getAdapter:ms,mergeConfig:gs,create:_s}=B,wt=B.create({baseURL:location.origin,timeout:6e4,params:{}});wt.interceptors.response.use(e=>e,e=>{if(e.response){if(e.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(r){r&&OpenC3Auth.setTokens()}),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let t=`HTTP ${e.response.status} - `;e.response?.statusText&&(t+=`${e.response.statusText} `),e.response?.config?.data&&(t+=`${e.response.config.data} `),e.response?.data?.message?t+=`${e.response.data.message}`:e.response?.data?.exception?t+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(t+=`${e.response.data.error.class} `),t+=`${e.response.data.error.message}`):t+=`${e.response?.data}`;const{$cosmosNotify:n}=window;throw n&&n.serious({title:"Network error",body:t}),e}else throw e});const Ze=async function(e,t,{data:n,params:r={},headers:o,noAuth:i=!1,noScope:s=!1,onUploadProgress:a=!1}={}){if(!i){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}o.Authorization=localStorage.openc3Token}return o.manual=!0,!s&&!r.scope&&(r.scope=window.openc3Scope),wt({method:e,url:t,data:n,params:r,headers:o,onUploadProgress:a})},vt={Accept:"application/json"},xn={...vt,"Content-Type":"application/json"},q={get:function(e,{params:t,headers:n=vt,noScope:r,noAuth:o,onUploadProgress:i}={}){return Ze("get",e,{params:t,headers:n,noScope:r,noAuth:o,onUploadProgress:i})},put:function(e,{data:t,params:n,headers:r=xn,noScope:o,noAuth:i,onUploadProgress:s}={}){return Ze("put",e,{data:t,params:n,headers:r,noScope:o,noAuth:i,onUploadProgress:s})},post:function(e,{data:t,params:n,headers:r=xn,noScope:o,noAuth:i,onUploadProgress:s}={}){return Ze("post",e,{data:t,params:n,headers:r,noScope:o,noAuth:i,onUploadProgress:s})},delete:function(e,{params:t,headers:n=vt,noScope:r,noAuth:o,onUploadProgress:i}={}){return Ze("delete",e,{params:t,headers:n,noScope:r,noAuth:o,onUploadProgress:i})}};function Pe(e){return li.test(e)}const li=/^-?[0-9]+$/;function En(e){return ci.test(e)}const ci=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function On(e,t){if(Pe(e))return Number.isSafeInteger(Number.parseInt(e,10));const n=Number.parseFloat(e),r=String(n);if(e===r)return!0;const o=Sn(e),i=Sn(r);return!!(o===i||t?.approx===!0&&!Pe(e)&&i.length>=14&&o.startsWith(i.substring(0,14)))}let De=(function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e})({});function ui(e){if(On(e,{approx:!1}))return;if(Pe(e))return De.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?De.underflow:De.truncate_float:De.overflow}function Sn(e){const{start:t,end:n}=di(e),r=e.substring(t,n),o=r.indexOf(".");return o===-1?r:r.substring(0,o)+r.substring(o+1)}function di(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 fi{isLosslessNumber=!0;constructor(t){if(!En(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=ui(this.value);if(t===void 0||t===De.truncate_float)return Number.parseFloat(this.value);if(Pe(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 pi(e){return e&&typeof e=="object"&&e.isLosslessNumber||!1}function hi(e){return new fi(e)}function mi(e,t){return xt({"":e},"",e,t)}function xt(e,t,n,r){return Array.isArray(n)?r.call(e,t,_i(n,r)):n&&typeof n=="object"&&!pi(n)?r.call(e,t,gi(n,r)):r.call(e,t,n)}function gi(e,t){for(const n of Object.keys(e)){const r=xt(e,n,e[n],t);r!==void 0?e[n]=r:delete e[n]}return e}function _i(e,t){for(let n=0;n<e.length;n++)e[n]=xt(e,String(n),e[n],t);return e}function bi(e,t,n){const r=typeof n=="function"?{parseNumber:n}:n,o=r?.parseNumber??hi,i=r?.onDuplicateKey??xe;let s=0;const a=u();return f(a),h(),t?mi(a,t):a;function c(){if(e.charCodeAt(s)===Oi){s++,g();const R={};let L=!0;for(;s<e.length&&e.charCodeAt(s)!==Cn;){L?L=!1:(x(),g());const ee=s,W=_();if(W===void 0){Q();return}g(),D();const j=u();if(j===void 0){Z();return}if(Object.prototype.hasOwnProperty.call(R,W)&&!Et(j,R[W])){const se=i({key:W,position:ee+1,oldValue:R[W],newValue:j});se!==void 0&&(R[W]=se)}else R[W]=j}return e.charCodeAt(s)!==Cn&&me(),s++,R}}function d(){if(e.charCodeAt(s)===Si){s++,g();const R=[];let L=!0;for(;s<e.length&&e.charCodeAt(s)!==An;){L?L=!1:x();const ee=u();w(ee),R.push(ee)}return e.charCodeAt(s)!==An&&ce(),s++,R}}function u(){g();const R=_()??v()??c()??d()??p("true",!0)??p("false",!1)??p("null",null);return g(),R}function p(R,L){if(e.slice(s,s+R.length)===R)return s+=R.length,L}function g(){for(;yi(e.charCodeAt(s));)s++}function _(){if(e.charCodeAt(s)===Ot){s++;let R="";for(;s<e.length&&e.charCodeAt(s)!==Ot;){if(e.charCodeAt(s)===Ei){const L=e[s+1],ee=xi[L];ee!==void 0?(R+=ee,s++):L==="u"?et(e.charCodeAt(s+2))&&et(e.charCodeAt(s+3))&&et(e.charCodeAt(s+4))&&et(e.charCodeAt(s+5))?(R+=String.fromCharCode(Number.parseInt(e.slice(s+2,s+6),16)),s+=5):re(s):S(s)}else vi(e.charCodeAt(s))?R+=e[s]:Y(e[s]);s++}return F(),s++,R}}function v(){const R=s;if(e.charCodeAt(s)===kn&&(s++,C(R)),e.charCodeAt(s)===St)s++;else if(wi(e.charCodeAt(s)))for(s++;tt(e.charCodeAt(s));)s++;if(e.charCodeAt(s)===Pi)for(s++,C(R);tt(e.charCodeAt(s));)s++;if(e.charCodeAt(s)===Ii||e.charCodeAt(s)===Bi)for(s++,(e.charCodeAt(s)===kn||e.charCodeAt(s)===Ti)&&s++,C(R);tt(e.charCodeAt(s));)s++;if(s>R)return o(e.slice(R,s))}function x(){if(e.charCodeAt(s)!==Fi)throw new SyntaxError(`Comma ',' expected after value ${J()}`);s++}function D(){if(e.charCodeAt(s)!==Di)throw new SyntaxError(`Colon ':' expected after property name ${J()}`);s++}function f(R){if(R===void 0)throw new SyntaxError(`JSON value expected ${J()}`)}function w(R){if(R===void 0)throw new SyntaxError(`Array item expected ${J()}`)}function h(){if(s<e.length)throw new SyntaxError(`Expected end of input ${J()}`)}function C(R){if(!tt(e.charCodeAt(s))){const L=e.slice(R,s);throw new SyntaxError(`Invalid number '${L}', expecting a digit ${J()}`)}}function F(){if(e.charCodeAt(s)!==Ot)throw new SyntaxError(`End of string '"' expected ${J()}`)}function Q(){throw new SyntaxError(`Quoted object key expected ${J()}`)}function xe(R){let{key:L,position:ee}=R;throw new SyntaxError(`Duplicate key '${L}' encountered at position ${ee}`)}function me(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${J()}`)}function ce(){throw new SyntaxError(`Array item or end of array ']' expected ${J()}`)}function Y(R){throw new SyntaxError(`Invalid character '${R}' ${$()}`)}function S(R){const L=e.slice(R,R+2);throw new SyntaxError(`Invalid escape character '${L}' ${$()}`)}function Z(){throw new SyntaxError(`Object value expected after ':' ${$()}`)}function re(R){const L=e.slice(R,R+6);throw new SyntaxError(`Invalid unicode character '${L}' ${$()}`)}function $(){return`at position ${s}`}function Ee(){return s<e.length?`but got '${e[s]}'`:"but reached end of input"}function J(){return`${Ee()} ${$()}`}}function yi(e){return e===Ri||e===Ci||e===Ai||e===ki}function et(e){return e>=St&&e<=Rt||e>=ji&&e<=Vi||e>=Ui&&e<=Li}function tt(e){return e>=St&&e<=Rt}function wi(e){return e>=Ni&&e<=Rt}function vi(e){return e>=32&&e<=1114111}function Et(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>Et(n,t[r])):Rn(e)&&Rn(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(n=>Et(e[n],t[n])):!1}function Rn(e){return typeof e=="object"&&e!==null}const xi={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
13
|
+
`,r:"\r",t:" "},Ei=92,Oi=123,Cn=125,Si=91,An=93,Ri=32,Ci=10,Ai=9,ki=13,Ot=34,Ti=43,kn=45,St=48,Ni=49,Rt=57,Fi=44,Pi=46,Di=58,ji=65,Ui=97,Bi=69,Ii=101,Vi=70,Li=102;function Tn(e,t,n,r){return o(e);function o(c,d){if(Array.isArray(r)){const u=r.find(p=>p.test(c));if(u){const p=u.stringify(c);if(typeof p!="string"||!En(p))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${p})`);return p}}if(typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c===null||c instanceof Date||c instanceof Boolean||c instanceof Number||c instanceof String)return JSON.stringify(c);if(c?.isLosslessNumber||typeof c=="bigint")return c.toString();if(Array.isArray(c))return i(c);if(c&&typeof c=="object")return s(c)}function i(c,d){if(c.length===0)return"[]";let u="[";for(let p=0;p<c.length;p++){const g=c[p];typeof g<"u"&&typeof g!="function"?u+=o(g):u+="null",p<c.length-1&&(u+=",")}return u+="]",u}function s(c,d){if(typeof c.toJSON=="function")return Tn(c.toJSON(),t,n,void 0);const u=Array.isArray(t)?t.map(String):Object.keys(c);if(u.length===0)return"{}";let p=!0,g="{";for(const _ of u){const v=c[_];if(a(_,v)){p?p=!1:g+=",";const x=JSON.stringify(_);g+=`${x}:`,g+=o(v)}}return g+="}",g}function a(c,d){return typeof d<"u"&&typeof d!="function"&&typeof d!="symbol"}}function $i(e){return Pe(e)&&!On(e)?BigInt(e):parseFloat(e)}class Mi{id=1;constructor(){}async exec(t,n,r={},o={},i=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,o.manual=!0,(await wt.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...o},timeout:i,transformRequest:[(s,a)=>Tn(s)],transformResponse:[s=>{try{return bi(s,void 0,$i)}catch{const a=typeof s=="string"?s.substring(0,200):String(s),c=new Error(`Server returned non-JSON response: ${a}`);throw c.name="ServerError",c}}]})).data.result}catch(s){let a=new Error;throw s.response?(a.name=s.response.data.error.data.class,a.message=s.response.data.error.data.message,a.object=s.response.data.error):s.request?(a.name="Request error",a.message="Request error, no response received"):a=s,a}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,n,r,o,i){return this.exec("map_target_to_interface",[t,n],{cmd_only:r,tlm_only:o,unmap_old:i})}unmap_target_from_interface(t,n,r,o){return this.exec("unmap_target_from_interface",[t,n],{cmd_only:r,tlm_only:o})}connect_interface(t,...n){return n.length>0?this.exec("connect_interface",[t,...n]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,n,...r){return this.exec("interface_cmd",[t,n,...r])}interface_target_enable(t,n,r=!1,o=!1){return this.exec("interface_target_enable",[t,n],{cmd_only:r,tlm_only:o})}interface_target_disable(t,n,r=!1,o=!1){return this.exec("interface_target_disable",[t,n],{cmd_only:r,tlm_only:o})}interface_details(t){return this.exec("interface_details",[t])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(t,n,r,o,i){return this.exec("map_target_to_router",[t,n],{cmd_only:r,tlm_only:o,unmap_old:i})}unmap_target_from_router(t,n,r,o){return this.exec("unmap_target_from_router",[t,n],{cmd_only:r,tlm_only:o})}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}router_target_enable(t,n,r=!1,o=!1){return this.exec("router_target_enable",[t,n],{cmd_only:r,tlm_only:o})}router_target_disable(t,n,r=!1,o=!1){return this.exec("router_target_disable",[t,n],{cmd_only:r,tlm_only:o})}router_details(t){return this.exec("router_details",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,n,r){return this.exec("get_item",[t,n,r])}get_param(t,n,r){return this.exec("get_param",[t,n,r])}get_parameter(t,n,r){return this.exec("get_param",[t,n,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}delete_limits_set(t){return this.exec("delete_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,n){return this.exec("get_tlm",[t,n])}get_telemetry(t,n){return this.exec("get_tlm",[t,n])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,n=!1){return this.exec("get_all_tlm_names",[t],{hidden:n})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,n,r,o=30){const i=await this.exec("get_tlm_packet",[t,n],{type:r,stale_time:o});if(i!=null){let s=i.length,a=null;for(let c=0;c<s;c++)a=this.decode_openc3_type(i[c][1]),a!==null&&(i[c][1]=a)}return i}get_packet_derived_items(t,n){return this.exec("get_packet_derived_items",[t,n])}get_tlm_buffer(t,n){return this.exec("get_tlm_buffer",[t,n])}get_tlm_available(t){return this.exec("get_tlm_available",[t])}async get_tlm_values(t,n=30,r=null,o=null,i=null){let s={stale_time:n};r!==null&&(s.cache_timeout=r),o!==null&&(s.start_time=o.toISOString()),i!==null&&(s.end_time=i.toISOString());const a=await this.exec("get_tlm_values",[t],s,{},1e4);if(a&&a.length>0){let c=a.length,d=null;for(let u=0;u<c;u++)d=this.decode_openc3_type(a[u][0]),d!==null&&(a[u][0]=d)}return a}get_limits(t,n,r){return this.exec("get_limits",[t,n,r])}async tlm(t,n,r,o="CONVERTED"){let i=null;if(n===void 0)i=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(n))i=await this.exec("tlm",[t],{type:n});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED or FORMATTED.`,a}else i=await this.exec("tlm",[t,n,r],{type:o});let s=this.decode_openc3_type(i);return s!==null&&(i=s),i}async inject_tlm(t,n,r=null,o="CONVERTED",i=!1){await this.exec("inject_tlm",[t,n,r],{type:o,stored:i})}set_tlm(t,n,r,o){return this.exec("set_tlm",[t,n,r],{type:o})}override_tlm(t,n,r,o){return this.exec("override_tlm",[t,n,r],{type:o})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,n,r,o){return this.exec("normalize_tlm",[t,n,r],{type:o})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,n=!1){return this.exec("get_all_cmd_names",[t],{hidden:n})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,n){return this.exec("get_cmd",[t,n])}get_command(t,n){return this.exec("get_cmd",[t,n])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,n,r,o="CONVERTED"){return this.exec("get_cmd_value",[t,n,r,o])}get_cmd_buffer(t,n){return this.exec("get_cmd_buffer",[t,n])}_cmd(t,n,r,o,i,s={}){let a=null;for(let c in o)Object.prototype.hasOwnProperty.call(o,c)&&(a=this.encode_openc3_type(o[c]),a!==null&&(o[c]=a));return this.exec(t,[n,r,o],s,i)}get_cmd_hazardous(t,n,r,o={}){return n===void 0?this.exec("get_cmd_hazardous",t,{},o):this._cmd("get_cmd_hazardous",t,n,r,o)}cmd(t,n,r,o={},i={}){return n===void 0?this.exec("cmd",t,i,o):this._cmd("cmd",t,n,r,o,i)}cmd_no_range_check(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_no_range_check",t,i,o):this._cmd("cmd_no_range_check",t,n,r,o,i)}cmd_raw(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_raw",t,i,o):this._cmd("cmd_raw",t,n,r,o,i)}cmd_raw_no_range_check(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_raw_no_range_check",t,i,o):this._cmd("cmd_raw_no_range_check",t,n,r,o,i)}cmd_no_hazardous_check(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_no_hazardous_check",t,i,o):this._cmd("cmd_no_hazardous_check",t,n,r,o,i)}cmd_no_checks(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_no_checks",t,i,o):this._cmd("cmd_no_checks",t,n,r,o,i)}cmd_raw_no_hazardous_check(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",t,i,o):this._cmd("cmd_raw_no_hazardous_check",t,n,r,o,i)}cmd_raw_no_checks(t,n,r,o={},i={}){return n===void 0?this.exec("cmd_raw_no_checks",t,i,o):this._cmd("cmd_raw_no_checks",t,n,r,o,i)}build_cmd(t,n,r,o={},i={}){return n===void 0?this.exec("build_cmd",t,i,o):this._cmd("build_cmd",t,n,r,o,i)}build_command(t,n,r,o={},i={}){return n===void 0?this.exec("build_cmd",t,i,o):this._cmd("build_cmd",t,n,r,o,i)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(t,n){return this.exec("send_raw",[t,n])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,n){return this.exec("load_config",[t,n])}save_config(t,n,r){return this.exec("save_config",[t,n,r])}delete_config(t,n){return this.exec("delete_config",[t,n])}enable_limits(t,n,r){return this.exec("enable_limits",[t,n,r])}disable_limits(t,n,r){return this.exec("disable_limits",[t,n,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t,n){return this.exec("get_setting",[t],n)}get_settings(t,n){return this.exec("get_settings",t,n)}set_setting(t,n){return this.exec("set_setting",[t,n])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(t,n){return this.exec("set_setting",[t,n])}get_metrics(){return this.exec("get_metrics",[])}open_tab(t){window.open(t,"_blank")}async hashString(t){if(window.isSecureContext){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(i=>i.toString(16).padStart(2,"0")).join("")}}}const qi={mixins:[Dt],props:{item:{type:Object,required:!0}},emits:["change"],data(){return{dataItem:this.item,stateValue:null,checkValue:!1,isMounted:!1}},computed:{isCheckbox:function(){let e=!0;if(this.dataItem.states)for(const t of Object.keys(this.dataItem.states))t!=="CHECKED"&&t!=="UNCHECKED"&&(e=!1);else e=!1;return e},itemStates:function(){let e=[];for(const[t,n]of Object.entries(this.dataItem.states))e.push({title:t,value:n});return e}},watch:{checkValue:function(){this.isMounted&&(this.checkValue?this.$emit("change","CHECKED"):this.$emit("change","UNCHECKED"))},stateValue:function(){if(!this.isMounted)return;let e=Object.keys(this.dataItem.states).find(t=>this.dataItem.states[t]===this.stateValue);this.$emit("change",e)}},created(){this.dataItem.states&&(this.stateValue=this.dataItem.states[this.dataItem.value]),this.isCheckbox&&(this.checkValue=this.stateValue===1)},mounted(){this.isMounted=!0},methods:{textChange:function(e){this.dataItem.value=e,this.$emit("change",this.dataItem.value)},format:function(e){return e&&e.json_class==="String"&&e.raw!==void 0&&(this.dataItem.editable=!1),this.formatValueBase(e)}}};function zi(e,t,n,r,o,i){const s=E("v-checkbox"),a=E("v-select"),c=E("v-text-field");return O(),V("td",null,[i.isCheckbox?(O(),k(s,{key:0,modelValue:o.checkValue,"onUpdate:modelValue":t[0]||(t[0]=d=>o.checkValue=d),density:"compact","hide-details":"",disabled:!o.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):o.dataItem.states?(O(),k(a,{key:1,modelValue:o.stateValue,"onUpdate:modelValue":t[1]||(t[1]=d=>o.stateValue=d),density:"compact","hide-details":"",items:i.itemStates,disabled:!o.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(O(),k(c,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","model-value":i.format(o.dataItem.value),disabled:!o.dataItem.editable,"data-test":"table-item-text-field","onUpdate:modelValue":i.textChange},null,8,["model-value","disabled","onUpdate:modelValue"]))])}const Hi={components:{TableItem:Ie(qi,[["render",zi]])},props:{items:{type:Object,required:!0}},emits:["change"],data(){return{dataItems:this.items}},computed:{oneDimensional(){return this.dataItems.length===1}},methods:{onChange:function(e,t,n){this.$emit("change",{index:t,event:n})}}},Ji={class:"text-start"},Wi={key:0,class:"text-start"};function Ki(e,t,n,r,o,i){const s=E("table-item");return O(),V("tr",null,[I("td",Ji,U(o.dataItems[0].index),1),i.oneDimensional?(O(),V("td",Wi,U(o.dataItems[0].name),1)):ie("",!0),(O(!0),V(G,null,oe(o.dataItems,(a,c)=>(O(),k(s,{key:a.name,item:a,onChange:Re(d=>i.onChange(a,c,d),["self"])},null,8,["item","onChange"]))),128))])}const Xi={components:{TopBar:qn,TableRow:Ie(Hi,[["render",Ki]]),FileOpenSaveDialog:nr,SimpleTextDialog:lr},data(){return{title:"Table Manager",search:"",curTab:null,tables:[],api:null,definition:null,fileInput:null,definitionFilename:"",fileNew:!1,filename:"",fileModified:"",lockedBy:null,fileOpen:!1,showSave:!1,showSaveAs:!1,showError:!1,errorTitle:"",errorText:"",uploadScript:null,downloadScript:null,scriptBackground:!0}},computed:{readOnly:function(){return!!this.lockedBy},fullFilename(){return`${this.filename} ${this.fileModified}`.trim()},menus:function(){return[{label:"File",items:[{label:"New Binary from Definition",icon:"mdi-file-plus",command:()=>{this.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:()=>{this.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:()=>{this.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:()=>{this.saveAs()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:()=>{this.delete()}}]}]}},watch:{filename:function(e){let t=this.filename.split("/").slice(0,2).join("/")+"/procedures/upload",n=this.filename.split("/").slice(0,2).join("/")+"/procedures/download";q.get(`/openc3-api/tables/${t}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.uploadScript=`${t}.rb`}).catch(r=>{q.get(`/openc3-api/tables/${t}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.uploadScript=`${t}.py`}).catch(o=>{this.uploadScript=null})}),q.get(`/openc3-api/tables/${n}.rb`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(r=>{this.downloadScript=`${n}.rb`}).catch(r=>{q.get(`/openc3-api/tables/${n}.py`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(o=>{this.downloadScript=`${n}.py`}).catch(o=>{this.downloadScript=null})})}},created(){this.api=new Mi,this.api.ensure_offline_access()},methods:{newFile:function(){this.fileModified="",this.fileNew=!0,this.fileOpen=!0},openFile:function(){this.fileOpen=!0},setFile:function({file:e,locked:t}){e.name.includes(".txt")?this.fileNew?(this.checkAndBuildNewBinary(e.name),this.fileNew=!1):this.getDefinition(e.name):(this.unlockFile(),this.filename=e.name.split("*")[0],this.fileModified="",this.lockedBy=t,this.getDefinition())},setError(e){this.errorTitle="Error",this.errorText=`Error: ${e}`,this.errorText=response.data.message,this.showError=!0},saveFile:function(){this.showSave=!0;const e=new FormData;e.append("binary",this.filename),e.append("definition",this.definitionFilename),e.append("tables",JSON.stringify(this.tables)),q.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){q.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=>q.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),q.post("/openc3-api/tables/binary",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=window.atob(n.data.contents),o=new Uint8Array(r.length);for(let a=0;a<r.length;++a)o[a]=r.charCodeAt(a);const i=new Blob([o],{type:"application/octet-stream"}),s=document.createElement("a");s.href=URL.createObjectURL(i),s.setAttribute("download",n.data.filename),s.click()})},downloadDefinition:function(e=null){const t=new FormData;t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),q.post("/openc3-api/tables/definition",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=new Blob([n.data.contents],{type:"text/plain"}),o=document.createElement("a");o.href=URL.createObjectURL(r),o.setAttribute("download",n.data.filename),o.click()})},downloadReport:function(e=null){const t=new FormData;t.append("binary",this.filename),t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),q.post("/openc3-api/tables/report",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{const r=`Binary: ${this.filename}
|
|
14
|
+
Definition: ${this.definitionFilename}
|
|
15
|
+
|
|
16
|
+
`,o=new Blob([r,n.data.contents],{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(o),i.setAttribute("download",n.data.filename),i.click()})},upload(){q.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(()=>{q.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 q.post(`/openc3-api/tables/${this.filename}/lock`)},unlockFile:function(){this.filename!==""&&!this.readOnly&&q.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),q.post("/openc3-api/tables/load",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(n=>{this.definitionFilename=n.data.definition,this.tables=n.data.tables.map(r=>({...r,headers:r.headers.map((o,i)=>{const s={title:o,filterable:o!=="INDEX"};return r.numColumns===1?{...s,value:`[0].${o.toLowerCase()}`}:{...s,value:`[${i}].value`}})})),n.data.errors&&this.$notify.caution({title:"Warning",body:n.data.errors})}).catch(n=>{n.response.status==404?(this.$notify.normal({title:"Definition File Not Found",body:`Definition file ${e} not found. Please select definition file.`}),this.fileOpen=!0):this.$notify.serious({title:"Error",body:`Error loading due to ${n.response.statusText}. Status: ${n.response.status}`})})},checkAndBuildNewBinary:function(e){const t=e.replace("/config/","/bin/").replace("_def.txt",".bin");q.get(`/openc3-api/tables/${t}`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).then(n=>{this.$dialog.confirm(`Binary file ${t} already exists. Do you want to overwrite it?`,{okText:"Overwrite",cancelText:"Cancel"}).then(()=>{this.buildNewBinary(e)}).catch(()=>{})}).catch(n=>{this.buildNewBinary(e)})},buildNewBinary:function(e){const t=new FormData;t.append("definition",e),q.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}}},Gi={style:{position:"absolute"},class:"ma-3"};function Qi(e,t,n,r,o,i){const s=E("top-bar"),a=E("v-file-input"),c=E("v-text-field"),d=E("v-col"),u=E("v-row"),p=E("v-icon"),g=E("v-btn"),_=E("v-checkbox-btn"),v=E("v-tooltip"),x=E("v-card-text"),D=E("v-spacer"),f=E("v-card-title"),w=E("v-tab"),h=E("v-tabs"),C=E("table-row"),F=E("v-data-table"),Q=E("v-tabs-window-item"),xe=E("v-tabs-window"),me=E("v-card"),ce=E("file-open-save-dialog"),Y=E("simple-text-dialog");return O(),V("div",null,[b(s,{menus:i.menus,title:o.title},null,8,["menus","title"]),b(a,{ref:"fileInput",modelValue:o.fileInput,"onUpdate:modelValue":t[0]||(t[0]=S=>o.fileInput=S),"show-size":"",accept:".bin","data-test":"file-input",style:{position:"fixed",top:"-100%"}},null,8,["modelValue"]),b(me,null,{default:m(()=>[b(x,null,{default:m(()=>[b(u,{dense:""},{default:m(()=>[b(d,{cols:"6"},{default:m(()=>[b(c,{id:"filename",modelValue:i.fullFilename,"onUpdate:modelValue":t[1]||(t[1]=S=>i.fullFilename=S),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Filename",class:"filename","data-test":"filename"},null,8,["modelValue"])]),_:1}),b(d,{cols:"6"},{default:m(()=>[b(c,{id:"definition-filename",modelValue:o.definitionFilename,"onUpdate:modelValue":t[2]||(t[2]=S=>o.definitionFilename=S),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Definition",class:"filename","data-test":"definition-filename"},null,8,["modelValue"])]),_:1})]),_:1}),b(u,{dense:""},{default:m(()=>[b(d,{cols:"auto",class:"mr-auto"},{default:m(()=>[t[25]||(t[25]=I("span",{class:"text-body-1 ma-2"},"File Download:",-1)),b(g,{dense:"",color:"primary",class:"mr-3",disabled:o.filename=="","data-test":"download-file-binary",onClick:t[3]||(t[3]=S=>i.downloadBinary(null))},{default:m(()=>[t[20]||(t[20]=T(" Binary ",-1)),b(p,{end:"",theme:"dark"},{default:m(()=>[...t[19]||(t[19]=[T(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled"]),b(g,{dense:"",color:"primary",class:"mr-3",disabled:o.filename=="","data-test":"download-file-definition",onClick:t[4]||(t[4]=S=>i.downloadDefinition(null))},{default:m(()=>[t[22]||(t[22]=T(" Definition ",-1)),b(p,{end:"",theme:"dark"},{default:m(()=>[...t[21]||(t[21]=[T(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled"]),b(g,{dense:"",color:"primary",disabled:o.filename=="","data-test":"download-file-report",onClick:t[5]||(t[5]=S=>i.downloadReport(null))},{default:m(()=>[t[24]||(t[24]=T(" Report ",-1)),b(p,{end:"",theme:"dark"},{default:m(()=>[...t[23]||(t[23]=[T(" mdi-file-document ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(d,{cols:"auto"},{default:m(()=>[b(g,{dense:"",color:"primary",disabled:!o.uploadScript,"data-test":"upload-file",onClick:t[6]||(t[6]=S=>i.upload())},{default:m(()=>[t[27]||(t[27]=T(" Upload ",-1)),b(p,{end:"",theme:"dark"},{default:m(()=>[...t[26]||(t[26]=[T(" mdi-file-upload ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(d,{cols:"auto"},{default:m(()=>[b(g,{dense:"",color:"primary",disabled:!o.downloadScript,"data-test":"download-file",onClick:t[7]||(t[7]=S=>i.download())},{default:m(()=>[t[29]||(t[29]=T(" Download ",-1)),b(p,{end:"",theme:"dark"},{default:m(()=>[...t[28]||(t[28]=[T(" mdi-file-download ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(d,{cols:"auto"},{default:m(()=>[b(v,{"open-delay":600,location:"top"},{activator:m(({props:S})=>[I("span",Ft(Pt(S)),[b(_,{modelValue:o.scriptBackground,"onUpdate:modelValue":t[8]||(t[8]=Z=>o.scriptBackground=Z),label:"B/G",class:"shrink mt-0","data-test":"upload-background"},null,8,["modelValue"])],16)]),default:m(()=>[t[30]||(t[30]=I("span",null,"Run upload download scripts in the background",-1))]),_:1})]),_:1})]),_:1})]),_:1}),b(f,{class:"d-flex align-center"},{default:m(()=>[t[31]||(t[31]=T(" Items ",-1)),b(D),b(c,{modelValue:o.search,"onUpdate:modelValue":t[9]||(t[9]=S=>o.search=S),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),(O(),k(h,{key:`v-tabs_${o.tables.length}`,modelValue:o.curTab,"onUpdate:modelValue":t[10]||(t[10]=S=>o.curTab=S)},{default:m(()=>[(O(!0),V(G,null,oe(o.tables,(S,Z)=>(O(),k(w,{key:Z},{default:m(()=>[T(U(S.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])),(O(),k(xe,{key:`v-tabs-window_${o.tables.length}`,modelValue:o.curTab,"onUpdate:modelValue":t[11]||(t[11]=S=>o.curTab=S)},{default:m(()=>[(O(!0),V(G,null,oe(o.tables,(S,Z)=>(O(),k(Q,{key:`${o.filename}${Z}`},{default:m(()=>[b(F,{headers:S.headers,items:S.rows,search:o.search,"items-per-page":20,"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact","data-test":S.name},Le({item:m(({item:re})=>[(O(),k(C,{key:re[0].name,items:re,onChange:Re($=>i.onChange(re,$),["self"])},null,8,["items","onChange"]))]),_:2},[o.tables.length>1?{name:"tfoot",fn:m(()=>[I("div",Gi,[t[38]||(t[38]=I("span",{class:"text-body-1 mr-3"},"Table Download:",-1)),b(g,{dense:"",color:"primary",class:"mr-3",disabled:o.filename=="","data-test":"download-table-binary",onClick:re=>i.downloadBinary(S.name)},{default:m(()=>[t[33]||(t[33]=T(" Binary ",-1)),b(p,{end:"",theme:"dark"},{default:m(()=>[...t[32]||(t[32]=[T(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),b(g,{dense:"",color:"primary",class:"mr-3",disabled:o.filename=="","data-test":"download-table-definition",onClick:re=>i.downloadDefinition(S.name)},{default:m(()=>[t[35]||(t[35]=T(" Definition ",-1)),b(p,{end:"",theme:"dark"},{default:m(()=>[...t[34]||(t[34]=[T(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),b(g,{dense:"",color:"primary",disabled:o.filename=="","data-test":"download-table-report",onClick:re=>i.downloadReport(S.name)},{default:m(()=>[t[37]||(t[37]=T(" Report ",-1)),b(p,{end:"",theme:"dark"},{default:m(()=>[...t[36]||(t[36]=[T(" mdi-file-document ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),key:"0"}:void 0]),1032,["headers","items","search","data-test"])]),_:2},1024))),128))]),_:1},8,["modelValue"]))]),_:1}),o.fileOpen?(O(),k(ce,{key:0,modelValue:o.fileOpen,"onUpdate:modelValue":t[12]||(t[12]=S=>o.fileOpen=S),type:"open","api-url":"/openc3-api/tables","custom-help-text":o.fileNew?"Select a definition file (.txt) to generate a new binary table file using the default values. If you select a binary file (.bin), it will open the existing file instead. Use the search box to filter results.":null,onFile:t[13]||(t[13]=S=>i.setFile(S)),onError:t[14]||(t[14]=S=>i.setError(S))},null,8,["modelValue","custom-help-text"])):ie("",!0),o.showSaveAs?(O(),k(ce,{key:1,modelValue:o.showSaveAs,"onUpdate:modelValue":t[15]||(t[15]=S=>o.showSaveAs=S),type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":o.filename,onFilename:t[16]||(t[16]=S=>i.saveAsFilename(S)),onError:t[17]||(t[17]=S=>i.setError(S))},null,8,["modelValue","input-filename"])):ie("",!0),b(Y,{modelValue:o.showError,"onUpdate:modelValue":t[18]||(t[18]=S=>o.showError=S),title:o.errorTitle,text:o.errorText},null,8,["modelValue","title","text"])])}const ws=In("default",Ie(Xi,[["render",Qi],["__scopeId","data-v-1da113a2"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-46cbce01f21591d8619f.js","vue","./DetailsDialog-DE7lK17G-6fa47cafac9fe6ad4cfa.js","single-spa","./VWidget-5qOYva88-2f272ee8945cdc8de94c.js","vue-router","pinia","vuetify","./LimitsBar-DN1s8-MS-5e84501621bd7341c97e.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-CtYQauzA-384c81334f94e95db951.js"],(function(y,N){"use strict";var c,a,s,o,n,u,m,l,d,h,p,g,v,x,C,w;return{setters:[e=>{c=e.h},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,m=e.normalizeClass,l=e.withCtx,d=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{C=e.Z},null,e=>{w=e.T},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:C},mixins:[w],data:function(){return{width:200,height:200}},computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},f={class:"textbox-widget-container"};function V(t,r,E,L,O,k){const D=a("v-textarea"),B=a("v-list-item-title"),S=a("v-list-item"),T=a("v-list"),_=a("v-menu"),z=a("details-dialog");return s(),o("div",f,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:m(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(_,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(T,null,{default:l(()=>[(s(!0),o(d,null,h(t.contextMenuOptions,(i,M)=>(s(),p(S,{key:M,onClick:g(i.action,["stop"])},{default:l(()=>[n(B,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(z,{modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i),"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])])}const j=y("default",c(e,[["render",V],["__scopeId","data-v-ce1e6683"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CtYQauzA-384c81334f94e95db951.js","vue","./main-46cbce01f21591d8619f.js","vue-router","pinia","single-spa","vuetify"],(function(u,p){"use strict";var t,l,n,a,s,r;return{setters:[e=>{t=e.h},e=>{l=e.resolveComponent,n=e.openBlock,a=e.createBlock,s=e.normalizeStyle},e=>{r=e.h},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,i,y,f,o,g){const h=l("v-text-field");return n(),a(h,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=m=>o.value=m),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const v=u("default",r(e,[["render",c]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-CtYQauzA-384c81334f94e95db951.js","./OpenC3TimePicker-B8Vu9GBz-4db1d8c7bb11cb408e89.js","./main-46cbce01f21591d8619f.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,f){"use strict";var l,i,n,a,r,s,u,o;return{setters:[e=>{l=e.h},e=>{i=e.w},e=>{n=e.h,a=e.R},e=>{r=e.resolveComponent,s=e.openBlock,u=e.createBlock,o=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:i},mixins:[l,a],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function h(p,m,y,T,t,v){const d=r("OpenC3TimePicker");return s(),u(d,{modelValue:t.timeValue,"onUpdate:modelValue":m[0]||(m[0]=V=>t.timeValue=V),label:t.label,style:o(p.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const k=c("default",n(e,[["render",h]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-CtYQauzA-384c81334f94e95db951.js","vue","./main-46cbce01f21591d8619f.js","vue-router","pinia","single-spa","vuetify"],(function(s,p){"use strict";var t,r,n,l,a,i;return{setters:[e=>{t=e.h},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,a=e.toDisplayString},e=>{i=e.h},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function o(c,h,f,y,d,u){return r(),n("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},a(u.labelText),5)}const m=s("default",i(e,[["render",o]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-46cbce01f21591d8619f.js","./Widget-CtYQauzA-384c81334f94e95db951.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(f,v){"use strict";var u,o,h,c;return{setters:[i=>{u=i.R},i=>{o=i.h},i=>{h=i.a,c=i.r}],execute:(function(){const i={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?JSON.stringify(e).replace(/\\n/g,""):this.isObject(e)?JSON.stringify(e).replace(/\\n/g,""):t&&e?typeof e=="bigint"?this.formatBigInt(e,t):sprintf(t,e):e==null?"null":String(e)},formatBigInt(e,t){const a=t.match(/^([^%]*)%([#0 +-]*)(\d+)?\.?(\d+)?([diouxX])(.*)$/);if(a){const[,g,l,m,,r,I]=a;let d=e<0n,n=d?-e:e,s;switch(r){case"d":case"i":case"u":s=n.toString(10);break;case"o":s=n.toString(8);break;case"x":s=n.toString(16);break;case"X":s=n.toString(16).toUpperCase();break}if(l.includes("#")&&(r==="x"?s="0x"+s:r==="X"?s="0X"+s:r==="o"&&!s.startsWith("0")&&(s="0"+s)),d&&(r==="d"||r==="i")&&(s="-"+s),m){const p=Number.parseInt(m);l.includes("-")?s=s.padEnd(p," "):s=s.padStart(p,l.includes("0")?"0":" ")}return g+s+I}return e.toString()},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),a=>("0"+(a&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}};f({g:i,T:{mixins:[o,u,i],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open(this.tlmGrapherUrl,"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor(){return c(this._limitsState)},astroStatus(){return h(this.limitsColor)},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""},tlmGrapherUrl(){let e="/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]);return this.arrayIndex!==null&&(e+=encodeURIComponent(`[${this.arrayIndex}]`)),e+"/"}},created(){if(this.value===null||this.limitsState===null){const e=this.parseItemName(this.parameters[2]);this.parameters[2]=e.name,this.arrayIndex=e.arrayIndex,this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="FORMATTED";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.log(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}}})})}}));
|