openc3-cosmos-tool-tablemanager 7.4.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/tablemanager/{ArrayWidget-CIDdZjk3-3d456b86878c045f0d1d.js → ArrayWidget-9OSo49r--15f0c6ee609dd2e7acf7.js} +2 -2
- data/tools/tablemanager/{ArrayplotWidget-BfO1atvG-58a18d102627a8592c71.js → ArrayplotWidget-D5C_WTX2-d9551b6536cf93fea8d6.js} +1 -1
- data/tools/tablemanager/{BarColumn-CHX_3ye3-7ccabfde58c0374e6864.js → BarColumn-CvHnnifr-3447e4df90e81d8d52bb.js} +1 -1
- data/tools/tablemanager/{BlockWidget-DSbunlY_-e002a11e1cdbfc7f4057.js → BlockWidget-DuEDZ4dJ-d02d17ac12a76a1eead3.js} +2 -2
- data/tools/tablemanager/{ButtonWidget-BB4ZOCI8-9b0d9028322747e1e741.js → ButtonWidget-CZIUtd9z-2cb1e24f34b883fc28f0.js} +1 -1
- data/tools/tablemanager/{CanvasWidget-DsyMt7xW-0f925f00e079062ef340.js → CanvasWidget-C4-pXiKY-778ab562504820d71140.js} +1 -1
- data/tools/tablemanager/CanvasdotWidget-Bh0HHx67-9334939465a7df436c30.js +1 -0
- data/tools/tablemanager/{CanvasimageWidget-DY1DDf0a-21443c767e1928db9abd.js → CanvasimageWidget-Bu5NmsDs-9b1a8510f094cd0378b5.js} +1 -1
- data/tools/tablemanager/{CanvasimagevalueWidget-0lc2cCPV-11a2c8acf1145f1a20d6.js → CanvasimagevalueWidget-Dv8dQrnj-79c5001f658c86253a43.js} +1 -1
- data/tools/tablemanager/CanvaslabelWidget-68IeeM3a-9d4ce78e712f8bc7d1f8.js +1 -0
- data/tools/tablemanager/{CanvaslabelvalueWidget-Cf_dcDW2-7f7d5be31da99a05644f.js → CanvaslabelvalueWidget-C6j_A4z6-0d0534e4749365f37a33.js} +1 -1
- data/tools/tablemanager/{CanvaslineWidget-jg2ozQ0N-8a8f83212719c84e2005.js → CanvaslineWidget-BgQ6wLDv-eb8681a83f7823c3ca3f.js} +1 -1
- data/tools/tablemanager/{CanvaslinevalueWidget-CKpjqlKA-8ec169a3639fce3b7642.js → CanvaslinevalueWidget-C6-HkTJp-0c0a81707daa50b20b9b.js} +1 -1
- data/tools/tablemanager/{CheckbuttonWidget-BWXinMaT-0283a85cfe85fb13461f.js → CheckbuttonWidget-DJmT73t9-5201fab99a575afa217a.js} +1 -1
- data/tools/tablemanager/{ComboboxWidget-BzKkyRDT-83919823b21b54ef38e6.js → ComboboxWidget-vTtsjxRm-05e9d125b97d7a82e255.js} +1 -1
- data/tools/tablemanager/DateWidget-BjKIDtsf-a7c3b47e6febb0ab2a95.js +1 -0
- data/tools/tablemanager/{DetailsDialog-CLPj0nP0-365d9d3e130590b5ffc6.js → DetailsDialog-S1nw1d0h-1761970659adf7afed91.js} +1 -1
- data/tools/tablemanager/{DynamicWidget-yna_ejyc-13c7ad60497919503da1.js → DynamicWidget-yna_ejyc-dbde16c7adf17f697f08.js} +1 -1
- data/tools/tablemanager/{FilechecksumWidget-DqNThsOX-3c53bd9a770a50346a95.js → FilechecksumWidget-obppYSP4-bf72bd952e6555565983.js} +1 -1
- data/tools/tablemanager/{FiledisplayWidget-BRhhiVEs-2f0a046d5e1ec07bec05.js → FiledisplayWidget-BstroKFo-ab39aede57c77cffc59e.js} +1 -1
- data/tools/tablemanager/{FormatvalueWidget-pEjAh0h2-9309df32eb560ba3cf3b.js → FormatvalueWidget-MJIJg6Bf-239dd8e45b24e8ff89d5.js} +1 -1
- data/tools/tablemanager/Graph-BL-czUPp-1aa09efedec8ea514b59.js +1 -0
- data/tools/tablemanager/{GraphWidget-BZjBkefj-94fdb931e21c3eb88447.js → GraphWidget-C8KRp-QN-8fd8daa00778ec448307.js} +1 -1
- data/tools/tablemanager/{HorizontalWidget-Brag6E4y-61cf029d3f3457fe7d1d.js → HorizontalWidget-Cn9qnYVh-7fc941fa86502633c93b.js} +1 -1
- data/tools/tablemanager/{HorizontalboxWidget-BnkH4cVq-d4e1a6cb8e3e6377f076.js → HorizontalboxWidget-gz8uYYFZ-ec9133099e85b940dfff.js} +1 -1
- data/tools/tablemanager/HorizontallineWidget-CrDua5-L-a5ca042af4afa96fb271.js +1 -0
- data/tools/tablemanager/{IframeWidget-Ciu5u58E-40895fac48619c381bf3.js → IframeWidget-CtS7MjKL-f25b744ad00030d36bc4.js} +1 -1
- data/tools/tablemanager/ImageLoader-Vpn27aUN-0d7c201cdde9446e1294.js +1 -0
- data/tools/tablemanager/{ImageviewerWidget-vWMGPveb-bc5e1ba60a1f9e4667cf.js → ImageviewerWidget-Kmzt8wuP-38f617facfe3163e0540.js} +1 -1
- data/tools/tablemanager/{LabelWidget-DVp0CmFH-8067086869d9aba91261.js → LabelWidget-DIZpHxYX-f79fa51a02adeb34ea27.js} +1 -1
- data/tools/tablemanager/LabelledWidget-CGxDI8XZ-13ae7060655bea1e7721.js +1 -0
- data/tools/tablemanager/LabelprogressbarWidget-CXOc5p8G-dbbd02aec439d7536240.js +1 -0
- data/tools/tablemanager/LabelsparklineWidget-B_LuqFcA-8fb032d473f95add4a78.js +1 -0
- data/tools/tablemanager/LabelvalueWidget--G4wHMZL-06d376e7a31f6618bbff.js +1 -0
- data/tools/tablemanager/{LabelvaluedescWidget-c5BUCRxB-66e00c16c09b7587da1c.js → LabelvaluedescWidget-DqLK0wvi-783aa42cd48635db341f.js} +1 -1
- data/tools/tablemanager/{LabelvaluelimitsbarWidget-DBKZLpXJ-5db8842d404e5c638680.js → LabelvaluelimitsbarWidget-BWOQJkLP-b113a9a7f9b15f2989dc.js} +1 -1
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-BfF73Y2F-8d1ec1d2b6c4f94252dd.js +1 -0
- data/tools/tablemanager/LabelvaluerangebarWidget-CKsFRW6t-9605273563a7feeb1889.js +1 -0
- data/tools/tablemanager/{Layout-Df-lJgpB-262ccc75e7609f60b583.js → Layout-CGL1JfeU-f37605a14e69e29532e7.js} +1 -1
- data/tools/tablemanager/{LedWidget-C97EJXBo-4ea685513fee83dd9732.js → LedWidget-DrAJ8_fN-8d01ecb6df21e2761f69.js} +1 -1
- data/tools/tablemanager/{LimitsBar-DNV39okL-3c0c95101783d95a40f4.js → LimitsBar-CxPzG0Zv-5a5327231babf0874b27.js} +1 -1
- data/tools/tablemanager/{LimitsbarWidget-BIO6xztx-4d2c1371095565476999.js → LimitsbarWidget-1IayV5D7-8c80dfad614b19b6fb49.js} +1 -1
- data/tools/tablemanager/{LimitscolorWidget-BGrNA65J-3b00cef23b3790434db9.js → LimitscolorWidget-C7LY3BQ7-3565617131c900283d55.js} +1 -1
- data/tools/tablemanager/{LimitscolumnWidget-Bw6EXJs9-7d999ccca30a9b0a55f1.js → LimitscolumnWidget-JhIc5Sjl-9c2e6b8a72595b695ba6.js} +1 -1
- data/tools/tablemanager/LinegraphWidget-BaROxuUn-15179f2d4add58e313ab.js +1 -0
- data/tools/tablemanager/{MatrixbycolumnsWidget-C33-g7kK-c7de3d1b8679aba22b90.js → MatrixbycolumnsWidget-i0gGPMOV-e67305e8543241175300.js} +1 -1
- data/tools/tablemanager/{OpenC3TimePicker-cOr0aOVn-49536c5ea49488f3e752.js → OpenC3TimePicker-DDTLwTEw-2846f70a54c404d41394.js} +1 -1
- data/tools/tablemanager/{ProgressbarWidget-DqfSMI10-cafd068196958841e23e.js → ProgressbarWidget-QxEq8C4A-69c742d7e5b462892e85.js} +1 -1
- data/tools/tablemanager/{RadiobuttonWidget-CSQeEacF-d6463b0ad411e64dd683.js → RadiobuttonWidget-DYf3qvBq-2a9bd12c4cdd061adf51.js} +1 -1
- data/tools/tablemanager/RadiogroupWidget-C0b_ckej-7634b998978efeddc266.js +1 -0
- data/tools/tablemanager/{RangebarWidget-CJSUof1--b0d47e5f54f9c407f79a.js → RangebarWidget-DcSEHktI-aaa148d3a3afca2d5f9a.js} +1 -1
- data/tools/tablemanager/{RollupWidget-C977Lkcx-12bc4119507e8da2b447.js → RollupWidget-AVS4drYX-8a62066dec922a413c42.js} +1 -1
- data/tools/tablemanager/{ScrollwindowWidget-BFxz61oW-18b2ad9102c388cb52a4.js → ScrollwindowWidget-Dpf3BScA-b44f82a74e8ae3ecdb0f.js} +1 -1
- data/tools/tablemanager/{SignalWidget-BT6AcbBx-93ebd7ce32db6f50f2a0.js → SignalWidget-Q1YtPsNw-a84815d984cf394605ec.js} +1 -1
- data/tools/tablemanager/SpacerWidget-DGEOqhu_-850bf6476c003142779f.js +1 -0
- data/tools/tablemanager/SparklineWidget-DbNWbNzY-36aa6e804523cc2ecc5a.js +1 -0
- data/tools/tablemanager/TabbookWidget-CrkPPZIF-2d473b0f1995c46fafb9.js +1 -0
- data/tools/tablemanager/TableManager-8b04ea028c333295b337.js +16 -0
- data/tools/tablemanager/TextboxWidget-CfQEzaRr-219d37ed0d8cd1cb8b13.js +1 -0
- data/tools/tablemanager/TextfieldWidget-BQL8dOTg-331783b1d384fe948fd5.js +1 -0
- data/tools/tablemanager/{TimeWidget-BTaXBxVm-44f3c0a51a22f9d3894d.js → TimeWidget-DiE_oc7J-44fd9195cb6e71101e89.js} +1 -1
- data/tools/tablemanager/TitleWidget-C5a_ZsqM-2396fbf868359df63e77.js +1 -0
- data/tools/tablemanager/VWidget-D4ipW0SF-41740de5165634ad2357.js +1 -0
- data/tools/tablemanager/ValueWidget-9JNo-Sk8-ce6de648c290b396b11f.js +1 -0
- data/tools/tablemanager/{ValuelimitsbarWidget-CqRkPwWS-4371f34ec5df13570c3c.js → ValuelimitsbarWidget-CqiFVnaT-df98be46622621079dff.js} +1 -1
- data/tools/tablemanager/ValuelimitscolumnWidget-DWDFVRNg-5e781288bcc6f71fafc2.js +1 -0
- data/tools/tablemanager/ValuerangebarWidget-BAVMrD0L-831272b3b2fce07512c2.js +1 -0
- data/tools/tablemanager/{VerticalWidget-CoJiy2TT-323f2d1c115ee53f0548.js → VerticalWidget-Dw0j42K2-7bb3ed93472e1c238aff.js} +1 -1
- data/tools/tablemanager/{VerticalboxWidget-BD5Eq3BH-7cb5910868a2c335cf65.js → VerticalboxWidget-xusQtXo0-f05e9ada6ac664ccc1b0.js} +1 -1
- data/tools/tablemanager/{Widget-ClRi417b-4840d840a29c7183f214.js → Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js} +1 -1
- data/tools/tablemanager/main-3c97f07cff18342b565e.js +1491 -0
- data/tools/tablemanager/main.js +1 -1
- metadata +72 -72
- data/tools/tablemanager/CanvasdotWidget-BZpkCAoH-a35996d5f3308a108b0c.js +0 -1
- data/tools/tablemanager/CanvaslabelWidget-C6TDW9WO-4f886584c71cbcf0e604.js +0 -1
- data/tools/tablemanager/DateWidget-qUbLzQsX-758ae8da877991efcd80.js +0 -1
- data/tools/tablemanager/Graph-GVQZltap-57ac29b4ccc3557d2600.js +0 -1
- data/tools/tablemanager/HorizontallineWidget-k7fL4EPN-8cd3cca6b7ba4af83580.js +0 -1
- data/tools/tablemanager/ImageLoader-DH5e4lg8-d35cfbffcdf316573927.js +0 -1
- data/tools/tablemanager/LabelledWidget-1DeE1-6G-3b18f33223c7c1768426.js +0 -1
- data/tools/tablemanager/LabelprogressbarWidget-DME-BrZe-9da8d98c2108318a795e.js +0 -1
- data/tools/tablemanager/LabelsparklineWidget-4iDHGnPL-3561daee5e6c25c80b86.js +0 -1
- data/tools/tablemanager/LabelvalueWidget-C6NQSHTb-635124dc5b6c88f27875.js +0 -1
- data/tools/tablemanager/LabelvaluelimitscolumnWidget-NdEu06go-feed26414158f1babbb1.js +0 -1
- data/tools/tablemanager/LabelvaluerangebarWidget-CL5HLK0t-80f4d832eb0071f18471.js +0 -1
- data/tools/tablemanager/LinegraphWidget-Drf9tTPN-68eb1da25e220788df81.js +0 -1
- data/tools/tablemanager/RadiogroupWidget-DlQN9z-Z-97a21f6fbcca5e17941c.js +0 -1
- data/tools/tablemanager/SpacerWidget-B_f09KAi-c2420619ab4528b2bdd1.js +0 -1
- data/tools/tablemanager/SparklineWidget-Bji9DILO-c5bf2bbe580cb0f4deba.js +0 -1
- data/tools/tablemanager/TabbookWidget-B74U8t2i-7f95e56de419a4c5ad46.js +0 -1
- data/tools/tablemanager/TableManager-92fe66fe52775564c13e.js +0 -16
- data/tools/tablemanager/TextboxWidget-CbKE9aSW-0511057cee29e2056835.js +0 -1
- data/tools/tablemanager/TextfieldWidget-CpdmfNk5-137ed699deb4b5d896c7.js +0 -1
- data/tools/tablemanager/TitleWidget-ulO_gdVY-7e3621358cb59b109134.js +0 -1
- data/tools/tablemanager/VWidget-C4VLQ7-b-6e0c7bced9c086b4b9c2.js +0 -1
- data/tools/tablemanager/ValueWidget-B3-Jjoux-fa607809a9626b514025.js +0 -1
- data/tools/tablemanager/ValuelimitscolumnWidget-CF4CN14a-cdc27f85cb9c09b2c895.js +0 -1
- data/tools/tablemanager/ValuerangebarWidget-DJtrknKH-d38c7021808d30874276.js +0 -1
- data/tools/tablemanager/main-e41b7aa8f8baeaf00ba2.js +0 -1491
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./main-
|
|
1
|
+
System.register(["./main-3c97f07cff18342b565e.js","vue","./DetailsDialog-S1nw1d0h-1761970659adf7afed91.js","single-spa","./VWidget-D4ipW0SF-41740de5165634ad2357.js","vue-router","pinia","vuetify","./LimitsBar-CxPzG0Zv-5a5327231babf0874b27.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js"],(function(V,z){"use strict";var y,i,n,o,c,d,u,h,p,f,C,x,w,g,S,v,k,M,D;return{setters:[e=>{y=e.g},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,k=e.createTextVNode},e=>{M=e.Z},null,e=>{D=e.C},null,null,null,null,null,null],execute:(function(){const e={components:{DetailsDialog:M},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,P,R,r,s){const L=i("rux-status"),b=i("v-tooltip"),_=i("label-widget"),B=i("v-list-item-title"),E=i("v-list-item"),T=i("v-list"),U=i("v-menu"),j=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(U,{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(T,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(B,null,{default:p(()=>[k(C(a.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),u(j,{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 I=V("default",y(e,[["render",N],["__scopeId","data-v-d4f5103d"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./BarColumn-
|
|
1
|
+
System.register(["./BarColumn-CvHnnifr-3447e4df90e81d8d52bb.js","vue","./main-3c97f07cff18342b565e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue-router","pinia","single-spa","vuetify"],(function(n,v){"use strict";var s,a,l,r,h,d;return{setters:[i=>{s=i.l},i=>{a=i.openBlock,l=i.createElementBlock,r=i.normalizeStyle,h=i.createStaticVNode},i=>{d=i.g},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 this.screenError("LIMITSCOLUMN","Item has no limits settings","Only items with limits")}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function o(e,t,m,u,w,c){return a(),l("div",{class:"limitsbar",style:r([c.cssProps,e.computedStyle])},[...t[0]||(t[0]=[h('<div class="limitsbar__container" data-v-60707a15><div class="limitsbar__redlow" data-v-60707a15></div><div class="limitsbar__redhigh" data-v-60707a15></div><div class="limitsbar__yellowlow" data-v-60707a15></div><div class="limitsbar__yellowhigh" data-v-60707a15></div><div class="limitsbar__greenlow" data-v-60707a15></div><div class="limitsbar__greenhigh" data-v-60707a15></div><div class="limitsbar__blue" data-v-60707a15></div><div class="limitsbar__line" data-v-60707a15></div><div class="limitsbar__arrow" data-v-60707a15></div></div>',1)])],4)}const g=n("default",d(i,[["render",o],["__scopeId","data-v-60707a15"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./GraphWidget-C8KRp-QN-8fd8daa00778ec448307.js","./main-3c97f07cff18342b565e.js","vue","./Graph-BL-czUPp-1aa09efedec8ea514b59.js","single-spa","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue-router","pinia","vuetify","./OpenC3TimePicker-DDTLwTEw-2846f70a54c404d41394.js"],(function(c,g){"use strict";var i,r,n,o,a,l,d;return{setters:[t=>{i=t.M},t=>{r=t.g},t=>{n=t.resolveComponent,o=t.openBlock,a=t.createBlock,l=t.normalizeStyle},t=>{d=t.q},null,null,null,null,null,null],execute:(function(){const t={components:{Graph:d},mixins:[i]};function h(e,s,v,y,S,f){const u=n("graph");return o(),a(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:s[0]||(s[0]=()=>e.state="pause"),onStart:s[1]||(s[1]=()=>e.state="start"),onError:s[2]||(s[2]=p=>e.emitScreenError(p.message,p)),onRecovered:s[3]||(s[3]=()=>e.clearScreenErrors())},null,8,["id","state","selected-graph-id","start-time","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const m=c("default",r(t,[["render",h]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Layout-
|
|
1
|
+
System.register(["./Layout-CGL1JfeU-f37605a14e69e29532e7.js","./main-3c97f07cff18342b565e.js","vue","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue-router","pinia","single-spa","vuetify"],(function(w,D){"use strict";var g,y,v,d,r,s,f,l,o,i,c,h,k,p,u;return{setters:[t=>{g=t.r},t=>{y=t.g,v=t.T},t=>{d=t.resolveComponent,r=t.openBlock,s=t.createElementBlock,f=t.normalizeStyle,l=t.Fragment,o=t.renderList,i=t.createBlock,c=t.withCtx,h=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,A,E,T){const b=d("v-tooltip");return r(),s("table",{style:f(n.computedStyle),role:"presentation"},[(r(!0),s(l,null,o(T.widgetChunks,(N,x)=>(r(),s("tr",{key:"r"+x},[(r(!0),s(l,null,o(N,(e,z)=>(r(),s("td",{key:"c"+z},[n.getTooltipText(e)?(r(),i(b,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:c(({props:B})=>[(r(),i(p(e.type),u({ref_for:!0},{...n.listeners,...B},{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(()=>[h("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-3c97f07cff18342b565e.js","vue"],(function(I,K){"use strict";var V,g,n,S,N,b,v,$,o,u,c,T;return{setters:[s=>{V=s.P,g=s.g},s=>{n=s.resolveComponent,S=s.openBlock,N=s.createBlock,b=s.withKeys,v=s.normalizeClass,$=s.normalizeStyle,o=s.withCtx,u=s.createVNode,c=s.createTextVNode,T=s.mergeProps}],execute:(function(){const s=new Map,h=new Map;let d=null,w=0;function k(e,t,a,r=!0){h.delete(e.name),r&&s.set(e.name,t),e.resolve(t)}function C(e,t){d===e&&(d=null),new V().get_settings(e.map(a=>a.name)).then(a=>{e.forEach((r,i)=>{k(r,a?.[i]??r.fallback)})}).catch(()=>{e.forEach(a=>k(a,a.fallback,t,!1))})}function _(e,t){if(s.has(e))return Promise.resolve(s.get(e));if(!h.has(e)){let a;if(h.set(e,new Promise(r=>{a=r})),d===null){const r=[],i=w;d=r,queueMicrotask(()=>C(r,i))}d.push({name:e,fallback:t,resolve:a})}return h.get(e)}function x(e){return s.has(e)?s.get(e):void 0}const B={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:x("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 _("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 r=Number.parseInt(t[1],10),i=Number.parseInt(t[2],10),l=t[3]?Number.parseInt(t[3],10):0;if(r>=0&&r<=23&&i>=0&&i<=59&&l>=0&&l<=59)return`${r.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`}const a=e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*(AM|PM|am|pm)$/i);if(a){let r=Number.parseInt(a[1],10);const i=Number.parseInt(a[2],10),l=a[3]?Number.parseInt(a[3],10):0,p=a[4].toUpperCase();if(r>=1&&r<=12&&i>=0&&i<=59&&l>=0&&l<=59)return p==="AM"?r===12&&(r=0):r!==12&&(r+=12),`${r.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}:${l.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),r=Number.parseInt(t[1],10),i=t.length>2?Number.parseInt(t[2],10):0;return Number.isNaN(a)||Number.isNaN(r)||Number.isNaN(i)?"":`${a.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${i.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 r=Number.parseInt(t[1],10),i=t.length>2?Number.parseInt(t[2],10):0;if(Number.isNaN(a)||Number.isNaN(r)||Number.isNaN(i))return e;const l=a>=12?"PM":"AM";a=a%12,a=a||12;const p=a.toString().padStart(2,"0"),f=r.toString().padStart(2,"0"),y=i.toString().padStart(2,"0");return`${p}:${f}:${y} ${l}`}}};function M(e,t,a,r,i,l){const p=n("v-icon"),f=n("v-time-picker"),y=n("v-spacer"),F=n("v-btn"),D=n("v-card-actions"),P=n("v-card"),z=n("v-menu"),A=n("v-text-field");return S(),N(A,{modelValue:i.inputValue,"onUpdate:modelValue":t[2]||(t[2]=m=>i.inputValue=m),label:a.label,rules:l.computedRules,"error-messages":a.errorMessages,"hide-details":a.hideDetails,variant:a.variant,density:a.density,style:$(l.computedStyle),class:v(a.textFieldClass),disabled:a.disabled,"data-test":a.dataTest,onBlur:l.handleBlur,onFocus:t[3]||(t[3]=m=>e.$emit("focus",m)),onKeydown:b(l.handleBlur,["enter"])},{"prepend-inner":o(()=>[u(z,{modelValue:i.menu,"onUpdate:modelValue":t[1]||(t[1]=m=>i.menu=m),"close-on-content-click":!1,transition:"scale-transition",offset:"16"},{activator:o(({props:m})=>[u(p,T(m,{class:"cursor-pointer"}),{default:o(()=>[...t[4]||(t[4]=[c(" mdi-clock-outline ",-1)])]),_:1},16)]),default:o(()=>[u(P,{class:"time-picker-card"},{default:o(()=>[u(f,{modelValue:i.tempTime,"onUpdate:modelValue":t[0]||(t[0]=m=>i.tempTime=m),format:i.timeFormat,scrollable:"","use-seconds":"","hide-header":""},null,8,["modelValue","format"]),u(D,null,{default:o(()=>[u(y),u(F,{variant:"text",onClick:l.cancel},{default:o(()=>[...t[5]||(t[5]=[c("Cancel",-1)])]),_:1},8,["onClick"]),u(F,{color:"primary",variant:"text",onClick:l.save},{default:o(()=>[...t[6]||(t[6]=[c("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 U=I("w",g(B,[["render",M],["__scopeId","data-v-3a6a70ee"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue","./main-3c97f07cff18342b565e.js","vue-router","pinia","single-spa","vuetify"],(function(u,d){"use strict";var s,a,r,l,i,n;return{setters:[e=>{s=e.f},e=>{a=e.resolveComponent,r=e.openBlock,l=e.createBlock,i=e.normalizeStyle},e=>{n=e.g},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=u("default",n(e,[["render",o],["__scopeId","data-v-af1daff2"]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue","./main-3c97f07cff18342b565e.js","vue-router","pinia","single-spa","vuetify"],(function(s,v){"use strict";var l,t,n,a,r,u;return{setters:[e=>{l=e.f},e=>{t=e.resolveComponent,n=e.openBlock,a=e.createBlock,r=e.normalizeStyle},e=>{u=e.g},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,m,c,f,p,b){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 y=s("default",u(e,[["render",o]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout-CGL1JfeU-f37605a14e69e29532e7.js","vue","./main-3c97f07cff18342b565e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue-router","pinia","single-spa","vuetify"],(function(f,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.g},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 h(n,y,B,z,v,L){const k=l("v-radio-group");return r(),s(k,{modelValue:v.selectedIndex,"onUpdate:modelValue":y[0]||(y[0]=t=>v.selectedIndex=t),"hide-details":"",density:"compact",style:i(n.computedStyle)},{default:c(()=>[(r(!0),o(u,null,m(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{key:x,value:x,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=f("default",g(e,[["render",h]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue","./main-3c97f07cff18342b565e.js","vue-router","pinia","single-spa","vuetify"],(function(u,m){"use strict";var r,a,n,h,s,l;return{setters:[e=>{r=e.f},e=>{a=e.openBlock,n=e.createElementBlock,h=e.normalizeStyle,s=e.createElementVNode},e=>{l=e.g},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-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue","./main-3c97f07cff18342b565e.js","vue-router","pinia","single-spa","vuetify"],(function(m,p){"use strict";var l,r,a,c,o,u;return{setters:[t=>{l=t.f},t=>{r=t.resolveComponent,a=t.openBlock,c=t.createBlock,o=t.normalizeStyle},t=>{u=t.g},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,b,g,i){const d=r("rux-monitoring-icon");return a(),c(d,{class:"rux-icon",style:o([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 f=m("default",u(t,[["render",h]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Layout-
|
|
1
|
+
System.register(["./Layout-CGL1JfeU-f37605a14e69e29532e7.js","vue","./main-3c97f07cff18342b565e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue-router","pinia","single-spa","vuetify"],(function(w,x){"use strict";var m,u,r,s,y,l,v,i,o,f,d,c,p,h;return{setters:[t=>{m=t.r},t=>{u=t.resolveComponent,r=t.openBlock,s=t.createElementBlock,y=t.normalizeStyle,l=t.Fragment,v=t.renderList,i=t.createBlock,o=t.withCtx,f=t.createElementVNode,d=t.toDisplayString,c=t.resolveDynamicComponent,p=t.mergeProps},t=>{h=t.g},null,null,null,null,null],execute:(function(){const t={mixins:[m],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(g=>{g.settings.find(a=>a[0]==="MARGIN"||a[0].startsWith("RAW")&&a[1].toUpperCase().includes("MARGIN"))===void 0&&g.settings.push(["MARGIN",n])})}}};function k(n,g,a,B,b,A){const C=u("v-tooltip");return r(),s("div",{ref:"container",style:y(n.computedStyle),class:"overflow-y-auto"},[(r(!0),s(l,null,v(n.widgets,(e,N)=>(r(),s(l,{key:N},[n.getTooltipText(e)?(r(),i(C,{key:0,"open-delay":n.getTooltipDelay(e),location:"top","activator-props":n.getTooltipActivatorProps(e)},{activator:o(({props:T})=>[(r(),i(c(e.type),p({ref_for:!0},{...n.listeners,...T},{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 z=w("default",h(t,[["render",k]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./VWidget-
|
|
1
|
+
System.register(["./VWidget-D4ipW0SF-41740de5165634ad2357.js","vue","./main-3c97f07cff18342b565e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","vue-router","pinia","single-spa","vuetify"],(function(c,h){"use strict";var r,l,n,a,i,s;return{setters:[t=>{r=t.C},t=>{l=t.resolveComponent,n=t.openBlock,a=t.createBlock,i=t.normalizeStyle},t=>{s=t.g},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 p=l("v-btn");return n(),a(p,{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-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue","./main-3c97f07cff18342b565e.js","vue-router","pinia","single-spa","vuetify"],(function(l,o){"use strict";var t,n,i,s,r;return{setters:[e=>{t=e.f},e=>{n=e.openBlock,i=e.createElementBlock,s=e.normalizeStyle},e=>{r=e.g},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,f,h){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-C8KRp-QN-8fd8daa00778ec448307.js","./main-3c97f07cff18342b565e.js","vue","./Graph-BL-czUPp-1aa09efedec8ea514b59.js","single-spa","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue-router","pinia","vuetify","./OpenC3TimePicker-DDTLwTEw-2846f70a54c404d41394.js"],(function(p,c){"use strict";var i,s,n,r,a,d,o;return{setters:[e=>{i=e.M},e=>{s=e.g},e=>{n=e.resolveComponent,r=e.openBlock,a=e.createBlock,d=e.normalizeStyle},e=>{o=e.q},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 l(t,g,m,v,f,y){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=p("default",s(e,[["render",l]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Layout-CGL1JfeU-f37605a14e69e29532e7.js","vue","./main-3c97f07cff18342b565e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue-router","pinia","single-spa","vuetify"],(function(k,E){"use strict";var f,l,n,i,g,T,a,c,u,o,w,d,b,y,v,V;return{setters:[e=>{f=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,w=e.createTextVNode,d=e.toDisplayString,b=e.createElementVNode,y=e.resolveDynamicComponent,v=e.mergeProps},e=>{V=e.g},null,null,null,null,null],execute:(function(){const e={mixins:[f],emits:["min-max-screen"],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(r,m,U,h,P,$){const N=l("v-tab"),_=l("v-tabs"),C=l("v-tooltip"),D=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(()=>[w(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(D,{key:p},{default:a(()=>[(n(!0),i(c,null,u(s.widgets,(t,z)=>(n(),i(c,{key:`${p}-${z}`},[r.getTooltipText(t)?(n(),o(C,{key:0,"open-delay":r.getTooltipDelay(t),location:"top","activator-props":r.getTooltipActivatorProps(t)},{activator:a(({props:B})=>[(n(),o(y(t.type),v({ref_for:!0},{...r.listeners,...B},{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 L=k("default",V(e,[["render",x]]))})}}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
System.register(["./main-3c97f07cff18342b565e.js","vue","single-spa","./VWidget-D4ipW0SF-41740de5165634ad2357.js","./IframeWidget-CtS7MjKL-f25b744ad00030d36bc4.js","vue-router","pinia","vuetify","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(ln,Li){"use strict";var Ae,Ce,qe,O,S,T,It,b,m,B,I,V,Q,se,ze,P,He,Je,We,ie,Ke,ke,Lt,Vt,$t,dt,Mt,qt,zt;return{setters:[j=>{Ae=j.g,Ce=j.E,qe=j._},j=>{O=j.resolveComponent,S=j.openBlock,T=j.createBlock,It=j.Teleport,b=j.createVNode,m=j.withCtx,B=j.createElementVNode,I=j.toDisplayString,V=j.createElementBlock,Q=j.Fragment,se=j.renderList,ze=j.ref,P=j.createTextVNode,He=j.mergeProps,Je=j.createSlots,We=j.normalizeStyle,ie=j.createCommentVNode,Ke=j.withKeys,ke=j.withModifiers,Lt=j.withDirectives,Vt=j.vShow,$t=j.computed,dt=j.watch,Mt=j.normalizeProps,qt=j.guardReactiveProps},null,j=>{zt=j.V},null,null,null,null,null,null],execute:(function(){var j=document.createElement("style");j.textContent=`.filename[data-v-3536c544]{background-color:var(--color-background-base-default)}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(j);const cn={__name:"TopBarMenu",props:{menu:{type:Object,required:!0},title:{type:String,required:!0}},emits:["submenu-click"],setup(e,{emit:t}){const r=t,n=ze(!1);function o(){n.value=!1}function s(i){return i.replaceAll(" ","-").toLowerCase()}return(i,a)=>{const c=O("v-icon"),u=O("v-btn"),d=O("v-divider"),f=O("v-list-item-title"),h=O("v-list-item"),p=O("v-list"),E=O("v-menu"),F=O("v-radio"),_=O("v-list-item-action"),w=O("v-radio-group"),v=O("v-checkbox"),x=O("v-tooltip");return S(),T(E,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=g=>n.value=g),"close-on-content-click":!1},{activator:m(({props:g})=>[b(u,He(g,{variant:"outlined",class:"mx-1 menu-button",text:e.menu.label,"data-test":s(`${e.title} ${e.menu.label}`)}),{append:m(()=>[b(c,{class:"menu-button-icon"},{default:m(()=>[...a[1]||(a[1]=[P(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:m(()=>[b(p,null,{default:m(()=>[(S(!0),V(Q,null,se(e.menu.items,(g,D)=>(S(),V(Q,null,[g.divider?(S(),T(d,{key:D+"-divider"})):g.subMenu&&g.subMenu.length>0?(S(),V("div",{key:D+"-submenu"},[(S(),T(E,{key:D,"open-on-hover":"",location:"right"},{activator:m(({props:k})=>[(S(),T(h,He({ref_for:!0},k,{key:D,disabled:g.disabled}),Je({append:m(()=>[b(c,null,{default:m(()=>[...a[2]||(a[2]=[P(" mdi-chevron-right ",-1)])]),_:1})]),default:m(()=>[!g.radio&&!g.checkbox?(S(),T(f,{key:0,style:We("cursor: pointer;"+(g.disabled?"opacity: 0.2":""))},{default:m(()=>[P(I(g.label),1)]),_:2},1032,["style"])):ie("",!0)]),_:2},[g.icon?{name:"prepend",fn:m(()=>[b(c,{disabled:g.disabled},{default:m(()=>[P(I(g.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:m(()=>[b(p,null,{default:m(()=>[(S(!0),V(Q,null,se(g.subMenu,(k,X)=>(S(),T(h,{key:X,"prepend-icon":k.icon,onClick:he=>r("submenu-click",k)},{default:m(()=>[b(f,null,{default:m(()=>[P(I(k.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):g.radioGroup?(S(),T(w,{key:D+"-radio-group",class:"ma-0 pa-0",density:"compact","hide-details":"","model-value":g.value,"onUpdate:modelValue":g.command},{default:m(()=>[(S(!0),V(Q,null,se(g.choices,(k,X)=>(S(),T(h,{key:X+"-choice"},{default:m(()=>[b(_,{class:"list-action"},{default:m(()=>[b(F,{color:"secondary",label:k.label,value:k.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(S(),T(x,{key:D+"-list",disabled:!g.tooltip,text:g.tooltip,location:"right"},{activator:m(({props:k})=>[B("div",He({ref_for:!0},k),[b(h,{disabled:g.disabled,"data-test":s(`${e.title} ${e.menu.label} ${g.label}`),onClick:()=>{g.command(g),g.checkbox||o()}},Je({default:m(()=>[g.checkbox?(S(),T(_,{key:0,class:"list-action"},{default:m(()=>[b(v,{modelValue:g.checked,"onUpdate:modelValue":X=>g.checked=X,label:g.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ie("",!0),!g.radio&&!g.checkbox?(S(),T(f,{key:1,style:We("cursor: pointer;"+(g.disabled?"opacity: 0.2":""))},{default:m(()=>[P(I(g.label),1)]),_:2},1032,["style"])):ie("",!0)]),_:2},[g.icon?{name:"prepend",fn:m(()=>[b(c,{icon:g.icon,disabled:g.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["disabled","data-test","onClick"])],16)]),_:2},1032,["disabled","text"]))],64))),256))]),_:1})]),_:1},8,["modelValue"])}}},un={components:{TopBarMenu:cn},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}}},dn={class:"app-title mr-2"};function fn(e,t,r,n,o,s){const i=O("v-col"),a=O("v-row"),c=O("TopBarMenu");return S(),T(It,{to:"#openc3-menu"},[b(a,{"no-gutters":""},{default:m(()=>[b(i,{"align-self":"end"},{default:m(()=>[B("span",dn,I(r.title),1)]),_:1})]),_:1}),b(a,{dense:"",class:"flex-nowrap"},{default:m(()=>[(S(!0),V(Q,null,se(r.menus,(u,d)=>(S(),T(c,{key:d+"-top-menu",ref_for:!0,ref:"topmenu",menu:u,title:r.title,onSubmenuClick:s.subMenuClick},null,8,["menu","title","onSubmenuClick"]))),128))]),_:1})])}const hn=Ae(un,[["render",fn],["__scopeId","data-v-f4fb184e"]]),pn=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"},mn={class:"tree-node"},gn={class:"content-wrapper"},bn=["tabindex"],yn={key:1},_n={key:2,class:"children"},wn={__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 r=e,n=ze(r.node.isOpen||!1),o=$t(()=>{const p=E=>!r.search||E.path.toLowerCase().includes(r.search.toLowerCase())?!0:!!E.children?.some(p);return p(r.node)});dt(()=>r.node.isOpen,p=>{n.value=p}),dt(()=>r.search,p=>{p?r.node.isOpen||d():r.node.isOpen&&d()});const s=t,i=ze({show:!1,text:"",x:0,y:0}),a=(p,E)=>{if(!E||E.length<=50)return;const F=p.target.getBoundingClientRect(),_=F.left,w=F.top;i.value.text=E,i.value.x=_,i.value.y=w-40,i.value.show=!0},c=()=>{i.value.show=!1},u=p=>{p.children?(d(),r.type==="save"&&s("request",p)):s("request",p)},d=()=>{r.node.children&&(n.value=!n.value,r.node.isOpen=n.value,s("nodeToggled",r.node.id,n.value))},f=(p,E)=>{s("nodeToggled",p,E)},h=p=>{s("request",p)};return(p,E)=>{const F=O("v-tooltip"),_=O("v-icon"),w=O("v-btn"),v=O("tree-node",!0);return S(),V(Q,null,[b(F,{modelValue:i.value.show,"onUpdate:modelValue":E[0]||(E[0]=x=>i.value.show=x),text:i.value.text,location:"top",style:We(`position: fixed; left: ${i.value.x}px; top: ${i.value.y}px; pointer-events: none;`)},null,8,["modelValue","text","style"]),B("div",mn,[o.value?(S(),V("div",{key:0,class:"node-content",onClick:E[4]||(E[4]=x=>u(e.node))},[B("div",gn,[e.node.children?(S(),T(_,{key:0,class:"toggle-icon",style:{"padding-right":"10px"}},{default:m(()=>[P(I(e.node.isOpen||e.search?"mdi-menu-down":"mdi-menu-right"),1)]),_:1})):ie("",!0),e.node.children?(S(),T(_,{key:1,size:"small",style:{"padding-right":"10px"}},{default:m(()=>[...E[5]||(E[5]=[P(I("mdi-folder"),-1)])]),_:1})):e.node.title.includes(".rb")?(S(),T(_,{key:2,size:"small",style:{"padding-right":"10px"}},{default:m(()=>[...E[6]||(E[6]=[P(I("mdi-language-ruby"),-1)])]),_:1})):e.node.title.includes(".py")?(S(),T(_,{key:3,size:"small",style:{"padding-right":"10px"}},{default:m(()=>[...E[7]||(E[7]=[P(I("mdi-language-python"),-1)])]),_:1})):(S(),T(_,{key:4,size:"small",style:{"padding-right":"10px"}},{default:m(()=>[...E[8]||(E[8]=[P(I("mdi-file-document"),-1)])]),_:1})),B("span",{class:"text-h6",tabindex:e.node.children?-1:0,onKeyup:E[1]||(E[1]=Ke(x=>u(e.node),["enter"])),onMouseenter:E[2]||(E[2]=x=>a(x,e.node.title)),onMouseleave:c},I(e.node.title),41,bn),e.node.title==="__TEMP__"?(S(),T(w,{key:5,icon:"mdi-delete",variant:"text",style:{"margin-left":"auto"},"aria-label":"Delete",onClick:E[3]||(E[3]=x=>s("delete"))})):ie("",!0)])])):(S(),V("div",yn)),e.node.children&&(e.node.isOpen||e.search)?(S(),V("div",_n,[(S(!0),V(Q,null,se(e.node.children,x=>(S(),T(v,{key:x.id,node:x,search:e.search,type:e.type,onNodeToggled:f,onRequest:h},null,8,["node","search","type"]))),128))])):ie("",!0)])],64)}}},vn=Ae(wn,[["__scopeId","data-v-83f7a088"]]),xn={components:{TreeNode:vn},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)}},async created(){const e=await Ce.get("/openc3-api/targets");this.targets=e.data,this.targets.push("__TEMP__");const t=this.targets.map(r=>(this.items.push({id:r,disabled:!0,title:r,children:[],path:r}),this.loadFiles(r)));await Promise.all(t),this.disableButtons=!1},methods:{calcIcon:function(e){return pn(e)},loadFiles:async function(e){try{const t=await Ce.get(this.apiUrl,{params:{target:e}});if(t.data.length===0){this.items=this.items.filter(n=>n.id!==e);return}for(let n of t.data.sort())this.filepath=n,this.insertFile(this.items,2,n);this.inputFilename&&(this.selectedFile=this.inputFilename);const r=this.items.findIndex(n=>n.id===e);r!==-1&&(this.items[r].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){if(e.length===0)this.selectedFile=null;else{let t=this.findItem(this.items,e.id);this.type==="save"&&t&&(t=t.replace(/\*$/,"")),this.selectedFile=t,setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100)}},findItem:function(e,t){for(let r of e){if(r.id===t)return r.path;if(r.children){const n=this.findItem(r.children,t);if(n)return n}}return null},exists:function(e,t){let r=!1;for(let n of e){if(n.path===t||n.path.length>1&&n.path[n.path.length-1]==="*"&&n.path.slice(0,n.path.length-1)===t)return!0;n.children&&(r=r||this.exists(n.children,t))}return r},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=>Ce.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,Ce.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 r=e.data.locked,n=e.data.breakpoints;this.$emit("file",{file:t,locked:r,breakpoints:n}),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,r){let n=r.split("/");if(n.length===1){e.push({id:this.filepath,title:n[0],file:"ruby",path:this.filepath});return}const o=e.findIndex(s=>s.title===n[0]);o===-1?(e.push({id:this.filepath.split("/").slice(0,t-1).join("/"),title:n[0],children:[],path:this.filepath.split("/").slice(0,t-1).join("/")}),this.insertFile(e[e.length-1].children,t+1,n.slice(1).join("/"))):this.insertFile(e[o].children,t+1,n.slice(1).join("/"))}}},On={class:"pa-3"},En={class:"overflow-y-auto tree-container"};function Sn(e,t,r,n,o,s){const i=O("v-spacer"),a=O("v-progress-linear"),c=O("v-toolbar"),u=O("v-row"),d=O("v-text-field"),f=O("tree-node"),h=O("v-card-text"),p=O("v-btn"),E=O("v-card-actions"),F=O("v-card"),_=O("v-dialog");return S(),T(_,{modelValue:s.show,"onUpdate:modelValue":t[4]||(t[4]=w=>s.show=w),persistent:"",width:"800",onKeydown:[t[5]||(t[5]=Ke(w=>o.disableButtons?null:s.success(),["enter"])),t[6]||(t[6]=Ke(w=>o.disableButtons?null:s.show=!1,["esc"]))]},{default:m(()=>[b(F,{class:"file-open-save-card d-flex flex-column"},{default:m(()=>[B("form",{class:"d-flex flex-column",onSubmit:t[3]||(t[3]=ke((...w)=>s.success&&s.success(...w),["prevent"]))},[b(c,{height:"24"},{default:m(()=>[b(i),B("span",null,I(s.title),1),b(i),b(a,{active:o.disableButtons,indeterminate:"",location:"bottom",absolute:""},null,8,["active"])]),_:1}),b(h,{class:"overflow-y-auto"},{default:m(()=>[B("div",On,[b(u,null,{default:m(()=>[P(I(s.helpText),1)]),_:1}),b(u,{dense:"",class:"mt-5"},{default:m(()=>[b(d,{modelValue:o.search,"onUpdate:modelValue":t[0]||(t[0]=w=>o.search=w),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),B("div",En,[(S(!0),V(Q,null,se(o.items,w=>(S(),T(f,{key:`${w.id}`,node:w,search:o.search,type:r.type,onRequest:s.activeFile,onDelete:s.deleteTemp},null,8,["node","search","type","onRequest","onDelete"]))),128))]),b(u,{class:"my-2"},{default:m(()=>[b(d,{modelValue:o.selectedFile,"onUpdate:modelValue":t[1]||(t[1]=w=>o.selectedFile=w),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:o.disableButtons||r.type==="open"},null,8,["modelValue","disabled"])]),_:1}),b(u,{dense:""},{default:m(()=>[Lt(B("div",{class:"my-2 text-red overflow-y-auto error-container",style:{"white-space":"pre-line"}},I(s.error),513),[[Vt,s.error]])]),_:1})])]),_:1}),b(E,null,{default:m(()=>[b(i),b(p,{variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:o.disableButtons,onClick:t[2]||(t[2]=w=>s.show=!1)},{default:m(()=>[...t[7]||(t[7]=[P(" Cancel ",-1)])]),_:1},8,["disabled"]),b(p,{ref:"submitBtn",type:"submit",color:"primary",variant:"elevated",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:o.disableButtons||!!s.error,onClick:ke(s.success,["prevent"])},{default:m(()=>[P(I(s.submit),1)]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const Rn=Ae(xn,[["render",Sn]]),An={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()}}},Cn={class:"mx-2"},kn={class:"pa-3"},Tn={class:"text"};function Pn(e,t,r,n,o,s){const i=O("v-spacer"),a=O("v-btn"),c=O("v-toolbar"),u=O("v-card-text"),d=O("v-card-actions"),f=O("v-card"),h=O("v-dialog");return S(),T(h,{modelValue:s.show,"onUpdate:modelValue":t[1]||(t[1]=p=>s.show=p),width:r.width,scrollable:""},{default:m(()=>[b(f,null,{default:m(()=>[b(c,{height:"24"},{default:m(()=>[b(i),B("span",null,I(r.title),1),b(i),B("div",Cn,[b(a,{icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon","aria-label":"Download Content",onClick:s.download},null,8,["onClick"])])]),_:1}),b(u,{style:{"max-height":"80vh"}},{default:m(()=>[B("div",kn,[B("span",Tn,I(r.text),1)])]),_:1}),b(d,{class:"px-2"},{default:m(()=>[b(i),b(a,{variant:"flat",onClick:t[0]||(t[0]=p=>s.show=!s.show)},{default:m(()=>[...t[2]||(t[2]=[P(" Ok ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","width"])}const jn=Ae(An,[["render",Pn],["__scopeId","data-v-1a0bca65"]]);function Ht(e,t){return function(){return e.apply(t,arguments)}}const{toString:Fn}=Object.prototype,{getPrototypeOf:fe}=Object,{iterator:Te,toStringTag:Jt}=Symbol,Pe=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Wt=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),Kt=(e,t,r)=>e===Object.prototype||!r&&t===null,Nn=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(r=>{if(Wt(r))return!1;const n=Object.getOwnPropertyDescriptor(e,r);return!!n&&n.configurable&&n.writable===!0})},je=(e,t)=>{let r=e;const n=[];for(;r!=null;){if(n.indexOf(r)!==-1)return!1;n.push(r);const o=fe(r);if(Kt(r,o,r===e))return!1;if(Pe(r,t))return!0;r=o}return!1},Dn=(e,t)=>e!=null&&je(e,t)?e[t]:void 0,Un=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=fe(e);if(t===null&&Nn(e))return e;const r=Object.create(null),n=Object.create(null),o=[];let s=e;for(;s!=null&&o.indexOf(s)===-1;){o.push(s);const i=s===e?t:fe(s);if(Kt(s,i,s===e))break;const a=Object.getOwnPropertyNames(s);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(s));for(const c of a)Wt(c)||Pe(n,c)||(r[c]=e[c],n[c]=!0);s=i}return r},ft=(e=>t=>{const r=Fn.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Y=e=>(e=e.toLowerCase(),t=>ft(t)===e),Xe=e=>t=>typeof t===e,{isArray:ge}=Array,be=Xe("undefined");function Oe(e){return e!==null&&!be(e)&&e.constructor!==null&&!be(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xt=Y("ArrayBuffer");function Bn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xt(e.buffer),t}const In=Xe("string"),W=Xe("function"),Gt=Xe("number"),Ee=e=>e!==null&&typeof e=="object",Ln=e=>e===!0||e===!1,Ge=e=>{if(!Ee(e))return!1;const t=fe(e);return(t===null||t===Object.prototype||fe(t)===null)&&!je(e,Jt)&&!je(e,Te)},Vn=e=>{if(!Ee(e)||Oe(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$n=Y("Date"),Mn=Y("File"),qn=e=>!!(e&&typeof e.uri<"u"),zn=e=>e&&typeof e.getParts<"u",Hn=Y("Blob"),Jn=Y("FileList"),Wn=Y("Set"),Kn=e=>Ee(e)&&W(e.pipe);function Xn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Qt=Xn(),Yt=typeof Qt.FormData<"u"?Qt.FormData:void 0,Gn=e=>{if(!e)return!1;if(Yt&&e instanceof Yt)return!0;const t=fe(e);if(!t||t===Object.prototype||!W(e.append))return!1;const r=ft(e);return r==="formdata"||r==="object"&&W(e.toString)&&e.toString()==="[object FormData]"},Qn=Y("URLSearchParams"),[Yn,Zn,eo,to]=["ReadableStream","Request","Response","Headers"].map(Y),ro=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fe(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),ge(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Oe(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(n=0;n<i;n++)a=s[n],t.call(null,e[a],a,e)}}function Zt(e,t){if(Oe(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const ye=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,er=e=>!be(e)&&e!==ye;function ht(...e){const{caseless:t,skipUndefined:r}=er(this)&&this||{},n={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&typeof i=="string"&&Zt(n,i)||i,c=Pe(n,a)?n[a]:void 0;Ge(c)&&Ge(s)?n[a]=ht(c,s):Ge(s)?n[a]=ht({},s):ge(s)?n[a]=s.slice():(!r||!be(s))&&(n[a]=s)};for(let s=0,i=e.length;s<i;s++){const a=e[s];if(!a||Oe(a)||(Fe(a,o),typeof a!="object"||ge(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let u=0;u<c.length;u++){const d=c[u];mo.call(a,d)&&o(a[d],d)}}return n}const no=(e,t,r,{allOwnKeys:n}={})=>(Fe(t,(o,s)=>{r&&W(o)?Object.defineProperty(e,s,{__proto__:null,value:Ht(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),oo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),so=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},io=(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&fe(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ao=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},lo=e=>{if(!e)return null;if(ge(e))return e;let t=e.length;if(!Gt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},co=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fe(Uint8Array)),uo=(e,t)=>{const r=(e&&e[Te]).call(e);let n;for(;(n=r.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},fo=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ho=Y("HTMLFormElement"),po=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),{propertyIsEnumerable:mo}=Object.prototype,go=Y("RegExp"),tr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Fe(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},bo=e=>{tr(e,(t,r)=>{if(W(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(W(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yo=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return ge(e)?n(e):n(String(e).split(t)),r},_o=()=>{},wo=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vo(e){return!!(e&&W(e.append)&&e[Jt]==="FormData"&&e[Te])}const xo=e=>{const t=new WeakSet,r=n=>{if(Ee(n)){if(t.has(n))return;if(Oe(n))return n;if(!("toJSON"in n)){t.add(n);let o;if(Wn(n)){o=[];for(const s of n){const i=r(s);!be(i)&&o.push(i)}}else o=ge(n)?[]:{},Fe(n,(s,i)=>{const a=r(s);!be(a)&&(o[i]=a)});return t.delete(n),o}}return n};return r(e)},Oo=Y("AsyncFunction"),Eo=e=>e&&(Ee(e)||W(e))&&W(e.then)&&W(e.catch),rr=((e,t)=>e?setImmediate:t?((r,n)=>(ye.addEventListener("message",({source:o,data:s})=>{o===ye&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),ye.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",W(ye.postMessage)),So=typeof queueMicrotask<"u"?queueMicrotask.bind(ye):typeof process<"u"&&process.nextTick||rr,nr=e=>e!=null&&W(e[Te]),Ro=e=>e!=null&&je(e,Te)&&nr(e),l={isArray:ge,isArrayBuffer:Xt,isBuffer:Oe,isFormData:Gn,isArrayBufferView:Bn,isString:In,isNumber:Gt,isBoolean:Ln,isObject:Ee,isPlainObject:Ge,isEmptyObject:Vn,isReadableStream:Yn,isRequest:Zn,isResponse:eo,isHeaders:to,isUndefined:be,isDate:$n,isFile:Mn,isReactNativeBlob:qn,isReactNative:zn,isBlob:Hn,isRegExp:go,isFunction:W,isStream:Kn,isURLSearchParams:Qn,isTypedArray:co,isFileList:Jn,forEach:Fe,merge:ht,extend:no,trim:ro,stripBOM:oo,inherits:so,toFlatObject:io,kindOf:ft,kindOfTest:Y,endsWith:ao,toArray:lo,forEachEntry:uo,matchAll:fo,isHTMLForm:ho,hasOwnProperty:Pe,hasOwnProp:Pe,hasOwnInPrototypeChain:je,getSafeProp:Dn,toSafeFlatObject:Un,reduceDescriptors:tr,freezeMethods:bo,toObjectSet:yo,toCamelCase:po,noop:_o,toFiniteNumber:wo,findKey:Zt,global:ye,isContextDefined:er,isSpecCompliantForm:vo,toJSONObject:xo,isAsyncFn:Oo,isThenable:Eo,setImmediate:rr,asap:So,isIterable:nr,isSafeIterable:Ro},Ao=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"]),Co=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
5
|
+
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim();const i=l.hasOwnProp(t,r);!r||i&&l.hasOwnProp(Ao,r)||(r==="set-cookie"?i?t[r].push(n):t[r]=[n]:t[r]=i?t[r]+", "+n:n)}),t};function ko(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const To=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Po=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function pt(e,t){return l.isArray(e)?e.map(r=>pt(r,t)):ko(String(e).replace(t,""))}const jo=e=>pt(e,To),Fo=e=>pt(e,Po);function or(e){const t=Object.create(null);return l.forEach(e.toJSON(),(r,n)=>{t[n]=Fo(r)}),t}const sr=Symbol("internals");function Ne(e){return e&&String(e).trim().toLowerCase()}function Qe(e){return e===!1||e==null?e:l.isArray(e)?e.map(Qe):jo(String(e))}function No(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Do=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function mt(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function Uo(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let r="";for(let n=1;n<t;n++){const o=e.charCodeAt(n);if(o===34||o===92&&(n+=1,n>=t))return e;r+=e[n]}return r}function Bo(e){const t=Object.create(null),r=String(e);let n=0,o=!1,s=!1;function i(a){const c=mt(r.slice(n,a)),u=c.indexOf("=");if(u<1)return;const d=mt(c.slice(0,u));if(!Do.test(d))return;const f=d.toLowerCase();if(f==="__proto__"||f==="constructor"||f==="prototype")return;const h=mt(c.slice(u+1));t[f]=Uo(h)}for(let a=0;a<r.length;a++){const c=r.charCodeAt(a);o?s?s=!1:c===92?s=!0:c===34&&(o=!1):c===34?o=!0:(c===44||c===59)&&(i(a),n=a+1)}return i(r.length),t}const Io=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gt(e,t,r,n,o){if(l.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!l.isString(t)){if(l.isString(n))return t.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(t)}}function Lo(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Vo(e,t){const r=l.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}let z=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(i,a,c){const u=Ne(a);if(!u)return;const d=l.findKey(n,u);(!d||n[d]===void 0||c===!0||c===void 0&&n[d]!==!1)&&(n[d||a]=Qe(i))}const s=(i,a)=>l.forEach(i,(c,u)=>o(c,u,a));if(l.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(l.isString(e)&&(e=e.trim())&&!Io(e))s(Co(e),t);else if(l.isObject(e)&&l.isSafeIterable(e)){let i=Object.create(null),a,c;for(const u of e){if(!l.isArray(u))throw new TypeError("Object iterator must return a key-value pair");c=u[0],l.hasOwnProp(i,c)?(a=i[c],i[c]=l.isArray(a)?[...a,u[1]]:[a,u[1]]):i[c]=u[1]}s(i,t)}else e!=null&&o(t,e,r);return this}get(e,t){if(e=Ne(e),e){const r=l.findKey(this,e);if(r){const n=this[r];if(!t)return n;if(t===!0)return No(n);if(l.isFunction(t))return t.call(this,n,r);if(l.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ne(e),e){const r=l.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||gt(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let n=!1;function o(s){if(s=Ne(s),s){const i=l.findKey(r,s);i&&(!t||gt(r,r[i],i,t))&&(delete r[i],n=!0)}}return l.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];(!e||gt(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return l.forEach(this,(n,o)=>{const s=l.findKey(r,o);if(s){t[s]=Qe(n),delete t[o];return}const i=e?Lo(o):String(o).trim();i!==o&&delete t[o],t[i]=Qe(n),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return l.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=e&&l.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
6
|
+
`)}getSetCookie(){const e=this.get("set-cookie");return l.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return Bo(e)}static concat(e,...t){const r=new this(e);return t.forEach(n=>r.set(n)),r}static accessor(e){const t=(this[sr]=this[sr]={accessors:{}}).accessors,r=this.prototype;function n(o){const s=Ne(o);t[s]||(Vo(r,o),t[s]=!0)}return l.isArray(e)?e.forEach(n):n(e),this}};z.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(z.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),l.freezeMethods(z);const Ye="[REDACTED ****]";function $o(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 Mo(e,t){const r=new Set(t.map(s=>String(s).toLowerCase())),n=[],o=s=>{if(s===null||typeof s!="object"||l.isBuffer(s))return s;if(n.indexOf(s)!==-1)return;s instanceof z&&(s=s.toJSON()),n.push(s);let i;if(l.isArray(s))i=[],s.forEach((a,c)=>{const u=o(a);l.isUndefined(u)||(i[c]=u)});else{if(!l.isPlainObject(s)&&$o(s))return n.pop(),s;i=Object.create(null);for(const[a,c]of Object.entries(s)){const u=r.has(a.toLowerCase())?Ye:o(c);l.isUndefined(u)||(i[a]=u)}}return n.pop(),i};return o(e)}function ir(e){try{return String(e)}catch{return""}}function qo(e){return e.errors.map(t=>{try{return t&&t.message?ir(t.message):ir(t)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let y=class sn extends Error{static from(t,r,n,o,s,i){let a=t.message;!a&&l.isArray(t.errors)&&t.errors.length&&(a=qo(t));const c=new sn(a,r||t.code,n,o,s);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),i&&Object.assign(c,i),c}constructor(t,r,n,o,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,r=t&&l.hasOwnProp(t,"redact")?t.redact:void 0,n=l.isArray(r)&&r.length>0?Mo(t,r):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:n,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 zo=null,ar=100;function bt(e){return l.isPlainObject(e)||l.isArray(e)}function lr(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function yt(e,t,r){return e?e.concat(t).map(function(n,o){return n=lr(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function Ho(e){return l.isArray(e)&&!e.some(bt)}const Jo=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Ze(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(v,x)=>{const g=l.getSafeProp(r,v);return l.isUndefined(g)?x:g},o=n("metaTokens",!0),s=n("visitor")||F,i=n("dots",!1),a=n("indexes",!1),c=n("Blob")||typeof Blob<"u"&&Blob,u=n("maxDepth",ar),d=c&&l.isSpecCompliantForm(t),f=[];if(!l.isFunction(s))throw new TypeError("visitor must be a function");function h(v){if(v===null)return"";if(l.isDate(v))return v.toISOString();if(l.isBoolean(v))return v.toString();if(!d&&l.isBlob(v))throw new y("Blob is not supported. Use a Buffer instead.");if(l.isArrayBuffer(v)||l.isTypedArray(v)){if(d&&typeof c=="function")return new c([v]);throw new y("Blob is not supported. Use a Buffer instead.",y.ERR_NOT_SUPPORT)}return v}function p(v){if(v>u)throw new y("Object is too deeply nested ("+v+" levels). Max depth: "+u,y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function E(v,x){if(u===1/0)return JSON.stringify(v);const g=[];return JSON.stringify(v,function(D,k){if(!l.isObject(k))return k;for(;g.length&&g[g.length-1]!==this;)g.pop();return g.push(k),p(x+g.length-1),k})}function F(v,x,g){let D=v;if(l.isReactNative(t)&&l.isReactNativeBlob(v))return t.append(yt(g,x,i),h(v)),!1;if(v&&!g&&typeof v=="object"){if(l.endsWith(x,"{}"))x=o?x:x.slice(0,-2),v=E(v,1);else if(l.isArray(v)&&Ho(v)||(l.isFileList(v)||l.endsWith(x,"[]"))&&(D=l.toArray(v)))return x=lr(x),D.forEach(function(k,X){!(l.isUndefined(k)||k===null)&&t.append(a===!0?yt([x],X,i):a===null?x:x+"[]",h(k))}),!1}return bt(v)?!0:(t.append(yt(g,x,i),h(v)),!1)}const _=Object.assign(Jo,{defaultVisitor:F,convertValue:h,isVisitable:bt});function w(v,x,g=0){if(!l.isUndefined(v)){if(p(g),f.indexOf(v)!==-1)throw new Error("Circular reference detected in "+x.join("."));f.push(v),l.forEach(v,function(D,k){(!(l.isUndefined(D)||D===null)&&s.call(t,D,l.isString(k)?k.trim():k,x,_))===!0&&w(D,x?x.concat(k):[k],g+1)}),f.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return w(e),t}function cr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function _t(e,t){this._pairs=[],e&&Ze(e,this,t)}const ur=_t.prototype;ur.append=function(e,t){this._pairs.push([e,t])},ur.toString=function(e){const t=e?r=>e.call(this,r,cr):cr;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Wo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dr(e,t,r){if(!t)return e;e=e||"";const n=l.isFunction(r)?{serialize:r}:r,o=l.getSafeProp(n,"encode")||Wo,s=l.getSafeProp(n,"serialize");let i;if(s?i=s(t,n):i=l.isURLSearchParams(t)?t.toString():new _t(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const De=Symbol("internals");function fr(e){return e?e.length:0}function hr(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Ue(e,t){const r=e.handlers,n=fr(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(o,s){r[o.index]!==o.handler&&t.handlerEntries.delete(s)}):t.handlerEntries.clear()),t.handlersLength=n}class pr{constructor(){this.handlers=[],this[De]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,r,n){const o={fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},s=this[De];this.handlers==null&&(this.handlers=[]),Ue(this,s);const i=s.nextId++;return this.handlers.push(o),s.handlerEntries.set(i,{handler:o,index:this.handlers.length-1}),s.handlersLength=this.handlers.length,i}eject(t){const r=this[De];Ue(this,r);const n=r.handlerEntries.get(t);if(n){if(r.handlerEntries.delete(t),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,r.iterationDepth||(hr(this.handlers),r.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Ue(this,this[De]))}forEach(t){const r=this[De];Ue(this,r),r.iterationDepth++;try{l.forEach(this.handlers,function(n){n!==null&&t(n)})}finally{--r.iterationDepth||(Ue(this,r),hr(this.handlers),r.handlersLength=fr(this.handlers))}}}const wt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ko=typeof URLSearchParams<"u"?URLSearchParams:_t,Xo=typeof FormData<"u"?FormData:null,Go=typeof Blob<"u"?Blob:null,Qo={isBrowser:!0,classes:{URLSearchParams:Ko,FormData:Xo,Blob:Go},protocols:["http","https","file","blob","url","data"]},vt=typeof window<"u"&&typeof document<"u",xt=typeof navigator=="object"&&navigator||void 0,Yo=vt&&(!xt||["ReactNative","NativeScript","NS"].indexOf(xt.product)<0),Zo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",es=vt&&window.location.href||"http://localhost",ts=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vt,hasStandardBrowserEnv:Yo,hasStandardBrowserWebWorkerEnv:Zo,navigator:xt,origin:es},Symbol.toStringTag,{value:"Module"})),M={...ts,...Qo};function rs(e,t){return Ze(e,new M.classes.URLSearchParams,{visitor:function(r,n,o,s){return M.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const mr=ar;function gr(e){if(e>mr)throw new y("FormData field is too deeply nested ("+e+" levels). Max depth: "+mr,y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function ns(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;(n=r.exec(e))!==null;)gr(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}function os(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function br(e){function t(r,n,o,s){gr(s);let i=r[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=r.length;return i=!i&&l.isArray(o)?o.length:i,c?(l.hasOwnProp(o,i)?o[i]=l.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n,!a):((!l.hasOwnProp(o,i)||!l.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&l.isArray(o[i])&&(o[i]=os(o[i])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,o)=>{t(ns(n),o,r,0)}),r}return null}const yr=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Se=(e,t)=>e!=null&&l.hasOwnProp(e,t)?e[t]:void 0;function ss(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Be={transitional:wt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=l.isObject(e);if(o&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return n?JSON.stringify(br(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 s;if(o){const i=Se(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return rs(e,i).toString();if((s=l.isFileList(e))||r.indexOf("multipart/form-data")>-1){const a=Se(this,"env"),c=a&&a.FormData;return Ze(s?{"files[]":e}:e,c&&new c,i)}}return o||n?(t.setContentType("application/json",!1),ss(e)):e}],transformResponse:[function(e){const t=Se(this,"transitional")||Be.transitional,r=t&&t.forcedJSONParsing,n=Se(this,"responseType"),o=n==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(r&&!n||o)){const s=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Se(this,"parseReviver"))}catch(i){if(s)throw i.name==="SyntaxError"?y.from(i,y.ERR_BAD_RESPONSE,this,null,Se(this,"response")):i}}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(yr,e=>{Be.headers[e]={}});function Ot(e,t){const r=this||Be,n=t||r,o=z.from(n.headers);let s=n.data;return l.forEach(e,function(i){s=i.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function _r(e){return!!(e&&e.__CANCEL__)}let Ie=class extends y{constructor(e,t,r){super(e??"canceled",y.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function wr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new y("Request failed with status code "+r.status,r.status>=400&&r.status<500?y.ERR_BAD_REQUEST:y.ERR_BAD_RESPONSE,r.config,r.request,r))}const is=/[\t\n\r]/g;function vr(e){if(typeof e!="string")return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(is,"")}function Et(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function as(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=n[s];i||(i=c),r[o]=a,n[o]=c;let d=s,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function ls(e,t){let r=0,n=1e3/t,o,s;const i=(a,c=Date.now())=>{r=c,o=null,s&&(clearTimeout(s),s=null),e(...a)};return[(...a)=>{const c=Date.now(),u=c-r;u>=n?i(a,c):(o=a,s||(s=setTimeout(()=>{s=null,i(o)},n-u)))},()=>o&&i(o),(...a)=>i(a)]}const et=(e,t,r=3)=>{let n=0;const o=as(50,250);return ls(s=>{if(!s||!l.isNumber(s.loaded))return;const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=Math.max(0,a!=null?Math.min(i,a):i),u=Math.max(0,c-n),d=o(u);n=Math.max(n,c);const f={loaded:c,total:a,progress:a?c/a:void 0,bytes:u,rate:d||void 0,estimated:d&&a?(a-c)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},xr=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Or=(e,t=l.asap)=>(...r)=>t(()=>e(...r)),cs=M.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,M.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(M.origin),M.navigator&&/(msie|trident)/i.test(M.navigator.userAgent)):()=>!0,us=M.hasStandardBrowserEnv?{write(e,t,r,n,o,s,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];l.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),l.isString(n)&&a.push(`path=${n}`),l.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),l.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===e)try{return decodeURIComponent(n.slice(o+1))}catch{return n.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ds(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fs(e,t){if(!t)return e;let r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}const hs=/^https?:(?!\/\/)/i;function ps(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,r,n="")=>`${r}${n}${Ye}`)}function ms(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Ye}@`),r=t.indexOf("#"),n=(r===-1?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Ye}`);return r===-1?n:`${n}#${ps(t.slice(r+1))}`}function Er(e,t){if(typeof e=="string"){const r=vr(e);if(hs.test(r))throw new y(`Invalid URL ${JSON.stringify(ms(r))}: missing "//" after protocol`,y.ERR_INVALID_URL,t)}}function Sr(e,t,r,n){Er(t,n);let o=!ds(t);return e&&(o||r===!1)?(Er(e,n),fs(e,t)):t}const Rr=e=>e instanceof z?{...e}:e,gs=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function _e(e,t){e=e||{},t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(d,f,h,p){return l.isPlainObject(d)&&l.isPlainObject(f)?l.merge.call({caseless:p},d,f):l.isPlainObject(f)?l.merge({},f):l.isArray(f)?f.slice():f}function o(d,f,h,p){if(l.isUndefined(f)){if(!l.isUndefined(d))return n(void 0,d,h,p)}else return n(d,f,h,p)}function s(d,f){if(!l.isUndefined(f))return n(void 0,f)}function i(d,f){if(l.isUndefined(f)){if(!l.isUndefined(d))return n(void 0,d)}else return n(void 0,f)}function a(d){const f=l.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!l.isUndefined(f))if(l.isPlainObject(f)){if(l.hasOwnProp(f,d))return f[d]}else return;const h=l.hasOwnProp(e,"transitional")?e.transitional:void 0;if(l.isPlainObject(h)&&l.hasOwnProp(h,d))return h[d]}function c(d,f,h){if(l.hasOwnProp(t,h))return n(d,f);if(l.hasOwnProp(e,h))return n(void 0,d)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutErrorMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:c,headers:(d,f,h)=>o(Rr(d),Rr(f),h,!0)};return l.forEach(gs({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=l.hasOwnProp(u,d)?u[d]:o,h=l.hasOwnProp(e,d)?e[d]:void 0,p=l.hasOwnProp(t,d)?t[d]:void 0,E=f(h,p,d);l.isUndefined(E)&&f!==c||(r[d]=E)}),l.hasOwnProp(t,"validateStatus")&&l.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(l.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const bs=["content-type","content-length"];function ys(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([n,o])=>{bs.includes(n.toLowerCase())&&e.set(n,o)})}const _s=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function Ar(e){const t=_e({},e),r=h=>l.hasOwnProp(t,h)?t[h]:void 0,n=r("data");let o=r("withXSRFToken");const s=r("xsrfHeaderName"),i=r("xsrfCookieName");let a=r("headers");const c=r("auth"),u=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(t.headers=a=z.from(a),t.url=dr(Sr(u,f,d,t),r("params"),r("paramsSerializer")),c){const h=l.getSafeProp(c,"username")||"",p=l.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(h+":"+(p?_s(p):"")))}catch(E){throw y.from(E,y.ERR_BAD_OPTION_VALUE,e)}}if(l.isFormData(n)){const h=l.getSafeProp(n,"getHeaders");M.hasStandardBrowserEnv||M.hasStandardBrowserWebWorkerEnv||l.isReactNative(n)?a.setContentType(void 0):l.isFunction(h)&&ys(a,h.call(n),r("formDataHeaderPolicy"))}if(M.hasStandardBrowserEnv&&(l.isFunction(o)&&(o=o(t)),o===!0||o==null&&cs(t.url))){const h=s&&i&&us.read(i);h&&a.set(s,h)}return t}const ws=typeof XMLHttpRequest<"u",vs=ws&&function(e){return new Promise(function(t,r){const n=Ar(e);let o=n.data;const s=z.from(n.headers).normalize();let{responseType:i,onUploadProgress:a,onDownloadProgress:c}=n,u,d,f,h,p,E;function F(){h&&h(),p&&p(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let _=new XMLHttpRequest;_.open(n.method.toUpperCase(),n.url,!0),_.timeout=n.timeout;function w(x){if(!_)return;if(_.status===0&&(Et(vr(n.url))||Et(M.origin))!=="file"&&!(_.responseURL&&_.responseURL.startsWith("file:"))){r(new y("Request aborted",y.ECONNABORTED,e,_)),F(),_=null;return}try{x?E&&E(x):p&&p()}catch(k){setTimeout(()=>{throw k})}if(!_)return;const g=z.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),D={data:!i||i==="text"||i==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:g,config:e,request:_};wr(function(k){t(k),F()},function(k){r(k),F()},D),_=null}"onloadend"in _?_.onloadend=w:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.startsWith("file:"))||setTimeout(w)},_.onabort=function(){_&&(r(new y("Request aborted",y.ECONNABORTED,e,_)),F(),_=null)},_.onerror=function(x){const g=x&&x.message?x.message:"Network Error",D=new y(g,y.ERR_NETWORK,e,_);D.event=x||null,r(D),F(),_=null},_.ontimeout=function(){let x=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const g=n.transitional||wt;n.timeoutErrorMessage&&(x=n.timeoutErrorMessage),r(new y(x,g.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,_)),F(),_=null},o===void 0&&s.setContentType(null),"setRequestHeader"in _&&l.forEach(or(s),function(x,g){_.setRequestHeader(g,x)}),l.isUndefined(n.withCredentials)||(_.withCredentials=!!n.withCredentials),i&&i!=="json"&&(_.responseType=n.responseType),c&&([f,p,E]=et(c,!0),_.addEventListener("progress",f)),a&&_.upload&&([d,h]=et(a),_.upload.addEventListener("progress",d),_.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(u=x=>{_&&(r(!x||x.type?new Ie(null,e,_):x),_.abort(),F(),_=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const v=Et(n.url);if(v&&!M.protocols.includes(v)){r(new y("Unsupported protocol "+v+":",y.ERR_BAD_REQUEST,e)),F();return}_.send(o||null)})},xs=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof y?u:new Ie(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new y(`timeout of ${t}ms exceeded`,y.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>{if(!n){if(c.aborted){o.call(c);return}c.addEventListener("abort",o,{once:!0})}});const{signal:a}=r;return a.unsubscribe=()=>l.asap(i),a},Os=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Es=async function*(e,t){for await(const r of Ss(e))yield*Os(r,t)},Ss=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Cr=(e,t,r,n)=>{const o=Es(e,t);let s=0,i,a=c=>{i||(i=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){a(),c.close();return}let f=d.byteLength;if(r){let h=s+=f;r(h)}c.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},kr=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Tr=(e,t,r)=>t+2<r&&kr(e.charCodeAt(t+1))&&kr(e.charCodeAt(t+2)),Pr=e=>e<=57?e-48:(e&223)-55,Rs=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,As=e=>e===9||e===10||e===12||e===13||e===32,Cs=e=>{const t=Math.floor(e/4),r=e%4;return t*3+(r===2?1:r===3?2:0)},ks=e=>{const t=e.length;let r=0;return t>0&&e.charCodeAt(t-1)===61&&(r++,t>1&&e.charCodeAt(t-2)===61&&r++),Math.floor((t-r)*3/4)},Ts=e=>{const t=e.length;let r=0,n=0,o=!1;for(let s=0;s<t;s++){let i=e.charCodeAt(s);if(i===37&&Tr(e,s,t)&&(i=Pr(e.charCodeAt(s+1))*16+Pr(e.charCodeAt(s+2)),s+=2),!As(i)){if(i===61){n++;continue}if(!Rs(i)||n>0){o=!0;continue}r++}}return o||n>2||n>0&&(r+n)%4!==0||r%4===1?ks(e):Cs(r)},Ps=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),o=e.slice(r+1);if(/;base64/i.test(n))return t(o);let s=0;for(let i=0,a=o.length;i<a;i++){const c=o.charCodeAt(i);if(c===37&&Tr(o,i,a))s+=1,i+=2;else if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&i+1<a){const u=o.charCodeAt(i+1);u>=56320&&u<=57343?(s+=4,i++):s+=3}else s+=3}return s};function js(e){const t=typeof e=="string"?e.indexOf("#"):-1;return Ps(t===-1?e:e.slice(0,t),Ts)}const St="1.20.0",jr=64*1024,Fs={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:tt}=l,Ns=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Fr=e=>{if(!l.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Nr=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ds=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},Us=e=>{const t=l.global!==void 0&&l.global!==null?l.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=l.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:i}=e,a=o?tt(o):typeof fetch=="function",c=tt(s),u=tt(i);if(!a)return!1;const d=a&&tt(r),f=a&&(typeof n=="function"?(w=>v=>w.encode(v))(new n):async w=>new Uint8Array(await new s(w).arrayBuffer())),h=c&&d&&Nr(()=>{let w=!1;const v=new s(M.origin,{body:new r,method:"POST",get duplex(){return w=!0,"half"}}),x=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),w&&!x}),p=u&&d&&Nr(()=>l.isReadableStream(new i("").body)),E={stream:p&&(w=>w.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!E[w]&&(E[w]=(v,x)=>{let g=v&&v[w];if(g)return g.call(v);throw new y(`Response type '${w}' is not supported`,y.ERR_NOT_SUPPORT,x)})});const F=async w=>{if(w==null)return 0;if(l.isBlob(w))return w.size;if(l.isSpecCompliantForm(w))return(await new s(M.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(l.isArrayBufferView(w)||l.isArrayBuffer(w))return w.byteLength;if(l.isURLSearchParams(w)&&(w=w+""),l.isString(w))return(await f(w)).byteLength},_=async(w,v)=>l.toFiniteNumber(w.getContentLength())??F(v);return async w=>{let{url:v,method:x,data:g,signal:D,cancelToken:k,timeout:X,onDownloadProgress:he,onUploadProgress:pe,responseType:Z,headers:R,withCredentials:ee="same-origin",fetchOptions:te,maxContentLength:q,maxBodyLength:Re,maxRedirects:re}=Ar(w);const A=l.isNumber(q)&&q>-1,U=l.isNumber(Re)&&Re>-1,le=N=>l.hasOwnProp(w,N)?w[N]:void 0;let ae=o||fetch;Z=Z?(Z+"").toLowerCase():"text";let G=xs([D,k&&k.toAbortSignal()],X),$=null;const ve=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Ve,$e=null;const tn=()=>new y("Request body larger than maxBodyLength limit",y.ERR_BAD_REQUEST,w,$);try{let N;const ne=le("auth");if(ne){const C=l.getSafeProp(ne,"username")||"",J=l.getSafeProp(ne,"password")||"";N={username:C,password:J}}if(Ds(v)){const C=new URL(v,M.origin);if(!N&&(C.username||C.password)){const J=Fr(C.username),me=Fr(C.password);N={username:J,password:me}}(C.username||C.password)&&(C.username="",C.password="",v=C.href)}if(N&&(R.delete("authorization"),R.set("Authorization","Basic "+btoa(Ns((N.username||"")+":"+(N.password||""))))),A&&typeof v=="string"&&v.startsWith("data:")&&js(v)>q)throw new y("maxContentLength size of "+q+" exceeded",y.ERR_BAD_RESPONSE,w,$);if(U&&x!=="get"&&x!=="head"){const C=await F(g);if(typeof C=="number"&&isFinite(C)&&(Ve=C,C>Re))throw tn()}const ut=U&&(l.isReadableStream(g)||l.isStream(g)),rn=(C,J,me)=>Cr(C,jr,xe=>{if(U&&xe>Re)throw $e=tn();J&&J(xe)},me);if(h&&x!=="get"&&x!=="head"&&(pe||ut)){if(Ve=Ve??await _(R,g),Ve!==0||ut){let C=new s(v,{method:"POST",body:g,duplex:"half"}),J;if(l.isFormData(g)&&(J=C.headers.get("content-type"))&&R.setContentType(J),C.body){const[me,xe]=pe&&xr(Ve,et(Or(pe)))||[];g=rn(C.body,me,xe)}}}else if(ut&&!c&&d&&x!=="get"&&x!=="head")g=rn(g);else if(ut&&c&&!h&&x!=="get"&&x!=="head")throw new y("Stream request bodies are not supported by the current fetch implementation",y.ERR_NOT_SUPPORT,w,$);l.isString(ee)||(ee=ee?"include":"omit");const Bi=c&&"credentials"in s.prototype;if(l.isFormData(g)){const C=R.getContentType();C&&/^multipart\/form-data/i.test(C)&&!/boundary=/i.test(C)&&R.delete("content-type")}R.set("User-Agent","axios/"+St,!1);const oe=te==null?te:Object.assign(Object.create(null),te);oe&&(delete oe.body,delete oe.headers,delete oe.method,delete oe.signal,delete oe.duplex,delete oe.credentials);const ce=Object.assign(Object.create(null),oe,{signal:G,method:x.toUpperCase(),headers:or(R.normalize()),body:g,duplex:"half",credentials:Bi?ee:void 0});c&&(l.forEach(Fs,(C,J)=>{ce[J]===void 0&&(ce[J]=C)}),ce.signal===void 0&&(ce.signal=null),ce.body===void 0&&(ce.body=null)),re===0&&(ce.redirect="manual",oe&&(oe.redirect="manual")),$=c&&new s(v,ce);let ue=await(c?ae($,oe):ae(v,ce));const nn=z.from(ue.headers);if(A){const C=l.toFiniteNumber(nn.getContentLength());if(C!=null&&C>q)throw new y("maxContentLength size of "+q+" exceeded",y.ERR_BAD_RESPONSE,w,$)}const Bt=p&&(Z==="stream"||Z==="response");if(p&&ue.body&&(he||A||Bt&&ve)){const C={};["status","statusText","headers"].forEach(Me=>{C[Me]=ue[Me]});const J=l.toFiniteNumber(nn.getContentLength()),[me,xe]=he&&xr(J,et(Or(he),!0))||[];let on=0;const Ii=Me=>{if(A&&(on=Me,on>q))throw new y("maxContentLength size of "+q+" exceeded",y.ERR_BAD_RESPONSE,w,$);me&&me(Me)};ue=new i(Cr(ue.body,jr,Ii,()=>{xe&&xe(),ve&&ve()}),C)}Z=Z||"text";let de=await E[l.findKey(E,Z)||"text"](ue,w);if(A&&!p&&!Bt){let C;if(de!=null&&(typeof de.byteLength=="number"?C=de.byteLength:typeof de.size=="number"?C=de.size:typeof de=="string"&&(C=typeof n=="function"?new n().encode(de).byteLength:de.length)),typeof C=="number"&&C>q)throw new y("maxContentLength size of "+q+" exceeded",y.ERR_BAD_RESPONSE,w,$)}return!Bt&&ve&&ve(),await new Promise((C,J)=>{wr(C,J,{data:de,headers:z.from(ue.headers),status:ue.status,statusText:ue.statusText,config:w,request:$})})}catch(N){if(ve&&ve(),G&&G.aborted&&G.reason instanceof y){const ne=G.reason;throw ne.config=w,$&&(ne.request=$),N!==ne&&Object.defineProperty(ne,"cause",{__proto__:null,value:N,writable:!0,enumerable:!1,configurable:!0}),ne}if($e)throw $&&!$e.request&&($e.request=$),$e;if(N instanceof y)throw $&&!N.request&&(N.request=$),N;if(N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)){const ne=new y("Network Error",y.ERR_NETWORK,w,$,N&&N.response);throw Object.defineProperty(ne,"cause",{__proto__:null,value:N.cause||N,writable:!0,enumerable:!1,configurable:!0}),ne}throw y.from(N,N&&N.code,w,$,N&&N.response)}}},Bs=new Map,Dr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let i=s.length,a=i,c,u,d=Bs;for(;a--;)c=s[a],u=d.get(c),u===void 0&&d.set(c,u=a?new Map:Us(t)),d=u;return u};Dr();const Rt={http:zo,xhr:vs,fetch:{get:Dr}};l.forEach(Rt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Ur=e=>`- ${e}`,Is=e=>l.isFunction(e)||e===null||e===!1;function Ls(e,t){e=l.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let i=0;i<r;i++){n=e[i];let a;if(o=n,!Is(n)&&(o=Rt[(a=String(n)).toLowerCase()],o===void 0))throw new y(`Unknown adapter '${a}'`);if(o&&(l.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
|
|
7
|
+
`+i.map(Ur).join(`
|
|
8
|
+
`):" "+Ur(i[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 Br={getAdapter:Ls,adapters:Rt};function At(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie(null,e)}function Ct(e){const t=l.toSafeFlatObject(e);return At(t),t.headers=z.from(l.getSafeProp(t,"headers")),t.data=Ot.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Br.getAdapter(t.adapter||Be.adapter,t)(t).then(function(r){At(t),t.response=r;try{r.data=Ot.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=z.from(r.headers),r},function(r){if(!_r(r)&&(At(t),r&&r.response)){t.response=r.response;try{r.response.data=Ot.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=z.from(r.response.headers)}return Promise.reject(r)})}const rt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{rt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ir={};rt.transitional=function(e,t,r){function n(o,s){return"[Axios v"+St+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,i)=>{if(e===!1)throw new y(n(s," has been removed"+(t?" in "+t:"")),y.ERR_DEPRECATED);return t&&!Ir[s]&&(Ir[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,s,i):!0}},rt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Vs(e,t,r){if(typeof e!="object"||e===null)throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){const a=e[s],c=a===void 0||i(a,s,e);if(c!==!0)throw new y("option "+s+" must be "+c,y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const nt={assertOptions:Vs,validators:rt},H=nt.validators;let we=class{constructor(e){this.defaults=e||{},this.interceptors={request:new pr,response:new pr}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error)try{let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack;let s="";if(typeof o=="string"){const i=o.indexOf(`
|
|
9
|
+
`);s=i===-1?"":o.slice(i+1)}if(!r.stack)r.stack=s;else if(s){const i=s.indexOf(`
|
|
10
|
+
`),a=i===-1?-1:s.indexOf(`
|
|
11
|
+
`,i+1),c=a===-1?"":s.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=`
|
|
12
|
+
`+s)}}catch{}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=_e(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;r!==void 0&&nt.assertOptions(r,{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),n!=null&&(l.isFunction(n)?t.paramsSerializer={serialize:n}:nt.assertOptions(n,{encode:H.function,serialize:H.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nt.assertOptions(t,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.spelling("withXSRFToken")},!0),t.method=(l.getSafeProp(t,"method")||l.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=o&&l.merge(o.common,o[t.method]);o&&l.forEach(yr.concat("common"),p=>{delete o[p]}),t.headers=z.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(p){if(typeof p.runWhen=="function"&&p.runWhen(t)===!1)return;a=a&&p.synchronous;const E=t.transitional||wt;E&&E.legacyInterceptorReqResOrdering?i.unshift(p.fulfilled,p.rejected):i.push(p.fulfilled,p.rejected)});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!a){const p=[Ct.bind(this),void 0];for(p.unshift(...i),p.push(...c),f=p.length,u=Promise.resolve(t);d<f;)u=u.then(p[d++],p[d++]);return u}f=i.length;let h=t;for(;d<f;){const p=i[d++],E=i[d++];try{h=p?p(h):h}catch(F){if(!E){u=Promise.reject(F);break}try{const _=E.call(this,F);l.isThenable(_)&&(u=Promise.resolve(_).then(()=>Ct.call(this,h)))}catch(_){u=Promise.reject(_)}break}}if(!u)try{u=Ct.call(this,h)}catch(p){u=Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=_e(this.defaults,e);const t=Sr(e.baseURL,e.url,e.allowAbsoluteUrls,e);return dr(t,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){we.prototype[e]=function(t,r){return this.request(_e(r||{},{method:e,url:t,data:r&&l.hasOwnProp(r,"data")?r.data:void 0}))}}),l.forEach(["post","put","patch","query"],function(e){function t(r){return function(n,o,s){return this.request(_e(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}we.prototype[e]=t(),e!=="query"&&(we.prototype[e+"Form"]=t(!0))});let $s=class an{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{n.subscribe(a),s=a}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(o,s,i){n.reason||(n.reason=new Ie(o,s,i),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new an(function(r){t=r}),cancel:t}}};function Ms(e){return function(t){return e.apply(null,t)}}function qs(e){return l.isObject(e)&&e.isAxiosError===!0}const ot={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ot).forEach(([e,t])=>{ot[t]===void 0&&(ot[t]=e)});function Lr(e){const t=new we(e),r=Ht(we.prototype.request,t);return l.extend(r,we.prototype,t,{allOwnKeys:!0}),l.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Lr(_e(e,n))},r}const L=Lr(Be);L.Axios=we,L.CanceledError=Ie,L.CancelToken=$s,L.isCancel=_r,L.VERSION=St,L.toFormData=Ze,L.AxiosError=y,L.Cancel=L.CanceledError,L.all=function(e){return Promise.all(e)},L.spread=Ms,L.isAxiosError=qs,L.mergeConfig=_e,L.AxiosHeaders=z,L.formToJSON=e=>br(l.isHTMLForm(e)?new FormData(e):e),L.getAdapter=Br.getAdapter,L.HttpStatusCode=ot,L.default=L;const{Axios:Vi,AxiosError:$i,CanceledError:Mi,isCancel:qi,CancelToken:zi,VERSION:Hi,all:Ji,Cancel:Wi,isAxiosError:Ki,spread:Xi,toFormData:Gi,AxiosHeaders:Qi,HttpStatusCode:Yi,formToJSON:Zi,getAdapter:ea,mergeConfig:ta,create:ra}=L;function st(e){return e?.name==="AuthRequiredError"}const zs=new Set(["OpenC3::AuthError","OpenC3::ForbiddenError"]);function Hs(e){return e?.response?.status===401||e?.status===401||zs.has(e?.name)}function Js(e){!st(e)&&!Hs(e)&&console.error(e)}class Vr extends Error{constructor(t="Authentication required"){super(t),this.name="AuthRequiredError"}}globalThis.__openc3AuthRejectionHandler||(globalThis.__openc3AuthRejectionHandler=!0,globalThis.addEventListener?.("unhandledrejection",e=>{st(e.reason)&&e.preventDefault()}));let $r=!1;function Mr(){$r||($r=!0,OpenC3Auth.login())}async function kt(){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch(e){throw st(e)?e:(Mr(),new Vr(e?.message))}if(!localStorage.openc3Token)throw Mr(),new Vr}const qr=200,Tt=L.create({baseURL:location.origin,timeout:6e4,params:{}});Tt.interceptors.response.use(e=>e,e=>{if(e.response){if(e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);if(e.response.status===401)return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(s){s&&OpenC3Auth.setTokens()}).catch(Js),Promise.reject(e);const t=e.response?.data?.error?.data?.class;if(t==="HazardousError"||t==="CriticalCmdError")return Promise.reject(e);let r=`HTTP ${e.response.status} - `;e.response?.statusText&&(r+=`${e.response.statusText} `);const n=e.response?.config?.data;typeof n=="string"&&n.length>0&&(n.length>qr?r+=`${n.slice(0,qr)}... `:r+=`${n} `),e.response?.data?.message?r+=`${e.response.data.message}`:e.response?.data?.exception?r+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(r+=`${e.response.data.error.class} `),r+=`${e.response.data.error.message}`):r+=`${e.response?.data}`;const{$cosmosNotify:o}=window;throw o&&o.serious({title:"Network error",body:r}),e}else throw e});const it=async function(e,t,{data:r,params:n={},headers:o,noAuth:s=!1,optionalAuth:i=!1,noScope:a=!1,onUploadProgress:c=!1,responseType:u}={}){if(!s)if(i){try{await kt()}catch(d){if(!st(d))throw d}localStorage.openc3Token&&(o.Authorization=localStorage.openc3Token)}else await kt(),o.Authorization=localStorage.openc3Token;return o.manual=!0,!a&&!n.scope&&(n.scope=window.openc3Scope),Tt({method:e,url:t,data:r,params:n,headers:o,onUploadProgress:c,responseType:u})},Pt={Accept:"application/json"},zr={...Pt,"Content-Type":"application/json"},K={get:function(e,{params:t,headers:r=Pt,noScope:n,noAuth:o,optionalAuth:s,onUploadProgress:i,responseType:a}={}){return it("get",e,{params:t,headers:r,noScope:n,noAuth:o,optionalAuth:s,onUploadProgress:i,responseType:a})},put:function(e,{data:t,params:r,headers:n=zr,noScope:o,noAuth:s,onUploadProgress:i}={}){return it("put",e,{data:t,params:r,headers:n,noScope:o,noAuth:s,onUploadProgress:i})},post:function(e,{data:t,params:r,headers:n=zr,noScope:o,noAuth:s,onUploadProgress:i,responseType:a}={}){return it("post",e,{data:t,params:r,headers:n,noScope:o,noAuth:s,onUploadProgress:i,responseType:a})},delete:function(e,{params:t,headers:r=Pt,noScope:n,noAuth:o,onUploadProgress:s}={}){return it("delete",e,{params:t,headers:r,noScope:n,noAuth:o,onUploadProgress:s})}};function at(e){return Ws.test(e)}const Ws=/^-?[0-9]+$/;function Hr(e){return Ks.test(e)}const Ks=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Jr(e,t){if(at(e))return Number.isSafeInteger(Number.parseInt(e,10));const r=Number.parseFloat(e);if(Number.isInteger(r)&&!Number.isSafeInteger(r))return!1;const n=String(r);if(e===n)return!0;const o=Wr(e),s=Wr(n);return!!(o===s||t?.approx===!0&&s.length>=14&&o.startsWith(s.substring(0,14)))}let Le=(function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e})({});function Xs(e){if(Jr(e,{approx:!1}))return;if(at(e))return Le.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?t===0?Le.underflow:Le.truncate_float:Le.overflow}function Wr(e){const{start:t,end:r}=Gs(e),n=e.substring(t,r),o=n.indexOf(".");return o===-1?n:n.substring(0,o)+n.substring(o+1)}function Gs(e){let t=0;for(e[0]==="-"&&t++;e[t]==="0"||e[t]===".";)t++;let r=e.lastIndexOf("e");for(r===-1&&(r=e.lastIndexOf("E")),r===-1&&(r=e.length);(e[r-1]==="0"||e[r-1]===".")&&r>t;)r--;return{start:t,end:r}}const Kr=Symbol.for("lossless-json.LosslessNumber");class Qs{value;isLosslessNumber=!0;get[Kr](){return!0}constructor(t){if(!Hr(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=Xs(this.value);if(t===void 0||t===Le.truncate_float)return Number.parseFloat(this.value);if(at(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 Xr(e){return e!==null&&typeof e=="object"&&e[Kr]===!0}function Ys(e){return new Qs(e)}function Zs(e,t){return jt({"":e},"",e,t)}function jt(e,t,r,n){return Array.isArray(r)?n.call(e,t,ti(r,n)):r&&typeof r=="object"&&!Xr(r)?n.call(e,t,ei(r,n)):n.call(e,t,r)}function ei(e,t){for(const r of Object.keys(e)){const n=jt(e,r,e[r],t);n!==void 0?e[r]=n:delete e[r]}return e}function ti(e,t){for(let r=0;r<e.length;r++){const n=jt(e,String(r),e[r],t);n===void 0?delete e[r]:e[r]=n}return e}function ri(e,t,r){const n=typeof r=="function"?{parseNumber:r}:r,o=n?.parseNumber??Ys,s=n?.onDuplicateKey??X;let i=0;const a=d();return w(a),x(),t?Zs(a,t):a;function c(){if(e.charCodeAt(i)===li){i++,h();const A={};let U=!0;for(;i<e.length&&e.charCodeAt(i)!==Yr;){U?U=!1:(F(),h());const le=i,ae=p();if(ae===void 0){k();return}h(),_();const G=d();if(G===void 0){ee();return}if(Object.prototype.hasOwnProperty.call(A,ae)&&!Ft(G,A[ae])){const $=s({key:ae,position:le+1,oldValue:A[ae],newValue:G});$!==void 0&&Gr(A,ae,$)}else Gr(A,ae,G)}return e.charCodeAt(i)!==Yr&&he(),i++,A}}function u(){if(e.charCodeAt(i)===ci){i++,h();const A=[];let U=!0;for(;i<e.length&&e.charCodeAt(i)!==Zr;){U?U=!1:F();const le=d();v(le),A.push(le)}return e.charCodeAt(i)!==Zr&&pe(),i++,A}}function d(){h();const A=p()??E()??c()??u()??f("true",!0)??f("false",!1)??f("null",null);return h(),A}function f(A,U){if(e.slice(i,i+A.length)===A)return i+=A.length,U}function h(){for(;ni(e.charCodeAt(i));)i++}function p(){if(e.charCodeAt(i)===Nt){i++;let A="";for(;i<e.length&&e.charCodeAt(i)!==Nt;){if(e.charCodeAt(i)===ai){const U=e[i+1],le=ii[U];le!==void 0?(A+=le,i++):U==="u"?lt(e.charCodeAt(i+2))&<(e.charCodeAt(i+3))&<(e.charCodeAt(i+4))&<(e.charCodeAt(i+5))?(A+=String.fromCharCode(Number.parseInt(e.slice(i+2,i+6),16)),i+=5):te(i):R(i)}else si(e.charCodeAt(i))?A+=e[i]:Z(e[i]);i++}return D(),i++,A}}function E(){const A=i;if(e.charCodeAt(i)===en&&(i++,g(A)),e.charCodeAt(i)===Dt)i++;else if(oi(e.charCodeAt(i)))for(i++;ct(e.charCodeAt(i));)i++;else return;if(e.charCodeAt(i)===bi)for(i++,g(A);ct(e.charCodeAt(i));)i++;if(e.charCodeAt(i)===xi||e.charCodeAt(i)===vi)for(i++,(e.charCodeAt(i)===en||e.charCodeAt(i)===pi)&&i++,g(A);ct(e.charCodeAt(i));)i++;if(i>A)return o(e.slice(A,i))}function F(){if(e.charCodeAt(i)!==gi)throw new SyntaxError(`Comma ',' expected after value ${re()}`);i++}function _(){if(e.charCodeAt(i)!==yi)throw new SyntaxError(`Colon ':' expected after property name ${re()}`);i++}function w(A){if(A===void 0)throw new SyntaxError(`JSON value expected ${re()}`)}function v(A){if(A===void 0)throw new SyntaxError(`Array item expected ${re()}`)}function x(){if(i<e.length)throw new SyntaxError(`Expected end of input ${re()}`)}function g(A){if(!ct(e.charCodeAt(i))){const U=e.slice(A,i);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${re()}`)}}function D(){if(e.charCodeAt(i)!==Nt)throw new SyntaxError(`End of string '"' expected ${re()}`)}function k(){throw new SyntaxError(`Quoted object key expected ${re()}`)}function X({key:A,position:U}){throw new SyntaxError(`Duplicate key '${A}' encountered at position ${U}`)}function he(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${re()}`)}function pe(){throw new SyntaxError(`Array item or end of array ']' expected ${re()}`)}function Z(A){throw new SyntaxError(`Invalid character '${A}' ${q()}`)}function R(A){const U=e.slice(A,A+2);throw new SyntaxError(`Invalid escape character '${U}' ${q()}`)}function ee(){throw new SyntaxError(`Object value expected after ':' ${q()}`)}function te(A){const U=e.slice(A,A+6);throw new SyntaxError(`Invalid unicode character '${U}' ${q()}`)}function q(){return`at position ${i}`}function Re(){return i<e.length?`but got '${e[i]}'`:"but reached end of input"}function re(){return`${Re()} ${q()}`}}function Gr(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}):e[t]=r}function ni(e){return e===ui||e===di||e===fi||e===hi}function lt(e){return e>=Dt&&e<=Ut||e>=_i&&e<=Oi||e>=wi&&e<=Ei}function ct(e){return e>=Dt&&e<=Ut}function oi(e){return e>=mi&&e<=Ut}function si(e){return e>=32&&e<=1114111}function Ft(e,t){return e===t?!0:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((r,n)=>Ft(r,t[n])):Qr(e)&&Qr(t)?[...new Set([...Object.keys(e),...Object.keys(t)])].every(r=>Ft(e[r],t[r])):!1}function Qr(e){return typeof e=="object"&&e!==null}const ii={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
13
|
+
`,r:"\r",t:" "},ai=92,li=123,Yr=125,ci=91,Zr=93,ui=32,di=10,fi=9,hi=13,Nt=34,pi=43,en=45,Dt=48,mi=49,Ut=57,gi=44,bi=46,yi=58,_i=65,wi=97,vi=69,xi=101,Oi=70,Ei=102;function Si(e,t,r,n){return o(e);function o(c,u){if(Array.isArray(n)){const d=n.find(f=>f.test(c));if(d){const f=d.stringify(c);if(typeof f!="string"||!Hr(f))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${f})`);return f}}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(Xr(c)||typeof c=="bigint")return c.toString();if(Array.isArray(c))return s(c);if(c&&typeof c=="object")return i(c)}function s(c,u){if(c.length===0)return"[]";let d="[";for(let f=0;f<c.length;f++){const h=c[f];if(typeof h<"u"&&typeof h!="function"){const p=o(h);d+=p===void 0?"null":p}else d+="null";f<c.length-1&&(d+=",")}return d+="]",d}function i(c,u){if(typeof c.toJSON=="function")return o(c.toJSON());const d=Array.isArray(t)?[...new Set(t.map(String))]:Object.keys(c);if(d.length===0)return"{}";let f=!0,h="{";for(const p of d){const E=c[p];if(a(p,E)){const F=o(E);if(F===void 0)continue;f?f=!1:h+=",";const _=JSON.stringify(p);h+=`${_}:`,h+=F}}return h+="}",h}function a(c,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function Ri(e){return at(e)&&!Jr(e)?BigInt(e):Number.parseFloat(e)}class Ai{id=1;constructor(){}async exec(t,r,n={},o={},s=6e4){await kt(),this.id=this.id+1;try{return n.scope=window.openc3Scope,o.manual=!0,(await Tt.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:r,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...o},timeout:s,transformRequest:[(i,a)=>Si(i)],transformResponse:[i=>{try{return ri(i,void 0,Ri)}catch{const a=typeof i=="string"?i.substring(0,200):String(i),c=new Error(`Server returned non-JSON response: ${a}`);throw c.name="ServerError",c}}]})).data.result}catch(i){let a=new Error;throw i.response?(a.name=i.response.data.error.data.class,a.message=i.response.data.error.data.message,a.object=i.response.data.error):i.request?(a.name="Request error",a.message="Request error, no response received"):a=i,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,r,n,o,s){return this.exec("map_target_to_interface",[t,r],{cmd_only:n,tlm_only:o,unmap_old:s})}unmap_target_from_interface(t,r,n,o){return this.exec("unmap_target_from_interface",[t,r],{cmd_only:n,tlm_only:o})}connect_interface(t,...r){return r.length>0?this.exec("connect_interface",[t,...r]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,r,...n){return this.exec("interface_cmd",[t,r,...n])}interface_target_enable(t,r,n=!1,o=!1){return this.exec("interface_target_enable",[t,r],{cmd_only:n,tlm_only:o})}interface_target_disable(t,r,n=!1,o=!1){return this.exec("interface_target_disable",[t,r],{cmd_only:n,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,r,n,o,s){return this.exec("map_target_to_router",[t,r],{cmd_only:n,tlm_only:o,unmap_old:s})}unmap_target_from_router(t,r,n,o){return this.exec("unmap_target_from_router",[t,r],{cmd_only:n,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,r,n=!1,o=!1){return this.exec("router_target_enable",[t,r],{cmd_only:n,tlm_only:o})}router_target_disable(t,r,n=!1,o=!1){return this.exec("router_target_disable",[t,r],{cmd_only:n,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,r,n){return this.exec("get_item",[t,r,n])}get_param(t,r,n){return this.exec("get_param",[t,r,n])}get_parameter(t,r,n){return this.get_param(t,r,n)}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.get_target_names()}get_tlm(t,r){return this.exec("get_tlm",[t,r])}get_telemetry(t,r){return this.get_tlm(t,r)}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.get_all_tlm(t)}get_all_tlm_names(t,r=!1){return this.exec("get_all_tlm_names",[t],{hidden:r})}get_all_telemetry_names(t){return this.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,r,n,o=30){const s=await this.exec("get_tlm_packet",[t,r],{type:n,stale_time:o});if(s!=null){let i=s.length,a=null;for(let c=0;c<i;c++)a=this.decode_openc3_type(s[c][1]),a!==null&&(s[c][1]=a)}return s}get_packet_derived_items(t,r){return this.exec("get_packet_derived_items",[t,r])}get_tlm_buffer(t,r){return this.exec("get_tlm_buffer",[t,r])}get_tlm_available(t,r={},n={}){return this.exec("get_tlm_available",[t],r,n)}async get_tlm_values(t,r=30,n=null,o=null,s=null,i={}){let a={stale_time:r};n!==null&&(a.cache_timeout=n),o!==null&&(a.start_time=o.toISOString()),s!==null&&(a.end_time=s.toISOString());const c=await this.exec("get_tlm_values",[t],a,i,1e4);if(c&&c.length>0){let u=c.length,d=null;for(let f=0;f<u;f++)d=this.decode_openc3_type(c[f][0]),d!==null&&(c[f][0]=d)}return c}get_limits(t,r,n){return this.exec("get_limits",[t,r,n])}async tlm(t,r,n,o="CONVERTED"){let s=null;if(r===void 0)s=await this.exec("tlm",[t]);else if(n===void 0)if(["RAW","CONVERTED","FORMATTED"].includes(r))s=await this.exec("tlm",[t],{type:r});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${r}. Valid options are RAW, CONVERTED or FORMATTED.`,a}else s=await this.exec("tlm",[t,r,n],{type:o});let i=this.decode_openc3_type(s);return i!==null&&(s=i),s}async inject_tlm(t,r,n=null,o="CONVERTED",s=!1){await this.exec("inject_tlm",[t,r,n],{type:o,stored:s})}set_tlm(t,r,n,o){return this.exec("set_tlm",[t,r,n],{type:o})}override_tlm(t,r,n,o){return this.exec("override_tlm",[t,r,n],{type:o})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,r,n,o){return this.exec("normalize_tlm",[t,r,n],{type:o})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.get_all_cmds(t)}get_all_cmd_names(t,r=!1){return this.exec("get_all_cmd_names",[t],{hidden:r})}get_all_command_names(t){return this.get_all_cmd_names(t)}get_cmd(t,r){return this.exec("get_cmd",[t,r])}get_command(t,r){return this.get_cmd(t,r)}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,r,n,o="CONVERTED"){return this.exec("get_cmd_value",[t,r,n,o])}get_cmd_buffer(t,r){return this.exec("get_cmd_buffer",[t,r])}_cmd(t,r,n,o,s,i={}){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,[r,n,o],i,s)}get_cmd_hazardous(t,r,n,o={}){return r===void 0?this.exec("get_cmd_hazardous",t,{},o):this._cmd("get_cmd_hazardous",t,r,n,o)}cmd(t,r,n,o={},s={}){return r===void 0?this.exec("cmd",t,s,o):this._cmd("cmd",t,r,n,o,s)}cmd_no_range_check(t,r,n,o={},s={}){return r===void 0?this.exec("cmd_no_range_check",t,s,o):this._cmd("cmd_no_range_check",t,r,n,o,s)}cmd_raw(t,r,n,o={},s={}){return r===void 0?this.exec("cmd_raw",t,s,o):this._cmd("cmd_raw",t,r,n,o,s)}cmd_raw_no_range_check(t,r,n,o={},s={}){return r===void 0?this.exec("cmd_raw_no_range_check",t,s,o):this._cmd("cmd_raw_no_range_check",t,r,n,o,s)}cmd_no_hazardous_check(t,r,n,o={},s={}){return r===void 0?this.exec("cmd_no_hazardous_check",t,s,o):this._cmd("cmd_no_hazardous_check",t,r,n,o,s)}cmd_no_checks(t,r,n,o={},s={}){return r===void 0?this.exec("cmd_no_checks",t,s,o):this._cmd("cmd_no_checks",t,r,n,o,s)}cmd_raw_no_hazardous_check(t,r,n,o={},s={}){return r===void 0?this.exec("cmd_raw_no_hazardous_check",t,s,o):this._cmd("cmd_raw_no_hazardous_check",t,r,n,o,s)}cmd_raw_no_checks(t,r,n,o={},s={}){return r===void 0?this.exec("cmd_raw_no_checks",t,s,o):this._cmd("cmd_raw_no_checks",t,r,n,o,s)}build_cmd(t,r,n,o={},s={}){return r===void 0?this.exec("build_cmd",t,s,o):this._cmd("build_cmd",t,r,n,o,s)}build_command(t,r,n,o={},s={}){return this.build_cmd(t,r,n,o,s)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(t,r){return this.exec("send_raw",[t,r])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,r){return this.exec("load_config",[t,r])}save_config(t,r,n){return this.exec("save_config",[t,r,n])}delete_config(t,r){return this.exec("delete_config",[t,r])}enable_limits(t,r,n){return this.exec("enable_limits",[t,r,n])}disable_limits(t,r,n){return this.exec("disable_limits",[t,r,n])}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,r){return this.exec("get_setting",[t],r)}get_settings(t,r){return this.exec("get_settings",t,r)}set_setting(t,r){return this.exec("set_setting",[t,r])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(t,r){return this.set_setting(t,r)}get_metrics(t=!1){return this.exec("get_metrics",[],{detailed:t})}open_tab(t){window.open(t,"_blank")}async hashString(t){if(window.isSecureContext){const r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r),o=new Uint8Array(n);return Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join("")}}}const Ci={mixins:[zt],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,r]of Object.entries(this.dataItem.states))e.push({title:t,value:r});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 ki(e,t,r,n,o,s){const i=O("v-checkbox"),a=O("v-select"),c=O("v-text-field");return S(),V("td",null,[s.isCheckbox?(S(),T(i,{key:0,modelValue:o.checkValue,"onUpdate:modelValue":t[0]||(t[0]=u=>o.checkValue=u),density:"compact","hide-details":"",disabled:!o.dataItem.editable,"data-test":"table-item-checkbox"},null,8,["modelValue","disabled"])):o.dataItem.states?(S(),T(a,{key:1,modelValue:o.stateValue,"onUpdate:modelValue":t[1]||(t[1]=u=>o.stateValue=u),density:"compact","hide-details":"",items:s.itemStates,disabled:!o.dataItem.editable,"data-test":"table-item-select"},null,8,["modelValue","items","disabled"])):(S(),T(c,{key:2,variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"","model-value":s.format(o.dataItem.value),disabled:!o.dataItem.editable,"data-test":"table-item-text-field","onUpdate:modelValue":s.textChange},null,8,["model-value","disabled","onUpdate:modelValue"]))])}const Ti={components:{TableItem:qe(Ci,[["render",ki]])},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,r){this.$emit("change",{index:t,event:r})}}},Pi={class:"text-start"},ji={key:0,class:"text-start"};function Fi(e,t,r,n,o,s){const i=O("table-item");return S(),V("tr",null,[B("td",Pi,I(o.dataItems[0].index),1),s.oneDimensional?(S(),V("td",ji,I(o.dataItems[0].name),1)):ie("",!0),(S(!0),V(Q,null,se(o.dataItems,(a,c)=>(S(),T(i,{key:a.name,item:a,onChange:ke(u=>s.onChange(a,c,u),["self"])},null,8,["item","onChange"]))),128))])}const Ni={components:{TopBar:hn,TableRow:qe(Ti,[["render",Fi]]),FileOpenSaveDialog:Rn,SimpleTextDialog:jn},data(){return{title:"Table Manager",search:"",curTab:null,tables:[],api:null,definition:null,fileInput:null,definitionFilename:"",fileNew:!1,filename:"",fileModified:"",lockedBy:null,saveAsInProgress:!1,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",disabled:this.saveAsInProgress,command:()=>{this.saveFile()}},{label:"Save As...",icon:"mdi-content-save",disabled:this.saveAsInProgress,command:()=>{this.saveAs()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:()=>{this.delete()}}]}]}},watch:{filename:async function(e){const t=this.filename.split("/").slice(0,2).join("/")+"/procedures",[r,n]=await Promise.all([this.findScript(`${t}/upload`),this.findScript(`${t}/download`)]);this.uploadScript=r,this.downloadScript=n}},created(){this.api=new Ai,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.replace(/\*$/,""),this.fileModified="",this.lockedBy=t,this.getDefinition())},setError(e){this.errorTitle="Error",this.errorText=`Error: ${e}`,this.showError=!0},saveFileContents: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));const t=K.post(`/openc3-api/tables/${this.filename}`,{data:e,headers:{"Content-Type":"multipart/form-data","Ignore-Errors":"403, 404"}}).then(r=>{this.fileModified="",setTimeout(()=>{this.showSave=!1},2e3)}).catch(r=>{throw this.showSave=!1,this.errorTitle="Save Error",this.errorText=r.response?.data?.message||`Unable to save ${this.filename}. It still has unsaved changes.`,this.showError=!0,r});return this.lockFile(),t},saveFile:function(){this.saveFileContents().catch(e=>{})},saveAs:function(){this.showSaveAs=!0},saveAsFilename:async function(e){if(this.saveAsInProgress)return;const t=e.replace(/\*$/,"");this.saveAsInProgress=!0;try{try{await K.put(`/openc3-api/tables/${this.filename}/save-as/${t}`,{headers:{Accept:"application/json","Content-Type":"application/json","Ignore-Errors":"403, 404"}})}catch(n){throw this.errorTitle="Save As Error",this.errorText=n.response?.data?.message||`Unable to create ${t}`,this.showError=!0,n}this.unlockFile(),this.filename=t;let r=null;try{r=(await K.get(`/openc3-api/tables/${t}`)).data.locked}catch{}this.lockedBy=r||null,await this.saveFileContents(),this.getDefinition(this.definitionFilename)}catch{}finally{this.saveAsInProgress=!1}},delete:function(){this.filename!==""&&this.$dialog.confirm(`Permanently delete file: ${this.filename}`,{okText:"Delete",cancelText:"Cancel"}).then(e=>K.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),K.post("/openc3-api/tables/binary",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{const n=window.atob(r.data.contents),o=new Uint8Array(n.length);for(let a=0;a<n.length;++a)o[a]=n.charCodeAt(a);const s=new Blob([o],{type:"application/octet-stream"}),i=document.createElement("a");i.href=URL.createObjectURL(s),i.setAttribute("download",r.data.filename),i.click()})},downloadDefinition:function(e=null){const t=new FormData;t.append("definition",this.definitionFilename),e!==null&&t.append("table_name",e),K.post("/openc3-api/tables/definition",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{const n=new Blob([r.data.contents],{type:"text/plain"}),o=document.createElement("a");o.href=URL.createObjectURL(n),o.setAttribute("download",r.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),K.post("/openc3-api/tables/report",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{const n=`Binary: ${this.filename}
|
|
14
|
+
Definition: ${this.definitionFilename}
|
|
15
|
+
|
|
16
|
+
`,o=new Blob([n,r.data.contents],{type:"text/plain"}),s=document.createElement("a");s.href=URL.createObjectURL(o),s.setAttribute("download",r.data.filename),s.click()})},findScript:async function(e){for(const t of["rb","py"])try{return await K.get(`/openc3-api/tables/${e}.${t}`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}),`${e}.${t}`}catch{}return null},runScript:async function(e){const t=await K.post(`/script-api/scripts/${e}/run`,{data:{environment:[{key:"TBL_FILENAME",value:this.filename}]}});this.scriptBackground!==!0&&window.open(`/tools/scriptrunner/${t.data}`,"_blank")},upload(){this.runScript(this.uploadScript)},download:async function(){try{await 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"})}catch{return}this.runScript(this.downloadScript)},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 this.readOnly?Promise.resolve():K.post(`/openc3-api/tables/${this.filename}/lock`)},unlockFile:function(){this.filename!==""&&!this.readOnly&&K.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),K.post("/openc3-api/tables/load",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{this.definitionFilename=r.data.definition,this.tables=r.data.tables.map(n=>({...n,headers:n.headers.map((o,s)=>{const i={title:o,filterable:o!=="INDEX"};return n.numColumns===1?{...i,value:`[0].${o.toLowerCase()}`}:{...i,value:`[${s}].value`}})})),r.data.errors&&this.$notify.caution({title:"Warning",body:r.data.errors})}).catch(r=>{r.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 ${r.response.statusText}. Status: ${r.response.status}`})})},checkAndBuildNewBinary:async function(e){const t=e.replace("/config/","/bin/").replace("_def.txt",".bin");try{await K.get(`/openc3-api/tables/${t}`,{headers:{Accept:"application/json","Ignore-Errors":"404"}})}catch{this.buildNewBinary(e);return}try{await this.$dialog.confirm(`Binary file ${t} already exists. Do you want to overwrite it?`,{okText:"Overwrite",cancelText:"Cancel"})}catch{return}this.buildNewBinary(e)},buildNewBinary:function(e){const t=new FormData;t.append("definition",e),K.post("/openc3-api/tables/generate",{data:t,headers:{"Content-Type":"multipart/form-data"}}).then(r=>{this.filename=r.data.filename,this.getDefinition(e)})},onChange:function(e,{index:t,event:r}){this.fileModified="*",e[t].value=r}}},Di={style:{position:"absolute"},class:"ma-3"};function Ui(e,t,r,n,o,s){const i=O("top-bar"),a=O("v-file-input"),c=O("v-text-field"),u=O("v-col"),d=O("v-row"),f=O("v-icon"),h=O("v-btn"),p=O("v-checkbox-btn"),E=O("v-tooltip"),F=O("v-card-text"),_=O("v-spacer"),w=O("v-card-title"),v=O("v-tab"),x=O("v-tabs"),g=O("table-row"),D=O("v-data-table"),k=O("v-tabs-window-item"),X=O("v-tabs-window"),he=O("v-card"),pe=O("file-open-save-dialog"),Z=O("simple-text-dialog");return S(),V("div",null,[b(i,{menus:s.menus,title:o.title},null,8,["menus","title"]),b(a,{ref:"fileInput",modelValue:o.fileInput,"onUpdate:modelValue":t[0]||(t[0]=R=>o.fileInput=R),"show-size":"",accept:".bin","data-test":"file-input",style:{position:"fixed",top:"-100%"}},null,8,["modelValue"]),b(he,null,{default:m(()=>[b(F,null,{default:m(()=>[b(d,{dense:""},{default:m(()=>[b(u,{cols:"6"},{default:m(()=>[b(c,{id:"filename",modelValue:s.fullFilename,"onUpdate:modelValue":t[1]||(t[1]=R=>s.fullFilename=R),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Filename",class:"filename","data-test":"filename"},null,8,["modelValue"])]),_:1}),b(u,{cols:"6"},{default:m(()=>[b(c,{id:"definition-filename",modelValue:o.definitionFilename,"onUpdate:modelValue":t[2]||(t[2]=R=>o.definitionFilename=R),variant:"outlined",density:"compact",readonly:"","hide-details":"",label:"Definition",class:"filename","data-test":"definition-filename"},null,8,["modelValue"])]),_:1})]),_:1}),b(d,{dense:""},{default:m(()=>[b(u,{cols:"auto",class:"mr-auto"},{default:m(()=>[t[25]||(t[25]=B("span",{class:"text-body-1 ma-2"},"File Download:",-1)),b(h,{dense:"",color:"primary",class:"mr-3",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-file-binary",onClick:t[3]||(t[3]=R=>s.downloadBinary(null))},{default:m(()=>[t[20]||(t[20]=P(" Binary ",-1)),b(f,{end:"",theme:"dark"},{default:m(()=>[...t[19]||(t[19]=[P(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled"]),b(h,{dense:"",color:"primary",class:"mr-3",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-file-definition",onClick:t[4]||(t[4]=R=>s.downloadDefinition(null))},{default:m(()=>[t[22]||(t[22]=P(" Definition ",-1)),b(f,{end:"",theme:"dark"},{default:m(()=>[...t[21]||(t[21]=[P(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled"]),b(h,{dense:"",color:"primary",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-file-report",onClick:t[5]||(t[5]=R=>s.downloadReport(null))},{default:m(()=>[t[24]||(t[24]=P(" Report ",-1)),b(f,{end:"",theme:"dark"},{default:m(()=>[...t[23]||(t[23]=[P(" mdi-file-document ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(u,{cols:"auto"},{default:m(()=>[b(h,{dense:"",color:"primary",disabled:!o.uploadScript,"data-test":"upload-file",onClick:t[6]||(t[6]=R=>s.upload())},{default:m(()=>[t[27]||(t[27]=P(" Upload ",-1)),b(f,{end:"",theme:"dark"},{default:m(()=>[...t[26]||(t[26]=[P(" mdi-file-upload ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(u,{cols:"auto"},{default:m(()=>[b(h,{dense:"",color:"primary",disabled:!o.downloadScript,"data-test":"download-file",onClick:t[7]||(t[7]=R=>s.download())},{default:m(()=>[t[29]||(t[29]=P(" Download ",-1)),b(f,{end:"",theme:"dark"},{default:m(()=>[...t[28]||(t[28]=[P(" mdi-file-download ",-1)])]),_:1})]),_:1},8,["disabled"])]),_:1}),b(u,{cols:"auto"},{default:m(()=>[b(E,{"open-delay":600,location:"top"},{activator:m(({props:R})=>[B("span",Mt(qt(R)),[b(p,{modelValue:o.scriptBackground,"onUpdate:modelValue":t[8]||(t[8]=ee=>o.scriptBackground=ee),label:"B/G",class:"shrink mt-0","data-test":"upload-background"},null,8,["modelValue"])],16)]),default:m(()=>[t[30]||(t[30]=B("span",null,"Run upload download scripts in the background",-1))]),_:1})]),_:1})]),_:1})]),_:1}),b(w,{class:"d-flex align-center"},{default:m(()=>[t[31]||(t[31]=P(" Items ",-1)),b(_),b(c,{modelValue:o.search,"onUpdate:modelValue":t[9]||(t[9]=R=>o.search=R),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),(S(),T(x,{key:`v-tabs_${o.tables.length}`,modelValue:o.curTab,"onUpdate:modelValue":t[10]||(t[10]=R=>o.curTab=R)},{default:m(()=>[(S(!0),V(Q,null,se(o.tables,(R,ee)=>(S(),T(v,{key:ee},{default:m(()=>[P(I(R.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])),(S(),T(X,{key:`v-tabs-window_${o.tables.length}`,modelValue:o.curTab,"onUpdate:modelValue":t[11]||(t[11]=R=>o.curTab=R)},{default:m(()=>[(S(!0),V(Q,null,se(o.tables,(R,ee)=>(S(),T(k,{key:`${o.filename}${ee}`},{default:m(()=>[b(D,{headers:R.headers,items:R.rows,search:o.search,"items-per-page":20,"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact","data-test":R.name},Je({item:m(({item:te})=>[(S(),T(g,{key:te[0].name,items:te,onChange:ke(q=>s.onChange(te,q),["self"])},null,8,["items","onChange"]))]),_:2},[o.tables.length>1?{name:"tfoot",fn:m(()=>[B("div",Di,[t[38]||(t[38]=B("span",{class:"text-body-1 mr-3"},"Table Download:",-1)),b(h,{dense:"",color:"primary",class:"mr-3",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-table-binary",onClick:te=>s.downloadBinary(R.name)},{default:m(()=>[t[33]||(t[33]=P(" Binary ",-1)),b(f,{end:"",theme:"dark"},{default:m(()=>[...t[32]||(t[32]=[P(" mdi-file-code ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),b(h,{dense:"",color:"primary",class:"mr-3",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-table-definition",onClick:te=>s.downloadDefinition(R.name)},{default:m(()=>[t[35]||(t[35]=P(" Definition ",-1)),b(f,{end:"",theme:"dark"},{default:m(()=>[...t[34]||(t[34]=[P(" mdi-file-document-edit ",-1)])]),_:1})]),_:1},8,["disabled","onClick"]),b(h,{dense:"",color:"primary",disabled:o.filename==""||o.definitionFilename=="","data-test":"download-table-report",onClick:te=>s.downloadReport(R.name)},{default:m(()=>[t[37]||(t[37]=P(" Report ",-1)),b(f,{end:"",theme:"dark"},{default:m(()=>[...t[36]||(t[36]=[P(" 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?(S(),T(pe,{key:0,modelValue:o.fileOpen,"onUpdate:modelValue":t[12]||(t[12]=R=>o.fileOpen=R),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]=R=>s.setFile(R)),onError:t[14]||(t[14]=R=>s.setError(R))},null,8,["modelValue","custom-help-text"])):ie("",!0),o.showSaveAs?(S(),T(pe,{key:1,modelValue:o.showSaveAs,"onUpdate:modelValue":t[15]||(t[15]=R=>o.showSaveAs=R),type:"save","require-target-parent-dir":"","api-url":"/openc3-api/tables","input-filename":o.filename,onFilename:t[16]||(t[16]=R=>s.saveAsFilename(R)),onError:t[17]||(t[17]=R=>s.setError(R))},null,8,["modelValue","input-filename"])):ie("",!0),b(Z,{modelValue:o.showError,"onUpdate:modelValue":t[18]||(t[18]=R=>o.showError=R),title:o.errorTitle,text:o.errorText},null,8,["modelValue","title","text"])])}const sa=ln("default",qe(Ni,[["render",Ui],["__scopeId","data-v-3536c544"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-3c97f07cff18342b565e.js","vue","./DetailsDialog-S1nw1d0h-1761970659adf7afed91.js","single-spa","./VWidget-D4ipW0SF-41740de5165634ad2357.js","vue-router","pinia","vuetify","./LimitsBar-CxPzG0Zv-5a5327231babf0874b27.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js"],(function(y,N){"use strict";var c,a,s,o,n,u,d,l,m,h,p,g,v,x,C,w;return{setters:[e=>{c=e.g},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createElementBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=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.C},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 k(t,r,E,L,W,V){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),_=a("v-list"),z=a("v-menu"),j=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:d(t.valueClass),style:u([t.computedStyle,V.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(z,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(_,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,M)=>(s(),p(B,{key:M,onClick:g(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(j,{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 T=y("default",c(e,[["render",k],["__scopeId","data-v-ce1e6683"]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue","./main-3c97f07cff18342b565e.js","vue-router","pinia","single-spa","vuetify"],(function(u,v){"use strict";var t,l,n,a,s,r;return{setters:[e=>{t=e.f},e=>{l=e.resolveComponent,n=e.openBlock,a=e.createBlock,s=e.normalizeStyle},e=>{r=e.g},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 m=l("v-text-field");return n(),a(m,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=p=>o.value=p),variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",style:s(d.computedStyle)},null,8,["modelValue","style"])}const h=u("default",r(e,[["render",c]]))})}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./Widget-
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","./OpenC3TimePicker-DDTLwTEw-2846f70a54c404d41394.js","./main-3c97f07cff18342b565e.js","vue","vue-router","pinia","single-spa","vuetify"],(function(c,f){"use strict";var l,i,n,r,a,s,o,m;return{setters:[e=>{l=e.f},e=>{i=e.w},e=>{n=e.g,r=e.R},e=>{a=e.resolveComponent,s=e.openBlock,o=e.createBlock,m=e.normalizeStyle},null,null,null,null],execute:(function(){const e={components:{OpenC3TimePicker:i},mixins:[l,r],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function p(d,u,k,y,t,v){const h=a("OpenC3TimePicker");return s(),o(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=V=>t.timeValue=V),label:t.label,style:m(d.computedStyle),"hide-details":""},null,8,["modelValue","label","style"])}const T=c("default",n(e,[["render",p]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","vue","./main-3c97f07cff18342b565e.js","vue-router","pinia","single-spa","vuetify"],(function(a,m){"use strict";var t,n,l,r,i,s;return{setters:[e=>{t=e.f},e=>{n=e.openBlock,l=e.createElementBlock,r=e.normalizeStyle,i=e.toDisplayString},e=>{s=e.g},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){this.verifyNumParams("TITLE",1,1,"TITLE <Text>")}};function c(u,y,f,d,g,o){return n(),l("div",{class:"text-h5 text-center pa-1 mt-1 label",style:r(u.computedStyle)},i(o.labelText),5)}const p=a("default",s(e,[["render",c]]))})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-3c97f07cff18342b565e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js"],(function(I,V){"use strict";var u,o,h,c;return{setters:[i=>{u=i.R},i=>{o=i.f},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 r=t.match(/^([^%]*)%([#0 +-]*)([1-9]\d*)?(?:\.(\d*))?([diouxX])(.*)$/);if(r){const[,S,l,p,,a,y]=r;let f=e<0n,n=f?-e:e,s;switch(a){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("#")&&(a==="x"?s="0x"+s:a==="X"?s="0X"+s:a==="o"&&!s.startsWith("0")&&(s="0"+s)),f&&(a==="d"||a==="i")&&(s="-"+s),p){const g=Number.parseInt(p);l.includes("-")?s=s.padEnd(g," "):s=s.padStart(g,l.includes("0")?"0":" ")}return S+s+y}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),r=>("0"+(r&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"}}},m=80,d=30,v=5;I({V:i,C:{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:m,grayRate:v,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){const r=this._value;r!==this.prevValue?this.grayLevel=m:(this.grayLevel-=this.grayRate,this.grayLevel<d&&(this.grayLevel=d)),this.prevValue=r}},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.error(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}}})})}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./main-3c97f07cff18342b565e.js","vue","./DetailsDialog-S1nw1d0h-1761970659adf7afed91.js","single-spa","./VWidget-D4ipW0SF-41740de5165634ad2357.js","vue-router","pinia","vuetify","./LimitsBar-CxPzG0Zv-5a5327231babf0874b27.js","./LimitsColor-CBcpB-la-3bd861951380f642016e.js","./Widget-Dy-YgkeU-2c96085cda6c2fbbe9e8.js"],(function(D,U){"use strict";var m,a,i,u,p,o,v,c,n,l,g,d,h,y,f,C,x,k,S;return{setters:[t=>{m=t.g},t=>{a=t.resolveComponent,i=t.openBlock,u=t.createElementBlock,p=t.normalizeStyle,o=t.createBlock,v=t.normalizeClass,c=t.createSlots,n=t.withCtx,l=t.createVNode,g=t.createElementVNode,d=t.toDisplayString,h=t.mergeProps,y=t.Fragment,f=t.renderList,C=t.withModifiers,x=t.createTextVNode},t=>{k=t.Z},null,t=>{S=t.C},null,null,null,null,null,null],execute:(function(){const B={components:{DetailsDialog:k},mixins:[S],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(Number.parseInt(this.parameters[4])+4,"ch",this.width)}};function E(e,r,A,I,F,V){const w=a("rux-status"),_=a("v-text-field"),N=a("v-tooltip"),T=a("v-list-item-title"),L=a("v-list-item"),M=a("v-list"),z=a("v-menu"),j=a("details-dialog");return i(),u("div",{class:"value-widget-container",style:p([e.computedStyle,V.aging])},[e.tooltipText?(i(),o(_,{key:1,variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":e._value,class:v(e.valueClass),"data-test":"value",onContextmenu:e.showContextMenu},c({_:2},[e.astroStatus?{name:"prepend-inner",fn:n(()=>[l(w,{status:e.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1032,["model-value","class","onContextmenu"])):(i(),o(N,{key:0,"open-delay":600,location:"top"},{activator:n(({props:s})=>[l(_,h({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":e._value,class:e.valueClass,"data-test":"value"},s,{onContextmenu:e.showContextMenu}),c({_:2},[e.astroStatus?{name:"prepend-inner",fn:n(()=>[l(w,{status:e.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:n(()=>[g("span",null,d(V.fullName),1)]),_:1})),l(z,{modelValue:e.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=s=>e.contextMenuShown=s),target:[e.x,e.y],style:{"z-index":"3000"}},{default:n(()=>[l(M,null,{default:n(()=>[(i(!0),u(y,null,f(e.contextMenuOptions,(s,P)=>(i(),o(L,{key:P,onClick:C(s.action,["stop"])},{default:n(()=>[l(T,null,{default:n(()=>[x(d(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),l(j,{modelValue:e.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=s=>e.viewDetails=s),"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},null,8,["modelValue","target-name","packet-name","item-name"])],4)}const W=D("default",m(B,[["render",E],["__scopeId","data-v-8340df7d"]]))})}}));
|