openc3-cosmos-tool-limitsmonitor 6.0.2 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/tools/limitsmonitor/{ArrayWidget-DBpEoQ1y-10bc2aa62aefae635d7c.js → ArrayWidget-BxEO5hEG-e31f0f4484a2486f09f1.js} +2 -2
  3. data/tools/limitsmonitor/ArrayplotWidget-B_VPoV4v-6821c84c27dd083ac1d1.js +1 -0
  4. data/tools/limitsmonitor/{BarColumn-B6tCmNJm-81299b2ec5265c815997.js → BarColumn-C9dkpg2O-39581cbfa1f879c54974.js} +1 -1
  5. data/tools/limitsmonitor/BlockWidget-CuefOin6-f2aad9a9b939b131f5bd.js +2 -0
  6. data/tools/limitsmonitor/{ButtonWidget-CHrHS_Bw-8f9b44ca04ad8627a544.js → ButtonWidget-B6HM0Doo-a16a575cb584e9fa4e76.js} +2 -2
  7. data/tools/limitsmonitor/CanvasWidget-DZQGG-yQ-10d8eac0fffcfa833076.js +1 -0
  8. data/tools/limitsmonitor/CanvasdotWidget-6wuCSnw_-f069c7d501e8114b7f14.js +1 -0
  9. data/tools/limitsmonitor/{CanvasimageWidget-BrYlPQCf-7cb83fbc95a6694fcc75.js → CanvasimageWidget-mhcPpAuN-41e2a29b0edc4df95ff6.js} +1 -1
  10. data/tools/limitsmonitor/{CanvasimagevalueWidget-HnEOXmZy-21ef90605f467870eda5.js → CanvasimagevalueWidget-Cx-dH8Gc-362130c03797dc77b886.js} +1 -1
  11. data/tools/limitsmonitor/CanvaslabelWidget-CQZCeohU-8085970b16c467d2ee75.js +1 -0
  12. data/tools/limitsmonitor/{CanvaslabelvalueWidget-0zRDJav3-810a83bbb5c641f6e738.js → CanvaslabelvalueWidget-CwmYDCjr-a41116ae5d9866dd1919.js} +1 -1
  13. data/tools/limitsmonitor/CanvaslineWidget-nTP3fJB4-cdf4d24a4e567c54e127.js +1 -0
  14. data/tools/limitsmonitor/CanvaslinevalueWidget-C3sJnjLQ-9e8c71470959e0bec272.js +1 -0
  15. data/tools/limitsmonitor/CheckbuttonWidget-5-8YDsQL-d3b9b54e25a9b0477d8a.js +1 -0
  16. data/tools/limitsmonitor/{ComboboxWidget-BykAAoxH-cd6992d4210826a4ce38.js → ComboboxWidget-DzBL8h9f-1cba297bf6160f9c2a0b.js} +1 -1
  17. data/tools/limitsmonitor/{DateWidget-FtYD86xW-b6fff7655074d23f5e4b.js → DateWidget-CW7Od7lB-f86884bc1d161d0986a6.js} +1 -1
  18. data/tools/limitsmonitor/{DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js → DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js} +1 -1
  19. data/tools/limitsmonitor/{DynamicWidget-m9EliUR2-26b730c2ac78fdca149b.js → DynamicWidget-gFSYxzvT-9dd5d91d5fd21bf3c544.js} +1 -1
  20. data/tools/limitsmonitor/{FormatvalueWidget-OykwwCrw-6d473f90cb2df8d6ad21.js → FormatvalueWidget-CGpnTqVH-db0ad74712c1593651b8.js} +1 -1
  21. data/tools/limitsmonitor/Graph-3rkhFP3G-13f4b388c563c17ad7c7.js +1 -0
  22. data/tools/limitsmonitor/GraphWidget-Dycey-mj-e8389f3f66fdbd36be56.js +1 -0
  23. data/tools/limitsmonitor/{HorizontalWidget-B7YdcFVN-6d94bf4bb739925d7210.js → HorizontalWidget-D31NRWy5-22fdf7eb72a77151f435.js} +1 -1
  24. data/tools/limitsmonitor/{HorizontalboxWidget-D-kCNwI3-6f53b03a7da8c86162c1.js → HorizontalboxWidget-Br8dSVHD-cc49c5aab1ec31d54365.js} +1 -1
  25. data/tools/limitsmonitor/HorizontallineWidget-CbxREBYI-4980d0ab74230c46abac.js +1 -0
  26. data/tools/limitsmonitor/IframeWidget-Ctj8OIcG-8f0976dfff02f7bd2be8.js +1 -0
  27. data/tools/limitsmonitor/ImageLoader-BrNrCBvi-214f2a947227da235be2.js +1 -0
  28. data/tools/limitsmonitor/{ImageviewerWidget-B4HbUIfR-7c52372f6088d994206d.js → ImageviewerWidget-XrsqxmLo-ee30805a897e7426c5ba.js} +1 -1
  29. data/tools/limitsmonitor/{LabelWidget-D1JhQAzR-4ddb456f983e6af7f082.js → LabelWidget-t7I87dp7-b1bce124ab6dfdcfdb79.js} +1 -1
  30. data/tools/limitsmonitor/{LabelledWidget-C2VGJ5OJ-99fc7922439a01702730.js → LabelledWidget-C7TDf92M-ae6b8a8d299d810c2a13.js} +1 -1
  31. data/tools/limitsmonitor/{LabelprogressbarWidget-DN0cAeLK-d7bbe2a3c515440e13f6.js → LabelprogressbarWidget-wwLURt1u-5a1cfb7aebe8dc3e1da8.js} +1 -1
  32. data/tools/limitsmonitor/LabelsparklineWidget-B3awLUyP-2a16839d17999d67d71b.js +1 -0
  33. data/tools/limitsmonitor/LabelvalueWidget-Zx_yHCtl-3375343ec8ee890b72b4.js +1 -0
  34. data/tools/limitsmonitor/{LabelvaluedescWidget-DtJwggDu-538ba5e2feb203768205.js → LabelvaluedescWidget-BBSBh4vI-d53b59b1e2deccea1538.js} +1 -1
  35. data/tools/limitsmonitor/LabelvaluelimitsbarWidget-CZueHYWG-b22361dac809f4773b68.js +1 -0
  36. data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-BTvzyQMq-e38489d6fc917792b1c4.js +1 -0
  37. data/tools/limitsmonitor/{LabelvaluerangebarWidget-DCJ42bmf-9df0dd9b99ee393496b1.js → LabelvaluerangebarWidget-BhYTBgDq-6634816e2eed6be5844f.js} +1 -1
  38. data/tools/limitsmonitor/{Layout-D4YBjuWs-be2d1878767310656ca5.js → Layout-Bh7VzCZd-4413af25199d52238484.js} +1 -1
  39. data/tools/limitsmonitor/LedWidget-CxJjJBBS-f9d36733386476faeb3d.js +1 -0
  40. data/tools/limitsmonitor/LimitsMonitor-1ef55350bb13530a31dc.js +8 -0
  41. data/tools/limitsmonitor/{LimitsbarWidget-D-wfz_St-b5a4f1a6cb26c135996b.js → LimitsbarWidget-Djui0IpK-cd6dbfcb920ad694e290.js} +1 -1
  42. data/tools/limitsmonitor/LimitscolorWidget-DdmvKzmx-55ba861629837a003f3f.js +1 -0
  43. data/tools/limitsmonitor/{LimitscolumnWidget-Dt5ce4hN-3ab5f802493038f2b108.js → LimitscolumnWidget-Cc19IEjq-39521651b17801e047c6.js} +1 -1
  44. data/tools/limitsmonitor/LinegraphWidget-BtieJxeL-c81aec0afa8ba97b1ed3.js +1 -0
  45. data/tools/limitsmonitor/{MatrixbycolumnsWidget-wLx4NvXV-ec985fa9c917fbaa80b1.js → MatrixbycolumnsWidget-DnExVRF8-92faefc2a65502ac2e67.js} +1 -1
  46. data/tools/limitsmonitor/{ProgressbarWidget-B7l0BBiX-31ca29a976d6d563f87b.js → ProgressbarWidget-DIfqhHRE-bdd12fec51cf8e7b649b.js} +1 -1
  47. data/tools/limitsmonitor/RadiobuttonWidget-QzIkNP7m-63826adbac34bc93af4b.js +1 -0
  48. data/tools/limitsmonitor/{RadiogroupWidget-Busjqikr-72666cd93cb5ef59d2f7.js → RadiogroupWidget-Ci9sCX39-17b14106fd272ead1682.js} +1 -1
  49. data/tools/limitsmonitor/{RangebarWidget-DbYrwEfC-8e4508c3ca65c32801e6.js → RangebarWidget-CN0YuHqy-88743bd1380de6bf343b.js} +1 -1
  50. data/tools/limitsmonitor/{RollupWidget-rKxLXuCv-f3860502dc41f764e4f4.js → RollupWidget-y4jBtJB2-92d4588deeeaedbb860e.js} +1 -1
  51. data/tools/limitsmonitor/{ScrollwindowWidget-D4NKIzQO-6bc311f581482a1ebc7b.js → ScrollwindowWidget-CBzYk4Y3-ffcb6bc0ee1f30748125.js} +1 -1
  52. data/tools/limitsmonitor/{SignalWidget-h-oivReC-53cabe897e49bb66409a.js → SignalWidget-DQ5Uc2uV-c4fbb81b6f18950d2679.js} +1 -1
  53. data/tools/limitsmonitor/SpacerWidget-6rsc_dSM-31909c974472171d748c.js +1 -0
  54. data/tools/limitsmonitor/SparklineWidget-CZtvu2ss-39ab9fe829ecc18abd3e.js +1 -0
  55. data/tools/limitsmonitor/TabbookWidget-DNALU0jl-bf3d37bf3ce9f3a159b0.js +1 -0
  56. data/tools/limitsmonitor/TextboxWidget-5hqPj74D-97c569569131217eb9ed.js +1 -0
  57. data/tools/limitsmonitor/{TextfieldWidget-aVRdXRsT-c2c9ec7e805ec1c751cd.js → TextfieldWidget-Df0ANSiU-d97d295a642e9a4f48b5.js} +1 -1
  58. data/tools/limitsmonitor/TimeWidget-C6XQMUG2-f92b5453710475e02238.js +1 -0
  59. data/tools/limitsmonitor/TitleWidget-B9SPUlbW-fe2a55d5e41d2e182431.js +1 -0
  60. data/tools/limitsmonitor/VWidget-C4spAawK-e511008555d8894be77e.js +1 -0
  61. data/tools/limitsmonitor/ValueWidget-D4RrYVEK-aa11dca149c0ba475998.js +1 -0
  62. data/tools/limitsmonitor/ValuelimitsbarWidget-Bc9_Vj_f-752dc345d7ac993695d2.js +1 -0
  63. data/tools/limitsmonitor/ValuelimitscolumnWidget-DHKIL7sf-1ae0a39b4a01cfc0b938.js +1 -0
  64. data/tools/limitsmonitor/ValuerangebarWidget-CecQRIok-6ca9dde91df211b1b680.js +1 -0
  65. data/tools/limitsmonitor/{VerticalWidget-DziyURNu-766271166fc05ccd6b08.js → VerticalWidget-D8jUFxjS-db7b4e6f9ee93e73fbb7.js} +1 -1
  66. data/tools/limitsmonitor/VerticalboxWidget-B4eGUSYH-f45cf7c78ffc43f301bd.js +1 -0
  67. data/tools/limitsmonitor/{Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js → Widget-fRCERxGf-d41f5679fd96d070d90a.js} +1 -1
  68. data/tools/limitsmonitor/main-198c84edc9d877ab9beb.js +1421 -0
  69. data/tools/limitsmonitor/main.js +1 -1
  70. metadata +69 -67
  71. data/tools/limitsmonitor/BlockWidget-Bmi0UcUW-7352a46cab16efbe02f6.js +0 -2
  72. data/tools/limitsmonitor/CanvasWidget-BqdyLbQz-e40ae0173390c826e4bf.js +0 -1
  73. data/tools/limitsmonitor/CanvasdotWidget-YYwca104-5be5230fc4d7584a582d.js +0 -1
  74. data/tools/limitsmonitor/CanvaslabelWidget-BfMHNei--bbd9ce0f1cc42a44ce8c.js +0 -1
  75. data/tools/limitsmonitor/CanvaslineWidget-BmOwJP_G-d372e899711f53540ddb.js +0 -1
  76. data/tools/limitsmonitor/CanvaslinevalueWidget-H3L1aUKM-9243996b855c413926f1.js +0 -1
  77. data/tools/limitsmonitor/CheckbuttonWidget-BnT9X7wE-45077b8b75f6dfd39345.js +0 -1
  78. data/tools/limitsmonitor/GraphWidget-BohHW-97-1f95b047aac874dc24a5.js +0 -1
  79. data/tools/limitsmonitor/HorizontallineWidget-BdlNB951-79a8b83089855d6afd68.js +0 -1
  80. data/tools/limitsmonitor/IframeWidget-0C7GYEVc-5f201c42f8a4a3f857a4.js +0 -1
  81. data/tools/limitsmonitor/ImageLoader-y6fAZe9P-a5c428a769ea49ef68da.js +0 -1
  82. data/tools/limitsmonitor/LabelsparklineWidget--sxBENxs-aec45c83ead6762e91de.js +0 -1
  83. data/tools/limitsmonitor/LabelvalueWidget-BWpP5KX6-32c57bd023d22b75fc9c.js +0 -1
  84. data/tools/limitsmonitor/LabelvaluelimitsbarWidget-Bj6UVK-5-cb4d7a45903189163f59.js +0 -1
  85. data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-BVcEEcUx-236cf34508635cbd85a4.js +0 -1
  86. data/tools/limitsmonitor/LedWidget-hN9JHxjr-3e21201718a4a9b6c8ab.js +0 -1
  87. data/tools/limitsmonitor/LimitsMonitor-5ccbc6156ab09287f753.js +0 -7
  88. data/tools/limitsmonitor/LimitscolorWidget-B0AVGdkz-ec414c8f6560428f884f.js +0 -1
  89. data/tools/limitsmonitor/LinegraphWidget-CTjtvtPd-c9a510735d8dc2d5bdc1.js +0 -1
  90. data/tools/limitsmonitor/RadiobuttonWidget-B032jKIw-947ce2fd5e364181b75a.js +0 -1
  91. data/tools/limitsmonitor/SpacerWidget-BSy9eOlB-4d6410020e27b5c859d4.js +0 -1
  92. data/tools/limitsmonitor/SparklineWidget-C9vdxar--1e1da872a40d23cb526a.js +0 -1
  93. data/tools/limitsmonitor/TabbookWidget-DTFTKURm-81c7569b723f2f6e87d9.js +0 -1
  94. data/tools/limitsmonitor/TextboxWidget-BZyYHmBq-c4b99f81463452c5e54a.js +0 -1
  95. data/tools/limitsmonitor/TimeWidget-BE2rtMxg-5af126a079a24c333049.js +0 -1
  96. data/tools/limitsmonitor/TitleWidget-BB29MZb2-7b4b10b0640c517ffda4.js +0 -1
  97. data/tools/limitsmonitor/VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js +0 -1
  98. data/tools/limitsmonitor/ValueWidget-h3905woQ-fcbb9882c26bc56d3182.js +0 -1
  99. data/tools/limitsmonitor/ValuelimitsbarWidget-LMXYjWtS-76d5604fc1706981fa55.js +0 -1
  100. data/tools/limitsmonitor/ValuelimitscolumnWidget-gA3ZcfAT-ca8550256cf63611b931.js +0 -1
  101. data/tools/limitsmonitor/ValuerangebarWidget-DwZ9KQ0O-21dd7d03d82d6fdaa8a6.js +0 -1
  102. data/tools/limitsmonitor/VerticalboxWidget-OcoZBsFU-3fffa844edef8feb420c.js +0 -1
  103. data/tools/limitsmonitor/main-93c3aaf3971ea1334ca9.js +0 -1420
