openc3-cosmos-tool-dataextractor 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/dataextractor/ArrayWidget-BTxChSds-219b1cbe0009cda9ad14.js +2 -0
- data/tools/dataextractor/BarColumn-Cdu3OoMa-27237711828fda255937.js +1 -0
- data/tools/dataextractor/BlockWidget-PmjzrkXF-1a6d6c5a526d92d762a4.js +2 -0
- data/tools/dataextractor/ButtonWidget-nwDlOBJT-91b8131aa136f6f1b93a.js +2 -0
- data/tools/dataextractor/CanvasWidget-BL8930eT-305fd7a0918254604d0c.js +1 -0
- data/tools/dataextractor/CanvasdotWidget-VCf1fL-G-7462178b8b99699ae91d.js +1 -0
- data/tools/dataextractor/CanvasimageWidget-BIw7Wbf2-35b752a114f6f1ab7de1.js +1 -0
- data/tools/dataextractor/CanvasimagevalueWidget-CE3Dj5bH-25045a9e8cbdb50bac76.js +1 -0
- data/tools/dataextractor/CanvaslabelWidget-DWmb356h-126ea8786887c6264094.js +1 -0
- data/tools/dataextractor/CanvaslabelvalueWidget-CI3yYwFs-5372876c547c9db80f37.js +1 -0
- data/tools/dataextractor/CanvaslineWidget-COeapH3P-460a552af45030a747d8.js +1 -0
- data/tools/dataextractor/CanvaslinevalueWidget-CI-Bbzfi-bec09600dcd6ee8715d4.js +1 -0
- data/tools/dataextractor/CheckbuttonWidget-BQhggcZ2-35e6514c44521504188c.js +1 -0
- data/tools/dataextractor/ComboboxWidget-BzsbOv54-f25bf1e68e538e2b0c46.js +1 -0
- data/tools/dataextractor/{DataExtractor-c83fcc2fe07fbcb12e97.js → DataExtractor-c2d759e79eb4c38a3a19.js} +7 -7
- data/tools/dataextractor/DateWidget-B5R_9rA8-eb7538dbbbc3d35ff8f2.js +1 -0
- data/tools/dataextractor/{DetailsDialog-EWjtBjle-4959df7550629e2cbb07.js → DetailsDialog-DLRMqetn-6b4c5c6a6faacd588bab.js} +1 -1
- data/tools/dataextractor/DynamicWidget-m9EliUR2-856a78538fa662622288.js +1 -0
- data/tools/dataextractor/FormatvalueWidget-DZkRJce8-bab94c67f32e135dcca0.js +1 -0
- data/tools/dataextractor/GraphWidget-amwxyH1r-d518e90eb1c0af690c4b.js +1 -0
- data/tools/dataextractor/HorizontalWidget-CirtfuL8-d06a149c4fc186f39f21.js +1 -0
- data/tools/dataextractor/HorizontalboxWidget-CyTDt2nl-90e1b33a781e92b37591.js +1 -0
- data/tools/dataextractor/HorizontallineWidget-BdlNB951-54f354837198a3cb02b0.js +1 -0
- data/tools/dataextractor/IframeWidget-DnJmCrCA-47494fe1569dd8507713.js +1 -0
- data/tools/dataextractor/{ImageLoader-CDLQopxJ-29103b1b0c576f78771b.js → ImageLoader-CpcR6tPi-6c2fb1a992f246b2f149.js} +1 -1
- data/tools/dataextractor/ImageviewerWidget-DIkmb_C9-5625421146845ed96a76.js +1 -0
- data/tools/dataextractor/LabelWidget-BDsypYho-82682e78b06c8fb62cc9.js +1 -0
- data/tools/dataextractor/LabelledWidget-DjturGl5-743a730f65bbc81d4738.js +1 -0
- data/tools/dataextractor/LabelprogressbarWidget-RADJGLj3-56db70caf3e1c981bdae.js +1 -0
- data/tools/dataextractor/LabelsparklineWidget-BlJoICxu-d922c1f9e5d3e1903fbe.js +1 -0
- data/tools/dataextractor/LabelvalueWidget-DVWJqnlY-d188d46542ebf25ae5cf.js +1 -0
- data/tools/dataextractor/LabelvaluedescWidget-CsUP7J4U-744981d2bd1bd3c398f3.js +1 -0
- data/tools/dataextractor/LabelvaluelimitsbarWidget-Blj1QXV8-f65228e49e64d5d4c186.js +1 -0
- data/tools/dataextractor/LabelvaluelimitscolumnWidget-CvCo-uCe-17ca7b08812bf0801517.js +1 -0
- data/tools/dataextractor/LabelvaluerangebarWidget-DpcXhlfF-19277ea294a77e984fba.js +1 -0
- data/tools/dataextractor/{Layout-klOVw-YN-1974f92641167d7b8e95.js → Layout-C1HoM4Kl-4749c21bb2663aaf1fdd.js} +1 -1
- data/tools/dataextractor/LedWidget-B_K2e5tq-569caeedf217fd87a88b.js +1 -0
- data/tools/dataextractor/LimitsbarWidget-DXbqsi4J-dd9453c1c1335607006e.js +1 -0
- data/tools/dataextractor/LimitscolorWidget-Ckmuw0YX-2280879e82c2cf12ee5b.js +1 -0
- data/tools/dataextractor/LimitscolumnWidget-BfY4su5U-fd1407f469d4b3053e0f.js +1 -0
- data/tools/dataextractor/LinegraphWidget-y-Qy9P0R-4e2eeb6588009fb0bc1b.js +1 -0
- data/tools/dataextractor/MatrixbycolumnsWidget-BTBColrs-0ae432903988a024cef9.js +1 -0
- data/tools/dataextractor/ProgressbarWidget-DpA_-vy9-cb4f1215ff76cad60743.js +1 -0
- data/tools/dataextractor/RadiobuttonWidget-BO8zpgwW-e6bb4985a1cf5a1dfe86.js +1 -0
- data/tools/dataextractor/RadiogroupWidget-Oy7V4S-V-199e7d5d60969b13852c.js +1 -0
- data/tools/dataextractor/RangebarWidget-DHS7S3vI-5af418438c9e89d0d328.js +1 -0
- data/tools/dataextractor/RollupWidget-CTk9Kjwr-5b52f5c90ca672af353c.js +1 -0
- data/tools/dataextractor/ScrollwindowWidget-DD0TOW6s-6c2db69efcdcdfdf6e4f.js +1 -0
- data/tools/dataextractor/SignalWidget-CC33KMTW-926329e6b1b6b750cb47.js +1 -0
- data/tools/dataextractor/SpacerWidget-BnJe_Hq6-ba0fb1ec78c72e641753.js +1 -0
- data/tools/dataextractor/SparklineWidget-DMvMQCPm-9641ad80839a222973f3.js +1 -0
- data/tools/dataextractor/TabbookWidget-B3w0JtWe-05da7a73cca2c9623b24.js +1 -0
- data/tools/dataextractor/TextboxWidget-D2f0-eol-58d6368beeb44f20ca35.js +1 -0
- data/tools/dataextractor/TextfieldWidget-DXSdgqVP-b4202832bcd545c93bc5.js +1 -0
- data/tools/dataextractor/TimeWidget-DvrRaEMz-98ee7dcb55051340f67a.js +1 -0
- data/tools/dataextractor/TitleWidget-DqViFQl--dd9a2bc326ed4c3b4be9.js +1 -0
- data/tools/dataextractor/{VWidget-Dmqf_jKM-b33df5cdf8ac7206fb15.js → VWidget-02CG-3Av-63df1706362f2e647b12.js} +1 -1
- data/tools/dataextractor/ValueWidget-KLYY8L8U-eee72fb4be80d11b8f33.js +1 -0
- data/tools/dataextractor/ValuelimitsbarWidget-SR8XNZFB-cb4f6d4e222b9ce3f1bd.js +1 -0
- data/tools/dataextractor/ValuelimitscolumnWidget-xYZSp6YZ-e9b803e5eeb0f52b2ff6.js +1 -0
- data/tools/dataextractor/ValuerangebarWidget-B6M02a9d-6457a90f2ba98a3418a7.js +1 -0
- data/tools/dataextractor/VerticalWidget-z6xUM-ql-21182813e94c79271091.js +1 -0
- data/tools/dataextractor/VerticalboxWidget-3a9cVsW--c1b58e6afe06832bcc3a.js +1 -0
- data/tools/dataextractor/{Widget-orNSvnOh-677c5b6b99d215d82fc9.js → Widget-C4QVI4IH-83406e8ce23b52b3fb89.js} +1 -1
- data/tools/dataextractor/{main-7f7c9aca4eba3a2f66c5.js → main-59d01ac81c6306714fbc.js} +32 -32
- data/tools/dataextractor/main.js +1 -1
- metadata +67 -67
- data/tools/dataextractor/ArrayWidget-By62tXtU-d6845ec502f643cd0d62.js +0 -2
- data/tools/dataextractor/BarColumn-Dm3D1Lhp-f0369ef4eca12f640724.js +0 -1
- data/tools/dataextractor/BlockWidget-CrT45ode-9d92843b01fe56492ce3.js +0 -2
- data/tools/dataextractor/ButtonWidget-CKyBBv6m-692383150f66b24960b7.js +0 -2
- data/tools/dataextractor/CanvasWidget-PqkppHC7-07bb703e9c4596b68aac.js +0 -1
- data/tools/dataextractor/CanvasdotWidget-BUbJgM2d-6f36957b25f169ab1052.js +0 -1
- data/tools/dataextractor/CanvasimageWidget-DPVBY7mi-cb0f31ef7ab254b09998.js +0 -1
- data/tools/dataextractor/CanvasimagevalueWidget-GX37zzNc-15f47f132697297a9901.js +0 -1
- data/tools/dataextractor/CanvaslabelWidget-P2_Y6Edw-b091e01360466b348770.js +0 -1
- data/tools/dataextractor/CanvaslabelvalueWidget-Cuas1i9P-1c9cee705d71b085a8f0.js +0 -1
- data/tools/dataextractor/CanvaslineWidget-BYOYgPya-e7ae21b1484fe8846e31.js +0 -1
- data/tools/dataextractor/CanvaslinevalueWidget-3cVJMFo7-fbedaef931d92580dd05.js +0 -1
- data/tools/dataextractor/CheckbuttonWidget-B3wgSMuB-cd29644d171404fdbbfb.js +0 -1
- data/tools/dataextractor/ComboboxWidget-Dzr4Scvf-5fb4b8b08c687bc69e58.js +0 -1
- data/tools/dataextractor/DateWidget-BWh76Ibb-e4448eb5b8bed813a6dc.js +0 -1
- data/tools/dataextractor/DynamicWidget-m9EliUR2-f8e2433988dfe6da3de5.js +0 -1
- data/tools/dataextractor/FormatvalueWidget-Rk0_eeIm-47f003ee2ce746467c62.js +0 -1
- data/tools/dataextractor/GraphWidget-LqekkNDr-a33b6700fffda5a502f8.js +0 -1
- data/tools/dataextractor/HorizontalWidget-BcfJ24Zn-d39077d8732466d83fc0.js +0 -1
- data/tools/dataextractor/HorizontalboxWidget-CQy1Hv9E-45cbe66fdaee91096aa5.js +0 -1
- data/tools/dataextractor/HorizontallineWidget-BdlNB951-d6a2205172ed8aed7db7.js +0 -1
- data/tools/dataextractor/IframeWidget-BBaDrRLo-417449df3e2a304cfb0d.js +0 -1
- data/tools/dataextractor/ImageviewerWidget-BgO3Pq6I-ac8a5a32f0e70cd2e5a1.js +0 -1
- data/tools/dataextractor/LabelWidget-B_C6lKOE-7aa5bb7216abe13fcff5.js +0 -1
- data/tools/dataextractor/LabelledWidget-B_UGivhr-a4311c5f8b934ba586d3.js +0 -1
- data/tools/dataextractor/LabelprogressbarWidget-BJWCmsYC-40a1e1356a78a16233d7.js +0 -1
- data/tools/dataextractor/LabelsparklineWidget-DILCIh3q-10dfc940c64e34c3fcaf.js +0 -1
- data/tools/dataextractor/LabelvalueWidget-CCZd1NXE-481b5281aeb008279269.js +0 -1
- data/tools/dataextractor/LabelvaluedescWidget-Bsllq8W6-23f88e26ddd53c9e17b7.js +0 -1
- data/tools/dataextractor/LabelvaluelimitsbarWidget-BV-cfaD--d84e73eedbe80dbf3019.js +0 -1
- data/tools/dataextractor/LabelvaluelimitscolumnWidget-DwA0eRBw-11161768847dd43855f8.js +0 -1
- data/tools/dataextractor/LabelvaluerangebarWidget-3GDJz3dj-fbb3fa26a918a7f073e3.js +0 -1
- data/tools/dataextractor/LedWidget-BAt02s0J-1e648734371fac134070.js +0 -1
- data/tools/dataextractor/LimitsbarWidget-JJiyzZjb-64aa530491d109c1cd3b.js +0 -1
- data/tools/dataextractor/LimitscolorWidget-CYzXKbYd-61530465c235da60d06f.js +0 -1
- data/tools/dataextractor/LimitscolumnWidget-Cd76tBo7-8192fb1faefcebe57823.js +0 -1
- data/tools/dataextractor/LinegraphWidget-DWRtO6Ej-d922a15778db3c407847.js +0 -1
- data/tools/dataextractor/MatrixbycolumnsWidget-cwsyjNV2-15735a2a30dcf1dd8d28.js +0 -1
- data/tools/dataextractor/ProgressbarWidget-CYDziFej-3df56853fcd680dafcac.js +0 -1
- data/tools/dataextractor/RadiobuttonWidget-U6jcQZoD-434daaf8ae9a0e1f88ed.js +0 -1
- data/tools/dataextractor/RadiogroupWidget-HTPJnsB0-3d008b8507fde7bd42e1.js +0 -1
- data/tools/dataextractor/RangebarWidget-DW0FJK6y-ffc19171bd5db093deb0.js +0 -1
- data/tools/dataextractor/RollupWidget-B2qrx55f-1ebbd4b3e7ba9dee2a48.js +0 -1
- data/tools/dataextractor/ScrollwindowWidget-CwIDxgO6-9e218b9b089b09a8d2e4.js +0 -1
- data/tools/dataextractor/SignalWidget-Bosa3AbW-5986f5c1a1f6d0641207.js +0 -1
- data/tools/dataextractor/SpacerWidget-DYAlt5mt-78646eff352e062d5f7a.js +0 -1
- data/tools/dataextractor/SparklineWidget-CDrVXOFV-3add0cda4b1aedf9ba24.js +0 -1
- data/tools/dataextractor/TabbookWidget-DDdlzCkv-1bbcc52667948f2ced8f.js +0 -1
- data/tools/dataextractor/TextboxWidget-5euFelEq-a2346a29a1c30a3f5e48.js +0 -1
- data/tools/dataextractor/TextfieldWidget-BFripYeh-fdea7de50a8fb607e99e.js +0 -1
- data/tools/dataextractor/TimeWidget-BBSbsUYJ-309dbc7d277a70f657c9.js +0 -1
- data/tools/dataextractor/TitleWidget-p8cjo-Bs-a3c049216296a7da2718.js +0 -1
- data/tools/dataextractor/ValueWidget-CZh7JWwT-501802abd1cf8ad961b2.js +0 -1
- data/tools/dataextractor/ValuelimitsbarWidget-DU7ybswC-a0fd4af721f9bcc8f015.js +0 -1
- data/tools/dataextractor/ValuelimitscolumnWidget-DMw-h5jM-8d1c94d463c1ca596668.js +0 -1
- data/tools/dataextractor/ValuerangebarWidget-DPpofDpA-84b2c9ecc7460ad486a2.js +0 -1
- data/tools/dataextractor/VerticalWidget-Ch7VAEmz-9d848c3462a57112128c.js +0 -1
- data/tools/dataextractor/VerticalboxWidget-DYx-TFT4-77f85836c826af360fe4.js +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a7deebb8bd2454f6b66008121e80004c44b8c6789eb3bb4dfc53ca42df33339
|
4
|
+
data.tar.gz: e4d6f681ae938889b28c18e675e6be8eefdf1a3431f2b26929289e4dac596d01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8119e92421ba93ce1f94f8b24f1b215dc02cb4b758b00b40edcad63aecef608a7fc533826b2adf8b0bdf2692a569b967337dd18db27655bea5ef50fa5ed178c
|
7
|
+
data.tar.gz: 9123a73dc3717c1e455ebb5ac5a1d9588a49dfd2f9b98382b5911b58a4e8d1afbc630ef873dd406c10ad7335b25cac7489404659499a544d2319c110be453273
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register(["./main-59d01ac81c6306714fbc.js","vue","./DetailsDialog-DLRMqetn-6b4c5c6a6faacd588bab.js","single-spa","./VWidget-02CG-3Av-63df1706362f2e647b12.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js"],function(S,R){"use strict";var h,a,u,c,i,d,p,l,g,f,v,w,y,x,C,V;return{setters:[t=>{h=t.s},t=>{a=t.resolveComponent,u=t.openBlock,c=t.createElementBlock,i=t.createVNode,d=t.normalizeClass,p=t.normalizeStyle,l=t.withCtx,g=t.Fragment,f=t.renderList,v=t.createBlock,w=t.withModifiers,y=t.createTextVNode,x=t.toDisplayString},t=>{C=t.P},null,t=>{V=t.L},null,null,null,null],execute:function(){const t={components:{DetailsDialog:C},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[V],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){let e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var r;let s="",k=" ",D=`
|
2
|
+
`,o=0;if(Array.isArray(e)){for(const m of e)this.formatter&&((r=this.formatter)==null?void 0:r.toLowerCase())!=="nil"?s+=sprintf(this.formatter,m):s+=m,o+=1,o%this.itemsPerRow===0?(o=0,s+=D):s+=k;return s.trim()}else return e}}},B={class:"array-widget-container"};function L(e,r,s,k,D,o){const m=a("v-textarea"),M=a("v-list-item-title"),_=a("v-list-item"),z=a("v-list"),I=a("v-menu"),N=a("details-dialog");return u(),c("div",B,[i(m,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":e._value,class:d(e.valueClass),style:p([e.computedStyle,o.aging]),"data-test":"array-widget",onContextmenu:e.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),i(I,{modelValue:e.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=n=>e.contextMenuShown=n),target:[e.x,e.y]},{default:l(()=>[i(z,null,{default:l(()=>[(u(!0),c(g,null,f(e.contextMenuOptions,(n,P)=>(u(),v(_,{key:P,onClick:w(n.action,["stop"])},{default:l(()=>[i(M,null,{default:l(()=>[y(x(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),i(N,{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2],modelValue:e.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>e.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const j=S("default",h(t,[["render",L],["__scopeId","data-v-62b9e9e1"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","./main-59d01ac81c6306714fbc.js"],function(a,n){"use strict";var h,l;return{setters:[s=>{h=s.o},s=>{l=s.F}],execute:function(){const s=a("l",{mixins:[h],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let t=this.screenValues[this.valueId][0],i=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(i),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(t,i)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new l,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then(t=>{this.limitsSettings=t}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.appliedSettings.forEach(t=>{t[0]==="MIN_VALUE"&&(this.minValue=parseInt(t[1])),t[0]==="MAX_VALUE"&&(this.maxValue=parseInt(t[1]))}),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},destroyed(){this.$emit("deleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(t){if(!t)return;this.redLow=10,this.redHigh=10,this.minValue!==null&&(t[0]<=this.minValue&&(t[0]=this.minValue,this.redLow=0),t[1]<=this.minValue&&(t[1]=this.minValue),t[2]<=this.minValue&&(t[2]=this.minValue),t[3]<=this.minValue&&(t[3]=this.minValue),t.length>4&&t[4]<=this.minValue&&(t[4]=this.minValue),t.length>4&&t[5]<=this.minValue&&(t[5]=this.minValue)),this.maxValue!==null&&(t[0]>=this.maxValue&&(t[0]=this.maxValue),t[1]>=this.maxValue&&(t[1]=this.maxValue),t[2]>=this.maxValue&&(t[2]=this.maxValue),t[3]>=this.maxValue&&(t[3]=this.maxValue,this.redHigh=0),t.length>4&&t[4]>=this.maxValue&&(t[4]=this.maxValue),t.length>4&&t[5]>=this.maxValue&&(t[5]=this.maxValue)),t[0]==t[1]&&(this.yellowLow=0),t[2]==t[3]&&(this.yellowHigh=0);let i=80;return this.redLow==0&&(i+=10),this.redHigh==0&&(i+=10),this.scale=(t[3]-t[0])/i,t},calcPosition(t,i){if(!t||!i)return;let r=i[0]-10*this.scale;if(this.minValue&&this.minValue==i[0]&&(r=i[0]),i[3]-10*this.scale,this.maxValue&&this.maxValue==i[3]&&i[3],t.raw)return t.raw==="-Infinity"?0:100;if(t<this.min)return 0;if(t>this.max)return 100;{const e=parseInt((t-r)/this.scale);return e>100?100:e<0?0:e}},calcLimits(t){t&&(this.yellowLow=Math.round((t[1]-t[0])/this.scale),this.yellowHigh=Math.round((t[3]-t[2])/this.scale),t.length>4?(this.greenLow=Math.round((t[4]-t[1])/this.scale),this.greenHigh=Math.round((t[2]-t[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then(t=>{this.currentLimitsSet=t})}}})}}});
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register(["./main-59d01ac81c6306714fbc.js","vue","./DetailsDialog-DLRMqetn-6b4c5c6a6faacd588bab.js","single-spa","./VWidget-02CG-3Av-63df1706362f2e647b12.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js"],function(S,b){"use strict";var u,r,h,m,s,p,g,o,w,f,v,y,x,C,V,k;return{setters:[e=>{u=e.s},e=>{r=e.resolveComponent,h=e.openBlock,m=e.createElementBlock,s=e.createVNode,p=e.normalizeClass,g=e.normalizeStyle,o=e.withCtx,w=e.Fragment,f=e.renderList,v=e.createBlock,y=e.withModifiers,x=e.createTextVNode,C=e.toDisplayString},e=>{V=e.P},null,e=>{k=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:V},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[k],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let t="RAW";return this.parameters[9]&&(t=this.parameters[9]),t},formatValue:function(t){let a="";if(t&&t.raw){let D=" ",P=`
|
2
|
+
`,i=0,l=0;const d=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(a+=sprintf(this.addrFormat,l),l+=d),a+=sprintf(this.formatter,c),i+=1,i%d===0?(i=0,a+=P):i%this.bytesPerWord===0&&(a+=D)}else a=t;return a}}},M={class:"block-widget-container"};function W(t,a,D,P,i,l){const d=r("v-textarea"),c=r("v-list-item-title"),_=r("v-list-item"),B=r("v-list"),F=r("v-menu"),L=r("details-dialog");return h(),m("div",M,[s(d,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:l.rows,width:t.width,"model-value":t._value,class:p(t.valueClass),style:g([t.computedStyle,l.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),s(F,{modelValue:t.contextMenuShown,"onUpdate:modelValue":a[0]||(a[0]=n=>t.contextMenuShown=n),target:[t.x,t.y]},{default:o(()=>[s(B,null,{default:o(()=>[(h(!0),m(w,null,f(t.contextMenuOptions,(n,R)=>(h(),v(_,{key:R,onClick:y(n.action,["stop"])},{default:o(()=>[s(c,null,{default:o(()=>[x(C(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),s(L,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":a[1]||(a[1]=n=>t.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const z=S("default",u(e,[["render",W],["__scopeId","data-v-4d4589c2"]]))}}});
|
@@ -0,0 +1,2 @@
|
|
1
|
+
System.register(["./main-59d01ac81c6306714fbc.js","vue","single-spa","./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue-router","vuex","vuetify"],function(exports,module){"use strict";var s,Ik,S$1,Fk,resolveComponent,openBlock,createBlock,withCtx,createVNode,createElementVNode,createTextVNode,toDisplayString,createCommentVNode,withModifiers,createElementBlock,normalizeStyle,o;return{setters:[e=>{s=e.s,Ik=e.I,S$1=e.S,Fk=e.F},e=>{resolveComponent=e.resolveComponent,openBlock=e.openBlock,createBlock=e.createBlock,withCtx=e.withCtx,createVNode=e.createVNode,createElementVNode=e.createElementVNode,createTextVNode=e.createTextVNode,toDisplayString=e.toDisplayString,createCommentVNode=e.createCommentVNode,withModifiers=e.withModifiers,createElementBlock=e.createElementBlock,normalizeStyle=e.normalizeStyle},null,e=>{o=e.o},null,null,null],execute:function(){const S={props:{uuid:String,cmdUser:String,cmdString:String,persistent:{type:Boolean,default:!1},modelValue:Boolean},data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},beforeUnmount(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},watch:{modelValue:function(e,t){e?(Ik.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(r=>{r.data.status==="ok"&&(this.canApprove=!0)}),this.updater=setInterval(()=>{this.uuid?Ik.get("/openc3-api/criticalcmd/status/"+this.uuid).then(r=>{r.data.status!=="WAITING"&&(this.$emit("status",r.data.status),this.show=!1)}):this.show=!1},1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},methods:{async approve(){if(this.canApprove)await Ik.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","APPROVED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();S$1.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(t=>{this.$emit("status","APPROVED"),this.show=!1,this.error=!1}).catch(t=>{this.error=!0,t.response?this.errorText=t.response.data.message:this.errorText=t.message})}},async reject(){if(this.canApprove)await Ik.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(e=>{e.status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)});else{let e=await this.getKeycloakToken();(await S$1.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3})).status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)}},async getKeycloakToken(){return(await S$1.post(localStorage.keycloakUrl+"/realms/"+localStorage.keycloakRealm+"/protocol/openid-connect/token",{username:this.username,password:this.password,client_id:localStorage.keycloakClientId,grant_type:"password",scope:"openid"},{headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:5e3})).data.access_token}}};function E(e,t,r,p,a,n){const c=resolveComponent("v-spacer"),V=resolveComponent("v-toolbar"),m=resolveComponent("v-alert"),l=resolveComponent("v-row"),h=resolveComponent("v-text-field"),C=resolveComponent("v-btn"),v=resolveComponent("v-container"),w=resolveComponent("v-card-text"),u=resolveComponent("v-card"),f=resolveComponent("v-dialog");return openBlock(),createBlock(f,{persistent:r.persistent,modelValue:n.show,"onUpdate:modelValue":t[3]||(t[3]=d=>n.show=d),width:"600"},{default:withCtx(()=>[createVNode(u,null,{default:withCtx(()=>[createVNode(V,{height:"24"},{default:withCtx(()=>[createVNode(c),t[4]||(t[4]=createElementVNode("span",null," Waiting for Critical Command Approval ",-1)),createVNode(c)]),_:1}),createVNode(w,null,{default:withCtx(()=>[createVNode(v,{fluid:""},{default:withCtx(()=>[createVNode(m,{type:"error",modelValue:a.error,"onUpdate:modelValue":t[0]||(t[0]=d=>a.error=d),dismissible:""},{default:withCtx(()=>[createTextVNode(toDisplayString(a.errorText),1)]),_:1},8,["modelValue"]),createVNode(l,{class:"pt-4",style:{color:"white"}},{default:withCtx(()=>[createTextVNode("User "+toDisplayString(r.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),createVNode(l,{class:"pa-4",style:{color:"white"}},{default:withCtx(()=>[createTextVNode(toDisplayString(r.cmdString),1)]),_:1}),createVNode(l,{class:"text-subtitle-2"},{default:withCtx(()=>[createTextVNode("UUID: "+toDisplayString(r.uuid),1)]),_:1}),a.canApprove?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:0},{default:withCtx(()=>[createVNode(h,{modelValue:a.username,"onUpdate:modelValue":t[1]||(t[1]=d=>a.username=d),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),a.canApprove?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:1},{default:withCtx(()=>[createVNode(h,{modelValue:a.password,"onUpdate:modelValue":t[2]||(t[2]=d=>a.password=d),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),createVNode(l,{class:"pt-2"},{default:withCtx(()=>[createVNode(c),createVNode(C,{type:"submit",onClick:withModifiers(n.reject,["prevent"]),class:"mx-2",color:"secondary",outlined:"",disabled:n.disableButtons,"data-test":"reject"},{default:withCtx(()=>t[5]||(t[5]=[createTextVNode(" Reject ")])),_:1},8,["onClick","disabled"]),createVNode(C,{type:"submit",onClick:withModifiers(n.approve,["prevent"]),class:"mx-2",color:"primary",disabled:n.disableButtons,"data-test":"approve"},{default:withCtx(()=>t[6]||(t[6]=[createTextVNode(" Approve ")])),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["persistent","modelValue"])}const N=s(S,[["render",E],["__scopeId","data-v-edfbf188"]]),_sfc_main={mixins:[o],components:{CriticalCmdDialog:N},data(){return{api:null,displaySendHazardous:!1,lastCmd:"",criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new Fk},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,screenValues=this.screenValues,screenTimeZone=this.screenTimeZone,api=this.api,runScript=this.runScript;(self||screen||screenValues||screenTimeZone||api||runScript)&&this.$nextTick(()=>{});for(let i=0;i<lines.length;i++)try{const result=eval(lines[i].trim());result instanceof Promise&&await result}catch(e){if(e.message.includes("CriticalCmdError"))this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0;else if(e.message.includes("is Hazardous"))for(this.lastCmd=e.message.split(`
|
2
|
+
`).pop(),this.displaySendHazardous=!0;this.displaySendHazardous;)await new Promise(t=>setTimeout(t,500));else console.error(e)}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(e){e.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=e.object.data.instance_variables["@uuid"],this.criticalCmdString=e.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=e.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,t=!0,r={}){let p=[];for(const a in r)p.push({key:a,value:r[a],readonly:!1});Ik.post(`/script-api/scripts/${e}/run`,{data:{environment:p}}).then(a=>{t&&window.open(`/tools/scriptrunner/${a.data}`,"_blank")})}}},_hoisted_1={class:"mx-1"};function _sfc_render(e,t,r,p,a,n){const c=resolveComponent("v-btn"),V=resolveComponent("v-card-title"),m=resolveComponent("v-row"),l=resolveComponent("v-spacer"),h=resolveComponent("v-card-text"),C=resolveComponent("v-card"),v=resolveComponent("v-dialog"),w=resolveComponent("critical-cmd-dialog");return openBlock(),createElementBlock("div",null,[createVNode(c,{class:"ma-1",color:"primary",style:normalizeStyle(e.computedStyle),onClick:n.onClick},{default:withCtx(()=>[createTextVNode(toDisplayString(n.buttonText),1)]),_:1},8,["style","onClick"]),createVNode(v,{modelValue:a.displaySendHazardous,"onUpdate:modelValue":t[0]||(t[0]=u=>a.displaySendHazardous=u),"max-width":"300"},{default:withCtx(()=>[createVNode(C,null,{default:withCtx(()=>[createVNode(V,null,{default:withCtx(()=>t[2]||(t[2]=[createTextVNode("Hazardous")])),_:1}),createVNode(h,null,{default:withCtx(()=>[createElementVNode("div",_hoisted_1,[createVNode(m,{class:"my-2"},{default:withCtx(()=>t[3]||(t[3]=[createElementVNode("span",null," Warning: Command is Hazardous. Send? ",-1)])),_:1}),createVNode(m,null,{default:withCtx(()=>[createVNode(l),createVNode(c,{onClick:n.cancelHazardousCmd,variant:"outlined"},{default:withCtx(()=>t[4]||(t[4]=[createTextVNode(" Cancel ")])),_:1},8,["onClick"]),createVNode(c,{onClick:n.sendHazardousCmd,class:"bg-primary mx-1"},{default:withCtx(()=>t[5]||(t[5]=[createTextVNode(" Send ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),createVNode(w,{uuid:a.criticalCmdUuid,cmdString:a.criticalCmdString,cmdUser:a.criticalCmdUser,modelValue:a.displayCriticalCmd,"onUpdate:modelValue":t[1]||(t[1]=u=>a.displayCriticalCmd=u)},null,8,["uuid","cmdString","cmdUser","modelValue"])])}const ButtonWidget=exports("default",s(_sfc_main,[["render",_sfc_render]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-C1HoM4Kl-4749c21bb2663aaf1fdd.js","vue","./main-59d01ac81c6306714fbc.js","./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue-router","single-spa","vuex","vuetify"],function(p,f){"use strict";var i,n,s,a,l,c,o,u,g;return{setters:[e=>{i=e.r},e=>{n=e.openBlock,s=e.createElementBlock,a=e.Fragment,l=e.renderList,c=e.createBlock,o=e.resolveDynamicComponent,u=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[i],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},h=["width","height"];function d(r,k,y,B,b,m){return n(),s("svg",{id:"canvas",width:m.width,height:m.height},[(n(!0),s(a,null,l(r.widgets,(t,v)=>(n(),c(o(t.type),u({ref_for:!0},r.listeners,{key:v,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":r.screenValues,"screen-time-zone":r.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],8,h)}const w=p("default",g(e,[["render",d],["__scopeId","data-v-47bdfc3c"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(s,a){"use strict";var t,l,n,c;return{setters:[e=>{t=e.o},e=>{l=e.openBlock,n=e.createElementBlock},e=>{c=e.s},null,null,null,null],execute:function(){const e={mixins:[t]},u=["cx","cy","r","fill"];function i(r,m,f,p,v,x){return l(),n("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,u)}const o=s("default",c(e,[["render",i]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","./ImageLoader-CpcR6tPi-6c2fb1a992f246b2f149.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(m,d){"use strict";var s,i,n,a,l,c,h;return{setters:[e=>{s=e.o},e=>{i=e.s},e=>{n=e.openBlock,a=e.createElementBlock,l=e.normalizeStyle,c=e.createCommentVNode},e=>{h=e.s},null,null,null,null],execute:function(){const e={mixins:[s,i],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(t=>{t[0]==="SCREEN"&&(this.screenTarget=t[1],this.screenName=t[2])}),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then(t=>{this.imageUrl=t})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},u=["href","x","y","width","height"];function p(t,o,y,k,N,r){return t.imageUrl?(n(),a("image",{key:0,href:t.imageUrl,x:t.parameters[1],y:t.parameters[2],width:r.width,height:r.height,style:l(r.pointerStyle),onClick:o[0]||(o[0]=(...g)=>r.clickHandler&&r.clickHandler(...g))},null,12,u)):c("",!0)}const f=m("default",h(e,[["render",p]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","./ImageLoader-CpcR6tPi-6c2fb1a992f246b2f149.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(I,S){"use strict";var m,d,l,n,g,o,h,u,c,p,f;return{setters:[t=>{m=t.o},t=>{d=t.s},t=>{l=t.openBlock,n=t.createElementBlock,g=t.Fragment,o=t.renderList,h=t.withDirectives,u=t.normalizeStyle,c=t.vShow,p=t.createCommentVNode},t=>{f=t.s},null,null,null,null],execute:function(){const t={mixins:[m,d],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some(i=>i.value==this.selectedValue)},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(e=>{e[0]==="SCREEN"&&(this.screenTarget=e[1],this.screenName=e[2])}),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.$emit("addItem",this.valueId);const i=this.appliedSettings.filter(e=>e[0]==="IMAGE").map(async e=>{let r=e[2];return r.startsWith("http")||(r=await this.getPresignedUrl(r)),{url:r,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}});if(Promise.all(i).then(e=>{this.images=e}),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let r=this.parameters[4];r.startsWith("http")?this.defaultImage={...e,url:r}:this.getPresignedUrl(r).then(y=>{this.defaultImage={...e,url:y}})}},unmounted:function(){this.$emit("deleteItem",this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},v=["href","x","y","width","height"],w=["href","x","y","width","height"];function k(i,e,r,y,N,a){return l(),n("g",null,[(l(!0),n(g,null,o(i.images,s=>h((l(),n("image",{key:s.value,href:s.url,x:s.x,y:s.y,width:s.width,height:s.height,style:u(a.pointerStyle),onClick:e[0]||(e[0]=(...x)=>a.clickHandler&&a.clickHandler(...x))},null,12,v)),[[c,s.value==a.selectedValue]])),128)),i.defaultImage?h((l(),n("image",{key:0,href:i.defaultImage.url,x:i.defaultImage.x,y:i.defaultImage.y,width:i.defaultImage.width,height:i.defaultImage.height,style:u(a.pointerStyle),onClick:e[1]||(e[1]=(...s)=>a.clickHandler&&a.clickHandler(...s))},null,12,w)),[[c,a.showDefault]]):p("",!0)])}const $=I("default",f(t,[["render",k]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(o,p){"use strict";var r,l,n,s,i;return{setters:[e=>{r=e.o},e=>{l=e.openBlock,n=e.createElementBlock,s=e.toDisplayString},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[r],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},a=["x","y","fill"];function u(t,f,x,y,g,c){return l(),n("text",{x:t.parameters[0],y:t.parameters[1],fill:c.fillColor},s(t.parameters[2]),9,a)}const m=o("default",i(e,[["render",u]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(u,p){"use strict";var s,a,i,l,n;return{setters:[e=>{s=e.o},e=>{a=e.openBlock,i=e.createElementBlock,l=e.toDisplayString},e=>{n=e.s},null,null,null,null],execute:function(){const e={mixins:[s],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId][0]},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let t="CONVERTED";this.parameters[7]&&(t=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},o=["x","y","font-size","fill"];function m(t,h,d,f,v,r){return a(),i("text",{x:t.parameters[3],y:t.parameters[4],"font-size":r.fontSize,fill:r.fillColor},l(r._value),9,o)}const c=u("default",n(e,[["render",m]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(i,p){"use strict";var l,s,n,a,c;return{setters:[e=>{l=e.o},e=>{s=e.openBlock,n=e.createElementBlock,a=e.normalizeStyle},e=>{c=e.s},null,null,null,null],execute:function(){const e={mixins:[l],computed:{calcStyle(){let t="black";this.parameters[4]&&(t=this.parameters[4]);let r=1;return this.parameters[5]&&(r=this.parameters[5]),"stroke:"+t+";stroke-width:"+r}}},u=["x1","y1","x2","y2"];function o(t,r,k,x,f,m){return s(),n("line",{x1:t.parameters[0],y1:t.parameters[1],x2:t.parameters[2],y2:t.parameters[3],style:a(m.calcStyle)},null,12,u)}const y=i("default",c(e,[["render",o]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(u,o){"use strict";var s,r,l,i,n;return{setters:[t=>{s=t.o},t=>{r=t.openBlock,l=t.createElementBlock,i=t.normalizeStyle},t=>{n=t.s},null,null,null,null],execute:function(){const t={mixins:[s],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screenValues[this.valueId]&&(e=this.valueMap[this.screenValues[this.valueId][0]]);let a=1;return this.parameters[7]&&(a=this.parameters[7]),"stroke:"+e+";stroke-width:"+a}},created(){this.appliedSettings.forEach(a=>{a[0]==="VALUE_EQ"&&(this.valueMap[a[1]]=a[2])});let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},c=["x1","y1","x2","y2"];function m(e,a,d,v,y,h){return r(),l("line",{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6],style:i(h.calcStyle)},null,12,c)}const p=u("default",n(t,[["render",m]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(c,h){"use strict";var t,n,a,s,o,r;return{setters:[e=>{t=e.o},e=>{n=e.resolveComponent,a=e.openBlock,s=e.createBlock,o=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function i(d,u,k,y,l,b){const m=n("v-checkbox");return a(),s(m,{"hide-details":"",density:"compact",label:l.label,modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=v=>l.value=v),style:o(d.computedStyle)},null,8,["label","modelValue","style"])}const p=c("default",r(e,[["render",i]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","vue","./main-59d01ac81c6306714fbc.js","vue-router","single-spa","vuex","vuetify"],function(i,p){"use strict";var l,s,n,o,r,u;return{setters:[e=>{l=e.o},e=>{s=e.resolveComponent,n=e.openBlock,o=e.createBlock,r=e.normalizeStyle},e=>{u=e.s},null,null,null,null],execute:function(){const e={mixins:[l],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c(m,a,h,f,t,k){const v=s("v-select");return n(),o(v,{"hide-details":"",density:"compact",variant:"outlined",items:t.items,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=d=>t.value=d),style:r(m.computedStyle)},null,8,["items","modelValue","style"])}const y=i("default",u(e,[["render",c]]))}}});
|
@@ -1,10 +1,10 @@
|
|
1
|
-
System.register(["./main-
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(O);const Ft={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(t){return t.replaceAll(" ","-").toLowerCase()},subMenuClick(t){t.command(t),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},Lt={class:"app-title mr-2"},Bt=["textContent"];function qt(t,e,n,i,s,o){const r=T("v-col"),l=T("v-row"),u=T("v-icon"),c=T("v-btn"),m=T("v-divider"),_=T("v-list-item-title"),v=T("v-list-item"),g=T("v-list"),p=T("v-menu"),f=T("v-radio"),S=T("v-list-item-action"),E=T("v-radio-group"),C=T("v-checkbox");return R(),U(Je,{to:"#openc3-menu"},[d(l,{"no-gutters":""},{default:h(()=>[d(r,{"align-self":"end"},{default:h(()=>[z("span",Lt,B(n.title),1)]),_:1})]),_:1}),d(l,{dense:"",class:"flex-nowrap"},{default:h(()=>[(R(!0),W(Z,null,te(n.menus,(D,F)=>(R(),U(p,{ref_for:!0,ref:"topmenu",key:F},{activator:h(({props:b})=>[d(c,K({ref_for:!0},b,{variant:"outlined",class:"mx-1 menu-button","data-test":o.formatDT(`${n.title} ${D.label}`)}),{default:h(()=>[z("span",{textContent:B(D.label)},null,8,Bt),d(u,{class:"myicon",end:""},{default:h(()=>e[0]||(e[0]=[N(" mdi-menu-down ")])),_:1})]),_:2},1040,["data-test"])]),default:h(()=>[d(g,null,{default:h(()=>[(R(!0),W(Z,null,te(D.items,(b,P)=>(R(),W(Z,null,[b.divider?(R(),U(m,{key:P+"-divider"})):b.subMenu&&b.subMenu.length>0?(R(),W("div",{key:P+"-submenu"},[(R(),U(p,{"open-on-hover":"",location:"right",key:P},{activator:h(({props:k})=>[(R(),U(v,K({ref_for:!0},k,{disabled:b.disabled,key:P}),Se({append:h(()=>[d(u,null,{default:h(()=>e[1]||(e[1]=[N(" mdi-chevron-right ")])),_:1})]),default:h(()=>[!b.radio&&!b.checkbox?(R(),U(_,{key:0,style:Ee("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:h(()=>[N(B(b.label),1)]),_:2},1032,["style"])):X("",!0)]),_:2},[b.icon?{name:"prepend",fn:h(()=>[d(u,{disabled:b.disabled},{default:h(()=>[N(B(b.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:h(()=>[d(g,null,{default:h(()=>[(R(!0),W(Z,null,te(b.subMenu,(k,L)=>(R(),U(v,{key:L,"prepend-icon":k.icon,onClick:ee=>o.subMenuClick(k)},{default:h(()=>[d(_,null,{default:h(()=>[N(B(k.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):b.radioGroup?(R(),U(E,{"model-value":b.value,"onUpdate:modelValue":b.command,key:P+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:h(()=>[(R(!0),W(Z,null,te(b.choices,(k,L)=>(R(),U(v,{key:L+"-choice"},{default:h(()=>[d(S,{class:"list-action"},{default:h(()=>[d(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"])):(R(),U(v,{onClick:k=>b.command(b),disabled:b.disabled,"data-test":o.formatDT(`${n.title} ${D.label} ${b.label}`),key:P+"-list"},Se({default:h(()=>[b.checkbox?(R(),U(S,{key:0,class:"list-action"},{default:h(()=>[d(C,{modelValue:b.checked,"onUpdate:modelValue":k=>b.checked=k,label:b.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):X("",!0),!b.radio&&!b.checkbox?(R(),U(_,{key:1,style:Ee("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:h(()=>[N(B(b.label),1)]),_:2},1032,["style"])):X("",!0)]),_:2},[b.icon?{name:"prepend",fn:h(()=>[d(u,{icon:b.icon,disabled:b.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const Ht=qe(Ft,[["render",qt],["__scopeId","data-v-0fdf6c8a"]]);var zt=Object.defineProperty,Wt=(t,e,n)=>e in t?zt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Kt=(t,e,n)=>Wt(t,e+"",n);function Xe(t,e){return function(){return t.apply(e,arguments)}}const{toString:$t}=Object.prototype,{getPrototypeOf:Oe}=Object,le=(t=>e=>{const n=$t.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),q=t=>(t=t.toLowerCase(),e=>le(e)===t),ce=t=>e=>typeof e===t,{isArray:Y}=Array,ne=ce("undefined");function Gt(t){return t!==null&&!ne(t)&&t.constructor!==null&&!ne(t.constructor)&&V(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ye=q("ArrayBuffer");function Jt(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ye(t.buffer),e}const Zt=ce("string"),V=ce("function"),Qe=ce("number"),ue=t=>t!==null&&typeof t=="object",Xt=t=>t===!0||t===!1,de=t=>{if(le(t)!=="object")return!1;const e=Oe(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Yt=q("Date"),Qt=q("File"),en=q("Blob"),tn=q("FileList"),nn=t=>ue(t)&&V(t.pipe),sn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||V(t.append)&&((e=le(t))==="formdata"||e==="object"&&V(t.toString)&&t.toString()==="[object FormData]"))},on=q("URLSearchParams"),[rn,an,ln,cn]=["ReadableStream","Request","Response","Headers"].map(q),un=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Y(t))for(i=0,s=t.length;i<s;i++)e.call(null,t[i],i,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let l;for(i=0;i<r;i++)l=o[i],e.call(null,t[l],l,t)}}function et(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,s;for(;i-- >0;)if(s=n[i],e===s.toLowerCase())return s;return null}const $=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tt=t=>!ne(t)&&t!==$;function xe(){const{caseless:t}=tt(this)&&this||{},e={},n=(i,s)=>{const o=t&&et(e,s)||s;de(e[o])&&de(i)?e[o]=xe(e[o],i):de(i)?e[o]=xe({},i):Y(i)?e[o]=i.slice():e[o]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ie(arguments[i],n);return e}const dn=(t,e,n,{allOwnKeys:i}={})=>(ie(e,(s,o)=>{n&&V(s)?t[o]=Xe(s,n):t[o]=s},{allOwnKeys:i}),t),hn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),mn=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},fn=(t,e,n,i)=>{let s,o,r;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)r=s[o],(!i||i(r,t,e))&&!l[r]&&(e[r]=t[r],l[r]=!0);t=n!==!1&&Oe(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},pn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},gn=t=>{if(!t)return null;if(Y(t))return t;let e=t.length;if(!Qe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_n=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Oe(Uint8Array)),bn=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},yn=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},vn=q("HTMLFormElement"),wn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,i){return n.toUpperCase()+i}),nt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Tn=q("RegExp"),it=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};ie(n,(s,o)=>{let r;(r=e(s,o,t))!==!1&&(i[o]=r||s)}),Object.defineProperties(t,i)},Sn=t=>{it(t,(e,n)=>{if(V(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(V(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},En=(t,e)=>{const n={},i=s=>{s.forEach(o=>{n[o]=!0})};return Y(t)?i(t):i(String(t).split(e)),n},Cn=()=>{},On=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Re="abcdefghijklmnopqrstuvwxyz",st="0123456789",ot={DIGIT:st,ALPHA:Re,ALPHA_DIGIT:Re+Re.toUpperCase()+st},xn=(t=16,e=ot.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function Rn(t){return!!(t&&V(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const An=t=>{const e=new Array(10),n=(i,s)=>{if(ue(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const o=Y(i)?[]:{};return ie(i,(r,l)=>{const u=n(r,s+1);!ne(u)&&(o[l]=u)}),e[s]=void 0,o}}return i};return n(t,0)},Dn=q("AsyncFunction"),kn=t=>t&&(ue(t)||V(t))&&V(t.then)&&V(t.catch),rt=((t,e)=>t?setImmediate:e?((n,i)=>($.addEventListener("message",({source:s,data:o})=>{s===$&&o===n&&i.length&&i.shift()()},!1),s=>{i.push(s),$.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",V($.postMessage)),Nn=typeof queueMicrotask<"u"?queueMicrotask.bind($):typeof process<"u"&&process.nextTick||rt,a={isArray:Y,isArrayBuffer:Ye,isBuffer:Gt,isFormData:sn,isArrayBufferView:Jt,isString:Zt,isNumber:Qe,isBoolean:Xt,isObject:ue,isPlainObject:de,isReadableStream:rn,isRequest:an,isResponse:ln,isHeaders:cn,isUndefined:ne,isDate:Yt,isFile:Qt,isBlob:en,isRegExp:Tn,isFunction:V,isStream:nn,isURLSearchParams:on,isTypedArray:_n,isFileList:tn,forEach:ie,merge:xe,extend:dn,trim:un,stripBOM:hn,inherits:mn,toFlatObject:fn,kindOf:le,kindOfTest:q,endsWith:pn,toArray:gn,forEachEntry:bn,matchAll:yn,isHTMLForm:vn,hasOwnProperty:nt,hasOwnProp:nt,reduceDescriptors:it,freezeMethods:Sn,toObjectSet:En,toCamelCase:wn,noop:Cn,toFiniteNumber:On,findKey:et,global:$,isContextDefined:tt,ALPHABET:ot,generateString:xn,isSpecCompliantForm:Rn,toJSONObject:An,isAsyncFn:Dn,isThenable:kn,setImmediate:rt,asap:Nn};function w(t,e,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const at=w.prototype,lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{lt[t]={value:t}}),Object.defineProperties(w,lt),Object.defineProperty(at,"isAxiosError",{value:!0}),w.from=(t,e,n,i,s,o)=>{const r=Object.create(at);return a.toFlatObject(t,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),w.call(r,t.message,e,n,i,s),r.cause=t,r.name=t.name,o&&Object.assign(r,o),r};const Pn=null;function Ae(t){return a.isPlainObject(t)||a.isArray(t)}function ct(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function ut(t,e,n){return t?t.concat(e).map(function(i,s){return i=ct(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function jn(t){return a.isArray(t)&&!t.some(Ae)}const Un=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function he(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!a.isUndefined(p[g])});const i=n.metaTokens,s=n.visitor||c,o=n.dots,r=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(a.isDate(g))return g.toISOString();if(!l&&a.isBlob(g))throw new w("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(g)||a.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,p,f){let S=g;if(g&&!f&&typeof g=="object"){if(a.endsWith(p,"{}"))p=i?p:p.slice(0,-2),g=JSON.stringify(g);else if(a.isArray(g)&&jn(g)||(a.isFileList(g)||a.endsWith(p,"[]"))&&(S=a.toArray(g)))return p=ct(p),S.forEach(function(E,C){!(a.isUndefined(E)||E===null)&&e.append(r===!0?ut([p],C,o):r===null?p:p+"[]",u(E))}),!1}return Ae(g)?!0:(e.append(ut(f,p,o),u(g)),!1)}const m=[],_=Object.assign(Un,{defaultVisitor:c,convertValue:u,isVisitable:Ae});function v(g,p){if(!a.isUndefined(g)){if(m.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));m.push(g),a.forEach(g,function(f,S){(!(a.isUndefined(f)||f===null)&&s.call(e,f,a.isString(S)?S.trim():S,p,_))===!0&&v(f,p?p.concat(S):[S])}),m.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return v(t),e}function dt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function De(t,e){this._pairs=[],t&&he(t,this,e)}const ht=De.prototype;ht.append=function(t,e){this._pairs.push([t,e])},ht.toString=function(t){const e=t?function(n){return t.call(this,n,dt)}:dt;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Mn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mt(t,e,n){if(!e)return t;const i=n&&n.encode||Mn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=a.isURLSearchParams(e)?e.toString():new De(e,n).toString(i),o){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class ft{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const pt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},In=typeof URLSearchParams<"u"?URLSearchParams:De,Vn=typeof FormData<"u"?FormData:null,Fn=typeof Blob<"u"?Blob:null,Ln={isBrowser:!0,classes:{URLSearchParams:In,FormData:Vn,Blob:Fn},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",Ne=typeof navigator=="object"&&navigator||void 0,Bn=ke&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0),qn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hn=ke&&window.location.href||"http://localhost",zn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:Bn,hasStandardBrowserWebWorkerEnv:qn,navigator:Ne,origin:Hn},Symbol.toStringTag,{value:"Module"})),j={...zn,...Ln};function Wn(t,e){return he(t,new j.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,o){return j.isNode&&a.isBuffer(n)?(this.append(i,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Kn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function $n(t){const e={},n=Object.keys(t);let i;const s=n.length;let o;for(i=0;i<s;i++)o=n[i],e[o]=t[o];return e}function gt(t){function e(n,i,s,o){let r=n[o++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=o>=n.length;return r=!r&&a.isArray(s)?s.length:r,u?(a.hasOwnProp(s,r)?s[r]=[s[r],i]:s[r]=i,!l):((!s[r]||!a.isObject(s[r]))&&(s[r]=[]),e(n,i,s[r],o)&&a.isArray(s[r])&&(s[r]=$n(s[r])),!l)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(i,s)=>{e(Kn(i),s,n,0)}),n}return null}function Gn(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(t)}const se={transitional:pt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return i?JSON.stringify(gt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Wn(t,this.formSerializer).toString();if((o=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return he(o?{"files[]":t}:t,r&&new r,this.formSerializer)}}return s||i?(e.setContentType("application/json",!1),Gn(t)):t}],transformResponse:[function(t){const e=this.transitional||se.transitional,n=e&&e.forcedJSONParsing,i=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||i)){const s=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?w.from(o,w.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{se.headers[t]={}});const Jn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zn=t=>{const e={};let n,i,s;return t&&t.split(`
|
3
|
-
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!n||e[n]&&Jn[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},_t=Symbol("internals");function oe(t){return t&&String(t).trim().toLowerCase()}function me(t){return t===!1||t==null?t:a.isArray(t)?t.map(me):String(t)}function
|
4
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(s=>i.set(s)),i}static accessor(e){const n=(this[_t]=this[_t]={accessors:{}}).accessors,i=this.prototype;function s(o){const r=oe(o);n[r]||(ei(i,o),n[r]=!0)}return a.isArray(e)?e.forEach(s):s(e),this}}M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(M.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),a.freezeMethods(M);function je(t,e){const n=this||se,i=e||n,s=M.from(i.headers);let o=i.data;return a.forEach(t,function(r){o=r.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function bt(t){return!!(t&&t.__CANCEL__)}function Q(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(Q,w,{__CANCEL__:!0});function yt(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ti(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ni(t,e){t=t||10;const n=new Array(t),i=new Array(t);let s=0,o=0,r;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=i[o];r||(r=u),n[s]=l,i[s]=u;let m=o,_=0;for(;m!==s;)_+=n[m++],m=m%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-r<e)return;const v=c&&u-c;return v?Math.round(_*1e3/v):void 0}}function ii(t,e){let n=0,i=1e3/e,s,o;const r=(l,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),t.apply(null,l)};return[(...l)=>{const u=Date.now(),c=u-n;c>=i?r(l,u):(s=l,o||(o=setTimeout(()=>{o=null,r(s)},i-c)))},()=>s&&r(s)]}const fe=(t,e,n=3)=>{let i=0;const s=ni(50,250);return ii(o=>{const r=o.loaded,l=o.lengthComputable?o.total:void 0,u=r-i,c=s(u),m=r<=l;i=r;const _={loaded:r,total:l,progress:l?r/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&m?(l-r)/c:void 0,event:o,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(_)},n)},vt=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},wt=t=>(...e)=>a.asap(()=>t(...e)),si=j.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,j.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0,oi=j.hasStandardBrowserEnv?{write(t,e,n,i,s,o){const r=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),a.isString(i)&&r.push("path="+i),a.isString(s)&&r.push("domain="+s),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ri(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ai(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Tt(t,e){return t&&!ri(e)?ai(t,e):e}const St=t=>t instanceof M?{...t}:t;function G(t,e){e=e||{};const n={};function i(c,m,_,v){return a.isPlainObject(c)&&a.isPlainObject(m)?a.merge.call({caseless:v},c,m):a.isPlainObject(m)?a.merge({},m):a.isArray(m)?m.slice():m}function s(c,m,_,v){if(a.isUndefined(m)){if(!a.isUndefined(c))return i(void 0,c,_,v)}else return i(c,m,_,v)}function o(c,m){if(!a.isUndefined(m))return i(void 0,m)}function r(c,m){if(a.isUndefined(m)){if(!a.isUndefined(c))return i(void 0,c)}else return i(void 0,m)}function l(c,m,_){if(_ in e)return i(c,m);if(_ in t)return i(void 0,c)}const u={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m,_)=>s(St(c),St(m),_,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(c){const m=u[c]||s,_=m(t[c],e[c],c);a.isUndefined(_)&&m!==l||(n[c]=_)}),n}const Et=t=>{const e=G({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:o,headers:r,auth:l}=e;e.headers=r=M.from(r),e.url=mt(Tt(e.baseURL,e.url),t.params,t.paramsSerializer),l&&r.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(a.isFormData(n)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((u=r.getContentType())!==!1){const[c,...m]=u?u.split(";").map(_=>_.trim()).filter(Boolean):[];r.setContentType([c||"multipart/form-data",...m].join("; "))}}if(j.hasStandardBrowserEnv&&(i&&a.isFunction(i)&&(i=i(e)),i||i!==!1&&si(e.url))){const c=s&&o&&oi.read(o);c&&r.set(s,c)}return e},li=typeof XMLHttpRequest<"u",ci=li&&function(t){return new Promise(function(e,n){const i=Et(t);let s=i.data;const o=M.from(i.headers).normalize();let{responseType:r,onUploadProgress:l,onDownloadProgress:u}=i,c,m,_,v,g;function p(){v&&v(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function S(){if(!f)return;const C=M.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),D={data:!r||r==="text"||r==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:C,config:t,request:f};yt(function(F){e(F),p()},function(F){n(F),p()},D),f=null}"onloadend"in f?f.onloadend=S:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(S)},f.onabort=function(){f&&(n(new w("Request aborted",w.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new w("Network Error",w.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const D=i.transitional||pt;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),n(new w(C,D.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,f)),f=null},s===void 0&&o.setContentType(null),"setRequestHeader"in f&&a.forEach(o.toJSON(),function(C,D){f.setRequestHeader(D,C)}),a.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),r&&r!=="json"&&(f.responseType=i.responseType),u&&([_,g]=fe(u,!0),f.addEventListener("progress",_)),l&&f.upload&&([m,v]=fe(l),f.upload.addEventListener("progress",m),f.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(c=C=>{f&&(n(!C||C.type?new Q(null,t,f):C),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const E=ti(i.url);if(E&&j.protocols.indexOf(E)===-1){n(new w("Unsupported protocol "+E+":",w.ERR_BAD_REQUEST,t));return}f.send(s||null)})},ui=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let i=new AbortController,s;const o=function(c){if(!s){s=!0,l();const m=c instanceof Error?c:this.reason;i.abort(m instanceof w?m:new Q(m instanceof Error?m.message:m))}};let r=e&&setTimeout(()=>{r=null,o(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const l=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:u}=i;return u.unsubscribe=()=>a.asap(l),u}},di=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,s;for(;i<n;)s=i+e,yield t.slice(i,s),i=s},hi=async function*(t,e){for await(const n of mi(t))yield*di(n,e)},mi=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},Ct=(t,e,n,i)=>{const s=hi(t,e);let o=0,r,l=u=>{r||(r=!0,i&&i(u))};return new ReadableStream({async pull(u){try{const{done:c,value:m}=await s.next();if(c){l(),u.close();return}let _=m.byteLength;if(n){let v=o+=_;n(v)}u.enqueue(new Uint8Array(m))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},pe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ot=pe&&typeof ReadableStream=="function",fi=pe&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),xt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},pi=Ot&&xt(()=>{let t=!1;const e=new Request(j.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Rt=64*1024,Ue=Ot&&xt(()=>a.isReadableStream(new Response("").body)),ge={stream:Ue&&(t=>t.body)};pe&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ge[e]&&(ge[e]=a.isFunction(t[e])?n=>n[e]():(n,i)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,i)})})})(new Response);const gi=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(j.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await fi(t)).byteLength},_i=async(t,e)=>a.toFiniteNumber(t.getContentLength())??gi(e),bi=pe&&(async t=>{let{url:e,method:n,data:i,signal:s,cancelToken:o,timeout:r,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:m,withCredentials:_="same-origin",fetchOptions:v}=Et(t);c=c?(c+"").toLowerCase():"text";let g=ui([s,o&&o.toAbortSignal()],r),p;const f=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let S;try{if(u&&pi&&n!=="get"&&n!=="head"&&(S=await _i(m,i))!==0){let b=new Request(e,{method:"POST",body:i,duplex:"half"}),P;if(a.isFormData(i)&&(P=b.headers.get("content-type"))&&m.setContentType(P),b.body){const[k,L]=vt(S,fe(wt(u)));i=Ct(b.body,Rt,k,L)}}a.isString(_)||(_=_?"include":"omit");const E="credentials"in Request.prototype;p=new Request(e,{...v,signal:g,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:i,duplex:"half",credentials:E?_:void 0});let C=await fetch(p);const D=Ue&&(c==="stream"||c==="response");if(Ue&&(l||D&&f)){const b={};["status","statusText","headers"].forEach(ee=>{b[ee]=C[ee]});const P=a.toFiniteNumber(C.headers.get("content-length")),[k,L]=l&&vt(P,fe(wt(l),!0))||[];C=new Response(Ct(C.body,Rt,k,()=>{L&&L(),f&&f()}),b)}c=c||"text";let F=await ge[a.findKey(ge,c)||"text"](C,t);return!D&&f&&f(),await new Promise((b,P)=>{yt(b,P,{data:F,headers:M.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:p})})}catch(E){throw f&&f(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,p),{cause:E.cause||E}):w.from(E,E&&E.code,t,p)}}),Me={http:Pn,xhr:ci,fetch:bi};a.forEach(Me,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const At=t=>`- ${t}`,yi=t=>a.isFunction(t)||t===null||t===!1,Dt={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,i;const s={};for(let o=0;o<e;o++){n=t[o];let r;if(i=n,!yi(n)&&(i=Me[(r=String(n)).toLowerCase()],i===void 0))throw new w(`Unknown adapter '${r}'`);if(i)break;s[r||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=e?o.length>1?`since :
|
1
|
+
System.register(["./main-59d01ac81c6306714fbc.js","vue","vue-router","single-spa","vuex","vuetify"],function(Vt,Fi){"use strict";var qe,He,ze,We,Ke,$e,Je,T,R,U,Ge,d,h,z,q,W,Z,te,K,N,Se,Ee,X,Ze,Ce;return{setters:[O=>{qe=O.s,He=O._,ze=O.X,We=O.Y,Ke=O.e,$e=O.Z,Je=O.P},O=>{T=O.resolveComponent,R=O.openBlock,U=O.createBlock,Ge=O.Teleport,d=O.createVNode,h=O.withCtx,z=O.createElementVNode,q=O.toDisplayString,W=O.createElementBlock,Z=O.Fragment,te=O.renderList,K=O.mergeProps,N=O.createTextVNode,Se=O.createSlots,Ee=O.normalizeStyle,X=O.createCommentVNode,Ze=O.withModifiers,Ce=O.withKeys},null,null,null,null],execute:function(){var O=document.createElement("style");O.textContent=`.title-font[data-v-ad4c3d44]{font-size:1.125rem}.v-progress-linear__determinate[data-v-ad4c3d44]{transition:none!important}
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(O);const Ft={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(t){return t.replaceAll(" ","-").toLowerCase()},subMenuClick(t){t.command(t),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},Lt={class:"app-title mr-2"};function Bt(t,e,n,i,s,o){const r=T("v-col"),l=T("v-row"),u=T("v-icon"),c=T("v-btn"),m=T("v-divider"),_=T("v-list-item-title"),v=T("v-list-item"),g=T("v-list"),p=T("v-menu"),f=T("v-radio"),S=T("v-list-item-action"),E=T("v-radio-group"),C=T("v-checkbox");return R(),U(Ge,{to:"#openc3-menu"},[d(l,{"no-gutters":""},{default:h(()=>[d(r,{"align-self":"end"},{default:h(()=>[z("span",Lt,q(n.title),1)]),_:1})]),_:1}),d(l,{dense:"",class:"flex-nowrap"},{default:h(()=>[(R(!0),W(Z,null,te(n.menus,(D,F)=>(R(),U(p,{ref_for:!0,ref:"topmenu",key:F},{activator:h(({props:b})=>[d(c,K({ref_for:!0},b,{variant:"outlined",class:"mx-1 menu-button",text:D.label,"data-test":o.formatDT(`${n.title} ${D.label}`)}),{append:h(()=>[d(u,{class:"menu-button-icon"},{default:h(()=>e[0]||(e[0]=[N(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:h(()=>[d(g,null,{default:h(()=>[(R(!0),W(Z,null,te(D.items,(b,P)=>(R(),W(Z,null,[b.divider?(R(),U(m,{key:P+"-divider"})):b.subMenu&&b.subMenu.length>0?(R(),W("div",{key:P+"-submenu"},[(R(),U(p,{"open-on-hover":"",location:"right",key:P},{activator:h(({props:k})=>[(R(),U(v,K({ref_for:!0},k,{disabled:b.disabled,key:P}),Se({append:h(()=>[d(u,null,{default:h(()=>e[1]||(e[1]=[N(" mdi-chevron-right ")])),_:1})]),default:h(()=>[!b.radio&&!b.checkbox?(R(),U(_,{key:0,style:Ee("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:h(()=>[N(q(b.label),1)]),_:2},1032,["style"])):X("",!0)]),_:2},[b.icon?{name:"prepend",fn:h(()=>[d(u,{disabled:b.disabled},{default:h(()=>[N(q(b.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:h(()=>[d(g,null,{default:h(()=>[(R(!0),W(Z,null,te(b.subMenu,(k,L)=>(R(),U(v,{key:L,"prepend-icon":k.icon,onClick:ee=>o.subMenuClick(k)},{default:h(()=>[d(_,null,{default:h(()=>[N(q(k.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):b.radioGroup?(R(),U(E,{"model-value":b.value,"onUpdate:modelValue":b.command,key:P+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:h(()=>[(R(!0),W(Z,null,te(b.choices,(k,L)=>(R(),U(v,{key:L+"-choice"},{default:h(()=>[d(S,{class:"list-action"},{default:h(()=>[d(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"])):(R(),U(v,{onClick:k=>b.command(b),disabled:b.disabled,"data-test":o.formatDT(`${n.title} ${D.label} ${b.label}`),key:P+"-list"},Se({default:h(()=>[b.checkbox?(R(),U(S,{key:0,class:"list-action"},{default:h(()=>[d(C,{modelValue:b.checked,"onUpdate:modelValue":k=>b.checked=k,label:b.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):X("",!0),!b.radio&&!b.checkbox?(R(),U(_,{key:1,style:Ee("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:h(()=>[N(q(b.label),1)]),_:2},1032,["style"])):X("",!0)]),_:2},[b.icon?{name:"prepend",fn:h(()=>[d(u,{icon:b.icon,disabled:b.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const qt=qe(Ft,[["render",Bt],["__scopeId","data-v-4d454b93"]]);var Ht=Object.defineProperty,zt=(t,e,n)=>e in t?Ht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wt=(t,e,n)=>zt(t,e+"",n);function Xe(t,e){return function(){return t.apply(e,arguments)}}const{toString:Kt}=Object.prototype,{getPrototypeOf:Oe}=Object,le=(t=>e=>{const n=Kt.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),B=t=>(t=t.toLowerCase(),e=>le(e)===t),ce=t=>e=>typeof e===t,{isArray:Y}=Array,ne=ce("undefined");function $t(t){return t!==null&&!ne(t)&&t.constructor!==null&&!ne(t.constructor)&&V(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ye=B("ArrayBuffer");function Jt(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ye(t.buffer),e}const Gt=ce("string"),V=ce("function"),Qe=ce("number"),ue=t=>t!==null&&typeof t=="object",Zt=t=>t===!0||t===!1,de=t=>{if(le(t)!=="object")return!1;const e=Oe(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Xt=B("Date"),Yt=B("File"),Qt=B("Blob"),en=B("FileList"),tn=t=>ue(t)&&V(t.pipe),nn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||V(t.append)&&((e=le(t))==="formdata"||e==="object"&&V(t.toString)&&t.toString()==="[object FormData]"))},sn=B("URLSearchParams"),[on,rn,an,ln]=["ReadableStream","Request","Response","Headers"].map(B),cn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Y(t))for(i=0,s=t.length;i<s;i++)e.call(null,t[i],i,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let l;for(i=0;i<r;i++)l=o[i],e.call(null,t[l],l,t)}}function et(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,s;for(;i-- >0;)if(s=n[i],e===s.toLowerCase())return s;return null}const $=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tt=t=>!ne(t)&&t!==$;function xe(){const{caseless:t}=tt(this)&&this||{},e={},n=(i,s)=>{const o=t&&et(e,s)||s;de(e[o])&&de(i)?e[o]=xe(e[o],i):de(i)?e[o]=xe({},i):Y(i)?e[o]=i.slice():e[o]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ie(arguments[i],n);return e}const un=(t,e,n,{allOwnKeys:i}={})=>(ie(e,(s,o)=>{n&&V(s)?t[o]=Xe(s,n):t[o]=s},{allOwnKeys:i}),t),dn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),hn=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},mn=(t,e,n,i)=>{let s,o,r;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)r=s[o],(!i||i(r,t,e))&&!l[r]&&(e[r]=t[r],l[r]=!0);t=n!==!1&&Oe(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},fn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},pn=t=>{if(!t)return null;if(Y(t))return t;let e=t.length;if(!Qe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},gn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Oe(Uint8Array)),_n=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},bn=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},yn=B("HTMLFormElement"),vn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,i){return n.toUpperCase()+i}),nt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),wn=B("RegExp"),it=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};ie(n,(s,o)=>{let r;(r=e(s,o,t))!==!1&&(i[o]=r||s)}),Object.defineProperties(t,i)},Tn=t=>{it(t,(e,n)=>{if(V(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(V(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sn=(t,e)=>{const n={},i=s=>{s.forEach(o=>{n[o]=!0})};return Y(t)?i(t):i(String(t).split(e)),n},En=()=>{},Cn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Re="abcdefghijklmnopqrstuvwxyz",st="0123456789",ot={DIGIT:st,ALPHA:Re,ALPHA_DIGIT:Re+Re.toUpperCase()+st},On=(t=16,e=ot.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function xn(t){return!!(t&&V(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Rn=t=>{const e=new Array(10),n=(i,s)=>{if(ue(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const o=Y(i)?[]:{};return ie(i,(r,l)=>{const u=n(r,s+1);!ne(u)&&(o[l]=u)}),e[s]=void 0,o}}return i};return n(t,0)},An=B("AsyncFunction"),Dn=t=>t&&(ue(t)||V(t))&&V(t.then)&&V(t.catch),rt=((t,e)=>t?setImmediate:e?((n,i)=>($.addEventListener("message",({source:s,data:o})=>{s===$&&o===n&&i.length&&i.shift()()},!1),s=>{i.push(s),$.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",V($.postMessage)),kn=typeof queueMicrotask<"u"?queueMicrotask.bind($):typeof process<"u"&&process.nextTick||rt,a={isArray:Y,isArrayBuffer:Ye,isBuffer:$t,isFormData:nn,isArrayBufferView:Jt,isString:Gt,isNumber:Qe,isBoolean:Zt,isObject:ue,isPlainObject:de,isReadableStream:on,isRequest:rn,isResponse:an,isHeaders:ln,isUndefined:ne,isDate:Xt,isFile:Yt,isBlob:Qt,isRegExp:wn,isFunction:V,isStream:tn,isURLSearchParams:sn,isTypedArray:gn,isFileList:en,forEach:ie,merge:xe,extend:un,trim:cn,stripBOM:dn,inherits:hn,toFlatObject:mn,kindOf:le,kindOfTest:B,endsWith:fn,toArray:pn,forEachEntry:_n,matchAll:bn,isHTMLForm:yn,hasOwnProperty:nt,hasOwnProp:nt,reduceDescriptors:it,freezeMethods:Tn,toObjectSet:Sn,toCamelCase:vn,noop:En,toFiniteNumber:Cn,findKey:et,global:$,isContextDefined:tt,ALPHABET:ot,generateString:On,isSpecCompliantForm:xn,toJSONObject:Rn,isAsyncFn:An,isThenable:Dn,setImmediate:rt,asap:kn};function w(t,e,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const at=w.prototype,lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{lt[t]={value:t}}),Object.defineProperties(w,lt),Object.defineProperty(at,"isAxiosError",{value:!0}),w.from=(t,e,n,i,s,o)=>{const r=Object.create(at);return a.toFlatObject(t,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),w.call(r,t.message,e,n,i,s),r.cause=t,r.name=t.name,o&&Object.assign(r,o),r};const Nn=null;function Ae(t){return a.isPlainObject(t)||a.isArray(t)}function ct(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function ut(t,e,n){return t?t.concat(e).map(function(i,s){return i=ct(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function Pn(t){return a.isArray(t)&&!t.some(Ae)}const jn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function he(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!a.isUndefined(p[g])});const i=n.metaTokens,s=n.visitor||c,o=n.dots,r=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(a.isDate(g))return g.toISOString();if(!l&&a.isBlob(g))throw new w("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(g)||a.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,p,f){let S=g;if(g&&!f&&typeof g=="object"){if(a.endsWith(p,"{}"))p=i?p:p.slice(0,-2),g=JSON.stringify(g);else if(a.isArray(g)&&Pn(g)||(a.isFileList(g)||a.endsWith(p,"[]"))&&(S=a.toArray(g)))return p=ct(p),S.forEach(function(E,C){!(a.isUndefined(E)||E===null)&&e.append(r===!0?ut([p],C,o):r===null?p:p+"[]",u(E))}),!1}return Ae(g)?!0:(e.append(ut(f,p,o),u(g)),!1)}const m=[],_=Object.assign(jn,{defaultVisitor:c,convertValue:u,isVisitable:Ae});function v(g,p){if(!a.isUndefined(g)){if(m.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));m.push(g),a.forEach(g,function(f,S){(!(a.isUndefined(f)||f===null)&&s.call(e,f,a.isString(S)?S.trim():S,p,_))===!0&&v(f,p?p.concat(S):[S])}),m.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return v(t),e}function dt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function De(t,e){this._pairs=[],t&&he(t,this,e)}const ht=De.prototype;ht.append=function(t,e){this._pairs.push([t,e])},ht.toString=function(t){const e=t?function(n){return t.call(this,n,dt)}:dt;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Un(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mt(t,e,n){if(!e)return t;const i=n&&n.encode||Un;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=a.isURLSearchParams(e)?e.toString():new De(e,n).toString(i),o){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class ft{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const pt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mn=typeof URLSearchParams<"u"?URLSearchParams:De,In=typeof FormData<"u"?FormData:null,Vn=typeof Blob<"u"?Blob:null,Fn={isBrowser:!0,classes:{URLSearchParams:Mn,FormData:In,Blob:Vn},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",Ne=typeof navigator=="object"&&navigator||void 0,Ln=ke&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0),Bn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qn=ke&&window.location.href||"http://localhost",Hn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:Ln,hasStandardBrowserWebWorkerEnv:Bn,navigator:Ne,origin:qn},Symbol.toStringTag,{value:"Module"})),j={...Hn,...Fn};function zn(t,e){return he(t,new j.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,o){return j.isNode&&a.isBuffer(n)?(this.append(i,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Wn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Kn(t){const e={},n=Object.keys(t);let i;const s=n.length;let o;for(i=0;i<s;i++)o=n[i],e[o]=t[o];return e}function gt(t){function e(n,i,s,o){let r=n[o++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=o>=n.length;return r=!r&&a.isArray(s)?s.length:r,u?(a.hasOwnProp(s,r)?s[r]=[s[r],i]:s[r]=i,!l):((!s[r]||!a.isObject(s[r]))&&(s[r]=[]),e(n,i,s[r],o)&&a.isArray(s[r])&&(s[r]=Kn(s[r])),!l)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(i,s)=>{e(Wn(i),s,n,0)}),n}return null}function $n(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(t)}const se={transitional:pt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return i?JSON.stringify(gt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return zn(t,this.formSerializer).toString();if((o=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return he(o?{"files[]":t}:t,r&&new r,this.formSerializer)}}return s||i?(e.setContentType("application/json",!1),$n(t)):t}],transformResponse:[function(t){const e=this.transitional||se.transitional,n=e&&e.forcedJSONParsing,i=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||i)){const s=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?w.from(o,w.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{se.headers[t]={}});const Jn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gn=t=>{const e={};let n,i,s;return t&&t.split(`
|
3
|
+
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!n||e[n]&&Jn[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},_t=Symbol("internals");function oe(t){return t&&String(t).trim().toLowerCase()}function me(t){return t===!1||t==null?t:a.isArray(t)?t.map(me):String(t)}function Zn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const Xn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Pe(t,e,n,i,s){if(a.isFunction(i))return i.call(this,e,n);if(s&&(e=n),!!a.isString(e)){if(a.isString(i))return e.indexOf(i)!==-1;if(a.isRegExp(i))return i.test(e)}}function Yn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Qn(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(s,o,r){return this[i].call(this,e,s,o,r)},configurable:!0})})}class M{constructor(e){e&&this.set(e)}set(e,n,i){const s=this;function o(l,u,c){const m=oe(u);if(!m)throw new Error("header name must be a non-empty string");const _=a.findKey(s,m);(!_||s[_]===void 0||c===!0||c===void 0&&s[_]!==!1)&&(s[_||u]=me(l))}const r=(l,u)=>a.forEach(l,(c,m)=>o(c,m,u));if(a.isPlainObject(e)||e instanceof this.constructor)r(e,n);else if(a.isString(e)&&(e=e.trim())&&!Xn(e))r(Gn(e),n);else if(a.isHeaders(e))for(const[l,u]of e.entries())o(u,l,i);else e!=null&&o(n,e,i);return this}get(e,n){if(e=oe(e),e){const i=a.findKey(this,e);if(i){const s=this[i];if(!n)return s;if(n===!0)return Zn(s);if(a.isFunction(n))return n.call(this,s,i);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=oe(e),e){const i=a.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Pe(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let s=!1;function o(r){if(r=oe(r),r){const l=a.findKey(i,r);l&&(!n||Pe(i,i[l],l,n))&&(delete i[l],s=!0)}}return a.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const o=n[i];(!e||Pe(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,i={};return a.forEach(this,(s,o)=>{const r=a.findKey(i,o);if(r){n[r]=me(s),delete n[o];return}const l=e?Yn(o):String(o).trim();l!==o&&delete n[o],n[l]=me(s),i[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=e&&a.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
4
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(s=>i.set(s)),i}static accessor(e){const n=(this[_t]=this[_t]={accessors:{}}).accessors,i=this.prototype;function s(o){const r=oe(o);n[r]||(Qn(i,o),n[r]=!0)}return a.isArray(e)?e.forEach(s):s(e),this}}M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(M.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),a.freezeMethods(M);function je(t,e){const n=this||se,i=e||n,s=M.from(i.headers);let o=i.data;return a.forEach(t,function(r){o=r.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function bt(t){return!!(t&&t.__CANCEL__)}function Q(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(Q,w,{__CANCEL__:!0});function yt(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ei(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ti(t,e){t=t||10;const n=new Array(t),i=new Array(t);let s=0,o=0,r;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=i[o];r||(r=u),n[s]=l,i[s]=u;let m=o,_=0;for(;m!==s;)_+=n[m++],m=m%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-r<e)return;const v=c&&u-c;return v?Math.round(_*1e3/v):void 0}}function ni(t,e){let n=0,i=1e3/e,s,o;const r=(l,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),t.apply(null,l)};return[(...l)=>{const u=Date.now(),c=u-n;c>=i?r(l,u):(s=l,o||(o=setTimeout(()=>{o=null,r(s)},i-c)))},()=>s&&r(s)]}const fe=(t,e,n=3)=>{let i=0;const s=ti(50,250);return ni(o=>{const r=o.loaded,l=o.lengthComputable?o.total:void 0,u=r-i,c=s(u),m=r<=l;i=r;const _={loaded:r,total:l,progress:l?r/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&m?(l-r)/c:void 0,event:o,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(_)},n)},vt=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},wt=t=>(...e)=>a.asap(()=>t(...e)),ii=j.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,j.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0,si=j.hasStandardBrowserEnv?{write(t,e,n,i,s,o){const r=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),a.isString(i)&&r.push("path="+i),a.isString(s)&&r.push("domain="+s),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oi(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ri(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Tt(t,e){return t&&!oi(e)?ri(t,e):e}const St=t=>t instanceof M?{...t}:t;function J(t,e){e=e||{};const n={};function i(c,m,_,v){return a.isPlainObject(c)&&a.isPlainObject(m)?a.merge.call({caseless:v},c,m):a.isPlainObject(m)?a.merge({},m):a.isArray(m)?m.slice():m}function s(c,m,_,v){if(a.isUndefined(m)){if(!a.isUndefined(c))return i(void 0,c,_,v)}else return i(c,m,_,v)}function o(c,m){if(!a.isUndefined(m))return i(void 0,m)}function r(c,m){if(a.isUndefined(m)){if(!a.isUndefined(c))return i(void 0,c)}else return i(void 0,m)}function l(c,m,_){if(_ in e)return i(c,m);if(_ in t)return i(void 0,c)}const u={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m,_)=>s(St(c),St(m),_,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(c){const m=u[c]||s,_=m(t[c],e[c],c);a.isUndefined(_)&&m!==l||(n[c]=_)}),n}const Et=t=>{const e=J({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:o,headers:r,auth:l}=e;e.headers=r=M.from(r),e.url=mt(Tt(e.baseURL,e.url),t.params,t.paramsSerializer),l&&r.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(a.isFormData(n)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((u=r.getContentType())!==!1){const[c,...m]=u?u.split(";").map(_=>_.trim()).filter(Boolean):[];r.setContentType([c||"multipart/form-data",...m].join("; "))}}if(j.hasStandardBrowserEnv&&(i&&a.isFunction(i)&&(i=i(e)),i||i!==!1&&ii(e.url))){const c=s&&o&&si.read(o);c&&r.set(s,c)}return e},ai=typeof XMLHttpRequest<"u",li=ai&&function(t){return new Promise(function(e,n){const i=Et(t);let s=i.data;const o=M.from(i.headers).normalize();let{responseType:r,onUploadProgress:l,onDownloadProgress:u}=i,c,m,_,v,g;function p(){v&&v(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function S(){if(!f)return;const C=M.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),D={data:!r||r==="text"||r==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:C,config:t,request:f};yt(function(F){e(F),p()},function(F){n(F),p()},D),f=null}"onloadend"in f?f.onloadend=S:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(S)},f.onabort=function(){f&&(n(new w("Request aborted",w.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new w("Network Error",w.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const D=i.transitional||pt;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),n(new w(C,D.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,f)),f=null},s===void 0&&o.setContentType(null),"setRequestHeader"in f&&a.forEach(o.toJSON(),function(C,D){f.setRequestHeader(D,C)}),a.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),r&&r!=="json"&&(f.responseType=i.responseType),u&&([_,g]=fe(u,!0),f.addEventListener("progress",_)),l&&f.upload&&([m,v]=fe(l),f.upload.addEventListener("progress",m),f.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(c=C=>{f&&(n(!C||C.type?new Q(null,t,f):C),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const E=ei(i.url);if(E&&j.protocols.indexOf(E)===-1){n(new w("Unsupported protocol "+E+":",w.ERR_BAD_REQUEST,t));return}f.send(s||null)})},ci=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let i=new AbortController,s;const o=function(c){if(!s){s=!0,l();const m=c instanceof Error?c:this.reason;i.abort(m instanceof w?m:new Q(m instanceof Error?m.message:m))}};let r=e&&setTimeout(()=>{r=null,o(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const l=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:u}=i;return u.unsubscribe=()=>a.asap(l),u}},ui=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,s;for(;i<n;)s=i+e,yield t.slice(i,s),i=s},di=async function*(t,e){for await(const n of hi(t))yield*ui(n,e)},hi=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},Ct=(t,e,n,i)=>{const s=di(t,e);let o=0,r,l=u=>{r||(r=!0,i&&i(u))};return new ReadableStream({async pull(u){try{const{done:c,value:m}=await s.next();if(c){l(),u.close();return}let _=m.byteLength;if(n){let v=o+=_;n(v)}u.enqueue(new Uint8Array(m))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},pe=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ot=pe&&typeof ReadableStream=="function",mi=pe&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),xt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},fi=Ot&&xt(()=>{let t=!1;const e=new Request(j.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Rt=64*1024,Ue=Ot&&xt(()=>a.isReadableStream(new Response("").body)),ge={stream:Ue&&(t=>t.body)};pe&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ge[e]&&(ge[e]=a.isFunction(t[e])?n=>n[e]():(n,i)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,i)})})})(new Response);const pi=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(j.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await mi(t)).byteLength},gi=async(t,e)=>a.toFiniteNumber(t.getContentLength())??pi(e),_i=pe&&(async t=>{let{url:e,method:n,data:i,signal:s,cancelToken:o,timeout:r,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:m,withCredentials:_="same-origin",fetchOptions:v}=Et(t);c=c?(c+"").toLowerCase():"text";let g=ci([s,o&&o.toAbortSignal()],r),p;const f=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let S;try{if(u&&fi&&n!=="get"&&n!=="head"&&(S=await gi(m,i))!==0){let b=new Request(e,{method:"POST",body:i,duplex:"half"}),P;if(a.isFormData(i)&&(P=b.headers.get("content-type"))&&m.setContentType(P),b.body){const[k,L]=vt(S,fe(wt(u)));i=Ct(b.body,Rt,k,L)}}a.isString(_)||(_=_?"include":"omit");const E="credentials"in Request.prototype;p=new Request(e,{...v,signal:g,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:i,duplex:"half",credentials:E?_:void 0});let C=await fetch(p);const D=Ue&&(c==="stream"||c==="response");if(Ue&&(l||D&&f)){const b={};["status","statusText","headers"].forEach(ee=>{b[ee]=C[ee]});const P=a.toFiniteNumber(C.headers.get("content-length")),[k,L]=l&&vt(P,fe(wt(l),!0))||[];C=new Response(Ct(C.body,Rt,k,()=>{L&&L(),f&&f()}),b)}c=c||"text";let F=await ge[a.findKey(ge,c)||"text"](C,t);return!D&&f&&f(),await new Promise((b,P)=>{yt(b,P,{data:F,headers:M.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:p})})}catch(E){throw f&&f(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,p),{cause:E.cause||E}):w.from(E,E&&E.code,t,p)}}),Me={http:Nn,xhr:li,fetch:_i};a.forEach(Me,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const At=t=>`- ${t}`,bi=t=>a.isFunction(t)||t===null||t===!1,Dt={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,i;const s={};for(let o=0;o<e;o++){n=t[o];let r;if(i=n,!bi(n)&&(i=Me[(r=String(n)).toLowerCase()],i===void 0))throw new w(`Unknown adapter '${r}'`);if(i)break;s[r||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=e?o.length>1?`since :
|
5
5
|
`+o.map(At).join(`
|
6
|
-
`):" "+At(o[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:Me};function Ie(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Q(null,t)}function kt(t){return Ie(t),t.headers=M.from(t.headers),t.data=je.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Dt.getAdapter(t.adapter||se.adapter)(t).then(function(e){return Ie(t),e.data=je.call(t,t.transformResponse,e),e.headers=M.from(e.headers),e},function(e){return bt(e)||(Ie(t),e&&e.response&&(e.response.data=je.call(t,t.transformResponse,e.response),e.response.headers=M.from(e.response.headers))),Promise.reject(e)})}const Nt="1.7.9",_e={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{_e[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Pt={};_e.transitional=function(t,e,n){function i(s,o){return"[Axios v"+Nt+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,r)=>{if(t===!1)throw new w(i(o," has been removed"+(e?" in "+e:"")),w.ERR_DEPRECATED);return e&&!Pt[o]&&(Pt[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,o,r):!0}},_e.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function
|
7
|
-
`+o):i.stack=o}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=G(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:o}=n;i!==void 0&&be.assertOptions(i,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:be.assertOptions(s,{encode:H.function,serialize:H.function},!0)),be.assertOptions(n,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=M.concat(r,o);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,_=0,v;if(!u){const p=[kt.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),v=p.length,m=Promise.resolve(n);_<v;)m=m.then(p[_++],p[_++]);return m}v=l.length;let g=n;for(_=0;_<v;){const p=l[_++],f=l[_++];try{g=p(g)}catch(S){f.call(this,S);break}}try{m=kt.call(this,g)}catch(p){return Promise.reject(p)}for(_=0,v=c.length;_<v;)m=m.then(c[_++],c[_++]);return m}getUri(e){e=G(this.defaults,e);const n=Tt(e.baseURL,e.url);return mt(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){J.prototype[t]=function(e,n){return this.request(G(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(i,s,o){return this.request(G(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}J.prototype[t]=e(),J.prototype[t+"Form"]=e(!0)});class Ve{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](s);i._listeners=null}),this.promise.then=s=>{let o;const r=new Promise(l=>{i.subscribe(l),o=l}).then(s);return r.cancel=function(){i.unsubscribe(o)},r},e(function(s,o,r){i.reason||(i.reason=new Q(s,o,r),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Ve(function(n){e=n}),cancel:e}}}function wi(t){return function(e){return t.apply(null,e)}}function Ti(t){return a.isObject(t)&&t.isAxiosError===!0}const Fe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fe).forEach(([t,e])=>{Fe[e]=t});function jt(t){const e=new J(t),n=Xe(J.prototype.request,e);return a.extend(n,J.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return jt(G(t,i))},n}const A=jt(se);A.Axios=J,A.CanceledError=Q,A.CancelToken=Ve,A.isCancel=bt,A.VERSION=Nt,A.toFormData=he,A.AxiosError=w,A.Cancel=A.CanceledError,A.all=function(t){return Promise.all(t)},A.spread=wi,A.isAxiosError=Ti,A.mergeConfig=G,A.AxiosHeaders=M,A.formToJSON=t=>gt(a.isHTMLForm(t)?new FormData(t):t),A.getAdapter=Dt.getAdapter,A.HttpStatusCode=Fe,A.default=A;const Ut=A.create({baseURL:location.origin,timeout:6e4,params:{}});Ut.interceptors.response.use(t=>t,t=>{var e,n,i,s,o,r,l,u,c,m,_;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(p){p&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let v=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(v+=`${t.response.statusText} `),(i=(n=t.response)==null?void 0:n.config)!=null&&i.data&&(v+=`${t.response.config.data} `),(o=(s=t.response)==null?void 0:s.data)!=null&&o.message?v+=`${t.response.data.message}`:(l=(r=t.response)==null?void 0:r.data)!=null&&l.exception?v+=`${t.response.data.exception}`:(m=(c=(u=t.response)==null?void 0:u.data)==null?void 0:c.error)!=null&&m.message?(t.response.data.error.class&&(v+=`${t.response.data.error.class} `),v+=`${t.response.data.error.message}`):v+=`${(_=t.response)==null?void 0:_.data}`;const{$cosmosNotify:g}=window;throw g&&g.serious({title:"Network error",body:v}),t}else throw t});var ye={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},x={log(...t){this.enabled&&(t.push(Date.now()),ye.logger.log("[ActionCable]",...t))}};const re=()=>new Date().getTime(),ve=t=>(re()-t)/1e3;class we{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=re(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),x.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=re(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),x.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=re()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,x.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=re(),x.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:n}=this.constructor,i=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),s=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*i*(1+s)}reconnectIfStale(){this.connectionIsStale()&&(x.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${ve(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?x.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${ve(this.disconnectedAt)} s`):(x.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return ve(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&ve(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(x.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}we.staleThreshold=6,we.reconnectionBackoffRate=.15;var Mt={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:ae,protocols:Le}=Mt,Si=Le.slice(0,Le.length-1),It=[].indexOf;class Be{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new we(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return x.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...Le,...this.consumer.subprotocols||[]];return x.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new ye.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(x.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){x.log("Failed to reopen WebSocket",e)}finally{x.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return It.call(Si,this.getProtocol())>=0}isState(...e){return It.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in ye.WebSocket)if(ye.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const n=this.events[e].bind(this);this.webSocket[`on${e}`]=n}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}Be.reopenDelay=500,Be.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:i,reconnect:s,type:o}=JSON.parse(t.data);switch(o){case ae.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case ae.disconnect:return x.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:s});case ae.ping:return this.monitor.recordPing();case ae.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case ae.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(x.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return x.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(x.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){x.log("WebSocket onerror event")}};const Ei=function(t,e){if(e!=null)for(let n in e){const i=e[n];t[n]=i}return t};class Ci{constructor(e,n={},i){this.consumer=e,this.identifier=JSON.stringify(n),Ei(this,i)}perform(e,n={}){return n.action=e,this.send(n)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class Oi{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(x.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):x.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){x.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{x.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class xi{constructor(e){this.consumer=e,this.guarantor=new Oi(this),this.subscriptions=[]}create(e,n){const i=e,s=typeof i=="object"?i:{channel:i},o=new Ci(this.consumer,s,n);return this.add(o)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(n=>n!==e),e}findAll(e){return this.subscriptions.filter(n=>n.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...n){return this.subscriptions.map(i=>this.notify(i,e,...n))}notify(e,n,...i){let s;return typeof e=="string"?s=this.findAll(e):s=[e],s.map(o=>typeof o[n]=="function"?o[n](...i):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){x.log(`Subscription confirmed ${e}`),this.findAll(e).map(n=>this.guarantor.forget(n))}sendCommand(e,n){const{identifier:i}=e;return this.consumer.send({command:n,identifier:i})}}class Ri{constructor(e){this._url=e,this.subscriptions=new xi(this),this.connection=new Be(this),this.subprotocols=[]}get url(){return Ai(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function Ai(t){if(typeof t=="function"&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return t}function Di(t=ki("url")||Mt.default_mount_path){return new Ri(t)}function ki(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}we.staleThreshold=10;class Ni{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,i={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(o=>{if(o&&OpenC3Auth.setTokens(),this._cable==null){let r=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=Di(r)}return this._cable.subscriptions.create({channel:e,...s},i)})}recordPing(){this._cable.connection.monitor.recordPing()}}class Pi{constructor(){Kt(this,"id",1)}async exec(e,n,i={},s={},o=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,s.manual=!0,(await Ut.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:o})).data.result}catch(r){let l=new Error;throw r.response?(l.name=r.response.data.error.data.class,l.message=r.response.data.error.data.message,l.object=r.response.data.error):r.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...i){return this.exec("interface_cmd",[e,n,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,i){return this.exec("get_item",[e,n,i])}get_param(e,n,i){return this.exec("get_param",[e,n,i])}get_parameter(e,n,i){return this.exec("get_param",[e,n,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,n,i,s=30){const o=await this.exec("get_tlm_packet",[e,n],{type:i,stale_time:s});if(o!=null){let r=o.length,l=null;for(let u=0;u<r;u++)l=this.decode_openc3_type(o[u][1]),l!==null&&(o[u][1]=l)}return o}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,i=null){let s={stale_time:n};i!==null&&(s.cache_timeout=i);const o=await this.exec("get_tlm_values",[e],s,{},1e4);let r=o[0].length,l=null;for(let u=0;u<r;u++)l=this.decode_openc3_type(o[0][u]),l!==null&&(o[0][u]=l);return o}get_limits(e,n,i){return this.exec("get_limits",[e,n,i])}async tlm(e,n,i,s="CONVERTED"){let o=null;if(n===void 0)o=await this.exec("tlm",[e]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))o=await this.exec("tlm",[e],{type:n});else{let l=new Error;throw l.name="TypeError",l.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,l}else o=await this.exec("tlm",[e,n,i],{type:s});let r=this.decode_openc3_type(o);return r!==null&&(o=r),o}async inject_tlm(e,n,i=null,s="CONVERTED"){data=await this.exec("inject_tlm",[e,n,i],{type:s})}set_tlm(e,n,i,s){return this.exec("set_tlm",[e,n,i],{type:s})}override_tlm(e,n,i,s){return this.exec("override_tlm",[e,n,i],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,i,s){return this.exec("normalize_tlm",[e,n,i],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,i,s="CONVERTED"){return this.exec("get_cmd_value",[e,n,i,s])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,i,s,o){let r=null;for(let l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r=this.encode_openc3_type(s[l]),r!==null&&(s[l]=r));return this.exec(e,[n,i,s],{},o)}get_cmd_hazardous(e,n,i,s={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,n,i,s)}cmd(e,n,i,s={}){return n===void 0?this.exec("cmd",e,{},s):this._cmd("cmd",e,n,i,s)}cmd_no_range_check(e,n,i,s={}){return n===void 0?this.exec("cmd_no_range_check",e,{},s):this._cmd("cmd_no_range_check",e,n,i,s)}cmd_raw(e,n,i,s={}){return n===void 0?this.exec("cmd_raw",e,{},s):this._cmd("cmd_raw",e,n,i,s)}cmd_raw_no_range_check(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},s):this._cmd("cmd_raw_no_range_check",e,n,i,s)}cmd_no_hazardous_check(e,n,i,s={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},s):this._cmd("cmd_no_hazardous_check",e,n,i,s)}cmd_no_checks(e,n,i,s={}){return n===void 0?this.exec("cmd_no_checks",e,{},s):this._cmd("cmd_no_checks",e,n,i,s)}cmd_raw_no_hazardous_check(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},s):this._cmd("cmd_raw_no_hazardous_check",e,n,i,s)}cmd_raw_no_checks(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},s):this._cmd("cmd_raw_no_checks",e,n,i,s)}build_cmd(e,n,i){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,i)}build_command(e,n,i){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,i){return this.exec("save_config",[e,n,i])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,i){return this.exec("enable_limits",[e,n,i])}disable_limits(e,n,i){return this.exec("disable_limits",[e,n,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),i=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(i);return Array.from(s).map(o=>o.toString(16).padStart(2,"0")).join("")}}}let Te=[];const ji={components:{OpenConfigDialog:ze,SaveConfigDialog:We,TargetPacketItemChooser:Ke,TopBar:Ht},mixins:[$e,Ge],data(){return{title:"Data Extractor",configKey:"data_extractor",openConfig:!1,saveConfig:!1,api:null,timeZone:"local",progress:0,packetsReceived:0,totalPacketsReceived:0,itemsReceived:0,totalItemsReceived:0,processButtonText:"Process",todaysDate:null,startDate:null,startTime:null,endTime:null,endDate:null,startDateTime:null,endDateTime:null,startDateTimeFilename:"",rules:{required:t=>!!t||"Required"},cmdOrTlm:"tlm",items:[],search:"",headers:[{title:"Target",value:"targetName"},{title:"Packet",value:"packetName"},{title:"Item",value:"itemName"},{title:"Mode",value:"mode"},{title:"ValueType",value:"valueType"},{title:"ReducedType",value:"reducedType"},{title:"Edit",value:"edit"},{title:"Delete",value:"delete"}],itemsPerPage:20,columnMap:{},delimiter:",",columnMode:"normal",fileCount:0,skipIgnored:!0,fillDown:!1,matlabHeader:!1,uniqueOnly:!1,keyMap:{},modes:["DECOM","REDUCED_MINUTE","REDUCED_HOUR","REDUCED_DAY"],valueTypes:["CONVERTED","RAW","FORMATTED","WITH_UNITS"],reducedTypes:["SAMPLE","MIN","MAX","AVG","STDDEV"],editAll:!1,allItemMode:"DECOM",allItemValueType:"CONVERTED",allItemReducedType:"SAMPLE",cable:new Ni,subscription:null}},watch:{delimiter:function(){this.saveDefaultConfig(this.currentConfig)},fillDown:function(){this.saveDefaultConfig(this.currentConfig)},matlabHeader:function(){this.saveDefaultConfig(this.currentConfig)},uniqueOnly:function(){this.saveDefaultConfig(this.currentConfig)},columnNode:function(){this.saveDefaultConfig(this.currentConfig)},cmdOrTlm:function(){this.items.length===0?this.saveDefaultConfig(this.currentConfig):this.items=[]},items:{handler:function(){this.saveDefaultConfig(this.currentConfig)},deep:!0},itemsPerPage:function(){this.saveDefaultConfig(this.currentConfig)}},computed:{menus:function(){return[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{this.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{this.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{this.resetConfig(),this.resetConfigBase()}},{divider:!0},{radioGroup:!0,value:this.delimiter,command:t=>{this.delimiter=t},choices:[{label:"Comma Delimited",value:","},{label:"Tab Delimited",value:" "}]}]},{label:"Mode",items:[{label:"Fill Down",checkbox:!0,checked:this.fillDown,command:()=>{this.fillDown=!this.fillDown}},{label:"Matlab Header",checkbox:!0,checked:this.matlabHeader,command:t=>{this.matlabHeader=!this.matlabHeader}},{label:"Unique Only",checkbox:!0,checked:this.uniqueOnly,command:t=>{this.uniqueOnly=!this.uniqueOnly}},{divider:!0},{radioGroup:!0,value:this.columnMode,command:t=>{this.columnMode=t},choices:[{label:"Normal Columns",value:"normal"},{label:"Full Column Names",value:"full"}]}]}]},currentConfig:function(){return{delimiter:this.delimiter,fillDown:this.fillDown,matlabHeader:this.matlabHeader,uniqueOnly:this.uniqueOnly,columnMode:this.columnMode,cmdOrTlm:this.cmdOrTlm,items:this.items,itemsPerPage:this.itemsPerPage}}},async created(){this.api=new Pi,await this.api.get_setting("time_zone").then(e=>{e&&(this.timeZone=e)}).catch(e=>{});let t=new Date;this.todaysDate=this.formatDate(t,this.timeZone),this.startDate=this.formatDate(t-36e5,this.timeZone),this.startTime=this.formatTimeHMS(t-36e5,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone),this.endDate=this.formatDate(t,this.timeZone)},mounted:function(){if(this.$route.query&&this.$route.query.config)this.openConfiguration(this.$route.query.config,!0);else{let t=this.loadDefaultConfig();JSON.stringify(t)!=="{}"&&this.applyConfig(t)}},unmounted:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{resetConfig:function(){this.delimiter=",",this.fillDown=!1,this.matlabHeader=!1,this.uniqueOnly=!1,this.columnMode="normal";let t=new Date;this.startDate=this.formatDate(t-36e5,this.timeZone),this.startTime=this.formatTimeHMS(t-36e5,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone),this.endDate=this.formatDate(t,this.timeZone),this.cmdOrTlm="tlm",this.items=[],this.itemsPerPage=20,this.applyConfig(this.currentConfig)},applyConfig:function(t){this.delimiter=t.delimiter||",",this.menus[0].radioGroup=this.delimiter===","?"Comma Delimited":"Tab Delimited",this.fillDown=t.fillDown,this.menus[1].items[0].checked=this.fillDown||!1,this.matlabHeader=t.matlabHeader,this.menus[1].items[1].checked=this.matlabHeader||!1,this.uniqueOnly=t.uniqueOnly,this.menus[1].items[2].checked=this.uniqueOnly||!1,this.columnMode=t.columnMode,this.menus[1].radioGroup=this.columnMode==="normal"?"Normal Columns":"Full Column Names",this.cmdOrTlm=t.cmdOrTlm,this.items=t.items,this.itemsPerPage=t.itemsPerPage},openConfiguration:function(t,e=!1){this.openConfigBase(t,e,n=>{this.applyConfig(n),this.startDate=n.startDate,this.startTime=n.startTime,this.endTime=n.endTime,this.endDate=n.endDate,this.saveDefaultConfig(this.currentConfig)})},saveConfiguration:function(t){let e=this.currentConfig;e.startDate=this.startDate,e.startTime=this.startTime,e.endTime=this.endTime,e.endDate=this.endDate,this.saveConfigBase(t,e)},addItem:function(t){for(const e of this.items)if(e.itemName===t.itemName&&e.packetName===t.packetName&&e.targetName===t.targetName&&e.valueType==="CONVERTED"&&e.reducedType==="SAMPLE"&&e.mode==="DECOM"){this.$notify.caution({body:"This item has already been added!"});return}t.cmdOrTlm=this.cmdOrTlm.toUpperCase(),t.edit=!1,t.valueType="CONVERTED",t.reducedType="SAMPLE",t.mode="DECOM",this.items.push(t)},deleteItem:function(t){let e=this.items.indexOf(t);this.items.splice(e,1)},deleteAll:function(){this.items=[]},editAllItems:function(){this.editAll=!1;for(let t of this.items)t.mode=this.allItemMode,t.valueType=this.allItemValueType,t.reducedType=this.allItemReducedType},getItemLabel:function(t){let e=[`${t.targetName} - ${t.packetName} - ${t.itemName}`];return t.mode!=="DECOM"&&e.push(`{ ${t.mode} }`),t.valueType!=="CONVERTED"&&e.push(`( ${t.valueType} )`),t.reducedType!=="SAMPLE"&&e.push(`[ ${t.reducedType} ]`),e.join(" ")},setTimestamps:function(){this.startDateTimeFilename=this.startDate+"_"+this.startTime,this.startDateTimeFilename=this.startDateTimeFilename.replace(/(:|-|\.)\s*/g,"_");let t,e;try{this.timeZone==="local"?(t=new Date(this.startDate+" "+this.startTime),e=new Date(this.endDate+" "+this.endTime)):(t=new Date(this.startDate+" "+this.startTime+"Z"),e=new Date(this.endDate+" "+this.endTime+"Z"),this.startDateTimeFilename+="_UTC")}catch{return}this.startDateTime=t.getTime()*1e6,this.endDateTime=e.getTime()*1e6},processItems:function(){if(this.processButtonText==="Cancel"){this.finished();return}if(this.setTimestamps(),!this.startDateTime||!this.endDateTime){this.$notify.caution({body:"Invalid date/time selected!"});return}if(this.startDateTime===this.endDateTime){this.$notify.caution({body:"Start date/time is equal to end date/time!"});return}if(this.endDateTime-this.startDateTime<0){this.$notify.caution({body:"Start date/time is greater then end date/time!"});return}new Date(this.endDateTime/1e6)>Date.now()&&this.$notify.caution({title:"Note",body:`End date/time is greater than current date/time. Data will
|
6
|
+
`):" "+At(o[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:Me};function Ie(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Q(null,t)}function kt(t){return Ie(t),t.headers=M.from(t.headers),t.data=je.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Dt.getAdapter(t.adapter||se.adapter)(t).then(function(e){return Ie(t),e.data=je.call(t,t.transformResponse,e),e.headers=M.from(e.headers),e},function(e){return bt(e)||(Ie(t),e&&e.response&&(e.response.data=je.call(t,t.transformResponse,e.response),e.response.headers=M.from(e.response.headers))),Promise.reject(e)})}const Nt="1.7.9",_e={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{_e[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Pt={};_e.transitional=function(t,e,n){function i(s,o){return"[Axios v"+Nt+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,r)=>{if(t===!1)throw new w(i(o," has been removed"+(e?" in "+e:"")),w.ERR_DEPRECATED);return e&&!Pt[o]&&(Pt[o]=!0,console.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,o,r):!0}},_e.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function yi(t,e,n){if(typeof t!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const o=i[s],r=e[o];if(r){const l=t[o],u=l===void 0||r(l,o,t);if(u!==!0)throw new w("option "+o+" must be "+u,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+o,w.ERR_BAD_OPTION)}}const be={assertOptions:yi,validators:_e},H=be.validators;class G{constructor(e){this.defaults=e,this.interceptors={request:new ft,response:new ft}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
7
|
+
`+o):i.stack=o}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=J(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:o}=n;i!==void 0&&be.assertOptions(i,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:be.assertOptions(s,{encode:H.function,serialize:H.function},!0)),be.assertOptions(n,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=M.concat(r,o);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,_=0,v;if(!u){const p=[kt.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),v=p.length,m=Promise.resolve(n);_<v;)m=m.then(p[_++],p[_++]);return m}v=l.length;let g=n;for(_=0;_<v;){const p=l[_++],f=l[_++];try{g=p(g)}catch(S){f.call(this,S);break}}try{m=kt.call(this,g)}catch(p){return Promise.reject(p)}for(_=0,v=c.length;_<v;)m=m.then(c[_++],c[_++]);return m}getUri(e){e=J(this.defaults,e);const n=Tt(e.baseURL,e.url);return mt(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){G.prototype[t]=function(e,n){return this.request(J(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(i,s,o){return this.request(J(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}G.prototype[t]=e(),G.prototype[t+"Form"]=e(!0)});class Ve{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](s);i._listeners=null}),this.promise.then=s=>{let o;const r=new Promise(l=>{i.subscribe(l),o=l}).then(s);return r.cancel=function(){i.unsubscribe(o)},r},e(function(s,o,r){i.reason||(i.reason=new Q(s,o,r),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Ve(function(n){e=n}),cancel:e}}}function vi(t){return function(e){return t.apply(null,e)}}function wi(t){return a.isObject(t)&&t.isAxiosError===!0}const Fe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fe).forEach(([t,e])=>{Fe[e]=t});function jt(t){const e=new G(t),n=Xe(G.prototype.request,e);return a.extend(n,G.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return jt(J(t,i))},n}const A=jt(se);A.Axios=G,A.CanceledError=Q,A.CancelToken=Ve,A.isCancel=bt,A.VERSION=Nt,A.toFormData=he,A.AxiosError=w,A.Cancel=A.CanceledError,A.all=function(t){return Promise.all(t)},A.spread=vi,A.isAxiosError=wi,A.mergeConfig=J,A.AxiosHeaders=M,A.formToJSON=t=>gt(a.isHTMLForm(t)?new FormData(t):t),A.getAdapter=Dt.getAdapter,A.HttpStatusCode=Fe,A.default=A;const Ut=A.create({baseURL:location.origin,timeout:6e4,params:{}});Ut.interceptors.response.use(t=>t,t=>{var e,n,i,s,o,r,l,u,c,m,_;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(p){p&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let v=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(v+=`${t.response.statusText} `),(i=(n=t.response)==null?void 0:n.config)!=null&&i.data&&(v+=`${t.response.config.data} `),(o=(s=t.response)==null?void 0:s.data)!=null&&o.message?v+=`${t.response.data.message}`:(l=(r=t.response)==null?void 0:r.data)!=null&&l.exception?v+=`${t.response.data.exception}`:(m=(c=(u=t.response)==null?void 0:u.data)==null?void 0:c.error)!=null&&m.message?(t.response.data.error.class&&(v+=`${t.response.data.error.class} `),v+=`${t.response.data.error.message}`):v+=`${(_=t.response)==null?void 0:_.data}`;const{$cosmosNotify:g}=window;throw g&&g.serious({title:"Network error",body:v}),t}else throw t});var ye={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},x={log(...t){this.enabled&&(t.push(Date.now()),ye.logger.log("[ActionCable]",...t))}};const re=()=>new Date().getTime(),ve=t=>(re()-t)/1e3;class we{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=re(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),x.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=re(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),x.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=re()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,x.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=re(),x.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:n}=this.constructor,i=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),s=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*i*(1+s)}reconnectIfStale(){this.connectionIsStale()&&(x.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${ve(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?x.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${ve(this.disconnectedAt)} s`):(x.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return ve(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&ve(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(x.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}we.staleThreshold=6,we.reconnectionBackoffRate=.15;var Mt={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:ae,protocols:Le}=Mt,Ti=Le.slice(0,Le.length-1),It=[].indexOf;class Be{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new we(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return x.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...Le,...this.consumer.subprotocols||[]];return x.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new ye.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(x.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){x.log("Failed to reopen WebSocket",e)}finally{x.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return It.call(Ti,this.getProtocol())>=0}isState(...e){return It.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in ye.WebSocket)if(ye.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const n=this.events[e].bind(this);this.webSocket[`on${e}`]=n}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}Be.reopenDelay=500,Be.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:i,reconnect:s,type:o}=JSON.parse(t.data);switch(o){case ae.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case ae.disconnect:return x.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:s});case ae.ping:return this.monitor.recordPing();case ae.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case ae.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(x.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return x.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(x.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){x.log("WebSocket onerror event")}};const Si=function(t,e){if(e!=null)for(let n in e){const i=e[n];t[n]=i}return t};class Ei{constructor(e,n={},i){this.consumer=e,this.identifier=JSON.stringify(n),Si(this,i)}perform(e,n={}){return n.action=e,this.send(n)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class Ci{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(x.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):x.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){x.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{x.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class Oi{constructor(e){this.consumer=e,this.guarantor=new Ci(this),this.subscriptions=[]}create(e,n){const i=e,s=typeof i=="object"?i:{channel:i},o=new Ei(this.consumer,s,n);return this.add(o)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(n=>n!==e),e}findAll(e){return this.subscriptions.filter(n=>n.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...n){return this.subscriptions.map(i=>this.notify(i,e,...n))}notify(e,n,...i){let s;return typeof e=="string"?s=this.findAll(e):s=[e],s.map(o=>typeof o[n]=="function"?o[n](...i):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){x.log(`Subscription confirmed ${e}`),this.findAll(e).map(n=>this.guarantor.forget(n))}sendCommand(e,n){const{identifier:i}=e;return this.consumer.send({command:n,identifier:i})}}class xi{constructor(e){this._url=e,this.subscriptions=new Oi(this),this.connection=new Be(this),this.subprotocols=[]}get url(){return Ri(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function Ri(t){if(typeof t=="function"&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return t}function Ai(t=Di("url")||Mt.default_mount_path){return new xi(t)}function Di(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}we.staleThreshold=10;class ki{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,i={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(o=>{if(o&&OpenC3Auth.setTokens(),this._cable==null){let r=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=Ai(r)}return this._cable.subscriptions.create({channel:e,...s},i)})}recordPing(){this._cable.connection.monitor.recordPing()}}class Ni{constructor(){Wt(this,"id",1)}async exec(e,n,i={},s={},o=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,s.manual=!0,(await Ut.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:o})).data.result}catch(r){let l=new Error;throw r.response?(l.name=r.response.data.error.data.class,l.message=r.response.data.error.data.message,l.object=r.response.data.error):r.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...i){return this.exec("interface_cmd",[e,n,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,i){return this.exec("get_item",[e,n,i])}get_param(e,n,i){return this.exec("get_param",[e,n,i])}get_parameter(e,n,i){return this.exec("get_param",[e,n,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,n,i,s=30){const o=await this.exec("get_tlm_packet",[e,n],{type:i,stale_time:s});if(o!=null){let r=o.length,l=null;for(let u=0;u<r;u++)l=this.decode_openc3_type(o[u][1]),l!==null&&(o[u][1]=l)}return o}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,i=null){let s={stale_time:n};i!==null&&(s.cache_timeout=i);const o=await this.exec("get_tlm_values",[e],s,{},1e4);let r=o[0].length,l=null;for(let u=0;u<r;u++)l=this.decode_openc3_type(o[0][u]),l!==null&&(o[0][u]=l);return o}get_limits(e,n,i){return this.exec("get_limits",[e,n,i])}async tlm(e,n,i,s="CONVERTED"){let o=null;if(n===void 0)o=await this.exec("tlm",[e]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))o=await this.exec("tlm",[e],{type:n});else{let l=new Error;throw l.name="TypeError",l.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,l}else o=await this.exec("tlm",[e,n,i],{type:s});let r=this.decode_openc3_type(o);return r!==null&&(o=r),o}async inject_tlm(e,n,i=null,s="CONVERTED"){data=await this.exec("inject_tlm",[e,n,i],{type:s})}set_tlm(e,n,i,s){return this.exec("set_tlm",[e,n,i],{type:s})}override_tlm(e,n,i,s){return this.exec("override_tlm",[e,n,i],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,i,s){return this.exec("normalize_tlm",[e,n,i],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,i,s="CONVERTED"){return this.exec("get_cmd_value",[e,n,i,s])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,i,s,o){let r=null;for(let l in s)Object.prototype.hasOwnProperty.call(s,l)&&(r=this.encode_openc3_type(s[l]),r!==null&&(s[l]=r));return this.exec(e,[n,i,s],{},o)}get_cmd_hazardous(e,n,i,s={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,n,i,s)}cmd(e,n,i,s={}){return n===void 0?this.exec("cmd",e,{},s):this._cmd("cmd",e,n,i,s)}cmd_no_range_check(e,n,i,s={}){return n===void 0?this.exec("cmd_no_range_check",e,{},s):this._cmd("cmd_no_range_check",e,n,i,s)}cmd_raw(e,n,i,s={}){return n===void 0?this.exec("cmd_raw",e,{},s):this._cmd("cmd_raw",e,n,i,s)}cmd_raw_no_range_check(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},s):this._cmd("cmd_raw_no_range_check",e,n,i,s)}cmd_no_hazardous_check(e,n,i,s={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},s):this._cmd("cmd_no_hazardous_check",e,n,i,s)}cmd_no_checks(e,n,i,s={}){return n===void 0?this.exec("cmd_no_checks",e,{},s):this._cmd("cmd_no_checks",e,n,i,s)}cmd_raw_no_hazardous_check(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},s):this._cmd("cmd_raw_no_hazardous_check",e,n,i,s)}cmd_raw_no_checks(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},s):this._cmd("cmd_raw_no_checks",e,n,i,s)}build_cmd(e,n,i){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,i)}build_command(e,n,i){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,i){return this.exec("save_config",[e,n,i])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,i){return this.exec("enable_limits",[e,n,i])}disable_limits(e,n,i){return this.exec("disable_limits",[e,n,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),i=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(i);return Array.from(s).map(o=>o.toString(16).padStart(2,"0")).join("")}}}let Te=[];const Pi={components:{OpenConfigDialog:ze,SaveConfigDialog:We,TargetPacketItemChooser:Ke,TopBar:qt},mixins:[$e,Je],data(){return{title:"Data Extractor",configKey:"data_extractor",openConfig:!1,saveConfig:!1,api:null,timeZone:"local",progress:0,packetsReceived:0,totalPacketsReceived:0,itemsReceived:0,totalItemsReceived:0,processButtonText:"Process",todaysDate:null,startDate:null,startTime:null,endTime:null,endDate:null,startDateTime:null,endDateTime:null,startDateTimeFilename:"",rules:{required:t=>!!t||"Required"},cmdOrTlm:"tlm",items:[],search:"",headers:[{title:"Target",value:"targetName"},{title:"Packet",value:"packetName"},{title:"Item",value:"itemName"},{title:"Mode",value:"mode"},{title:"ValueType",value:"valueType"},{title:"ReducedType",value:"reducedType"},{title:"Edit",value:"edit"},{title:"Delete",value:"delete"}],itemsPerPage:20,columnMap:{},delimiter:",",columnMode:"normal",fileCount:0,skipIgnored:!0,fillDown:!1,matlabHeader:!1,uniqueOnly:!1,keyMap:{},modes:["DECOM","REDUCED_MINUTE","REDUCED_HOUR","REDUCED_DAY"],valueTypes:["CONVERTED","RAW","FORMATTED","WITH_UNITS"],reducedTypes:["SAMPLE","MIN","MAX","AVG","STDDEV"],editAll:!1,allItemMode:"DECOM",allItemValueType:"CONVERTED",allItemReducedType:"SAMPLE",cable:new ki,subscription:null}},watch:{delimiter:function(){this.saveDefaultConfig(this.currentConfig)},fillDown:function(){this.saveDefaultConfig(this.currentConfig)},matlabHeader:function(){this.saveDefaultConfig(this.currentConfig)},uniqueOnly:function(){this.saveDefaultConfig(this.currentConfig)},columnNode:function(){this.saveDefaultConfig(this.currentConfig)},cmdOrTlm:function(){this.items.length===0?this.saveDefaultConfig(this.currentConfig):this.items=[]},items:{handler:function(){this.saveDefaultConfig(this.currentConfig)},deep:!0},itemsPerPage:function(){this.saveDefaultConfig(this.currentConfig)}},computed:{menus:function(){return[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{this.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{this.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{this.resetConfig(),this.resetConfigBase()}},{divider:!0},{radioGroup:!0,value:this.delimiter,command:t=>{this.delimiter=t},choices:[{label:"Comma Delimited",value:","},{label:"Tab Delimited",value:" "}]}]},{label:"Mode",items:[{label:"Fill Down",checkbox:!0,checked:this.fillDown,command:()=>{this.fillDown=!this.fillDown}},{label:"Matlab Header",checkbox:!0,checked:this.matlabHeader,command:t=>{this.matlabHeader=!this.matlabHeader}},{label:"Unique Only",checkbox:!0,checked:this.uniqueOnly,command:t=>{this.uniqueOnly=!this.uniqueOnly}},{divider:!0},{radioGroup:!0,value:this.columnMode,command:t=>{this.columnMode=t},choices:[{label:"Normal Columns",value:"normal"},{label:"Full Column Names",value:"full"}]}]}]},currentConfig:function(){return{delimiter:this.delimiter,fillDown:this.fillDown,matlabHeader:this.matlabHeader,uniqueOnly:this.uniqueOnly,columnMode:this.columnMode,cmdOrTlm:this.cmdOrTlm,items:this.items,itemsPerPage:this.itemsPerPage}}},async created(){this.api=new Ni,await this.api.get_setting("time_zone").then(e=>{e&&(this.timeZone=e)}).catch(e=>{});let t=new Date;this.todaysDate=this.formatDate(t,this.timeZone),this.startDate=this.formatDate(t-36e5,this.timeZone),this.startTime=this.formatTimeHMS(t-36e5,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone),this.endDate=this.formatDate(t,this.timeZone)},mounted:function(){if(this.$route.query&&this.$route.query.config)this.openConfiguration(this.$route.query.config,!0);else{let t=this.loadDefaultConfig();JSON.stringify(t)!=="{}"&&this.applyConfig(t)}},unmounted:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{resetConfig:function(){this.delimiter=",",this.fillDown=!1,this.matlabHeader=!1,this.uniqueOnly=!1,this.columnMode="normal";let t=new Date;this.startDate=this.formatDate(t-36e5,this.timeZone),this.startTime=this.formatTimeHMS(t-36e5,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone),this.endDate=this.formatDate(t,this.timeZone),this.cmdOrTlm="tlm",this.items=[],this.itemsPerPage=20,this.applyConfig(this.currentConfig)},applyConfig:function(t){this.delimiter=t.delimiter||",",this.menus[0].radioGroup=this.delimiter===","?"Comma Delimited":"Tab Delimited",this.fillDown=t.fillDown,this.menus[1].items[0].checked=this.fillDown||!1,this.matlabHeader=t.matlabHeader,this.menus[1].items[1].checked=this.matlabHeader||!1,this.uniqueOnly=t.uniqueOnly,this.menus[1].items[2].checked=this.uniqueOnly||!1,this.columnMode=t.columnMode,this.menus[1].radioGroup=this.columnMode==="normal"?"Normal Columns":"Full Column Names",this.cmdOrTlm=t.cmdOrTlm,this.items=t.items,this.itemsPerPage=t.itemsPerPage},openConfiguration:function(t,e=!1){this.openConfigBase(t,e,n=>{this.applyConfig(n),this.startDate=n.startDate,this.startTime=n.startTime,this.endTime=n.endTime,this.endDate=n.endDate,this.saveDefaultConfig(this.currentConfig)})},saveConfiguration:function(t){let e=this.currentConfig;e.startDate=this.startDate,e.startTime=this.startTime,e.endTime=this.endTime,e.endDate=this.endDate,this.saveConfigBase(t,e)},addItem:function(t){for(const e of this.items)if(e.itemName===t.itemName&&e.packetName===t.packetName&&e.targetName===t.targetName&&e.valueType==="CONVERTED"&&e.reducedType==="SAMPLE"&&e.mode==="DECOM"){this.$notify.caution({body:"This item has already been added!"});return}t.cmdOrTlm=this.cmdOrTlm.toUpperCase(),t.edit=!1,t.valueType="CONVERTED",t.reducedType="SAMPLE",t.mode="DECOM",this.items.push(t)},deleteItem:function(t){let e=this.items.indexOf(t);this.items.splice(e,1)},deleteAll:function(){this.items=[]},editAllItems:function(){this.editAll=!1;for(let t of this.items)t.mode=this.allItemMode,t.valueType=this.allItemValueType,t.reducedType=this.allItemReducedType},getItemLabel:function(t){let e=[`${t.targetName} - ${t.packetName} - ${t.itemName}`];return t.mode!=="DECOM"&&e.push(`{ ${t.mode} }`),t.valueType!=="CONVERTED"&&e.push(`( ${t.valueType} )`),t.reducedType!=="SAMPLE"&&e.push(`[ ${t.reducedType} ]`),e.join(" ")},setTimestamps:function(){this.startDateTimeFilename=this.startDate+"_"+this.startTime,this.startDateTimeFilename=this.startDateTimeFilename.replace(/(:|-|\.)\s*/g,"_");let t,e;try{this.timeZone==="local"?(t=new Date(this.startDate+" "+this.startTime),e=new Date(this.endDate+" "+this.endTime)):(t=new Date(this.startDate+" "+this.startTime+"Z"),e=new Date(this.endDate+" "+this.endTime+"Z"),this.startDateTimeFilename+="_UTC")}catch{return}this.startDateTime=t.getTime()*1e6,this.endDateTime=e.getTime()*1e6},processItems:function(){if(this.processButtonText==="Cancel"){this.finished();return}if(this.setTimestamps(),!this.startDateTime||!this.endDateTime){this.$notify.caution({body:"Invalid date/time selected!"});return}if(this.startDateTime===this.endDateTime){this.$notify.caution({body:"Start date/time is equal to end date/time!"});return}if(this.endDateTime-this.startDateTime<0){this.$notify.caution({body:"Start date/time is greater then end date/time!"});return}new Date(this.endDateTime/1e6)>Date.now()&&this.$notify.caution({title:"Note",body:`End date/time is greater than current date/time. Data will
|
8
8
|
continue to stream in real-time until
|
9
9
|
${new Date(this.endDateTime/1e6).toISOString()} is reached.`}),this.progress=0,this.processButtonText="Cancel",this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:t=>this.received(t),connected:()=>this.onConnected(),disconnected:()=>{this.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:()=>{this.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then(t=>{this.subscription=t})},resetAllVars:function(){this.fileCount=0,this.totalPacketsReceived=0,this.totalItemsReceived=0,this.columnHeaders=[],this.columnMap={},this.keyMap={},this.resetPerFileVars()},resetPerFileVars:function(){Te=[],this.packetsReceived=0,this.itemsReceived=0},onConnected:function(){this.resetAllVars();let t=[];this.items.forEach((e,n)=>{let i=`${e.mode}__${e.cmdOrTlm}__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;e.reducedType!=="SAMPLE"&&(i=i+"__"+e.reducedType);let s=String(n);this.keyMap[s]=i,t.push([i,s])}),OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(e=>{e&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t,start_time:this.startDateTime,end_time:this.endDateTime})})},received:function(t){if(this.cable.recordPing(),t.error){this.$notify.serious({body:t.error});return}if(this.packetsReceived+=t.length,this.totalPacketsReceived+=t.length,t.length>0){let e=new Set;for(let s of t){let o=Object.keys(s);o.forEach(e.add,e),this.itemsReceived+=o.length-2,this.totalItemsReceived+=o.length-2}e.delete("__type"),e.delete("__time"),this.buildHeaders([...e]),Te.push(t),this.progress=Math.ceil(100*(t[0].__time-this.startDateTime)/(this.endDateTime-this.startDateTime)),this.columnHeaders.length*this.packetsReceived+this.itemsReceived*8>1e8&&this.createFile()}else this.finished();t=null},buildHeaders:function(t){this.columnHeaders.length===0&&this.columnMode==="normal"&&(this.columnHeaders.push("TIME"),this.columnHeaders.push("TARGET"),this.columnHeaders.push("PACKET")),t.forEach(e=>{if(e.slice(0,2)==="__"||this.columnMap[e])return;this.columnMap[e]=this.columnHeaders.length,e=this.keyMap[e];const[n,i,s,o,r,l,u]=e.split("__");let c=r;this.columnMode==="full"&&(c=s+" "+o+" "+r),n&&n!=="DECOM"&&(c=c+" {"+n+"}"),l&&l!=="CONVERTED"&&(c=c+" ("+l+")"),u&&(c=c+" ["+u+"]"),this.columnHeaders.push(c)})},createFile:async function(){let t=Te.flat(),e=this.columnHeaders,n=this.columnMap,i=[];this.resetPerFileVars();let s="";this.matlabHeader&&(s+="% "),s+=e.join(this.delimiter),i.push(s),await this.yieldToMain(),t.sort((g,p)=>g.__time-p.__time),await this.yieldToMain();let o=[],r=[],l=null,u=0;for(let g of t){let p=!1;this.fillDown&&l?r=[...l]:r=[];let f="";if(Object.keys(g).forEach(S=>{if(S.slice(0,2)==="__")return;f=S;let E=n[S];if(typeof g[S]=="object")if(g[S]===null)r[E]="";else if(Array.isArray(g[S]))r[E]='"['+g[S]+']"';else{let C=g[S].raw;if(Array.isArray(C)){let D="";C.forEach(F=>{D+=F.toString(16)}),r[E]=D}else r[E]="'"+C+"'"}else r[E]=g[S];this.uniqueOnly&&o[E]!==r[E]&&(p=!0),o[E]=r[E]}),this.fillDown&&(l=[...r]),!this.uniqueOnly||p){if(this.columnMode==="normal"){f=this.keyMap[f];const[S,E,C,D,F,b,P]=f.split("__");r[0]=new Date(g.__time/1e6).toISOString(),r[1]=C,r[2]=D}i.push(r.join(this.delimiter))}u+=1,u%1e3==0&&await this.yieldToMain()}let c=".csv",m="text/csv";this.delimiter===" "&&(c=".txt",m="text/tab-separated-values"),await this.yieldToMain();const _=new Blob([i.join(`
|
10
|
-
`)],{type:m});await this.yieldToMain();const v=document.createElement("a");v.href=URL.createObjectURL(_),v.setAttribute("download",this.startDateTimeFilename+"_"+this.fileCount+c),v.click(),this.fileCount+=1},yieldToMain:function(){return new Promise(t=>{setTimeout(t,0)})},finished:async function(){if(this.progress=95,this.subscription.unsubscribe(),Te.length!==0)await this.createFile();else if(this.fileCount===0){let t=new Date(this.startDateTime/1e6).toISOString(),e=new Date(this.endDateTime/1e6).toISOString();this.$notify.caution({body:`No data found for the items in the requested time range of ${t} to ${e}`})}this.progress=100,this.processButtonText="Process"}}};function
|
10
|
+
`)],{type:m});await this.yieldToMain();const v=document.createElement("a");v.href=URL.createObjectURL(_),v.setAttribute("download",this.startDateTimeFilename+"_"+this.fileCount+c),v.click(),this.fileCount+=1},yieldToMain:function(){return new Promise(t=>{setTimeout(t,0)})},finished:async function(){if(this.progress=95,this.subscription.unsubscribe(),Te.length!==0)await this.createFile();else if(this.fileCount===0){let t=new Date(this.startDateTime/1e6).toISOString(),e=new Date(this.endDateTime/1e6).toISOString();this.$notify.caution({body:`No data found for the items in the requested time range of ${t} to ${e}`})}this.progress=100,this.processButtonText="Process"}}};function ji(t,e,n,i,s,o){const r=T("top-bar"),l=T("v-text-field"),u=T("v-col"),c=T("v-row"),m=T("v-radio"),_=T("v-radio-group"),v=T("target-packet-item-chooser"),g=T("v-container"),p=T("v-progress-circular"),f=T("v-spacer"),S=T("v-btn"),E=T("v-tooltip"),C=T("v-toolbar"),D=T("v-card-title"),F=T("v-icon"),b=T("v-select"),P=T("v-card-text"),k=T("v-card-actions"),L=T("v-card"),ee=T("v-dialog"),Ui=T("v-data-table"),Mi=T("open-config-dialog"),Ii=T("save-config-dialog");return R(),W("div",null,[d(r,{menus:o.menus,title:s.title},null,8,["menus","title"]),d(L,null,{default:h(()=>[d(g,null,{default:h(()=>[d(c,null,{default:h(()=>[d(u,null,{default:h(()=>[d(l,{modelValue:s.startDate,"onUpdate:modelValue":e[0]||(e[0]=y=>s.startDate=y),label:"Start Date",type:"date",max:s.todaysDate,rules:[s.rules.required],"data-test":"start-date"},null,8,["modelValue","max","rules"])]),_:1}),d(u,null,{default:h(()=>[d(l,{modelValue:s.startTime,"onUpdate:modelValue":e[1]||(e[1]=y=>s.startTime=y),label:"Start Time",type:"time",step:"1",rules:[s.rules.required],"data-test":"start-time"},null,8,["modelValue","rules"])]),_:1}),d(u,null,{default:h(()=>[d(l,{modelValue:s.endDate,"onUpdate:modelValue":e[2]||(e[2]=y=>s.endDate=y),label:"End Date",type:"date",max:s.todaysDate,rules:[s.rules.required],"data-test":"end-date"},null,8,["modelValue","max","rules"])]),_:1}),d(u,null,{default:h(()=>[d(l,{modelValue:s.endTime,"onUpdate:modelValue":e[3]||(e[3]=y=>s.endTime=y),label:"End Time",type:"time",step:"1",rules:[s.rules.required],"data-test":"end-time"},null,8,["modelValue","rules"])]),_:1})]),_:1}),d(c,{"no-gutters":""},{default:h(()=>[d(u,null,{default:h(()=>[d(_,{modelValue:s.cmdOrTlm,"onUpdate:modelValue":e[4]||(e[4]=y=>s.cmdOrTlm=y),inline:"","hide-details":"",class:"mt-0"},{default:h(()=>[d(m,{label:"Command",value:"cmd","data-test":"cmd-radio"}),d(m,{label:"Telemetry",value:"tlm","data-test":"tlm-radio"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),d(c,null,{default:h(()=>[d(u,null,{default:h(()=>[d(v,{onAddItem:e[5]||(e[5]=y=>o.addItem(y)),"button-text":"Add Item",mode:s.cmdOrTlm,hidden:!0,"choose-item":"","allow-all":""},null,8,["mode"])]),_:1})]),_:1})]),_:1}),d(C,{class:"pl-3"},{default:h(()=>[d(p,{"model-value":s.progress},null,8,["model-value"]),N(" Processed: "+q(s.totalPacketsReceived)+" packets, "+q(s.totalItemsReceived)+" items ",1),d(f),d(S,{class:"bg-primary",onClick:o.processItems,disabled:s.items.length<1},{default:h(()=>[N(q(s.processButtonText),1)]),_:1},8,["onClick","disabled"]),d(f),d(E,{location:"top"},{activator:h(({props:y})=>[d(S,K({icon:"mdi-pencil",variant:"text",onClick:e[6]||(e[6]=I=>s.editAll=!0)},y,{disabled:s.items.length<1,"data-test":"editAll"}),null,16,["disabled"])]),default:h(()=>[e[18]||(e[18]=z("span",null," Edit All Items ",-1))]),_:1}),d(E,{location:"top"},{activator:h(({props:y})=>[d(S,K({icon:"mdi-delete",variant:"text",onClick:o.deleteAll},y,{disabled:s.items.length<1,"data-test":"delete-all"}),null,16,["onClick","disabled"])]),default:h(()=>[e[19]||(e[19]=z("span",null,"Delete All Items",-1))]),_:1})]),_:1}),d(L,{width:"100%"},{default:h(()=>[d(D,null,{default:h(()=>[e[20]||(e[20]=N(" Items ")),d(f),d(l,{modelValue:s.search,"onUpdate:modelValue":e[7]||(e[7]=y=>s.search=y),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),d(Ui,{headers:s.headers,items:s.items,search:s.search,"items-per-page":s.itemsPerPage,"onUpdate:itemsPerPage":e[8]||(e[8]=y=>s.itemsPerPage=y),"items-per-page-options":[10,20,50,100,-1],"multi-sort":"",density:"compact"},{"item.edit":h(({item:y})=>[d(E,{location:"top"},{activator:h(({props:I})=>[d(F,K({onClick:Ze(Vi=>y.edit=!0,["stop"])},I,{"data-test":"edit-row"}),{default:h(()=>e[21]||(e[21]=[N(" mdi-pencil ")])),_:2},1040,["onClick"])]),default:h(()=>[e[22]||(e[22]=z("span",null,"Edit Item",-1))]),_:2},1024),d(ee,{modelValue:y.edit,"onUpdate:modelValue":I=>y.edit=I,onKeydown:Ce(I=>y.edit=!1,["esc"]),"max-width":"600"},{default:h(()=>[d(L,null,{default:h(()=>[d(C,{height:"24"},{default:h(()=>[d(f),e[23]||(e[23]=z("span",null," DataExtractor: Edit Item Mode ",-1)),d(f)]),_:1}),d(P,null,{default:h(()=>[d(c,{class:"mt-3 title-font"},{default:h(()=>[d(u,null,{default:h(()=>[N(q(o.getItemLabel(y)),1)]),_:2},1024)]),_:2},1024),d(c,null,{default:h(()=>[d(u,null,{default:h(()=>[d(b,{"hide-details":"",items:s.modes,label:"Mode",variant:"outlined",modelValue:y.mode,"onUpdate:modelValue":I=>y.mode=I},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),d(c,null,{default:h(()=>[d(u,null,{default:h(()=>[d(b,{"hide-details":"",items:s.valueTypes,label:"Value Type",variant:"outlined",modelValue:y.valueType,"onUpdate:modelValue":I=>y.valueType=I},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),d(c,null,{default:h(()=>[d(u,null,{default:h(()=>[d(b,{"hide-details":"",items:s.reducedTypes,label:"Reduced Type",variant:"outlined",modelValue:y.reducedType,"onUpdate:modelValue":I=>y.reducedType=I},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024),d(k,{class:"px-2"},{default:h(()=>[d(f),d(S,{variant:"flat",onClick:I=>y.edit=!1},{default:h(()=>e[24]||(e[24]=[N(" Close ")])),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["modelValue","onUpdate:modelValue","onKeydown"])]),"item.delete":h(({item:y})=>[d(E,{location:"top"},{activator:h(({props:I})=>[d(F,K({onClick:Vi=>o.deleteItem(y)},I,{"data-test":"delete-row"}),{default:h(()=>e[25]||(e[25]=[N(" mdi-delete ")])),_:2},1040,["onClick"])]),default:h(()=>[e[26]||(e[26]=z("span",null," Delete Item ",-1))]),_:2},1024)]),_:1},8,["headers","items","search","items-per-page"])]),_:1})]),_:1}),d(ee,{modelValue:s.editAll,"onUpdate:modelValue":e[14]||(e[14]=y=>s.editAll=y),onKeydown:e[15]||(e[15]=Ce(y=>s.editAll=!s.editAll,["esc"])),"max-width":"600"},{default:h(()=>[d(L,null,{default:h(()=>[d(C,{height:"24"},{default:h(()=>[d(f),e[27]||(e[27]=z("span",null," DataExtractor: Edit All Items",-1)),d(f)]),_:1}),d(P,null,{default:h(()=>[d(c,{class:"mt-3"},{default:h(()=>[d(u,null,{default:h(()=>e[28]||(e[28]=[N(" This will change all items to the following data type! ")])),_:1})]),_:1}),d(c,null,{default:h(()=>[d(u,null,{default:h(()=>[d(b,{"hide-details":"",items:s.modes,label:"Mode",variant:"outlined",modelValue:s.allItemMode,"onUpdate:modelValue":e[9]||(e[9]=y=>s.allItemMode=y)},null,8,["items","modelValue"])]),_:1})]),_:1}),d(c,null,{default:h(()=>[d(u,null,{default:h(()=>[d(b,{"hide-details":"",items:s.valueTypes,label:"Value Type",variant:"outlined",modelValue:s.allItemValueType,"onUpdate:modelValue":e[10]||(e[10]=y=>s.allItemValueType=y)},null,8,["items","modelValue"])]),_:1})]),_:1}),d(c,null,{default:h(()=>[d(u,null,{default:h(()=>[d(b,{"hide-details":"",items:s.reducedTypes,label:"Reduced Type",variant:"outlined",modelValue:s.allItemReducedType,"onUpdate:modelValue":e[11]||(e[11]=y=>s.allItemReducedType=y)},null,8,["items","modelValue"])]),_:1})]),_:1})]),_:1}),d(k,{class:"px-2"},{default:h(()=>[d(f),d(S,{variant:"outlined",onClick:e[12]||(e[12]=y=>s.editAll=!s.editAll)},{default:h(()=>e[29]||(e[29]=[N(" Cancel ")])),_:1}),d(S,{variant:"flat",disabled:!s.allItemValueType,onClick:e[13]||(e[13]=y=>o.editAllItems())},{default:h(()=>e[30]||(e[30]=[N(" Ok ")])),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),s.openConfig?(R(),U(Mi,{key:0,modelValue:s.openConfig,"onUpdate:modelValue":e[16]||(e[16]=y=>s.openConfig=y),configKey:s.configKey,onSuccess:o.openConfiguration},null,8,["modelValue","configKey","onSuccess"])):X("",!0),s.saveConfig?(R(),U(Ii,{key:1,modelValue:s.saveConfig,"onUpdate:modelValue":e[17]||(e[17]=y=>s.saveConfig=y),configKey:s.configKey,onSuccess:o.saveConfiguration},null,8,["modelValue","configKey","onSuccess"])):X("",!0)])}const Li=Vt("default",He(Pi,[["render",ji],["__scopeId","data-v-ad4c3d44"]]))}}});
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-C4QVI4IH-83406e8ce23b52b3fb89.js","./main-59d01ac81c6306714fbc.js","vue","vue-router","single-spa","vuex","vuetify"],function(d,V){"use strict";var l,a,n,s,r,u,o;return{setters:[e=>{l=e.o},e=>{a=e.s,n=e.P},e=>{s=e.resolveComponent,r=e.openBlock,u=e.createBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Date",dateValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.dateValue=this.formatDate(new Date,this.screenTimeZone)},methods:{text(){return this.dateValue},date(){return this.dateValue}}};function c(m,i,v,y,t,b){const h=s("v-text-field");return r(),u(h,{modelValue:t.dateValue,"onUpdate:modelValue":i[0]||(i[0]=p=>t.dateValue=p),label:t.label,style:o(m.computedStyle),type:"date","hide-details":""},null,8,["modelValue","label","style"])}const f=d("default",a(e,[["render",c]]))}}});
|