openc3-cosmos-tool-dataextractor 5.20.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/plugin.txt +1 -1
  3. data/tools/dataextractor/ArrayWidget-By62tXtU-d6845ec502f643cd0d62.js +2 -0
  4. data/tools/dataextractor/BarColumn-Dm3D1Lhp-f0369ef4eca12f640724.js +1 -0
  5. data/tools/dataextractor/BlockWidget-CrT45ode-9d92843b01fe56492ce3.js +2 -0
  6. data/tools/dataextractor/ButtonWidget-CKyBBv6m-692383150f66b24960b7.js +2 -0
  7. data/tools/dataextractor/CanvasWidget-PqkppHC7-07bb703e9c4596b68aac.js +1 -0
  8. data/tools/dataextractor/CanvasdotWidget-BUbJgM2d-6f36957b25f169ab1052.js +1 -0
  9. data/tools/dataextractor/CanvasimageWidget-DPVBY7mi-cb0f31ef7ab254b09998.js +1 -0
  10. data/tools/dataextractor/CanvasimagevalueWidget-GX37zzNc-15f47f132697297a9901.js +1 -0
  11. data/tools/dataextractor/CanvaslabelWidget-P2_Y6Edw-b091e01360466b348770.js +1 -0
  12. data/tools/dataextractor/CanvaslabelvalueWidget-Cuas1i9P-1c9cee705d71b085a8f0.js +1 -0
  13. data/tools/dataextractor/CanvaslineWidget-BYOYgPya-e7ae21b1484fe8846e31.js +1 -0
  14. data/tools/dataextractor/CanvaslinevalueWidget-3cVJMFo7-fbedaef931d92580dd05.js +1 -0
  15. data/tools/dataextractor/CheckbuttonWidget-B3wgSMuB-cd29644d171404fdbbfb.js +1 -0
  16. data/tools/dataextractor/ComboboxWidget-Dzr4Scvf-5fb4b8b08c687bc69e58.js +1 -0
  17. data/tools/dataextractor/DataExtractor-c83fcc2fe07fbcb12e97.js +10 -0
  18. data/tools/dataextractor/DateWidget-BWh76Ibb-e4448eb5b8bed813a6dc.js +1 -0
  19. data/tools/dataextractor/DetailsDialog-EWjtBjle-4959df7550629e2cbb07.js +1 -0
  20. data/tools/dataextractor/DynamicWidget-m9EliUR2-f8e2433988dfe6da3de5.js +1 -0
  21. data/tools/dataextractor/FormatvalueWidget-Rk0_eeIm-47f003ee2ce746467c62.js +1 -0
  22. data/tools/dataextractor/GraphWidget-LqekkNDr-a33b6700fffda5a502f8.js +1 -0
  23. data/tools/dataextractor/HorizontalWidget-BcfJ24Zn-d39077d8732466d83fc0.js +1 -0
  24. data/tools/dataextractor/HorizontalboxWidget-CQy1Hv9E-45cbe66fdaee91096aa5.js +1 -0
  25. data/tools/dataextractor/HorizontallineWidget-BdlNB951-d6a2205172ed8aed7db7.js +1 -0
  26. data/tools/dataextractor/IframeWidget-BBaDrRLo-417449df3e2a304cfb0d.js +1 -0
  27. data/tools/dataextractor/ImageLoader-CDLQopxJ-29103b1b0c576f78771b.js +1 -0
  28. data/tools/dataextractor/ImageviewerWidget-BgO3Pq6I-ac8a5a32f0e70cd2e5a1.js +1 -0
  29. data/tools/dataextractor/LabelWidget-B_C6lKOE-7aa5bb7216abe13fcff5.js +1 -0
  30. data/tools/dataextractor/LabelledWidget-B_UGivhr-a4311c5f8b934ba586d3.js +1 -0
  31. data/tools/dataextractor/LabelprogressbarWidget-BJWCmsYC-40a1e1356a78a16233d7.js +1 -0
  32. data/tools/dataextractor/LabelsparklineWidget-DILCIh3q-10dfc940c64e34c3fcaf.js +1 -0
  33. data/tools/dataextractor/LabelvalueWidget-CCZd1NXE-481b5281aeb008279269.js +1 -0
  34. data/tools/dataextractor/LabelvaluedescWidget-Bsllq8W6-23f88e26ddd53c9e17b7.js +1 -0
  35. data/tools/dataextractor/LabelvaluelimitsbarWidget-BV-cfaD--d84e73eedbe80dbf3019.js +1 -0
  36. data/tools/dataextractor/LabelvaluelimitscolumnWidget-DwA0eRBw-11161768847dd43855f8.js +1 -0
  37. data/tools/dataextractor/LabelvaluerangebarWidget-3GDJz3dj-fbb3fa26a918a7f073e3.js +1 -0
  38. data/tools/dataextractor/Layout-klOVw-YN-1974f92641167d7b8e95.js +1 -0
  39. data/tools/dataextractor/LedWidget-BAt02s0J-1e648734371fac134070.js +1 -0
  40. data/tools/dataextractor/LimitsbarWidget-JJiyzZjb-64aa530491d109c1cd3b.js +1 -0
  41. data/tools/dataextractor/LimitscolorWidget-CYzXKbYd-61530465c235da60d06f.js +1 -0
  42. data/tools/dataextractor/LimitscolumnWidget-Cd76tBo7-8192fb1faefcebe57823.js +1 -0
  43. data/tools/dataextractor/LinegraphWidget-DWRtO6Ej-d922a15778db3c407847.js +1 -0
  44. data/tools/dataextractor/MatrixbycolumnsWidget-cwsyjNV2-15735a2a30dcf1dd8d28.js +1 -0
  45. data/tools/dataextractor/ProgressbarWidget-CYDziFej-3df56853fcd680dafcac.js +1 -0
  46. data/tools/dataextractor/RadiobuttonWidget-U6jcQZoD-434daaf8ae9a0e1f88ed.js +1 -0
  47. data/tools/dataextractor/RadiogroupWidget-HTPJnsB0-3d008b8507fde7bd42e1.js +1 -0
  48. data/tools/dataextractor/RangebarWidget-DW0FJK6y-ffc19171bd5db093deb0.js +1 -0
  49. data/tools/dataextractor/RollupWidget-B2qrx55f-1ebbd4b3e7ba9dee2a48.js +1 -0
  50. data/tools/dataextractor/ScrollwindowWidget-CwIDxgO6-9e218b9b089b09a8d2e4.js +1 -0
  51. data/tools/dataextractor/SignalWidget-Bosa3AbW-5986f5c1a1f6d0641207.js +1 -0
  52. data/tools/dataextractor/SpacerWidget-DYAlt5mt-78646eff352e062d5f7a.js +1 -0
  53. data/tools/dataextractor/SparklineWidget-CDrVXOFV-3add0cda4b1aedf9ba24.js +1 -0
  54. data/tools/dataextractor/TabbookWidget-DDdlzCkv-1bbcc52667948f2ced8f.js +1 -0
  55. data/tools/dataextractor/TextboxWidget-5euFelEq-a2346a29a1c30a3f5e48.js +1 -0
  56. data/tools/dataextractor/TextfieldWidget-BFripYeh-fdea7de50a8fb607e99e.js +1 -0
  57. data/tools/dataextractor/TimeWidget-BBSbsUYJ-309dbc7d277a70f657c9.js +1 -0
  58. data/tools/dataextractor/TitleWidget-p8cjo-Bs-a3c049216296a7da2718.js +1 -0
  59. data/tools/dataextractor/VWidget-Dmqf_jKM-b33df5cdf8ac7206fb15.js +1 -0
  60. data/tools/dataextractor/ValueWidget-CZh7JWwT-501802abd1cf8ad961b2.js +1 -0
  61. data/tools/dataextractor/ValuelimitsbarWidget-DU7ybswC-a0fd4af721f9bcc8f015.js +1 -0
  62. data/tools/dataextractor/ValuelimitscolumnWidget-DMw-h5jM-8d1c94d463c1ca596668.js +1 -0
  63. data/tools/dataextractor/ValuerangebarWidget-DPpofDpA-84b2c9ecc7460ad486a2.js +1 -0
  64. data/tools/dataextractor/VerticalWidget-Ch7VAEmz-9d848c3462a57112128c.js +1 -0
  65. data/tools/dataextractor/VerticalboxWidget-DYx-TFT4-77f85836c826af360fe4.js +1 -0
  66. data/tools/dataextractor/Widget-orNSvnOh-677c5b6b99d215d82fc9.js +1 -0
  67. data/tools/dataextractor/main-7f7c9aca4eba3a2f66c5.js +1420 -0
  68. data/tools/dataextractor/main.js +1 -0
  69. metadata +68 -11
  70. data/tools/dataextractor/index.html +0 -4
  71. data/tools/dataextractor/js/272.js +0 -2
  72. data/tools/dataextractor/js/272.js.map +0 -1
  73. data/tools/dataextractor/js/470.js +0 -2
  74. data/tools/dataextractor/js/470.js.map +0 -1
  75. data/tools/dataextractor/js/728.js +0 -2
  76. data/tools/dataextractor/js/728.js.map +0 -1
  77. data/tools/dataextractor/js/app.js +0 -2
  78. data/tools/dataextractor/js/app.js.map +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f17e68a94b009c2cf3b1c93b96444db366ca32bdf6003ab20b3164bbc88c4836
4
- data.tar.gz: fd74b863c9725d0a2042cd18c3e15e62fcccd3831c8413241c17d879fb9c8ddf
3
+ metadata.gz: 9c2ca801d156a77073c3bfd75988aca2ea197e48c995956bbdbc540f2e6e03cd
4
+ data.tar.gz: b226b46d16433c315cda0aaca13ecfc2f530d32c8beb77b685baf3c348d34872
5
5
  SHA512:
6
- metadata.gz: ad0bd45c023f55d5e0f87ba4c94682f9976e8d0da9eacb033a4700820cb030aff767551d2e1ae1bbcda3ac1398a9a2b9d284289d722df461a375aa525e36827f
7
- data.tar.gz: 70251c2a78b149b96d037f8863835db95d1cbf3d4ea0602abc37322d5dbcb4f62cbed938a9be136cb1886faa70ff8e66aab9c55af3a24fdf10167c45dcf2c4b1
6
+ metadata.gz: dcf4201463bdeda87717a0e90120b4393b9f4b589972b0f10e15a6f7ccbe9d4d72d7686548495012caaeacecdddf25ccef2d9f6a02fbcd202b57387cf106be96
7
+ data.tar.gz: c1b2934bbf1db31744be4501a17b04cd63fea956c069b31aa4f7077dce240e32e9b130389321e6b0b428dd878cb0b9a58710d4173830f1224f9decf3e70a1b9d
data/plugin.txt CHANGED
@@ -1,4 +1,4 @@
1
1
  TOOL dataextractor "Data Extractor"
2
- INLINE_URL js/app.js
2
+ INLINE_URL main.js
3
3
  ICON mdi-archive-arrow-down
4
4
  POSITION 9
@@ -0,0 +1,2 @@
1
+ System.register(["./main-7f7c9aca4eba3a2f66c5.js","vue","./DetailsDialog-EWjtBjle-4959df7550629e2cbb07.js","./VWidget-Dmqf_jKM-b33df5cdf8ac7206fb15.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-677c5b6b99d215d82fc9.js"],function(S,P){"use strict";var h,a,m,c,i,d,p,l,g,f,v,w,y,x,C,V;return{setters:[t=>{h=t.s},t=>{a=t.resolveComponent,m=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},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 u of e)this.formatter&&((r=this.formatter)==null?void 0:r.toLowerCase())!=="nil"?s+=sprintf(this.formatter,u):s+=u,o+=1,o%this.itemsPerRow===0?(o=0,s+=D):s+=k;return s.trim()}else return e}}},B={class:"array-widget-container"};function _(e,r,s,k,D,o){const u=a("v-textarea"),j=a("v-list-item-title"),M=a("v-list-item"),z=a("v-list"),L=a("v-menu"),N=a("details-dialog");return m(),c("div",B,[i(u,{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(L,{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(()=>[(m(!0),c(g,null,f(e.contextMenuOptions,(n,E)=>(m(),v(M,{key:E,onClick:w(n.action,["stop"])},{default:l(()=>[i(j,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 R=S("default",h(t,[["render",_],["__scopeId","data-v-62b9e9e1"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","./main-7f7c9aca4eba3a2f66c5.js"],function(a,n){"use strict";var h,l;return{setters:[s=>{h=s.o},s=>{l=s.W}],execute:function(){const s=a("u",{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){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-7f7c9aca4eba3a2f66c5.js","vue","./DetailsDialog-EWjtBjle-4959df7550629e2cbb07.js","./VWidget-Dmqf_jKM-b33df5cdf8ac7206fb15.js","vue-router","vuex","vuetify","./Widget-orNSvnOh-677c5b6b99d215d82fc9.js"],function(P,z){"use strict";var u,a,h,m,s,p,g,o,w,f,v,y,x,k,C,V;return{setters:[e=>{u=e.s},e=>{a=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,k=e.toDisplayString},e=>{C=e.P},e=>{V=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:C},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[V],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 r="";if(t&&t.raw){let S=" ",D=`
2
+ `,i=0,l=0;const d=this.bytesPerWord*this.wordsPerRow;for(const c of t.raw)this.addrFormat&&i===0&&(r+=sprintf(this.addrFormat,l),l+=d),r+=sprintf(this.formatter,c),i+=1,i%d===0?(i=0,r+=D):i%this.bytesPerWord===0&&(r+=S)}else r=t;return r}}},W={class:"block-widget-container"};function M(t,r,S,D,i,l){const d=a("v-textarea"),c=a("v-list-item-title"),_=a("v-list-item"),j=a("v-list"),B=a("v-menu"),F=a("details-dialog");return h(),m("div",W,[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(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=n=>t.contextMenuShown=n),target:[t.x,t.y]},{default:o(()=>[s(j,null,{default:o(()=>[(h(!0),m(w,null,f(t.contextMenuOptions,(n,b)=>(h(),v(_,{key:b,onClick:y(n.action,["stop"])},{default:o(()=>[s(c,null,{default:o(()=>[x(k(n.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),s(F,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=n=>t.viewDetails=n)},null,8,["target-name","packet-name","item-name","modelValue"])])}const L=P("default",u(e,[["render",M],["__scopeId","data-v-4d4589c2"]]))}}});
@@ -0,0 +1,2 @@
1
+ System.register(["./main-7f7c9aca4eba3a2f66c5.js","vue","./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue-router","vuex","vuetify"],function(exports,module){"use strict";var s,Ok,S$1,Wk,resolveComponent,openBlock,createBlock,withCtx,createVNode,createElementVNode,createTextVNode,toDisplayString,createCommentVNode,withModifiers,createElementBlock,normalizeStyle,o;return{setters:[e=>{s=e.s,Ok=e.O,S$1=e.S,Wk=e.W},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},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?(Ok.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(r=>{r.data.status==="ok"&&(this.canApprove=!0)}),this.updater=setInterval(()=>{this.uuid?Ok.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 Ok.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 Ok.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 Wk},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});Ok.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-klOVw-YN-1974f92641167d7b8e95.js","vue","./main-7f7c9aca4eba3a2f66c5.js","./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue-router","vuex","vuetify"],function(h,f){"use strict";var i,n,s,a,c,l,o,u,m;return{setters:[e=>{i=e.r},e=>{n=e.openBlock,s=e.createElementBlock,a=e.Fragment,c=e.renderList,l=e.createBlock,o=e.resolveDynamicComponent,u=e.mergeProps},e=>{m=e.s},null,null,null,null],execute:function(){const e={mixins:[i],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},p=["width","height"];function d(r,k,y,B,b,g){return n(),s("svg",{id:"canvas",width:g.width,height:g.height},[(n(!0),s(a,null,c(r.widgets,(t,v)=>(n(),l(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,p)}const w=h("default",m(e,[["render",d],["__scopeId","data-v-47bdfc3c"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(s,i){"use strict";var t,n,l,c;return{setters:[e=>{t=e.o},e=>{n=e.openBlock,l=e.createElementBlock},e=>{c=e.s},null,null,null],execute:function(){const e={mixins:[t]},u=["cx","cy","r","fill"];function o(r,m,f,p,v,x){return n(),l("circle",{cx:r.parameters[0],cy:r.parameters[1],r:r.parameters[3],fill:r.parameters[2]},null,8,u)}const a=s("default",c(e,[["render",o]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","./ImageLoader-CDLQopxJ-29103b1b0c576f78771b.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(m,d){"use strict";var s,i,n,a,c,l,h;return{setters:[e=>{s=e.o},e=>{i=e.s},e=>{n=e.openBlock,a=e.createElementBlock,c=e.normalizeStyle,l=e.createCommentVNode},e=>{h=e.s},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:c(r.pointerStyle),onClick:o[0]||(o[0]=(...g)=>r.clickHandler&&r.clickHandler(...g))},null,12,u)):l("",!0)}const f=m("default",h(e,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","./ImageLoader-CDLQopxJ-29103b1b0c576f78771b.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(v,S){"use strict";var m,d,l,n,o,g,h,u,c,p,f;return{setters:[t=>{m=t.o},t=>{d=t.s},t=>{l=t.openBlock,n=t.createElementBlock,o=t.Fragment,g=t.renderList,h=t.withDirectives,u=t.normalizeStyle,c=t.vShow,p=t.createCommentVNode},t=>{f=t.s},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(r=>r.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 r=this.appliedSettings.filter(e=>e[0]==="IMAGE").map(async e=>{let i=e[2];return i.startsWith("http")||(i=await this.getPresignedUrl(i)),{url:i,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}});if(Promise.all(r).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 i=this.parameters[4];i.startsWith("http")?this.defaultImage={...e,url:i}:this.getPresignedUrl(i).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)}}},I=["href","x","y","width","height"],w=["href","x","y","width","height"];function k(r,e,i,y,N,a){return l(),n("g",null,[(l(!0),n(o,null,g(r.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,I)),[[c,s.value==a.selectedValue]])),128)),r.defaultImage?h((l(),n("image",{key:0,href:r.defaultImage.url,x:r.defaultImage.x,y:r.defaultImage.y,width:r.defaultImage.width,height:r.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 $=v("default",f(t,[["render",k]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(i,m){"use strict";var r,l,n,s,o;return{setters:[e=>{r=e.o},e=>{l=e.openBlock,n=e.createElementBlock,s=e.toDisplayString},e=>{o=e.s},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,v,y,c){return l(),n("text",{x:t.parameters[0],y:t.parameters[1],fill:c.fillColor},s(t.parameters[2]),9,a)}const p=i("default",o(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","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],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-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(o,p){"use strict";var s,l,n,a,c;return{setters:[e=>{s=e.o},e=>{l=e.openBlock,n=e.createElementBlock,a=e.normalizeStyle},e=>{c=e.s},null,null,null],execute:function(){const e={mixins:[s],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}}},i=["x1","y1","x2","y2"];function u(t,r,k,x,f,m){return l(),n("line",{x1:t.parameters[0],y1:t.parameters[1],x2:t.parameters[2],y2:t.parameters[3],style:a(m.calcStyle)},null,12,i)}const y=o("default",c(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","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],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 h(e,a,d,v,y,m){return r(),l("line",{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6],style:i(m.calcStyle)},null,12,c)}const p=u("default",n(t,[["render",h]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(c,h){"use strict";var l,n,o,a,r,s;return{setters:[e=>{l=e.o},e=>{n=e.resolveComponent,o=e.openBlock,a=e.createBlock,r=e.normalizeStyle},e=>{s=e.s},null,null,null],execute:function(){const e={mixins:[l],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,t,b){const m=n("v-checkbox");return o(),a(m,{"hide-details":"",density:"compact",label:t.label,modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=v=>t.value=v),style:r(d.computedStyle)},null,8,["label","modelValue","style"])}const p=c("default",s(e,[["render",i]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","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],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,S){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]]))}}});
@@ -0,0 +1,10 @@
1
+ System.register(["./main-7f7c9aca4eba3a2f66c5.js","vue","vue-router","vuex","vuetify"],function(Vt,Li){"use strict";var qe,He,ze,We,Ke,$e,Ge,T,R,U,Je,d,h,z,B,W,Z,te,K,N,Se,Ee,X,Ze,Ce;return{setters:[O=>{qe=O.s,He=O._,ze=O.Z,We=O.H,Ke=O.$,$e=O.G,Ge=O.P},O=>{T=O.resolveComponent,R=O.openBlock,U=O.createBlock,Je=O.Teleport,d=O.createVNode,h=O.withCtx,z=O.createElementVNode,B=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],execute:function(){var O=document.createElement("style");O.textContent=`.title-font[data-v-4f1d190a]{font-size:1.125rem}.v-progress-linear__determinate[data-v-4f1d190a]{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"},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 Xn(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 Yn=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 Qn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function ei(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())&&!Yn(e))r(Zn(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 Xn(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?Qn(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]||(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 :
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 vi(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:vi,validators:_e},H=be.validators;class J{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=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
8
+ continue to stream in real-time until
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 Ui(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"),Mi=T("v-data-table"),Ii=T("open-config-dialog"),Vi=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: "+B(s.totalPacketsReceived)+" packets, "+B(s.totalItemsReceived)+" items ",1),d(f),d(S,{class:"bg-primary",onClick:o.processItems,disabled:s.items.length<1},{default:h(()=>[N(B(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(Mi,{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(Fi=>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(B(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:Fi=>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(Ii,{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(Vi,{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 Bi=Vt("default",He(ji,[["render",Ui],["__scopeId","data-v-4f1d190a"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","./main-7f7c9aca4eba3a2f66c5.js","vue","vue-router","vuex","vuetify"],function(d,v){"use strict";var l,a,n,r,s,o,u;return{setters:[e=>{l=e.o},e=>{a=e.s,n=e.P},e=>{r=e.resolveComponent,s=e.openBlock,o=e.createBlock,u=e.normalizeStyle},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,f,y,t,b){const h=r("v-text-field");return s(),o(h,{modelValue:t.dateValue,"onUpdate:modelValue":i[0]||(i[0]=p=>t.dateValue=p),label:t.label,style:u(m.computedStyle),type:"date","hide-details":""},null,8,["modelValue","label","style"])}const V=d("default",a(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-7f7c9aca4eba3a2f66c5.js","vue"],function(C,P){"use strict";var V,L,m,r,o,e,t,k,s,d,h,g,v,w;return{setters:[c=>{V=c.s,L=c.W},c=>{m=c.resolveComponent,r=c.openBlock,o=c.createBlock,e=c.withCtx,t=c.createVNode,k=c.createElementVNode,s=c.createTextVNode,d=c.toDisplayString,h=c.createCommentVNode,g=c.createElementBlock,v=c.Fragment,w=c.renderList}],execute:function(){const c={props:{type:{default:"tlm",validator:function(n){return["cmd","tlm"].indexOf(n)!==-1}},targetName:String,packetName:String,itemName:String,modelValue:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},created(){this.api=new L},beforeUnmount(){clearInterval(this.updater),this.updater=null},watch:{modelValue:function(n,a){n?(this.requestDetails(),this.type==="tlm"&&(this.updater=setInterval(()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then(_=>{for(let p of _){let i=null;if(p[0].json_class==="String"&&p[0].raw!==void 0?i=p[0].raw:this.details.data_type==="BLOCK"&&(i=p[0]),i!==null){i=i.slice(0,parseInt(this.details.bit_size)/8);let y=!1;i.length>64&&(y=!0),p[0]=Array.from(i.slice(0,64),function(N){return N===" "?"20":("0"+(N&255).toString(16)).slice(-2)}).join(" ").toUpperCase(),y&&(p[0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${_[0][0]} (0x${_[0][0].toString(16).toUpperCase()})`:this.rawValue=_[0][0],this.convertedValue=_[1][0],this.formattedValue=_[2][0],this.unitsValue=_[3][0]})},1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{hasLimits(n){let a=!1;return n.limits.DEFAULT&&(a=!0),n.states&&Object.getOwnPropertyNames(n.states).forEach(_=>{n.states[_].color&&(a=!0)}),a},async requestDetails(){this.type==="tlm"?await this.api.get_item(this.targetName,this.packetName,this.itemName).then(n=>{this.details=n,this.hasLimits(n)||(this.details.limits=null)}):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then(n=>{this.details=n})},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(n){return n.hasOwnProperty("green_low")?"RL/"+n.red_low+" YL/"+n.yellow_low+" YH/"+n.yellow_high+" RH/"+n.red_high+" GL/"+n.green_low+" GH/"+n.green_high:n.hasOwnProperty("red_low")?"RL/"+n.red_low+" YL/"+n.yellow_low+" YH/"+n.yellow_high+" RH/"+n.red_high:n}}},S={key:5},$={key:7},E={key:3},x={key:9};function B(n,a,_,p,i,y){const N=m("v-spacer"),D=m("v-toolbar"),T=m("v-card-title"),U=m("v-card-subtitle"),l=m("v-col"),u=m("v-row"),I=m("v-switch"),O=m("v-container"),R=m("v-card-text"),z=m("v-card"),F=m("v-dialog");return r(),o(F,{modelValue:y.show,"onUpdate:modelValue":a[1]||(a[1]=b=>y.show=b),width:"700"},{default:e(()=>[t(z,null,{default:e(()=>[t(D,{height:24},{default:e(()=>[t(N),a[2]||(a[2]=k("span",null," Details ",-1)),t(N)]),_:1}),t(T,null,{default:e(()=>[s(d(_.targetName)+" "+d(_.packetName)+" "+d(_.itemName),1)]),_:1}),t(U,null,{default:e(()=>[s(d(i.details.description),1)]),_:1}),t(R,null,{default:e(()=>[t(O,{fluid:""},{default:e(()=>[_.type==="tlm"?(r(),o(u,{key:0,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[3]||(a[3]=[s("Item Values")])),_:1}),t(l)]),_:1})):h("",!0),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[4]||(a[4]=[s("Raw Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.rawValue),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[5]||(a[5]=[s("Converted Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.convertedValue),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[6]||(a[6]=[s("Formatted Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.formattedValue),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>a[7]||(a[7]=[s("With Units Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.unitsValue),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[8]||(a[8]=[s("Bit Offset")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.bit_offset),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[9]||(a[9]=[s("Bit Size")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.bit_size),1)]),_:1})]),_:1}),i.details.array_size?(r(),o(u,{key:1,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[10]||(a[10]=[s("Array Size")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.array_size),1)]),_:1})]),_:1})):h("",!0),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[11]||(a[11]=[s("Data Type")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.data_type),1)]),_:1})]),_:1}),_.type==="cmd"?(r(),o(u,{key:2,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[12]||(a[12]=[s("Minimum")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.minimum),1)]),_:1})]),_:1})):h("",!0),_.type==="cmd"?(r(),o(u,{key:3,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[13]||(a[13]=[s("Maximum")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.maximum),1)]),_:1})]),_:1})):h("",!0),_.type==="cmd"?(r(),o(u,{key:4,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[14]||(a[14]=[s("Default")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.default),1)]),_:1})]),_:1})):h("",!0),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[15]||(a[15]=[s("Format String")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.format_string),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[16]||(a[16]=[s("Read Conversion")])),_:1}),i.details.read_conversion?(r(),o(l,{key:0},{default:e(()=>[s(" Class: "+d(i.details.read_conversion.class)+" ",1),a[17]||(a[17]=k("br",null,null,-1)),s(" Params: "+d(i.details.read_conversion.params),1)]),_:1})):(r(),o(l,{key:1}))]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[18]||(a[18]=[s("Write Conversion")])),_:1}),i.details.write_conversion?(r(),o(l,{key:0},{default:e(()=>[s(" Class: "+d(i.details.write_conversion.class)+" ",1),a[19]||(a[19]=k("br",null,null,-1)),s(" Params: "+d(i.details.write_conversion.params),1)]),_:1})):(r(),o(l,{key:1}))]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[20]||(a[20]=[s("Id Value")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.id_value),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[21]||(a[21]=[s("Units Full")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.units_full),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[22]||(a[22]=[s("Units Abbr")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.units),1)]),_:1})]),_:1}),t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[23]||(a[23]=[s("Endianness")])),_:1}),t(l,null,{default:e(()=>[s(d(i.details.endianness),1)]),_:1})]),_:1}),i.details.states?(r(),g("div",S,[t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[24]||(a[24]=[s("States")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.states,(b,f)=>(r(),o(u,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024),t(l,null,{default:e(()=>[s(d(b.value),1)]),_:2},1024)]),_:2},1024))),128))])):(r(),o(u,{key:6,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[25]||(a[25]=[s("States")])),_:1}),t(l,null,{default:e(()=>a[26]||(a[26]=[s("None")])),_:1})]),_:1})),i.details.limits?(r(),g("div",$,[t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[27]||(a[27]=[s("Limits")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.limits,(b,f)=>(r(),o(u,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),f==="enabled"?(r(),o(l,{key:0,cols:"4",class:"label"},{default:e(()=>a[28]||(a[28]=[s("Enabled")])),_:1})):h("",!0),f==="enabled"?(r(),o(I,{key:1,modelValue:i.details.limits.enabled,"onUpdate:modelValue":[a[0]||(a[0]=A=>i.details.limits.enabled=A),y.changeLimitsEnabled],density:"compact",color:"primary",class:"compact-switch","hide-details":""},null,8,["modelValue","onUpdate:modelValue"])):h("",!0),f!=="enabled"?(r(),o(l,{key:2,cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024)):h("",!0),f!=="enabled"?(r(),g("div",E,d(y.formatLimit(b)),1)):h("",!0),t(l)]),_:2},1024))),128))])):(r(),o(u,{key:8,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[29]||(a[29]=[s("Limits")])),_:1}),t(l,null,{default:e(()=>a[30]||(a[30]=[s("None")])),_:1})]),_:1})),i.details.meta?(r(),g("div",x,[t(u,{"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[31]||(a[31]=[s("Meta")])),_:1}),t(l)]),_:1}),(r(!0),g(v,null,w(i.details.meta,(b,f)=>(r(),o(u,{"no-gutters":"",key:f},{default:e(()=>[t(l,{cols:"1"}),t(l,{cols:"4",class:"label"},{default:e(()=>[s(d(f),1)]),_:2},1024),t(l,null,{default:e(()=>[s(d(b.join(", ")),1)]),_:2},1024)]),_:2},1024))),128))])):(r(),o(u,{key:10,"no-gutters":""},{default:e(()=>[t(l,{cols:"5",class:"label"},{default:e(()=>a[32]||(a[32]=[s("Meta")])),_:1}),t(l,null,{default:e(()=>a[33]||(a[33]=[s("None")])),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const j=C("P",V(c,[["render",B],["__scopeId","data-v-785491ee"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(a,p){"use strict";var t,n,r,o,i,s;return{setters:[e=>{t=e.openBlock,n=e.createBlock,r=e.resolveDynamicComponent,o=e.normalizeProps,i=e.guardReactiveProps},e=>{s=e.s},null,null,null],execute:function(){const e={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch{throw new Error(`Unknown widget: ${this.name}`)}}};function c(u,d,w,y,l,g){return t(),n(r(l.widgetType),o(i({...u.$props,...u.$attrs})),null,16)}const m=a("default",s(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","./ValueWidget-CZh7JWwT-501802abd1cf8ad961b2.js","vue","./main-7f7c9aca4eba3a2f66c5.js","./DetailsDialog-EWjtBjle-4959df7550629e2cbb07.js","./VWidget-Dmqf_jKM-b33df5cdf8ac7206fb15.js","vue-router","vuex","vuetify"],function(u,f){"use strict";var r,s,n,a,l,i,o,c,m;return{setters:[e=>{r=e.o},e=>{s=e.default},e=>{n=e.resolveComponent,a=e.openBlock,l=e.createElementBlock,i=e.normalizeStyle,o=e.createVNode,c=e.mergeProps},e=>{m=e.s},null,null,null,null,null],execute:function(){const e={mixins:[r],components:{ValueWidget:s},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}};function p(t,h,j,y,W,g){const d=n("value-widget");return a(),l("div",{ref:"container",class:"d-flex flex-row",style:i(t.computedStyle)},[o(d,c(t.$attrs,{parameters:g.getParameters,settings:t.appliedSettings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"format-string":t.parameters[3]}),null,16,["parameters","settings","screen-values","screen-time-zone","format-string"])],4)}const v=u("default",m(e,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-7f7c9aca4eba3a2f66c5.js","vue","./Widget-orNSvnOh-677c5b6b99d215d82fc9.js"],function(j,Se){"use strict";var L,B,J,M,Q,Z,R,P,ee,H,te,m,w,Y,ie,a,l,I,ae,x,T,u,N,S,_,E,se,le,q,oe,re,ne;return{setters:[c=>{L=c.s,B=c.P,J=c.D,M=c.b,Q=c.B,Z=c.c,R=c.d,P=c.l,ee=c.W,H=c.y,te=c.e},c=>{m=c.resolveComponent,w=c.openBlock,Y=c.createElementBlock,ie=c.withModifiers,a=c.createVNode,l=c.withCtx,I=c.withDirectives,ae=c.normalizeClass,x=c.createElementVNode,T=c.mergeProps,u=c.createTextVNode,N=c.vShow,S=c.toDisplayString,_=c.createBlock,E=c.createCommentVNode,se=c.normalizeProps,le=c.guardReactiveProps,q=c.withKeys,oe=c.Fragment,re=c.renderList},c=>{ne=c.o}],execute:function(){const c={props:{modelValue:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number},graphMaxY:{type:Number},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number},endDateTime:{type:Number},timeZone:{type:String,required:!0}},mixins:[B],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{title:"Y Value",value:"yValue"},{title:"Color",value:"color"},{title:"Actions",value:"actions",sortable:!1}],itemHeaders:[{title:"Target Name",value:"targetName"},{title:"Packet Name",value:"packetName"},{title:"Item Name",value:"itemName"},{title:"Actions",value:"actions",sortable:!1}],rules:{date:t=>{if(!t)return!0;try{return Z(R(t,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch{return"Invalid date (YYYY-MM-DD)"}},time:t=>{if(!t)return!0;try{return Z(R(t,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch{return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},editItems:function(){if(!this.items)return[];let t=0;return this.items.map(e=>(t+=1,{...e,itemId:t}))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let t=P(this.startDateTime/1e6);this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}else{let t=new Date-36e5;this.startDate=this.formatDate(t,this.timeZone),this.startTime=this.formatTimeHMS(t,this.timeZone)}if(this.endDateTime){let t=P(this.endDateTime/1e6);this.endDate=this.formatDate(t,this.timeZone),this.endTime=this.formatTimeHMS(t,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(t){let e=this.graph.lines.indexOf(t);this.graph.lines.splice(e,1)}}},de={class:"edit-box"},he={class:"edit-box"},me={class:"edit-box"},ue={class:"edit-box"};function ce(t,e,i,n,s,o){const d=m("v-spacer"),r=m("v-toolbar"),v=m("v-tab"),p=m("v-tabs"),y=m("v-text-field"),D=m("v-card-text"),b=m("v-col"),k=m("v-select"),f=m("v-row"),G=m("v-tabs-window-item"),z=m("v-btn"),A=m("v-list-item"),V=m("v-icon"),C=m("v-tooltip"),$=m("v-list"),U=m("v-data-table"),K=m("v-tabs-window"),F=m("v-card-actions"),h=m("v-card"),W=m("v-dialog");return w(),_(W,{modelValue:o.show,"onUpdate:modelValue":e[12]||(e[12]=g=>o.show=g),onKeydown:e[13]||(e[13]=q(g=>t.$emit("cancel"),["esc"])),"max-width":"700"},{default:l(()=>[a(r,{height:"24"},{default:l(()=>[a(d),e[14]||(e[14]=x("span",null," Edit Graph ",-1)),a(d)]),_:1}),a(h,{class:"pa-3"},{default:l(()=>[a(p,{modelValue:t.tab,"onUpdate:modelValue":e[0]||(e[0]=g=>t.tab=g),class:"ml-3"},{default:l(()=>[a(v,{value:"0"},{default:l(()=>e[15]||(e[15]=[u(" Settings ")])),_:1}),a(v,{value:"1"},{default:l(()=>e[16]||(e[16]=[u(" Scale / Lines ")])),_:1}),a(v,{value:"2"},{default:l(()=>e[17]||(e[17]=[u(" Items ")])),_:1})]),_:1},8,["modelValue"]),a(K,{modelValue:t.tab,"onUpdate:modelValue":e[10]||(e[10]=g=>t.tab=g)},{default:l(()=>[a(G,{value:"0",eager:""},{default:l(()=>[x("div",de,[a(f,null,{default:l(()=>[a(b,null,{default:l(()=>[a(D,{class:"pa-0"},{default:l(()=>[a(y,{class:"pb-2",label:"Title",modelValue:t.graph.title,"onUpdate:modelValue":e[1]||(e[1]=g=>t.graph.title=g),"hide-details":""},null,8,["modelValue"])]),_:1})]),_:1}),a(b,null,{default:l(()=>[a(k,{label:"Legend Position","hide-details":"",items:t.legendPositions,modelValue:t.graph.legendPosition,"onUpdate:modelValue":e[2]||(e[2]=g=>t.graph.legendPosition=g),style:{"max-width":"280px"}},null,8,["items","modelValue"])]),_:1})]),_:1})]),x("div",he,[a(D,{class:"pa-0"},{default:l(()=>e[18]||(e[18]=[u(" Select a start date/time for the graph. Leave blank for start now. ")])),_:1}),a(f,null,{default:l(()=>[a(b,null,{default:l(()=>[a(y,{label:"Start Date",name:`date${Date.now()}`,rules:[t.rules.date],modelValue:t.startDate,"onUpdate:modelValue":e[3]||(e[3]=g=>t.startDate=g),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),a(b,null,{default:l(()=>[a(y,{label:"Start Time",name:`time${Date.now()}`,rules:[t.rules.time],modelValue:t.startTime,"onUpdate:modelValue":e[4]||(e[4]=g=>t.startTime=g),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1}),a(D,{class:"pa-0"},{default:l(()=>e[19]||(e[19]=[u(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")])),_:1}),a(f,null,{default:l(()=>[a(b,null,{default:l(()=>[a(y,{label:"End Date",name:`date${Date.now()}`,rules:[t.rules.date],modelValue:t.endDate,"onUpdate:modelValue":e[5]||(e[5]=g=>t.endDate=g),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),a(b,null,{default:l(()=>[a(y,{label:"End Time",name:`time${Date.now()}`,rules:[t.rules.time],modelValue:t.endTime,"onUpdate:modelValue":e[6]||(e[6]=g=>t.endTime=g),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1})])]),_:1}),a(G,{value:"1",eager:""},{default:l(()=>[x("div",me,[a(D,{class:"pa-0"},{default:l(()=>e[20]||(e[20]=[u(" Set a min or max Y value to override automatic scaling ")])),_:1}),a(f,{dense:""},{default:l(()=>[a(b,{class:"px-2"},{default:l(()=>[a(y,{"hide-details":"",label:"Min Y Axis (Optional)",modelValue:t.graph.graphMinY,"onUpdate:modelValue":e[7]||(e[7]=g=>t.graph.graphMinY=g),type:"number"},null,8,["modelValue"])]),_:1}),a(b,{class:"px-2"},{default:l(()=>[a(y,{"hide-details":"",label:"Max Y Axis (Optional)",modelValue:t.graph.graphMaxY,"onUpdate:modelValue":e[8]||(e[8]=g=>t.graph.graphMaxY=g),type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),x("div",ue,[a($,{density:"compact",class:"horizontal-lines"},{default:l(()=>[a(A,null,{default:l(()=>[e[22]||(e[22]=x("span",{style:{"padding-top":"5px"}}," Add horizontal lines to the graph ",-1)),a(d),a(z,{onClick:e[9]||(e[9]=g=>o.addLine())},{default:l(()=>e[21]||(e[21]=[u(" New Line ")])),_:1})]),_:1}),(w(!0),Y(oe,null,re(t.graph.lines,(g,X)=>(w(),_(A,{key:X,value:g,color:"primary"},{default:l(()=>[a(f,null,{default:l(()=>[a(b,null,{default:l(()=>[a(y,{label:"Y Value",modelValue:g.yValue,"onUpdate:modelValue":O=>g.yValue=O},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),a(b,null,{default:l(()=>[a(k,{label:"Color","hide-details":"",items:i.colors,modelValue:g.color,"onUpdate:modelValue":O=>g.color=O},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024),a(b,null,{default:l(()=>[a(C,{text:"Remove",location:"top"},{activator:l(({props:O})=>[a(V,T({ref_for:!0},O,{style:{padding:"30px"},onClick:Ye=>o.removeLine(g)}),{default:l(()=>e[23]||(e[23]=[u("mdi-delete")])),_:2},1040,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})])]),_:1}),a(G,{value:"2",eager:""},{default:l(()=>[a(U,{"item-key":"itemId",class:"elevation-1 my-2","data-test":"edit-graph-items",headers:t.itemHeaders,items:o.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},{"item.actions":l(({item:g})=>[a(C,{text:"Remove",location:"top"},{activator:l(({props:X})=>[a(V,T(X,{onClick:O=>t.$emit("remove",g)}),{default:l(()=>e[24]||(e[24]=[u(" mdi-delete ")])),_:2},1040,["onClick"])]),_:2},1024)]),"no-data":l(()=>e[25]||(e[25]=[x("span",null," Currently no items on this graph ",-1)])),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"]),a(F,{class:"px-2"},{default:l(()=>[a(d),a(z,{variant:"outlined",onClick:e[11]||(e[11]=g=>t.$emit("cancel"))},{default:l(()=>e[26]||(e[26]=[u(" Cancel ")])),_:1}),a(z,{variant:"flat",onClick:o.closeOk},{default:l(()=>e[27]||(e[27]=[u(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const pe=L(c,[["render",ce]]),ge={props:{modelValue:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=new ee().get_item(this.item.targetName,this.item.packetName,this.item.itemName).then(t=>{for(const[e,i]of Object.entries(t.limits))Object.keys(i).includes("red_low")&&this.$set(this.limits,e,Object.values(i));this.limitsName=Object.keys(this.limits).find(e=>this.limits[e]+""==this.editItem.limits+"")})}},fe={key:0},ve={class:"pa-3"};function ye(t,e,i,n,s,o){const d=m("v-card-title"),r=m("v-select"),v=m("v-card-text"),p=m("v-spacer"),y=m("v-btn"),D=m("v-card-actions"),b=m("v-card"),k=m("v-dialog");return w(),_(k,{modelValue:o.show,"onUpdate:modelValue":e[9]||(e[9]=f=>o.show=f),width:"400",onKeydown:e[10]||(e[10]=q(f=>t.success(),["enter"]))},{default:l(()=>[a(b,null,{default:l(()=>[a(d,{class:"mb-2"},{default:l(()=>e[11]||(e[11]=[u("Edit Item")])),_:1}),a(v,null,{default:l(()=>[a(r,{variant:"outlined","hide-details":"",label:"Value Type",items:t.valueTypes,modelValue:t.editItem.valueType,"onUpdate:modelValue":e[0]||(e[0]=f=>t.editItem.valueType=f),class:"mb-2"},null,8,["items","modelValue"]),a(r,{variant:"outlined","hide-details":"",label:"Reduction",items:t.reduction,modelValue:t.editItem.reduced,"onUpdate:modelValue":e[1]||(e[1]=f=>t.editItem.reduced=f),class:"mb-2"},null,8,["items","modelValue"]),a(r,{variant:"outlined","hide-details":"",label:"Reduced Type",items:t.reducedTypes,disabled:t.currentReduced==="DECOM",modelValue:t.editItem.reducedType,"onUpdate:modelValue":e[2]||(e[2]=f=>t.editItem.reducedType=f),class:"mb-2"},null,8,["items","disabled","modelValue"]),a(r,{variant:"outlined","hide-details":"",label:"Color",items:i.colors,modelValue:t.editItem.color,"onUpdate:modelValue":[e[3]||(e[3]=f=>t.editItem.color=f),e[4]||(e[4]=f=>t.$emit("changeColor",f))],class:"mb-2"},null,8,["items","modelValue"]),o.limitsNames.length>1?(w(),Y("div",fe,[a(r,{variant:"outlined","hide-details":"",label:"Display Limits",items:o.limitsNames,modelValue:t.limitsName,"onUpdate:modelValue":[e[5]||(e[5]=f=>t.limitsName=f),e[6]||(e[6]=f=>t.$emit("changeLimits",t.limits[t.limitsName]))]},null,8,["items","modelValue"]),x("div",ve,S(t.limitsName)+": "+S(t.limits[t.limitsName]),1)])):E("",!0)]),_:1}),a(D,{class:"px-2"},{default:l(()=>[a(p),a(y,{variant:"outlined",onClick:e[7]||(e[7]=f=>t.$emit("cancel"))},{default:l(()=>e[12]||(e[12]=[u(" Cancel ")])),_:1}),a(y,{variant:"flat",onClick:e[8]||(e[8]=f=>t.$emit("close",t.editItem))},{default:l(()=>e[13]||(e[13]=[u(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const we=L(ge,[["render",ye]]),xe={components:{GraphEditDialog:pe,GraphEditItemDialog:we},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideToolbar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number},timeZone:{type:String,default:"local"}},mixins:[B],data(){return{lines:[],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",selectedItem:null,hideToolbarData:this.hideToolbar,showOverview:!this.hideOverview,hideOverviewData:this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:null,graphMaxY:null,graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new J,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[t,e]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(e)]=t+1,e.color===void 0&&(e.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:t,overviewSeries:e}=this.items.reduce((n,s)=>{const o={spanGaps:!0};return n.chartSeries.push({...o,item:s,label:this.formatLabel(s),stroke:(d,r)=>this.items[r-1].color,width:2,value:(d,r)=>typeof r=="string"||isNaN(r)?"NaN":r==null?"--":r.toFixed(3)}),n.overviewSeries.push({...o}),n},{chartSeries:[],overviewSeries:[]});let i={};if(this.sparkline)this.hideToolbarData=!0,this.hideOverviewData=!0,this.showOverview=!1,i={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new M(i,this.data,document.getElementById(`chart${this.id}`));else{let n=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&this.timeZone!=="local"&&(n=this.timeZone),i={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:o=>M.tzDate(new Date(o*1e3),n),series:[{label:"Time",value:(o,d)=>d==null?"--":this.formatSeconds(d,this.timeZone)},...t],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(o,d,r)=>v=>{this.state==="pause"&&o.select.width===0&&this.$emit("start"),r(v)}}},hooks:{setScale:[(o,d)=>{if(d==="x"&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let r=Math.round(this.overview.valToPos(o.scales.x.min,"x")),v=Math.round(this.overview.valToPos(o.scales.x.max,"x"));this.overview.setSelect({left:r,width:v-r}),this.zoomChart=!1}}],setSelect:[o=>{this.state==="start"&&o.select.width>0&&this.$emit("pause")}],ready:[o=>{o.root.querySelector(".u-over").addEventListener("contextmenu",r=>{r.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=r.clientX,this.editGraphMenuY=r.clientY,this.editGraphMenu=!0});let d=o.root.querySelector(".u-legend");d.addEventListener("contextmenu",r=>{r.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=r.clientX,this.itemMenuY=r.clientY;let v=r.target.closest(".u-series"),p=Array.prototype.slice.call(d.childNodes[0].childNodes).indexOf(v),y=o.series[p];y.item?(this.selectedItem=y.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=r.clientX,this.legendMenuY=r.clientY,this.legendMenu=!0)}),d.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new M(i,this.data,document.getElementById(`chart${this.id}`));const s={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:o=>M.tzDate(new Date(o*1e3),n),series:[...e],cursor:{y:!1,drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[o=>{if(!this.zoomChart){this.state==="start"&&o.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let d=o.posToVal(o.select.left,"x"),r=o.posToVal(o.select.left+o.select.width,"x");this.graph.setScale("x",{min:d,max:r}),this.zoomOverview=!1}}]}};this.overview=new M(s,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.resize)}this.state!=="stop"&&this.startGraph()},beforeUnmount:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},watch:{state:function(t,e){switch(t){case"start":e==="stop"&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(t,e){this.dataChanged=!0},graphMinY:function(t,e){let i=parseFloat(t);isNaN(i)||(this.graphMinY=i),this.setGraphRange()},graphMaxY:function(t,e){let i=parseFloat(t);isNaN(i)||(this.graphMaxY=i),this.setGraphRange()},graphStartDateTime:function(t,e){t&&typeof t=="string"?(this.graphStartDateTime=this.parseDateTime(this.graphStartDateTime,this.timeZone)*1e6,this.graphStartDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(t,e){t&&typeof t=="string"?(this.graphEndDateTime=this.parseDateTime(this.graphEndDateTime,this.timeZone)*1e6,this.graphEndDateTime!==e&&(this.needToUpdate=!0)):t===null&&e&&(this.graphEndDateTime=null,this.needToUpdate=!0)}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},updateGraphData:function(){if(this.state==="pause"||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let t=this.data[0][this.data[0].length-1],e=this.data[0][this.data[0].length-this.pointsGraphed],i=this.data[0][0];i<t-this.secondsGraphed&&(i=t-this.secondsGraphed),e>i&&(i=e),this.graph.setScale("x",{min:i,max:t}),this.dataChanged=!1},formatLabel(t){if(t.valueType==="CONVERTED"&&t.reduced==="DECOM")return t.itemName;{let e="";return t.valueType!=="CONVERTED"&&(e+=t.valueType),t.reduced!=="DECOM"&&(e!==""&&(e+=" "),e+=`${t.reduced.split("_")[1]} ${t.reducedType}`),`${t.itemName} (${e})`}},moveLegend:function(t){switch(t){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=t,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(t){this.editGraph=!1,this.title=t.title,this.legendPosition=t.legendPosition,this.graphMinY=t.graphMinY,this.graphMaxY=t.graphMaxY,this.lines=[...t.lines],this.graphStartDateTime=t.startDateTime,this.graphEndDateTime=t.endDateTime,this.$nextTick(()=>{if(this.needToUpdate){if(this.subscription==null)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout(()=>{this.addItems(e)},0)}this.needToUpdate=!1}}),this.moveLegend(this.legendPosition),this.$emit("edit")},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let t=.1;(this.graphMinY||this.graphMinY===0||this.graphMaxY||this.graphMaxY===0)&&(t=0),this.graph.scales.y.range=(e,i,n)=>{let s=i;(this.graphMinY||this.graphMinY===0)&&(s=this.graphMinY);let o=n;return(this.graphMaxY||this.graphMaxY===0)&&(o=this.graphMaxY),M.rangeNum(s,o,t,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:t=>this.received(t),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(t=>{this.subscription=t})},getSize:function(t){let e=0;const i=document.getElementById("openc3-nav-drawer");i&&(e=i.classList.contains("v-navigation-drawer--active")?i.clientWidth:0);let n=0;(this.legendPosition==="right"||this.legendPosition==="left")&&(n=document.getElementsByClassName("u-legend")[0].clientWidth);const s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-e-n,o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),d=document.getElementsByClassName("v-expansion-panel")[0];let r=100;t==="overview"?this.fullHeight&&!this.hideOverviewData?this.showOverview=!0:this.showOverview=!1:(r=o-d.clientHeight-r-250,this.fullHeight||(r=r/2+10));let v=s-68;return this.fullWidth||(v=v/2-10),{width:this.width||v,height:this.height||r}},getScales:function(){return{scales:{x:{range(t,e,i){return e==null?[1566453600,1566497660]:[e,i]}},y:{range(t,e,i){return e==null?[-100,100]:M.rangeNum(e,i,.1,!0)}}}}},getAxes:function(t){let e="rgba(255, 255, 255, .1)",i="white";return{axes:[{stroke:i,grid:{show:!0,stroke:e,width:2}},{size:80,stroke:i,grid:{show:t!=="overview",stroke:e,width:2},values(n,s){return(s.some(o=>o>=1e7)||s.every(o=>o<.01))&&(s=s.map(o=>o.toExponential(3))),s}}]}},closeEditItem:function(t){this.editItem=!1,(this.graphEndDateTime!==null&&this.selectedItem!==t||this.selectedItem.valueType!==t.valueType||this.selectedItem.reduced!==t.reduced||this.selectedItem.reducedType!==t.reducedType)&&this.changeItem(t)},changeColor:function(t){let e=this.subscriptionKey(this.selectedItem),i=this.indexes[e];this.items[i-1].color=t,this.selectedItem.color=t,this.graph.root.querySelectorAll(".u-marker")[i].style.borderColor=t},changeLimits:function(t){let e=this.subscriptionKey(this.selectedItem),i=this.indexes[e];this.items[i-1].limits=t,this.selectedItem.limits=t,this.limitsValues=t},linesPlugin:function(){return{hooks:{draw:t=>{const{ctx:e,bbox:i}=t,n=t.valToPos(t.scales.y.min,"y",!0),s=t.valToPos(t.scales.y.max,"y",!0),o=t.valToPos(this.limitsValues[0],"y",!0),d=t.valToPos(this.limitsValues[1],"y",!0),r=t.valToPos(this.limitsValues[2],"y",!0),v=t.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach(p=>{t.scales.y.min<=p.yValue&&p.yValue<=t.scales.y.max&&(e.save(),e.beginPath(),e.strokeStyle=p.color,e.lineWidth=2,e.moveTo(i.left,t.valToPos(p.yValue,"y",!0)),e.lineTo(i.left+i.width,t.valToPos(p.yValue,"y",!0)),e.stroke(),e.restore())}),e.save(),e.beginPath(),e.fillStyle="rgba(255,0,0,0.15)",t.scales.y.min<this.limitsValues[0]){let p=o<s?s:o;e.fillRect(i.left,o,i.width,n-p)}if(t.scales.y.max>this.limitsValues[3]){let p=n<v?n:v;e.fillRect(i.left,s,i.width,p-s)}if(e.fillStyle="rgba(255,255,0,0.15)",t.scales.y.min<this.limitsValues[1]&&t.scales.y.max>this.limitsValues[0]){let p=d<s?s:d;e.fillRect(i.left,p,i.width,o-p)}if(t.scales.y.max>this.limitsValues[2]&&t.scales.y.min<this.limitsValues[3]){let p=n<v?n:v,y=n<r?n:r;e.fillRect(i.left,p,i.width,y-p)}if(e.fillStyle="rgba(0,255,0,0.15)",this.limitsValues.length===4){if(t.scales.y.min<this.limitsValues[2]&&t.scales.y.max>this.limitsValues[1]){let p=r<s?s:r,y=n<d?n:d;e.fillRect(i.left,p,i.width,y-p)}}else{const p=t.valToPos(this.limitsValues[4],"y",!0),y=t.valToPos(this.limitsValues[5],"y",!0);if(t.scales.y.min<this.limitsValues[4]&&t.scales.y.max>this.limitsValues[1]){let k=p<s?s:p;e.fillRect(i.left,k,i.width,d-k)}if(t.scales.y.max>this.limitsValues[5]&&t.scales.y.min<this.limitsValues[2]){let k=n<r?n:r,f=n<y?n:y;e.fillRect(i.left,k,i.width,f-k)}e.fillStyle="rgba(0,0,255,0.15)";let D=y<s?s:y,b=n<p?n:p;e.fillRect(i.left,D,i.width,b-D)}e.stroke(),e.restore()}}}},changeItem:function(t){this.removeItems([this.selectedItem]),this.selectedItem.valueType=t.valueType,this.selectedItem.reduced=t.reduced,this.selectedItem.reducedType=t.reducedType,setTimeout(()=>{this.addItems([this.selectedItem])},0)},addItems:function(t,e="CONVERTED"){t.forEach(i=>{i.valueType||(i.valueType=e),i.color||(i.color=this.colors[this.colorIndex]),i.limits||(i.limits=[]),i.limits.length>0&&(this.limitsValues=i.limits),this.colorIndex=(this.colorIndex+1)%this.colors.length,this.items.push(i);const n=this.data.length;this.graph.addSeries(this.createSeriesConfig(i),n),this.overview&&this.overview.addSeries(this.createOverviewSeriesConfig(),n),this.data.splice(n,0,Array(this.data[0].length)),this.indexes[this.subscriptionKey(i)]=n}),this.updateColorIndex(t),this.addItemsToSubscription(t),this.$emit("resize"),this.$emit("edit")},createSeriesConfig:function(t){return{spanGaps:!0,item:t,label:this.formatLabel(t),stroke:(e,i)=>this.items[i-1].color,width:2,value:(e,i)=>typeof i=="string"||isNaN(i)?"NaN":i==null?"--":Math.abs(i)<.01&&i!==0||Math.abs(i)>=1e7?i.toExponential(6):i.toFixed(6)}},createOverviewSeriesConfig:function(){return{spanGaps:!0,stroke:(t,e)=>this.items[e-1].color}},updateColorIndex:function(t){const e=t[t.length-1];if(e){const i=this.colors.indexOf(e.color);i!==-1&&(this.colorIndex=(i+1)%this.colors.length)}},addItemsToSubscription:function(t=this.items){let e=this.startTime;this.graphStartDateTime&&(e=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(i=>{i&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(this.subscriptionKey),start_time:e,end_time:this.graphEndDateTime})})},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(t){for(const e of t.map(this.subscriptionKey)){let i=this.indexes[e];this.data[i]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}this.data.length===2&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItems:function(t){this.removeItemsFromSubscription(t);for(const e of t.map(this.subscriptionKey)){const i=this.reorderIndexes(e);this.items.splice(i-1,1),this.data.splice(i,1),this.graph.delSeries(i),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(i),this.overview.setData(this.data))}this.data.length===1&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("resize"),this.$emit("edit")},removeItemsFromSubscription:function(t=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(this.subscriptionKey)})},reorderIndexes:function(t){let e=this.indexes[t];delete this.indexes[t];for(let i in this.indexes)this.indexes[i]>e&&(this.indexes[i]-=1);return e},received:function(t){this.cable.recordPing();for(let e=0;e<t.length;e++){let i=t[e].__time/1e9,n=t[0].length;if(n===0||i>t[0][n-1]){for(let s=0;s<this.data.length;s++)this.data[s].push(null);this.set_data_at_index(this.data[0].length-1,i,t[e])}else{let s=Q(this.data[0],i,this.bs_comparator);if(s>=0)this.set_data_at_index(s,i,t[e]);else{let o=-s-1;for(let d=0;d<this.data.length;d++)this.data[d].splice(o,0,null);this.set_data_at_index(o,i,t[e])}}}if(this.startTime==null&&this.data[0][0]){let e=this.data[0][0]*1e9;this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(t,e){return t-e},set_data_at_index:function(t,e,i){this.data[0][t]=e;for(const[n,s]of Object.entries(i)){if(n==="time")continue;let o=this.indexes[n];if(o){let d=this.data[o];if(s!=null&&s.raw)d[t]=null;else if(typeof s=="string"){if(d[t]=null,!n.includes("__RAW")){for(let r of this.items)if(this.subscriptionKey(r)===n){this.selectedItem=r;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else d[t]=s}}},subscriptionKey:function(t){let e=`${t.reduced}__TLM__${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`;return(t.reduced==="REDUCED_MINUTE"||t.reduced==="REDUCED_HOUR"||t.reduced==="REDUCED_DAY")&&(e+=`__${t.reducedType}`),e}}},be={class:"mx-2"},_e={class:"pa-1",id:"chart",ref:"chart"},Te=["id"],De=["id"],ke={key:5,class:"u-series",ref:"info"};function Ve(t,e,i,n,s,o){const d=m("v-icon"),r=m("v-tooltip"),v=m("v-spacer"),p=m("v-toolbar"),y=m("v-expand-transition"),D=m("v-card"),b=m("graph-edit-dialog"),k=m("v-text-field"),f=m("v-row"),G=m("v-textarea"),z=m("v-btn"),A=m("v-dialog"),V=m("v-list-item-title"),C=m("v-list-item"),$=m("v-list"),U=m("v-menu"),K=m("graph-edit-item-dialog"),F=m("v-list-subheader");return w(),Y("div",{onClick:e[21]||(e[21]=ie(h=>t.$emit("click"),["prevent"]))},[a(D,null,{default:l(()=>[I(a(p,{height:"24",class:ae(["pl-2 pr-2",i.selectedGraphId===i.id?"active":""])},{default:l(()=>[I(x("div",be,[a(r,{text:"Errors",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:e[0]||(e[0]=W=>s.errorDialog=!0)}),{default:l(()=>e[22]||(e[22]=[u(" mdi-alert ")])),_:2},1040)]),_:1})],512),[[N,s.errors.length!==0]]),a(r,{text:"Edit",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:e[1]||(e[1]=W=>s.editGraph=!0),"data-test":"edit-graph-icon"}),{default:l(()=>e[23]||(e[23]=[u(" mdi-pencil ")])),_:2},1040)]),_:1}),a(v),x("span",null,S(s.title),1),a(v),I(x("div",null,[o.calcFullSize?(w(),_(r,{key:0,text:"Collapse",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:o.collapseAll,"data-test":"collapse-all"}),{default:l(()=>e[24]||(e[24]=[u(" mdi-arrow-collapse ")])),_:2},1040,["onClick"])]),_:1})):(w(),_(r,{key:1,text:"Expand",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:o.expandAll,"data-test":"expand-all"}),{default:l(()=>e[25]||(e[25]=[u(" mdi-arrow-expand ")])),_:2},1040,["onClick"])]),_:1}))],512),[[N,s.expand]]),I(x("div",null,[s.fullWidth?(w(),_(r,{key:0,text:"Collapse Width",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:o.collapseWidth,"data-test":"collapse-width"}),{default:l(()=>e[26]||(e[26]=[u(" mdi-arrow-collapse-horizontal ")])),_:2},1040,["onClick"])]),_:1})):(w(),_(r,{key:1,text:"Expand Width",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:o.expandWidth,"data-test":"expand-width"}),{default:l(()=>e[27]||(e[27]=[u(" mdi-arrow-expand-horizontal ")])),_:2},1040,["onClick"])]),_:1}))],512),[[N,s.expand]]),I(x("div",null,[s.fullHeight?(w(),_(r,{key:0,text:"Collapse Height",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:o.collapseHeight,"data-test":"collapse-height"}),{default:l(()=>e[28]||(e[28]=[u(" mdi-arrow-collapse-vertical ")])),_:2},1040,["onClick"])]),_:1})):(w(),_(r,{key:1,text:"Expand Height",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:o.expandHeight,"data-test":"expand-height"}),{default:l(()=>e[29]||(e[29]=[u(" mdi-arrow-expand-vertical ")])),_:2},1040,["onClick"])]),_:1}))],512),[[N,s.expand]]),s.expand?(w(),_(r,{key:0,text:"Minimize",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:o.minMaxTransition,"data-test":"minimize-screen-icon"}),{default:l(()=>e[30]||(e[30]=[u(" mdi-window-minimize ")])),_:2},1040,["onClick"])]),_:1})):(w(),_(r,{key:1,text:"Maximize",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:o.minMaxTransition,"data-test":"maximize-screen-icon"}),{default:l(()=>e[31]||(e[31]=[u(" mdi-window-maximize ")])),_:2},1040,["onClick"])]),_:1})),a(r,{text:"Close",location:"top"},{activator:l(({props:h})=>[a(d,T(h,{onClick:e[2]||(e[2]=W=>t.$emit("close-graph")),"data-test":"close-graph-icon"}),{default:l(()=>e[32]||(e[32]=[u(" mdi-close-box ")])),_:2},1040)]),_:1})]),_:1},8,["class"]),[[N,!s.hideToolbarData]]),a(y,null,{default:l(()=>[I(x("div",_e,[x("div",{id:`chart${i.id}`},null,8,Te),e[33]||(e[33]=x("div",{id:"betweenCharts"},null,-1)),I(x("div",{id:`overview${i.id}`},null,8,De),[[N,s.showOverview]])],512),[[N,s.expand]])]),_:1})]),_:1}),s.editGraph?(w(),_(b,{key:0,modelValue:s.editGraph,"onUpdate:modelValue":e[3]||(e[3]=h=>s.editGraph=h),title:s.title,"legend-position":s.legendPosition,items:s.items,"graph-min-y":s.graphMinY,"graph-max-y":s.graphMaxY,lines:s.lines,colors:s.colors,"start-date-time":s.graphStartDateTime,"end-date-time":s.graphEndDateTime,"time-zone":i.timeZone,onRemove:e[4]||(e[4]=h=>o.removeItems([h])),onOk:o.editGraphClose,onCancel:e[5]||(e[5]=h=>s.editGraph=!1)},null,8,["modelValue","title","legend-position","items","graph-min-y","graph-max-y","lines","colors","start-date-time","end-date-time","time-zone","onOk"])):E("",!0),a(A,{modelValue:s.errorDialog,"onUpdate:modelValue":e[7]||(e[7]=h=>s.errorDialog=h),"max-width":"600"},{default:l(()=>[a(p,{height:"24"},{default:l(()=>[a(v),e[34]||(e[34]=x("span",null," Errors ",-1)),a(v)]),_:1}),a(D,{class:"pa-3"},{default:l(()=>[a(f,{dense:""},{default:l(()=>[a(k,{readonly:"","hide-details":"",modelValue:s.title,"onUpdate:modelValue":e[6]||(e[6]=h=>s.title=h),class:"pb-2",label:"Graph Title"},null,8,["modelValue"])]),_:1}),a(f,{class:"my-3"},{default:l(()=>[a(G,{readonly:"",rows:"8",value:o.error},null,8,["value"])]),_:1}),a(f,null,{default:l(()=>[a(z,{block:"",onClick:o.clearErrors},{default:l(()=>e[35]||(e[35]=[u(" Clear ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),s.editGraphMenu?(w(),_(U,{key:1,modelValue:s.editGraphMenu,"onUpdate:modelValue":e[9]||(e[9]=h=>s.editGraphMenu=h),target:[s.editGraphMenuX,s.editGraphMenuY],absolute:"","offset-y":""},{default:l(()=>[a($,null,{default:l(()=>[a(C,{onClick:e[8]||(e[8]=h=>s.editGraph=!0)},{default:l(()=>[a(V,{style:{cursor:"pointer"}},{default:l(()=>[u(" Edit "+S(s.title),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):E("",!0),s.editItem?(w(),_(K,{key:2,modelValue:s.editItem,"onUpdate:modelValue":e[10]||(e[10]=h=>s.editItem=h),colors:s.colors,item:s.selectedItem,onChangeColor:o.changeColor,onChangeLimits:o.changeLimits,onCancel:e[11]||(e[11]=h=>s.editItem=!1),onClose:o.closeEditItem},null,8,["modelValue","colors","item","onChangeColor","onChangeLimits","onClose"])):E("",!0),s.itemMenu?(w(),_(U,{key:3,modelValue:s.itemMenu,"onUpdate:modelValue":e[15]||(e[15]=h=>s.itemMenu=h),target:[s.itemMenuX,s.itemMenuY],absolute:"","offset-y":""},{default:l(()=>[a($,{nav:"",density:"compact"},{default:l(()=>[a(F,null,{default:l(()=>[u(S(s.selectedItem.targetName)+" "+S(s.selectedItem.packetName)+" "+S(s.selectedItem.itemName),1)]),_:1}),a(C,{onClick:e[12]||(e[12]=h=>s.editItem=!0)},{prepend:l(()=>[a(d,{icon:"mdi-pencil"})]),default:l(()=>[a(V,null,{default:l(()=>e[36]||(e[36]=[u(" Edit ")])),_:1})]),_:1}),a(C,{onClick:e[13]||(e[13]=h=>o.clearData([s.selectedItem]))},{prepend:l(()=>[a(d,{icon:"mdi-eraser"})]),default:l(()=>[a(V,null,{default:l(()=>e[37]||(e[37]=[u(" Clear ")])),_:1})]),_:1}),a(C,{onClick:e[14]||(e[14]=h=>o.removeItems([s.selectedItem]))},{prepend:l(()=>[a(d,{icon:"mdi-delete"})]),default:l(()=>[a(V,null,{default:l(()=>e[38]||(e[38]=[u(" Delete ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):E("",!0),s.legendMenu?(w(),_(U,{key:4,modelValue:s.legendMenu,"onUpdate:modelValue":e[20]||(e[20]=h=>s.legendMenu=h),target:[s.legendMenuX,s.legendMenuY],absolute:"","offset-y":""},{default:l(()=>[a($,null,{default:l(()=>[a(C,{onClick:e[16]||(e[16]=h=>o.moveLegend("top"))},{default:l(()=>[a(V,{style:{cursor:"pointer"}},{default:l(()=>e[39]||(e[39]=[u(" Legend Top ")])),_:1})]),_:1}),a(C,{onClick:e[17]||(e[17]=h=>o.moveLegend("bottom"))},{default:l(()=>[a(V,{style:{cursor:"pointer"}},{default:l(()=>e[40]||(e[40]=[u(" Legend Bottom ")])),_:1})]),_:1}),a(C,{onClick:e[18]||(e[18]=h=>o.moveLegend("left"))},{default:l(()=>[a(V,{style:{cursor:"pointer"}},{default:l(()=>e[41]||(e[41]=[u(" Legend Left ")])),_:1})]),_:1}),a(C,{onClick:e[19]||(e[19]=h=>o.moveLegend("right"))},{default:l(()=>[a(V,{style:{cursor:"pointer"}},{default:l(()=>e[42]||(e[42]=[u(" Legend RIght ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):E("",!0),i.sparkline?E("",!0):(w(),Y("div",ke,[a(r,{text:"Click item to toggle, Right click to edit",location:"top"},{activator:l(({props:h})=>[a(d,se(le(h)),{default:l(()=>e[43]||(e[43]=[u(" mdi-information-variant-circle ")])),_:2},1040)]),_:1})],512))])}const Ee=j("S",L(xe,[["render",Ve],["__scopeId","data-v-485a5da2"]]));function Ce(t,e,i){const n=P(t,void 0);if(isNaN(e))return H(t,NaN);if(!e)return n;const s=n.getDate(),o=H(t,n.getTime());o.setMonth(n.getMonth()+e+1,0);const d=o.getDate();return s>=d?o:(n.setFullYear(o.getFullYear(),o.getMonth(),s),n)}function Me(t,e,i){return te(t,-e,i)}function Ie(t,e,i){return Ce(t,-e)}function Ne(t,e,i){const{years:n=0,months:s=0,weeks:o=0,days:d=0,hours:r=0,minutes:v=0,seconds:p=0}=e,y=Ie(t,s+n*12),D=Me(y,d+o*7,i),b=v+r*60,k=(p+b*60)*1e3;return H(t,+D-k)}const Oe=j("_",{mixins:[ne],data:function(){return{id:Math.floor(Math.random()*1e11),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.appliedSettings.forEach(t=>{switch(t[0]){case"ITEM":this.items.push({targetName:t[1],packetName:t[2],itemName:t[3],valueType:t[4]||"CONVERTED",reduced:t[5]||"DECOM",reducedType:t[6]||null});case"STARTTIME":let e=R(t[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=e.getTime()*1e6;break;case"HISTORY":let i=parseInt(t[1].slice(0,t[1].length-1)),n=null,s=1;switch(t[1][t[1].length-1]){case"d":n="days",s=3600*24;break;case"h":n="hours",s=3600;break;case"m":n="minutes",s=60;break;case"s":n="seconds";break;default:throw new Error(`Unknown time suffix: ${t[1]}!`)}let o={};o[n]=i,this.startTime=Ne(new Date,o).getTime()*1e6,i*s>this.secondsGraphed&&(this.secondsGraphed=i*s),i*s>this.pointsSaved&&(this.pointsSaved=i*s),i*s>this.pointsGraphed&&(this.pointsGraphed=i*s);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(t[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(t[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(t[1]);break;case"SIZE":this.size.width=parseInt(t[1]),this.size.height=parseInt(t[2]);break}}),this.items=this.items.map(t=>{let e=t.itemName;if(t.itemName.includes("[["))t.itemName=t.itemName.replace("[[","[").replace("]]","]"),e=t.itemName;else if(t.itemName.includes("[")){let i=t.itemName.match(/\[(\d+)\]/);this.arrayIndex=parseInt(i[1]),e=t.itemName.replace(i[0],"")}return this.$emit("addItem",`${t.targetName}__${t.packetName}__${e}__${t.valueType}`,!0),t})},destroyed(){this.items.map(t=>this.$emit("deleteItem",`${t.targetName}__${t.packetName}__${t.itemName}__${t.valueType}`))}})}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-klOVw-YN-1974f92641167d7b8e95.js","vue","./main-7f7c9aca4eba3a2f66c5.js","./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue-router","vuex","vuetify"],function(v,k){"use strict";var a,r,i,c,o,m,u,g,p,f;return{setters:[e=>{a=e.r},e=>{r=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,m=e.renderList,u=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null],execute:function(){const e={mixins:[a],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(l=>{l.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&l.settings.push(["MARGIN",n])})}}};function y(n,l,s,w,N,B){return r(),i("div",{ref:"container",class:"d-flex flex-row",style:c(n.computedStyle)},[(r(!0),i(o,null,m(n.widgets,(t,d)=>(r(),u(g(t.type),p({ref_for:!0},n.listeners,{key:d,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=v("default",f(e,[["render",y]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./HorizontalWidget-BcfJ24Zn-d39077d8732466d83fc0.js","./Layout-klOVw-YN-1974f92641167d7b8e95.js","vue","./main-7f7c9aca4eba3a2f66c5.js","./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue-router","vuex","vuetify"],function(v,w){"use strict";var r,i,n,o,l,s,a,c,u,p,d,g;return{setters:[e=>{r=e.default},e=>{i=e.r},e=>{n=e.resolveComponent,o=e.openBlock,l=e.createElementBlock,s=e.createVNode,a=e.normalizeStyle,c=e.withCtx,u=e.createTextVNode,p=e.toDisplayString,d=e.mergeProps},e=>{g=e.s},null,null,null,null],execute:function(){const e={mixins:[i],components:{HorizontalWidget:r}};function m(t,z,S,N,k,V){const y=n("v-banner"),f=n("horizontal-widget");return o(),l("div",null,[s(y,{class:"boxbanner",style:a(t.computedStyle),"single-line":""},{default:c(()=>[u(p(t.parameters[0]),1)]),_:1},8,["style"]),s(f,d(t.listeners,{parameters:t.parameters.slice(1),settings:t.appliedSettings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"screen-id":t.screenId}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone","screen-id"])])}const x=v("default",g(e,[["render",m],["__scopeId","data-v-e9e6c14b"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(u,l){"use strict";var t,n,r;return{setters:[e=>{t=e.openBlock,n=e.createElementBlock},e=>{r=e.s},null,null,null],execute:function(){const e={};function c(s,i){return t(),n("hr")}const o=u("default",r(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(l,u){"use strict";var i,r,n,s,h;return{setters:[e=>{i=e.o},e=>{r=e.openBlock,n=e.createElementBlock,s=e.normalizeStyle},e=>{h=e.s},null,null,null],execute:function(){const e={mixins:[i],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},c=["src","width","height"];function o(t,d,m,f,g,p){return r(),n("iframe",{title:"IFrameWidget",src:t.parameters[0],width:t.width,height:t.height,style:s(t.computedStyle)},null,12,c)}const a=l("default",h(e,[["render",o]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-7f7c9aca4eba3a2f66c5.js"],function(r,s){"use strict";var e;return{setters:[n=>{e=n.O}],execute:function(){const n=r("s",{props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(o){let t="targets_modified";return await e.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${o}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch(c=>{t="targets"}),(await e.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${o}`)}?bucket=OPENC3_CONFIG_BUCKET`)).data.url}}})}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(u,m){"use strict";var r,a,n,s,i;return{setters:[e=>{r=e.o},e=>{a=e.openBlock,n=e.createElementBlock,s=e.normalizeStyle},e=>{i=e.s},null,null,null],execute:function(){const e={mixins:[r],data:function(){return{valueId:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.screenValues[this.valueId][0]}`}},created:function(){this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},unmounted:function(){this.$emit("deleteItem",this.valueId)}},l=["src","alt","width","height"];function c(t,h,v,p,f,o){return a(),n("img",{src:o.src,alt:t.valueId,width:t.parameters[4],height:t.parameters[5],style:s(t.computedStyle)},null,12,l)}const d=u("default",i(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(m,f){"use strict";var s,n,i,r,a,l;return{setters:[t=>{s=t.o},t=>{n=t.openBlock,i=t.createElementBlock,r=t.normalizeStyle,a=t.toDisplayString},t=>{l=t.s},null,null,null],execute:function(){const t={mixins:[s],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){let e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}};function h(e,c,p,y,S,o){return n(),i("div",{"data-test":"label",class:"pa-1 mt-1 label",style:r([o.cssProps,e.computedStyle])},a(o.labelText),5)}const u=m("default",l(t,[["render",h],["__scopeId","data-v-1d1d3128"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","./LabelWidget-B_C6lKOE-7aa5bb7216abe13fcff5.js","./LedWidget-BAt02s0J-1e648734371fac134070.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(p,S){"use strict";var r,l,a,s,i,o,c,n,u,d;return{setters:[e=>{r=e.o},e=>{l=e.default},e=>{a=e.default},e=>{s=e.resolveComponent,i=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,u=e.mergeProps},e=>{d=e.s},null,null,null],execute:function(){const e={mixins:[r],components:{LabelWidget:l,LedWidget:a},computed:{labelName(){return[this.parameters[2]+":"]}}};function g(t,x,b,y,B,m){const f=s("label-widget"),v=s("led-widget");return i(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(f,{parameters:m.labelName,settings:[...t.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),n(v,u(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const w=p("default",d(e,[["render",g]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-orNSvnOh-677c5b6b99d215d82fc9.js","./LabelWidget-B_C6lKOE-7aa5bb7216abe13fcff5.js","./ProgressbarWidget-CYDziFej-3df56853fcd680dafcac.js","vue","./main-7f7c9aca4eba3a2f66c5.js","vue-router","vuex","vuetify"],function(p,y){"use strict";var n,l,a,r,o,i,c,s,u,g;return{setters:[e=>{n=e.o},e=>{l=e.default},e=>{a=e.default},e=>{r=e.resolveComponent,o=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,u=e.mergeProps},e=>{g=e.s},null,null,null],execute:function(){const e={mixins:[n],components:{LabelWidget:l,ProgressbarWidget:a},computed:{labelName(){return[this.parameters[2]+":"]}}};function d(t,S,x,w,j,m){const f=r("label-widget"),v=r("progressbar-widget");return o(),i("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[s(f,{parameters:m.labelName,settings:[...t.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),s(v,u(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,style:t.computedStyle,"widget-index":1}),null,16,["parameters","settings","screen-values","style"])],4)}const b=p("default",g(e,[["render",d]]))}}});