@@ -1 +1 @@
1
- System.register(["./LabelvalueWidget-BWpP5KX6-32c57bd023d22b75fc9c.js","./RangebarWidget-DbYrwEfC-8e4508c3ca65c32801e6.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","./LabelWidget-D1JhQAzR-4ddb456f983e6af7f082.js","./ValueWidget-h3905woQ-fcbb9882c26bc56d3182.js","./DetailsDialog-DiVcC3Fg-436e3e3668382eb38258.js","single-spa","./VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var l,i,u,s,m,o,p,r,a,c;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{u=e.o},e=>{s=e.resolveComponent,m=e.openBlock,o=e.createElementBlock,p=e.normalizeStyle,r=e.createVNode,a=e.mergeProps},e=>{c=e.s},null,null,null,null,null,null,null,null],execute:function(){const e={mixins:[u],components:{LabelvalueWidget:l,RangebarWidget:i},computed:{labelValueSettings(){return[...this.settings.filter(t=>t[0]==="__SCREEN_ID__"),...this.settings.filter(t=>parseInt(t[0])===0||parseInt(t[0])===1)]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,W,j,B,n){const h=s("labelvalue-widget"),v=s("rangebar-widget");return m(),o("div",{ref:"container",class:"d-flex flex-row",style:p(t.computedStyle)},[r(h,a(t.$attrs,{parameters:n.labelValueParameters,settings:n.labelValueSettings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),r(v,a(t.$attrs,{parameters:n.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"])],4)}const b=g("default",c(e,[["render",d]]))}}});
1
+ System.register(["./LabelvalueWidget-Zx_yHCtl-3375343ec8ee890b72b4.js","./RangebarWidget-CN0YuHqy-88743bd1380de6bf343b.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","./LabelWidget-t7I87dp7-b1bce124ab6dfdcfdb79.js","vue-router","single-spa","vuex","vuetify","./ValueWidget-D4RrYVEK-aa11dca149c0ba475998.js","./DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js","./VWidget-C4spAawK-e511008555d8894be77e.js"],function(g,h){"use strict";var l,i,u,s,m,o,p,r,a,c;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{u=e.o},e=>{s=e.resolveComponent,m=e.createElementBlock,o=e.openBlock,p=e.normalizeStyle,r=e.createVNode,a=e.mergeProps},e=>{c=e.s},null,null,null,null,null,null,null,null],execute:function(){const e={mixins:[u],components:{LabelvalueWidget:l,RangebarWidget:i},computed:{labelValueSettings(){return[...this.settings.filter(t=>t[0]==="__SCREEN_ID__"),...this.settings.filter(t=>parseInt(t[0])===0||parseInt(t[0])===1)]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,j,x,y,n){const v=s("labelvalue-widget"),f=s("rangebar-widget");return o(),m("div",{ref:"container",class:"d-flex flex-row",style:p(t.computedStyle)},[r(v,a(t.$attrs,{parameters:n.labelValueParameters,settings:n.labelValueSettings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),r(f,a(t.$attrs,{parameters:n.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"])],4)}const b=g("default",c(e,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js"],function(r,s){"use strict";var e;return{setters:[t=>{e=t.o}],execute:function(){const t=r("r",{mixins:[e],props:{widgets:{type:Array,default:()=>[]}}})}}});
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js"],function(r,s){"use strict";var e;return{setters:[t=>{e=t.o}],execute:function(){const t=r("r",{mixins:[e],props:{widgets:{type:Array,default:()=>[]}}})}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","vue-router","single-spa","vuex","vuetify"],function(m,I){"use strict";var l,n,o,p,r,a,h,c,u;return{setters:[e=>{l=e.o},e=>{n=e.resolveComponent,o=e.createBlock,p=e.openBlock,r=e.withCtx,a=e.createElementVNode,h=e.toDisplayString,c=e.mergeProps},e=>{u=e.s},null,null,null,null],execute:function(){const e={mixins:[l],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let t=this.screenValues[this.valueId][0],s=this.colors[t];return s||(s=this.colors.ANY),s||(s="openc3-black"),{"--color":s}},fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},getClass(){let t="ledwidget mt-2";return this.screenValues[this.valueId][1]==="STALE"&&(t+=" stale"),t}},created(){this.appliedSettings.forEach(t=>{switch(t[0]){case"LED_COLOR":this.colors[t[1]]=t[2];break}}),this.appliedSettings.push(["WIDTH",this.width]),this.appliedSettings.push(["HEIGHT",this.height]),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}};function d(t,s,E,_,C,i){const v=n("v-tooltip");return p(),o(v,{location:"top"},{activator:r(({props:g})=>[a("div",c({class:i.getClass,style:[i.cssProps,t.computedStyle]},g),null,16)]),default:r(()=>[a("span",null,h(i.fullName),1)]),_:1})}const f=m("default",u(e,[["render",d],["__scopeId","data-v-393f2726"]]))}}});
@@ -0,0 +1,8 @@
1
+ System.register(["./main-198c84edc9d877ab9beb.js","vue","single-spa","./VWidget-C4spAawK-e511008555d8894be77e.js","./IframeWidget-Ctj8OIcG-8f0976dfff02f7bd2be8.js","./LabelvalueWidget-Zx_yHCtl-3375343ec8ee890b72b4.js","./LabelvaluelimitsbarWidget-CZueHYWG-b22361dac809f4773b68.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","./LabelWidget-t7I87dp7-b1bce124ab6dfdcfdb79.js","./ValueWidget-D4RrYVEK-aa11dca149c0ba475998.js","./DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js","./LimitsbarWidget-Djui0IpK-cd6dbfcb920ad694e290.js","./BarColumn-C9dkpg2O-39581cbfa1f879c54974.js"],function(vs,Ti){"use strict";var ct,be,Pe,lt,ut,dt,w,A,x,ht,g,m,I,H,$,G,Z,q,re,_e,Y,De,Fe,ft,pt;return{setters:[O=>{ct=O.s,be=O._,Pe=O.P,lt=O.X,ut=O.j,dt=O.Y},O=>{w=O.resolveComponent,A=O.createBlock,x=O.openBlock,ht=O.Teleport,g=O.createVNode,m=O.withCtx,I=O.createElementVNode,H=O.toDisplayString,$=O.createElementBlock,G=O.Fragment,Z=O.renderList,q=O.createTextVNode,re=O.mergeProps,_e=O.createSlots,Y=O.createCommentVNode,De=O.normalizeStyle,Fe=O.normalizeClass},null,null,null,O=>{ft=O.default},O=>{pt=O.default},null,null,null,null,null,null,null,null,null],execute:function(){var O=document.createElement("style");O.textContent=`.footer[data-v-271953d7]{padding-top:5px}.v-input[data-v-271953d7]{background-color:var(--color-background-base-default)}.textfield-green[data-v-271953d7]{color:#00c800}.textfield-yellow[data-v-271953d7]{color:#ffdc00}.textfield-red[data-v-271953d7]{color:#ff2d2d}.card-height[data-v-210db24e]{height:calc(100vh - 150px)}
2
+ /*$vite$:1*/`,document.head.appendChild(O);const Ss={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}},Es={class:"app-title mr-2"};function xs(t,e,s,n,r,i){const o=w("v-col"),a=w("v-row"),l=w("v-icon"),u=w("v-btn"),d=w("v-divider"),h=w("v-list-item-title"),b=w("v-list-item"),f=w("v-list"),y=w("v-menu"),p=w("v-radio"),R=w("v-list-item-action"),k=w("v-radio-group"),C=w("v-checkbox");return x(),A(ht,{to:"#openc3-menu"},[g(a,{"no-gutters":""},{default:m(()=>[g(o,{"align-self":"end"},{default:m(()=>[I("span",Es,H(s.title),1)]),_:1})]),_:1}),g(a,{dense:"",class:"flex-nowrap"},{default:m(()=>[(x(!0),$(G,null,Z(s.menus,(v,L)=>(x(),A(y,{ref_for:!0,ref:"topmenu",key:L},{activator:m(({props:_})=>[g(u,re({ref_for:!0},_,{variant:"outlined",class:"mx-1 menu-button",text:v.label,"data-test":i.formatDT(`${s.title} ${v.label}`)}),{append:m(()=>[g(l,{class:"menu-button-icon"},{default:m(()=>e[0]||(e[0]=[q(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:m(()=>[g(f,null,{default:m(()=>[(x(!0),$(G,null,Z(v.items,(_,j)=>(x(),$(G,null,[_.divider?(x(),A(d,{key:j+"-divider"})):_.subMenu&&_.subMenu.length>0?(x(),$("div",{key:j+"-submenu"},[(x(),A(y,{"open-on-hover":"",location:"right",key:j},{activator:m(({props:N})=>[(x(),A(b,re({ref_for:!0},N,{disabled:_.disabled,key:j}),_e({append:m(()=>[g(l,null,{default:m(()=>e[1]||(e[1]=[q(" mdi-chevron-right ")])),_:1})]),default:m(()=>[!_.radio&&!_.checkbox?(x(),A(h,{key:0,style:De("cursor: pointer;"+(_.disabled?"opacity: 0.2":""))},{default:m(()=>[q(H(_.label),1)]),_:2},1032,["style"])):Y("",!0)]),_:2},[_.icon?{name:"prepend",fn:m(()=>[g(l,{disabled:_.disabled},{default:m(()=>[q(H(_.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:m(()=>[g(f,null,{default:m(()=>[(x(!0),$(G,null,Z(_.subMenu,(N,V)=>(x(),A(b,{key:V,"prepend-icon":N.icon,onClick:K=>i.subMenuClick(N)},{default:m(()=>[g(h,null,{default:m(()=>[q(H(N.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):_.radioGroup?(x(),A(k,{"model-value":_.value,"onUpdate:modelValue":_.command,key:j+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:m(()=>[(x(!0),$(G,null,Z(_.choices,(N,V)=>(x(),A(b,{key:V+"-choice"},{default:m(()=>[g(R,{class:"list-action"},{default:m(()=>[g(p,{color:"secondary",label:N.label,value:N.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(x(),A(b,{onClick:N=>_.command(_),disabled:_.disabled,"data-test":i.formatDT(`${s.title} ${v.label} ${_.label}`),key:j+"-list"},_e({default:m(()=>[_.checkbox?(x(),A(R,{key:0,class:"list-action"},{default:m(()=>[g(C,{modelValue:_.checked,"onUpdate:modelValue":N=>_.checked=N,label:_.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):Y("",!0),!_.radio&&!_.checkbox?(x(),A(h,{key:1,style:De("cursor: pointer;"+(_.disabled?"opacity: 0.2":""))},{default:m(()=>[q(H(_.label),1)]),_:2},1032,["style"])):Y("",!0)]),_:2},[_.icon?{name:"prepend",fn:m(()=>[g(l,{icon:_.icon,disabled:_.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const Cs=ct(Ss,[["render",xs],["__scopeId","data-v-4d454b93"]]);var Os=Object.defineProperty,ks=(t,e,s)=>e in t?Os(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,ye=(t,e,s)=>ks(t,typeof e!="symbol"?e+"":e,s);function mt(t,e){return function(){return t.apply(e,arguments)}}const{toString:Rs}=Object.prototype,{getPrototypeOf:Ue}=Object,we=(t=>e=>{const s=Rs.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),M=t=>(t=t.toLowerCase(),e=>we(e)===t),ve=t=>e=>typeof e===t,{isArray:ie}=Array,le=ve("undefined");function Is(t){return t!==null&&!le(t)&&t.constructor!==null&&!le(t.constructor)&&B(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const gt=M("ArrayBuffer");function As(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&gt(t.buffer),e}const Ts=ve("string"),B=ve("function"),bt=ve("number"),Se=t=>t!==null&&typeof t=="object",Ls=t=>t===!0||t===!1,Ee=t=>{if(we(t)!=="object")return!1;const e=Ue(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},js=M("Date"),Ns=M("File"),Ps=M("Blob"),Ds=M("FileList"),Fs=t=>Se(t)&&B(t.pipe),Us=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||B(t.append)&&((e=we(t))==="formdata"||e==="object"&&B(t.toString)&&t.toString()==="[object FormData]"))},$s=M("URLSearchParams"),[Bs,qs,Vs,Ms]=["ReadableStream","Request","Response","Headers"].map(M),zs=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ue(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let n,r;if(typeof t!="object"&&(t=[t]),ie(t))for(n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else{const i=s?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(n=0;n<o;n++)a=i[n],e.call(null,t[a],a,t)}}function _t(t,e){e=e.toLowerCase();const s=Object.keys(t);let n=s.length,r;for(;n-- >0;)if(r=s[n],e===r.toLowerCase())return r;return null}const X=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yt=t=>!le(t)&&t!==X;function $e(){const{caseless:t}=yt(this)&&this||{},e={},s=(n,r)=>{const i=t&&_t(e,r)||r;Ee(e[i])&&Ee(n)?e[i]=$e(e[i],n):Ee(n)?e[i]=$e({},n):ie(n)?e[i]=n.slice():e[i]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&ue(arguments[n],s);return e}const Ws=(t,e,s,{allOwnKeys:n}={})=>(ue(e,(r,i)=>{s&&B(r)?t[i]=mt(r,s):t[i]=r},{allOwnKeys:n}),t),Hs=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Js=(t,e,s,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),s&&Object.assign(t.prototype,s)},Ks=(t,e,s,n)=>{let r,i,o;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)o=r[i],(!n||n(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=s!==!1&&Ue(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},Gs=(t,e,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=e.length;const n=t.indexOf(e,s);return n!==-1&&n===s},Ys=t=>{if(!t)return null;if(ie(t))return t;let e=t.length;if(!bt(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},Zs=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ue(Uint8Array)),Xs=(t,e)=>{const s=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=s.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},Qs=(t,e)=>{let s;const n=[];for(;(s=t.exec(e))!==null;)n.push(s);return n},en=M("HTMLFormElement"),tn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,s,n){return s.toUpperCase()+n}),wt=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),sn=M("RegExp"),vt=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),n={};ue(s,(r,i)=>{let o;(o=e(r,i,t))!==!1&&(n[i]=o||r)}),Object.defineProperties(t,n)},nn=t=>{vt(t,(e,s)=>{if(B(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const n=t[s];if(B(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},rn=(t,e)=>{const s={},n=r=>{r.forEach(i=>{s[i]=!0})};return ie(t)?n(t):n(String(t).split(e)),s},on=()=>{},an=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Be="abcdefghijklmnopqrstuvwxyz",St="0123456789",Et={DIGIT:St,ALPHA:Be,ALPHA_DIGIT:Be+Be.toUpperCase()+St},cn=(t=16,e=Et.ALPHA_DIGIT)=>{let s="";const{length:n}=e;for(;t--;)s+=e[Math.random()*n|0];return s};function ln(t){return!!(t&&B(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const un=t=>{const e=new Array(10),s=(n,r)=>{if(Se(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[r]=n;const i=ie(n)?[]:{};return ue(n,(o,a)=>{const l=s(o,r+1);!le(l)&&(i[a]=l)}),e[r]=void 0,i}}return n};return s(t,0)},dn=M("AsyncFunction"),hn=t=>t&&(Se(t)||B(t))&&B(t.then)&&B(t.catch),xt=((t,e)=>t?setImmediate:e?((s,n)=>(X.addEventListener("message",({source:r,data:i})=>{r===X&&i===s&&n.length&&n.shift()()},!1),r=>{n.push(r),X.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",B(X.postMessage)),fn=typeof queueMicrotask<"u"?queueMicrotask.bind(X):typeof process<"u"&&process.nextTick||xt,c={isArray:ie,isArrayBuffer:gt,isBuffer:Is,isFormData:Us,isArrayBufferView:As,isString:Ts,isNumber:bt,isBoolean:Ls,isObject:Se,isPlainObject:Ee,isReadableStream:Bs,isRequest:qs,isResponse:Vs,isHeaders:Ms,isUndefined:le,isDate:js,isFile:Ns,isBlob:Ps,isRegExp:sn,isFunction:B,isStream:Fs,isURLSearchParams:$s,isTypedArray:Zs,isFileList:Ds,forEach:ue,merge:$e,extend:Ws,trim:zs,stripBOM:Hs,inherits:Js,toFlatObject:Ks,kindOf:we,kindOfTest:M,endsWith:Gs,toArray:Ys,forEachEntry:Xs,matchAll:Qs,isHTMLForm:en,hasOwnProperty:wt,hasOwnProp:wt,reduceDescriptors:vt,freezeMethods:nn,toObjectSet:rn,toCamelCase:tn,noop:on,toFiniteNumber:an,findKey:_t,global:X,isContextDefined:yt,ALPHABET:Et,generateString:cn,isSpecCompliantForm:ln,toJSONObject:un,isAsyncFn:dn,isThenable:hn,setImmediate:xt,asap:fn};function S(t,e,s,n,r){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),s&&(this.config=s),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}c.inherits(S,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}}});const Ct=S.prototype,Ot={};["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=>{Ot[t]={value:t}}),Object.defineProperties(S,Ot),Object.defineProperty(Ct,"isAxiosError",{value:!0}),S.from=(t,e,s,n,r,i)=>{const o=Object.create(Ct);return c.toFlatObject(t,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),S.call(o,t.message,e,s,n,r),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const pn=null;function qe(t){return c.isPlainObject(t)||c.isArray(t)}function kt(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}function Rt(t,e,s){return t?t.concat(e).map(function(n,r){return n=kt(n),!s&&r?"["+n+"]":n}).join(s?".":""):e}function mn(t){return c.isArray(t)&&!t.some(qe)}const gn=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function xe(t,e,s){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=c.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,y){return!c.isUndefined(y[f])});const n=s.metaTokens,r=s.visitor||u,i=s.dots,o=s.indexes,a=(s.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(e);if(!c.isFunction(r))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(c.isDate(f))return f.toISOString();if(!a&&c.isBlob(f))throw new S("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(f)||c.isTypedArray(f)?a&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,y,p){let R=f;if(f&&!p&&typeof f=="object"){if(c.endsWith(y,"{}"))y=n?y:y.slice(0,-2),f=JSON.stringify(f);else if(c.isArray(f)&&mn(f)||(c.isFileList(f)||c.endsWith(y,"[]"))&&(R=c.toArray(f)))return y=kt(y),R.forEach(function(k,C){!(c.isUndefined(k)||k===null)&&e.append(o===!0?Rt([y],C,i):o===null?y:y+"[]",l(k))}),!1}return qe(f)?!0:(e.append(Rt(p,y,i),l(f)),!1)}const d=[],h=Object.assign(gn,{defaultVisitor:u,convertValue:l,isVisitable:qe});function b(f,y){if(!c.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(f),c.forEach(f,function(p,R){(!(c.isUndefined(p)||p===null)&&r.call(e,p,c.isString(R)?R.trim():R,y,h))===!0&&b(p,y?y.concat(R):[R])}),d.pop()}}if(!c.isObject(t))throw new TypeError("data must be an object");return b(t),e}function It(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function Ve(t,e){this._pairs=[],t&&xe(t,this,e)}const At=Ve.prototype;At.append=function(t,e){this._pairs.push([t,e])},At.toString=function(t){const e=t?function(s){return t.call(this,s,It)}:It;return this._pairs.map(function(s){return e(s[0])+"="+e(s[1])},"").join("&")};function bn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tt(t,e,s){if(!e)return t;const n=s&&s.encode||bn;c.isFunction(s)&&(s={serialize:s});const r=s&&s.serialize;let i;if(r?i=r(e,s):i=c.isURLSearchParams(e)?e.toString():new Ve(e,s).toString(n),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Lt{constructor(){this.handlers=[]}use(e,s,n){return this.handlers.push({fulfilled:e,rejected:s,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,function(s){s!==null&&e(s)})}}const jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_n=typeof URLSearchParams<"u"?URLSearchParams:Ve,yn=typeof FormData<"u"?FormData:null,wn=typeof Blob<"u"?Blob:null,vn={isBrowser:!0,classes:{URLSearchParams:_n,FormData:yn,Blob:wn},protocols:["http","https","file","blob","url","data"]},Me=typeof window<"u"&&typeof document<"u",ze=typeof navigator=="object"&&navigator||void 0,Sn=Me&&(!ze||["ReactNative","NativeScript","NS"].indexOf(ze.product)<0),En=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xn=Me&&window.location.href||"http://localhost",Cn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Me,hasStandardBrowserEnv:Sn,hasStandardBrowserWebWorkerEnv:En,navigator:ze,origin:xn},Symbol.toStringTag,{value:"Module"})),D={...Cn,...vn};function On(t,e){return xe(t,new D.classes.URLSearchParams,Object.assign({visitor:function(s,n,r,i){return D.isNode&&c.isBuffer(s)?(this.append(n,s.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function kn(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Rn(t){const e={},s=Object.keys(t);let n;const r=s.length;let i;for(n=0;n<r;n++)i=s[n],e[i]=t[i];return e}function Nt(t){function e(s,n,r,i){let o=s[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=i>=s.length;return o=!o&&c.isArray(r)?r.length:o,l?(c.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):((!r[o]||!c.isObject(r[o]))&&(r[o]=[]),e(s,n,r[o],i)&&c.isArray(r[o])&&(r[o]=Rn(r[o])),!a)}if(c.isFormData(t)&&c.isFunction(t.entries)){const s={};return c.forEachEntry(t,(n,r)=>{e(kn(n),r,s,0)}),s}return null}function In(t,e,s){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(t)}const de={transitional:jt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const s=e.getContentType()||"",n=s.indexOf("application/json")>-1,r=c.isObject(t);if(r&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return n?JSON.stringify(Nt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return On(t,this.formSerializer).toString();if((i=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return xe(i?{"files[]":t}:t,o&&new o,this.formSerializer)}}return r||n?(e.setContentType("application/json",!1),In(t)):t}],transformResponse:[function(t){const e=this.transitional||de.transitional,s=e&&e.forcedJSONParsing,n=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(s&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(i){if(r)throw i.name==="SyntaxError"?S.from(i,S.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:D.classes.FormData,Blob:D.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],t=>{de.headers[t]={}});const An=c.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"]),Tn=t=>{const e={};let s,n,r;return t&&t.split(`
3
+ `).forEach(function(i){r=i.indexOf(":"),s=i.substring(0,r).trim().toLowerCase(),n=i.substring(r+1).trim(),!(!s||e[s]&&An[s])&&(s==="set-cookie"?e[s]?e[s].push(n):e[s]=[n]:e[s]=e[s]?e[s]+", "+n:n)}),e},Pt=Symbol("internals");function he(t){return t&&String(t).trim().toLowerCase()}function Ce(t){return t===!1||t==null?t:c.isArray(t)?t.map(Ce):String(t)}function Ln(t){const e=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=s.exec(t);)e[n[1]]=n[2];return e}const jn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function We(t,e,s,n,r){if(c.isFunction(n))return n.call(this,e,s);if(r&&(e=s),!!c.isString(e)){if(c.isString(n))return e.indexOf(n)!==-1;if(c.isRegExp(n))return n.test(e)}}function Nn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,n)=>s.toUpperCase()+n)}function Pn(t,e){const s=c.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+s,{value:function(r,i,o){return this[n].call(this,e,r,i,o)},configurable:!0})})}let F=class{constructor(t){t&&this.set(t)}set(t,e,s){const n=this;function r(o,a,l){const u=he(a);if(!u)throw new Error("header name must be a non-empty string");const d=c.findKey(n,u);(!d||n[d]===void 0||l===!0||l===void 0&&n[d]!==!1)&&(n[d||a]=Ce(o))}const i=(o,a)=>c.forEach(o,(l,u)=>r(l,u,a));if(c.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(c.isString(t)&&(t=t.trim())&&!jn(t))i(Tn(t),e);else if(c.isHeaders(t))for(const[o,a]of t.entries())r(a,o,s);else t!=null&&r(e,t,s);return this}get(t,e){if(t=he(t),t){const s=c.findKey(this,t);if(s){const n=this[s];if(!e)return n;if(e===!0)return Ln(n);if(c.isFunction(e))return e.call(this,n,s);if(c.isRegExp(e))return e.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=he(t),t){const s=c.findKey(this,t);return!!(s&&this[s]!==void 0&&(!e||We(this,this[s],s,e)))}return!1}delete(t,e){const s=this;let n=!1;function r(i){if(i=he(i),i){const o=c.findKey(s,i);o&&(!e||We(s,s[o],o,e))&&(delete s[o],n=!0)}}return c.isArray(t)?t.forEach(r):r(t),n}clear(t){const e=Object.keys(this);let s=e.length,n=!1;for(;s--;){const r=e[s];(!t||We(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const e=this,s={};return c.forEach(this,(n,r)=>{const i=c.findKey(s,r);if(i){e[i]=Ce(n),delete e[r];return}const o=t?Nn(r):String(r).trim();o!==r&&delete e[r],e[o]=Ce(n),s[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return c.forEach(this,(s,n)=>{s!=null&&s!==!1&&(e[n]=t&&c.isArray(s)?s.join(", "):s)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
4
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const s=new this(t);return e.forEach(n=>s.set(n)),s}static accessor(t){const e=(this[Pt]=this[Pt]={accessors:{}}).accessors,s=this.prototype;function n(r){const i=he(r);e[i]||(Pn(s,r),e[i]=!0)}return c.isArray(t)?t.forEach(n):n(t),this}};F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(F.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[s]=n}}}),c.freezeMethods(F);function He(t,e){const s=this||de,n=e||s,r=F.from(n.headers);let i=n.data;return c.forEach(t,function(o){i=o.call(s,i,r.normalize(),e?e.status:void 0)}),r.normalize(),i}function Dt(t){return!!(t&&t.__CANCEL__)}function oe(t,e,s){S.call(this,t??"canceled",S.ERR_CANCELED,e,s),this.name="CanceledError"}c.inherits(oe,S,{__CANCEL__:!0});function Ft(t,e,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?t(s):e(new S("Request failed with status code "+s.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function Dn(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Fn(t,e){t=t||10;const s=new Array(t),n=new Array(t);let r=0,i=0,o;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),u=n[i];o||(o=l),s[r]=a,n[r]=l;let d=i,h=0;for(;d!==r;)h+=s[d++],d=d%t;if(r=(r+1)%t,r===i&&(i=(i+1)%t),l-o<e)return;const b=u&&l-u;return b?Math.round(h*1e3/b):void 0}}function Un(t,e){let s=0,n=1e3/e,r,i;const o=(a,l=Date.now())=>{s=l,r=null,i&&(clearTimeout(i),i=null),t.apply(null,a)};return[(...a)=>{const l=Date.now(),u=l-s;u>=n?o(a,l):(r=a,i||(i=setTimeout(()=>{i=null,o(r)},n-u)))},()=>r&&o(r)]}const Oe=(t,e,s=3)=>{let n=0;const r=Fn(50,250);return Un(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-n,u=r(l),d=o<=a;n=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&d?(a-o)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(h)},s)},Ut=(t,e)=>{const s=t!=null;return[n=>e[0]({lengthComputable:s,total:t,loaded:n}),e[1]]},$t=t=>(...e)=>c.asap(()=>t(...e)),$n=D.hasStandardBrowserEnv?((t,e)=>s=>(s=new URL(s,D.origin),t.protocol===s.protocol&&t.host===s.host&&(e||t.port===s.port)))(new URL(D.origin),D.navigator&&/(msie|trident)/i.test(D.navigator.userAgent)):()=>!0,Bn=D.hasStandardBrowserEnv?{write(t,e,s,n,r,i){const o=[t+"="+encodeURIComponent(e)];c.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),c.isString(n)&&o.push("path="+n),c.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.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 qn(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Vn(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Bt(t,e){return t&&!qn(e)?Vn(t,e):e}const qt=t=>t instanceof F?{...t}:t;function Q(t,e){e=e||{};const s={};function n(u,d,h,b){return c.isPlainObject(u)&&c.isPlainObject(d)?c.merge.call({caseless:b},u,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function r(u,d,h,b){if(c.isUndefined(d)){if(!c.isUndefined(u))return n(void 0,u,h,b)}else return n(u,d,h,b)}function i(u,d){if(!c.isUndefined(d))return n(void 0,d)}function o(u,d){if(c.isUndefined(d)){if(!c.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function a(u,d,h){if(h in e)return n(u,d);if(h in t)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,d,h)=>r(qt(u),qt(d),h,!0)};return c.forEach(Object.keys(Object.assign({},t,e)),function(u){const d=l[u]||r,h=d(t[u],e[u],u);c.isUndefined(h)&&d!==a||(s[u]=h)}),s}const Vt=t=>{const e=Q({},t);let{data:s,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=e;e.headers=o=F.from(o),e.url=Tt(Bt(e.baseURL,e.url),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(c.isFormData(s)){if(D.hasStandardBrowserEnv||D.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...d]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...d].join("; "))}}if(D.hasStandardBrowserEnv&&(n&&c.isFunction(n)&&(n=n(e)),n||n!==!1&&$n(e.url))){const u=r&&i&&Bn.read(i);u&&o.set(r,u)}return e},Mn=typeof XMLHttpRequest<"u",zn=Mn&&function(t){return new Promise(function(e,s){const n=Vt(t);let r=n.data;const i=F.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:l}=n,u,d,h,b,f;function y(){b&&b(),f&&f(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(n.method.toUpperCase(),n.url,!0),p.timeout=n.timeout;function R(){if(!p)return;const C=F.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:C,config:t,request:p};Ft(function(L){e(L),y()},function(L){s(L),y()},v),p=null}"onloadend"in p?p.onloadend=R:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(R)},p.onabort=function(){p&&(s(new S("Request aborted",S.ECONNABORTED,t,p)),p=null)},p.onerror=function(){s(new S("Network Error",S.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let C=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||jt;n.timeoutErrorMessage&&(C=n.timeoutErrorMessage),s(new S(C,v.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,t,p)),p=null},r===void 0&&i.setContentType(null),"setRequestHeader"in p&&c.forEach(i.toJSON(),function(C,v){p.setRequestHeader(v,C)}),c.isUndefined(n.withCredentials)||(p.withCredentials=!!n.withCredentials),o&&o!=="json"&&(p.responseType=n.responseType),l&&([h,f]=Oe(l,!0),p.addEventListener("progress",h)),a&&p.upload&&([d,b]=Oe(a),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",b)),(n.cancelToken||n.signal)&&(u=C=>{p&&(s(!C||C.type?new oe(null,t,p):C),p.abort(),p=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const k=Dn(n.url);if(k&&D.protocols.indexOf(k)===-1){s(new S("Unsupported protocol "+k+":",S.ERR_BAD_REQUEST,t));return}p.send(r||null)})},Wn=(t,e)=>{const{length:s}=t=t?t.filter(Boolean):[];if(e||s){let n=new AbortController,r;const i=function(u){if(!r){r=!0,a();const d=u instanceof Error?u:this.reason;n.abort(d instanceof S?d:new oe(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,i(new S(`timeout ${e} of ms exceeded`,S.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>u.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>c.asap(a),l}},Hn=function*(t,e){let s=t.byteLength;if(s<e){yield t;return}let n=0,r;for(;n<s;)r=n+e,yield t.slice(n,r),n=r},Jn=async function*(t,e){for await(const s of Kn(t))yield*Hn(s,e)},Kn=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:s,value:n}=await e.read();if(s)break;yield n}}finally{await e.cancel()}},Mt=(t,e,s,n)=>{const r=Jn(t,e);let i=0,o,a=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await r.next();if(u){a(),l.close();return}let h=d.byteLength;if(s){let b=i+=h;s(b)}l.enqueue(new Uint8Array(d))}catch(u){throw a(u),u}},cancel(l){return a(l),r.return()}},{highWaterMark:2})},ke=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zt=ke&&typeof ReadableStream=="function",Gn=ke&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Wt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Yn=zt&&Wt(()=>{let t=!1;const e=new Request(D.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ht=64*1024,Je=zt&&Wt(()=>c.isReadableStream(new Response("").body)),Re={stream:Je&&(t=>t.body)};ke&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Re[e]&&(Re[e]=c.isFunction(t[e])?s=>s[e]():(s,n)=>{throw new S(`Response type '${e}' is not supported`,S.ERR_NOT_SUPPORT,n)})})})(new Response);const Zn=async t=>{if(t==null)return 0;if(c.isBlob(t))return t.size;if(c.isSpecCompliantForm(t))return(await new Request(D.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(c.isArrayBufferView(t)||c.isArrayBuffer(t))return t.byteLength;if(c.isURLSearchParams(t)&&(t=t+""),c.isString(t))return(await Gn(t)).byteLength},Xn=async(t,e)=>c.toFiniteNumber(t.getContentLength())??Zn(e),Qn=ke&&(async t=>{let{url:e,method:s,data:n,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:b}=Vt(t);u=u?(u+"").toLowerCase():"text";let f=Wn([r,i&&i.toAbortSignal()],o),y;const p=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let R;try{if(l&&Yn&&s!=="get"&&s!=="head"&&(R=await Xn(d,n))!==0){let _=new Request(e,{method:"POST",body:n,duplex:"half"}),j;if(c.isFormData(n)&&(j=_.headers.get("content-type"))&&d.setContentType(j),_.body){const[N,V]=Ut(R,Oe($t(l)));n=Mt(_.body,Ht,N,V)}}c.isString(h)||(h=h?"include":"omit");const k="credentials"in Request.prototype;y=new Request(e,{...b,signal:f,method:s.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:k?h:void 0});let C=await fetch(y);const v=Je&&(u==="stream"||u==="response");if(Je&&(a||v&&p)){const _={};["status","statusText","headers"].forEach(K=>{_[K]=C[K]});const j=c.toFiniteNumber(C.headers.get("content-length")),[N,V]=a&&Ut(j,Oe($t(a),!0))||[];C=new Response(Mt(C.body,Ht,N,()=>{V&&V(),p&&p()}),_)}u=u||"text";let L=await Re[c.findKey(Re,u)||"text"](C,t);return!v&&p&&p(),await new Promise((_,j)=>{Ft(_,j,{data:L,headers:F.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:y})})}catch(k){throw p&&p(),k&&k.name==="TypeError"&&/fetch/i.test(k.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,t,y),{cause:k.cause||k}):S.from(k,k&&k.code,t,y)}}),Ke={http:pn,xhr:zn,fetch:Qn};c.forEach(Ke,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Jt=t=>`- ${t}`,er=t=>c.isFunction(t)||t===null||t===!1,Kt={getAdapter:t=>{t=c.isArray(t)?t:[t];const{length:e}=t;let s,n;const r={};for(let i=0;i<e;i++){s=t[i];let o;if(n=s,!er(s)&&(n=Ke[(o=String(s)).toLowerCase()],n===void 0))throw new S(`Unknown adapter '${o}'`);if(n)break;r[o||"#"+i]=n}if(!n){const i=Object.entries(r).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
5
+ `+i.map(Jt).join(`
6
+ `):" "+Jt(i[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Ke};function Ge(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new oe(null,t)}function Gt(t){return Ge(t),t.headers=F.from(t.headers),t.data=He.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Kt.getAdapter(t.adapter||de.adapter)(t).then(function(e){return Ge(t),e.data=He.call(t,t.transformResponse,e),e.headers=F.from(e.headers),e},function(e){return Dt(e)||(Ge(t),e&&e.response&&(e.response.data=He.call(t,t.transformResponse,e.response),e.response.headers=F.from(e.response.headers))),Promise.reject(e)})}const Yt="1.7.9",Ie={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ie[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});const Zt={};Ie.transitional=function(t,e,s){function n(r,i){return"[Axios v"+Yt+"] Transitional option '"+r+"'"+i+(s?". "+s:"")}return(r,i,o)=>{if(t===!1)throw new S(n(i," has been removed"+(e?" in "+e:"")),S.ERR_DEPRECATED);return e&&!Zt[i]&&(Zt[i]=!0,console.warn(n(i," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(r,i,o):!0}},Ie.spelling=function(t){return(e,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function tr(t,e,s){if(typeof t!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let r=n.length;for(;r-- >0;){const i=n[r],o=e[i];if(o){const a=t[i],l=a===void 0||o(a,i,t);if(l!==!0)throw new S("option "+i+" must be "+l,S.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new S("Unknown option "+i,S.ERR_BAD_OPTION)}}const Ae={assertOptions:tr,validators:Ie},J=Ae.validators;let ee=class{constructor(t){this.defaults=t,this.interceptors={request:new Lt,response:new Lt}}async request(t,e){try{return await this._request(t,e)}catch(s){if(s instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const r=n.stack?n.stack.replace(/^.+\n/,""):"";try{s.stack?r&&!String(s.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(s.stack+=`
7
+ `+r):s.stack=r}catch{}}throw s}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Q(this.defaults,e);const{transitional:s,paramsSerializer:n,headers:r}=e;s!==void 0&&Ae.assertOptions(s,{silentJSONParsing:J.transitional(J.boolean),forcedJSONParsing:J.transitional(J.boolean),clarifyTimeoutError:J.transitional(J.boolean)},!1),n!=null&&(c.isFunction(n)?e.paramsSerializer={serialize:n}:Ae.assertOptions(n,{encode:J.function,serialize:J.function},!0)),Ae.assertOptions(e,{baseUrl:J.spelling("baseURL"),withXsrfToken:J.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=r&&c.merge(r.common,r[e.method]);r&&c.forEach(["delete","get","head","post","put","patch","common"],f=>{delete r[f]}),e.headers=F.concat(i,r);const o=[];let a=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(e)===!1||(a=a&&f.synchronous,o.unshift(f.fulfilled,f.rejected))});const l=[];this.interceptors.response.forEach(function(f){l.push(f.fulfilled,f.rejected)});let u,d=0,h;if(!a){const f=[Gt.bind(this),void 0];for(f.unshift.apply(f,o),f.push.apply(f,l),h=f.length,u=Promise.resolve(e);d<h;)u=u.then(f[d++],f[d++]);return u}h=o.length;let b=e;for(d=0;d<h;){const f=o[d++],y=o[d++];try{b=f(b)}catch(p){y.call(this,p);break}}try{u=Gt.call(this,b)}catch(f){return Promise.reject(f)}for(d=0,h=l.length;d<h;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=Q(this.defaults,t);const e=Bt(t.baseURL,t.url);return Tt(e,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){ee.prototype[t]=function(e,s){return this.request(Q(s||{},{method:t,url:e,data:(s||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function e(s){return function(n,r,i){return this.request(Q(i||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ee.prototype[t]=e(),ee.prototype[t+"Form"]=e(!0)});let sr=class ws{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(r){s=r});const n=this;this.promise.then(r=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](r);n._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{n.subscribe(a),i=a}).then(r);return o.cancel=function(){n.unsubscribe(i)},o},e(function(r,i,o){n.reason||(n.reason=new oe(r,i,o),s(n.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 s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const e=new AbortController,s=n=>{e.abort(n)};return this.subscribe(s),e.signal.unsubscribe=()=>this.unsubscribe(s),e.signal}static source(){let e;return{token:new ws(function(s){e=s}),cancel:e}}};function nr(t){return function(e){return t.apply(null,e)}}function rr(t){return c.isObject(t)&&t.isAxiosError===!0}const Ye={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(Ye).forEach(([t,e])=>{Ye[e]=t});function Xt(t){const e=new ee(t),s=mt(ee.prototype.request,e);return c.extend(s,ee.prototype,e,{allOwnKeys:!0}),c.extend(s,e,null,{allOwnKeys:!0}),s.create=function(n){return Xt(Q(t,n))},s}const T=Xt(de);T.Axios=ee,T.CanceledError=oe,T.CancelToken=sr,T.isCancel=Dt,T.VERSION=Yt,T.toFormData=xe,T.AxiosError=S,T.Cancel=T.CanceledError,T.all=function(t){return Promise.all(t)},T.spread=nr,T.isAxiosError=rr,T.mergeConfig=Q,T.AxiosHeaders=F,T.formToJSON=t=>Nt(c.isHTMLForm(t)?new FormData(t):t),T.getAdapter=Kt.getAdapter,T.HttpStatusCode=Ye,T.default=T;const{Axios:Li,AxiosError:ji,CanceledError:Ni,isCancel:Pi,CancelToken:Di,VERSION:Fi,all:Ui,Cancel:$i,isAxiosError:Bi,spread:qi,toFormData:Vi,AxiosHeaders:Mi,HttpStatusCode:zi,formToJSON:Wi,getAdapter:Hi,mergeConfig:Ji}=T,Qt=T.create({baseURL:location.origin,timeout:6e4,params:{}});Qt.interceptors.response.use(t=>t,t=>{var e,s,n,r,i,o,a,l,u,d,h;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(y){y&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let b=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(b+=`${t.response.statusText} `),(n=(s=t.response)==null?void 0:s.config)!=null&&n.data&&(b+=`${t.response.config.data} `),(i=(r=t.response)==null?void 0:r.data)!=null&&i.message?b+=`${t.response.data.message}`:(a=(o=t.response)==null?void 0:o.data)!=null&&a.exception?b+=`${t.response.data.exception}`:(d=(u=(l=t.response)==null?void 0:l.data)==null?void 0:u.error)!=null&&d.message?(t.response.data.error.class&&(b+=`${t.response.data.error.class} `),b+=`${t.response.data.error.message}`):b+=`${(h=t.response)==null?void 0:h.data}`;const{$cosmosNotify:f}=window;throw f&&f.serious({title:"Network error",body:b}),t}else throw t});let Te=()=>({emit(t,...e){for(let s=this.events[t]||[],n=0,r=s.length;n<r;n++)s[n](...e)},events:{},on(t,e){var s;return((s=this.events)[t]||(s[t]=[])).push(e),()=>{var n;this.events[t]=(n=this.events[t])==null?void 0:n.filter(r=>e!==r)}}});class fe extends Error{constructor(e,s){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=s,this.name="ReasonError"}}class Ze extends fe{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class ir extends fe{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class z extends fe{constructor(e,s){s?super(e,s):super("Disconnected",e),this.name="DisconnectedError"}}class or extends z{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function es(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let s=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${s}`}).join(",")}}`:""}class ar{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,s){if(!this._info)return this._info={id:e,info:s},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((s,{id:n,info:r})=>(s[n]=r,s),{})}}const te=Symbol("state");class ts{constructor(e={}){this.emitter=Te(),this.params=Object.freeze(e),this.presence=new ar(this),this.initialConnect=!0,this[te]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=es({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[te]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[te]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[te]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[te]="connected";let e=!0,s=!0;this.initialConnect=!1,this.emit("connect",{reconnect:s,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[te]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[te]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,s){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,s)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(s){let n=this.receiver?this.receiver.logger:null;n&&n.warn("whisper failed: ",s)}}receive(e,s){this.emit("message",e,s)}on(e,s){return this.emitter.on(e,s)}once(e,s){let n=this.emitter.on(e,(...r)=>{n(),s(...r)});return n}emit(e,...s){return this.emitter.emit(e,...s)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,s)=>{let n=[()=>delete this._pendingSubscribe];n.push(this.on("connect",()=>{n.forEach(r=>r()),e()})),n.push(this.on("close",r=>{n.forEach(i=>i()),s(r||new fe("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class cr{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let s=this.channels.indexOf(e);s>-1&&this.channels.splice(s,1)}notify(e,...s){this.state=e==="restored"?"connected":e,s.length===1?this.channels.forEach(n=>n[e](s[0])):this.channels.forEach(n=>n[e]())}pending(e){this._checkIntent(e);let s=this._pendings[0];return!s||s.intent!==e?Promise.resolve():s.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let s,n={promise:new Promise(i=>{s=i}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(n),1),s(n)},canceled:!1,acquired:!1},r=this._pendingTop;return this._pendings.push(n),r&&await r.promise,this.gvl&&await this.gvl.acquire(n,e),n.acquired=!0,n}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let s=this._pendingTop;return!s||s.acquired||s.intent!==e?!1:(this._pendings.pop(),s.canceled=!0,!0)}}class lr{constructor(){this.queue=[]}async acquire(e,s){s==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class ur{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new lr),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:s,unsubscribe:n}){let r=this._subscriptions[e]=new cr(e);return r.remoteId=this._localToRemote[e],r.subscriber=s,r.unsubscriber=n,r.gvl=this.glv,r}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,s){this._localToRemote[e]=s;let n=this.get(e);n&&(n.remoteId=s)}}class dr{constructor(e={}){this.subscriptions=new ur(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,s){this._remoteToLocal[s]=e,this.subscriptions.storeRemoteId(e,s),this.flush(s)}unsubscribe(e){let s=this.subscriptions.get(e);if(!s)return;let n=s.remoteId;n&&delete this._remoteToLocal[n],this.subscriptions.remove(e)}transmit(e,s,n){let r=this._remoteToLocal[e];if(!r){this._pendingMessages.push([e,s,n]);return}let i=this.subscriptions.get(r);i&&i.channels.forEach(o=>{o.receive(s,n)})}notify(e,s,n){let r=this._remoteToLocal[e];if(!r)return;let i=this.subscriptions.get(r);i&&i.channels.forEach(o=>o.emit(s,n))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let s=[];for(let n of this._pendingMessages)n[0]===e?this.transmit(n[0],n[1],n[2]):s.push(n);this._pendingMessages=s}}const ss={debug:0,info:1,warn:2,error:3};class ns{constructor(e){this.level=e||"warn"}log(e,s,n){ss[e]<ss[this.level]||this.writeLogEntry(e,s,n)}writeLogEntry(){throw Error("Not implemented")}debug(e,s){this.log("debug",e,s)}info(e,s){this.log("info",e,s)}warn(e,s){this.log("warn",e,s)}error(e,s){this.log("error",e,s)}}class pe extends ns{writeLogEntry(){}}class hr{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let fr=0;class rs{constructor(e={}){let{logger:s}=e;this.logger=s||new pe,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,s){let n={channel:e};s&&Object.assign(n,s);let r=es(n);if(this.pendingUnsubscriptions[r]){let o=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${o}`,r),new Promise(a=>{setTimeout(()=>{a(this.subscribe(e,s))},o)})}if(this.pendingSubscriptions[r])return this.logger.warn("subscription is already pending, skipping",r),Promise.reject(Error("Already subscribing"));let i=this.subscribeRetryInterval;return new Promise((o,a)=>{let l=++fr;this.pendingSubscriptions[r]={resolve:o,reject:a,id:l},this.cable.send(this.buildSubscribeRequest(r)),this.maybeRetrySubscribe(l,r,i)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,s,n){setTimeout(()=>{let r=this.pendingSubscriptions[s];r&&r.id===e&&(this.logger.warn(`no subscription ack received in ${n}ms, retrying subscribe`,s),this.cable.send(this.buildSubscribeRequest(s)),this.maybeExpireSubscribe(e,s,n))},n)}maybeExpireSubscribe(e,s,n){setTimeout(()=>{let r=this.pendingSubscriptions[s];r&&r.id===e&&(delete this.pendingSubscriptions[s],r.reject(new ir(`Haven't received subscription ack in ${n*2}ms for ${s}`)))},n)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,s,n){return s==="$whisper"?this.whisper(e,n):(n||(n={}),n.action=s,this.cable.send({command:"message",identifier:e,data:JSON.stringify(n)}),Promise.resolve())}whisper(e,s){return this.cable.send({command:"whisper",identifier:e,data:s}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:s,identifier:n,message:r,reason:i,reconnect:o}=e;if(s==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),s==="welcome"){let a=e.sid;return a&&this.cable.setSessionId(a),this.cable.connected()}if(s==="disconnect"){let a=new z(i);this.reset(a),o===!1?this.cable.closed(a):this.cable.disconnected(a);return}if(s==="confirm_subscription"){let a=this.pendingSubscriptions[n];if(!a){this.logger.error("subscription not found, unsubscribing",{type:s,identifier:n}),this.unsubscribe(n);return}return delete this.pendingSubscriptions[n],a.resolve(n)}if(s==="reject_subscription"){let a=this.pendingSubscriptions[n];return a?(delete this.pendingSubscriptions[n],a.reject(new Ze)):this.logger.error("subscription not found",{type:s,identifier:n})}if(r)return{identifier:n,message:r};this.logger.warn(`unknown message type: ${s}`,{message:e})}reset(e){for(let s in this.pendingSubscriptions)this.pendingSubscriptions[s].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const is=()=>Date.now()/1e3|0;class pr extends rs{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=is()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let s in this.pendingPresence)this.pendingPresence[s].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:s,identifier:n,message:r}=e;if(s==="disconnect"||s==="reject_subscription")return super.receive(e);if(s==="confirm_subscription")return this.subscriptionStreams[n]||(this.subscriptionStreams[n]=new Set),super.receive(e);if(s==="ping")return this.restoreSince&&(this.restoreSince=is()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),s==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",n);return}if(s==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",n);return}if(s==="welcome"){if(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),e.restored){let i=e.restored_ids||Object.keys(this.subscriptionStreams);for(let o of i)this.cable.send({identifier:o,command:"history",history:this.historyRequestFor(o)}),this.presenceInfo[o]&&this.cable.send({identifier:o,command:"join",presence:this.presenceInfo[o]});return this.cable.restored(i)}return this.cable.connected(this.sessionId)}if(s==="presence"){let i=r.type;if(i==="info"){let o=this.pendingPresence[n];o&&(delete this.pendingPresence[n],o.resolve(r))}else if(i==="error"){let o=this.pendingPresence[n];o&&(delete this.pendingPresence[n],o.reject(new Error("failed to retrieve presence")))}return{type:s,identifier:n,message:r}}if(r){let i=this.trackStreamPosition(n,e.stream_id,e.epoch,e.offset);return{identifier:n,message:r,meta:i}}this.logger.warn(`unknown message type: ${s}`,{message:e})}perform(e,s,n){switch(s){case"$presence:join":return this.join(e,n);case"$presence:leave":return this.leave(e,n);case"$presence:info":return this.presence(e,n)}return super.perform(e,s,n)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let s=super.buildSubscribeRequest(e),n=this.historyRequestFor(e);n&&(s.history=n,this.pendingHistory[e]=!0);let r=this.presenceInfo[e];return r&&(s.presence=r),s}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let s={},n=!1;if(this.subscriptionStreams[e])for(let r of this.subscriptionStreams[e]){let i=this.streamsPositions[r];i&&(n=!0,s[r]=i)}if(!(!n&&!this.restoreSince))return{since:this.restoreSince,streams:s}}trackStreamPosition(e,s,n,r){if(!(!s||!n))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(s),this.streamsPositions[s]={epoch:n,offset:r},{stream:s,epoch:n,offset:r}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,s){return this.presenceInfo[e]=s,this.cable.send({command:"join",identifier:e,presence:s}),Promise.resolve()}async leave(e,s){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:s}),Promise.resolve()}presence(e,s){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((n,r)=>{this.pendingPresence[e]={resolve:n,reject:r},this.cable.send({command:"presence",identifier:e,data:s})})}}class mr extends fe{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Xe extends ts{constructor(e,s){super(s),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}ye(Xe,"identifier","__ghost__");const gr="$pubsub";class Qe extends ts{async perform(e,s){if(e.startsWith("$"))return super.perform(e,s);throw Error("not implemented")}}ye(Qe,"identifier",gr);const se=Symbol("state");let br=class{constructor({transport:t,protocol:e,encoder:s,logger:n,lazy:r,hubOptions:i,performFailures:o,transportConfigurator:a}){this.emitter=Te(),this.transport=t,this.encoder=s,this.logger=n||new pe,this.protocol=e,this.performFailures=o||"throw",this.protocol.attached(this),this.hub=new dr(i||{}),this[se]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=a,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,r===!1&&this.connect().catch(()=>{})}get state(){return this[se]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let t=this.state==="idle";this[se]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:t}),await this.transport.open()}catch(s){this.handleClose(s)}return e}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[se]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new z("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[se]="connected",this.hub.subscriptions.all().forEach(n=>{t&&n.remoteId&&t.includes(n.remoteId)?n.notify("restored"):(n.notify("disconnected",new z("recovery_failed")),this._resubscribe(n))});let e=!this.initialConnect,s=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:s})}notify(t,e,s){e&&typeof e!="string"&&(s=e,e=void 0),e?this.hub.notify(e,"info",{type:t,data:s}):this.emit("info",{type:t,data:s})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new z(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[se]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let e;t&&(e=t instanceof z?t:new z(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[se]="closed";let s=e||new z("cable_closed");this.hub.subscriptions.all().forEach(n=>n.notify("disconnected",s)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(t);if(e===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",e);let s=this.protocol.receive(e);if(s){this.logger.debug("processed incoming message",s);let{type:n,identifier:r,message:i,meta:o}=s;n?this.hub.notify(r,n,i):this.hub.transmit(r,i,o)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(t);if(e===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(e)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let e=new Qe({stream_name:t});return this.subscribe(e)}streamFromSigned(t){let e=new Qe({signed_stream_name:t});return this.subscribe(e)}subscribeTo(t,e){let s,n;return typeof t=="string"&&(n=t,t=Xe),s=n?new t(n,e):new t(e),this.subscribe(s)}subscribe(t){if(!t.attached(this))return t;let e=t.identifier;t.connecting();let s=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:n=>this._subscribe(n,t.channelId,t.params),unsubscribe:n=>this._unsubscribe(n)});return s.add(t),s.intent==="subscribed"&&s.state==="connected"&&t.connected(),s.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,e,s){let n=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:n});return}this.logger.debug("acquiring subscribe lock",{identifier:n});let r=await t.acquire("subscribed");if(r.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:n}),r.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:n}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),r.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:n}),r.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:n}),t.notify("connected"),r.release();return}let i={identifier:e,params:s};this.logger.debug("subscribing",i);try{let o=await this.protocol.subscribe(e,s);this.hub.subscribe(n,o),this.logger.debug("subscribed",{...i,remoteId:o}),t.notify("connected")}catch(o){if(o){if(o instanceof Ze&&this.logger.warn("rejected",i),o instanceof z){this.logger.debug("disconnected during subscription; will retry on connect",i),r.release();return}this.logger.error("failed to subscribe",{error:o,...i})}t.close(o),this.hub.unsubscribe(n)}r.release()}unsubscribe(t){let e=t.identifier,s=this.hub.subscriptions.get(e);if(!s)throw Error(`Subscription not found: ${e}`);s.remove(t),t.closed(),s.maybeUnsubscribe()}async _unsubscribe(t){let e=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let s=await t.acquire("unsubscribed");if(s.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),s.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:t.intent}),s.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:e}),s.release();return}let n=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:n}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),t.close(),this.hub.unsubscribe(e),s.release();return}try{await this.protocol.unsubscribe(n),this.logger.debug("unsubscribed remotely",{id:e})}catch(r){r&&(r instanceof z?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:r}):this.logger.error("unsubscribe failed",{id:e,error:r}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(e)):t.state="closed",s.release()}async perform(t,e,s){if(this.performFailures==="throw")return this._perform(t,e,s);try{return await this._perform(t,e,s)}catch(n){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:n});return}}async _perform(t,e,s){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new mr;let n=this.hub.subscriptions.get(t);if(!n)throw Error(`Subscription not found: ${t}`);if(await n.pending("subscribed"),n.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let r=n.remoteId,i={id:r,action:e,payload:s};this.logger.debug("perform",i);try{let o=await this.protocol.perform(r,e,s);return o&&this.logger.debug("perform result",{message:o,request:i}),o}catch(o){throw this.logger.error("perform failed",{error:o,request:i}),o}}on(t,e){return this.emitter.on(t,e)}once(t,e){let s=this.emitter.on(t,(...n)=>{s(),e(...n)});return s}emit(t,...e){return this.emitter.emit(t,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,e)=>{let s=[()=>delete this._pendingConnect];s.push(this.on("connect",()=>{s.forEach(n=>n()),t()})),s.push(this.on("close",n=>{s.forEach(r=>r()),e(n)})),s.push(this.on("disconnect",n=>{s.forEach(r=>r()),e(n)}))}),this._pendingConnect)}};const _r={maxMissingPings:2,maxReconnectAttempts:1/0},ae=()=>Date.now(),os=(t,e)=>{e=e||{};let{backoffRate:s,jitterRatio:n,maxInterval:r}=e;return s=s||2,n===void 0&&(n=.5),i=>{let o=t*s**i,a=o*s,l=o+(a-o)*Math.random(),u=2*(Math.random()-.5)*n;return l=l*(1+u),r&&r<l&&(l=r),l}};let as=class{constructor({pingInterval:t,...e}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(e=Object.assign({},_r,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new pe,this.state="pending_connect",this.attempts=0,this.disconnectedAt=ae()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=ae(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=ae(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=ae(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=ae()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=ae()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new or))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class yr{constructor(e,s={}){this.transports=e,this.transport=null,this.emitter=Te(),this.unbind=[],this.logger=s.logger||new pe}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let s=this.transports[e];try{this.transport=s,this.resetListeners(),this.logger.debug(`Trying to connect via ${s.displayName()}`),await s.open(),this.logger.debug(`Connected via ${s.displayName()}`);return}catch(n){this.logger.debug(`Failed to connect via ${s.displayName()}: ${n.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,s){this.transports.forEach(n=>{n.setParam(e,s)})}setToken(e,s){this.transports.forEach(n=>{n.setToken(e,s)})}on(e,s){return this.emitter.on(e,s)}once(e,s){let n=this.emitter.on(e,(...r)=>{n(),s(...r)});return n}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class wr{constructor(e,s={}){this.url=e;let n=s.websocketImplementation;if(n)this.Impl=n;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Te();let{format:r,subprotocol:i,authStrategy:o}=s;this.format=r||"text",this.connectionOptions=s.websocketOptions,this.authStrategy=o||"param",this.authProtocol="",this.subprotocol=i}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((s,n)=>{let r=[];r.push(this.once("open",()=>{r.forEach(i=>i()),s()})),r.push(this.once("close",()=>{r.forEach(i=>i()),n(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,s){let n=new URL(this.url);n.searchParams.set(e,s);let r=`${n.protocol}//${n.host}${n.pathname}?${n.searchParams}`;this.setURL(r)}setToken(e,s="jid"){if(this.authStrategy==="param")this.setParam(s,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let n=`x-${s}`.toLowerCase();n=Object.keys(this.connectionOptions.headers).find(r=>r.toLowerCase()===n)||n,this.connectionOptions.headers[n]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,s){return this.emitter.on(e,s)}once(e,s){let n=this.emitter.on(e,(...r)=>{n(),s(...r)});return n}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let s=e.data;this.format==="binary"&&(s=new Uint8Array(s)),this.emitter.emit("data",s)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const cs={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function vr(t,e){if(typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),e=e||{},!t&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},cs,e);let{protocol:s,websocketImplementation:n,websocketFormat:r,websocketOptions:i,websocketAuthStrategy:o,fallbacks:a,logLevel:l,logger:u,transport:d,encoder:h,lazy:b,monitor:f,pingInterval:y,reconnectStrategy:p,maxMissingPings:R,maxReconnectAttempts:k,subprotocol:C,tokenRefresher:v,historyTimestamp:L,protocolOptions:_,concurrentSubscribes:j,performFailures:N,transportConfigurator:V,auth:K}=e;if(u=u||new pe(l),typeof s=="string"){C=C||s;let ce=s.substring(0,s.lastIndexOf("-")),U=s.substring(s.lastIndexOf("-")+1);if(_=_||{},ce==="actioncable-v1")s=new rs({logger:u,..._});else if(ce==="actioncable-v1-ext")s=new pr({logger:u,historyTimestamp:L,..._});else throw Error(`Protocol is not supported yet: ${s}`);if(U==="json")h=h||new hr,r=r||"text";else if(U==="msgpack"){if(r="binary",!h)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(U==="protobuf"){if(r=r||"binary",!h)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${s}`)}if(!s)throw Error("Protocol must be specified");d=d||new wr(t,{websocketImplementation:n,websocketOptions:i,subprotocol:C,authStrategy:o,format:r}),a&&(d=new yr([d,...a],{logger:u})),K&&K.token&&d.setToken(K.token,K.param||"jid"),p=p||os(y),f!==!1&&(f=f||new as({pingInterval:y,reconnectStrategy:p,maxMissingPings:R,maxReconnectAttempts:k,logger:u}));let ot={concurrentSubscribes:j},W=new br({protocol:s,transport:d,encoder:h,logger:u,lazy:b,hubOptions:ot,performFailures:N,transportConfigurator:V});return f&&(f.watch(W),W.monitor=f),v&&Sr(W,async()=>{try{await v(d)}catch(ce){return u.error("Failed to refresh authentication token: "+ce),!1}return W.connect().catch(()=>{}),!0}),W}function Sr(t,e){let s=!1;t.on("connect",()=>s=!1),t.on("close",async n=>{if(n){if(s){t.logger.warn("Token auto-refresh is disabled",n);return}n.reason==="token_expired"&&(s=!0,await e())}})}class Er{constructor(e){this.channel=e}notify(e,...s){typeof this[e]=="function"&&this[e](...s)}perform(e,s={}){this.channel.perform(e,s)}send(e){this.channel.send(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class xr extends Xe{constructor(e,s,n){super(e,s),this.subscription=new Er(this),Object.assign(this.subscription,n),this.on("connect",()=>this.subscription.notify("connected")),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",r=>this.subscription.notify("received",r)),this.on("close",r=>{r&&r instanceof Ze?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class Cr{constructor(e){this.cable=e}create(e,s){let n,r;typeof e=="object"?(n=e.channel,delete e.channel,r=e):(n=e,r={});let i=new xr(n,r,s);return i.subscription.notify("initialized"),this.cable.subscribe(i),i.subscription}findAll(e){return this.cable.hub.channels.filter(s=>s.identifier===e).map(s=>s.subscription)}}class Or{constructor(e){this.cable=e,this.subscriptions=new Cr(e)}}class kr extends ns{writeLogEntry(e,s,n){n?console[e](s,n):console[e](s)}}class Rr extends as{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},s=r=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:r})},n=()=>this.disconnect(new z("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",s,!1),window.addEventListener("online",s,!1),window.addEventListener("resume",s,!1),window.addEventListener("freeze",n,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",s,!1),window.removeEventListener("online",s,!1),window.removeEventListener("resume",s,!1),window.removeEventListener("freeze",n,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const Ir=["cable","action-cable"],Ar="/cable",Le=(t,e)=>{for(let s of Ir){let n=t.head.querySelector(`meta[name='${s}-${e}']`);if(n)return n.getAttribute("content")}},ls=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,Tr=()=>{if(typeof document<"u"&&document.head){let t=Le(document,"url");if(t)return ls(t)}return ls(Ar)},Lr=()=>{if(typeof document<"u"&&document.head){let t=Le(document,"history-timestamp");if(t)return t|0}},jr=()=>{if(typeof document<"u"&&document.head)return Le(document,"token")},Nr=()=>{if(typeof document<"u"&&document.head)return Le(document,"token-param")};function Pr(t,e){typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),t=t||Tr(),e=e||{},e.historyTimestamp||(e.historyTimestamp=Lr());let s=jr();if(s){let u=Nr();e.auth=Object.assign({token:s,param:u},e.auth||{})}e=Object.assign({},cs,e);let{logLevel:n,logger:r,pingInterval:i,reconnectStrategy:o,maxMissingPings:a,maxReconnectAttempts:l}=e;return r=e.logger=e.logger||new kr(n),o=e.reconnectStrategy=e.reconnectStrategy||os(i),e.monitor!==!1&&(e.monitor=e.monitor||new Rr({pingInterval:i,reconnectStrategy:o,maxMissingPings:a,maxReconnectAttempts:l,logger:r})),vr(t,e)}function Dr(t,e){let s=Pr(t,e);return new Or(s)}class us{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,s,n={},r={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(i=>{if(i&&OpenC3Auth.setTokens(),this._cable==null){let o=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);o=new URL(o,document.baseURI).href,this._cable=Dr(o)}return this._cable.subscriptions.create({channel:e,...r},n)})}recordPing(){}}function et(t){return Fr.test(t)}const Fr=/^-?[0-9]+$/;function ds(t){return Ur.test(t)}const Ur=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function hs(t,e){const s=Number.parseFloat(t),n=String(s),r=fs(t),i=fs(n);return!!(r===i||(e==null?void 0:e.approx)===!0&&!et(t)&&i.length>=14&&r.startsWith(i.substring(0,14)))}let me=function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t}({});function $r(t){if(hs(t,{approx:!1}))return;if(et(t))return me.truncate_integer;const e=Number.parseFloat(t);return Number.isFinite(e)?e===0?me.underflow:me.truncate_float:me.overflow}function fs(t){return t.replace(Br,"").replace(Vr,"").replace(Mr,"").replace(qr,"")}const Br=/[eE][+-]?\d+$/,qr=/^-?(0*)?/,Vr=/\./,Mr=/0+$/;class zr{constructor(e){if(ye(this,"isLosslessNumber",!0),!ds(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=$r(this.value);if(e===void 0||e===me.truncate_float)return Number.parseFloat(this.value);if(et(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function Wr(t){return t&&typeof t=="object"&&t.isLosslessNumber===!0||!1}function Hr(t){return new zr(t)}function Jr(t,e){return tt({"":t},"",t,e)}function tt(t,e,s,n){return Array.isArray(s)?n.call(t,e,Gr(s,n)):s&&typeof s=="object"&&!Wr(s)?n.call(t,e,Kr(s,n)):n.call(t,e,s)}function Kr(t,e){for(const s of Object.keys(t)){const n=tt(t,s,t[s],e);n!==void 0?t[s]=n:delete t[s]}return t}function Gr(t,e){for(let s=0;s<t.length;s++)t[s]=tt(t,String(s),t[s],e);return t}function Yr(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hr,n=0;const r=a();return y(r),R(),e?Jr(r,e):r;function i(){if(t.charCodeAt(n)===si){n++,u();const E={};let P=!0;for(;n<t.length&&t.charCodeAt(n)!==ms;){P?P=!1:(b(),u());const ne=n,ge=d();if(ge===void 0){v();return}u(),f();const at=a();if(at===void 0){K();return}Object.prototype.hasOwnProperty.call(E,ge)&&!st(at,E[ge])&&L(ge,ne+1),E[ge]=at}return t.charCodeAt(n)!==ms&&_(),n++,E}}function o(){if(t.charCodeAt(n)===ni){n++,u();const E=[];let P=!0;for(;n<t.length&&t.charCodeAt(n)!==gs;){P?P=!1:b();const ne=a();p(ne),E.push(ne)}return t.charCodeAt(n)!==gs&&j(),n++,E}}function a(){u();const E=d()??h()??i()??o()??l("true",!0)??l("false",!1)??l("null",null);return u(),E}function l(E,P){if(t.slice(n,n+E.length)===E)return n+=E.length,P}function u(){for(;Zr(t.charCodeAt(n));)n++}function d(){if(t.charCodeAt(n)===nt){n++;let E="";for(;n<t.length&&t.charCodeAt(n)!==nt;){if(t.charCodeAt(n)===ti){const P=t[n+1],ne=ei[P];ne!==void 0?(E+=ne,n++):P==="u"?je(t.charCodeAt(n+2))&&je(t.charCodeAt(n+3))&&je(t.charCodeAt(n+4))&&je(t.charCodeAt(n+5))?(E+=String.fromCharCode(Number.parseInt(t.slice(n+2,n+6),16)),n+=5):ot(n):V(n)}else Qr(t.charCodeAt(n))?E+=t[n]:N(t[n]);n++}return C(),n++,E}}function h(){const E=n;if(t.charCodeAt(n)===bs&&(n++,k(E)),t.charCodeAt(n)===rt)n++;else if(Xr(t.charCodeAt(n)))for(n++;Ne(t.charCodeAt(n));)n++;if(t.charCodeAt(n)===di)for(n++,k(E);Ne(t.charCodeAt(n));)n++;if(t.charCodeAt(n)===gi||t.charCodeAt(n)===mi)for(n++,(t.charCodeAt(n)===bs||t.charCodeAt(n)===ci)&&n++,k(E);Ne(t.charCodeAt(n));)n++;if(n>E)return s(t.slice(E,n))}function b(){if(t.charCodeAt(n)!==ui)throw new SyntaxError(`Comma ',' expected after value ${U()}`);n++}function f(){if(t.charCodeAt(n)!==hi)throw new SyntaxError(`Colon ':' expected after property name ${U()}`);n++}function y(E){if(E===void 0)throw new SyntaxError(`JSON value expected ${U()}`)}function p(E){if(E===void 0)throw new SyntaxError(`Array item expected ${U()}`)}function R(){if(n<t.length)throw new SyntaxError(`Expected end of input ${U()}`)}function k(E){if(!Ne(t.charCodeAt(n))){const P=t.slice(E,n);throw new SyntaxError(`Invalid number '${P}', expecting a digit ${U()}`)}}function C(){if(t.charCodeAt(n)!==nt)throw new SyntaxError(`End of string '"' expected ${U()}`)}function v(){throw new SyntaxError(`Quoted object key expected ${U()}`)}function L(E,P){throw new SyntaxError(`Duplicate key '${E}' encountered at position ${P}`)}function _(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${U()}`)}function j(){throw new SyntaxError(`Array item or end of array ']' expected ${U()}`)}function N(E){throw new SyntaxError(`Invalid character '${E}' ${W()}`)}function V(E){const P=t.slice(E,E+2);throw new SyntaxError(`Invalid escape character '${P}' ${W()}`)}function K(){throw new SyntaxError(`Object value expected after ':' ${W()}`)}function ot(E){const P=t.slice(E,E+6);throw new SyntaxError(`Invalid unicode character '${P}' ${W()}`)}function W(){return`at position ${n}`}function ce(){return n<t.length?`but got '${t[n]}'`:"but reached end of input"}function U(){return`${ce()} ${W()}`}}function Zr(t){return t===ri||t===ii||t===oi||t===ai}function je(t){return t>=rt&&t<=it||t>=fi&&t<=bi||t>=pi&&t<=_i}function Ne(t){return t>=rt&&t<=it}function Xr(t){return t>=li&&t<=it}function Qr(t){return t>=32&&t<=1114111}function st(t,e){return t===e?!0:Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((s,n)=>st(s,e[n])):ps(t)&&ps(e)?[...new Set([...Object.keys(t),...Object.keys(e)])].every(s=>st(t[s],e[s])):!1}function ps(t){return typeof t=="object"&&t!==null}const ei={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
8
+ `,r:"\r",t:" "},ti=92,si=123,ms=125,ni=91,gs=93,ri=32,ii=10,oi=9,ai=13,nt=34,ci=43,bs=45,rt=48,li=49,it=57,ui=44,di=46,hi=58,fi=65,pi=97,mi=69,gi=101,bi=70,_i=102;function _s(t,e,s,n){return r(t);function r(l,u){if(Array.isArray(n)){const d=n.find(h=>h.test(l));if(d){const h=d.stringify(l);if(typeof h!="string"||!ds(h))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${h})`);return h}}if(typeof l=="boolean"||typeof l=="number"||typeof l=="string"||l===null||l instanceof Date||l instanceof Boolean||l instanceof Number||l instanceof String)return JSON.stringify(l);if(l!=null&&l.isLosslessNumber||typeof l=="bigint")return l.toString();if(Array.isArray(l))return i(l);if(l&&typeof l=="object")return o(l)}function i(l,u){if(l.length===0)return"[]";let d="[";for(let h=0;h<l.length;h++){const b=l[h];typeof b<"u"&&typeof b!="function"?d+=r(b):d+="null",h<l.length-1&&(d+=",")}return d+="]",d}function o(l,u){if(typeof l.toJSON=="function")return _s(l.toJSON(),e,s,void 0);const d=Array.isArray(e)?e.map(String):Object.keys(l);if(d.length===0)return"{}";let h=!0,b="{";for(const f of d){const y=l[f];if(a(f,y)){h?h=!1:b+=",";const p=JSON.stringify(f);b+=`${p}:`,b+=r(y)}}return b+="}",b}function a(l,u){return typeof u<"u"&&typeof u!="function"&&typeof u!="symbol"}}function yi(t){return hs(t)?parseFloat(t):BigInt(t)}class ys{constructor(){ye(this,"id",1)}async exec(e,s,n={},r={},i=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return n.scope=window.openc3Scope,r.manual=!0,(await Qt.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:s,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...r},timeout:i,transformRequest:[(o,a)=>_s(o)],transformResponse:[o=>Yr(o,void 0,yi)]})).data.result}catch(o){let a=new Error;throw o.response?(a.name=o.response.data.error.data.class,a.message=o.response.data.error.data.message,a.object=o.response.data.error):o.request?(a.name="Request error",a.message="Request error, no response received"):a.name="Unknown error",a}}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,s){return this.exec("map_target_to_interface",[e,s])}connect_interface(e,...s){return s.length>0?this.exec("connect_interface",[e,...s]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,s,...n){return this.exec("interface_cmd",[e,s,...n])}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,s,n){return this.exec("get_item",[e,s,n])}get_param(e,s,n){return this.exec("get_param",[e,s,n])}get_parameter(e,s,n){return this.exec("get_param",[e,s,n])}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,s){return this.exec("get_tlm",[e,s])}get_telemetry(e,s){return this.exec("get_tlm",[e,s])}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,s=!1){return this.exec("get_all_tlm_names",[e],{hidden:s})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,s,n,r=30){const i=await this.exec("get_tlm_packet",[e,s],{type:n,stale_time:r});if(i!=null){let o=i.length,a=null;for(let l=0;l<o;l++)a=this.decode_openc3_type(i[l][1]),a!==null&&(i[l][1]=a)}return i}get_packet_derived_items(e,s){return this.exec("get_packet_derived_items",[e,s])}get_tlm_buffer(e,s){return this.exec("get_tlm_buffer",[e,s])}async get_tlm_values(e,s=30,n=null){let r={stale_time:s};n!==null&&(r.cache_timeout=n);const i=await this.exec("get_tlm_values",[e],r,{},1e4);let o=i[0].length,a=null;for(let l=0;l<o;l++)a=this.decode_openc3_type(i[0][l]),a!==null&&(i[0][l]=a);return i}get_limits(e,s,n){return this.exec("get_limits",[e,s,n])}async tlm(e,s,n,r="CONVERTED"){let i=null;if(s===void 0)i=await this.exec("tlm",[e]);else if(n===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(s))i=await this.exec("tlm",[e],{type:s});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${s}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}else i=await this.exec("tlm",[e,s,n],{type:r});let o=this.decode_openc3_type(i);return o!==null&&(i=o),i}async inject_tlm(e,s,n=null,r="CONVERTED"){await this.exec("inject_tlm",[e,s,n],{type:r})}set_tlm(e,s,n,r){return this.exec("set_tlm",[e,s,n],{type:r})}override_tlm(e,s,n,r){return this.exec("override_tlm",[e,s,n],{type:r})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,s,n,r){return this.exec("normalize_tlm",[e,s,n],{type:r})}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,s=!1){return this.exec("get_all_cmd_names",[e],{hidden:s})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,s){return this.exec("get_cmd",[e,s])}get_command(e,s){return this.exec("get_cmd",[e,s])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,s,n,r="CONVERTED"){return this.exec("get_cmd_value",[e,s,n,r])}get_cmd_buffer(e,s){return this.exec("get_cmd_buffer",[e,s])}_cmd(e,s,n,r,i){let o=null;for(let a in r)Object.prototype.hasOwnProperty.call(r,a)&&(o=this.encode_openc3_type(r[a]),o!==null&&(r[a]=o));return this.exec(e,[s,n,r],{},i)}get_cmd_hazardous(e,s,n,r={}){return s===void 0?this.exec("get_cmd_hazardous",e,{},r):this._cmd("get_cmd_hazardous",e,s,n,r)}cmd(e,s,n,r={}){return s===void 0?this.exec("cmd",e,{},r):this._cmd("cmd",e,s,n,r)}cmd_no_range_check(e,s,n,r={}){return s===void 0?this.exec("cmd_no_range_check",e,{},r):this._cmd("cmd_no_range_check",e,s,n,r)}cmd_raw(e,s,n,r={}){return s===void 0?this.exec("cmd_raw",e,{},r):this._cmd("cmd_raw",e,s,n,r)}cmd_raw_no_range_check(e,s,n,r={}){return s===void 0?this.exec("cmd_raw_no_range_check",e,{},r):this._cmd("cmd_raw_no_range_check",e,s,n,r)}cmd_no_hazardous_check(e,s,n,r={}){return s===void 0?this.exec("cmd_no_hazardous_check",e,{},r):this._cmd("cmd_no_hazardous_check",e,s,n,r)}cmd_no_checks(e,s,n,r={}){return s===void 0?this.exec("cmd_no_checks",e,{},r):this._cmd("cmd_no_checks",e,s,n,r)}cmd_raw_no_hazardous_check(e,s,n,r={}){return s===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},r):this._cmd("cmd_raw_no_hazardous_check",e,s,n,r)}cmd_raw_no_checks(e,s,n,r={}){return s===void 0?this.exec("cmd_raw_no_checks",e,{},r):this._cmd("cmd_raw_no_checks",e,s,n,r)}build_cmd(e,s,n){return s===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,s,n)}build_command(e,s,n){return s===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,s,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,s){return this.exec("send_raw",[e,s])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,s){return this.exec("load_config",[e,s])}save_config(e,s,n){return this.exec("save_config",[e,s,n])}delete_config(e,s){return this.exec("delete_config",[e,s])}enable_limits(e,s,n){return this.exec("enable_limits",[e,s,n])}disable_limits(e,s,n){return this.exec("disable_limits",[e,s,n])}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,s){return this.exec("set_setting",[e,s])}update_news(){return this.exec("update_news",[])}save_setting(e,s){return this.exec("set_setting",[e,s])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const s=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",s),r=new Uint8Array(n);return Array.from(r).map(i=>i.toString(16).padStart(2,"0")).join("")}}}const wi={components:{LabelvalueWidget:ft,LabelvaluelimitsbarWidget:pt},props:{modelValue:{type:Array,default:()=>[]},timeZone:{type:String,default:"local"}},mixins:[Pe],data(){return{api:null,cable:new us,ignored:[],ignoredItemsDialog:!1,overallState:"GREEN",currentLimitsSet:"",items:[],itemList:[],screenItems:[],screenValues:{},updateCounter:0,widgetSettings:[["WIDTH","580px"],["0","WIDTH","200px"],["1","WIDTH","200px"],["2","WIDTH","180px"]]}},computed:{textFieldClass(){return this.overallState?`textfield-${this.overallState.toLowerCase()}`:""},overallStateFormatted(){return this.ignored.length===0?this.overallState:`${this.overallState} (Some items ignored)`},ignoredFormatted(){return this.ignored.map(t=>t.split("__").join(" "))},astroStatus(){switch(this.overallState){case"GREEN":return"normal";case"YELLOW":return"caution";case"RED":return"critical";case"BLUE":return"standby";default:return null}}},created(){this.api=new ys;for(let t of this.modelValue)t.match(/.+__.+__.+/)?this.ignoreItem(t,!0):this.ignorePacket(t,!0);this.updateOutOfLimits(),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,10*1e3),this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing(),this.handleMessages(t)}}).then(t=>{this.limitsSubscription=t}),this.cable.createSubscription("ConfigEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing();const e=JSON.parse(t);this.handleConfigEvents(e)}}).then(t=>{this.configSubscription=t})},mounted(){this.updater=setInterval(()=>{this.update()},1e3)},unmounted(){this.updater!=null&&(clearInterval(this.updater),this.updater=null),this.limitsSubscription&&this.limitsSubscription.unsubscribe(),this.configSubscription&&this.configSubscription.unsubscribe(),this.cable.disconnect()},methods:{getCurrentLimitsSet:function(){this.api.get_limits_set().then(t=>{this.currentLimitsSet=t})},updateOutOfLimits(){this.items=[],this.itemList=[],this.api.get_out_of_limits().then(t=>{for(const e of t){let s=e.join("__");if(this.ignored.find(r=>s.includes(r)))continue;this.itemList.push(s);let n={key:e.slice(0,3).join("__"),parameters:e.slice(0,3),timestamp:this.formatDateTime(new Date,this.timeZone)};e[3].includes("YELLOW")&&this.overallState!=="RED"&&(this.overallState="YELLOW"),e[3].includes("RED")&&(this.overallState="RED"),e[3]=="YELLOW"||e[3]=="RED"?n.limits=!1:n.limits=!0,this.items.push(n)}this.calcOverallState()})},calcOverallState(){let t="GREEN";for(let e of this.itemList)if(!this.ignored.find(s=>e.includes(s))&&(e.includes("YELLOW")&&t!=="RED"&&(t="YELLOW"),e.includes("RED"))){t="RED";break}this.overallState=t},ignorePacket(t,e){let[s,n,r]=t.split("__"),i=`${s}__${n}`;for(this.ignored.push(i),e||this.updateIgnored();;){let o=this.itemList.findIndex(a=>a.includes(i));if(o===-1)break;{let a=this.itemList[o].lastIndexOf("__");this.removeItem(this.itemList[o].substring(0,a))}}this.calcOverallState()},ignoreItem(t,e){this.ignored.push(t),e||this.updateIgnored(),this.removeItem(t),this.calcOverallState()},restoreItem(t){this.ignored.splice(t,1),this.updateIgnored(),this.updateOutOfLimits()},removeItem(t){const e=this.itemList.findIndex(s=>s.includes(t));this.items.splice(e,1),this.itemList.splice(e,1)},clearAll(){this.ignored=[],this.updateIgnored(),this.updateOutOfLimits()},updateIgnored(){this.$emit("update:modelValue",this.ignored)},handleConfigEvents(t){for(let e of t)e.kind==="deleted"&&e.type==="target"&&this.updateOutOfLimits()},handleMessages(t){for(let e of t){let s=JSON.parse(e.event);if(s.type!="LIMITS_CHANGE")continue;let n=`${s.target_name}__${s.packet_name}__${s.item_name}`;const r=this.itemList.findIndex(o=>o.includes(n));if(r!==-1){this.itemList[r]=`${n}__${s.new_limits_state}`,this.calcOverallState();continue}if(this.ignored.find(o=>n.includes(o))||s.new_limits_state&&!(s.new_limits_state.includes("YELLOW")||s.new_limits_state.includes("RED")))continue;let i={key:n,timestamp:this.formatNanoseconds(s.time_nsec,this.timeZone),parameters:[s.target_name,s.packet_name,s.item_name]};s.new_limits_state=="YELLOW"||s.new_limits_state=="RED"?i.limits=!1:i.limits=!0,this.itemList.push(`${n}__${s.new_limits_state}`),this.items.push(i),this.calcOverallState()}},update(){this.screenItems.length!==0&&this.api.get_tlm_values(this.screenItems).then(t=>{this.updateValues(t)})},updateValues:function(t){this.updateCounter+=1;for(let e=0;e<t.length;e++)t[e].push(this.updateCounter),this.screenValues[this.screenItems[e]]=t[e]},addItem:function(t){this.screenItems.push(t),this.screenValues[t]=[null,null,0]},deleteItem:function(t){let e=this.screenItems.indexOf(t);this.screenItems.splice(e,1)},showIgnored(){this.ignoredItemsDialog=!0}}},vi=["status"],Si={class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},Ei={class:"font-weight-black"};function xi(t,e,s,n,r,i){const o=w("v-text-field"),a=w("v-row"),l=w("labelvaluelimitsbar-widget"),u=w("labelvalue-widget"),d=w("v-btn"),h=w("v-tooltip"),b=w("v-divider"),f=w("v-card"),y=w("v-spacer"),p=w("v-toolbar"),R=w("v-card-text"),k=w("v-card-actions"),C=w("v-dialog");return x(),$("div",null,[g(f,{class:"pa-5"},{default:m(()=>[g(a,{class:"ma-1"},{default:m(()=>[g(o,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Overall Limits State","model-value":i.overallStateFormatted,class:Fe(i.textFieldClass),style:{"margin-right":"10px","max-width":"280px"},"data-test":"overall-state"},_e({_:2},[i.astroStatus?{name:"prepend-inner",fn:m(()=>[I("rux-status",{status:i.astroStatus},null,8,vi)]),key:"0"}:void 0]),1032,["model-value","class"]),g(o,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Current Limits Set","model-value":r.currentLimitsSet,style:{"max-width":"200px"},"data-test":"limits-set"},null,8,["model-value"])]),_:1}),g(a,{"data-test":"limits-row",class:"my-0 ml-1 mr-1"},{default:m(()=>e[2]||(e[2]=[I("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Timestamp",-1),I("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Item Name",-1),I("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Value",-1),I("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"180px"}},"Limits Bar",-1),I("div",{class:"pa-1 mt-1 mr-2 label"},"Controls",-1)])),_:1}),(x(!0),$(G,null,Z(r.items,(v,L)=>(x(),$("div",{key:v.key},[g(a,{"data-test":"limits-row",class:"align-center my-0 mx-1"},{default:m(()=>[I("div",Si,H(v.timestamp),1),v.limits?(x(),A(l,{key:0,parameters:v.parameters,settings:r.widgetSettings,"screen-values":r.screenValues,"screen-time-zone":s.timeZone,onAddItem:i.addItem,onDeleteItem:i.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"])):(x(),A(u,{key:1,parameters:v.parameters,settings:r.widgetSettings,"screen-values":r.screenValues,"screen-time-zone":s.timeZone,onAddItem:i.addItem,onDeleteItem:i.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"])),g(h,{location:"top"},{activator:m(({props:_})=>[g(d,re({icon:"mdi-close-circle-multiple",variant:"text",density:"compact",class:"mr-2",onClick:j=>i.ignorePacket(v.key),ref_for:!0},_),null,16,["onClick"])]),default:m(()=>[e[3]||(e[3]=I("span",null,"Ignore Entire Packet",-1))]),_:2},1024),g(h,{location:"top"},{activator:m(({props:_})=>[g(d,re({icon:"mdi-close-circle",variant:"text",density:"compact",class:"mr-2",onClick:j=>i.ignoreItem(v.key),ref_for:!0},_),null,16,["onClick"])]),default:m(()=>[e[4]||(e[4]=I("span",null,"Ignore Item",-1))]),_:2},1024),g(h,{location:"top"},{activator:m(({props:_})=>[g(d,re({icon:"mdi-eye-off",variant:"text",density:"compact",class:"mr-2",onClick:j=>i.removeItem(v.key),ref_for:!0},_),null,16,["onClick"])]),default:m(()=>[e[5]||(e[5]=I("span",null,"Temporarily Hide Item",-1))]),_:2},1024)]),_:2},1024),L<r.items.length?(x(),A(b,{key:L})):Y("",!0)]))),128)),e[6]||(e[6]=I("div",{class:"footer"},' Note: Timestamp is "now" for items currently out of limits when the page is loaded. ',-1))]),_:1}),g(C,{modelValue:r.ignoredItemsDialog,"onUpdate:modelValue":e[1]||(e[1]=v=>r.ignoredItemsDialog=v),"max-width":"600"},{default:m(()=>[g(f,null,{default:m(()=>[g(p,{height:"24"},{default:m(()=>[g(y),e[7]||(e[7]=I("span",null,"Ignored Items",-1)),g(y)]),_:1}),g(R,{class:"mt-2"},{default:m(()=>[I("div",null,[(x(!0),$(G,null,Z(i.ignoredFormatted,(v,L)=>(x(),$("div",{key:L},[g(a,{class:"ma-1 align-center"},{default:m(()=>[I("span",Ei,H(v),1),g(y),g(d,{onClick:_=>i.restoreItem(L),icon:"mdi-delete",density:"compact",variant:"text","data-test":`remove-ignore-${L}`},null,8,["onClick","data-test"])]),_:2},1024),L<i.ignoredFormatted.length-1?(x(),A(b,{key:L})):Y("",!0)]))),128))])]),_:1}),g(k,{class:"px-2"},{default:m(()=>[g(d,{variant:"outlined",onClick:i.clearAll},{default:m(()=>e[8]||(e[8]=[q(" Clear All ")])),_:1},8,["onClick"]),g(y),g(d,{variant:"flat",onClick:e[0]||(e[0]=v=>r.ignoredItemsDialog=!1)},{default:m(()=>e[9]||(e[9]=[q(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Ci=be(wi,[["render",xi],["__scopeId","data-v-271953d7"]]),Oi={props:{historyCount:{type:Number,default:1e3},timeZone:{type:String,default:"local"}},mixins:[Pe],data(){return{data:[],cable:new us,search:"",headers:[{title:"Time",value:"time_nsec",width:250},{title:"Level",value:"level",sortable:!1},{title:"Message",value:"message"}]}},created(){this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing(),this.handleMessages(t)}},{historyCount:1e3}).then(t=>{this.limitsSubscription=t})},unmounted(){this.limitsSubscription&&this.limitsSubscription.unsubscribe(),this.cable.disconnect()},methods:{handleMessages(t){for(let e=0;e<t.length;e++){let s=JSON.parse(t[e].event);this.data.unshift(s)}this.data.length>this.historyCount&&(this.data.length=this.historyCount)},getStatus(t){return t.includes("GREEN")?"normal":t.includes("YELLOW")?"caution":t.includes("RED")?"critical":t.includes("BLUE")?"standby":"off"},getColorClass(t){return t.includes("GREEN")?"openc3-green":t.includes("YELLOW")?"openc3-yellow":t.includes("RED")?"openc3-red":t.includes("BLUE")?"openc3-blue":this.$vuetify.theme.dark?"openc3-white":"openc3-black"},calcTableHeight(){return window.innerHeight-250}}},ki=["status"];function Ri(t,e,s,n,r,i){const o=w("v-spacer"),a=w("v-text-field"),l=w("v-card-title"),u=w("v-data-table"),d=w("v-card");return x(),A(d,{class:"card-height"},{default:m(()=>[g(l,{class:"d-flex align-center"},{default:m(()=>[e[1]||(e[1]=q(" Limits Events ")),g(o),g(a,{modelValue:r.search,"onUpdate:modelValue":e[0]||(e[0]=h=>r.search=h),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),g(u,{headers:r.headers,items:r.data,search:r.search,"items-per-page":-1,"hide-default-footer":"","multi-sort":"",density:"compact",height:i.calcTableHeight(),hover:"","data-test":"limits-events"},{"item.time_nsec":m(({item:h})=>[I("span",null,H(t.formatNanoseconds(h.time_nsec,s.timeZone)),1)]),"item.level":m(({item:h})=>[I("rux-status",{status:i.getStatus(h.message)},null,8,ki)]),"item.message":m(({item:h})=>[I("span",{class:Fe(i.getColorClass(h.message))},H(h.message),3)]),_:1},8,["headers","items","search","height"])]),_:1})}const Ii={components:{LimitsControl:Ci,LimitsEvents:be(Oi,[["render",Ri],["__scopeId","data-v-210db24e"]]),TopBar:Cs,OpenConfigDialog:dt,SaveConfigDialog:ut},mixins:[lt],data(){return{title:"Limits Monitor",configKey:"limits_monitor",api:new ys,timeZone:"local",renderKey:0,ignored:[],openConfig:!1,saveConfig:!1,limitsSets:[],currentLimitsSet:null,currentSetRefreshInterval:null,limitsSetDialog:!1,menus:[{label:"File",items:[{label:"Show Ignored",icon:"mdi-magnify-close",command:()=>{this.$refs.control.showIgnored()}},{label:"Change Limits Set",icon:"mdi-swap-horizontal",command:()=>{this.limitsSetDialog=!0}},{divider:!0},{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.ignored=[],this.resetConfigBase(),this.renderKey++}}]}]}},created(){this.api.get_limits_sets().then(t=>{this.limitsSets=t}),this.api.get_setting("time_zone").then(t=>{t&&(this.timeZone=t)}).catch(t=>{})},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.ignored=t,this.renderKey++)}},unmounted:function(){clearInterval(this.currentSetRefreshInterval)},methods:{setLimitsSet:function(){this.api.set_limits_set(this.currentLimitsSet),this.limitsSetDialog=!1,this.renderKey++},openConfiguration:function(t,e=!1){this.openConfigBase(t,e,s=>{this.ignored=s,this.renderKey++})},saveConfiguration:function(t){this.saveConfigBase(t,this.ignored)}}};function Ai(t,e,s,n,r,i){const o=w("top-bar"),a=w("limits-control"),l=w("limits-events"),u=w("open-config-dialog"),d=w("save-config-dialog"),h=w("v-spacer"),b=w("v-toolbar"),f=w("v-select"),y=w("v-card-text"),p=w("v-btn"),R=w("v-card-actions"),k=w("v-card"),C=w("v-dialog");return x(),$("div",null,[g(o,{menus:r.menus,title:r.title},null,8,["menus","title"]),(x(),A(a,{ref:"control",modelValue:r.ignored,"onUpdate:modelValue":e[0]||(e[0]=v=>r.ignored=v),key:r.renderKey,"time-zone":r.timeZone},null,8,["modelValue","time-zone"])),e[11]||(e[11]=I("div",{style:{height:"15px"}},null,-1)),g(l,{"time-zone":r.timeZone},null,8,["time-zone"]),r.openConfig?(x(),A(u,{key:0,modelValue:r.openConfig,"onUpdate:modelValue":e[1]||(e[1]=v=>r.openConfig=v),configKey:r.configKey,onSuccess:i.openConfiguration},null,8,["modelValue","configKey","onSuccess"])):Y("",!0),r.saveConfig?(x(),A(d,{key:1,modelValue:r.saveConfig,"onUpdate:modelValue":e[2]||(e[2]=v=>r.saveConfig=v),configKey:r.configKey,onSuccess:i.saveConfiguration},null,8,["modelValue","configKey","onSuccess"])):Y("",!0),g(C,{modelValue:r.limitsSetDialog,"onUpdate:modelValue":e[5]||(e[5]=v=>r.limitsSetDialog=v),"max-width":"650"},{default:m(()=>[g(k,null,{default:m(()=>[g(b,{height:"24"},{default:m(()=>[g(h),e[6]||(e[6]=I("span",null,"Change Limits Set",-1)),g(h)]),_:1}),g(y,{class:"mt-6"},{default:m(()=>[e[7]||(e[7]=I("span",{style:{display:"block"}}," The Limits Set is a global option which changes the Limits Set across all tools. ",-1)),e[8]||(e[8]=I("span",{style:{display:"block"}}," NOTE: Changing this option clears the current list and recalculates based on the new set. ",-1)),g(f,{label:"Limits Set",items:r.limitsSets,modelValue:r.currentLimitsSet,"onUpdate:modelValue":e[3]||(e[3]=v=>r.currentLimitsSet=v),density:"compact",variant:"outlined","data-test":"limits-set","hide-details":"",class:"mt-3",style:{"max-width":"200px"}},null,8,["items","modelValue"])]),_:1}),g(R,{class:"px-2"},{default:m(()=>[g(h),g(p,{variant:"outlined",onClick:e[4]||(e[4]=v=>r.limitsSetDialog=!1)},{default:m(()=>e[9]||(e[9]=[q(" Cancel ")])),_:1}),g(p,{variant:"flat",onClick:i.setLimitsSet},{default:m(()=>e[10]||(e[10]=[q(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Gi=vs("default",be(Ii,[["render",Ai]]))}}});
@@ -1 +1 @@
1
- System.register(["./BarColumn-B6tCmNJm-81299b2ec5265c815997.js","vue","./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(_,p){"use strict";var l,r,a,n,s,t,o,c,m;return{setters:[i=>{l=i.l},i=>{r=i.resolveComponent,a=i.openBlock,n=i.createBlock,s=i.withCtx,t=i.createElementVNode,o=i.mergeProps,c=i.toDisplayString},i=>{m=i.s},null,null,null,null,null],execute:function(){const i={mixins:[l],data(){return{width:160,height:22}},computed:{limitsRange(){let e=this.limitsSettings[this.selectedLimitsSet];if(e)return e.length===4?`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]}`:`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]} GL/${e[4]} GH/${e[5]}`;throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSBAR",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSBAR",3,6,"LIMITSBAR <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function d(e,u,w,I,y,v){const h=r("v-tooltip");return a(),n(h,{location:"top"},{activator:s(({props:g})=>[t("div",o({class:"limitsbar",style:[e.cssProps,e.computedStyle]},g),u[0]||(u[0]=[t("div",{class:"limitsbar__container"},[t("div",{class:"limitsbar__redlow"}),t("div",{class:"limitsbar__redhigh"}),t("div",{class:"limitsbar__yellowlow"}),t("div",{class:"limitsbar__yellowhigh"}),t("div",{class:"limitsbar__greenlow"}),t("div",{class:"limitsbar__greenhigh"}),t("div",{class:"limitsbar__blue"}),t("div",{class:"limitsbar__line"}),t("div",{class:"limitsbar__arrow"})],-1)]),16)]),default:s(()=>[t("span",null,c(v.limitsRange),1)]),_:1})}const b=_("default",m(i,[["render",d],["__scopeId","data-v-9f79e720"]]))}}});
1
+ System.register(["./BarColumn-C9dkpg2O-39581cbfa1f879c54974.js","vue","./main-198c84edc9d877ab9beb.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","single-spa","vuex","vuetify"],function(d,p){"use strict";var l,r,a,n,s,t,o,c,m;return{setters:[i=>{l=i.l},i=>{r=i.resolveComponent,a=i.createBlock,n=i.openBlock,s=i.withCtx,t=i.createElementVNode,o=i.toDisplayString,c=i.mergeProps},i=>{m=i.s},null,null,null,null,null],execute:function(){const i={mixins:[l],data(){return{width:160,height:22}},computed:{limitsRange(){let e=this.limitsSettings[this.selectedLimitsSet];if(e)return e.length===4?`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]}`:`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]} GL/${e[4]} GH/${e[5]}`;throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSBAR",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSBAR",3,6,"LIMITSBAR <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function v(e,u,w,I,R,_){const g=r("v-tooltip");return n(),a(g,{location:"top"},{activator:s(({props:h})=>[t("div",c({class:"limitsbar",style:[e.cssProps,e.computedStyle]},h),u[0]||(u[0]=[t("div",{class:"limitsbar__container"},[t("div",{class:"limitsbar__redlow"}),t("div",{class:"limitsbar__redhigh"}),t("div",{class:"limitsbar__yellowlow"}),t("div",{class:"limitsbar__yellowhigh"}),t("div",{class:"limitsbar__greenlow"}),t("div",{class:"limitsbar__greenhigh"}),t("div",{class:"limitsbar__blue"}),t("div",{class:"limitsbar__line"}),t("div",{class:"limitsbar__arrow"})],-1)]),16)]),default:s(()=>[t("span",null,o(_.limitsRange),1)]),_:1})}const b=d("default",m(i,[["render",v],["__scopeId","data-v-de501268"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./VWidget-C4spAawK-e511008555d8894be77e.js","vue","./main-198c84edc9d877ab9beb.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","single-spa","vuex","vuetify"],function(d,C){"use strict";var l,i,n,a,s,o,p,m,u,c;return{setters:[e=>{l=e.L},e=>{i=e.resolveComponent,n=e.createElementBlock,a=e.openBlock,s=e.normalizeStyle,o=e.createElementVNode,p=e.createBlock,m=e.createCommentVNode,u=e.normalizeClass},e=>{c=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],data(){return{radius:15,fullLabelDisplay:!1,displayLabel:!0}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&(this.parameters[5].toLowerCase()==="true"?this.fullLabelDisplay=!0:this.parameters[5].toLowerCase()==="nil"?this.displayLabel=!1:this.parameters[5].toLowerCase()==="none"&&(this.displayLabel=!1))},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px"}},myComputedStyle(){return delete this.computedStyle.flex,this.computedStyle}},methods:{getType(){let t="CONVERTED";return this.parameters[3]&&(t=this.parameters[3]),t}}};function h(t,g,L,v,y,r){const f=i("label-widget");return a(),n("div",{ref:"container",class:"d-flex flex-row",style:s(r.myComputedStyle)},[o("div",{class:u(`led align-self-center ${this.limitsColor}`),style:s(r.cssProps)},null,6),y.displayLabel?(a(),p(f,{key:0,parameters:r.labelName,settings:t.appliedSettings,style:s(t.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])):m("",!0)],4)}const b=d("default",c(e,[["render",h],["__scopeId","data-v-b106d59f"]]))}}});
@@ -1 +1 @@
1
- System.register(["./BarColumn-B6tCmNJm-81299b2ec5265c815997.js","vue","./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(n,v){"use strict";var a,s,l,r,h,d;return{setters:[i=>{a=i.l},i=>{s=i.openBlock,l=i.createElementBlock,r=i.normalizeStyle,h=i.createStaticVNode},i=>{d=i.s},null,null,null,null,null],execute:function(){const i={mixins:[a],data(){return{width:22,height:120}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);if(t)return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"};throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSCOLUMN",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function o(e,t,g,u,b,c){return s(),l("div",{class:"limitsbar",style:r([c.cssProps,e.computedStyle])},t[0]||(t[0]=[h('<div class="limitsbar__container" data-v-a4a8f4ab><div class="limitsbar__redlow" data-v-a4a8f4ab></div><div class="limitsbar__redhigh" data-v-a4a8f4ab></div><div class="limitsbar__yellowlow" data-v-a4a8f4ab></div><div class="limitsbar__yellowhigh" data-v-a4a8f4ab></div><div class="limitsbar__greenlow" data-v-a4a8f4ab></div><div class="limitsbar__greenhigh" data-v-a4a8f4ab></div><div class="limitsbar__blue" data-v-a4a8f4ab></div><div class="limitsbar__line" data-v-a4a8f4ab></div><div class="limitsbar__arrow" data-v-a4a8f4ab></div></div>',1)]),4)}const m=n("default",d(i,[["render",o],["__scopeId","data-v-a4a8f4ab"]]))}}});
1
+ System.register(["./BarColumn-C9dkpg2O-39581cbfa1f879c54974.js","vue","./main-198c84edc9d877ab9beb.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","single-spa","vuex","vuetify"],function(n,v){"use strict";var a,s,l,r,h,d;return{setters:[i=>{a=i.l},i=>{s=i.createElementBlock,l=i.openBlock,r=i.normalizeStyle,h=i.createStaticVNode},i=>{d=i.s},null,null,null,null,null],execute:function(){const i={mixins:[a],data(){return{width:22,height:120}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);if(t)return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"};throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSCOLUMN",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function o(e,t,g,u,b,c){return l(),s("div",{class:"limitsbar",style:r([c.cssProps,e.computedStyle])},t[0]||(t[0]=[h('<div class="limitsbar__container" data-v-a4a8f4ab><div class="limitsbar__redlow" data-v-a4a8f4ab></div><div class="limitsbar__redhigh" data-v-a4a8f4ab></div><div class="limitsbar__yellowlow" data-v-a4a8f4ab></div><div class="limitsbar__yellowhigh" data-v-a4a8f4ab></div><div class="limitsbar__greenlow" data-v-a4a8f4ab></div><div class="limitsbar__greenhigh" data-v-a4a8f4ab></div><div class="limitsbar__blue" data-v-a4a8f4ab></div><div class="limitsbar__line" data-v-a4a8f4ab></div><div class="limitsbar__arrow" data-v-a4a8f4ab></div></div>',1)]),4)}const m=n("default",d(i,[["render",o],["__scopeId","data-v-a4a8f4ab"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./GraphWidget-Dycey-mj-e8389f3f66fdbd36be56.js","./main-198c84edc9d877ab9beb.js","vue","./Graph-3rkhFP3G-13f4b388c563c17ad7c7.js","single-spa","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","vuex","vuetify"],function(h,u){"use strict";var i,n,r,a,o,l,d;return{setters:[t=>{i=t._},t=>{n=t.s},t=>{r=t.resolveComponent,a=t.createBlock,o=t.openBlock,l=t.normalizeStyle},t=>{d=t.S},null,null,null,null,null],execute:function(){const t={components:{Graph:d},mixins:[i]};function p(e,s,g,v,f,y){const c=r("graph");return o(),a(c,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:l(e.computedStyle),"time-zone":this.screenTimeZone,onPause:s[0]||(s[0]=()=>e.state="pause"),onStart:s[1]||(s[1]=()=>e.state="start"),"hide-toolbar":"","hide-overview":""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const m=h("default",n(t,[["render",p]]))}}});
@@ -1 +1 @@
1
- System.register(["./Layout-D4YBjuWs-be2d1878767310656ca5.js","./main-93c3aaf3971ea1334ca9.js","vue","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(y,C){"use strict";var c,o,m,n,r,g,l,a,p,d,f;return{setters:[e=>{c=e.r},e=>{o=e.s,m=e.K},e=>{n=e.openBlock,r=e.createElementBlock,g=e.normalizeStyle,l=e.Fragment,a=e.renderList,p=e.createBlock,d=e.resolveDynamicComponent,f=e.mergeProps},null,null,null,null,null],execute:function(){const e={mixins:[c],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return m.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let s=this.parameters[1];this.widgets.forEach(u=>{u.settings.find(i=>i[0]==="MARGIN"||i[0]==="RAW"&&i[1].toUpperCase().includes("MARGIN"))===void 0&&u.settings.push(["MARGIN",s])})}}};function h(s,u,i,A,j,k){return n(),r("table",{style:g(s.computedStyle),role:"presentation"},[(n(!0),r(l,null,a(k.widgetChunks,(v,w)=>(n(),r("tr",{key:"r"+w},[(n(!0),r(l,null,a(v,(t,B)=>(n(),r("td",{key:"c"+B},[(n(),p(d(t.type),f({ref_for:!0},s.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":s.screenValues,"screen-time-zone":s.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))]))),128))],4)}const b=y("default",o(e,[["render",h]]))}}});
1
+ System.register(["./Layout-Bh7VzCZd-4413af25199d52238484.js","./main-198c84edc9d877ab9beb.js","vue","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","single-spa","vuex","vuetify"],function(h,B){"use strict";var c,o,m,r,n,g,l,a,p,d,f;return{setters:[e=>{c=e.r},e=>{o=e.s,m=e.T},e=>{r=e.createElementBlock,n=e.openBlock,g=e.normalizeStyle,l=e.Fragment,a=e.renderList,p=e.createBlock,d=e.resolveDynamicComponent,f=e.mergeProps},null,null,null,null,null],execute:function(){const e={mixins:[c],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return m.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let s=this.parameters[1];this.widgets.forEach(u=>{u.settings.find(i=>i[0]==="MARGIN"||i[0]==="RAW"&&i[1].toUpperCase().includes("MARGIN"))===void 0&&u.settings.push(["MARGIN",s])})}}};function y(s,u,i,b,z,k){return n(),r("table",{style:g(s.computedStyle),role:"presentation"},[(n(!0),r(l,null,a(k.widgetChunks,(v,C)=>(n(),r("tr",{key:"r"+C},[(n(!0),r(l,null,a(v,(t,w)=>(n(),r("td",{key:"c"+w},[(n(),p(d(t.type),f({ref_for:!0},s.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":s.screenValues,"screen-time-zone":s.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))]))),128))],4)}const R=h("default",o(e,[["render",y]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","vue-router","single-spa","vuex","vuetify"],function(u,p){"use strict";var s,a,l,r,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.openBlock,r=e.createBlock,n=e.normalizeStyle},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[s],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,m,v,f,_,c){const h=a("rux-progress");return l(),r(h,{value:c._value,class:"progress",style:n(t.computedStyle)},null,8,["value","style"])}const d=u("default",i(e,[["render",o],["__scopeId","data-v-85bc2857"]]))}}});
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","vue-router","single-spa","vuex","vuetify"],function(u,p){"use strict";var s,a,l,r,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.createBlock,r=e.openBlock,n=e.normalizeStyle},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[s],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,m,v,f,I,c){const h=a("rux-progress");return r(),l(h,{value:c._value,class:"progress",style:n(t.computedStyle)},null,8,["value","style"])}const d=u("default",i(e,[["render",o],["__scopeId","data-v-85bc2857"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","vue-router","single-spa","vuex","vuetify"],function(o,d){"use strict";var l,t,n,r,a,s;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.createBlock,r=e.openBlock,a=e.normalizeStyle},e=>{s=e.s},null,null,null,null],execute:function(){const e={props:{value:{type:Number}},mixins:[l],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function u(i,y,c,f,v,b){const p=t("v-radio");return r(),n(p,{"hide-details":"",dense:"",label:v.label,style:a(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=o("default",s(e,[["render",u]]))}}});
@@ -1 +1 @@
1
- System.register(["./Layout-D4YBjuWs-be2d1878767310656ca5.js","vue","./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(h,C){"use strict";var a,l,r,s,c,o,i,u,m,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,r=e.openBlock,s=e.createBlock,c=e.normalizeStyle,o=e.withCtx,i=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function f(n,v,I,j,y,z){const k=l("v-radio-group");return r(),s(k,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:c(n.computedStyle)},{default:o(()=>[(r(!0),i(u,null,m(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{value:x,key:x,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const B=h("default",g(e,[["render",f]]))}}});
1
+ System.register(["./Layout-Bh7VzCZd-4413af25199d52238484.js","vue","./main-198c84edc9d877ab9beb.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","single-spa","vuex","vuetify"],function(f,k){"use strict";var a,l,s,r,c,o,i,u,m,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,s=e.createBlock,r=e.openBlock,c=e.normalizeStyle,o=e.withCtx,i=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function h(n,v,I,z,y,V){const C=l("v-radio-group");return r(),s(C,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:c(n.computedStyle)},{default:o(()=>[(r(!0),i(u,null,m(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{value:x,key:x,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const B=f("default",g(e,[["render",h]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","vue-router","single-spa","vuex","vuetify"],function(c,m){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.openBlock,n=t.createElementBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.s},null,null,null,null],execute:function(){const t={mixins:[r],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,_,u){return a(),n("div",{class:"rangebar",style:h([u.cssProps,e.computedStyle])},s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)]),4)}const d=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))}}});
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","vue-router","single-spa","vuex","vuetify"],function(c,d){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.createElementBlock,n=t.openBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.s},null,null,null,null],execute:function(){const t={mixins:[r],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,v,u){return n(),a("div",{class:"rangebar",style:h([u.cssProps,e.computedStyle])},s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)]),4)}const m=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","vue-router","single-spa","vuex","vuetify"],function(m,d){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.openBlock,a=t.createBlock,o=t.normalizeStyle},t=>{u=t.s},null,null,null,null],execute:function(){const t={mixins:[i],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,l){const p=r("rux-monitoring-icon");return c(),a(p,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))}}});
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","vue-router","single-spa","vuex","vuetify"],function(m,d){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.createBlock,a=t.openBlock,o=t.normalizeStyle},t=>{u=t.s},null,null,null,null],execute:function(){const t={mixins:[i],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,l){const p=r("rux-monitoring-icon");return a(),c(p,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))}}});
@@ -1 +1 @@
1
- System.register(["./Layout-D4YBjuWs-be2d1878767310656ca5.js","./VerticalWidget-DziyURNu-766271166fc05ccd6b08.js","vue","./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,c,s,i,o,u,m,g,p,f,d;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{s=e.openBlock,i=e.createElementBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,f=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:c},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(r=>r[0]==="MARGIN"||r[0]==="RAW"&&r[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function v(n,a,r,w,R,j){return s(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(s(!0),i(u,null,m(n.widgets,(t,h)=>(s(),g(p(t.type),f({ref_for:!0},n.listeners,{key:h,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 B=y("default",d(e,[["render",v]]))}}});
1
+ System.register(["./Layout-Bh7VzCZd-4413af25199d52238484.js","./VerticalWidget-D8jUFxjS-db7b4e6f9ee93e73fbb7.js","vue","./main-198c84edc9d877ab9beb.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","single-spa","vuex","vuetify"],function(v,k){"use strict";var l,c,i,s,o,u,m,g,p,f,d;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{i=e.createElementBlock,s=e.openBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,f=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:c},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(r=>r[0]==="MARGIN"||r[0]==="RAW"&&r[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function y(n,a,r,R,j,w){return s(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(s(!0),i(u,null,m(n.widgets,(t,h)=>(s(),g(p(t.type),f({ref_for:!0},n.listeners,{key:h,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 B=v("default",d(e,[["render",y]]))}}});
@@ -1 +1 @@
1
- System.register(["./VWidget-CGdM4sTw-4d6cf976c46dc49f7f0d.js","vue","./main-93c3aaf3971ea1334ca9.js","./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue-router","single-spa","vuex","vuetify"],function(p,g){"use strict";var r,s,a,l,n,i,c,o,u;return{setters:[t=>{r=t.L},t=>{s=t.resolveComponent,a=t.openBlock,l=t.createBlock,n=t.normalizeStyle,i=t.withCtx,c=t.createTextVNode,o=t.toDisplayString},t=>{u=t.s},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function d(e,v,y,f,C,h){const m=s("v-icon");return a(),l(m,{onClick:h.clickHandler,style:n(e.computedStyle)},{default:i(()=>[c(o(h.displayedIcon),1)]),_:1},8,["onClick","style"])}const B=p("default",u(t,[["render",d]]))}}});
1
+ System.register(["./VWidget-C4spAawK-e511008555d8894be77e.js","vue","./main-198c84edc9d877ab9beb.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","single-spa","vuex","vuetify"],function(p,g){"use strict";var r,a,s,l,n,i,c,o,u;return{setters:[t=>{r=t.L},t=>{a=t.resolveComponent,s=t.createBlock,l=t.openBlock,n=t.normalizeStyle,i=t.withCtx,c=t.createTextVNode,o=t.toDisplayString},t=>{u=t.s},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function d(e,f,v,y,C,h){const m=a("v-icon");return l(),s(m,{onClick:h.clickHandler,style:n(e.computedStyle)},{default:i(()=>[c(o(h.displayedIcon),1)]),_:1},8,["onClick","style"])}const B=p("default",u(t,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","vue-router","single-spa","vuex","vuetify"],function(i,o){"use strict";var t,n,s,l,r;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,l=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function u(c,m,p,f,h,d){return s(),n("div",{style:l(c.computedStyle)},null,4)}const a=i("default",r(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./GraphWidget-Dycey-mj-e8389f3f66fdbd36be56.js","./main-198c84edc9d877ab9beb.js","vue","./Graph-3rkhFP3G-13f4b388c563c17ad7c7.js","single-spa","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var s,i,n,r,a,o,d;return{setters:[e=>{s=e._},e=>{i=e.s},e=>{n=e.resolveComponent,r=e.createBlock,a=e.openBlock,o=e.normalizeStyle},e=>{d=e.S},null,null,null,null,null],execute:function(){const e={components:{Graph:d},mixins:[s],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,f,y){const h=n("graph");return a(),r(h,{ref:"graph"+t.id,id:t.id,state:t.state,"selected-graph-id":t.id,startTime:t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:o(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",i(e,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-Bh7VzCZd-4413af25199d52238484.js","vue","./main-198c84edc9d877ab9beb.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue-router","single-spa","vuex","vuetify"],function(k,N){"use strict";var p,l,s,r,g,v,i,u,c,o,f,y,w,b,V;return{setters:[e=>{p=e.r},e=>{l=e.resolveComponent,s=e.createElementBlock,r=e.openBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,f=e.createTextVNode,y=e.toDisplayString,w=e.resolveDynamicComponent,b=e.mergeProps},e=>{V=e.s},null,null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function x(t,m,_,D,L,j){const C=l("v-tab"),T=l("v-tabs"),B=l("v-window-item"),S=l("v-window");return r(),s("div",null,[g(T,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(C,{key:d},{default:i(()=>[f(y(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(B,{key:d},{default:i(()=>[(r(!0),s(u,null,c(a.widgets,(n,z)=>(r(),o(w(n.type),b({ref_for:!0},t.listeners,{key:`${d}-${z}`,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const h=k("default",V(e,[["render",x]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-198c84edc9d877ab9beb.js","vue","./DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js","single-spa","./VWidget-C4spAawK-e511008555d8894be77e.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-d41f5679fd96d070d90a.js"],function(y,N){"use strict";var c,a,o,s,n,u,d,l,m,h,p,g,v,x,f,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},C={class:"textbox-widget-container"};function V(t,r,L,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),_=a("v-list"),z=a("v-menu"),E=a("details-dialog");return s(),o("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(z,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(_,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,M)=>(s(),p(B,{key:M,onClick:g(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(E,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const T=y("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C7ms_xDE-cf6b5bcf7b113a6c7155.js","vue","./main-93c3aaf3971ea1334ca9.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createBlock,a=e.normalizeStyle},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,x){const m=l("v-text-field");return n(),s(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,f,y,u,x){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","./main-198c84edc9d877ab9beb.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,p){"use strict";var l,i,n,a,s,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{a=e.resolveComponent,s=e.createBlock,r=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,V,v,t,x){const h=a("v-text-field");return r(),s(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=f=>t.timeValue=f),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=m("default",i(e,[["render",c]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","vue-router","single-spa","vuex","vuetify"],function(a,m){"use strict";var t,r,n,l,s,o;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,n=e.openBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,f,x,y,g,u){return n(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const p=a("default",o(e,[["render",i]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-198c84edc9d877ab9beb.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js"],function(x,T){"use strict";var w,_;return{setters:[p=>{w=p.P},p=>{_=p.o}],execute:function(){var p={},I;function S(){return I||(I=1,function(t){(function(){var s={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(a){return E(V(a),arguments)}function b(a,u){return c.apply(null,[a].concat(u||[]))}function E(a,u){var i=1,h=a.length,e,o="",l,n,r,f,g,y,v,d;for(l=0;l<h;l++)if(typeof a[l]=="string")o+=a[l];else if(typeof a[l]=="object"){if(r=a[l],r.keys)for(e=u[i],n=0;n<r.keys.length;n++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[n],r.keys[n-1]));e=e[r.keys[n]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,f=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+f:g==="0"?d+f+e:f+d+e)}return o}var m=Object.create(null);function V(a){if(m[a])return m[a];for(var u=a,i,h=[],e=0;u;){if((i=s.text.exec(u))!==null)h.push(i[0]);else if((i=s.modulo.exec(u))!==null)h.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],n=[];if((n=s.key.exec(l))!==null)for(o.push(n[1]);(l=l.substring(n[0].length))!=="";)if((n=s.key_access.exec(l))!==null)o.push(n[1]);else if((n=s.index_access.exec(l))!==null)o.push(n[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");h.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return m[a]=h}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(p)),p}S();const k={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=x("L",{mixins:[_,w,k],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-198c84edc9d877ab9beb.js","vue","./DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js","single-spa","./VWidget-C4spAawK-e511008555d8894be77e.js","vue-router","vuex","vuetify","./Widget-fRCERxGf-d41f5679fd96d070d90a.js"],function(k,U){"use strict";var c,a,o,r,d,n,s,m,u,p,v,g,f,h,x,y,V,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,s=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,f=e.renderList,h=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{w=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[w],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function E(t,i,j,z,I,C){const _=a("rux-status"),D=a("v-text-field"),N=a("v-tooltip"),B=a("v-list-item-title"),L=a("v-list-item"),T=a("v-list"),A=a("v-menu"),M=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,C.aging])},[n(N,{location:"top"},{activator:s(({props:l})=>[n(D,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},l),v({_:2},[t.astroStatus?{name:"prepend-inner",fn:s(()=>[n(_,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:s(()=>[m("span",null,u(C.fullName),1)]),_:1}),n(A,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=l=>t.contextMenuShown=l),target:[t.x,t.y],style:{"z-index":"3000"}},{default:s(()=>[n(T,null,{default:s(()=>[(r(!0),o(g,null,f(t.contextMenuOptions,(l,P)=>(r(),h(L,{key:P,onClick:x(l.action,["stop"])},{default:s(()=>[n(B,null,{default:s(()=>[y(u(l.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=l=>t.viewDetails=l)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const W=k("default",c(S,[["render",E],["__scopeId","data-v-c21e4dde"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-D4RrYVEK-aa11dca149c0ba475998.js","./LimitsbarWidget-Djui0IpK-cd6dbfcb920ad694e290.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","./DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js","single-spa","./VWidget-C4spAawK-e511008555d8894be77e.js","vue-router","vuex","vuetify","./BarColumn-C9dkpg2O-39581cbfa1f879c54974.js"],function(g,f){"use strict";var l,i,a,s,u,o,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function p(t,j,x,V,w,y){const d=s("value-widget"),v=s("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(d,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const b=g("default",m(e,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-D4RrYVEK-aa11dca149c0ba475998.js","./LimitscolumnWidget-Cc19IEjq-39521651b17801e047c6.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","./DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js","single-spa","./VWidget-C4spAawK-e511008555d8894be77e.js","vue-router","vuex","vuetify","./BarColumn-C9dkpg2O-39581cbfa1f879c54974.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.createElementBlock,o=e.openBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function p(t,j,w,C,x,y){const d=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(d,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-D4RrYVEK-aa11dca149c0ba475998.js","./RangebarWidget-CN0YuHqy-88743bd1380de6bf343b.js","./Widget-fRCERxGf-d41f5679fd96d070d90a.js","vue","./main-198c84edc9d877ab9beb.js","./DetailsDialog-BvbziA7Y-e0d047404b509f9a332a.js","single-spa","./VWidget-C4spAawK-e511008555d8894be77e.js","vue-router","vuex","vuetify"],function(g,h){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.createElementBlock,m=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,w,y,B,c){const v=r("value-widget"),f=r("rangebar-widget");return m(),u("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(f,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const x=g("default",p(e,[["render",d]]))}}});