openc3-cosmos-tool-scriptrunner 5.7.2 → 5.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/scriptrunner/js/432.js +51 -0
- data/tools/scriptrunner/js/432.js.map +1 -0
- data/tools/scriptrunner/js/792.js +2 -0
- data/tools/scriptrunner/js/792.js.map +1 -0
- data/tools/scriptrunner/js/app.js +1 -1
- data/tools/scriptrunner/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/scriptrunner/js/305.js +0 -51
- data/tools/scriptrunner/js/305.js.map +0 -1
- data/tools/scriptrunner/js/317.js +0 -2
- data/tools/scriptrunner/js/317.js.map +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_scriptrunner"]=self["webpackChunk_openc3_cosmos_tool_scriptrunner"]||[]).push([[792],{84910:function(e,n,t){var i={"./ArrayWidget.vue":91679,"./BlockWidget.vue":90328,"./ButtonWidget.vue":94307,"./CanvasWidget.vue":37739,"./CanvasdotWidget.vue":72810,"./CanvasimageWidget.vue":47696,"./CanvasimagevalueWidget.vue":15348,"./CanvaslabelWidget.vue":19091,"./CanvaslabelvalueWidget.vue":93856,"./CanvaslineWidget.vue":96068,"./CanvaslinevalueWidget.vue":17289,"./CheckbuttonWidget.vue":6122,"./ComboboxWidget.vue":84190,"./DynamicWidget.vue":39609,"./FormatvalueWidget.vue":90742,"./HorizontalWidget.vue":745,"./HorizontalboxWidget.vue":1835,"./HorizontallineWidget.vue":92398,"./IframeWidget.vue":27549,"./ImageviewerWidget.vue":1499,"./LabelWidget.vue":75318,"./LabelledWidget.vue":21275,"./LabelprogressbarWidget.vue":15929,"./LabelsparklineWidget.vue":91745,"./LabelvalueWidget.vue":210,"./LabelvaluedescWidget.vue":28913,"./LabelvaluelimitsbarWidget.vue":68738,"./LabelvaluelimitscolumnWidget.vue":94338,"./LabelvaluerangebarWidget.vue":45964,"./LedWidget.vue":29016,"./LimitsbarWidget.vue":74032,"./LimitscolorWidget.vue":74865,"./LimitscolumnWidget.vue":36652,"./LinegraphWidget.vue":32554,"./MatrixbycolumnsWidget.vue":42509,"./ProgressbarWidget.vue":11826,"./RadiobuttonWidget.vue":1882,"./RadiogroupWidget.vue":22201,"./RangebarWidget.vue":96758,"./ScrollwindowWidget.vue":64836,"./SectionheaderWidget.vue":28560,"./SpacerWidget.vue":39413,"./SparklineWidget.vue":56803,"./TabbookWidget.vue":51018,"./TextboxWidget.vue":31597,"./TextfieldWidget.vue":71447,"./TitleWidget.vue":43748,"./ValueWidget.vue":87557,"./ValuelimitsbarWidget.vue":73437,"./ValuelimitscolumnWidget.vue":56822,"./ValuerangebarWidget.vue":91312,"./VerticalWidget.vue":21833,"./VerticalboxWidget.vue":59233};function l(e){var n=s(e);return t(n)}function s(e){if(!t.o(i,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return i[e]}l.keys=function(){return Object.keys(i)},l.resolve=s,e.exports=l,l.id=84910},22841:function(e,n,t){"use strict";t(58188),t(1939),t(36728),t(68995),t(32501),t(71372);var i=t(10247),l=t(98365),s=t(92202);n.Z={mixins:[s.Z],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){var e=this;this.settings.forEach((function(n){switch(n[0]){case"ITEM":e.items.push({targetName:n[1],packetName:n[2],itemName:n[3],valueType:n[4]||"CONVERTED",reduced:n[5]||"DECOM",reducedType:n[6]||null});case"STARTTIME":var t=(0,i.Z)(n[1],"yyyy/MM/dd HH:mm:ss",new Date);e.startTime=1e6*t.getTime();break;case"HISTORY":var s=parseInt(n[1].slice(0,n[1].length-1)),o=null,a=1;switch(n[1][n[1].length-1]){case"d":o="days",a=86400;break;case"h":o="hours",a=3600;break;case"m":o="minutes",a=60;break;case"s":o="seconds";break;default:throw new Error("Unknown time suffix: ".concat(n[1],"!"))}var r={};r[o]=s,e.startTime=1e6*(0,l.Z)(new Date,r).getTime(),s*a>e.secondsGraphed&&(e.secondsGraphed=s*a),s*a>e.pointsSaved&&(e.pointsSaved=s*a),s*a>e.pointsGraphed&&(e.pointsGraphed=s*a);break;case"SECONDSGRAPHED":e.secondsGraphed=parseInt(n[1]);break;case"POINTSSAVED":e.pointsSaved=parseInt(n[1]);break;case"POINTSGRAPHED":e.pointsGraphed=parseInt(n[1]);break;case"SIZE":e.size.width=parseInt(n[1]),e.size.height=parseInt(n[2]);break}}))}}},1716:function(e,n,t){"use strict";var i=t(15789),l=t(49502),s=(t(18178),t(16129));n.Z={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:function(){var e=(0,l.Z)((0,i.Z)().mark((function e(n){var t;return(0,i.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent("".concat(window.openc3Scope,"/targets/").concat(this.target,"/public/").concat(n)),"?bucket=OPENC3_CONFIG_BUCKET"));case 2:return t=e.sent,e.abrupt("return",t.data.url);case 4:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()}}},548:function(e,n,t){"use strict";var i=t(92202);n.Z={mixins:[i.Z],props:{widgets:{type:Array,default:function(){return[]}}}}},92318:function(e,n,t){"use strict";t(18178),t(96708),t(27233),t(28673),t(32501),t(58188),t(88233);var i=t(92202);t(80131);n.Z={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},watch:{_counter:function(e,n){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,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(this.curValue," (").concat(this.limitsLetter,")"):this.curValue},_counter:function(){var e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),null!=e)switch(e){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:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),null!=e){var n=e.charAt(0);return e.endsWith("_LOW")&&(n=n.toLowerCase()),n}return""}},created:function(){null!==this.value&&null!==this.limitsState||(this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.getType()),this.screen&&this.screen.addItem(this.valueId))},destroyed:function(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType:function(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue:function(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){var n=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(n+="..."),n}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var t="[",i=0;i<e.length;i++)"String"===Object.prototype.toString.call(e[i]).slice(8,-1)?t+='"'+e[i]+'"':t+=e[i],i!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var n=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){n.contextMenuShown=!0}))}}}},92202:function(e,n,t){"use strict";t(71245),t(58188),t(1939),t(68995),t(32501),t(49228),t(18178),t(1951),t(36728);var i=t(63291);n.Z={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:function(){return[]}},settings:{type:Array,default:function(){return[]}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data:function(){return{screen:null}},computed:{computedStyle:function(){var e=this,n={};return this.settings.forEach((function(t){var i=parseInt(t[0]);if(null!==e.widgetIndex){if(e.widgetIndex!==i)return;t=t.slice(1)}e.applySetting(n,t)})),void 0===n["width"]&&(n["flex"]="0 10 100%"),n}},created:function(){var e=this;this.settings.forEach((function(n){"__SCREEN__"===n[0]&&(e.screen=n[1])}))},methods:{applySetting:function(e,n){switch(n[0]){case"TEXTALIGN":e["text-align"]=n[1].toLowerCase()+" !important",e["--text-align"]=n[1].toLowerCase();break;case"PADDING":isNaN(Number(n[1]))||(n[1]+="px"),e["padding"]=n[1]+" !important";break;case"MARGIN":isNaN(Number(n[1]))||(n[1]+="px"),e["margin"]=n[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(n.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(n.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(n.slice(1))+" !important";break;case"WIDTH":isNaN(Number(n[1]))||(n[1]+="px"),e["width"]=n[1]+" !important";break;case"HEIGHT":isNaN(Number(n[1]))||(n[1]+="px"),e["height"]=n[1]+" !important";break;case"RAW":e[n[1].toLowerCase()]=n[2]+" !important";break}},verifyNumParams:function(e,n,t){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},o=1;o<=n;o++)if(void 0===this.parameters[o-1])throw new i.y(s,"Not enough parameters for ".concat(e,"."),l,"https://openc3.com/docs/v5");if(t&&void 0===!this.parameters[t])throw new i.y(s,"Too many parameters for ".concat(e,"."),l,"https://openc3.com/docs/v5")},setWidth:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"120",l=null;if(l=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===n.widgetIndex&&"WIDTH"===e[1]})):this.settings.find((function(e){return"WIDTH"===e[0]})),l)return l["WIDTH"];if(e){var s=["WIDTH","".concat(e).concat(t)];return null!==this.widgetIndex&&s.unshift(this.widgetIndex),this.settings.push(s),parseInt(e)}var o=["WIDTH","".concat(i).concat(t)];return null!==this.widgetIndex&&o.unshift(this.widgetIndex),this.settings.push(o),parseInt(i)},setHeight:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"20",l=null;if(l=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===n.widgetIndex&&"HEIGHT"===e[1]})):this.settings.find((function(e){return"HEIGHT"===e[0]})),l)return l["HEIGHT"];if(e){var s=["HEIGHT","".concat(e).concat(t)];return null!==this.widgetIndex&&s.unshift(this.widgetIndex),this.settings.push(s),parseInt(e)}var o=["HEIGHT","".concat(i).concat(t)];return null!==this.widgetIndex&&o.unshift(this.widgetIndex),this.settings.push(o),parseInt(i)},getColor:function(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return"rgb(".concat(e[0],",").concat(e[1],",").concat(e[2],")")}}}}},16129:function(e,n,t){"use strict";var i=t(66964),l=t(15789),s=t(49502),o=t(89373),a=function(){var e=(0,s.Z)((0,l.Z)().mark((function e(n,t){var i,s,a,r,c,u,d,m,p,A,h=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=h.length>2&&void 0!==h[2]?h[2]:{},s=i.data,a=i.params,r=void 0===a?{}:a,c=i.headers,u=i.noAuth,d=void 0!==u&&u,m=i.noScope,p=void 0!==m&&m,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:A=e.sent,A&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return p||r["scope"]||(r["scope"]=window.openc3Scope),e.abrupt("return",(0,o.Z)({method:n,url:t,data:s,params:r,headers:c}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(n,t){return e.apply(this,arguments)}}(),r={Accept:"application/json"},c=(0,i.Z)((0,i.Z)({},r),{},{"Content-Type":"application/json"});n.Z={get:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,i=n.headers,l=void 0===i?r:i,s=n.noScope,o=n.noAuth;return a("get",e,{params:t,headers:l,noScope:s,noAuth:o})},put:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,i=n.params,l=n.headers,s=void 0===l?c:l,o=n.noScope,r=n.noAuth;return a("put",e,{data:t,params:i,headers:s,noScope:o,noAuth:r})},post:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,i=n.params,l=n.headers,s=void 0===l?c:l,o=n.noScope,r=n.noAuth;return a("post",e,{data:t,params:i,headers:s,noScope:o,noAuth:r})},delete:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,i=n.headers,l=void 0===i?r:i,s=n.noScope,o=n.noAuth;return a("delete",e,{params:t,headers:l,noScope:s,noAuth:o})}}},89373:function(e,n,t){"use strict";t(39529),t(31235),t(58188),t(88233);var i=t(89644),l=t.n(i),s=t(44091),o=new s["default"],a=l().create({baseURL:location.origin,timeout:6e4,params:{}});a.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,i,l,s,a,r,c,u,d;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var m="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(m+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(i=t.config)&&void 0!==i&&i.data&&(m+="".concat(e.response.config.data," ")),null!==(l=e.response)&&void 0!==l&&null!==(s=l.data)&&void 0!==s&&s.message)m+="".concat(e.response.data.message);else if(null!==(a=e.response)&&void 0!==a&&null!==(r=a.data)&&void 0!==r&&r.exception)m+="".concat(e.response.data.exception);else if(null!==(c=e.response)&&void 0!==c&&null!==(u=c.data)&&void 0!==u&&null!==(d=u.error)&&void 0!==d&&d.message)e.response.data.error.class&&(m+="".concat(e.response.data.error.class," ")),m+="".concat(e.response.data.error.message);else{var p;m+="".concat(null===(p=e.response)||void 0===p?void 0:p.data)}throw o.$notify&&o.$notify.serious({title:"Network error",body:m}),e}throw e})),n.Z=a},59161:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(66964),l=t(50426),s=t(57871),o=t(47146);o.ju.staleThreshold=10;var a=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,l.Z)(this,e),this._cable=null,this._url=n}return(0,s.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,n){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(n){if(n&&OpenC3Auth.setTokens(),null==t._cable){var a=t._url+"?scope="+window.openc3Scope+"&authorization="+localStorage.openc3Token;t._cable=o.zD(a)}return t._cable.subscriptions.create((0,i.Z)({channel:e},s),l)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),e}()},63291:function(e,n,t){"use strict";t.d(n,{p:function(){return a},y:function(){return o}});var i=t(52261),l=t(57871),s=t(50426),o=(t(77950),t(85940),t(36728),t(45794),(0,l.Z)((function e(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,s.Z)(this,e),this.keyword=n.keyword,this.parameters=n.parameters,this.filename=n.filename,this.line=n.line,this.lineNumber=n.lineNumber,this.message=t,this.usage=i,this.url=l}))),a=function(){function e(){(0,s.Z)(this,e),(0,i.Z)(this,"keyword",null),(0,i.Z)(this,"parameters",[]),(0,i.Z)(this,"filename",""),(0,i.Z)(this,"line",""),(0,i.Z)(this,"lineNumber",0),(0,i.Z)(this,"url","https://openc3.com/docs/v5")}return(0,l.Z)(e,[{key:"verify_num_parameters",value:function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=1;i<=e;i++)if(void 0===this.parameters[i-1])throw new o(this,"Not enough parameters for ".concat(this.keyword,"."),t,this.url);if(n&&void 0===!this.parameters[n])throw new o(this,"Too many parameters for ".concat(this.keyword,"."),t,this.url)}},{key:"remove_quotes",value:function(e){if(e.length<2)return e;var n=e.charAt(0);if('"'!==n&&"'"!==n)return e;var t=e.charAt(e.length-1);return n!==t?e:e.substring(1,e.length-1)}},{key:"scan_string",value:function(e,n){if(!n.global)throw"rx must have 'global' flag set";var t=[];return e.replace(n,(function(e){return t.push(e),e})),t}},{key:"parse_string",value:function(e,n,t,i,l){var s=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=n;for(var o=e.split("\n"),a=o.length,r=0;r<a;r++){this.lineNumber=r+1;var c=o[r].trim();if(0!==c.length){if(!0===s){if("#"===c[0])continue;c=c.substring(1,c.length)}var u=c.charAt(c.length-1),d=!1;switch(u){case"+":d=!0;case"\\":var m=c.substring(0,c.length-1).trim();this.line+=m.substring(0,m.length-1),d&&(this.line+="\n"),s=!0;continue;case"&":this.line+=c.substring(0,c.length-1);continue;default:this.line+=c}s=!1;var p=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,A=this.scan_string(this.line,p),h="";if(A.length>0&&(h+=A[0]),0===h.length||"#"===h.charAt(0)?this.keyword=null:this.keyword=h.toUpperCase(),this.parameters=[],null!==this.keyword){var v=A.length;if(v>1)for(var f=1;f<v;f++){var g=A[f];if(g.length>0&&"#"===g.charAt(0))break;i?this.parameters.push(this.remove_quotes(g)):this.parameters.push(g)}l(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}else t&&l(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}}]),e}()},48392:function(e,n,t){"use strict";t.d(n,{k:function(){return d}});var i=t(26259),l=t(15789),s=t(66964),o=t(49502),a=t(50426),r=t(57871),c=t(52261),u=(t(71372),t(71245),t(77950),t(18178),t(39529),t(58188),t(13675),t(94898),t(5825),t(67170),t(38857),t(58329),t(76279),t(427),t(40171),t(57093),t(11159),t(42516),t(64349),t(15273),t(16729),t(41801),t(50574),t(5787),t(39271),t(73160),t(65688),t(93157),t(33333),t(70315),t(50556),t(92529),t(86943),t(29224),t(91157),t(43450),t(27233),t(28673),t(35734),t(88233),t(89373)),d=function(){function e(){(0,a.Z)(this,e),(0,c.Z)(this,"id",1)}return(0,r.Z)(e,[{key:"exec",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t){var i,o,a,r,c,d=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=d.length>2&&void 0!==d[2]?d[2]:{},o=d.length>3&&void 0!==d[3]?d[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:a=e.sent,a&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:return this.id=this.id+1,e.prev=13,i["scope"]=window.openc3Scope,e.next=17,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:i},{headers:(0,s.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},o)});case 17:return r=e.sent,e.abrupt("return",r.data.result);case 21:throw e.prev=21,e.t1=e["catch"](13),c=new Error,e.t1.response?(c.name=e.t1.response.data.error.data.class,c.message=e.t1.response.data.error.data.message):e.t1.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c;case 26:case"end":return e.stop()}}),e,this,[[2,9],[13,21]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,i.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(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}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(n){n&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,n){return this.exec("map_target_to_interface",[e,n])}},{key:"connect_interface",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];return t.length>0?this.exec("connect_interface",[e].concat(t)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,n,t){return this.exec("get_item",[e,n,t])}},{key:"get_parameter",value:function(e,n,t){return this.exec("get_parameter",[e,n,t])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,n){return this.exec("get_telemetry",[e,n])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t,i){var s,o,a,r,c,u=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[n,t],{type:i,stale_time:s});case 3:if(o=e.sent,null!=o)for(a=o.length,r=null,c=0;c<a;c++)r=this.decode_openc3_type(o[c][1]),null!==r&&(o[c][1]=r);return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));function n(n,t,i){return e.apply(this,arguments)}return n}()},{key:"get_packet_derived_items",value:function(e,n){return this.exec("get_packet_derived_items",[e,n])}},{key:"get_tlm_buffer",value:function(e,n){return this.exec("get_tlm_buffer",[e,n])}},{key:"get_tlm_values",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n){var t,i,s,o,a,r=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:30,e.next=3,this.exec("get_tlm_values",[n],{stale_time:t});case 3:for(i=e.sent,s=i[0].length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(i[0][a]),null!==o&&(i[0][a]=o);return e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()},{key:"get_limits",value:function(e,n,t){return this.exec("get_limits",[e,n,t])}},{key:"tlm",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t,i){var s,o,a,r,c=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=c.length>3&&void 0!==c[3]?c[3]:"CONVERTED",o=null,void 0!==t){e.next=8;break}return e.next=5,this.exec("tlm",[n]);case 5:o=e.sent,e.next=24;break;case 8:if(void 0!==i){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){e.next=15;break}return e.next=12,this.exec("tlm",[n],{type:t});case 12:o=e.sent,e.next=19;break;case 15:throw a=new Error,a.name="TypeError",a.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),a;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[n,t,i],{type:s});case 23:o=e.sent;case 24:return r=this.decode_openc3_type(o),null!==r&&(o=r),e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this)})));function n(n,t,i){return e.apply(this,arguments)}return n}()},{key:"inject_tlm",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t){var i,s,o=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=o.length>2&&void 0!==o[2]?o[2]:null,s=o.length>3&&void 0!==o[3]?o[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[n,t,i],{type:s});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"set_tlm",value:function(e,n,t,i){return this.exec("set_tlm",[e,n,t],{type:i})}},{key:"override_tlm",value:function(e,n,t,i){return this.exec("override_tlm",[e,n,t],{type:i})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,n,t,i){return this.exec("normalize_tlm",[e,n,t],{type:i})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,n){return this.exec("get_command",[e,n])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,n,t,i])}},{key:"get_cmd_buffer",value:function(e,n){return this.exec("get_cmd_buffer",[e,n])}},{key:"_cmd",value:function(e,n,t,i,l){var s=null;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(s=this.encode_openc3_type(i[o]),null!==s&&(i[o]=s));return this.exec(e,[n,t,i],{},l)}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===n?this.exec("cmd",e,{},i):this._cmd("cmd",e,n,t,i)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"build_command",value:function(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"enable_limits",value:function(e,n,t){return this.exec("enable_limits",[e,n,t])}},{key:"disable_limits",value:function(e,n,t){return this.exec("disable_limits",[e,n,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,n){return this.exec("save_setting",[e,n])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n){var t,i,s;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return t=(new TextEncoder).encode(n),e.next=4,crypto.subtle.digest("SHA-256",t);case 4:return i=e.sent,s=new Uint8Array(i),e.abrupt("return",Array.from(s).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}]),e}()},40792:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Hi}});t(95342),t(58188);function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="3224094180ef1a64b3ad3dc4605cc50a688fae20",t=new Function("return this")(),l="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:6,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:5,column:35}},4:{start:{line:1,column:265},end:{line:1,column:406}},5:{start:{line:1,column:339},end:{line:1,column:360}},6:{start:{line:1,column:465},end:{line:1,column:482}},7:{start:{line:1,column:730},end:{line:3,column:58}},8:{start:{line:2,column:12},end:{line:2,column:41}},9:{start:{line:3,column:125},end:{line:3,column:150}},10:{start:{line:3,column:386},end:{line:3,column:928}},11:{start:{line:3,column:823},end:{line:3,column:853}},12:{start:{line:3,column:888},end:{line:3,column:918}},13:{start:{line:3,column:1411},end:{line:3,column:1603}},14:{start:{line:3,column:1953},end:{line:3,column:1975}},15:{start:{line:3,column:2251},end:{line:3,column:2267}},16:{start:{line:3,column:2540},end:{line:3,column:2553}},17:{start:{line:3,column:3138},end:{line:3,column:3462}},18:{start:{line:3,column:3313},end:{line:3,column:3369}},19:{start:{line:3,column:4167},end:{line:3,column:4193}},20:{start:{line:3,column:4385},end:{line:3,column:4401}},21:{start:{line:3,column:4531},end:{line:3,column:4555}},22:{start:{line:3,column:4555},end:{line:3,column:4613}},23:{start:{line:3,column:4778},end:{line:3,column:4806}},24:{start:{line:3,column:4911},end:{line:3,column:5082}},25:{start:{line:3,column:5780},end:{line:3,column:5793}},26:{start:{line:3,column:5913},end:{line:3,column:5929}},27:{start:{line:3,column:6089},end:{line:3,column:6115}},28:{start:{line:3,column:6142},end:{line:3,column:6169}},29:{start:{line:3,column:6225},end:{line:3,column:6241}},30:{start:{line:3,column:6476},end:{line:3,column:6509}},31:{start:{line:3,column:6536},end:{line:3,column:6563}},32:{start:{line:3,column:6621},end:{line:3,column:6639}},33:{start:{line:3,column:6784},end:{line:3,column:6807}},34:{start:{line:3,column:7099},end:{line:3,column:7129}},35:{start:{line:3,column:7404},end:{line:3,column:7435}},36:{start:{line:3,column:7647},end:{line:3,column:7685}},37:{start:{line:3,column:7953},end:{line:3,column:7993}},38:{start:{line:3,column:8140},end:{line:3,column:8161}},39:{start:{line:3,column:8541},end:{line:3,column:8574}},40:{start:{line:3,column:8742},end:{line:3,column:8776}},41:{start:{line:3,column:9040},end:{line:3,column:9084}},42:{start:{line:3,column:9292},end:{line:3,column:9314}},43:{start:{line:3,column:9424},end:{line:3,column:9443}},44:{start:{line:4,column:12},end:{line:4,column:35}},45:{start:{line:7,column:22},end:{line:7,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:245},end:{line:1,column:246}},loc:{start:{line:1,column:264},end:{line:1,column:407}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:322},end:{line:1,column:323}},loc:{start:{line:1,column:338},end:{line:1,column:361}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:449},end:{line:1,column:450}},loc:{start:{line:1,column:464},end:{line:1,column:483}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:710},end:{line:1,column:711}},loc:{start:{line:1,column:729},end:{line:3,column:59}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:949},end:{line:1,column:950}},loc:{start:{line:1,column:955},end:{line:3,column:11}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:3,column:109},end:{line:3,column:110}},loc:{start:{line:3,column:124},end:{line:3,column:151}},line:3},7:{name:"(anonymous_7)",decl:{start:{line:3,column:372},end:{line:3,column:373}},loc:{start:{line:3,column:385},end:{line:3,column:929}},line:3},8:{name:"(anonymous_8)",decl:{start:{line:3,column:806},end:{line:3,column:807}},loc:{start:{line:3,column:822},end:{line:3,column:854}},line:3},9:{name:"(anonymous_9)",decl:{start:{line:3,column:871},end:{line:3,column:872}},loc:{start:{line:3,column:887},end:{line:3,column:919}},line:3},10:{name:"(anonymous_10)",decl:{start:{line:3,column:1387},end:{line:3,column:1388}},loc:{start:{line:3,column:1410},end:{line:3,column:1604}},line:3},11:{name:"(anonymous_11)",decl:{start:{line:3,column:1937},end:{line:3,column:1938}},loc:{start:{line:3,column:1952},end:{line:3,column:1976}},line:3},12:{name:"(anonymous_12)",decl:{start:{line:3,column:2235},end:{line:3,column:2236}},loc:{start:{line:3,column:2250},end:{line:3,column:2268}},line:3},13:{name:"(anonymous_13)",decl:{start:{line:3,column:2524},end:{line:3,column:2525}},loc:{start:{line:3,column:2539},end:{line:3,column:2554}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3114},end:{line:3,column:3115}},loc:{start:{line:3,column:3137},end:{line:3,column:3463}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3296},end:{line:3,column:3297}},loc:{start:{line:3,column:3312},end:{line:3,column:3370}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:4150},end:{line:3,column:4151}},loc:{start:{line:3,column:4166},end:{line:3,column:4194}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4369},end:{line:3,column:4370}},loc:{start:{line:3,column:4384},end:{line:3,column:4402}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:4514},end:{line:3,column:4515}},loc:{start:{line:3,column:4530},end:{line:3,column:4614}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:3,column:4762},end:{line:3,column:4763}},loc:{start:{line:3,column:4777},end:{line:3,column:4807}},line:3},20:{name:"(anonymous_20)",decl:{start:{line:3,column:4896},end:{line:3,column:4897}},loc:{start:{line:3,column:4910},end:{line:3,column:5083}},line:3},21:{name:"(anonymous_21)",decl:{start:{line:3,column:5764},end:{line:3,column:5765}},loc:{start:{line:3,column:5779},end:{line:3,column:5794}},line:3},22:{name:"(anonymous_22)",decl:{start:{line:3,column:5897},end:{line:3,column:5898}},loc:{start:{line:3,column:5912},end:{line:3,column:5930}},line:3},23:{name:"(anonymous_23)",decl:{start:{line:3,column:6072},end:{line:3,column:6073}},loc:{start:{line:3,column:6088},end:{line:3,column:6116}},line:3},24:{name:"(anonymous_24)",decl:{start:{line:3,column:6125},end:{line:3,column:6126}},loc:{start:{line:3,column:6141},end:{line:3,column:6170}},line:3},25:{name:"(anonymous_25)",decl:{start:{line:3,column:6209},end:{line:3,column:6210}},loc:{start:{line:3,column:6224},end:{line:3,column:6242}},line:3},26:{name:"(anonymous_26)",decl:{start:{line:3,column:6459},end:{line:3,column:6460}},loc:{start:{line:3,column:6475},end:{line:3,column:6510}},line:3},27:{name:"(anonymous_27)",decl:{start:{line:3,column:6519},end:{line:3,column:6520}},loc:{start:{line:3,column:6535},end:{line:3,column:6564}},line:3},28:{name:"(anonymous_28)",decl:{start:{line:3,column:6605},end:{line:3,column:6606}},loc:{start:{line:3,column:6620},end:{line:3,column:6640}},line:3},29:{name:"(anonymous_29)",decl:{start:{line:3,column:6768},end:{line:3,column:6769}},loc:{start:{line:3,column:6783},end:{line:3,column:6808}},line:3},30:{name:"(anonymous_30)",decl:{start:{line:3,column:7083},end:{line:3,column:7084}},loc:{start:{line:3,column:7098},end:{line:3,column:7130}},line:3},31:{name:"(anonymous_31)",decl:{start:{line:3,column:7388},end:{line:3,column:7389}},loc:{start:{line:3,column:7403},end:{line:3,column:7436}},line:3},32:{name:"(anonymous_32)",decl:{start:{line:3,column:7631},end:{line:3,column:7632}},loc:{start:{line:3,column:7646},end:{line:3,column:7686}},line:3},33:{name:"(anonymous_33)",decl:{start:{line:3,column:7937},end:{line:3,column:7938}},loc:{start:{line:3,column:7952},end:{line:3,column:7994}},line:3},34:{name:"(anonymous_34)",decl:{start:{line:3,column:8124},end:{line:3,column:8125}},loc:{start:{line:3,column:8139},end:{line:3,column:8162}},line:3},35:{name:"(anonymous_35)",decl:{start:{line:3,column:8525},end:{line:3,column:8526}},loc:{start:{line:3,column:8540},end:{line:3,column:8575}},line:3},36:{name:"(anonymous_36)",decl:{start:{line:3,column:8726},end:{line:3,column:8727}},loc:{start:{line:3,column:8741},end:{line:3,column:8777}},line:3},37:{name:"(anonymous_37)",decl:{start:{line:3,column:9024},end:{line:3,column:9025}},loc:{start:{line:3,column:9039},end:{line:3,column:9085}},line:3},38:{name:"(anonymous_38)",decl:{start:{line:3,column:9276},end:{line:3,column:9277}},loc:{start:{line:3,column:9291},end:{line:3,column:9315}},line:3},39:{name:"(anonymous_39)",decl:{start:{line:3,column:9408},end:{line:3,column:9409}},loc:{start:{line:3,column:9423},end:{line:3,column:9444}},line:3},40:{name:"(anonymous_40)",decl:{start:{line:3,column:9619},end:{line:3,column:9620}},loc:{start:{line:3,column:9625},end:{line:5,column:11}},line:3}},branchMap:{0:{loc:{start:{line:3,column:934},end:{line:3,column:1092}},type:"cond-expr",locations:[{start:{line:3,column:952},end:{line:3,column:1083}},{start:{line:3,column:1084},end:{line:3,column:1092}}],line:3},1:{loc:{start:{line:3,column:1196},end:{line:3,column:1310}},type:"cond-expr",locations:[{start:{line:3,column:1217},end:{line:3,column:1301}},{start:{line:3,column:1302},end:{line:3,column:1310}}],line:3},2:{loc:{start:{line:3,column:2577},end:{line:3,column:2796}},type:"cond-expr",locations:[{start:{line:3,column:2609},end:{line:3,column:2715}},{start:{line:3,column:2716},end:{line:3,column:2796}}],line:3},3:{loc:{start:{line:3,column:2812},end:{line:3,column:4047}},type:"cond-expr",locations:[{start:{line:3,column:2846},end:{line:3,column:3538}},{start:{line:3,column:3539},end:{line:3,column:4047}}],line:3},4:{loc:{start:{line:3,column:5209},end:{line:3,column:5833}},type:"cond-expr",locations:[{start:{line:3,column:5225},end:{line:3,column:5824}},{start:{line:3,column:5825},end:{line:3,column:5833}}],line:3},5:{loc:{start:{line:3,column:5964},end:{line:3,column:6276}},type:"cond-expr",locations:[{start:{line:3,column:5979},end:{line:3,column:6267}},{start:{line:3,column:6268},end:{line:3,column:6276}}],line:3},6:{loc:{start:{line:3,column:6277},end:{line:3,column:6676}},type:"cond-expr",locations:[{start:{line:3,column:6294},end:{line:3,column:6667}},{start:{line:3,column:6668},end:{line:3,column:6676}}],line:3},7:{loc:{start:{line:3,column:6677},end:{line:3,column:6849}},type:"cond-expr",locations:[{start:{line:3,column:6699},end:{line:3,column:6840}},{start:{line:3,column:6841},end:{line:3,column:6849}}],line:3},8:{loc:{start:{line:3,column:6850},end:{line:3,column:7164}},type:"cond-expr",locations:[{start:{line:3,column:6865},end:{line:3,column:7155}},{start:{line:3,column:7156},end:{line:3,column:7164}}],line:3},9:{loc:{start:{line:3,column:7165},end:{line:3,column:7471}},type:"cond-expr",locations:[{start:{line:3,column:7181},end:{line:3,column:7462}},{start:{line:3,column:7463},end:{line:3,column:7471}}],line:3},10:{loc:{start:{line:3,column:7472},end:{line:3,column:7728}},type:"cond-expr",locations:[{start:{line:3,column:7495},end:{line:3,column:7719}},{start:{line:3,column:7720},end:{line:3,column:7728}}],line:3},11:{loc:{start:{line:3,column:7729},end:{line:3,column:8038}},type:"cond-expr",locations:[{start:{line:3,column:7754},end:{line:3,column:8029}},{start:{line:3,column:8030},end:{line:3,column:8038}}],line:3},12:{loc:{start:{line:3,column:8039},end:{line:3,column:8201}},type:"cond-expr",locations:[{start:{line:3,column:8059},end:{line:3,column:8192}},{start:{line:3,column:8193},end:{line:3,column:8201}}],line:3},13:{loc:{start:{line:3,column:8202},end:{line:3,column:8612}},type:"cond-expr",locations:[{start:{line:3,column:8220},end:{line:3,column:8603}},{start:{line:3,column:8604},end:{line:3,column:8612}}],line:3},14:{loc:{start:{line:3,column:8613},end:{line:3,column:8815}},type:"cond-expr",locations:[{start:{line:3,column:8632},end:{line:3,column:8806}},{start:{line:3,column:8807},end:{line:3,column:8815}}],line:3},15:{loc:{start:{line:3,column:8816},end:{line:3,column:9133}},type:"cond-expr",locations:[{start:{line:3,column:8845},end:{line:3,column:9124}},{start:{line:3,column:9125},end:{line:3,column:9133}}],line:3},16:{loc:{start:{line:3,column:9519},end:{line:5,column:23}},type:"cond-expr",locations:[{start:{line:3,column:9537},end:{line:5,column:14}},{start:{line:5,column:15},end:{line:5,column:23}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"3224094180ef1a64b3ad3dc4605cc50a688fae20"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=s);var a=o[e];return i=function(){return a},a}i(),i().s[0]++;var l=function(){i().f[0]++;var e=(i().s[1]++,this),n=(i().s[2]++,e._self._c);return i().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("v-snackbar",{attrs:{top:"",color:e.alertType,timeout:3e3},scopedSlots:e._u([{key:"action",fn:function(t){var l=t.attrs;return i().f[1]++,i().s[4]++,[n("v-btn",e._b({attrs:{text:""},on:{click:function(n){i().f[2]++,i().s[5]++,e.showAlert=!1}}},"v-btn",l,!1),[e._v(" Close ")])]}}]),model:{value:e.showAlert,callback:function(n){i().f[3]++,i().s[6]++,e.showAlert=n},expression:"showAlert"}},[n("v-icon",[e._v(" mdi-"+e._s(e.alertType)+" ")]),e._v(" "+e._s(e.alertText)+" ")],1),n("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:e._u([{key:"action",fn:function(t){var l=t.attrs;return i().f[4]++,i().s[7]++,[n("v-btn",e._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:e.confirmLocalUnlock}},"v-btn",l,!1),[e._v(" Unlock ")]),n("v-btn",e._b({attrs:{text:""},on:{click:function(){i().f[5]++,i().s[8]++,e.showReadOnlyToast=!1}}},"v-btn",l,!1),[e._v(" dismiss ")])]}}]),model:{value:e.showReadOnlyToast,callback:function(n){i().f[6]++,i().s[9]++,e.showReadOnlyToast=n},expression:"showReadOnlyToast"}},[n("v-icon",[e._v(" mdi-pencil-off ")]),e._v(" "+e._s(e.lockedBy)+" is editing this script. Editor is in read-only mode ")],1),n("div",{staticClass:"grid"},e._l(e.screens,(function(t){return i().f[7]++,i().s[10]++,n("div",{key:t.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(t.id)}},[n("div",{staticClass:"item-content"},[n("openc3-screen",{attrs:{target:t.target,screen:t.screen,definition:t.definition,keywords:e.screenKeywords,initialFloated:!0,initialTop:t.top,initialLeft:t.left,initialZ:3,minZ:3,fixFloated:!0,count:t.count},on:{"close-screen":function(n){return i().f[8]++,i().s[11]++,e.closeScreen(t.id)},"delete-screen":function(n){return i().f[9]++,i().s[12]++,e.closeScreen(t.id)}}})],1)])})),0),e.suiteRunner?(i().b[0][0]++,n("suite-runner",{attrs:{"suite-map":e.suiteMap,"disable-buttons":e.disableSuiteButtons},on:{button:e.suiteRunnerButton}})):(i().b[0][1]++,e._e()),n("div",{attrs:{id:"sr-controls"}},[n("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e.showDisconnect?(i().b[1][0]++,n("v-icon",{staticClass:"mr-2",attrs:{color:"red"}},[e._v(" mdi-connection ")])):(i().b[1][1]++,e._e()),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return i().f[10]++,i().s[13]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.filename===e.NEW_FILENAME},on:{click:e.reloadFile}},"v-btn",s,!1),l),[n("v-icon",[e._v("mdi-cached")])],1)]}}])},[n("span",[e._v(" Reload File ")])]),n("v-select",{staticStyle:{width:"300px"},attrs:{items:e.fileList,disabled:e.fileList.length<=1,label:"Filename",id:"filename","data-test":"filename",dense:"",outlined:"","hide-details":""},on:{change:e.fileNameChanged},model:{value:e.filenameSelect,callback:function(n){i().f[11]++,i().s[14]++,e.filenameSelect=n},expression:"filenameSelect"}}),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"100px"},attrs:{label:"Script ID","data-test":"id",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.scriptId,callback:function(n){i().f[12]++,i().s[15]++,e.scriptId=n},expression:"scriptId"}}),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"120px"},attrs:{label:"Script State","data-test":"state",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.state,callback:function(n){i().f[13]++,i().s[16]++,e.state=n},expression:"state"}}),"Connecting..."===e.state?(i().b[2][0]++,n("v-progress-circular",{staticClass:"ml-2 mr-2",attrs:{size:40,indeterminate:"",color:"primary"}})):(i().b[2][1]++,n("div",{staticClass:"ml-2 mr-2",staticStyle:{width:"40px",height:"40px"}})),n("v-spacer"),"Start"===e.startOrGoButton?(i().b[3][0]++,n("div",[n("v-btn",{staticClass:"mx-1",attrs:{color:"primary","data-test":"start-button",disabled:e.startOrGoDisabled},on:{click:e.startHandler}},[n("span",[e._v(" Start ")])]),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return i().f[14]++,i().s[17]++,[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{"data-test":"env-button",color:e.environmentIconColor,disabled:e.envDisabled},on:{click:function(n){i().f[15]++,i().s[18]++,e.scriptEnvironment.show=!e.scriptEnvironment.show}}},"v-btn",s,!1),l),[n("v-icon",[e._v(" "+e._s(e.environmentIcon)+" ")])],1)]}}],null,!1,3991735395)},[n("span",[e._v("Script Environment")])])],1)):(i().b[3][1]++,n("div",[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.startOrGoDisabled,"data-test":"go-button"},on:{click:e.go}},[e._v(" Go ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.pauseOrRetryDisabled,"data-test":"pause-retry-button"},on:{click:e.pauseOrRetry}},[e._v(" "+e._s(e.pauseOrRetryButton)+" ")]),n("v-btn",{attrs:{color:"primary","data-test":"stop-button",disabled:e.stopDisabled},on:{click:e.stop}},[e._v(" Stop ")])],1))],1)],1),n("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(n){return i().f[16]++,i().s[19]++,e.editor.resize()}}},[n("div",{staticClass:"editorbox pane"},[n("v-snackbar",{staticClass:"saving",attrs:{absolute:"",top:"",right:"",timeout:-1},model:{value:e.showSave,callback:function(n){i().f[17]++,i().s[20]++,e.showSave=n},expression:"showSave"}},[e._v(" Saving... ")]),n("pre",{ref:"editor",staticClass:"editor",on:{contextmenu:function(n){return i().f[18]++,i().s[21]++,n.preventDefault(),i().s[22]++,e.showExecuteSelectionMenu.apply(null,arguments)}}}),n("v-menu",{attrs:{"position-x":e.menuX,"position-y":e.menuY,absolute:"","offset-y":""},model:{value:e.executeSelectionMenu,callback:function(n){i().f[19]++,i().s[23]++,e.executeSelectionMenu=n},expression:"executeSelectionMenu"}},[n("v-list",e._l(e.executeSelectionMenuItems,(function(t){return i().f[20]++,i().s[24]++,n("v-list-item",{key:t.label,attrs:{disabled:e.scriptRunning}},[n("v-list-item-title",{on:{click:t.command}},[e._v(" "+e._s(t.label)+" ")])],1)})),1)],1)],1),n("multipane-resizer",[n("hr")]),n("div",{ref:"messagesDiv",staticClass:"mt-2 pane",attrs:{id:"messages"}},[e.showDebug?(i().b[4][0]++,n("div",{staticClass:"pa-0",attrs:{id:"debug"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-btn",{staticClass:"mr-4",staticStyle:{width:"100px"},attrs:{color:"primary",disabled:!e.scriptRunning,"data-test":"step-button"},on:{click:e.step}},[e._v(" Step "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-step-forward ")])],1),n("v-text-field",{staticClass:"mb-2",attrs:{outlined:"",dense:"","hide-details":"",label:"Debug","data-test":"debug-text"},on:{keydown:e.debugKeydown},model:{value:e.debug,callback:function(n){i().f[21]++,i().s[25]++,e.debug=n},expression:"debug"}})],1)],1)):(i().b[4][1]++,e._e()),n("script-log-messages",{model:{value:e.messages,callback:function(n){i().f[22]++,i().s[26]++,e.messages=n},expression:"messages"}})],1)],1),e.fileOpen?(i().b[5][0]++,n("file-open-save-dialog",{attrs:{type:"open","api-url":"/script-api/scripts"},on:{file:function(n){return i().f[23]++,i().s[27]++,e.setFile(n)},error:function(n){return i().f[24]++,i().s[28]++,e.setError(n)}},model:{value:e.fileOpen,callback:function(n){i().f[25]++,i().s[29]++,e.fileOpen=n},expression:"fileOpen"}})):(i().b[5][1]++,e._e()),e.showSaveAs?(i().b[6][0]++,n("file-open-save-dialog",{attrs:{type:"save","api-url":"/script-api/scripts","require-target-parent-dir":"","input-filename":e.filenameOrBlank},on:{filename:function(n){return i().f[26]++,i().s[30]++,e.saveAsFilename(n)},error:function(n){return i().f[27]++,i().s[31]++,e.setError(n)}},model:{value:e.showSaveAs,callback:function(n){i().f[28]++,i().s[32]++,e.showSaveAs=n},expression:"showSaveAs"}})):(i().b[6][1]++,e._e()),e.showEnvironment?(i().b[7][0]++,n("environment-dialog",{model:{value:e.showEnvironment,callback:function(n){i().f[29]++,i().s[33]++,e.showEnvironment=n},expression:"showEnvironment"}})):(i().b[7][1]++,e._e()),e.ask.show?(i().b[8][0]++,n("ask-dialog",{attrs:{question:e.ask.question,default:e.ask.default,password:e.ask.password,"answer-required":e.ask.answerRequired},on:{response:e.ask.callback},model:{value:e.ask.show,callback:function(n){i().f[30]++,i().s[34]++,e.$set(e.ask,"show",n)},expression:"ask.show"}})):(i().b[8][1]++,e._e()),e.file.show?(i().b[9][0]++,n("file-dialog",{attrs:{title:e.file.title,message:e.file.message,multiple:e.file.multiple,filter:e.file.filter},on:{response:e.fileDialogCallback},model:{value:e.file.show,callback:function(n){i().f[31]++,i().s[35]++,e.$set(e.file,"show",n)},expression:"file.show"}})):(i().b[9][1]++,e._e()),e.information.show?(i().b[10][0]++,n("information-dialog",{attrs:{title:e.information.title,text:e.information.text},model:{value:e.information.show,callback:function(n){i().f[32]++,i().s[36]++,e.$set(e.information,"show",n)},expression:"information.show"}})):(i().b[10][1]++,e._e()),e.inputMetadata.show?(i().b[11][0]++,n("event-list-dialog",{attrs:{events:e.inputMetadata.events,utc:!1,"new-metadata":""},on:{close:e.inputMetadata.callback},model:{value:e.inputMetadata.show,callback:function(n){i().f[33]++,i().s[37]++,e.$set(e.inputMetadata,"show",n)},expression:"inputMetadata.show"}})):(i().b[11][1]++,e._e()),e.showOverrides?(i().b[12][0]++,n("overrides-dialog",{model:{value:e.showOverrides,callback:function(n){i().f[34]++,i().s[38]++,e.showOverrides=n},expression:"showOverrides"}})):(i().b[12][1]++,e._e()),e.prompt.show?(i().b[13][0]++,n("prompt-dialog",{attrs:{title:e.prompt.title,subtitle:e.prompt.subtitle,message:e.prompt.message,details:e.prompt.details,buttons:e.prompt.buttons,layout:e.prompt.layout,multiple:e.prompt.multiple},on:{response:e.prompt.callback},model:{value:e.prompt.show,callback:function(n){i().f[35]++,i().s[39]++,e.$set(e.prompt,"show",n)},expression:"prompt.show"}})):(i().b[13][1]++,e._e()),e.results.show?(i().b[14][0]++,n("results-dialog",{attrs:{text:e.results.text},model:{value:e.results.show,callback:function(n){i().f[36]++,i().s[40]++,e.$set(e.results,"show",n)},expression:"results.show"}})):(i().b[14][1]++,e._e()),e.scriptEnvironment.show?(i().b[15][0]++,n("script-environment-dialog",{attrs:{"input-environment":e.scriptEnvironment.env},on:{environment:e.environmentHandler},model:{value:e.scriptEnvironment.show,callback:function(n){i().f[37]++,i().s[41]++,e.$set(e.scriptEnvironment,"show",n)},expression:"scriptEnvironment.show"}})):(i().b[15][1]++,e._e()),n("simple-text-dialog",{attrs:{title:"Suite Analysis Error",text:e.suiteError,width:1e3},model:{value:e.showSuiteError,callback:function(n){i().f[38]++,i().s[42]++,e.showSuiteError=n},expression:"showSuiteError"}}),n("v-bottom-sheet",{model:{value:e.showScripts,callback:function(n){i().f[39]++,i().s[43]++,e.showScripts=n},expression:"showScripts"}},[n("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[e.showScripts?(i().b[16][0]++,n("running-scripts",{attrs:{"connect-in-new-tab":!!e.fileModified},on:{close:function(){i().f[40]++,i().s[44]++,e.showScripts=!1}}})):(i().b[16][1]++,e._e())],1)],1)],1)},s=(i().s[45]++,[]),o=t(66964),a=t(78081),r=t(15789),c=t(49502),u=t(50615),d=(t(34769),t(36728),t(93244),t(28673),t(6886),t(45794),t(18178),t(43450),t(24905),t(17368),t(24471),t(77950),t(51172),t(88233),t(1951),t(49228),t(1939),t(39529),t(31235),t(33132),t(71245),t(99805),t(14121),t(60523),t(28399),t(32501),t(34115),t(634),t(89644)),m=t.n(d),p=t(59161),A=t(16129),h=t(95095),v=(t(5343),t(40419),t(83923),t(72375),t(73053)),f=t(67284),g=(t(74083),t(94908),function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" "+e._s(e.title)+" ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","data-test":"file-open-save-search"},on:{input:e.handleSearch},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-row",{staticClass:"mt-2",attrs:{dense:""}},[n("v-treeview",{ref:"tree",staticStyle:{width:"100%"},attrs:{dense:"",activatable:"","return-object":"",items:e.items,search:e.search,"open-on-click":"open"===e.type},on:{"update:active":e.activeFile},scopedSlots:e._u([{key:"prepend",fn:function(t){var i=t.item,l=t.open;return[i.file?n("v-icon",[e._v(" "+e._s("mdi-language-ruby")+" ")]):n("v-icon",[e._v(" "+e._s(l?"mdi-folder-open":"mdi-folder")+" ")])]}},{key:"append",fn:function(t){var i=t.item;return["__TEMP__"===i.name?n("v-btn",{attrs:{icon:""},on:{click:e.deleteTemp}},[n("v-icon",[e._v(" mdi-delete ")])],1):e._e()]}}]),model:{value:e.tree,callback:function(n){e.tree=n},expression:"tree"}})],1),n("v-row",{staticClass:"my-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===e.type},model:{value:e.selectedFile,callback:function(n){e.selectedFile=n},expression:"selectedFile"}})],1),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:e.disableButtons},on:{click:function(n){e.show=!1}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:e.disableButtons||!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" "+e._s(e.submit)+" ")])],1)],1)])],1)])],1)}),b=[],C=(t(74069),t(9949),{props:{type:{type:String,required:!0,validator:function(e){return-1!==["open","save"].indexOf(e)}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,value:Boolean},data:function(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[]}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},title:function(){return"open"===this.type?"File Open":"File Save As..."},submit:function(){return"open"===this.type?"OPEN":"SAVE"},error:function(){if(""===this.selectedFile||null===this.selectedFile)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){var e="".concat(this.selectedFile," is not a valid filename. Must ");return this.requireTargetParentDir&&(e+="be in a target directory and "),e+="only contain alphanumeric characters and / ! - _ . * ' ( )",e}return null},validFilenameRegex:function(){var e="0-9a-zA-Z",n="".concat(e,"\\/\\!\\-\\_\\.\\*\\'\\(\\)"),t="[".concat(n,"]+\\.[").concat(e,"]+");if(this.requireTargetParentDir){var i="(".concat(this.targets.join("|"),")");t="\\/?".concat(i,"\\/").concat(t)}return new RegExp(t)}},created:function(){var e=this;this.loadFiles(),this.requireTargetParentDir&&A.Z.get("/openc3-api/targets").then((function(n){e.targets=n.data}))},methods:{loadFiles:function(){var e=this;A.Z.get(this.apiUrl).then((function(n){e.items=[],e.id=1;var t,i=(0,a.Z)(n.data);try{for(i.s();!(t=i.n()).done;){var l=t.value;e.filepath=l,e.insertFile(e.items,1,l),e.id++}}catch(s){i.e(s)}finally{i.f()}e.inputFilename&&(e.selectedFile=e.inputFilename)})).catch((function(n){e.$emit("error","Failed to connect to OpenC3. ".concat(n))}))},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(e){e?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(e){0===e.length?this.selectedFile=null:this.selectedFile=e[0].path},exists:function(e,n){var t,i=!1,l=(0,a.Z)(e);try{for(l.s();!(t=l.n()).done;){var s=t.value;if(s.path===n)return!0;if(s.path.length>1&&"*"===s.path[s.path.length-1]&&s.path.slice(0,s.path.length-1)===n)return!0;s.children&&(i=i||this.exists(s.children,n))}}catch(o){l.e(o)}finally{l.f()}return i},success:function(){null!==this.selectedFile&&null===this.error&&("open"===this.type?this.openSuccess():this.saveSuccess())},deleteTemp:function(){var e=this;this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then((function(e){return A.Z["delete"]("/script-api/scripts/temp_files")})).then((function(n){e.loadFiles()})).catch((function(n){e.$notify.error({title:"Error",body:"Failed to remove script temporary files due to ".concat(n)})}))},openSuccess:function(){var e=this;this.disableButtons=!0,A.Z.get("".concat(this.apiUrl,"/").concat(this.selectedFile)).then((function(n){var t={name:e.selectedFile,contents:n.data.contents};n.data.suites&&(t["suites"]=JSON.parse(n.data.suites)),n.data.error&&(t["error"]=n.data.error),n.data.success&&(t["success"]=n.data.success);var i=n.data.locked,l=n.data.breakpoints;e.$emit("file",{file:t,locked:i,breakpoints:l}),e.clear()})).catch((function(n){e.$emit("error","Failed to open ".concat(e.selectedFile,". ").concat(n)),e.clear()}))},saveSuccess:function(){var e=this,n=this.exists(this.items,this.selectedFile);n?this.$dialog.confirm("Are you sure you want to overwrite: ".concat(this.selectedFile),{okText:"Overwrite",cancelText:"Cancel"}).then((function(n){e.$emit("filename",e.selectedFile),e.clear()})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,n,t){var i=t.split("/");if(1===i.length)return e.push({id:this.id,name:i[0],file:"ruby",path:this.filepath}),void this.id++;var l=e.findIndex((function(e){return e.name===i[0]}));-1===l?(e.push({id:this.id,name:i[0],children:[],path:this.filepath.split("/").slice(0,n).join("/")}),this.id++,this.insertFile(e[e.length-1].children,n+1,i.slice(1).join("/"))):this.insertFile(e[l].children,n+1,i.slice(1).join("/"))}}}),_=C,y=t(93483),w=(0,y.Z)(_,g,b,!1,null,null,null),x=w.exports,k=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Global Environment Variables")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{staticClass:"mb-2",attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"item-key":"name","hide-default-header":"","data-test":"env-table",search:e.search,headers:e.headers,items:e.environment,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteEnvironment(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-text-field",{attrs:{label:"Key","data-test":"env-key"},model:{value:e.key,callback:function(n){e.key=n},expression:"key"}})],1),n("v-col",[n("v-text-field",{attrs:{label:"Value","data-test":"env-value"},model:{value:e.keyValue,callback:function(n){e.keyValue=n},expression:"keyValue"}})],1)],1),n("v-row",{attrs:{dense:""}},[n("v-btn",{attrs:{block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!e.key||!e.keyValue},on:{click:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[e._v(" Add ")])],1)],1)])],1)])],1)},S=[],M={props:{value:Boolean},data:function(){return{alert:"",alertType:"success",showAlert:!1,search:"",key:"",keyValue:"",environment:[],headers:[{text:"Key",value:"key"},{text:"Value",value:"value"},{text:"Actions",value:"actions",align:"end",sortable:!1}]}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){this.update()},methods:{alertHandler:function(e){this.alert=e.text,this.alertType=e.type,this.showAlert=!0},update:function(){var e=this;A.Z.get("/openc3-api/environment").then((function(n){e.environment=n.data})).catch((function(e){}))},addEnvironment:function(){var e=this;A.Z.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then((function(n){"New environment variable: ".concat(n.data.name);e.update()})).catch((function(n){var t={text:"Failed to add environment variable: ".concat(n),type:"error"};e.alertHandler(t)})),this.key="",this.keyValue=""},deleteEnvironment:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.key,"=").concat(e.value),{okText:"Delete",cancelText:"Cancel"}).then((function(n){return A.Z["delete"]("/openc3-api/environment/".concat(e.name))})).then((function(t){var i={text:"Removed environment variable: ".concat(e.name),type:"success"};n.alertHandler(i),n.update()})).catch((function(e){var t={text:"Failed to delete environment: ".concat(e),type:"error"};n.alertHandler(t)}))}}},E=M,T=(0,y.Z)(E,k,S,!1,null,null,null),D=T.exports,I=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:e.width},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" "+e._s(e.title)+" ")]),n("v-spacer"),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:e.download}},[e._v(" mdi-download ")])],1)]}}])},[n("span",[e._v(" Download ")])])],1)],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("span",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.text))])])]),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},R=[],O={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{download:function(){var e=new Blob([this.text],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download","".concat(this.title,".txt")),n.click()}}},N=O,Z=(0,y.Z)(N,I,R,!1,null,null,null),L=Z.exports,F=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,i){return n("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var l=i.on,s=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(t.label))}},"v-btn",s,!1),l),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(i,l){return[i.divider?n("v-divider"):n("v-list-item",{key:l,attrs:{disabled:i.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(t.label," ").concat(i.label))},on:{click:function(e){return i.command(i)}}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(n){e.$set(i,"checked",n)},expression:"option.checked"}})],1):e._e(),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},P=[],$=(t(85940),t(71639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),H=$,B=(t(94888),(0,y.Z)(H,F,P,!1,null,"2eb37f67",null)),W=B.exports,U=t(48392);function V(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="6a0c29fb40230da625235b34a5161a9cf22fbc36",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1375}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:895},end:{line:1,column:913}},9:{start:{line:1,column:1267},end:{line:1,column:1291}},10:{start:{line:1,column:1291},end:{line:1,column:1338}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:879},end:{line:1,column:880}},loc:{start:{line:1,column:894},end:{line:1,column:914}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1250},end:{line:1,column:1251}},loc:{start:{line:1,column:1266},end:{line:1,column:1339}},line:1}},branchMap:{0:{loc:{start:{line:1,column:786},end:{line:1,column:820}},type:"cond-expr",locations:[{start:{line:1,column:801},end:{line:1,column:811}},{start:{line:1,column:814},end:{line:1,column:820}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6a0c29fb40230da625235b34a5161a9cf22fbc36"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return V=function(){return o},o}V(),V().s[0]++;var G=function(){V().f[0]++;var e=(V().s[1]++,this),n=(V().s[2]++,e._self._c);return V().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){V().f[1]++,V().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return V().f[2]++,V().s[5]++,n.preventDefault(),V().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){V().f[3]++,V().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" User Input Required ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-row",[n("v-card-title",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.question))])],1),n("v-row",{staticClass:"my-1"},[n("v-text-field",{attrs:{autofocus:"","data-test":"ask-value-input",type:e.password?(V().b[0][0]++,"password"):(V().b[0][1]++,"text"),rules:e.rules},model:{value:e.inputValue,callback:function(n){V().f[4]++,V().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"ask-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"ask-ok",disabled:!e.valid},on:{click:function(n){return V().f[5]++,V().s[9]++,n.preventDefault(),V().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)],1)],1)},z=(V().s[11]++,[]);function j(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="6372711265e5318070bd384413fbdc2ebb04d2f3",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:27,column:5}},1:{start:{line:26,column:21},end:{line:26,column:38}},2:{start:{line:30,column:4},end:{line:33,column:5}},3:{start:{line:31,column:6},end:{line:31,column:23}},4:{start:{line:32,column:6},end:{line:32,column:36}},5:{start:{line:34,column:4},end:{line:37,column:5}},6:{start:{line:35,column:6},end:{line:35,column:23}},7:{start:{line:36,column:6},end:{line:36,column:32}},8:{start:{line:36,column:27},end:{line:36,column:31}},9:{start:{line:42,column:8},end:{line:42,column:25}},10:{start:{line:45,column:8},end:{line:45,column:34}},11:{start:{line:51,column:6},end:{line:51,column:45}},12:{start:{line:54,column:6},end:{line:54,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:28,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:26,column:14},end:{line:26,column:15}},loc:{start:{line:26,column:21},end:{line:26,column:38}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:38,column:3}},line:29},3:{name:"(anonymous_3)",decl:{start:{line:36,column:20},end:{line:36,column:21}},loc:{start:{line:36,column:27},end:{line:36,column:31}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:41,column:6},end:{line:41,column:7}},loc:{start:{line:41,column:12},end:{line:43,column:7}},line:41},5:{name:"(anonymous_5)",decl:{start:{line:44,column:6},end:{line:44,column:7}},loc:{start:{line:44,column:17},end:{line:46,column:7}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:50,column:19},end:{line:50,column:20}},loc:{start:{line:50,column:31},end:{line:52,column:5}},line:50},7:{name:"(anonymous_7)",decl:{start:{line:53,column:19},end:{line:53,column:20}},loc:{start:{line:53,column:31},end:{line:55,column:5}},line:53}},branchMap:{0:{loc:{start:{line:26,column:21},end:{line:26,column:38}},type:"binary-expr",locations:[{start:{line:26,column:21},end:{line:26,column:24}},{start:{line:26,column:28},end:{line:26,column:38}}],line:26},1:{loc:{start:{line:30,column:4},end:{line:33,column:5}},type:"if",locations:[{start:{line:30,column:4},end:{line:33,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:30},2:{loc:{start:{line:34,column:4},end:{line:37,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:37,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["AskDialog.vue"],names:[],mappings:";AA4EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"AskDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> User Input Required </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row>\n <v-card-title style="white-space: pre-line">{{\n question\n }}</v-card-title>\n </v-row>\n <v-row class="my-1">\n <v-text-field\n v-model="inputValue"\n autofocus\n data-test="ask-value-input"\n :type="password ? \'password\' : \'text\'"\n :rules="rules"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="ask-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="ask-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n question: {\n type: String,\n required: true,\n },\n default: {\n type: String,\n default: null,\n },\n password: {\n type: Boolean,\n default: false,\n },\n answerRequired: {\n type: Boolean,\n default: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: \'\',\n valid: false,\n rules: [(v) => !!v || \'Required\'],\n }\n },\n created() {\n if (this.default) {\n this.valid = true\n this.inputValue = this.default\n }\n if (this.answerRequired === false) {\n this.valid = true\n this.rules = [(v) => true]\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6372711265e5318070bd384413fbdc2ebb04d2f3"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return j=function(){return o},o}j();var q={props:{question:{type:String,required:!0},default:{type:String,default:null},password:{type:Boolean,default:!1},answerRequired:{type:Boolean,default:!0},value:Boolean},data:function(){return j().f[0]++,j().s[0]++,{inputValue:"",valid:!1,rules:[function(e){return j().f[1]++,j().s[1]++,j().b[0][0]++,!!e||(j().b[0][1]++,"Required")}]}},created:function(){j().f[2]++,j().s[2]++,this.default?(j().b[1][0]++,j().s[3]++,this.valid=!0,j().s[4]++,this.inputValue=this.default):j().b[1][1]++,j().s[5]++,!1===this.answerRequired?(j().b[2][0]++,j().s[6]++,this.valid=!0,j().s[7]++,this.rules=[function(e){return j().f[3]++,j().s[8]++,!0}]):j().b[2][1]++},computed:{show:{get:function(){return j().f[4]++,j().s[9]++,this.value},set:function(e){j().f[5]++,j().s[10]++,this.$emit("input",e)}}},methods:{submitHandler:function(){j().f[6]++,j().s[11]++,this.$emit("response",this.inputValue)},cancelHandler:function(){j().f[7]++,j().s[12]++,this.$emit("response","Cancel")}}},Y=q,K=(0,y.Z)(Y,G,z,!1,null,null,null),X=K.exports;function J(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="629f6b9e07f549a90d0e31b255ae07dbdb061503",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1537}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:1055},end:{line:1,column:1073}},9:{start:{line:1,column:1429},end:{line:1,column:1453}},10:{start:{line:1,column:1453},end:{line:1,column:1500}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1039},end:{line:1,column:1040}},loc:{start:{line:1,column:1054},end:{line:1,column:1074}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1412},end:{line:1,column:1413}},loc:{start:{line:1,column:1428},end:{line:1,column:1501}},line:1}},branchMap:{0:{loc:{start:{line:1,column:664},end:{line:1,column:816}},type:"cond-expr",locations:[{start:{line:1,column:678},end:{line:1,column:807}},{start:{line:1,column:808},end:{line:1,column:816}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"629f6b9e07f549a90d0e31b255ae07dbdb061503"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return J=function(){return o},o}J(),J().s[0]++;var Q=function(){J().f[0]++;var e=(J().s[1]++,this),n=(J().s[2]++,e._self._c);return J().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){J().f[1]++,J().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return J().f[2]++,J().s[5]++,n.preventDefault(),J().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){J().f[3]++,J().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" File Dialog ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-row",[n("v-card-title",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.title))])],1),e.message?(J().b[0][0]++,n("v-row",[n("span",{staticClass:"ma-3",staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.message)}})])):(J().b[0][1]++,e._e()),n("v-row",{staticClass:"my-1"},[n("v-file-input",{attrs:{label:"Choose File",autofocus:"","data-test":"file-input",accept:e.filter,"small-chips":"",multiple:e.multiple},model:{value:e.inputValue,callback:function(n){J().f[4]++,J().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"file-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"file-ok",disabled:!e.valid},on:{click:function(n){return J().f[5]++,J().s[9]++,n.preventDefault(),J().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)],1)],1)},ee=(J().s[11]++,[]);function ne(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="29cb638f66743dffbb3e707fb1000ac69ffa7e7d",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:25,column:5}},1:{start:{line:30,column:8},end:{line:30,column:25}},2:{start:{line:33,column:8},end:{line:33,column:34}},3:{start:{line:41,column:6},end:{line:43,column:7}},4:{start:{line:42,column:8},end:{line:42,column:43}},5:{start:{line:44,column:6},end:{line:44,column:45}},6:{start:{line:47,column:6},end:{line:47,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:26,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:29,column:6},end:{line:29,column:7}},loc:{start:{line:29,column:12},end:{line:31,column:7}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:32,column:6},end:{line:32,column:7}},loc:{start:{line:32,column:17},end:{line:34,column:7}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:38,column:19},end:{line:38,column:20}},loc:{start:{line:38,column:31},end:{line:45,column:5}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:46,column:19},end:{line:46,column:20}},loc:{start:{line:46,column:31},end:{line:48,column:5}},line:46}},branchMap:{0:{loc:{start:{line:41,column:6},end:{line:43,column:7}},type:"if",locations:[{start:{line:41,column:6},end:{line:43,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["FileDialog.vue"],names:[],mappings:";AAqFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"FileDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> File Dialog </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row>\n <v-card-title style="white-space: pre-line">{{\n title\n }}</v-card-title>\n </v-row>\n <v-row v-if="message">\n <span\n class="ma-3"\n style="white-space: pre-line"\n v-text="message"\n />\n </v-row>\n <v-row class="my-1">\n <v-file-input\n label="Choose File"\n v-model="inputValue"\n autofocus\n data-test="file-input"\n :accept="filter"\n small-chips\n :multiple="multiple"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="file-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="file-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n default: null,\n },\n filter: {\n type: String,\n default: \'*\',\n },\n multiple: {\n type: Boolean,\n default: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n // Ensure we send back an array of file names even in the single case\n // to make it easier to deal with a consistent result\n if (!Array.isArray(this.inputValue)) {\n this.inputValue = [this.inputValue]\n }\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"29cb638f66743dffbb3e707fb1000ac69ffa7e7d"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ne=function(){return o},o}ne();var te={props:{title:{type:String,required:!0},message:{type:String,default:null},filter:{type:String,default:"*"},multiple:{type:Boolean,default:!1},value:Boolean},data:function(){return ne().f[0]++,ne().s[0]++,{inputValue:null}},computed:{show:{get:function(){return ne().f[1]++,ne().s[1]++,this.value},set:function(e){ne().f[2]++,ne().s[2]++,this.$emit("input",e)}}},methods:{submitHandler:function(){ne().f[3]++,ne().s[3]++,Array.isArray(this.inputValue)?ne().b[0][1]++:(ne().b[0][0]++,ne().s[4]++,this.inputValue=[this.inputValue]),ne().s[5]++,this.$emit("response",this.inputValue)},cancelHandler:function(){ne().f[4]++,ne().s[6]++,this.$emit("response","Cancel")}}},ie=te,le=(0,y.Z)(ie,Q,ee,!1,null,null,null),se=le.exports;function oe(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="f3d714e332dcaca74a70e87cc80dff6325e98dd6",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:748}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:436},end:{line:1,column:582}},6:{start:{line:1,column:695},end:{line:1,column:715}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:415},end:{line:1,column:416}},loc:{start:{line:1,column:435},end:{line:1,column:583}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:678},end:{line:1,column:679}},loc:{start:{line:1,column:694},end:{line:1,column:716}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f3d714e332dcaca74a70e87cc80dff6325e98dd6"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return oe=function(){return o},o}oe(),oe().s[0]++;var ae=function(){oe().f[0]++;var e=(oe().s[1]++,this),n=(oe().s[2]++,e._self._c);return oe().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){oe().f[1]++,oe().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.title)}}),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",e._l(e.text,(function(t,i){return oe().f[2]++,oe().s[5]++,n("v-row",{key:i,attrs:{"no-gutters":""}},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(t)}})])})),1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary"},on:{click:function(n){oe().f[3]++,oe().s[6]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},re=(oe().s[7]++,[]);function ce(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="0e6f63f54fe8f26950d23e02c85bf37a007389e7",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:20,column:8},end:{line:20,column:25}},1:{start:{line:23,column:8},end:{line:23,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,sources:["InformationDialog.vue"],names:[],mappings:";AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"InformationDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- INFO --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span style="white-space: pre-line" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row no-gutters v-for="(line, index) in text" :key="index">\n <span style="white-space: pre-line" v-text="line" />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn color="primary" @click="show = !show"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {},\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0e6f63f54fe8f26950d23e02c85bf37a007389e7"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ce=function(){return o},o}ce();var ue={props:{value:{type:Boolean,required:!0},title:{type:String,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return ce().f[0]++,ce().s[0]++,this.value},set:function(e){ce().f[1]++,ce().s[1]++,this.$emit("input",e)}}},methods:{}},de=ue,me=(0,y.Z)(de,ae,re,!1,null,null,null),pe=me.exports,Ae=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"80vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:e.close}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v("Close")])])],1),n("v-card-title",[e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.eventHeaders,items:e.localEvents,search:e.search,"sort-by":"start","sort-desc":""},scopedSlots:e._u([{key:"no-data",fn:function(){return[n("span",[e._v(" No events ")])]},proxy:!0},{key:"item.start",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.logFormat(t.start,e.utc))+" ")]}},{key:"item.end",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.logFormat(t.end,e.utc))+" ")]}},{key:"item.type",fn:function(n){var t=n.item;return[e._v(" "+e._s(t.type.charAt(0).toUpperCase()+t.type.slice(1))+" ")]}},{key:"item.data",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.dataFormat(t))+" ")]}},{key:"item.actions",fn:function(t){var i=t.item;return[n("v-icon",{staticClass:"mr-2",attrs:{small:"","data-test":"edit-event"},on:{click:function(n){return e.editAction(i)}}},[e._v(" mdi-pencil ")]),n("v-icon",{attrs:{small:"","data-test":"delete-event"},on:{click:function(n){return e.deleteAction(i)}}},[e._v(" mdi-delete ")])]}}])}),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"close-event-list"},on:{click:e.close}},[e._v(" Close ")]),e.newMetadata?n("v-btn",{attrs:{color:"primary","data-test":"new-event"},on:{click:function(n){e.showMetadataCreate=!0}}},[e._v(" New Metadata ")]):e._e()],1)],1)],1),n("activity-update-dialog",{attrs:{activity:e.editActivity},on:{update:e.updateActivity},model:{value:e.showActivityUpdate,callback:function(n){e.showActivityUpdate=n},expression:"showActivityUpdate"}}),n("metadata-update-dialog",{attrs:{"metadata-obj":e.editMetadata},on:{update:e.updateMetadata},model:{value:e.showMetadataUpdate,callback:function(n){e.showMetadataUpdate=n},expression:"showMetadataUpdate"}}),n("note-update-dialog",{attrs:{note:e.editNote},on:{update:e.updateNote},model:{value:e.showNoteUpdate,callback:function(n){e.showNoteUpdate=n},expression:"showNoteUpdate"}}),n("metadata-create-dialog",{on:{update:e.addMetadata},model:{value:e.showMetadataCreate,callback:function(n){e.showMetadataCreate=n},expression:"showMetadataCreate"}})],1)},he=[],ve=t(97302),fe=(t(35883),t(28391)),ge={filters:{time:function(e,n){return n?e.toUTCString().split(" ")[4]:e.toLocaleString().split(" ")[1]},hourMin:function(e){return e.split(":",2).join(":")},dateTime:function(e,n){return n?e.toISOString():e.toLocaleString()}},methods:{logFormat:function(e,n){return n?(0,fe.Z)(e,"UTC","yyyy-MM-dd HH:mm:ss.SSS"):(0,v.Z)(e,"yyyy-MM-dd HH:mm:ss.SSS")},generateDateTime:function(e,n){return n?e.toISOString():e.toLocaleString()},toIsoString:function(e){var n=new Date(e),t=-n.getTimezoneOffset(),i=t>=0?"+":"-";function l(e){var n=Math.floor(Math.abs(e));return(n<10?"0":"")+n}var s=n.getFullYear(),o=l(n.getMonth()+1),a=l(n.getDate()),r=l(n.getHours()),c=l(n.getMinutes()),u=l(n.getSeconds()),d=l(n.getMilliseconds()),m="utc"===this.utcOrLocal?"00:00":"".concat(l(t/60),":").concat(l(t%60));return"".concat(s,"-").concat(o,"-").concat(a,"T").concat(r,":").concat(c,":").concat(u,".").concat(d).concat(i).concat(m)}}},be={methods:{deleteItem:function(e){var n=this,t=null,i="";switch(e.type.toLowerCase()){case"activity":i="activity",t=e.activity.start;break;case"metadata":i="metadata",t=e.metadata.start;break;case"note":i="notes",t=e.note.start;break}this.$dialog.confirm("Are you sure you want to remove ".concat(e.typeStr," at ").concat(e.startStr),{okText:"Delete",cancelText:"Cancel"}).then((function(){return A.Z["delete"]("/openc3-api/".concat(i,"/").concat(t))})).then((function(){n.$emit("delete",e),n.$notify.normal({title:"Deleted ".concat(e.typeStr),body:"Deleted ".concat(e.typeStr," at ").concat(e.startStr)})})).catch((function(){}))}}},Ce=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Create Metadata")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v("Close")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),n("v-row",{attrs:{dense:""}},[n("v-checkbox",{attrs:{label:"Input Metadata Time"},model:{value:e.userProvidedTime,callback:function(n){e.userProvidedTime=n},expression:"userProvidedTime"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.userProvidedTime,expression:"userProvidedTime"}]},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"metadata-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"metadata-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("Metadata Input")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"create-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"create-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},_e=[],ye=(t(43108),t(10247)),we=t(93355),xe={props:{date:{type:String},time:{type:String}},data:function(){return{startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc"}},methods:{calcStartDateTime:function(){if(this.date?(this.startDate=this.date,this.stopDate=this.date):(this.startDate=(0,v.Z)(new Date,"yyyy-MM-dd"),this.stopDate=(0,v.Z)(new Date,"yyyy-MM-dd")),this.time){var e=(0,ye.Z)(this.time,"HH:mm",new Date),n=18e5;e=new Date(Math.floor(e.getTime()/n)*n),this.startTime=(0,v.Z)(e,"HH:mm:ss"),this.stopTime=(0,v.Z)((0,we.Z)(e,{minutes:30}),"HH:mm:ss")}else this.startTime=(0,v.Z)(new Date,"HH:mm:ss"),this.stopTime=(0,v.Z)((0,we.Z)(new Date,{minutes:30}),"HH:mm:ss")}}},ke=function(){var e=this,n=e._self._c;return n("div",[n("v-select",{attrs:{items:e.swatches,label:"Color"},scopedSlots:e._u([{key:"selection",fn:function(t){var i=t.item;return[n("div",[n("v-badge",{attrs:{inline:"",color:i}},[n("span",{domProps:{textContent:e._s(i)}})])],1)]}},{key:"item",fn:function(t){var i=t.item;return[n("div",[n("v-badge",{attrs:{inline:"",color:i}},[n("span",{domProps:{textContent:e._s(i)}})])],1)]}}]),model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1)},Se=[],Me={components:{},props:{value:{type:String,required:!0}},data:function(){return{}},computed:{color:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},swatches:function(){return["#005a8f","#003784","#8F3400","#df1368","#ff5252","#df323b","#9f0010","#2d9437","#004700","#db7200","#802700","#0f2941"]}},methods:{}},Ee=Me,Te=(0,y.Z)(Ee,ke,Se,!1,null,null,null),De=Te.exports,Ie=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("tbody",[n("tr",[n("th",{staticClass:"text-left"},[e._v("Key")]),n("th",{staticClass:"text-left"},[e._v("Value")]),n("th",{staticClass:"text-right"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.newMetadata}},[e._v(" mdi-plus ")])],1)]}}])},[n("span",[e._v(" New Metadata ")])])],1)]),e._l(e.metadata,(function(t,i){return[n("tr",{key:"tr-".concat(i)},[n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":"key-".concat(i)},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"meta.key"}})],1),n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":"value-".concat(i)},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"meta.value"}})],1),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-icon",{attrs:{"data-test":"delete-metadata-icon-".concat(i)},on:{click:function(n){return e.rm(i)}}},[e._v(" mdi-delete ")])],1)]}}],null,!0)},[n("span",[e._v(" Delete Metadata ")])])],1)])]}))],2)])],1)},Re=[],Oe={components:{},props:{value:{type:Array,required:!0}},data:function(){return{}},computed:{metadata:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{newMetadata:function(){this.metadata.push({key:"",value:""})},rm:function(e){this.metadata.splice(e,1)}}},Ne=Oe,Ze=(0,y.Z)(Ne,Ie,Re,!1,null,null,null),Le=Ze.exports,Fe={components:{ColorSelectForm:De,MetadataInputForm:Le},props:{value:Boolean},mixins:[xe,ge],data:function(){return{scope:window.openc3Scope,dialogStep:1,userProvidedTime:!1,color:"#003784",metadata:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},mounted:function(){void 0!==this.date&&void 0!==this.time&&(this.userProvidedTime=!0)},computed:{timeError:function(){if(!this.color)return"A color is required.";if(!this.userProvidedTime)return null;var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime));return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";var e=this.metadata.find((function(e){return""===e.key||""===e.value}));return e?"Missing or empty key, value in the metadata table.":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1,this.calcStartDateTime(),this.metadata=[],this.color="#003784"},createMetadata:function(){var e=this,n=this.color,t=this.metadata.reduce((function(e,n){return e[n.key]=n.value,e}),{}),i={color:n,metadata:t};this.userProvidedTime&&(i.start=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime)))),A.Z.post("/openc3-api/metadata",{data:i}).then((function(n){e.$notify.normal({title:"Created new Metadata",body:"Metadata: (".concat(n.data.start,")")}),e.$emit("update",n.data)})),this.show=!this.show,this.updateValues()}}},Pe=Fe,$e=(t(98297),(0,y.Z)(Pe,Ce,_e,!1,null,"41562d92",null)),He=$e.exports,Be=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Update activity: "+e._s(e.activity.name)+"/"+e._s(e.activity.start)+" ")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-activity-icon"},on:{click:e.cancelActivity}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time, stop time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"activity-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"activity-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"activity-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"activity-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{"data-test":"update-activity-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Activity type Input ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-select",{attrs:{items:e.types,label:"Activity Type"},model:{value:e.kind,callback:function(n){e.kind=n},expression:"kind"}}),"COMMAND"===e.kind?n("div",[n("v-text-field",{attrs:{type:"text",label:"Command Input",placeholder:"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0",prefix:"cmd('",suffix:"')",hint:"Timeline run commands with cmd_no_hazardous_check","data-test":"activity-cmd"},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}})],1):"SCRIPT"===e.kind?n("div",[n("script-chooser",{staticClass:"my-1",on:{file:e.fileHandler},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}}),n("environment-chooser",{staticClass:"my-2",model:{value:e.activityEnvironment,callback:function(n){e.activityEnvironment=n},expression:"activityEnvironment"}})],1):n("div",[n("span",{staticClass:"ma-2"},[e._v(" No required input ")])]),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-activity-cancel-btn"},on:{click:e.cancelActivity}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-activity-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[e._v(" Update ")])],1)],1)])],1)],1)],1)])],1)},We=[],Ue=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("tbody",[n("tr",[n("th",{staticClass:"text-left"},[e._v("Key")]),n("th",{staticClass:"text-left"},[e._v("Value")]),n("th",{staticClass:"text-right"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.addEnvVar}},[e._v(" mdi-plus ")])],1)]}}])},[n("span",[e._v(" Add Environment ")])])],1)]),e._l(e.selected,(function(t,i){return[n("tr",{key:"tr-".concat(i)},[n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"key-".concat(i)},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"env.key"}})],1),n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"value-".concat(i)},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"env.value"}})],1),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-icon",{attrs:{"data-test":"remove-env-icon-".concat(i)},on:{click:function(n){return e.delEnvVar(i)}}},[e._v(" mdi-delete ")])],1)]}}],null,!0)},[n("span",[e._v(" Delete Environment ")])])],1)])]}))],2)])],1)},Ve=[],Ge={props:{value:{type:Array,required:!0}},computed:{selected:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{addEnvVar:function(){this.selected.push({key:"",value:""})},delEnvVar:function(e){this.selected.splice(e,1)}}},ze=Ge,je=(0,y.Z)(ze,Ue,Ve,!1,null,null,null),qe=je.exports,Ye=function(){var e=this,n=e._self._c;return n("div",[n("v-row",{attrs:{"no-gutters":""}},[n("span",[e._v(" Select OpenC3 script ")])]),n("v-row",{staticClass:"my-2"},[n("v-autocomplete",{staticClass:"mx-4",attrs:{"cache-items":"",flat:"","hide-no-data":"","hide-details":"","solo-inverted":"",label:"Select a script",loading:e.loading,items:e.items,"search-input":e.search},on:{"update:searchInput":function(n){e.search=n},"update:search-input":function(n){e.search=n}},model:{value:e.selected,callback:function(n){e.selected=n},expression:"selected"}})],1)],1)},Ke=[],Xe={props:{value:String},data:function(){return{loading:!1,search:"",selected:this.value,scripts:[],items:[]}},created:function(){var e=this;this.loading=!0,A.Z.get("/script-api/scripts").then((function(n){e.scripts=n.data,e.items=n.data})).catch((function(n){e.$emit("error",{type:"error",text:"Failed to connect to OpenC3. ".concat(n),error:n})})),this.selected=this.value?this.value:null,this.loading=!1},watch:{selected:function(e,n){e!==n&&this.$emit("file",e)},search:function(e){e&&e!==this.selected&&this.querySelections(e)}},methods:{querySelections:function(e){var n=this;this.loading=!0,setTimeout((function(){n.items=n.scripts.filter((function(n){return(n||"").toLowerCase().indexOf((e||"").toLowerCase())>-1})),n.loading=!1}),500)}}},Je=Xe,Qe=(0,y.Z)(Je,Ye,Ke,!1,null,null,null),en=Qe.exports,nn={components:{EnvironmentChooser:qe,ScriptChooser:en},props:{activity:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",kind:"",types:["COMMAND","SCRIPT","RESERVE"],activityData:"",activityEnvironment:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime)),t=Date.parse("".concat(this.stopDate,"T").concat(this.stopTime));return n===t?"Invalid start, stop time. Activity must have different start and stop times.":e>n?"Invalid start time. Activity must be in the future.":n>t?"Invalid start time. Activity start before stop.":null},typeError:function(){return"RESERVE"===this.kind||this.activityData?null:"No data is selected or inputted"},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{changeKind:function(e){e!==this.kind&&(this.kind=e,this.activityData="")},updateValues:function(){var e=new Date(1e3*this.activity.start),n=new Date(1e3*this.activity.stop);this.startDate=(0,v.Z)(e,"yyyy-MM-dd"),this.startTime=(0,v.Z)(e,"HH:mm:ss"),this.stopDate=(0,v.Z)(n,"yyyy-MM-dd"),this.stopTime=(0,v.Z)(n,"HH:mm:ss"),this.kind=this.activity.kind.toUpperCase(),this.activityData=this.activity.data[this.activity.kind],this.activityEnvironment=this.activity.data.environment},fileHandler:function(e){this.activityData=e||null},cancelActivity:function(){this.show=!this.show},updateActivity:function(){var e=this,n=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime))),t=this.toIsoString(Date.parse("".concat(this.stopDate,"T").concat(this.stopTime))),i=this.kind.toLowerCase(),l={environment:this.activityEnvironment};l[i]=this.activityData;var s=this.activity.name,o=this.activity.start;A.Z.put("/openc3-api/timeline/".concat(s,"/activity/").concat(o),{data:{start:n,stop:t,kind:i,data:l}}).then((function(n){var t=e.generateDateTime(new Date(1e3*n.data.start));e.$notify.normal({title:"Updated Activity",body:"".concat(t," (").concat(n.data.start,") on timeline: ").concat(n.data.name)})})),this.$emit("close"),this.show=!this.show}}},tn=nn,ln=(t(95906),(0,y.Z)(tn,Be,We,!1,null,"37955b8a",null)),sn=ln.exports,on=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Update Metadata")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Metadata input ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},an=[],rn={components:{ColorSelectForm:De,MetadataInputForm:Le},props:{metadataObj:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{scope:window.openc3Scope,dialogStep:1,startDate:"",startTime:"",utcOrLocal:"loc",color:"",metadata:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime));return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";var e=this.metadata.find((function(e){return""===e.key||""===e.value}));return e?"Missing or empty key, value in the metadata table.":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){var e=this,n=new Date(1e3*this.metadataObj.start);this.startDate=(0,v.Z)(n,"yyyy-MM-dd"),this.startTime=(0,v.Z)(n,"HH:mm:ss"),this.metadata=Object.keys(this.metadataObj.metadata).map((function(n){return{key:n,value:e.metadataObj.metadata[n]}})),this.color=this.metadataObj.color},updateMetadata:function(){var e=this,n=this.color,t=this.metadata.reduce((function(e,n){return e[n.key]=n.value,e}),{}),i=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime)));A.Z.put("/openc3-api/metadata/".concat(this.metadataObj.start),{data:{start:i,color:n,metadata:t}}).then((function(i){e.$notify.normal({title:"Updated Metadata",body:"Metadata updated: (".concat(i.data.start,")")}),console.log("metadata update emit"),e.$emit("update",(0,o.Z)((0,o.Z)({},i.data.start),{},{color:n,metadata:t}))})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},cn=rn,un=(t(20408),(0,y.Z)(cn,on,an,!1,null,"f2badfd2",null)),dn=un.exports,mn=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Update Note")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-note-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time, stop time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"note-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"note-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"note-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"note-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"update-note-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Input Description ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1),n("div",[n("v-text-field",{attrs:{type:"text",label:"Note Description","data-test":"update-note-description"},model:{value:e.description,callback:function(n){e.description=n},expression:"description"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-note-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-note-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},pn=[],An={components:{ColorSelectForm:De},props:{note:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",description:"",color:"",rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){new Date;var e=Date.parse("".concat(this.startDate,"T").concat(this.startTime)),n=Date.parse("".concat(this.stopDate,"T").concat(this.stopTime));return e===n?"Invalid start, stop time. Notes must have different start and stop times.":e>n?"Invalid start time. Note start before stop.":null},typeError:function(){return this.description?null:"A description is required for a valid note."},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1;var e=new Date(1e3*this.note.start),n=new Date(1e3*this.note.stop);this.startDate=(0,v.Z)(e,"yyyy-MM-dd"),this.startTime=(0,v.Z)(e,"HH:mm:ss"),this.stopDate=(0,v.Z)(n,"yyyy-MM-dd"),this.stopTime=(0,v.Z)(n,"HH:mm:ss"),this.color=this.note.color,this.description=this.note.description},updateNote:function(){var e=this,n=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime))),t=this.toIsoString(Date.parse("".concat(this.stopDate,"T").concat(this.stopTime))),i=this.color,l=this.description;A.Z.put("/openc3-api/notes/".concat(this.note.start),{data:{start:n,stop:t,color:i,description:l}}).then((function(n){var t=n.data.description.length>16?"".concat(n.data.description.substring(0,16),"..."):n.data.description;e.$notify.normal({title:"Updated Note",body:"Note updated: (".concat(n.data.start,'): "').concat(t,'"')}),console.log(n.data),e.$emit("update",n.data)})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},hn=An,vn=(t(10204),(0,y.Z)(hn,mn,pn,!1,null,"ffe4e8e8",null)),fn=vn.exports,gn={components:{MetadataCreateDialog:He,ActivityUpdateDialog:sn,MetadataUpdateDialog:dn,NoteUpdateDialog:fn},mixins:[ge,be],props:{events:{type:Array,required:!0},utc:{type:Boolean,default:!0},value:{type:Boolean,required:!0},types:{type:Array},newMetadata:{type:Boolean,default:!1}},data:function(){return{search:"",localEvents:(0,u.Z)(this.events),eventHeaders:[{text:"Start",value:"start",width:190},{text:"Stop",value:"end",width:190},{text:"Type",value:"type"},{text:"Data",value:"data"},{text:"Actions",value:"actions",sortable:!1}],editActivity:{start:new Date,end:new Date},editMetadata:{start:new Date,end:new Date},editNote:{start:new Date,end:new Date},editIndex:0,showActivityUpdate:!1,showMetadataUpdate:!1,showNoteUpdate:!1,showMetadataCreate:!1}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){var e=this;this.$on("delete",(function(n){var t=e.localEvents.findIndex((function(e){return e.type===n.type&&e.start===n.start}));e.localEvents.splice(t,1)}))},methods:{close:function(){this.$emit("close"),this.show=!1},dataFormat:function(e){var n=e.name;switch(e.type){case"note":n=e.note.description;break;case"metadata":var t=[];Object.entries(e.metadata.metadata).forEach((function(e){var n=(0,ve.Z)(e,2),i=n[0],l=n[1];return t.push("".concat(i," => ").concat(l))})),n=t.join(", ");break}return n},editAction:function(e){switch(this.editIndex=this.localEvents.findIndex((function(n){return n.type===e.type&&n.start===e.start})),e.type){case"activity":this.editActivity=e.activity,this.showActivityUpdate=!0;break;case"metadata":this.editMetadata=e.metadata,this.showMetadataUpdate=!0;break;case"note":this.editNote=e.note,this.showNoteUpdate=!0;break}},deleteAction:function(e){var n=this,t=this.localEvents.findIndex((function(n){return n.type===e.type&&n.start===e.start})),i=null,l=null;switch(e.type){case"activity":i="timeline/".concat(e.activity.name,"/activity"),l=e.activity.start;break;case"metadata":i="metadata",l=e.metadata.start;break;case"note":i="notes",l=e.note.start;break}this.$dialog.confirm("Are you sure you want to remove ".concat(e.type," at ").concat(e.start),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return n.localEvents.splice(t,1),A.Z["delete"]("/openc3-api/".concat(i,"/").concat(l))})).then((function(t){n.$emit("update"),n.$notify.normal({title:"Deleted ".concat(e.type),body:"Deleted ".concat(e.type," at ").concat(l)})})).catch((function(e){}))},updateActivity:function(e){this.$emit("update"),this.localEvents[this.editIndex].activity=e},updateMetadata:function(e){this.$emit("update"),this.localEvents[this.editIndex].metadata=e},updateNote:function(e){this.$emit("update"),this.localEvents[this.editIndex].note=e},addMetadata:function(e){var n={name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e};this.localEvents.push(n)}}},bn=gn,Cn=(0,y.Z)(bn,Ae,he,!1,null,null,null),_n=Cn.exports;function yn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="06e0185cc3d18ad16e03681078b2576b22fec3e6",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:8,column:645}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:697},end:{line:1,column:711}},6:{start:{line:8,column:123},end:{line:8,column:440}},7:{start:{line:8,column:231},end:{line:8,column:382}},8:{start:{line:8,column:295},end:{line:8,column:326}},9:{start:{line:8,column:592},end:{line:8,column:612}},10:{start:{line:10,column:22},end:{line:10,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:681},end:{line:1,column:682}},loc:{start:{line:1,column:696},end:{line:1,column:712}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:104},end:{line:8,column:105}},loc:{start:{line:8,column:122},end:{line:8,column:441}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:207},end:{line:8,column:208}},loc:{start:{line:8,column:230},end:{line:8,column:383}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:8,column:278},end:{line:8,column:279}},loc:{start:{line:8,column:294},end:{line:8,column:327}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:575},end:{line:8,column:576}},loc:{start:{line:8,column:591},end:{line:8,column:613}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"06e0185cc3d18ad16e03681078b2576b22fec3e6"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return yn=function(){return o},o}yn(),yn().s[0]++;var wn=function(){yn().f[0]++;var e=(yn().s[1]++,this),n=(yn().s[2]++,e._self._c);return yn().s[3]++,n("v-dialog",{attrs:{width:"700"},model:{value:e.show,callback:function(n){yn().f[1]++,yn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Overrides")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-clear-all"},on:{click:e.clearOverrides}},[e._v(" Clear All Overrides ")]),n("v-card-title",[e._v(" Overrides "),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){yn().f[2]++,yn().s[5]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.overrides,search:e.search,"footer-props":{itemsPerPageOptions:[100],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},scopedSlots:e._u([{key:"item.delete",fn:function(t){var i=t.item;return yn().f[3]++,yn().s[6]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return yn().f[4]++,yn().s[7]++,[n("v-icon",e._g(e._b({on:{click:function(n){return yn().f[5]++,yn().s[8]++,e.deleteOverride(i)}}},"v-icon",s,!1),l),[e._v(" mdi-delete ")])]}}],null,!0)},[n("span",[e._v("Delete Override")])])]}}])})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-ok"},on:{click:function(n){yn().f[6]++,yn().s[9]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},xn=(yn().s[10]++,[]);t(79321);function kn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="6eab611104a9acfa1bdb6fd1d2b8ea3368cb1288",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:13,column:4},end:{line:25,column:5}},1:{start:{line:28,column:4},end:{line:28,column:30}},2:{start:{line:29,column:4},end:{line:29,column:23}},3:{start:{line:34,column:8},end:{line:34,column:25}},4:{start:{line:37,column:8},end:{line:37,column:34}},5:{start:{line:43,column:6},end:{line:45,column:8}},6:{start:{line:44,column:8},end:{line:44,column:31}},7:{start:{line:48,column:20},end:{line:56,column:7}},8:{start:{line:50,column:39},end:{line:54,column:11}},9:{start:{line:57,column:6},end:{line:68,column:7}},10:{start:{line:58,column:8},end:{line:67,column:12}},11:{start:{line:66,column:12},end:{line:66,column:31}},12:{start:{line:71,column:6},end:{line:81,column:10}},13:{start:{line:79,column:22},end:{line:79,column:50}},14:{start:{line:80,column:10},end:{line:80,column:41}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:26,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:27,column:11},end:{line:27,column:12}},loc:{start:{line:27,column:23},end:{line:30,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:33,column:6},end:{line:33,column:7}},loc:{start:{line:33,column:12},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:36,column:6},end:{line:36,column:7}},loc:{start:{line:36,column:17},end:{line:38,column:7}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:42,column:18},end:{line:42,column:19}},loc:{start:{line:42,column:30},end:{line:46,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:43,column:36},end:{line:43,column:37}},loc:{start:{line:43,column:48},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:20},end:{line:47,column:21}},loc:{start:{line:47,column:32},end:{line:69,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:50,column:29},end:{line:50,column:30}},loc:{start:{line:50,column:39},end:{line:54,column:11}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:65,column:16},end:{line:65,column:17}},loc:{start:{line:65,column:28},end:{line:67,column:11}},line:65},9:{name:"(anonymous_9)",decl:{start:{line:70,column:20},end:{line:70,column:21}},loc:{start:{line:70,column:36},end:{line:82,column:5}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:78,column:14},end:{line:78,column:15}},loc:{start:{line:78,column:26},end:{line:81,column:9}},line:78}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{},inputSourceMap:{version:3,sources:["OverridesDialog.vue"],names:[],mappings:";AAmGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"OverridesDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="700">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Overrides</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-btn\n @click="clearOverrides"\n color="primary"\n data-test="overrides-dialog-clear-all"\n >\n Clear All Overrides\n </v-btn>\n\n <v-card-title>\n Overrides\n <v-spacer />\n <v-text-field\n v-model="search"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="overrides"\n :search="search"\n :footer-props="{\n itemsPerPageOptions: [100],\n showFirstLastPage: true,\n firstIcon: \'mdi-page-first\',\n lastIcon: \'mdi-page-last\',\n prevIcon: \'mdi-chevron-left\',\n nextIcon: \'mdi-chevron-right\',\n }"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:item.delete="{ item }">\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click="deleteOverride(item)"\n v-bind="attrs"\n v-on="on"\n >\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Override</span>\n </v-tooltip>\n </template>\n </v-data-table>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="show = !show"\n color="primary"\n data-test="overrides-dialog-ok"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n api: null,\n overrides: [],\n search: \'\',\n headers: [\n { text: \'Target\', value: \'target_name\' },\n { text: \'Packet\', value: \'packet_name\' },\n { text: \'Item\', value: \'item_name\' },\n { text: \'Type\', value: \'value_type\' },\n { text: \'Value\', value: \'value\' },\n { text: \'Delete\', value: \'delete\' },\n ],\n }\n },\n created: function () {\n this.api = new OpenC3Api()\n this.getOverrides()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n getOverrides: function () {\n this.api.get_overrides().then((result) => {\n this.overrides = result\n })\n },\n clearOverrides: function () {\n const items = [\n ...new Map(\n this.overrides.map((item) => [\n // Create a key based on target, packet, item so we remove duplicates\n `${item.target_name}__${item.packet_name}__${item.item_name}`,\n item,\n ])\n ).values(),\n ]\n for (let item of items) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n \'ALL\'\n )\n .then((result) => {\n this.overrides = []\n })\n }\n },\n deleteOverride: function (item) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n item.value_type\n )\n .then((result) => {\n var index = this.overrides.indexOf(item)\n this.overrides.splice(index, 1)\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6eab611104a9acfa1bdb6fd1d2b8ea3368cb1288"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return kn=function(){return o},o}kn();var Sn={components:{},props:{value:{type:Boolean,required:!0}},data:function(){return kn().f[0]++,kn().s[0]++,{api:null,overrides:[],search:"",headers:[{text:"Target",value:"target_name"},{text:"Packet",value:"packet_name"},{text:"Item",value:"item_name"},{text:"Type",value:"value_type"},{text:"Value",value:"value"},{text:"Delete",value:"delete"}]}},created:function(){kn().f[1]++,kn().s[1]++,this.api=new U.k,kn().s[2]++,this.getOverrides()},computed:{show:{get:function(){return kn().f[2]++,kn().s[3]++,this.value},set:function(e){kn().f[3]++,kn().s[4]++,this.$emit("input",e)}}},methods:{getOverrides:function(){var e=this;kn().f[4]++,kn().s[5]++,this.api.get_overrides().then((function(n){kn().f[5]++,kn().s[6]++,e.overrides=n}))},clearOverrides:function(){var e=this;kn().f[6]++;var n=(kn().s[7]++,(0,u.Z)(new Map(this.overrides.map((function(e){return kn().f[7]++,kn().s[8]++,["".concat(e.target_name,"__").concat(e.packet_name,"__").concat(e.item_name),e]}))).values()));kn().s[9]++;var t,i=(0,a.Z)(n);try{for(i.s();!(t=i.n()).done;){var l=t.value;kn().s[10]++,this.api.normalize_tlm(l.target_name,l.packet_name,l.item_name,"ALL").then((function(n){kn().f[8]++,kn().s[11]++,e.overrides=[]}))}}catch(s){i.e(s)}finally{i.f()}},deleteOverride:function(e){var n=this;kn().f[9]++,kn().s[12]++,this.api.normalize_tlm(e.target_name,e.packet_name,e.item_name,e.value_type).then((function(t){kn().f[10]++;var i=(kn().s[13]++,n.overrides.indexOf(e));kn().s[14]++,n.overrides.splice(i,1)}))}}},Mn=Sn,En=(0,y.Z)(Mn,wn,xn,!1,null,null,null),Tn=En.exports;function Dn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="5ca1ffb56cb87cfc1f4eb8f4fc8d2e42cb28e05c",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2108}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:1101},end:{line:1,column:1129}},6:{start:{line:1,column:1189},end:{line:1,column:1209}},7:{start:{line:1,column:1835},end:{line:1,column:2090}},8:{start:{line:1,column:2006},end:{line:1,column:2044}},9:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1084},end:{line:1,column:1085}},loc:{start:{line:1,column:1100},end:{line:1,column:1130}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1173},end:{line:1,column:1174}},loc:{start:{line:1,column:1188},end:{line:1,column:1210}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1812},end:{line:1,column:1813}},loc:{start:{line:1,column:1834},end:{line:1,column:2091}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1989},end:{line:1,column:1990}},loc:{start:{line:1,column:2005},end:{line:1,column:2045}},line:1}},branchMap:{0:{loc:{start:{line:1,column:414},end:{line:1,column:547}},type:"cond-expr",locations:[{start:{line:1,column:429},end:{line:1,column:538}},{start:{line:1,column:539},end:{line:1,column:547}}],line:1},1:{loc:{start:{line:1,column:680},end:{line:1,column:834}},type:"cond-expr",locations:[{start:{line:1,column:694},end:{line:1,column:825}},{start:{line:1,column:826},end:{line:1,column:834}}],line:1},2:{loc:{start:{line:1,column:843},end:{line:1,column:2100}},type:"cond-expr",locations:[{start:{line:1,column:868},end:{line:1,column:1585}},{start:{line:1,column:1586},end:{line:1,column:2100}}],line:1},3:{loc:{start:{line:1,column:1946},end:{line:1,column:1975}},type:"cond-expr",locations:[{start:{line:1,column:1961},end:{line:1,column:1970}},{start:{line:1,column:1973},end:{line:1,column:1975}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5ca1ffb56cb87cfc1f4eb8f4fc8d2e42cb28e05c"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Dn=function(){return o},o}Dn(),Dn().s[0]++;var In=function(){Dn().f[0]++;var e=(Dn().s[1]++,this),n=(Dn().s[2]++,e._self._c);return Dn().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){Dn().f[1]++,Dn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.title)}}),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[e.subtitle?(Dn().b[0][0]++,n("v-row",[n("v-card-subtitle",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.subtitle))])],1)):(Dn().b[0][1]++,e._e()),n("v-row",{staticClass:"mt-1"},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.message)}})]),e.details?(Dn().b[1][0]++,n("v-row",{staticClass:"mt-1"},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.details)}})])):(Dn().b[1][1]++,e._e())],1)],1),"combo"===e.layout?(Dn().b[2][0]++,n("div",[n("v-row",{staticClass:"ma-2"},[n("v-select",{staticClass:"ma-1",attrs:{label:"Select",color:"secondary","data-test":"prompt-select",items:e.buttons,multiple:!0===e.multiple},on:{change:function(n){Dn().f[2]++,Dn().s[5]++,e.selectOkDisabled=!1}},model:{value:e.selectedItem,callback:function(n){Dn().f[3]++,Dn().s[6]++,e.selectedItem=n},expression:"selectedItem"}})],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"ma-1",attrs:{color:"primary","data-test":"prompt-ok",disabled:e.selectOkDisabled},on:{click:e.submitHandler}},[e._v(" Ok ")])],1)],1)):(Dn().b[2][1]++,n("div",[n("v-card-actions",{class:e.layoutClass},[n("v-spacer"),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),e._l(e.buttons,(function(t,i){return Dn().f[4]++,Dn().s[7]++,n("div",{key:i},[n("v-btn",{staticClass:"ma-1",attrs:{"data-test":"prompt-".concat(t.text),color:t.value?(Dn().b[3][0]++,"primary"):(Dn().b[3][1]++,"")},on:{click:function(n){return Dn().f[5]++,Dn().s[8]++,e.submitWrapper(t.value)}}},[e._v(" "+e._s(t.text)+" ")])],1)}))],2)],1))],1)],1)},Rn=(Dn().s[9]++,[]);function On(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="65d11c40c3eed705d3f7568ff0b6217e128de16b",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:22,column:21},end:{line:22,column:23}},1:{start:{line:36,column:4},end:{line:39,column:5}},2:{start:{line:44,column:8},end:{line:44,column:25}},3:{start:{line:47,column:8},end:{line:47,column:34}},4:{start:{line:51,column:19},end:{line:51,column:39}},5:{start:{line:52,column:6},end:{line:56,column:7}},6:{start:{line:53,column:8},end:{line:53,column:38}},7:{start:{line:55,column:8},end:{line:55,column:35}},8:{start:{line:61,column:6},end:{line:61,column:32}},9:{start:{line:62,column:6},end:{line:62,column:26}},10:{start:{line:65,column:6},end:{line:65,column:47}},11:{start:{line:68,column:6},end:{line:68,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:15},end:{line:22,column:16}},loc:{start:{line:22,column:21},end:{line:22,column:23}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:35,column:2},end:{line:35,column:3}},loc:{start:{line:35,column:9},end:{line:40,column:3}},line:35},2:{name:"(anonymous_2)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:12},end:{line:45,column:7}},line:43},3:{name:"(anonymous_3)",decl:{start:{line:46,column:6},end:{line:46,column:7}},loc:{start:{line:46,column:17},end:{line:48,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:18},end:{line:57,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:60,column:19},end:{line:60,column:20}},loc:{start:{line:60,column:37},end:{line:63,column:5}},line:60},6:{name:"(anonymous_6)",decl:{start:{line:64,column:19},end:{line:64,column:20}},loc:{start:{line:64,column:31},end:{line:66,column:5}},line:64},7:{name:"(anonymous_7)",decl:{start:{line:67,column:19},end:{line:67,column:20}},loc:{start:{line:67,column:31},end:{line:69,column:5}},line:67}},branchMap:{0:{loc:{start:{line:52,column:6},end:{line:56,column:7}},type:"if",locations:[{start:{line:52,column:6},end:{line:56,column:7}},{start:{line:54,column:13},end:{line:56,column:7}}],line:52}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["PromptDialog.vue"],names:[],mappings:";AA2GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"PromptDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span style="white-space: pre-line" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row v-if="subtitle">\n <v-card-subtitle style="white-space: pre-line">{{\n subtitle\n }}</v-card-subtitle>\n </v-row>\n <v-row class="mt-1">\n <span style="white-space: pre-line" v-text="message" />\n </v-row>\n <v-row v-if="details" class="mt-1">\n <span style="white-space: pre-line" v-text="details" />\n </v-row>\n </v-card-text>\n </div>\n <div v-if="layout === \'combo\'">\n <v-row class="ma-2">\n <v-select\n @change="selectOkDisabled = false"\n v-model="selectedItem"\n label="Select"\n color="secondary"\n class="ma-1"\n data-test="prompt-select"\n :items="buttons"\n :multiple="multiple === true"\n />\n </v-row>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="submitHandler"\n class="ma-1"\n color="primary"\n data-test="prompt-ok"\n :disabled="selectOkDisabled"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </div>\n <div v-else>\n <v-card-actions :class="layoutClass">\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <div v-for="(button, index) in buttons" :key="index">\n <v-btn\n @click="submitWrapper(button.value)"\n class="ma-1"\n :data-test="`prompt-${button.text}`"\n :color="button.value ? \'primary\' : \'\'"\n >\n {{ button.text }}\n </v-btn>\n </div>\n </v-card-actions>\n </div>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n default: \'Prompt Dialog\',\n },\n subtitle: {\n type: String,\n default: \'\',\n },\n message: {\n type: String,\n required: true,\n },\n details: {\n type: String,\n default: \'\',\n },\n buttons: {\n type: Array,\n default: () => [],\n },\n layout: {\n type: String,\n default: \'horizontal\', // Also \'vertical\' or \'combo\' when means ComboBox\n },\n multiple: {\n type: Boolean,\n default: false,\n required: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n selectOkDisabled: true,\n selectedItem: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n layoutClass() {\n let layout = \'d-flex align-start\'\n if (this.layout === \'vertical\') {\n return `${layout} flex-column`\n } else {\n return `${layout} flex-row`\n }\n },\n },\n methods: {\n submitWrapper: function (output) {\n this.selectedItem = output\n this.submitHandler()\n },\n submitHandler: function () {\n this.$emit(\'response\', this.selectedItem)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-card__subtitle {\n padding: 0;\n padding-bottom: 10px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65d11c40c3eed705d3f7568ff0b6217e128de16b"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return On=function(){return o},o}On();var Nn={props:{title:{type:String,default:"Prompt Dialog"},subtitle:{type:String,default:""},message:{type:String,required:!0},details:{type:String,default:""},buttons:{type:Array,default:function(){return On().f[0]++,On().s[0]++,[]}},layout:{type:String,default:"horizontal"},multiple:{type:Boolean,default:!1,required:!1},value:Boolean},data:function(){return On().f[1]++,On().s[1]++,{selectOkDisabled:!0,selectedItem:null}},computed:{show:{get:function(){return On().f[2]++,On().s[2]++,this.value},set:function(e){On().f[3]++,On().s[3]++,this.$emit("input",e)}},layoutClass:function(){On().f[4]++;var e=(On().s[4]++,"d-flex align-start");return On().s[5]++,"vertical"===this.layout?(On().b[0][0]++,On().s[6]++,"".concat(e," flex-column")):(On().b[0][1]++,On().s[7]++,"".concat(e," flex-row"))}},methods:{submitWrapper:function(e){On().f[5]++,On().s[8]++,this.selectedItem=e,On().s[9]++,this.submitHandler()},submitHandler:function(){On().f[6]++,On().s[10]++,this.$emit("response",this.selectedItem)},cancelHandler:function(){On().f[7]++,On().s[11]++,this.$emit("response","Cancel")}}},Zn=Nn,Ln=(t(74087),(0,y.Z)(Zn,In,Rn,!1,null,"33fbf9b4",null)),Fn=Ln.exports;function Pn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="235dc88c24c96f167c15185489b62872dbc2a41e",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:739}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:686},end:{line:1,column:706}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:669},end:{line:1,column:670}},loc:{start:{line:1,column:685},end:{line:1,column:707}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"235dc88c24c96f167c15185489b62872dbc2a41e"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Pn=function(){return o},o}Pn(),Pn().s[0]++;var $n=function(){Pn().f[0]++;var e=(Pn().s[1]++,this),n=(Pn().s[2]++,e._self._c);return Pn().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){Pn().f[1]++,Pn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Script Results ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-textarea",{attrs:{readonly:"","hide-details":"",dense:"","auto-grow":"",value:e.text}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.downloadResults}},[e._v(" Download ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){Pn().f[2]++,Pn().s[5]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},Hn=(Pn().s[6]++,[]);function Bn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="cf509be91d34a7497f4c0fd65ba8b8fb80fe2c4d",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:19,column:8},end:{line:19,column:25}},1:{start:{line:22,column:8},end:{line:22,column:34}},2:{start:{line:28,column:19},end:{line:30,column:8}},3:{start:{line:32,column:19},end:{line:32,column:46}},4:{start:{line:33,column:6},end:{line:33,column:43}},5:{start:{line:34,column:6},end:{line:37,column:7}},6:{start:{line:38,column:6},end:{line:38,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:6},end:{line:18,column:7}},loc:{start:{line:18,column:12},end:{line:20,column:7}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:21,column:6},end:{line:21,column:7}},loc:{start:{line:21,column:17},end:{line:23,column:7}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:27,column:4},end:{line:27,column:5}},loc:{start:{line:27,column:22},end:{line:39,column:5}},line:27}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,sources:["ResultsDialog.vue"],names:[],mappings:";AA6CA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ResultsDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Script Results </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-textarea readonly hide-details dense auto-grow :value="text" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn class="mx-2" outlined @click="downloadResults"> Download </v-btn>\n <v-btn class="mx-2" color="primary" @click="show = !show"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadResults() {\n const blob = new Blob([this.text], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_suite_results.txt\'\n )\n link.click()\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cf509be91d34a7497f4c0fd65ba8b8fb80fe2c4d"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Bn=function(){return o},o}Bn();var Wn={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return Bn().f[0]++,Bn().s[0]++,this.value},set:function(e){Bn().f[1]++,Bn().s[1]++,this.$emit("input",e)}}},methods:{downloadResults:function(){Bn().f[2]++;var e=(Bn().s[2]++,new Blob([this.text],{type:"text/plain"})),n=(Bn().s[3]++,document.createElement("a"));Bn().s[4]++,n.href=URL.createObjectURL(e),Bn().s[5]++,n.setAttribute("download",(0,v.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),Bn().s[6]++,n.click()}}},Un=Wn,Vn=(0,y.Z)(Un,$n,Hn,!1,null,null,null),Gn=Vn.exports;function zn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="fab91814d1f664d7dcc6f1b2beb8e7a3c2545224",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:851}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:434},end:{line:1,column:450}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:418},end:{line:1,column:419}},loc:{start:{line:1,column:433},end:{line:1,column:451}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fab91814d1f664d7dcc6f1b2beb8e7a3c2545224"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return zn=function(){return o},o}zn(),zn().s[0]++;var jn=function(){zn().f[0]++;var e=(zn().s[1]++,this),n=(zn().s[2]++,e._self._c);return zn().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){zn().f[1]++,zn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Script Environment Variables")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("environment-chooser",{model:{value:e.selected,callback:function(n){zn().f[2]++,zn().s[5]++,e.selected=n},expression:"selected"}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"environment-dialog-cancel"},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"environment-dialog-save",disabled:!!e.inputError},on:{click:e.updateEnvironment}},[e._v(" Save ")])],1)],1)],1)},qn=(zn().s[6]++,[]);function Yn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="65e119e98de479afb4b1ef5c4afa2ff2f029eeb0",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:19,column:4},end:{line:21,column:5}},1:{start:{line:24,column:4},end:{line:24,column:26}},2:{start:{line:29,column:8},end:{line:29,column:25}},3:{start:{line:32,column:8},end:{line:32,column:34}},4:{start:{line:38,column:6},end:{line:38,column:48}},5:{start:{line:41,column:6},end:{line:41,column:46}},6:{start:{line:42,column:6},end:{line:42,column:28}},7:{start:{line:45,column:6},end:{line:45,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:9},end:{line:22,column:3}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:23,column:11},end:{line:23,column:12}},loc:{start:{line:23,column:23},end:{line:25,column:3}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:28,column:6},end:{line:28,column:7}},loc:{start:{line:28,column:12},end:{line:30,column:7}},line:28},3:{name:"(anonymous_3)",decl:{start:{line:31,column:6},end:{line:31,column:7}},loc:{start:{line:31,column:17},end:{line:33,column:7}},line:31},4:{name:"(anonymous_4)",decl:{start:{line:37,column:21},end:{line:37,column:22}},loc:{start:{line:37,column:33},end:{line:39,column:5}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:40,column:23},end:{line:40,column:24}},loc:{start:{line:40,column:35},end:{line:43,column:5}},line:40},6:{name:"(anonymous_6)",decl:{start:{line:44,column:12},end:{line:44,column:13}},loc:{start:{line:44,column:24},end:{line:46,column:5}},line:44}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptEnvironmentDialog.vue"],names:[],mappings:";AA4DA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptEnvironmentDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Script Environment Variables</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <environment-chooser v-model="selected" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancel"\n class="mx-2"\n outlined\n data-test="environment-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateEnvironment"\n class="mx-2"\n color="primary"\n data-test="environment-dialog-save"\n :disabled="!!inputError"\n >\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport EnvironmentChooser from \'@openc3/tool-common/src/components/EnvironmentChooser\'\n\nexport default {\n components: {\n EnvironmentChooser,\n },\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n inputEnvironment: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n selected: [],\n }\n },\n mounted: function () {\n this.loadEnvironment()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n loadEnvironment: function () {\n this.selected = [...this.inputEnvironment]\n },\n updateEnvironment: function () {\n this.$emit(\'environment\', this.selected)\n this.show = !this.show\n },\n cancel: function () {\n this.show = !this.show\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65e119e98de479afb4b1ef5c4afa2ff2f029eeb0"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Yn=function(){return o},o}Yn();var Kn={components:{EnvironmentChooser:qe},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data:function(){return Yn().f[0]++,Yn().s[0]++,{selected:[]}},mounted:function(){Yn().f[1]++,Yn().s[1]++,this.loadEnvironment()},computed:{show:{get:function(){return Yn().f[2]++,Yn().s[2]++,this.value},set:function(e){Yn().f[3]++,Yn().s[3]++,this.$emit("input",e)}}},methods:{loadEnvironment:function(){Yn().f[4]++,Yn().s[4]++,this.selected=(0,u.Z)(this.inputEnvironment)},updateEnvironment:function(){Yn().f[5]++,Yn().s[5]++,this.$emit("environment",this.selected),Yn().s[6]++,this.show=!this.show},cancel:function(){Yn().f[6]++,Yn().s[7]++,this.show=!this.show}}},Xn=Kn,Jn=(0,y.Z)(Xn,jn,qn,!1,null,null,null),Qn=Jn.exports;function et(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="a01de25c5536256c5a667e93833a9611e1c57967",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:106}},4:{start:{line:1,column:448},end:{line:1,column:463}},5:{start:{line:1,column:676},end:{line:1,column:691}},6:{start:{line:1,column:1069},end:{line:1,column:1082}},7:{start:{line:1,column:1288},end:{line:1,column:1375}},8:{start:{line:1,column:1568},end:{line:1,column:1655}},9:{start:{line:1,column:1835},end:{line:1,column:1925}},10:{start:{line:1,column:2318},end:{line:1,column:2333}},11:{start:{line:1,column:2540},end:{line:1,column:2555}},12:{start:{line:1,column:2933},end:{line:1,column:2946}},13:{start:{line:1,column:3152},end:{line:1,column:3257}},14:{start:{line:1,column:3450},end:{line:1,column:3555}},15:{start:{line:1,column:3735},end:{line:1,column:3843}},16:{start:{line:1,column:4227},end:{line:1,column:4242}},17:{start:{line:1,column:4532},end:{line:1,column:4547}},18:{start:{line:1,column:4930},end:{line:1,column:4944}},19:{start:{line:1,column:5133},end:{line:7,column:18}},20:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:432},end:{line:1,column:433}},loc:{start:{line:1,column:447},end:{line:1,column:464}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:660},end:{line:1,column:661}},loc:{start:{line:1,column:675},end:{line:1,column:692}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1053},end:{line:1,column:1054}},loc:{start:{line:1,column:1068},end:{line:1,column:1083}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1271},end:{line:1,column:1272}},loc:{start:{line:1,column:1287},end:{line:1,column:1376}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1551},end:{line:1,column:1552}},loc:{start:{line:1,column:1567},end:{line:1,column:1656}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1818},end:{line:1,column:1819}},loc:{start:{line:1,column:1834},end:{line:1,column:1926}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2302},end:{line:1,column:2303}},loc:{start:{line:1,column:2317},end:{line:1,column:2334}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2524},end:{line:1,column:2525}},loc:{start:{line:1,column:2539},end:{line:1,column:2556}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2917},end:{line:1,column:2918}},loc:{start:{line:1,column:2932},end:{line:1,column:2947}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3135},end:{line:1,column:3136}},loc:{start:{line:1,column:3151},end:{line:1,column:3258}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3433},end:{line:1,column:3434}},loc:{start:{line:1,column:3449},end:{line:1,column:3556}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3718},end:{line:1,column:3719}},loc:{start:{line:1,column:3734},end:{line:1,column:3844}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4211},end:{line:1,column:4212}},loc:{start:{line:1,column:4226},end:{line:1,column:4243}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4516},end:{line:1,column:4517}},loc:{start:{line:1,column:4531},end:{line:1,column:4548}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4914},end:{line:1,column:4915}},loc:{start:{line:1,column:4929},end:{line:1,column:4945}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5116},end:{line:1,column:5117}},loc:{start:{line:1,column:5132},end:{line:7,column:19}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1493},end:{line:1,column:1537}},type:"binary-expr",locations:[{start:{line:1,column:1493},end:{line:1,column:1511}},{start:{line:1,column:1515},end:{line:1,column:1537}}],line:1},1:{loc:{start:{line:1,column:1757},end:{line:1,column:1804}},type:"binary-expr",locations:[{start:{line:1,column:1757},end:{line:1,column:1775}},{start:{line:1,column:1779},end:{line:1,column:1804}}],line:1},2:{loc:{start:{line:1,column:3375},end:{line:1,column:3419}},type:"binary-expr",locations:[{start:{line:1,column:3375},end:{line:1,column:3393}},{start:{line:1,column:3397},end:{line:1,column:3419}}],line:1},3:{loc:{start:{line:1,column:3657},end:{line:1,column:3704}},type:"binary-expr",locations:[{start:{line:1,column:3657},end:{line:1,column:3675}},{start:{line:1,column:3679},end:{line:1,column:3704}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a01de25c5536256c5a667e93833a9611e1c57967"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return et=function(){return o},o}et(),et().s[0]++;var nt=function(){et().f[0]++;var e=(et().s[1]++,this),n=(et().s[2]++,e._self._c);return et().s[3]++,n("div",[n("div",{attrs:{id:"tr-container"}},[n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Pause on Error",value:"pauseOnError","hide-details":"","data-test":"pause-on-error"},model:{value:e.options,callback:function(n){et().f[1]++,et().s[4]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Manual",value:"manual","hide-details":"","data-test":"manual"},model:{value:e.options,callback:function(n){et().f[2]++,et().s[5]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Suite:","hide-details":"",dense:"",items:e.suites,"data-test":"select-suite"},on:{change:e.suiteChanged},model:{value:e.suite,callback:function(n){et().f[3]++,et().s[6]++,e.suite=n},expression:"suite"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-suite"},on:{click:function(n){return et().f[4]++,et().s[7]++,e.$emit("button",{method:"start",suite:e.suite,options:e.options})}}},[e._v(" Start ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-suite",disabled:(et().b[0][0]++,e.disableButtons||(et().b[0][1]++,!e.setupSuiteEnabled))},on:{click:function(n){return et().f[5]++,et().s[8]++,e.$emit("button",{method:"setup",suite:e.suite,options:e.options})}}},[e._v(" Setup ")]),n("v-btn",{attrs:{color:"primary","data-test":"teardown-suite",disabled:(et().b[1][0]++,e.disableButtons||(et().b[1][1]++,!e.teardownSuiteEnabled))},on:{click:function(n){return et().f[6]++,et().s[9]++,e.$emit("button",{method:"teardown",suite:e.suite,options:e.options})}}},[e._v(" Teardown ")])],1)],1)],1)],1),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Continue after Error",value:"continueAfterError","hide-details":"","data-test":"continue-after-error"},model:{value:e.options,callback:function(n){et().f[7]++,et().s[10]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Loop",value:"loop","hide-details":"","data-test":"loop"},model:{value:e.options,callback:function(n){et().f[8]++,et().s[11]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Group:","hide-details":"",dense:"",items:e.groups,"data-test":"select-group"},on:{change:e.groupChanged},model:{value:e.group,callback:function(n){et().f[9]++,et().s[12]++,e.group=n},expression:"group"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-group"},on:{click:function(n){return et().f[10]++,et().s[13]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Start ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-group",disabled:(et().b[2][0]++,e.disableButtons||(et().b[2][1]++,!e.setupGroupEnabled))},on:{click:function(n){return et().f[11]++,et().s[14]++,e.$emit("button",{method:"setup",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Setup ")]),n("v-btn",{attrs:{color:"primary","data-test":"teardown-group",disabled:(et().b[3][0]++,e.disableButtons||(et().b[3][1]++,!e.teardownGroupEnabled))},on:{click:function(n){return et().f[12]++,et().s[15]++,e.$emit("button",{method:"teardown",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Teardown ")])],1)],1)],1)],1),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Abort after Error",value:"abortAfterError","hide-details":"","data-test":"abort-after-error"},model:{value:e.options,callback:function(n){et().f[13]++,et().s[16]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{disabled:!e.options.includes("loop"),label:"Break Loop on Error",value:"breakLoopOnError","hide-details":"","data-test":"break-loop-on-error"},model:{value:e.options,callback:function(n){et().f[14]++,et().s[17]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Script:","hide-details":"",dense:"",items:e.scripts,"data-test":"select-script"},on:{change:e.scriptChanged},model:{value:e.script,callback:function(n){et().f[15]++,et().s[18]++,e.script=n},expression:"script"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-script"},on:{click:function(n){return et().f[16]++,et().s[19]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,script:e.script,options:e.options})}}},[e._v(" Start ")]),n("div",{staticStyle:{width:"300px"}})],1)],1)],1)],1)],1)])},tt=(et().s[20]++,[]);function it(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="f2c5bb67e843bcea1658ca32e99187e727ff97f3",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:14,column:4},end:{line:22,column:5}},1:{start:{line:26,column:6},end:{line:30,column:7}},2:{start:{line:27,column:8},end:{line:27,column:19}},3:{start:{line:29,column:8},end:{line:29,column:20}},4:{start:{line:33,column:6},end:{line:37,column:7}},5:{start:{line:34,column:8},end:{line:34,column:19}},6:{start:{line:36,column:8},end:{line:36,column:20}},7:{start:{line:40,column:6},end:{line:48,column:7}},8:{start:{line:45,column:8},end:{line:45,column:19}},9:{start:{line:47,column:8},end:{line:47,column:20}},10:{start:{line:51,column:6},end:{line:59,column:7}},11:{start:{line:56,column:8},end:{line:56,column:19}},12:{start:{line:58,column:8},end:{line:58,column:20}},13:{start:{line:63,column:4},end:{line:63,column:21}},14:{start:{line:69,column:8},end:{line:69,column:29}},15:{start:{line:76,column:6},end:{line:76,column:46}},16:{start:{line:77,column:6},end:{line:85,column:7}},17:{start:{line:81,column:8},end:{line:81,column:25}},18:{start:{line:83,column:8},end:{line:83,column:67}},19:{start:{line:84,column:8},end:{line:84,column:75}},20:{start:{line:88,column:6},end:{line:88,column:46}},21:{start:{line:89,column:6},end:{line:89,column:39}},22:{start:{line:92,column:6},end:{line:92,column:24}},23:{start:{line:93,column:6},end:{line:93,column:21}},24:{start:{line:94,column:6},end:{line:94,column:22}},25:{start:{line:95,column:6},end:{line:95,column:60}},26:{start:{line:97,column:6},end:{line:97,column:39}},27:{start:{line:100,column:6},end:{line:100,column:24}},28:{start:{line:101,column:6},end:{line:101,column:22}},29:{start:{line:102,column:6},end:{line:102,column:68}},30:{start:{line:104,column:6},end:{line:104,column:41}},31:{start:{line:107,column:6},end:{line:107,column:25}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:9},end:{line:23,column:3}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:25,column:4},end:{line:25,column:5}},loc:{start:{line:25,column:24},end:{line:31,column:5}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:32,column:4},end:{line:32,column:5}},loc:{start:{line:32,column:27},end:{line:38,column:5}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:39,column:4},end:{line:39,column:5}},loc:{start:{line:39,column:24},end:{line:49,column:5}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:27},end:{line:60,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:12},end:{line:64,column:3}},line:62},6:{name:"(anonymous_6)",decl:{start:{line:68,column:15},end:{line:68,column:16}},loc:{start:{line:68,column:41},end:{line:70,column:7}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:75,column:4},end:{line:75,column:5}},loc:{start:{line:75,column:21},end:{line:86,column:5}},line:75},8:{name:"(anonymous_8)",decl:{start:{line:87,column:4},end:{line:87,column:5}},loc:{start:{line:87,column:17},end:{line:90,column:5}},line:87},9:{name:"(anonymous_9)",decl:{start:{line:91,column:4},end:{line:91,column:5}},loc:{start:{line:91,column:24},end:{line:98,column:5}},line:91},10:{name:"(anonymous_10)",decl:{start:{line:99,column:4},end:{line:99,column:5}},loc:{start:{line:99,column:24},end:{line:105,column:5}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:106,column:4},end:{line:106,column:5}},loc:{start:{line:106,column:25},end:{line:108,column:5}},line:106}},branchMap:{0:{loc:{start:{line:26,column:6},end:{line:30,column:7}},type:"if",locations:[{start:{line:26,column:6},end:{line:30,column:7}},{start:{line:28,column:13},end:{line:30,column:7}}],line:26},1:{loc:{start:{line:26,column:10},end:{line:26,column:55}},type:"binary-expr",locations:[{start:{line:26,column:10},end:{line:26,column:20}},{start:{line:26,column:24},end:{line:26,column:55}}],line:26},2:{loc:{start:{line:33,column:6},end:{line:37,column:7}},type:"if",locations:[{start:{line:33,column:6},end:{line:37,column:7}},{start:{line:35,column:13},end:{line:37,column:7}}],line:33},3:{loc:{start:{line:33,column:10},end:{line:33,column:58}},type:"binary-expr",locations:[{start:{line:33,column:10},end:{line:33,column:20}},{start:{line:33,column:24},end:{line:33,column:58}}],line:33},4:{loc:{start:{line:40,column:6},end:{line:48,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:48,column:7}},{start:{line:46,column:13},end:{line:48,column:7}}],line:40},5:{loc:{start:{line:41,column:8},end:{line:43,column:58}},type:"binary-expr",locations:[{start:{line:41,column:8},end:{line:41,column:18}},{start:{line:42,column:8},end:{line:42,column:18}},{start:{line:43,column:8},end:{line:43,column:58}}],line:41},6:{loc:{start:{line:51,column:6},end:{line:59,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:59,column:7}},{start:{line:57,column:13},end:{line:59,column:7}}],line:51},7:{loc:{start:{line:52,column:8},end:{line:54,column:61}},type:"binary-expr",locations:[{start:{line:52,column:8},end:{line:52,column:18}},{start:{line:53,column:8},end:{line:53,column:18}},{start:{line:54,column:8},end:{line:54,column:61}}],line:52},8:{loc:{start:{line:77,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:85,column:7}},{start:{line:82,column:13},end:{line:85,column:7}}],line:77},9:{loc:{start:{line:78,column:8},end:{line:79,column:65}},type:"binary-expr",locations:[{start:{line:78,column:8},end:{line:78,column:46}},{start:{line:79,column:8},end:{line:79,column:65}}],line:78}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0,0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,sources:["SuiteRunner.vue"],names:[],mappings:";AA0OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"SuiteRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <div id="tr-container">\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Pause on Error"\n value="pauseOnError"\n hide-details\n data-test="pause-on-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Manual"\n value="manual"\n hide-details\n data-test="manual"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Suite:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="suiteChanged"\n :items="suites"\n v-model="suite"\n data-test="select-suite"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="$emit(\'button\', { method: \'start\', suite, options })"\n data-test="start-suite"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="$emit(\'button\', { method: \'setup\', suite, options })"\n data-test="setup-suite"\n :disabled="disableButtons || !setupSuiteEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="$emit(\'button\', { method: \'teardown\', suite, options })"\n data-test="teardown-suite"\n :disabled="disableButtons || !teardownSuiteEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Continue after Error"\n value="continueAfterError"\n hide-details\n data-test="continue-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Loop"\n value="loop"\n hide-details\n data-test="loop"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Group:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="groupChanged"\n :items="groups"\n v-model="group"\n data-test="select-group"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', { method: \'start\', suite, group, options })\n "\n data-test="start-group"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="\n $emit(\'button\', { method: \'setup\', suite, group, options })\n "\n data-test="setup-group"\n :disabled="disableButtons || !setupGroupEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="\n $emit(\'button\', { method: \'teardown\', suite, group, options })\n "\n data-test="teardown-group"\n :disabled="disableButtons || !teardownGroupEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Abort after Error"\n value="abortAfterError"\n hide-details\n data-test="abort-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n :disabled="!options.includes(\'loop\')"\n v-model="options"\n label="Break Loop on Error"\n value="breakLoopOnError"\n hide-details\n data-test="break-loop-on-error"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Script:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="scriptChanged"\n :items="scripts"\n v-model="script"\n data-test="select-script"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', {\n method: \'start\',\n suite,\n group,\n script,\n options,\n })\n "\n data-test="start-script"\n >\n Start\n </v-btn>\n \x3c!-- TODO: Don\'t like this hard coded spacer but not sure how else\n to push the Start button over to line up with the other Starts --\x3e\n <div style="width: 300px" />\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n suiteMap: {\n type: Object,\n required: true,\n },\n disableButtons: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n suites: [],\n groups: [],\n scripts: [],\n suite: \'\',\n group: \'\',\n script: \'\',\n options: [\'pauseOnError\', \'manual\', \'continueAfterError\'],\n }\n },\n computed: {\n setupSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].setup) {\n return true\n } else {\n return false\n }\n },\n teardownSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].teardown) {\n return true\n } else {\n return false\n }\n },\n setupGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].setup\n ) {\n return true\n } else {\n return false\n }\n },\n teardownGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].teardown\n ) {\n return true\n } else {\n return false\n }\n },\n },\n created() {\n this.initSuites()\n },\n // Watch the suiteMap so we can recreate the suites and set the initial value\n watch: {\n suiteMap: {\n handler: function (newVal, oldVal) {\n this.updateSuiteMap()\n },\n deep: true, // Deep watcher because suiteMap is a nested Object\n },\n },\n methods: {\n updateSuiteMap() {\n this.suites = Object.keys(this.suiteMap)\n if (\n this.suiteMap[this.suite] == undefined ||\n this.suiteMap[this.suite].groups[this.group] == undefined\n ) {\n this.initSuites()\n } else {\n this.groups = Object.keys(this.suiteMap[this.suite].groups)\n this.scripts = this.suiteMap[this.suite].groups[this.group].scripts\n }\n },\n initSuites() {\n this.suites = Object.keys(this.suiteMap)\n this.suiteChanged(this.suites[0])\n },\n suiteChanged(event) {\n this.suite = event\n this.group = \'\'\n this.script = \'\'\n this.groups = Object.keys(this.suiteMap[event].groups)\n // Make the group default be the first group\n this.groupChanged(this.groups[0])\n },\n groupChanged(event) {\n this.group = event\n this.script = \'\'\n this.scripts = this.suiteMap[this.suite].groups[event].scripts\n // Make the script default be the first\n this.scriptChanged(this.scripts[0])\n },\n scriptChanged(event) {\n this.script = event\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n#tr-container {\n padding-top: 0px;\n padding-bottom: 15px;\n padding-left: 0px;\n padding-right: 0px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f2c5bb67e843bcea1658ca32e99187e727ff97f3"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return it=function(){return o},o}it();var lt={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data:function(){return it().f[0]++,it().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled:function(){return it().f[1]++,it().s[1]++,it().b[1][0]++,this.suite&&(it().b[1][1]++,this.suiteMap[this.suite].setup)?(it().b[0][0]++,it().s[2]++,!0):(it().b[0][1]++,it().s[3]++,!1)},teardownSuiteEnabled:function(){return it().f[2]++,it().s[4]++,it().b[3][0]++,this.suite&&(it().b[3][1]++,this.suiteMap[this.suite].teardown)?(it().b[2][0]++,it().s[5]++,!0):(it().b[2][1]++,it().s[6]++,!1)},setupGroupEnabled:function(){return it().f[3]++,it().s[7]++,it().b[5][0]++,this.suite&&(it().b[5][1]++,this.group)&&(it().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(it().b[4][0]++,it().s[8]++,!0):(it().b[4][1]++,it().s[9]++,!1)},teardownGroupEnabled:function(){return it().f[4]++,it().s[10]++,it().b[7][0]++,this.suite&&(it().b[7][1]++,this.group)&&(it().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(it().b[6][0]++,it().s[11]++,!0):(it().b[6][1]++,it().s[12]++,!1)}},created:function(){it().f[5]++,it().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(e,n){it().f[6]++,it().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap:function(){it().f[7]++,it().s[15]++,this.suites=Object.keys(this.suiteMap),it().s[16]++,it().b[9][0]++,void 0==this.suiteMap[this.suite]||(it().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(it().b[8][0]++,it().s[17]++,this.initSuites()):(it().b[8][1]++,it().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),it().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites:function(){it().f[8]++,it().s[20]++,this.suites=Object.keys(this.suiteMap),it().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged:function(e){it().f[9]++,it().s[22]++,this.suite=e,it().s[23]++,this.group="",it().s[24]++,this.script="",it().s[25]++,this.groups=Object.keys(this.suiteMap[e].groups),it().s[26]++,this.groupChanged(this.groups[0])},groupChanged:function(e){it().f[10]++,it().s[27]++,this.group=e,it().s[28]++,this.script="",it().s[29]++,this.scripts=this.suiteMap[this.suite].groups[e].scripts,it().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged:function(e){it().f[11]++,it().s[31]++,this.script=e}}},st=lt,ot=(t(14723),(0,y.Z)(st,nt,tt,!1,null,"3372ac08",null)),at=ot.exports;function rt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="252a0dbc653f53201767f2c9315f1fb523b691dd",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1346}},4:{start:{line:1,column:206},end:{line:1,column:419}},5:{start:{line:1,column:603},end:{line:1,column:808}},6:{start:{line:1,column:1060},end:{line:1,column:1074}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:182},end:{line:1,column:183}},loc:{start:{line:1,column:205},end:{line:1,column:420}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:579},end:{line:1,column:580}},loc:{start:{line:1,column:602},end:{line:1,column:809}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1044},end:{line:1,column:1045}},loc:{start:{line:1,column:1059},end:{line:1,column:1075}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"252a0dbc653f53201767f2c9315f1fb523b691dd"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return rt=function(){return o},o}rt(),rt().s[0]++;var ct=function(){rt().f[0]++;var e=(rt().s[1]++,this),n=(rt().s[2]++,e._self._c);return rt().s[3]++,n("div",[n("v-card",[n("v-card-title",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return rt().f[1]++,rt().s[4]++,[n("div",e._g(e._b({},"div",l,!1),i),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:e.downloadLog}},[n("v-icon",[e._v(" mdi-download ")])],1)],1)]}}])},[n("span",[e._v(" Download Log ")])]),e._v(" Log Messages "),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return rt().f[2]++,rt().s[5]++,[n("div",e._g(e._b({},"div",l,!1),i),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:e.clearLog}},[n("v-icon",[e._v(" mdi-delete ")])],1)],1)]}}])},[n("span",[e._v(" Clear Log ")])])],1),n("v-card-subtitle",[n("v-text-field",{attrs:{"single-line":"","hide-details":"",autofocus:"",label:"Search","data-test":"search-output-messages"},model:{value:e.search,callback:function(n){rt().f[3]++,rt().s[6]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.messages,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:"",height:"45vh","data-test":"output-messages"}})],1)],1)},ut=(rt().s[7]++,[]);function dt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="4f866ab3685e6a3232e3beb9804b0b4718c61e05",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:12,column:4},end:{line:15,column:5}},1:{start:{line:20,column:8},end:{line:20,column:25}},2:{start:{line:23,column:8},end:{line:23,column:34}},3:{start:{line:29,column:21},end:{line:29,column:79}},4:{start:{line:29,column:52},end:{line:29,column:67}},5:{start:{line:30,column:19},end:{line:32,column:8}},6:{start:{line:34,column:19},end:{line:34,column:46}},7:{start:{line:35,column:6},end:{line:35,column:43}},8:{start:{line:36,column:6},end:{line:39,column:7}},9:{start:{line:40,column:6},end:{line:40,column:18}},10:{start:{line:43,column:6},end:{line:50,column:10}},11:{start:{line:49,column:10},end:{line:49,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:9},end:{line:16,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22},3:{name:"(anonymous_3)",decl:{start:{line:28,column:4},end:{line:28,column:5}},loc:{start:{line:28,column:18},end:{line:41,column:5}},line:28},4:{name:"(anonymous_4)",decl:{start:{line:29,column:39},end:{line:29,column:40}},loc:{start:{line:29,column:52},end:{line:29,column:67}},line:29},5:{name:"(anonymous_5)",decl:{start:{line:42,column:14},end:{line:42,column:15}},loc:{start:{line:42,column:26},end:{line:51,column:5}},line:42},6:{name:"(anonymous_6)",decl:{start:{line:48,column:14},end:{line:48,column:15}},loc:{start:{line:48,column:26},end:{line:50,column:9}},line:48}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptLogMessages.vue"],names:[],mappings:";AAiFA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptLogMessages.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card>\n <v-card-title>\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn\n icon\n class="mx-2"\n data-test="download-log"\n @click="downloadLog"\n >\n <v-icon> mdi-download </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Download Log </span>\n </v-tooltip>\n Log Messages\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn icon class="mx-2" data-test="clear-log" @click="clearLog">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Clear Log </span>\n </v-tooltip>\n </v-card-title>\n <v-card-subtitle>\n <v-text-field\n v-model="search"\n single-line\n hide-details\n autofocus\n label="Search"\n data-test="search-output-messages"\n />\n </v-card-subtitle>\n <v-data-table\n :headers="headers"\n :items="messages"\n :search="search"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n dense\n height="45vh"\n data-test="output-messages"\n />\n </v-card>\n </div>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n search: \'\',\n headers: [{ text: \'Message\', value: \'message\' }],\n }\n },\n computed: {\n messages: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadLog() {\n const output = this.messages.map((message) => message.message).join(\'\\n\')\n const blob = new Blob([output], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_sr_message_log.txt\'\n )\n link.click()\n },\n clearLog: function () {\n this.$dialog\n .confirm(\'Are you sure you want to clear the logs?\', {\n okText: \'Clear\',\n cancelText: \'Cancel\',\n })\n .then((dialog) => {\n this.messages = []\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4f866ab3685e6a3232e3beb9804b0b4718c61e05"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return dt=function(){return o},o}dt();var mt={props:{value:{type:Array,required:!0}},data:function(){return dt().f[0]++,dt().s[0]++,{search:"",headers:[{text:"Message",value:"message"}]}},computed:{messages:{get:function(){return dt().f[1]++,dt().s[1]++,this.value},set:function(e){dt().f[2]++,dt().s[2]++,this.$emit("input",e)}}},methods:{downloadLog:function(){dt().f[3]++;var e=(dt().s[3]++,this.messages.map((function(e){return dt().f[4]++,dt().s[4]++,e.message})).join("\n")),n=(dt().s[5]++,new Blob([e],{type:"text/plain"})),t=(dt().s[6]++,document.createElement("a"));dt().s[7]++,t.href=URL.createObjectURL(n),dt().s[8]++,t.setAttribute("download",(0,v.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),dt().s[9]++,t.click()},clearLog:function(){var e=this;dt().f[5]++,dt().s[10]++,this.$dialog.confirm("Are you sure you want to clear the logs?",{okText:"Clear",cancelText:"Cancel"}).then((function(n){dt().f[6]++,dt().s[11]++,e.messages=[]}))}}},pt=mt,At=(0,y.Z)(pt,ct,ut,!1,null,null,null),ht=At.exports,vt=function(){var e=this,n=e._self._c;return n("div",{ref:"bar",style:e.computedStyle},[n("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[n("v-system-bar",[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v(" mdi-alert ")])],1)]}}])},[n("span",[e._v(" Errors ")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit Screen ")])]),e.fixFloated?e._e():n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v(" "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+" ")])],1)]}}],null,!1,3870545613)},[n("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e.floated?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v(" mdi-arrow-up ")])],1)]}}],null,!1,4034340880)},[n("span",[e._v(" Move Screen Up ")])]):e._e(),e.floated&&e.zIndex>e.minZ?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v(" mdi-arrow-down ")])],1)]}}],null,!1,3846940455)},[n("span",[e._v(" Move Screen Down ")])]):e._e(),n("v-spacer"),n("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(n){return e.$emit("close-screen")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close Screen ")])])],1),e.editDialog?e._e():n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1"},[n("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e.editDialog?n("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(n){return e.saveEdit(n)},cancel:function(n){return e.cancelEdit()},delete:function(n){return e.deleteScreen()}},model:{value:e.editDialog,callback:function(n){e.editDialog=n},expression:"editDialog"}}):e._e(),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"13",value:e.error}})],1),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1)],1)},ft=[],gt=(t(68995),t(13489),t(67789),t(63291)),bt=t(44091),Ct=t(23779),_t=t.n(Ct),yt=t(96009),wt=t.n(yt),xt=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{persistent:"",width:"75vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v(" mdi-delete ")])],1)]}}])},[n("span",[e._v(" Delete Screen ")])])],1),n("v-spacer"),n("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),n("v-spacer"),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v(" mdi-download ")])],1)]}}])},[n("span",[e._v(" Download Screen ")])])],1)],1),n("v-card-text",[n("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v(" Load ")]),n("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(n){e.file=n},expression:"file"}})],1),n("v-row",[e._v(" Edit the screen definition. ")]),n("v-row",{staticClass:"mb-2"},[n("pre",{ref:"editor",staticClass:"editor"})]),e._l(e.editErrors,(function(t,i){return n("v-row",{key:i,staticClass:"my-3"},[n("span",{staticClass:"red--text",domProps:{textContent:e._s(t)}})])})),n("v-row",[n("span",[e._v("Ctrl-space brings up autocomplete")]),n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(n){return e.$emit("cancel")}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(n){e.$emit("save",e.editor.getValue())}}},[e._v(" Save ")])],1)],2)],1)],1)},kt=[],St=(t(71747),t(57871)),Mt=t(50426),Et=t(52261),Tt=(0,St.Z)((function e(){var n=this;(0,Mt.Z)(this,e),(0,Et.Z)(this,"getCompletions",(function(e,n,t,i,l){l(null,(0,u.Z)(this.autocompleteData))})),A.Z.get("/openc3-api/autocomplete/data/screen").then((function(e){return n.autocompleteData=e.data}))})),Dt={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return[]}},errors:{type:Array,default:function(){return[]}}},data:function(){return{file:null}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){var e,n=new Set,t=[],i=(0,a.Z)(this.errors);try{for(i.s();!(e=i.n()).done;){var l=e.value;if(!n.has(l.message)){var s="At ".concat(l.lineNumber,": (").concat(l.line,") ").concat(l.message,".");l.usage&&(s+=" Usage: ".concat(l.usage)),t.push(s),n.add(l.message)}}}catch(o){i.e(o)}finally{i.f()}return t}return[]},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){this.editor=h.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");var e=this.buildScreenMode();this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new Tt],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},methods:{buildScreenMode:function(){var e=h.require("ace/lib/oop"),n=h.require("ace/mode/text_highlight_rules").TextHighlightRules,t=this.keywords.join("|"),i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp("^\\s*(".concat(t,")\\b"))}]},this.normalizeRules()};e.inherits(i,n);var l=function(){this.HighlightRules=i},s=h.require("ace/mode/text").Mode;return e.inherits(l,s),function(){this.$id="ace/mode/openc3"}.call(l.prototype),l},downloadScreen:function(){var e=new Blob([this.editor.getValue()],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),n.click()},loadFile:function(){var e=new FileReader;e.readAsText(this.file);var n=this;e.onload=function(){n.editor.setValue(e.result),n.file=null}},deleteScreen:function(){var e=this;this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(n){e.$emit("delete")}))}}},It=Dt,Rt=(t(16895),t(48038),(0,y.Z)(It,xt,kt,!1,null,"4c92d9b1",null)),Ot=Rt.exports,Nt=t(84910);Nt.keys().forEach((function(e){var n=Nt(e),t=_t()(wt()(e.split("/").pop().replace(/\.\w+$/,"")));bt["default"].component(t,n.default||n)}));var Zt={components:{EditScreenDialog:Ot},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return[]}},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0}},data:function(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0}},watch:{count:{handler:function(e,n){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){var e,n=new Set,t="",i=(0,a.Z)(this.errors);try{for(i.s();!(e=i.n()).done;){var l=e.value;if(!n.has(l.message)){var s="".concat(l.time,": (").concat(l.type,") ").concat(l.message,"\n");t+=s,n.add(l.message)}}}catch(o){i.e(o)}finally{i.f()}return t}return null},computedStyle:function(){var e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured:function(e,n,t){return e.usage?this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()}):this.errors.push({type:"error",message:"".concat(e),time:(new Date).getTime()}),!1},created:function(){this.api=new U.k,this.configParser=new gt.p,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted:function(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed:function(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open:function(e,n){this.$parent.showScreen(e,n)},close:function(e,n){this.$parent.closeScreenByName(e,n)},closeAll:function(){this.$parent.closeAll()},clearErrors:function(){this.errors=[]},updateRefreshInterval:function(){var e=this,n=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((function(){e.update()}),n)},parseDefinition:function(){var e=this;if(this.errors=[],this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,(function(n,t,i,l){var s;if(n)switch(n){case"SCREEN":e.configParser.verify_num_parameters(3,4,"".concat(n," <Width or AUTO> <Height or AUTO> <Polling Period>")),e.width=parseInt(t[0]),e.height=parseInt(t[1]),e.pollingPeriod=parseFloat(t[2]);break;case"END":e.configParser.verify_num_parameters(0,0,"".concat(n)),e.layoutStack.pop(),e.currentLayout=e.layoutStack[e.layoutStack.length-1];break;case"STALE_TIME":e.configParser.verify_num_parameters(1,1,"".concat(n," <Time (s)>")),e.staleTime=parseInt(t[0]);break;case"SETTING":case"SUBSETTING":var o=null!==(s=e.currentLayout.widgets[e.currentLayout.widgets.length-1])&&void 0!==s?s:e.currentLayout;o.settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":e.globalSettings.push(t);break;default:e.processWidget(n,t,i,l);break}})),"undefined"===typeof this.layoutStack[0]){var n,t=[],i=[],l=(0,a.Z)(this.dynamicWidgets);try{for(l.s();!(n=l.n()).done;){var s=n.value;t.push(s.name),i.push(s.lineNumber)}}catch(o){l.e(o)}finally{l.f()}this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(t.join(","),"?"),lineNumber:i.join(","),time:(new Date).getTime()}),this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return this.namedWidgets[e]},get_named_widget:function(e){return this.namedWidgets[e]},setNamedWidget:function(e,n){this.namedWidgets[e]=n},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{var e=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),n=this.$refs.bar.getBoundingClientRect();this.top=n.top-e.top-5,this.left=n.left-e.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(e){e=e||window.event,e.preventDefault(),this.dragX=e.clientX,this.dragY=e.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(e){e=e||window.event,e.preventDefault();var n=this.dragX-e.clientX,t=this.dragY-e.clientY;this.dragX=e.clientX,this.dragY=e.clientY,this.top=this.$refs.bar.offsetTop-t,this.left=this.$refs.bar.offsetLeft-n,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(1e6*Math.random()),this.$nextTick((function(){this.clearErrors(),this.$emit("edit-screen")}))},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(e){this.editDialog=!1,this.currentDefinition=e,this.rerender(),this.$nextTick((function(){A.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){var e=this;this.editDialog=!1,A.Z["delete"]("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(n){e.$emit("delete-screen")}))},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(e,n,t,i){var l=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),l=n[0].toUpperCase(),e=n[1].toUpperCase(),n=n.slice(2,n.length));var s=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget",o=[];if(null!==l&&o.push(["NAMED_WIDGET",l,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){var a={type:s,parameters:n,settings:o,widgets:[]};this.layoutStack.push(a),this.currentLayout.widgets.push(a),this.currentLayout=a}else if(o.push(["__SCREEN__",this]),bt["default"].options.components[s])this.currentLayout.widgets.push({type:s,target:this.target,parameters:n,settings:o,line:t,lineNumber:i});else{var r={type:"DynamicWidget",target:this.target,parameters:n,settings:o,name:s,line:t,lineNumber:i};this.currentLayout.widgets.push(r),this.dynamicWidgets.push(r)}},applyGlobalSettings:function(e){var n=this;this.globalSettings.forEach((function(t){e.forEach((function(e){e.type.toLowerCase()===t[0].toLowerCase()+"widget"&&e.settings.push(t.slice(1)),e.widgets&&n.applyGlobalSettings(e.widgets)}))}))},update:function(){var e=this;0!==this.screenItems.length&&0===this.errors.length&&this.api.get_tlm_values(this.screenItems,this.staleTime).then((function(n){e.updateValues(n)})).catch((function(n){e.errors.push({type:"usage",message:n.message,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(var n=0;n<e.length;n++)e[n].push(this.updateCounter),bt["default"].set(this.screenValues,this.screenItems[n],e[n])},addItem:function(e){this.screenItems.push(e),bt["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){var n=this.screenItems.indexOf(e);this.screenItems.splice(n,1)}}},Lt=Zt,Ft=(t(51080),(0,y.Z)(Lt,vt,ft,!1,null,"a491b21e",null)),Pt=Ft.exports,$t=t(89091),Ht=t(58007);function Bt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",n="bc429c989ff6c563268021b0e1f9fc50ed29bd64",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",statementMap:{0:{start:{line:25,column:20},end:{line:27,column:1}},1:{start:{line:26,column:2},end:{line:26,column:61}},2:{start:{line:29,column:28},end:{line:31,column:1}},3:{start:{line:30,column:2},end:{line:30,column:57}},4:{start:{line:34,column:16},end:{line:44,column:1}},5:{start:{line:35,column:2},end:{line:43,column:8}},6:{start:{line:36,column:16},end:{line:36,column:28}},7:{start:{line:37,column:4},end:{line:41,column:5}},8:{start:{line:38,column:6},end:{line:38,column:28}},9:{start:{line:40,column:6},end:{line:40,column:26}},10:{start:{line:42,column:4},end:{line:42,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:20},end:{line:25,column:21}},loc:{start:{line:25,column:30},end:{line:27,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:29,column:28},end:{line:29,column:29}},loc:{start:{line:29,column:38},end:{line:31,column:1}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:34,column:16},end:{line:34,column:17}},loc:{start:{line:34,column:35},end:{line:44,column:1}},line:34},3:{name:"(anonymous_3)",decl:{start:{line:35,column:22},end:{line:35,column:23}},loc:{start:{line:35,column:40},end:{line:43,column:3}},line:35}},branchMap:{0:{loc:{start:{line:37,column:4},end:{line:41,column:5}},type:"if",locations:[{start:{line:37,column:4},end:{line:41,column:5}},{start:{line:39,column:11},end:{line:41,column:5}}],line:37}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bc429c989ff6c563268021b0e1f9fc50ed29bd64"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Bt=function(){return o},o}Bt(),Bt().s[0]++;var Wt=function(e){return Bt().f[0]++,Bt().s[1]++,A.Z.get("/openc3-api/autocomplete/keywords/".concat(e))};Bt().s[2]++;var Ut=function(e){return Bt().f[1]++,Bt().s[3]++,A.Z.get("/openc3-api/autocomplete/data/".concat(e))};Bt().s[4]++;var Vt=function(e,n){return Bt().f[2]++,Bt().s[5]++,e.reduce((function(e,t){Bt().f[3]++;var i=(Bt().s[6]++,n(t));return Bt().s[7]++,e[i]?(Bt().b[0][0]++,Bt().s[8]++,e[i].push(t)):(Bt().b[0][1]++,Bt().s[9]++,e[i]=[t]),Bt().s[10]++,e}),{})};function Gt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",n="dbda3a6741d49afa955fae563aa43644392aa172",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",statementMap:{0:{start:{line:25,column:32},end:{line:31,column:1}},1:{start:{line:27,column:17},end:{line:27,column:32}},2:{start:{line:28,column:18},end:{line:28,column:33}},3:{start:{line:29,column:17},end:{line:29,column:34}},4:{start:{line:30,column:2},end:{line:30,column:59}},5:{start:{line:39,column:4},end:{line:39,column:32}},6:{start:{line:40,column:4},end:{line:40,column:30}},7:{start:{line:42,column:4},end:{line:45,column:6}},8:{start:{line:43,column:6},end:{line:43,column:74}},9:{start:{line:44,column:6},end:{line:44,column:32}},10:{start:{line:46,column:4},end:{line:49,column:6}},11:{start:{line:47,column:6},end:{line:47,column:43}},12:{start:{line:48,column:6},end:{line:48,column:25}},13:{start:{line:52,column:19},end:{line:74,column:3}},14:{start:{line:53,column:18},end:{line:53,column:20}},15:{start:{line:54,column:29},end:{line:57,column:5}},16:{start:{line:58,column:4},end:{line:62,column:5}},17:{start:{line:59,column:46},end:{line:59,column:75}},18:{start:{line:61,column:6},end:{line:61,column:37}},19:{start:{line:64,column:4},end:{line:73,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:32},end:{line:25,column:33}},loc:{start:{line:25,column:42},end:{line:31,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:34,column:2},end:{line:34,column:3}},loc:{start:{line:38,column:4},end:{line:50,column:3}},line:38},2:{name:"(anonymous_2)",decl:{start:{line:36,column:24},end:{line:36,column:25}},loc:{start:{line:36,column:30},end:{line:36,column:32}},line:36},3:{name:"(anonymous_3)",decl:{start:{line:37,column:31},end:{line:37,column:32}},loc:{start:{line:37,column:37},end:{line:37,column:39}},line:37},4:{name:"(anonymous_4)",decl:{start:{line:42,column:27},end:{line:42,column:28}},loc:{start:{line:42,column:41},end:{line:45,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:46,column:35},end:{line:46,column:36}},loc:{start:{line:46,column:49},end:{line:49,column:5}},line:46},6:{name:"(anonymous_6)",decl:{start:{line:52,column:19},end:{line:52,column:20}},loc:{start:{line:52,column:74},end:{line:74,column:3}},line:52},7:{name:"(anonymous_7)",decl:{start:{line:59,column:35},end:{line:59,column:36}},loc:{start:{line:59,column:46},end:{line:59,column:75}},line:59}},branchMap:{0:{loc:{start:{line:36,column:4},end:{line:36,column:32}},type:"default-arg",locations:[{start:{line:36,column:24},end:{line:36,column:32}}],line:36},1:{loc:{start:{line:37,column:4},end:{line:37,column:39}},type:"default-arg",locations:[{start:{line:37,column:31},end:{line:37,column:39}}],line:37},2:{loc:{start:{line:58,column:4},end:{line:62,column:5}},type:"if",locations:[{start:{line:58,column:4},end:{line:62,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:58}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0],1:[0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"dbda3a6741d49afa955fae563aa43644392aa172"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Gt=function(){return o},o}Gt(),Gt().s[0]++;var zt=function(e){Gt().f[0]++;var n=(Gt().s[1]++,"(^|[{\\(\\s])"),t=(Gt().s[2]++,"[\\s\\(]['\"]"),i=(Gt().s[3]++,"(\\S+\\s?){0,3}");return Gt().s[4]++,new RegExp("".concat(n).concat(e).concat(t).concat(i,"$"))},jt=(0,St.Z)((function e(n){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Gt().b[0][0]++,function(){Gt().f[2]++}),l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(Gt().b[1][0]++,function(){Gt().f[3]++});(0,Mt.Z)(this,e),(0,Et.Z)(this,"getCompletions",(Gt().s[13]++,function(e,n,t,i,l){Gt().f[6]++;var s=(Gt().s[14]++,[]),o=(Gt().s[15]++,n.doc.$lines[t.row].slice(0,t.column));Gt().s[16]++,this.keywordExpressions.some((function(e){return Gt().f[7]++,Gt().s[17]++,o.match(e)}))?(Gt().b[2][0]++,Gt().s[18]++,s=this.autocompleteData):Gt().b[2][1]++,Gt().s[19]++,l(null,(0,u.Z)(s))})),Gt().f[1]++,Gt().s[5]++,this.keywordExpressions=[],Gt().s[6]++,this.autocompleteData=[],Gt().s[7]++,Wt(n).then((function(e){Gt().f[4]++,Gt().s[8]++,t.keywordExpressions=e.data.map(zt),Gt().s[9]++,l()})),Gt().s[10]++,Ut(n).then((function(e){Gt().f[5]++,Gt().s[11]++,t.autocompleteData=e.data,Gt().s[12]++,i()}))}));function qt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",n="131d227344c79c3d036a025c6ea368aeadc2b775",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:27,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:28,column:3}},line:26}},branchMap:{},s:{0:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"131d227344c79c3d036a025c6ea368aeadc2b775"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return qt=function(){return o},o}qt();var Yt=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(){return(0,Mt.Z)(this,t),qt().f[0]++,qt().s[0]++,n.call(this,"cmd")}return(0,St.Z)(t)}(jt),Kt=t(3484);function Xt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",n="25619d346e32a533485beb72a7572c19417db8fc",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:53,column:6}},1:{start:{line:30,column:6},end:{line:45,column:12}},2:{start:{line:31,column:27},end:{line:31,column:60}},3:{start:{line:32,column:25},end:{line:32,column:67}},4:{start:{line:33,column:28},end:{line:37,column:9}},5:{start:{line:39,column:8},end:{line:43,column:9}},6:{start:{line:40,column:10},end:{line:40,column:46}},7:{start:{line:42,column:10},end:{line:42,column:44}},8:{start:{line:44,column:8},end:{line:44,column:21}},9:{start:{line:46,column:6},end:{line:52,column:8}},10:{start:{line:47,column:8},end:{line:51,column:9}},11:{start:{line:57,column:19},end:{line:77,column:3}},12:{start:{line:58,column:18},end:{line:58,column:20}},13:{start:{line:59,column:29},end:{line:62,column:5}},14:{start:{line:63,column:4},end:{line:74,column:5}},15:{start:{line:64,column:46},end:{line:64,column:75}},16:{start:{line:66,column:26},end:{line:68,column:7}},17:{start:{line:67,column:24},end:{line:67,column:61}},18:{start:{line:69,column:6},end:{line:73,column:7}},19:{start:{line:70,column:8},end:{line:70,column:53}},20:{start:{line:72,column:8},end:{line:72,column:30}},21:{start:{line:76,column:4},end:{line:76,column:27}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:54,column:3}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:27,column:17},end:{line:27,column:18}},loc:{start:{line:27,column:23},end:{line:53,column:5}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:30,column:60},end:{line:30,column:61}},loc:{start:{line:30,column:78},end:{line:45,column:7}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:46,column:61},end:{line:46,column:62}},loc:{start:{line:46,column:77},end:{line:52,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:57,column:19},end:{line:57,column:20}},loc:{start:{line:57,column:74},end:{line:77,column:3}},line:57},5:{name:"(anonymous_5)",decl:{start:{line:64,column:35},end:{line:64,column:36}},loc:{start:{line:64,column:46},end:{line:64,column:75}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:67,column:8},end:{line:67,column:9}},loc:{start:{line:67,column:24},end:{line:67,column:61}},line:67}},branchMap:{0:{loc:{start:{line:39,column:8},end:{line:43,column:9}},type:"if",locations:[{start:{line:39,column:8},end:{line:43,column:9}},{start:{line:41,column:15},end:{line:43,column:9}}],line:39},1:{loc:{start:{line:63,column:4},end:{line:74,column:5}},type:"if",locations:[{start:{line:63,column:4},end:{line:74,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:63},2:{loc:{start:{line:69,column:6},end:{line:73,column:7}},type:"if",locations:[{start:{line:69,column:6},end:{line:73,column:7}},{start:{line:71,column:13},end:{line:73,column:7}}],line:69}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"25619d346e32a533485beb72a7572c19417db8fc"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Xt=function(){return o},o}Xt();var Jt=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(){var e;return(0,Mt.Z)(this,t),Xt().f[0]++,Xt().s[0]++,e=n.call(this,"tlm",(function(){Xt().f[1]++,Xt().s[1]++,e.groupedPacketData=e.autocompleteData.reduce((function(e,n){Xt().f[2]++;var t=(Xt().s[2]++,n.caption.match(/\S+\s\S+/)[0]),i=(Xt().s[3]++,n.snippet.replace("".concat(t," "),"")),l=(Xt().s[4]++,{caption:i,snippet:i,meta:"item"});return Xt().s[5]++,e[t]?(Xt().b[0][0]++,Xt().s[6]++,e[t].push(l)):(Xt().b[0][1]++,Xt().s[7]++,e[t]=[l]),Xt().s[8]++,e}),{}),Xt().s[9]++,e.packets=Object.keys(e.groupedPacketData).map((function(e){return Xt().f[3]++,Xt().s[10]++,{caption:e,snippet:e,meta:"packet"}}))})),(0,Et.Z)((0,Kt.Z)(e),"getCompletions",(Xt().s[11]++,function(e,n,t,i,l){Xt().f[4]++;var s=(Xt().s[12]++,[]),o=(Xt().s[13]++,n.doc.$lines[t.row].slice(0,t.column));if(Xt().s[14]++,this.keywordExpressions.some((function(e){return Xt().f[5]++,Xt().s[15]++,o.match(e)}))){Xt().b[1][0]++;var a=(Xt().s[16]++,Object.keys(this.groupedPacketData).find((function(e){return Xt().f[6]++,Xt().s[17]++,o.includes(e)})));Xt().s[18]++,a?(Xt().b[2][0]++,Xt().s[19]++,s=this.groupedPacketData[a]):(Xt().b[2][1]++,Xt().s[20]++,s=this.packets)}else Xt().b[1][1]++;Xt().s[21]++,l(null,s)})),e}return(0,St.Z)(t)}(jt);t(48319),t(43430);function Qt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",n="e080393749109eb4f39d2fd9ed01fd9fad38db87",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",statementMap:{0:{start:{line:26,column:23},end:{line:31,column:1}},1:{start:{line:28,column:17},end:{line:28,column:32}},2:{start:{line:29,column:15},end:{line:29,column:37}},3:{start:{line:30,column:2},end:{line:30,column:46}},4:{start:{line:32,column:32},end:{line:32,column:41}},5:{start:{line:33,column:29},end:{line:33,column:43}},6:{start:{line:37,column:4},end:{line:37,column:30}},7:{start:{line:39,column:4},end:{line:39,column:21}},8:{start:{line:40,column:4},end:{line:47,column:6}},9:{start:{line:41,column:6},end:{line:46,column:8}},10:{start:{line:42,column:8},end:{line:45,column:9}},11:{start:{line:49,column:4},end:{line:49,column:35}},12:{start:{line:50,column:4},end:{line:52,column:6}},13:{start:{line:51,column:6},end:{line:51,column:68}},14:{start:{line:54,column:4},end:{line:54,column:35}},15:{start:{line:55,column:4},end:{line:57,column:6}},16:{start:{line:56,column:6},end:{line:56,column:68}},17:{start:{line:60,column:14},end:{line:138,column:3}},18:{start:{line:61,column:42},end:{line:131,column:5}},19:{start:{line:63,column:8},end:{line:63,column:26}},20:{start:{line:64,column:8},end:{line:66,column:9}},21:{start:{line:65,column:10},end:{line:65,column:23}},22:{start:{line:67,column:25},end:{line:69,column:16}},23:{start:{line:68,column:10},end:{line:68,column:43}},24:{start:{line:70,column:25},end:{line:72,column:16}},25:{start:{line:71,column:10},end:{line:71,column:43}},26:{start:{line:73,column:8},end:{line:75,column:9}},27:{start:{line:74,column:10},end:{line:74,column:23}},28:{start:{line:77,column:25},end:{line:77,column:50}},29:{start:{line:78,column:30},end:{line:80,column:32}},30:{start:{line:82,column:8},end:{line:85,column:9}},31:{start:{line:83,column:10},end:{line:83,column:44}},32:{start:{line:84,column:10},end:{line:84,column:23}},33:{start:{line:87,column:37},end:{line:87,column:80}},34:{start:{line:88,column:30},end:{line:90,column:9}},35:{start:{line:91,column:8},end:{line:93,column:9}},36:{start:{line:92,column:10},end:{line:92,column:23}},37:{start:{line:95,column:25},end:{line:98,column:9}},38:{start:{line:99,column:8},end:{line:110,column:9}},39:{start:{line:100,column:10},end:{line:100,column:42}},40:{start:{line:102,column:33},end:{line:102,column:55}},41:{start:{line:103,column:10},end:{line:109,column:11}},42:{start:{line:104,column:12},end:{line:106,column:13}},43:{start:{line:105,column:25},end:{line:105,column:45}},44:{start:{line:108,column:12},end:{line:108,column:80}},45:{start:{line:108,column:70},end:{line:108,column:79}},46:{start:{line:113,column:8},end:{line:121,column:9}},47:{start:{line:114,column:10},end:{line:120,column:11}},48:{start:{line:115,column:12},end:{line:115,column:79}},49:{start:{line:117,column:12},end:{line:119,column:13}},50:{start:{line:118,column:14},end:{line:118,column:46}},51:{start:{line:123,column:8},end:{line:127,column:10}},52:{start:{line:128,column:8},end:{line:128,column:21}},53:{start:{line:133,column:21},end:{line:133,column:57}},54:{start:{line:134,column:4},end:{line:137,column:5}},55:{start:{line:136,column:40},end:{line:136,column:67}},56:{start:{line:140,column:16},end:{line:212,column:3}},57:{start:{line:141,column:25},end:{line:141,column:27}},58:{start:{line:142,column:25},end:{line:145,column:5}},59:{start:{line:144,column:19},end:{line:144,column:42}},60:{start:{line:146,column:4},end:{line:210,column:5}},61:{start:{line:147,column:6},end:{line:155,column:7}},62:{start:{line:148,column:8},end:{line:153,column:9}},63:{start:{line:149,column:10},end:{line:152,column:12}},64:{start:{line:154,column:8},end:{line:154,column:16}},65:{start:{line:156,column:27},end:{line:159,column:7}},66:{start:{line:158,column:21},end:{line:158,column:44}},67:{start:{line:160,column:6},end:{line:209,column:7}},68:{start:{line:161,column:8},end:{line:208,column:9}},69:{start:{line:162,column:27},end:{line:162,column:64}},70:{start:{line:163,column:10},end:{line:177,column:11}},71:{start:{line:164,column:27},end:{line:166,column:34}},72:{start:{line:167,column:29},end:{line:167,column:59}},73:{start:{line:168,column:12},end:{line:176,column:13}},74:{start:{line:170,column:16},end:{line:172,column:17}},75:{start:{line:171,column:28},end:{line:171,column:37}},76:{start:{line:173,column:16},end:{line:173,column:29}},77:{start:{line:179,column:24},end:{line:179,column:62}},78:{start:{line:180,column:10},end:{line:188,column:11}},79:{start:{line:181,column:12},end:{line:186,column:14}},80:{start:{line:187,column:12},end:{line:187,column:20}},81:{start:{line:189,column:10},end:{line:207,column:11}},82:{start:{line:190,column:12},end:{line:196,column:13}},83:{start:{line:190,column:38},end:{line:190,column:68}},84:{start:{line:191,column:14},end:{line:194,column:16}},85:{start:{line:195,column:14},end:{line:195,column:22}},86:{start:{line:198,column:12},end:{line:206,column:13}},87:{start:{line:199,column:14},end:{line:205,column:15}},88:{start:{line:199,column:40},end:{line:199,column:54}},89:{start:{line:200,column:16},end:{line:203,column:18}},90:{start:{line:204,column:16},end:{line:204,column:24}},91:{start:{line:211,column:4},end:{line:211,column:23}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:23},end:{line:26,column:24}},loc:{start:{line:26,column:33},end:{line:31,column:1}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:36,column:2},end:{line:36,column:3}},loc:{start:{line:36,column:16},end:{line:58,column:3}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:40,column:36},end:{line:40,column:37}},loc:{start:{line:40,column:50},end:{line:47,column:5}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:41,column:23},end:{line:41,column:24}},loc:{start:{line:41,column:35},end:{line:46,column:7}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:50,column:28},end:{line:50,column:29}},loc:{start:{line:50,column:42},end:{line:52,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:55,column:28},end:{line:55,column:29}},loc:{start:{line:55,column:42},end:{line:57,column:5}},line:55},6:{name:"(anonymous_6)",decl:{start:{line:60,column:14},end:{line:60,column:15}},loc:{start:{line:60,column:36},end:{line:138,column:3}},line:60},7:{name:"(anonymous_7)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:31},end:{line:129,column:7}},line:62},8:{name:"(anonymous_8)",decl:{start:{line:67,column:59},end:{line:67,column:60}},loc:{start:{line:67,column:77},end:{line:69,column:9}},line:67},9:{name:"(anonymous_9)",decl:{start:{line:70,column:59},end:{line:70,column:60}},loc:{start:{line:70,column:77},end:{line:72,column:9}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:105,column:14},end:{line:105,column:15}},loc:{start:{line:105,column:25},end:{line:105,column:45}},line:105},11:{name:"(anonymous_11)",decl:{start:{line:108,column:52},end:{line:108,column:53}},loc:{start:{line:108,column:70},end:{line:108,column:79}},line:108},12:{name:"(anonymous_12)",decl:{start:{line:117,column:56},end:{line:117,column:57}},loc:{start:{line:118,column:14},end:{line:118,column:46}},line:118},13:{name:"(anonymous_13)",decl:{start:{line:136,column:30},end:{line:136,column:31}},loc:{start:{line:136,column:40},end:{line:136,column:67}},line:136},14:{name:"(anonymous_14)",decl:{start:{line:140,column:16},end:{line:140,column:17}},loc:{start:{line:140,column:40},end:{line:212,column:3}},line:140},15:{name:"(anonymous_15)",decl:{start:{line:144,column:6},end:{line:144,column:7}},loc:{start:{line:144,column:19},end:{line:144,column:42}},line:144},16:{name:"(anonymous_16)",decl:{start:{line:158,column:8},end:{line:158,column:9}},loc:{start:{line:158,column:21},end:{line:158,column:44}},line:158},17:{name:"(anonymous_17)",decl:{start:{line:169,column:14},end:{line:169,column:15}},loc:{start:{line:169,column:38},end:{line:174,column:15}},line:169},18:{name:"(anonymous_18)",decl:{start:{line:171,column:18},end:{line:171,column:19}},loc:{start:{line:171,column:28},end:{line:171,column:37}},line:171},19:{name:"(anonymous_19)",decl:{start:{line:190,column:28},end:{line:190,column:29}},loc:{start:{line:190,column:38},end:{line:190,column:68}},line:190},20:{name:"(anonymous_20)",decl:{start:{line:199,column:30},end:{line:199,column:31}},loc:{start:{line:199,column:40},end:{line:199,column:54}},line:199}},branchMap:{0:{loc:{start:{line:64,column:8},end:{line:66,column:9}},type:"if",locations:[{start:{line:64,column:8},end:{line:66,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},1:{loc:{start:{line:68,column:17},end:{line:68,column:43}},type:"binary-expr",locations:[{start:{line:68,column:17},end:{line:68,column:22}},{start:{line:68,column:26},end:{line:68,column:43}}],line:68},2:{loc:{start:{line:71,column:17},end:{line:71,column:43}},type:"binary-expr",locations:[{start:{line:71,column:17},end:{line:71,column:22}},{start:{line:71,column:26},end:{line:71,column:43}}],line:71},3:{loc:{start:{line:73,column:8},end:{line:75,column:9}},type:"if",locations:[{start:{line:73,column:8},end:{line:75,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},4:{loc:{start:{line:73,column:12},end:{line:73,column:34}},type:"binary-expr",locations:[{start:{line:73,column:12},end:{line:73,column:21}},{start:{line:73,column:25},end:{line:73,column:34}}],line:73},5:{loc:{start:{line:77,column:26},end:{line:77,column:46}},type:"binary-expr",locations:[{start:{line:77,column:26},end:{line:77,column:34}},{start:{line:77,column:38},end:{line:77,column:46}}],line:77},6:{loc:{start:{line:82,column:8},end:{line:85,column:9}},type:"if",locations:[{start:{line:82,column:8},end:{line:85,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:82},7:{loc:{start:{line:89,column:10},end:{line:89,column:42}},type:"cond-expr",locations:[{start:{line:89,column:33},end:{line:89,column:36}},{start:{line:89,column:39},end:{line:89,column:42}}],line:89},8:{loc:{start:{line:91,column:8},end:{line:93,column:9}},type:"if",locations:[{start:{line:91,column:8},end:{line:93,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:91},9:{loc:{start:{line:99,column:8},end:{line:110,column:9}},type:"if",locations:[{start:{line:99,column:8},end:{line:110,column:9}},{start:{line:101,column:15},end:{line:110,column:9}}],line:99},10:{loc:{start:{line:103,column:10},end:{line:109,column:11}},type:"if",locations:[{start:{line:103,column:10},end:{line:109,column:11}},{start:{line:107,column:17},end:{line:109,column:11}}],line:103},11:{loc:{start:{line:114,column:10},end:{line:120,column:11}},type:"if",locations:[{start:{line:114,column:10},end:{line:120,column:11}},{start:{line:116,column:17},end:{line:120,column:11}}],line:114},12:{loc:{start:{line:147,column:6},end:{line:155,column:7}},type:"if",locations:[{start:{line:147,column:6},end:{line:155,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:147},13:{loc:{start:{line:162,column:27},end:{line:162,column:64}},type:"cond-expr",locations:[{start:{line:162,column:51},end:{line:162,column:56}},{start:{line:162,column:59},end:{line:162,column:64}}],line:162},14:{loc:{start:{line:163,column:10},end:{line:177,column:11}},type:"if",locations:[{start:{line:163,column:10},end:{line:177,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:163},15:{loc:{start:{line:164,column:27},end:{line:166,column:34}},type:"cond-expr",locations:[{start:{line:165,column:16},end:{line:165,column:35}},{start:{line:166,column:16},end:{line:166,column:34}}],line:164},16:{loc:{start:{line:180,column:10},end:{line:188,column:11}},type:"if",locations:[{start:{line:180,column:10},end:{line:188,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:180},17:{loc:{start:{line:184,column:16},end:{line:184,column:57}},type:"cond-expr",locations:[{start:{line:184,column:37},end:{line:184,column:45}},{start:{line:184,column:48},end:{line:184,column:57}}],line:184},18:{loc:{start:{line:189,column:10},end:{line:207,column:11}},type:"if",locations:[{start:{line:189,column:10},end:{line:207,column:11}},{start:{line:197,column:17},end:{line:207,column:11}}],line:189},19:{loc:{start:{line:190,column:12},end:{line:196,column:13}},type:"if",locations:[{start:{line:190,column:12},end:{line:196,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:190},20:{loc:{start:{line:199,column:14},end:{line:205,column:15}},type:"if",locations:[{start:{line:199,column:14},end:{line:205,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:199}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e080393749109eb4f39d2fd9ed01fd9fad38db87"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Qt=function(){return o},o}Qt(),Qt().s[0]++;var ei=function(e){Qt().f[0]++;var n=(Qt().s[1]++,"(^|[{\\(\\s])"),t=(Qt().s[2]++,"((\\s.+)|(\\(.+\\)))");return Qt().s[3]++,new RegExp("".concat(n).concat(e).concat(t))},ni=(Qt().s[4]++,/#\{.+\}/),ti=(Qt().s[5]++,/['"],\s?['"]/),ii=(0,St.Z)((function e(){var n=this;(0,Mt.Z)(this,e),(0,Et.Z)(this,"checkText",(Qt().s[17]++,function(){var e=(0,c.Z)((0,r.Z)().mark((function e(n){var t,i,l,s,o=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Qt().f[6]++,Qt().s[18]++,t=n.split("\n").reduce((function(e,n,t){if(Qt().f[7]++,Qt().s[19]++,n=n.trim(),Qt().s[20]++,n.match(/^#/))return Qt().b[0][0]++,Qt().s[21]++,e;Qt().b[0][1]++;var i=(Qt().s[22]++,o.cmdKeywordExpressions.reduce((function(e,t){return Qt().f[8]++,Qt().s[23]++,Qt().b[1][0]++,e||(Qt().b[1][1]++,n.match(t))}),null)),l=(Qt().s[24]++,o.tlmKeywordExpressions.reduce((function(e,t){return Qt().f[9]++,Qt().s[25]++,Qt().b[2][0]++,e||(Qt().b[2][1]++,n.match(t))}),null));if(Qt().s[26]++,Qt().b[4][0]++,!i&&(Qt().b[4][1]++,!l))return Qt().b[3][0]++,Qt().s[27]++,e;Qt().b[3][1]++;var s=(Qt().s[28]++,(Qt().b[5][0]++,i||(Qt().b[5][1]++,l))[0]),a=(Qt().s[29]++,s.substring(s.match(/[\(\s)]/).index+1).replace(/\)\s*$/,""));if(Qt().s[30]++,a.match(ni))return Qt().b[6][0]++,Qt().s[31]++,e.linesToSkip.push(t+1),Qt().s[32]++,e;Qt().b[6][1]++;var r=(Qt().s[33]++,!!a.match(ti)),c=(Qt().s[34]++,a.split(r?(Qt().b[7][0]++,","):(Qt().b[7][1]++," ")));if(Qt().s[35]++,c.length<2)return Qt().b[8][0]++,Qt().s[36]++,e;Qt().b[8][1]++;var u=(Qt().s[37]++,{target:c[0],packet:c[1]});if(Qt().s[38]++,l)Qt().b[9][0]++,Qt().s[39]++,u.item=c[2];else{Qt().b[9][1]++;var d=(Qt().s[40]++,c.slice(2));Qt().s[41]++,r?(Qt().b[10][0]++,Qt().s[42]++,u.params=d.map((function(e){return Qt().f[10]++,Qt().s[43]++,e.split("=>")[0]}))):(Qt().b[10][1]++,Qt().s[44]++,u.params=d.filter((function(e,n){return Qt().f[11]++,Qt().s[45]++,n%2})))}for(var m in Qt().s[46]++,u)Qt().s[47]++,"string"===typeof u[m]?(Qt().b[11][0]++,Qt().s[48]++,u[m]=u[m].replace(/['"]/g,"").trim()):(Qt().b[11][1]++,Qt().s[49]++,u[m]=u[m].map((function(e){return Qt().f[12]++,Qt().s[50]++,e.replace(/['"]/g,"").trim()})));return Qt().s[51]++,e.linesToCheck.push({line:n,mnemonic:u,lineNumber:t+1}),Qt().s[52]++,e}),{linesToCheck:[],linesToSkip:[]}),i=t.linesToCheck,l=t.linesToSkip,Qt().s[53]++,e.next=5,this._checkLines(i);case 5:return s=e.sent,Qt().s[54]++,e.abrupt("return",{skipped:l.sort(),problems:s.sort((function(e,n){return Qt().f[13]++,Qt().s[55]++,e.lineNumber-n.lineNumber}))});case 8:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}())),(0,Et.Z)(this,"_checkLines",(Qt().s[56]++,function(){var e=(0,c.Z)((0,r.Z)().mark((function e(t){var i,l,s,c,u,d,m,p,A,h,v,f;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Qt().f[14]++,Qt().s[57]++,i=[],Qt().s[58]++,l=Vt(t,(function(e){return Qt().f[15]++,Qt().s[59]++,e.mnemonic.target})),Qt().s[60]++,e.t0=(0,r.Z)().keys(l);case 5:if((e.t1=e.t0()).done){e.next=47;break}if(s=e.t1.value,Qt().s[61]++,n.targets[s]){e.next=17;break}Qt().b[12][0]++,Qt().s[62]++,c=(0,a.Z)(l[s]);try{for(c.s();!(u=c.n()).done;)d=u.value,Qt().s[63]++,i.push((0,o.Z)((0,o.Z)({},d),{},{error:'Target "'.concat(s,'" does not exist.')}))}catch(g){c.e(g)}finally{c.f()}return Qt().s[64]++,e.abrupt("continue",5);case 17:Qt().b[12][1]++;case 18:Qt().s[65]++,m=Vt(l[s],(function(e){return Qt().f[16]++,Qt().s[66]++,e.mnemonic.packet})),Qt().s[67]++,e.t2=(0,r.Z)().keys(m);case 21:if((e.t3=e.t2()).done){e.next=45;break}p=e.t3.value,Qt().s[68]++,A=(0,a.Z)(m[p]),e.prev=25,v=(0,r.Z)().mark((function e(){var t,l,c,u,d,m,A,v,f;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=h.value,Qt().s[69]++,l=t.mnemonic.item?(Qt().b[13][0]++,"tlm"):(Qt().b[13][1]++,"cmd"),Qt().s[70]++,n.targets[s][l]){e.next=14;break}return Qt().b[14][0]++,Qt().s[71]++,c=t.mnemonic.item?(Qt().b[15][0]++,"get_all_telemetry"):(Qt().b[15][1]++,"get_all_commands"),Qt().s[72]++,e.next=9,n.api[c](s);case 9:u=e.sent,Qt().s[73]++,n.targets[s][l]=u.reduce((function(e,n){return Qt().f[17]++,Qt().s[74]++,e[n.packet_name]=n.items.map((function(e){return Qt().f[18]++,Qt().s[75]++,e.name})),Qt().s[76]++,e}),{}),e.next=15;break;case 14:Qt().b[14][1]++;case 15:if(Qt().s[77]++,d=n.targets[s][l][p],Qt().s[78]++,d){e.next=25;break}return Qt().b[16][0]++,Qt().s[79]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:"".concat("tlm"===l?(Qt().b[17][0]++,"Packet"):(Qt().b[17][1]++,"Command"),' "').concat(s," ").concat(p,'" does not exist.')})),Qt().s[80]++,e.abrupt("return","continue");case 25:Qt().b[16][1]++;case 26:if(Qt().s[81]++,!t.mnemonic.item){e.next=41;break}if(Qt().b[18][0]++,Qt().s[82]++,d.some((function(e){return Qt().f[19]++,Qt().s[83]++,e===t.mnemonic.item}))){e.next=38;break}return Qt().b[19][0]++,Qt().s[84]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:'Item "'.concat(s," ").concat(p," ").concat(t.mnemonic.item,'" does not exist.')})),Qt().s[85]++,e.abrupt("return","continue");case 38:Qt().b[19][1]++;case 39:e.next=62;break;case 41:Qt().b[18][1]++,Qt().s[86]++,m=(0,a.Z)(t.mnemonic.params),e.prev=44,v=(0,r.Z)().mark((function e(){var n;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=A.value,Qt().s[87]++,d.some((function(e){return Qt().f[20]++,Qt().s[88]++,e===n}))){e.next=10;break}return Qt().b[20][0]++,Qt().s[89]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:'Command "'.concat(s," ").concat(p,'" param "').concat(n,'" does not exist.')})),Qt().s[90]++,e.abrupt("return","continue");case 10:Qt().b[20][1]++;case 11:case"end":return e.stop()}}),e)})),m.s();case 47:if((A=m.n()).done){e.next=54;break}return e.delegateYield(v(),"t0",49);case 49:if(f=e.t0,"continue"!==f){e.next=52;break}return e.abrupt("continue",52);case 52:e.next=47;break;case 54:e.next=59;break;case 56:e.prev=56,e.t1=e["catch"](44),m.e(e.t1);case 59:return e.prev=59,m.f(),e.finish(59);case 62:case"end":return e.stop()}}),e,null,[[44,56,59,62]])})),A.s();case 28:if((h=A.n()).done){e.next=35;break}return e.delegateYield(v(),"t4",30);case 30:if(f=e.t4,"continue"!==f){e.next=33;break}return e.abrupt("continue",33);case 33:e.next=28;break;case 35:e.next=40;break;case 37:e.prev=37,e.t5=e["catch"](25),A.e(e.t5);case 40:return e.prev=40,A.f(),e.finish(40);case 43:e.next=21;break;case 45:e.next=5;break;case 47:return Qt().s[91]++,e.abrupt("return",i);case 49:case"end":return e.stop()}}),e,null,[[25,37,40,43]])})));return function(n){return e.apply(this,arguments)}}())),Qt().f[1]++,Qt().s[6]++,this.api=new U.k,Qt().s[7]++,this.targets={},Qt().s[8]++,this.api.get_target_list().then((function(e){Qt().f[2]++,Qt().s[9]++,e.forEach((function(e){Qt().f[3]++,Qt().s[10]++,n.targets[e]={cmd:null,tlm:null}}))})),Qt().s[11]++,this.cmdKeywordExpressions=[],Qt().s[12]++,Wt("cmd").then((function(e){Qt().f[4]++,Qt().s[13]++,n.cmdKeywordExpressions=e.data.map(ei)})),Qt().s[14]++,this.tlmKeywordExpressions=[],Qt().s[15]++,Wt("tlm").then((function(e){Qt().f[5]++,Qt().s[16]++,n.tlmKeywordExpressions=e.data.map(ei)}))}));function li(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",n="239637faebd5a12da0d2967088a12522b53174c2",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"239637faebd5a12da0d2967088a12522b53174c2"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return li=function(){return o},o}li();var si=t(22124),oi=t(72645),ai=t(82842);t(52356);function ri(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",n="ebd29b6b4771be71b0b3e8465d6a5e919396ec6e",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",statementMap:{0:{start:{line:31,column:4},end:{line:31,column:71}},1:{start:{line:32,column:4},end:{line:32,column:25}},2:{start:{line:33,column:4},end:{line:33,column:27}},3:{start:{line:34,column:4},end:{line:34,column:21}},4:{start:{line:35,column:4},end:{line:35,column:21}},5:{start:{line:39,column:12},end:{line:49,column:3}},6:{start:{line:40,column:20},end:{line:40,column:40}},7:{start:{line:41,column:4},end:{line:41,column:39}},8:{start:{line:42,column:18},end:{line:47,column:5}},9:{start:{line:48,column:4},end:{line:48,column:33}},10:{start:{line:52,column:13},end:{line:87,column:3}},11:{start:{line:53,column:4},end:{line:71,column:5}},12:{start:{line:55,column:6},end:{line:70,column:7}},13:{start:{line:57,column:10},end:{line:61,column:11}},14:{start:{line:62,column:10},end:{line:62,column:15}},15:{start:{line:64,column:10},end:{line:68,column:11}},16:{start:{line:69,column:10},end:{line:69,column:15}},17:{start:{line:72,column:4},end:{line:86,column:5}},18:{start:{line:72,column:19},end:{line:72,column:35}},19:{start:{line:73,column:19},end:{line:73,column:71}},20:{start:{line:74,column:6},end:{line:85,column:7}},21:{start:{line:75,column:8},end:{line:75,column:37}},22:{start:{line:76,column:8},end:{line:82,column:10}},23:{start:{line:83,column:13},end:{line:85,column:7}},24:{start:{line:84,column:8},end:{line:84,column:51}},25:{start:{line:89,column:19},end:{line:92,column:3}},26:{start:{line:90,column:4},end:{line:90,column:61}},27:{start:{line:91,column:4},end:{line:91,column:72}},28:{start:{line:94,column:29},end:{line:103,column:3}},29:{start:{line:95,column:4},end:{line:102,column:5}},30:{start:{line:100,column:12},end:{line:100,column:70}},31:{start:{line:105,column:22},end:{line:114,column:3}},32:{start:{line:106,column:4},end:{line:113,column:5}},33:{start:{line:108,column:8},end:{line:110,column:9}},34:{start:{line:109,column:10},end:{line:109,column:33}},35:{start:{line:111,column:8},end:{line:111,column:25}},36:{start:{line:116,column:26},end:{line:122,column:3}},37:{start:{line:117,column:4},end:{line:121,column:5}},38:{start:{line:120,column:32},end:{line:120,column:64}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:47},end:{line:36,column:3}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:39,column:12},end:{line:39,column:13}},loc:{start:{line:39,column:18},end:{line:49,column:3}},line:39},2:{name:"(anonymous_2)",decl:{start:{line:52,column:13},end:{line:52,column:14}},loc:{start:{line:52,column:34},end:{line:87,column:3}},line:52},3:{name:"(anonymous_3)",decl:{start:{line:89,column:19},end:{line:89,column:20}},loc:{start:{line:89,column:47},end:{line:92,column:3}},line:89},4:{name:"(anonymous_4)",decl:{start:{line:94,column:29},end:{line:94,column:30}},loc:{start:{line:94,column:47},end:{line:103,column:3}},line:94},5:{name:"(anonymous_5)",decl:{start:{line:99,column:10},end:{line:99,column:11}},loc:{start:{line:100,column:12},end:{line:100,column:70}},line:100},6:{name:"(anonymous_6)",decl:{start:{line:105,column:22},end:{line:105,column:23}},loc:{start:{line:105,column:47},end:{line:114,column:3}},line:105},7:{name:"(anonymous_7)",decl:{start:{line:107,column:35},end:{line:107,column:36}},loc:{start:{line:107,column:51},end:{line:112,column:7}},line:107},8:{name:"(anonymous_8)",decl:{start:{line:116,column:26},end:{line:116,column:27}},loc:{start:{line:116,column:39},end:{line:122,column:3}},line:116},9:{name:"(anonymous_9)",decl:{start:{line:120,column:16},end:{line:120,column:17}},loc:{start:{line:120,column:32},end:{line:120,column:64}},line:120}},branchMap:{0:{loc:{start:{line:53,column:4},end:{line:71,column:5}},type:"if",locations:[{start:{line:53,column:4},end:{line:71,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:53},1:{loc:{start:{line:55,column:6},end:{line:70,column:7}},type:"switch",locations:[{start:{line:56,column:8},end:{line:62,column:15}},{start:{line:63,column:8},end:{line:69,column:15}}],line:55},2:{loc:{start:{line:74,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:74,column:6},end:{line:85,column:7}},{start:{line:83,column:13},end:{line:85,column:7}}],line:74},3:{loc:{start:{line:75,column:8},end:{line:75,column:37}},type:"binary-expr",locations:[{start:{line:75,column:8},end:{line:75,column:20}},{start:{line:75,column:25},end:{line:75,column:36}}],line:75},4:{loc:{start:{line:83,column:13},end:{line:85,column:7}},type:"if",locations:[{start:{line:83,column:13},end:{line:85,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:83},5:{loc:{start:{line:100,column:12},end:{line:100,column:70}},type:"binary-expr",locations:[{start:{line:100,column:12},end:{line:100,column:44}},{start:{line:100,column:48},end:{line:100,column:70}}],line:100},6:{loc:{start:{line:108,column:8},end:{line:110,column:9}},type:"if",locations:[{start:{line:108,column:8},end:{line:110,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ebd29b6b4771be71b0b3e8465d6a5e919396ec6e"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ri=function(){return o},o}ri();var ci=new WeakMap,ui=new WeakMap,di=new WeakMap,mi=new WeakMap,pi=new WeakMap,Ai=new WeakMap,hi=new WeakMap,vi=new WeakMap,fi=new WeakMap,gi=(0,St.Z)((function e(n,t){var i=this,l=t.pattern,s=t.text,o=t.type;(0,Mt.Z)(this,e),(0,si.Z)(this,ci,{writable:!0,value:void 0}),(0,si.Z)(this,ui,{writable:!0,value:void 0}),(0,si.Z)(this,di,{writable:!0,value:void 0}),(0,si.Z)(this,mi,{writable:!0,value:void 0}),(0,si.Z)(this,pi,{writable:!0,value:void 0}),(0,Et.Z)(this,"refresh",(ri().s[5]++,function(){ri().f[1]++;var e=(ri().s[6]++,(0,oi.Z)(i,ui).session);ri().s[7]++,(0,oi.Z)(i,fi).call(i,e);var n=(ri().s[8]++,{lines:e.doc.$lines,action:"insert",start:{row:0},end:{row:e.doc.$lines.length}});ri().s[9]++,i.annotate(n,e)})),(0,Et.Z)(this,"annotate",(ri().s[10]++,function(e,n){if(ri().f[2]++,ri().s[11]++,e.lines.length>1)switch(ri().b[0][0]++,ri().s[12]++,e.action){case"insert":ri().b[1][0]++,ri().s[13]++,(0,oi.Z)(i,vi).call(i,n,e.start.row,e.lines.length-1),ri().s[14]++;break;case"remove":ri().b[1][1]++,ri().s[15]++,(0,oi.Z)(i,vi).call(i,n,e.start.row+1,1-e.lines.length),ri().s[16]++;break}else ri().b[0][1]++;ri().s[17]++;for(var t=(ri().s[18]++,e.start.row);t<=e.end.row;t++){var l,s,o=(ri().s[19]++,null===(l=n.doc.$lines[t])||void 0===l||null===(s=l.match((0,oi.Z)(i,di)))||void 0===s?void 0:s.index);ri().s[20]++,void 0!==o?(ri().b[2][0]++,ri().s[21]++,ri().b[3][0]++,0!==o&&(ri().b[3][1]++,o+=1),ri().s[22]++,(0,oi.Z)(i,Ai).call(i,n,{row:t,column:o,text:(0,oi.Z)(i,mi),type:(0,oi.Z)(i,pi),openc3Id:(0,oi.Z)(i,ci)})):(ri().b[2][1]++,ri().s[23]++,"remove"===e.action?(ri().b[4][0]++,ri().s[24]++,(0,oi.Z)(i,hi).call(i,n,t)):ri().b[4][1]++)}})),(0,si.Z)(this,Ai,{writable:!0,value:(ri().s[25]++,function(e,n){ri().f[3]++,ri().s[26]++,(0,oi.Z)(i,hi).call(i,e,n.row),ri().s[27]++,e.setAnnotations([].concat((0,u.Z)(e.getAnnotations()),[n]))})}),(0,si.Z)(this,hi,{writable:!0,value:(ri().s[28]++,function(e,n){ri().f[4]++,ri().s[29]++,e.setAnnotations(e.getAnnotations().filter((function(e){return ri().f[5]++,ri().s[30]++,ri().b[5][0]++,e.openc3Id!==(0,oi.Z)(i,ci)||(ri().b[5][1]++,e.row!==n)})))})}),(0,si.Z)(this,vi,{writable:!0,value:(ri().s[31]++,function(e,n,t){ri().f[6]++,ri().s[32]++,e.setAnnotations(e.getAnnotations().map((function(e){return ri().f[7]++,ri().s[33]++,e.row>n?(ri().b[6][0]++,ri().s[34]++,e.row+=t):ri().b[6][1]++,ri().s[35]++,e})))})}),(0,si.Z)(this,fi,{writable:!0,value:(ri().s[36]++,function(e){ri().f[8]++,ri().s[37]++,e.setAnnotations(e.getAnnotations().filter((function(e){return ri().f[9]++,ri().s[38]++,e.openc3Id!==(0,oi.Z)(i,ci)})))})}),ri().f[0]++,ri().s[0]++,(0,ai.Z)(this,ci,"regexAnnotator-".concat(Math.floor(1e7*Math.random()))),ri().s[1]++,(0,ai.Z)(this,ui,n),ri().s[2]++,(0,ai.Z)(this,di,l),ri().s[3]++,(0,ai.Z)(this,mi,s),ri().s[4]++,(0,ai.Z)(this,pi,o)}));function bi(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",n="744a728c29aa11b26e0fea7ead3a653b74f7c776",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",statementMap:{0:{start:{line:27,column:19},end:{line:27,column:31}},1:{start:{line:28,column:20},end:{line:28,column:27}},2:{start:{line:29,column:19},end:{line:29,column:29}},3:{start:{line:30,column:4},end:{line:34,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:22},end:{line:35,column:3}},line:26}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"744a728c29aa11b26e0fea7ead3a653b74f7c776"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return bi=function(){return o},o}bi();var Ci=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(e){(0,Mt.Z)(this,t),bi().f[0]++;var i=(bi().s[0]++,"(^|[{\\s])"),l=(bi().s[1]++,"sleep"),s=(bi().s[2]++,"[\\(\\s]");return bi().s[3]++,n.call(this,e,{pattern:new RegExp("".concat(i).concat(l).concat(s)),text:"Use `wait` instead of `sleep` in OpenC3 scripts",type:"warning"})}return(0,St.Z)(t)}(gi);function _i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",n="5703e005e4cf95b0f782738f96d4e334260835ac",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5703e005e4cf95b0f782738f96d4e334260835ac"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return _i=function(){return o},o}function yi(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="a59f1f24ce9680267a5ba92c6c7281425dc7dae1",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:609}},4:{start:{line:1,column:667},end:{line:1,column:688}},5:{start:{line:4,column:71},end:{line:4,column:381}},6:{start:{line:4,column:146},end:{line:4,column:176}},7:{start:{line:4,column:423},end:{line:4,column:635}},8:{start:{line:4,column:498},end:{line:4,column:525}},9:{start:{line:4,column:679},end:{line:4,column:896}},10:{start:{line:4,column:754},end:{line:4,column:783}},11:{start:{line:4,column:1434},end:{line:4,column:1457}},12:{start:{line:7,column:74},end:{line:7,column:591}},13:{start:{line:7,column:249},end:{line:7,column:283}},14:{start:{line:7,column:334},end:{line:7,column:376}},15:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:651},end:{line:1,column:652}},loc:{start:{line:1,column:666},end:{line:1,column:689}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:4,column:52},end:{line:4,column:53}},loc:{start:{line:4,column:70},end:{line:4,column:382}},line:4},3:{name:"(anonymous_3)",decl:{start:{line:4,column:129},end:{line:4,column:130}},loc:{start:{line:4,column:145},end:{line:4,column:177}},line:4},4:{name:"(anonymous_4)",decl:{start:{line:4,column:404},end:{line:4,column:405}},loc:{start:{line:4,column:422},end:{line:4,column:636}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:481},end:{line:4,column:482}},loc:{start:{line:4,column:497},end:{line:4,column:526}},line:4},6:{name:"(anonymous_6)",decl:{start:{line:4,column:660},end:{line:4,column:661}},loc:{start:{line:4,column:678},end:{line:4,column:897}},line:4},7:{name:"(anonymous_7)",decl:{start:{line:4,column:737},end:{line:4,column:738}},loc:{start:{line:4,column:753},end:{line:4,column:784}},line:4},8:{name:"(anonymous_8)",decl:{start:{line:4,column:1418},end:{line:4,column:1419}},loc:{start:{line:4,column:1433},end:{line:4,column:1458}},line:4},9:{name:"(anonymous_9)",decl:{start:{line:7,column:55},end:{line:7,column:56}},loc:{start:{line:7,column:73},end:{line:7,column:592}},line:7},10:{name:"(anonymous_10)",decl:{start:{line:7,column:232},end:{line:7,column:233}},loc:{start:{line:7,column:248},end:{line:7,column:284}},line:7},11:{name:"(anonymous_11)",decl:{start:{line:7,column:323},end:{line:7,column:324}},loc:{start:{line:7,column:333},end:{line:7,column:377}},line:7}},branchMap:{0:{loc:{start:{line:7,column:159},end:{line:7,column:218}},type:"binary-expr",locations:[{start:{line:7,column:159},end:{line:7,column:177}},{start:{line:7,column:181},end:{line:7,column:218}}],line:7},1:{loc:{start:{line:7,column:404},end:{line:7,column:512}},type:"cond-expr",locations:[{start:{line:7,column:442},end:{line:7,column:478}},{start:{line:7,column:479},end:{line:7,column:512}}],line:7}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a59f1f24ce9680267a5ba92c6c7281425dc7dae1"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return yi=function(){return o},o}_i(),yi(),yi().s[0]++;var wi=function(){yi().f[0]++;var e=(yi().s[1]++,this),n=(yi().s[2]++,e._self._c);return yi().s[3]++,n("div",[n("v-card",{attrs:{flat:""}},[n("v-card-text",{staticClass:"overflow-y-auto",attrs:{"max-height":"400"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"v-card__title col-2"},[e._v("Running Scripts")]),n("div",{staticClass:"col-2"},[n("v-btn",{attrs:{color:"primary"},on:{click:e.getRunningScripts}},[e._v("Refresh")])],1),n("div",{staticClass:"col-8"},[n("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":"","data-test":"running-search"},model:{value:e.runningSearch,callback:function(n){yi().f[1]++,yi().s[4]++,e.runningSearch=n},expression:"runningSearch"}})],1)])]),n("v-data-table",{attrs:{headers:e.runningHeaders,items:e.runningScripts,search:e.runningSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start_time","sort-desc":"","data-test":"running-scripts","footer-props":{itemsPerPageOptions:[3],showFirstLastPage:!0}},scopedSlots:e._u([{key:"item.connect",fn:function(t){var i=t.item;return yi().f[2]++,yi().s[5]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[3]++,yi().s[6]++,e.connectScript(i)}}},[n("span",[e._v("Connect")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.connectInNewTab,expression:"connectInNewTab"}],attrs:{right:""}},[e._v(" mdi-open-in-new ")])],1)]}},{key:"item.stop",fn:function(t){var i=t.item;return yi().f[4]++,yi().s[7]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[5]++,yi().s[8]++,e.stopScript(i)}}},[n("span",[e._v("Stop")]),n("v-icon",{attrs:{right:""}},[e._v(" mdi-close-circle-outline ")])],1)]}},{key:"item.delete",fn:function(t){var i=t.item;return yi().f[6]++,yi().s[9]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[7]++,yi().s[10]++,e.deleteScript(i)}}},[n("span",[e._v("Delete")]),n("v-icon",{attrs:{right:""}},[e._v(" mdi-alert-octagon-outline ")])],1)]}}])})],1),n("v-card",{staticClass:"mt-3",attrs:{flat:""}},[n("v-card-text",[n("div",{staticClass:"row"},[n("div",{staticClass:"v-card__title col-2"},[e._v("Completed Scripts")]),n("div",{staticClass:"col-2"},[n("v-btn",{attrs:{color:"primary"},on:{click:e.getCompletedScripts}},[e._v("Refresh")])],1),n("div",{staticClass:"col-8"},[n("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.completedSearch,callback:function(n){yi().f[8]++,yi().s[11]++,e.completedSearch=n},expression:"completedSearch"}})],1)])]),n("v-container",{staticClass:"overflow-y-auto",staticStyle:{"max-height":"400px",padding:"0px",margin:"0px"}},[n("v-data-table",{attrs:{headers:e.completedHeaders,items:e.completedScripts,search:e.completedSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start","sort-desc":"","data-test":"completed-scripts","footer-props":{itemsPerPageOptions:[5],showFirstLastPage:!0}},scopedSlots:e._u([{key:"item.download",fn:function(t){var i=t.item;return yi().f[9]++,yi().s[12]++,[n("v-btn",{attrs:{color:"primary",disabled:e.downloadScript,loading:(yi().b[0][0]++,e.downloadScript&&(yi().b[0][1]++,e.downloadScript.name===i.name))},on:{click:function(n){return yi().f[10]++,yi().s[13]++,e.downloadScriptLog(i)}},scopedSlots:e._u([{key:"loader",fn:function(){return yi().f[11]++,yi().s[14]++,[n("span",[e._v("Loading...")])]},proxy:!0}],null,!0)},[i.name.includes("Script Report")?(yi().b[1][0]++,n("span",[e._v("Script Report")])):(yi().b[1][1]++,n("span",[e._v("Script Log")])),n("v-icon",{attrs:{right:""}},[e._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)],1)},xi=(yi().s[15]++,[]);function ki(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="d800ae370cd2f118479305ed2e0fc536992cea80",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:11,column:4},end:{line:50,column:5}},1:{start:{line:53,column:4},end:{line:53,column:28}},2:{start:{line:54,column:4},end:{line:54,column:30}},3:{start:{line:58,column:6},end:{line:60,column:8}},4:{start:{line:59,column:8},end:{line:59,column:43}},5:{start:{line:64,column:6},end:{line:66,column:8}},6:{start:{line:65,column:8},end:{line:65,column:45}},7:{start:{line:69,column:26},end:{line:72,column:7}},8:{start:{line:73,column:6},end:{line:79,column:7}},9:{start:{line:74,column:23},end:{line:74,column:56}},10:{start:{line:75,column:8},end:{line:75,column:35}},11:{start:{line:77,column:8},end:{line:77,column:38}},12:{start:{line:78,column:8},end:{line:78,column:27}},13:{start:{line:82,column:6},end:{line:105,column:10}},14:{start:{line:91,column:10},end:{line:91,column:73}},15:{start:{line:94,column:10},end:{line:96,column:12}},16:{start:{line:97,column:10},end:{line:97,column:34}},17:{start:{line:100,column:10},end:{line:104,column:11}},18:{start:{line:101,column:12},end:{line:103,column:14}},19:{start:{line:108,column:6},end:{line:132,column:10}},20:{start:{line:118,column:10},end:{line:118,column:75}},21:{start:{line:121,column:10},end:{line:123,column:12}},22:{start:{line:124,column:10},end:{line:124,column:34}},23:{start:{line:127,column:10},end:{line:131,column:11}},24:{start:{line:128,column:12},end:{line:130,column:14}},25:{start:{line:135,column:6},end:{line:135,column:34}},26:{start:{line:136,column:6},end:{line:156,column:10}},27:{start:{line:142,column:32},end:{line:142,column:53}},28:{start:{line:143,column:27},end:{line:143,column:66}},29:{start:{line:145,column:23},end:{line:145,column:50}},30:{start:{line:146,column:10},end:{line:146,column:39}},31:{start:{line:147,column:10},end:{line:147,column:49}},32:{start:{line:148,column:10},end:{line:148,column:22}},33:{start:{line:149,column:10},end:{line:149,column:36}},34:{start:{line:152,column:10},end:{line:155,column:12}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:51,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:52,column:2},end:{line:52,column:3}},loc:{start:{line:52,column:12},end:{line:55,column:3}},line:52},2:{name:"(anonymous_2)",decl:{start:{line:57,column:23},end:{line:57,column:24}},loc:{start:{line:57,column:35},end:{line:61,column:5}},line:57},3:{name:"(anonymous_3)",decl:{start:{line:58,column:49},end:{line:58,column:50}},loc:{start:{line:58,column:63},end:{line:60,column:7}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:62,column:25},end:{line:62,column:26}},loc:{start:{line:62,column:37},end:{line:67,column:5}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:64,column:52},end:{line:64,column:53}},loc:{start:{line:64,column:66},end:{line:66,column:7}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:68,column:19},end:{line:68,column:20}},loc:{start:{line:68,column:37},end:{line:80,column:5}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:81,column:16},end:{line:81,column:17}},loc:{start:{line:81,column:34},end:{line:106,column:5}},line:81},8:{name:"(anonymous_8)",decl:{start:{line:90,column:14},end:{line:90,column:15}},loc:{start:{line:90,column:26},end:{line:92,column:9}},line:90},9:{name:"(anonymous_9)",decl:{start:{line:93,column:14},end:{line:93,column:15}},loc:{start:{line:93,column:28},end:{line:98,column:9}},line:93},10:{name:"(anonymous_10)",decl:{start:{line:99,column:15},end:{line:99,column:16}},loc:{start:{line:99,column:26},end:{line:105,column:9}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:107,column:18},end:{line:107,column:19}},loc:{start:{line:107,column:36},end:{line:133,column:5}},line:107},12:{name:"(anonymous_12)",decl:{start:{line:117,column:14},end:{line:117,column:15}},loc:{start:{line:117,column:26},end:{line:119,column:9}},line:117},13:{name:"(anonymous_13)",decl:{start:{line:120,column:14},end:{line:120,column:15}},loc:{start:{line:120,column:28},end:{line:125,column:9}},line:120},14:{name:"(anonymous_14)",decl:{start:{line:126,column:15},end:{line:126,column:16}},loc:{start:{line:126,column:26},end:{line:132,column:9}},line:126},15:{name:"(anonymous_15)",decl:{start:{line:134,column:23},end:{line:134,column:24}},loc:{start:{line:134,column:41},end:{line:157,column:5}},line:134},16:{name:"(anonymous_16)",decl:{start:{line:141,column:14},end:{line:141,column:15}},loc:{start:{line:141,column:28},end:{line:150,column:9}},line:141},17:{name:"(anonymous_17)",decl:{start:{line:151,column:15},end:{line:151,column:16}},loc:{start:{line:151,column:21},end:{line:156,column:9}},line:151}},branchMap:{0:{loc:{start:{line:73,column:6},end:{line:79,column:7}},type:"if",locations:[{start:{line:73,column:6},end:{line:79,column:7}},{start:{line:76,column:13},end:{line:79,column:7}}],line:73},1:{loc:{start:{line:100,column:10},end:{line:104,column:11}},type:"if",locations:[{start:{line:100,column:10},end:{line:104,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:100},2:{loc:{start:{line:127,column:10},end:{line:131,column:11}},type:"if",locations:[{start:{line:127,column:10},end:{line:131,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:127}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["RunningScripts.vue"],names:[],mappings:";AA8IA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"RunningScripts.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card flat>\n <v-card-text class="overflow-y-auto" max-height="400">\n <div class="row">\n <div class="v-card__title col-2">Running Scripts</div>\n <div class="col-2">\n <v-btn color="primary" @click="getRunningScripts">Refresh</v-btn>\n </div>\n <div class="col-8">\n <v-text-field\n v-model="runningSearch"\n class="pt-0"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n data-test="running-search"\n />\n </div>\n </div>\n </v-card-text>\n <v-data-table\n :headers="runningHeaders"\n :items="runningScripts"\n :search="runningSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start_time"\n sort-desc\n data-test="running-scripts"\n :footer-props="{\n itemsPerPageOptions: [3],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.connect="{ item }">\n <v-btn color="primary" @click="connectScript(item)">\n <span>Connect</span>\n <v-icon right v-show="connectInNewTab"> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.stop="{ item }">\n <v-btn color="primary" @click="stopScript(item)">\n <span>Stop</span>\n <v-icon right> mdi-close-circle-outline </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.delete="{ item }">\n <v-btn color="primary" @click="deleteScript(item)">\n <span>Delete</span>\n <v-icon right> mdi-alert-octagon-outline </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n <v-card class="mt-3" flat>\n <v-card-text>\n <div class="row">\n <div class="v-card__title col-2">Completed Scripts</div>\n <div class="col-2">\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n </div>\n <div class="col-8">\n <v-text-field\n v-model="completedSearch"\n class="pt-0"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </div>\n </div>\n </v-card-text>\n <v-container\n style="max-height: 400px; padding: 0px; margin: 0px"\n class="overflow-y-auto"\n >\n \x3c!-- TODO: This probably needs to be paginated --\x3e\n <v-data-table\n :headers="completedHeaders"\n :items="completedScripts"\n :search="completedSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start"\n sort-desc\n data-test="completed-scripts"\n :footer-props="{\n itemsPerPageOptions: [5],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.download="{ item }">\n <v-btn\n color="primary"\n :disabled="downloadScript"\n :loading="downloadScript && downloadScript.name === item.name"\n @click="downloadScriptLog(item)"\n >\n <span v-if="item.name.includes(\'Script Report\')"\n >Script Report</span\n >\n <span v-else>Script Log</span>\n <v-icon right> mdi-file-download-outline </v-icon>\n <template v-slot:loader>\n <span>Loading...</span>\n </template>\n </v-btn>\n </template>\n </v-data-table>\n </v-container>\n </v-card>\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\n\nexport default {\n props: {\n tabId: Number,\n curTab: Number,\n connectInNewTab: Boolean,\n },\n data() {\n return {\n downloadScript: null,\n runningSearch: \'\',\n runningScripts: [],\n runningHeaders: [\n {\n text: \'Connect\',\n value: \'connect\',\n sortable: false,\n filterable: false,\n },\n { text: \'Id\', value: \'id\' },\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start_time\' },\n {\n text: \'Stop\',\n value: \'stop\',\n sortable: false,\n filterable: false,\n },\n {\n text: \'Force Quit\',\n value: \'delete\',\n sortable: false,\n filterable: false,\n },\n ],\n completedSearch: \'\',\n completedScripts: [],\n completedHeaders: [\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start\' },\n {\n text: \'Download\',\n value: \'download\',\n sortable: false,\n filterable: false,\n },\n ],\n }\n },\n created() {\n this.getRunningScripts()\n this.getCompletedScripts()\n },\n methods: {\n getRunningScripts: function () {\n Api.get(\'/script-api/running-script\').then((response) => {\n this.runningScripts = response.data\n })\n },\n getCompletedScripts: function () {\n // TODO: Support pagination because you could have a lot of completed scripts\n Api.get(\'/script-api/completed-scripts\').then((response) => {\n this.completedScripts = response.data\n })\n },\n connectScript: function (script) {\n const destination = {\n name: \'ScriptRunner\',\n params: { id: script.id },\n }\n if (this.connectInNewTab) {\n let { href } = this.$router.resolve(destination)\n window.open(href, \'_blank\')\n } else {\n this.$router.push(destination)\n this.$emit(\'close\')\n }\n },\n stopScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to stop script: ${script.id} ${script.name}?`,\n {\n okText: \'Stop\',\n cancelText: \'Cancel\',\n }\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/stop`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n deleteScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to force quit script: ${script.id} ${script.name}?\\n` +\n \'Did you try to stop the script first to allow the script to stop gracefully?\',\n {\n okText: \'Force Quit\',\n cancelText: \'Cancel\',\n }\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/delete`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n downloadScriptLog: function (script) {\n this.downloadScript = script\n Api.get(\n `/openc3-api/storage/download/${encodeURIComponent(\n script.log\n )}?bucket=OPENC3_LOGS_BUCKET`\n )\n .then((response) => {\n const filenameParts = script.log.split(\'/\')\n const basename = filenameParts[filenameParts.length - 1]\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = response.data.url\n link.setAttribute(\'download\', basename)\n link.click()\n this.downloadScript = null\n })\n .catch(() => {\n this.$notify.caution({\n title: `Unable to download log for ${script.name}`,\n body: `You may be able to download this log manually from the \'logs\' bucket at ${script.log}`,\n })\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d800ae370cd2f118479305ed2e0fc536992cea80"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ki=function(){return o},o}ki();var Si={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data:function(){return ki().f[0]++,ki().s[0]++,{downloadScript:null,runningSearch:"",runningScripts:[],runningHeaders:[{text:"Connect",value:"connect",sortable:!1,filterable:!1},{text:"Id",value:"id"},{text:"Name",value:"name"},{text:"Start Time",value:"start_time"},{text:"Stop",value:"stop",sortable:!1,filterable:!1},{text:"Force Quit",value:"delete",sortable:!1,filterable:!1}],completedSearch:"",completedScripts:[],completedHeaders:[{text:"Name",value:"name"},{text:"Start Time",value:"start"},{text:"Download",value:"download",sortable:!1,filterable:!1}]}},created:function(){ki().f[1]++,ki().s[1]++,this.getRunningScripts(),ki().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){var e=this;ki().f[2]++,ki().s[3]++,A.Z.get("/script-api/running-script").then((function(n){ki().f[3]++,ki().s[4]++,e.runningScripts=n.data}))},getCompletedScripts:function(){var e=this;ki().f[4]++,ki().s[5]++,A.Z.get("/script-api/completed-scripts").then((function(n){ki().f[5]++,ki().s[6]++,e.completedScripts=n.data}))},connectScript:function(e){ki().f[6]++;var n=(ki().s[7]++,{name:"ScriptRunner",params:{id:e.id}});if(ki().s[8]++,this.connectInNewTab){ki().b[0][0]++;var t=(ki().s[9]++,this.$router.resolve(n)),i=t.href;ki().s[10]++,window.open(i,"_blank")}else ki().b[0][1]++,ki().s[11]++,this.$router.push(n),ki().s[12]++,this.$emit("close")},stopScript:function(e){var n=this;ki().f[7]++,ki().s[13]++,this.$dialog.confirm("Are you sure you want to stop script: ".concat(e.id," ").concat(e.name,"?"),{okText:"Stop",cancelText:"Cancel"}).then((function(n){return ki().f[8]++,ki().s[14]++,A.Z.post("/script-api/running-script/".concat(e.id,"/stop"))})).then((function(t){ki().f[9]++,ki().s[15]++,n.$notify.normal({body:"Stopped script: ".concat(e.id," ").concat(e.name)}),ki().s[16]++,n.getRunningScripts()})).catch((function(t){ki().f[10]++,ki().s[17]++,t?(ki().b[1][0]++,ki().s[18]++,n.$notify.caution({body:"Failed to stop script: ".concat(e.id," ").concat(e.name)})):ki().b[1][1]++}))},deleteScript:function(e){var n=this;ki().f[11]++,ki().s[19]++,this.$dialog.confirm("Are you sure you want to force quit script: ".concat(e.id," ").concat(e.name,"?\n")+"Did you try to stop the script first to allow the script to stop gracefully?",{okText:"Force Quit",cancelText:"Cancel"}).then((function(n){return ki().f[12]++,ki().s[20]++,A.Z.post("/script-api/running-script/".concat(e.id,"/delete"))})).then((function(t){ki().f[13]++,ki().s[21]++,n.$notify.normal({body:"Stopped script: ".concat(e.id," ").concat(e.name)}),ki().s[22]++,n.getRunningScripts()})).catch((function(t){ki().f[14]++,ki().s[23]++,t?(ki().b[2][0]++,ki().s[24]++,n.$notify.caution({body:"Failed to stop script: ".concat(e.id," ").concat(e.name)})):ki().b[2][1]++}))},downloadScriptLog:function(e){var n=this;ki().f[15]++,ki().s[25]++,this.downloadScript=e,ki().s[26]++,A.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent(e.log),"?bucket=OPENC3_LOGS_BUCKET")).then((function(t){ki().f[16]++;var i=(ki().s[27]++,e.log.split("/")),l=(ki().s[28]++,i[i.length-1]),s=(ki().s[29]++,document.createElement("a"));ki().s[30]++,s.href=t.data.url,ki().s[31]++,s.setAttribute("download",l),ki().s[32]++,s.click(),ki().s[33]++,n.downloadScript=null})).catch((function(){ki().f[17]++,ki().s[34]++,n.$notify.caution({title:"Unable to download log for ".concat(e.name),body:"You may be able to download this log manually from the 'logs' bucket at ".concat(e.log)})}))}}},Mi=Si,Ei=(0,y.Z)(Mi,wi,xi,!1,null,null,null),Ti=Ei.exports;function Di(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="939f20182ee7a8af7e5ca46c1d737aa2e7d0ea34",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:38,column:20},end:{line:38,column:30}},1:{start:{line:39,column:21},end:{line:39,column:33}},2:{start:{line:40,column:14},end:{line:40,column:21}},3:{start:{line:41,column:11},end:{line:41,column:15}},4:{start:{line:42,column:14},end:{line:42,column:21}},5:{start:{line:43,column:14},end:{line:43,column:21}},6:{start:{line:67,column:4},end:{line:180,column:5}},7:{start:{line:184,column:6},end:{line:188,column:7}},8:{start:{line:185,column:8},end:{line:185,column:20}},9:{start:{line:187,column:8},end:{line:187,column:19}},10:{start:{line:191,column:24},end:{line:191,column:47}},11:{start:{line:192,column:6},end:{line:192,column:39}},12:{start:{line:193,column:6},end:{line:193,column:36}},13:{start:{line:196,column:6},end:{line:198,column:32}},14:{start:{line:201,column:6},end:{line:201,column:67}},15:{start:{line:204,column:6},end:{line:204,column:28}},16:{start:{line:207,column:6},end:{line:207,column:59}},17:{start:{line:207,column:32},end:{line:207,column:59}},18:{start:{line:208,column:6},end:{line:208,column:59}},19:{start:{line:213,column:6},end:{line:213,column:64}},20:{start:{line:216,column:6},end:{line:410,column:7}},21:{start:{line:225,column:16},end:{line:225,column:30}},22:{start:{line:233,column:16},end:{line:233,column:35}},23:{start:{line:241,column:16},end:{line:241,column:31}},24:{start:{line:252,column:16},end:{line:252,column:31}},25:{start:{line:260,column:16},end:{line:260,column:29}},26:{start:{line:271,column:16},end:{line:271,column:31}},27:{start:{line:282,column:16},end:{line:282,column:29}},28:{start:{line:294,column:16},end:{line:294,column:47}},29:{start:{line:302,column:16},end:{line:302,column:50}},30:{start:{line:314,column:16},end:{line:314,column:39}},31:{start:{line:325,column:16},end:{line:325,column:60}},32:{start:{line:333,column:16},end:{line:333,column:54}},33:{start:{line:334,column:16},end:{line:334,column:35}},34:{start:{line:341,column:16},end:{line:341,column:41}},35:{start:{line:352,column:16},end:{line:352,column:38}},36:{start:{line:360,column:16},end:{line:360,column:37}},37:{start:{line:368,column:16},end:{line:368,column:39}},38:{start:{line:376,column:16},end:{line:376,column:36}},39:{start:{line:386,column:16},end:{line:386,column:34}},40:{start:{line:394,column:16},end:{line:394,column:39}},41:{start:{line:405,column:16},end:{line:405,column:43}},42:{start:{line:413,column:6},end:{line:426,column:7}},43:{start:{line:431,column:6},end:{line:431,column:34}},44:{start:{line:432,column:6},end:{line:434,column:7}},45:{start:{line:433,column:8},end:{line:433,column:36}},46:{start:{line:435,column:6},end:{line:435,column:34}},47:{start:{line:438,column:6},end:{line:438,column:36}},48:{start:{line:443,column:4},end:{line:443,column:30}},49:{start:{line:444,column:4},end:{line:444,column:36}},50:{start:{line:447,column:4},end:{line:447,column:36}},51:{start:{line:448,column:4},end:{line:448,column:43}},52:{start:{line:450,column:4},end:{line:452,column:6}},53:{start:{line:451,column:6},end:{line:451,column:41}},54:{start:{line:455,column:4},end:{line:455,column:45}},55:{start:{line:456,column:4},end:{line:456,column:46}},56:{start:{line:457,column:23},end:{line:457,column:45}},57:{start:{line:458,column:4},end:{line:458,column:49}},58:{start:{line:459,column:4},end:{line:459,column:37}},59:{start:{line:460,column:4},end:{line:460,column:44}},60:{start:{line:461,column:4},end:{line:461,column:42}},61:{start:{line:462,column:4},end:{line:462,column:60}},62:{start:{line:463,column:4},end:{line:463,column:59}},63:{start:{line:464,column:4},end:{line:464,column:69}},64:{start:{line:465,column:4},end:{line:465,column:45}},65:{start:{line:466,column:4},end:{line:466,column:23}},66:{start:{line:467,column:4},end:{line:467,column:60}},67:{start:{line:471,column:4},end:{line:471,column:60}},68:{start:{line:473,column:27},end:{line:473,column:58}},69:{start:{line:474,column:4},end:{line:477,column:6}},70:{start:{line:475,column:6},end:{line:475,column:46}},71:{start:{line:476,column:6},end:{line:476,column:45}},72:{start:{line:479,column:4},end:{line:479,column:52}},73:{start:{line:480,column:4},end:{line:480,column:47}},74:{start:{line:481,column:4},end:{line:481,column:58}},75:{start:{line:482,column:4},end:{line:491,column:13}},76:{start:{line:484,column:6},end:{line:490,column:7}},77:{start:{line:489,column:8},end:{line:489,column:35}},78:{start:{line:494,column:4},end:{line:494,column:25}},79:{start:{line:495,column:4},end:{line:495,column:34}},80:{start:{line:498,column:4},end:{line:498,column:21}},81:{start:{line:499,column:4},end:{line:501,column:5}},82:{start:{line:500,column:6},end:{line:500,column:42}},83:{start:{line:502,column:4},end:{line:504,column:5}},84:{start:{line:503,column:6},end:{line:503,column:37}},85:{start:{line:505,column:4},end:{line:505,column:27}},86:{start:{line:508,column:4},end:{line:512,column:5}},87:{start:{line:509,column:6},end:{line:509,column:56}},88:{start:{line:511,column:6},end:{line:511,column:12}},89:{start:{line:516,column:6},end:{line:530,column:8}},90:{start:{line:518,column:8},end:{line:528,column:10}},91:{start:{line:519,column:10},end:{line:527,column:11}},92:{start:{line:529,column:8},end:{line:529,column:38}},93:{start:{line:533,column:16},end:{line:533,column:42}},94:{start:{line:534,column:31},end:{line:536,column:26}},95:{start:{line:538,column:17},end:{line:540,column:36}},96:{start:{line:539,column:23},end:{line:539,column:42}},97:{start:{line:540,column:23},end:{line:540,column:35}},98:{start:{line:541,column:18},end:{line:541,column:63}},99:{start:{line:542,column:33},end:{line:551,column:7}},100:{start:{line:543,column:8},end:{line:543,column:37}},101:{start:{line:545,column:8},end:{line:550,column:9}},102:{start:{line:546,column:10},end:{line:549,column:12}},103:{start:{line:552,column:6},end:{line:552,column:60}},104:{start:{line:554,column:33},end:{line:556,column:28}},105:{start:{line:557,column:28},end:{line:559,column:23}},106:{start:{line:560,column:21},end:{line:560,column:66}},107:{start:{line:561,column:17},end:{line:567,column:7}},108:{start:{line:562,column:8},end:{line:562,column:50}},109:{start:{line:563,column:8},end:{line:563,column:50}},110:{start:{line:564,column:8},end:{line:564,column:47}},111:{start:{line:565,column:8},end:{line:565,column:42}},112:{start:{line:566,column:8},end:{line:566,column:62}},113:{start:{line:568,column:21},end:{line:568,column:54}},114:{start:{line:569,column:6},end:{line:570,column:7}},115:{start:{line:570,column:7},end:{line:572,column:29}},116:{start:{line:571,column:8},end:{line:571,column:36}},117:{start:{line:573,column:6},end:{line:573,column:17}},118:{start:{line:578,column:6},end:{line:578,column:39}},119:{start:{line:579,column:6},end:{line:579,column:56}},120:{start:{line:580,column:6},end:{line:580,column:39}},121:{start:{line:581,column:6},end:{line:581,column:34}},122:{start:{line:582,column:6},end:{line:582,column:29}},123:{start:{line:583,column:6},end:{line:592,column:7}},124:{start:{line:593,column:6},end:{line:593,column:55}},125:{start:{line:596,column:6},end:{line:617,column:8}},126:{start:{line:597,column:34},end:{line:599,column:9}},127:{start:{line:598,column:17},end:{line:598,column:38}},128:{start:{line:600,column:8},end:{line:616,column:9}},129:{start:{line:601,column:10},end:{line:601,column:48}},130:{start:{line:602,column:10},end:{line:602,column:30}},131:{start:{line:603,column:10},end:{line:603,column:48}},132:{start:{line:604,column:15},end:{line:616,column:9}},133:{start:{line:605,column:10},end:{line:608,column:12}},134:{start:{line:609,column:10},end:{line:609,column:33}},135:{start:{line:611,column:10},end:{line:615,column:11}},136:{start:{line:612,column:12},end:{line:612,column:38}},137:{start:{line:613,column:12},end:{line:613,column:81}},138:{start:{line:614,column:12},end:{line:614,column:33}},139:{start:{line:620,column:6},end:{line:632,column:8}},140:{start:{line:621,column:8},end:{line:625,column:9}},141:{start:{line:622,column:10},end:{line:622,column:39}},142:{start:{line:623,column:10},end:{line:623,column:33}},143:{start:{line:624,column:10},end:{line:624,column:58}},144:{start:{line:626,column:8},end:{line:629,column:9}},145:{start:{line:627,column:10},end:{line:627,column:47}},146:{start:{line:628,column:10},end:{line:628,column:36}},147:{start:{line:631,column:8},end:{line:631,column:65}},148:{start:{line:635,column:6},end:{line:635,column:31}},149:{start:{line:636,column:6},end:{line:636,column:31}},150:{start:{line:637,column:6},end:{line:637,column:38}},151:{start:{line:640,column:20},end:{line:640,column:55}},152:{start:{line:641,column:19},end:{line:643,column:19}},153:{start:{line:644,column:26},end:{line:646,column:34}},154:{start:{line:645,column:25},end:{line:645,column:37}},155:{start:{line:646,column:22},end:{line:646,column:33}},156:{start:{line:647,column:6},end:{line:647,column:41}},157:{start:{line:650,column:19},end:{line:650,column:48}},158:{start:{line:651,column:20},end:{line:651,column:51}},159:{start:{line:652,column:26},end:{line:654,column:44}},160:{start:{line:653,column:25},end:{line:653,column:71}},161:{start:{line:654,column:22},end:{line:654,column:43}},162:{start:{line:655,column:6},end:{line:655,column:41}},163:{start:{line:658,column:6},end:{line:691,column:7}},164:{start:{line:660,column:22},end:{line:660,column:38}},165:{start:{line:661,column:8},end:{line:664,column:9}},166:{start:{line:662,column:10},end:{line:662,column:34}},167:{start:{line:663,column:10},end:{line:663,column:45}},168:{start:{line:668,column:10},end:{line:671,column:20}},169:{start:{line:672,column:8},end:{line:690,column:12}},170:{start:{line:679,column:12},end:{line:686,column:13}},171:{start:{line:689,column:12},end:{line:689,column:63}},172:{start:{line:694,column:6},end:{line:694,column:44}},173:{start:{line:698,column:6},end:{line:705,column:7}},174:{start:{line:699,column:20},end:{line:699,column:52}},175:{start:{line:700,column:8},end:{line:704,column:9}},176:{start:{line:701,column:10},end:{line:701,column:52}},177:{start:{line:703,column:10},end:{line:703,column:50}},178:{start:{line:708,column:6},end:{line:710,column:7}},179:{start:{line:709,column:8},end:{line:709,column:14}},180:{start:{line:711,column:27},end:{line:715,column:7}},181:{start:{line:713,column:10},end:{line:714,column:32}},182:{start:{line:716,column:25},end:{line:716,column:27}},183:{start:{line:717,column:19},end:{line:717,column:20}},184:{start:{line:718,column:6},end:{line:729,column:7}},185:{start:{line:720,column:10},end:{line:720,column:42}},186:{start:{line:721,column:10},end:{line:721,column:32}},187:{start:{line:722,column:10},end:{line:722,column:15}},188:{start:{line:724,column:10},end:{line:724,column:43}},189:{start:{line:725,column:10},end:{line:727,column:11}},190:{start:{line:726,column:21},end:{line:726,column:43}},191:{start:{line:728,column:10},end:{line:728,column:15}},192:{start:{line:730,column:6},end:{line:735,column:8}},193:{start:{line:731,column:8},end:{line:731,column:36}},194:{start:{line:732,column:8},end:{line:734,column:9}},195:{start:{line:733,column:10},end:{line:733,column:45}},196:{start:{line:738,column:6},end:{line:741,column:33}},197:{start:{line:740,column:34},end:{line:740,column:51}},198:{start:{line:744,column:6},end:{line:744,column:29}},199:{start:{line:745,column:6},end:{line:747,column:8}},200:{start:{line:746,column:8},end:{line:746,column:53}},201:{start:{line:750,column:6},end:{line:760,column:10}},202:{start:{line:756,column:10},end:{line:756,column:65}},203:{start:{line:759,column:10},end:{line:759,column:33}},204:{start:{line:763,column:6},end:{line:767,column:7}},205:{start:{line:764,column:8},end:{line:764,column:40}},206:{start:{line:766,column:8},end:{line:766,column:37}},207:{start:{line:772,column:6},end:{line:785,column:7}},208:{start:{line:776,column:8},end:{line:776,column:30}},209:{start:{line:777,column:8},end:{line:777,column:29}},210:{start:{line:778,column:13},end:{line:785,column:7}},211:{start:{line:783,column:8},end:{line:783,column:30}},212:{start:{line:784,column:8},end:{line:784,column:21}},213:{start:{line:789,column:6},end:{line:791,column:7}},214:{start:{line:790,column:8},end:{line:790,column:14}},215:{start:{line:792,column:6},end:{line:796,column:7}},216:{start:{line:793,column:8},end:{line:793,column:31}},217:{start:{line:795,column:8},end:{line:795,column:30}},218:{start:{line:799,column:6},end:{line:817,column:10}},219:{start:{line:802,column:26},end:{line:802,column:28}},220:{start:{line:803,column:10},end:{line:808,column:11}},221:{start:{line:804,column:32},end:{line:806,column:28}},222:{start:{line:805,column:32},end:{line:805,column:73}},223:{start:{line:807,column:12},end:{line:807,column:107}},224:{start:{line:809,column:10},end:{line:812,column:11}},225:{start:{line:810,column:12},end:{line:811,column:86}},226:{start:{line:813,column:10},end:{line:815,column:11}},227:{start:{line:814,column:12},end:{line:814,column:65}},228:{start:{line:816,column:10},end:{line:816,column:62}},229:{start:{line:820,column:6},end:{line:820,column:37}},230:{start:{line:821,column:6},end:{line:821,column:35}},231:{start:{line:822,column:6},end:{line:822,column:29}},232:{start:{line:823,column:6},end:{line:823,column:38}},233:{start:{line:824,column:6},end:{line:824,column:30}},234:{start:{line:825,column:6},end:{line:825,column:34}},235:{start:{line:826,column:6},end:{line:826,column:31}},236:{start:{line:827,column:6},end:{line:827,column:24}},237:{start:{line:828,column:6},end:{line:828,column:35}},238:{start:{line:829,column:6},end:{line:842,column:10}},239:{start:{line:834,column:32},end:{line:834,column:51}},240:{start:{line:841,column:10},end:{line:841,column:42}},241:{start:{line:845,column:6},end:{line:845,column:38}},242:{start:{line:846,column:6},end:{line:846,column:34}},243:{start:{line:847,column:6},end:{line:847,column:37}},244:{start:{line:849,column:6},end:{line:849,column:47}},245:{start:{line:850,column:6},end:{line:850,column:30}},246:{start:{line:851,column:6},end:{line:851,column:38}},247:{start:{line:852,column:6},end:{line:852,column:30}},248:{start:{line:854,column:6},end:{line:854,column:28}},249:{start:{line:855,column:6},end:{line:855,column:24}},250:{start:{line:856,column:6},end:{line:856,column:26}},251:{start:{line:857,column:6},end:{line:857,column:33}},252:{start:{line:860,column:6},end:{line:860,column:50}},253:{start:{line:861,column:6},end:{line:861,column:36}},254:{start:{line:864,column:6},end:{line:864,column:40}},255:{start:{line:867,column:6},end:{line:867,column:18}},256:{start:{line:870,column:6},end:{line:870,column:34}},257:{start:{line:871,column:21},end:{line:871,column:34}},258:{start:{line:872,column:6},end:{line:875,column:7}},259:{start:{line:874,column:8},end:{line:874,column:36}},260:{start:{line:876,column:16},end:{line:876,column:53}},261:{start:{line:877,column:6},end:{line:879,column:7}},262:{start:{line:878,column:8},end:{line:878,column:28}},263:{start:{line:880,column:17},end:{line:882,column:7}},264:{start:{line:883,column:6},end:{line:885,column:7}},265:{start:{line:884,column:8},end:{line:884,column:35}},266:{start:{line:886,column:6},end:{line:888,column:8}},267:{start:{line:887,column:8},end:{line:887,column:39}},268:{start:{line:893,column:6},end:{line:893,column:48}},269:{start:{line:894,column:6},end:{line:894,column:48}},270:{start:{line:895,column:6},end:{line:895,column:64}},271:{start:{line:898,column:6},end:{line:903,column:7}},272:{start:{line:899,column:8},end:{line:899,column:69}},273:{start:{line:901,column:8},end:{line:901,column:39}},274:{start:{line:902,column:8},end:{line:902,column:69}},275:{start:{line:909,column:6},end:{line:914,column:7}},276:{start:{line:910,column:8},end:{line:910,column:31}},277:{start:{line:911,column:8},end:{line:911,column:29}},278:{start:{line:913,column:8},end:{line:913,column:68}},279:{start:{line:917,column:6},end:{line:917,column:66}},280:{start:{line:920,column:6},end:{line:920,column:29}},281:{start:{line:923,column:18},end:{line:923,column:19}},282:{start:{line:924,column:6},end:{line:1113,column:7}},283:{start:{line:926,column:10},end:{line:926,column:71}},284:{start:{line:927,column:10},end:{line:927,column:60}},285:{start:{line:928,column:10},end:{line:930,column:11}},286:{start:{line:929,column:12},end:{line:929,column:50}},287:{start:{line:931,column:10},end:{line:931,column:15}},288:{start:{line:933,column:10},end:{line:962,column:11}},289:{start:{line:934,column:12},end:{line:961,column:13}},290:{start:{line:937,column:14},end:{line:937,column:68}},291:{start:{line:940,column:14},end:{line:955,column:18}},292:{start:{line:944,column:18},end:{line:947,column:19}},293:{start:{line:948,column:18},end:{line:948,column:77}},294:{start:{line:949,column:18},end:{line:949,column:56}},295:{start:{line:950,column:18},end:{line:950,column:45}},296:{start:{line:954,column:18},end:{line:954,column:50}},297:{start:{line:957,column:14},end:{line:957,column:69}},298:{start:{line:958,column:14},end:{line:958,column:52}},299:{start:{line:959,column:14},end:{line:959,column:42}},300:{start:{line:960,column:14},end:{line:960,column:50}},301:{start:{line:963,column:10},end:{line:963,column:33}},302:{start:{line:964,column:26},end:{line:964,column:58}},303:{start:{line:965,column:10},end:{line:1018,column:11}},304:{start:{line:967,column:14},end:{line:967,column:44}},305:{start:{line:968,column:14},end:{line:968,column:47}},306:{start:{line:969,column:14},end:{line:969,column:39}},307:{start:{line:970,column:14},end:{line:970,column:45}},308:{start:{line:972,column:14},end:{line:972,column:37}},309:{start:{line:973,column:14},end:{line:977,column:15}},310:{start:{line:978,column:14},end:{line:978,column:48}},311:{start:{line:979,column:14},end:{line:979,column:61}},312:{start:{line:980,column:14},end:{line:980,column:19}},313:{start:{line:982,column:14},end:{line:982,column:31}},314:{start:{line:985,column:14},end:{line:985,column:45}},315:{start:{line:990,column:14},end:{line:996,column:15}},316:{start:{line:991,column:16},end:{line:991,column:45}},317:{start:{line:992,column:16},end:{line:992,column:48}},318:{start:{line:994,column:16},end:{line:994,column:46}},319:{start:{line:995,column:16},end:{line:995,column:49}},320:{start:{line:997,column:14},end:{line:997,column:39}},321:{start:{line:998,column:29},end:{line:1e3,column:15}},322:{start:{line:999,column:25},end:{line:999,column:69}},323:{start:{line:1001,column:14},end:{line:1014,column:15}},324:{start:{line:1002,column:16},end:{line:1002,column:39}},325:{start:{line:1003,column:27},end:{line:1003,column:62}},326:{start:{line:1004,column:16},end:{line:1008,column:17}},327:{start:{line:1009,column:16},end:{line:1009,column:42}},328:{start:{line:1011,column:16},end:{line:1013,column:17}},329:{start:{line:1012,column:18},end:{line:1012,column:57}},330:{start:{line:1015,column:14},end:{line:1015,column:19}},331:{start:{line:1017,column:14},end:{line:1017,column:19}},332:{start:{line:1019,column:10},end:{line:1019,column:15}},333:{start:{line:1023,column:10},end:{line:1027,column:11}},334:{start:{line:1024,column:12},end:{line:1026,column:13}},335:{start:{line:1025,column:14},end:{line:1025,column:54}},336:{start:{line:1028,column:10},end:{line:1030,column:11}},337:{start:{line:1029,column:12},end:{line:1029,column:31}},338:{start:{line:1031,column:10},end:{line:1031,column:15}},339:{start:{line:1033,column:10},end:{line:1033,column:33}},340:{start:{line:1034,column:10},end:{line:1034,column:15}},341:{start:{line:1036,column:10},end:{line:1036,column:41}},342:{start:{line:1037,column:10},end:{line:1037,column:34}},343:{start:{line:1038,column:10},end:{line:1038,column:15}},344:{start:{line:1041,column:10},end:{line:1044,column:11}},345:{start:{line:1042,column:12},end:{line:1042,column:35}},346:{start:{line:1043,column:12},end:{line:1043,column:33}},347:{start:{line:1045,column:10},end:{line:1045,column:15}},348:{start:{line:1047,column:10},end:{line:1047,column:31}},349:{start:{line:1048,column:10},end:{line:1048,column:15}},350:{start:{line:1050,column:22},end:{line:1050,column:27}},351:{start:{line:1051,column:27},end:{line:1051,column:29}},352:{start:{line:1052,column:10},end:{line:1062,column:11}},353:{start:{line:1053,column:12},end:{line:1060,column:13}},354:{start:{line:1057,column:14},end:{line:1057,column:33}},355:{start:{line:1058,column:14},end:{line:1058,column:26}},356:{start:{line:1059,column:14},end:{line:1059,column:19}},357:{start:{line:1061,column:12},end:{line:1061,column:22}},358:{start:{line:1063,column:10},end:{line:1063,column:59}},359:{start:{line:1064,column:10},end:{line:1064,column:59}},360:{start:{line:1065,column:10},end:{line:1065,column:62}},361:{start:{line:1066,column:10},end:{line:1070,column:11}},362:{start:{line:1067,column:12},end:{line:1067,column:49}},363:{start:{line:1069,column:12},end:{line:1069,column:44}},364:{start:{line:1071,column:10},end:{line:1075,column:11}},365:{start:{line:1072,column:12},end:{line:1072,column:48}},366:{start:{line:1074,column:12},end:{line:1074,column:43}},367:{start:{line:1076,column:10},end:{line:1076,column:62}},368:{start:{line:1077,column:10},end:{line:1082,column:11}},369:{start:{line:1078,column:12},end:{line:1078,column:57}},370:{start:{line:1079,column:12},end:{line:1079,column:68}},371:{start:{line:1081,column:12},end:{line:1081,column:54}},372:{start:{line:1083,column:10},end:{line:1083,column:15}},373:{start:{line:1085,column:10},end:{line:1094,column:11}},374:{start:{line:1086,column:12},end:{line:1092,column:13}},375:{start:{line:1090,column:14},end:{line:1090,column:43}},376:{start:{line:1091,column:14},end:{line:1091,column:19}},377:{start:{line:1093,column:12},end:{line:1093,column:22}},378:{start:{line:1095,column:10},end:{line:1095,column:15}},379:{start:{line:1097,column:10},end:{line:1097,column:27}},380:{start:{line:1098,column:10},end:{line:1098,column:15}},381:{start:{line:1100,column:23},end:{line:1102,column:12}},382:{start:{line:1104,column:23},end:{line:1104,column:50}},383:{start:{line:1105,column:10},end:{line:1105,column:47}},384:{start:{line:1106,column:10},end:{line:1106,column:54}},385:{start:{line:1107,column:10},end:{line:1107,column:22}},386:{start:{line:1108,column:10},end:{line:1108,column:15}},387:{start:{line:1112,column:10},end:{line:1112,column:15}},388:{start:{line:1116,column:6},end:{line:1116,column:30}},389:{start:{line:1117,column:6},end:{line:1124,column:8}},390:{start:{line:1127,column:6},end:{line:1132,column:7}},391:{start:{line:1128,column:8},end:{line:1128,column:32}},392:{start:{line:1129,column:8},end:{line:1129,column:32}},393:{start:{line:1130,column:8},end:{line:1130,column:29}},394:{start:{line:1131,column:8},end:{line:1131,column:14}},395:{start:{line:1133,column:6},end:{line:1133,column:42}},396:{start:{line:1134,column:6},end:{line:1134,column:38}},397:{start:{line:1135,column:6},end:{line:1135,column:39}},398:{start:{line:1136,column:6},end:{line:1136,column:34}},399:{start:{line:1137,column:6},end:{line:1137,column:31}},400:{start:{line:1138,column:6},end:{line:1138,column:30}},401:{start:{line:1139,column:6},end:{line:1139,column:30}},402:{start:{line:1140,column:6},end:{line:1140,column:33}},403:{start:{line:1141,column:6},end:{line:1276,column:7}},404:{start:{line:1145,column:10},end:{line:1145,column:33}},405:{start:{line:1146,column:10},end:{line:1146,column:40}},406:{start:{line:1147,column:10},end:{line:1147,column:35}},407:{start:{line:1148,column:10},end:{line:1148,column:42}},408:{start:{line:1150,column:10},end:{line:1155,column:11}},409:{start:{line:1151,column:12},end:{line:1151,column:54}},410:{start:{line:1152,column:17},end:{line:1155,column:11}},411:{start:{line:1154,column:12},end:{line:1154,column:43}},412:{start:{line:1157,column:10},end:{line:1159,column:11}},413:{start:{line:1158,column:12},end:{line:1158,column:36}},414:{start:{line:1160,column:10},end:{line:1179,column:11}},415:{start:{line:1161,column:12},end:{line:1161,column:33}},416:{start:{line:1162,column:12},end:{line:1178,column:13}},417:{start:{line:1163,column:14},end:{line:1169,column:16}},418:{start:{line:1171,column:14},end:{line:1177,column:16}},419:{start:{line:1180,column:10},end:{line:1180,column:30}},420:{start:{line:1181,column:10},end:{line:1181,column:15}},421:{start:{line:1183,column:10},end:{line:1183,column:49}},422:{start:{line:1184,column:10},end:{line:1184,column:97}},423:{start:{line:1185,column:10},end:{line:1187,column:11}},424:{start:{line:1186,column:12},end:{line:1186,column:53}},425:{start:{line:1188,column:10},end:{line:1188,column:40}},426:{start:{line:1189,column:10},end:{line:1189,column:63}},427:{start:{line:1190,column:10},end:{line:1190,column:58}},428:{start:{line:1191,column:10},end:{line:1191,column:33}},429:{start:{line:1192,column:10},end:{line:1192,column:15}},430:{start:{line:1194,column:10},end:{line:1196,column:11}},431:{start:{line:1195,column:12},end:{line:1195,column:58}},432:{start:{line:1197,column:10},end:{line:1199,column:11}},433:{start:{line:1198,column:12},end:{line:1198,column:53}},434:{start:{line:1200,column:10},end:{line:1200,column:44}},435:{start:{line:1201,column:10},end:{line:1201,column:61}},436:{start:{line:1202,column:10},end:{line:1202,column:58}},437:{start:{line:1203,column:10},end:{line:1203,column:33}},438:{start:{line:1204,column:10},end:{line:1204,column:15}},439:{start:{line:1206,column:10},end:{line:1208,column:11}},440:{start:{line:1207,column:12},end:{line:1207,column:58}},441:{start:{line:1209,column:10},end:{line:1211,column:11}},442:{start:{line:1210,column:12},end:{line:1210,column:53}},443:{start:{line:1212,column:10},end:{line:1214,column:11}},444:{start:{line:1213,column:12},end:{line:1213,column:39}},445:{start:{line:1215,column:10},end:{line:1215,column:44}},446:{start:{line:1216,column:10},end:{line:1218,column:12}},447:{start:{line:1217,column:12},end:{line:1217,column:59}},448:{start:{line:1219,column:10},end:{line:1219,column:38}},449:{start:{line:1220,column:10},end:{line:1220,column:58}},450:{start:{line:1221,column:10},end:{line:1221,column:33}},451:{start:{line:1222,column:10},end:{line:1222,column:15}},452:{start:{line:1225,column:10},end:{line:1227,column:11}},453:{start:{line:1226,column:12},end:{line:1226,column:58}},454:{start:{line:1228,column:10},end:{line:1230,column:11}},455:{start:{line:1229,column:12},end:{line:1229,column:53}},456:{start:{line:1231,column:10},end:{line:1231,column:44}},457:{start:{line:1232,column:10},end:{line:1234,column:12}},458:{start:{line:1233,column:12},end:{line:1233,column:59}},459:{start:{line:1235,column:10},end:{line:1237,column:11}},460:{start:{line:1236,column:12},end:{line:1236,column:43}},461:{start:{line:1238,column:10},end:{line:1238,column:58}},462:{start:{line:1239,column:10},end:{line:1239,column:33}},463:{start:{line:1240,column:10},end:{line:1240,column:15}},464:{start:{line:1242,column:10},end:{line:1242,column:47}},465:{start:{line:1243,column:10},end:{line:1243,column:43}},466:{start:{line:1244,column:10},end:{line:1244,column:38}},467:{start:{line:1245,column:10},end:{line:1245,column:15}},468:{start:{line:1247,column:10},end:{line:1256,column:11}},469:{start:{line:1248,column:12},end:{line:1248,column:43}},470:{start:{line:1249,column:12},end:{line:1255,column:14}},471:{start:{line:1257,column:10},end:{line:1257,column:29}},472:{start:{line:1258,column:10},end:{line:1258,column:15}},473:{start:{line:1261,column:10},end:{line:1261,column:40}},474:{start:{line:1262,column:10},end:{line:1262,column:42}},475:{start:{line:1263,column:10},end:{line:1265,column:11}},476:{start:{line:1264,column:12},end:{line:1264,column:49}},477:{start:{line:1266,column:10},end:{line:1268,column:11}},478:{start:{line:1267,column:12},end:{line:1267,column:37}},479:{start:{line:1269,column:10},end:{line:1269,column:31}},480:{start:{line:1270,column:10},end:{line:1270,column:15}},481:{start:{line:1275,column:10},end:{line:1275,column:15}},482:{start:{line:1279,column:6},end:{line:1279,column:28}},483:{start:{line:1282,column:22},end:{line:1282,column:30}},484:{start:{line:1283,column:6},end:{line:1300,column:7}},485:{start:{line:1284,column:8},end:{line:1284,column:22}},486:{start:{line:1285,column:8},end:{line:1299,column:10}},487:{start:{line:1286,column:10},end:{line:1286,column:35}},488:{start:{line:1288,column:45},end:{line:1292,column:11}},489:{start:{line:1295,column:27},end:{line:1298,column:12}},490:{start:{line:1301,column:6},end:{line:1307,column:8}},491:{start:{line:1310,column:6},end:{line:1310,column:30}},492:{start:{line:1311,column:6},end:{line:1311,column:40}},493:{start:{line:1312,column:6},end:{line:1312,column:27}},494:{start:{line:1316,column:6},end:{line:1316,column:23}},495:{start:{line:1317,column:6},end:{line:1317,column:34}},496:{start:{line:1318,column:6},end:{line:1318,column:33}},497:{start:{line:1319,column:6},end:{line:1319,column:30}},498:{start:{line:1320,column:6},end:{line:1320,column:21}},499:{start:{line:1321,column:6},end:{line:1321,column:38}},500:{start:{line:1322,column:6},end:{line:1322,column:28}},501:{start:{line:1323,column:6},end:{line:1323,column:30}},502:{start:{line:1324,column:6},end:{line:1324,column:36}},503:{start:{line:1325,column:6},end:{line:1325,column:30}},504:{start:{line:1328,column:6},end:{line:1328,column:20}},505:{start:{line:1329,column:6},end:{line:1366,column:2}},506:{start:{line:1367,column:6},end:{line:1367,column:33}},507:{start:{line:1370,column:6},end:{line:1370,column:26}},508:{start:{line:1373,column:6},end:{line:1395,column:10}},509:{start:{line:1375,column:23},end:{line:1378,column:11}},510:{start:{line:1379,column:10},end:{line:1381,column:11}},511:{start:{line:1380,column:12},end:{line:1380,column:61}},512:{start:{line:1382,column:10},end:{line:1384,column:11}},513:{start:{line:1383,column:12},end:{line:1383,column:47}},514:{start:{line:1385,column:10},end:{line:1387,column:11}},515:{start:{line:1386,column:12},end:{line:1386,column:51}},516:{start:{line:1388,column:25},end:{line:1388,column:45}},517:{start:{line:1389,column:30},end:{line:1389,column:55}},518:{start:{line:1390,column:10},end:{line:1390,column:59}},519:{start:{line:1393,column:10},end:{line:1393,column:78}},520:{start:{line:1394,column:10},end:{line:1394,column:22}},521:{start:{line:1399,column:6},end:{line:1399,column:21}},522:{start:{line:1401,column:24},end:{line:1401,column:47}},523:{start:{line:1402,column:6},end:{line:1408,column:7}},524:{start:{line:1404,column:8},end:{line:1407,column:9}},525:{start:{line:1405,column:10},end:{line:1405,column:27}},526:{start:{line:1406,column:10},end:{line:1406,column:32}},527:{start:{line:1410,column:6},end:{line:1410,column:45}},528:{start:{line:1411,column:6},end:{line:1411,column:33}},529:{start:{line:1412,column:6},end:{line:1412,column:49}},530:{start:{line:1413,column:6},end:{line:1413,column:46}},531:{start:{line:1414,column:6},end:{line:1414,column:39}},532:{start:{line:1415,column:6},end:{line:1415,column:28}},533:{start:{line:1416,column:6},end:{line:1416,column:30}},534:{start:{line:1418,column:6},end:{line:1425,column:7}},535:{start:{line:1419,column:8},end:{line:1419,column:31}},536:{start:{line:1420,column:8},end:{line:1420,column:35}},537:{start:{line:1421,column:8},end:{line:1421,column:37}},538:{start:{line:1423,column:8},end:{line:1423,column:32}},539:{start:{line:1424,column:8},end:{line:1424,column:38}},540:{start:{line:1426,column:6},end:{line:1429,column:7}},541:{start:{line:1427,column:8},end:{line:1427,column:36}},542:{start:{line:1428,column:8},end:{line:1428,column:34}},543:{start:{line:1431,column:6},end:{line:1431,column:54}},544:{start:{line:1436,column:26},end:{line:1436,column:50}},545:{start:{line:1437,column:6},end:{line:1452,column:7}},546:{start:{line:1438,column:8},end:{line:1451,column:9}},547:{start:{line:1440,column:10},end:{line:1440,column:23}},548:{start:{line:1441,column:10},end:{line:1441,column:16}},549:{start:{line:1443,column:10},end:{line:1450,column:11}},550:{start:{line:1444,column:12},end:{line:1448,column:24}},551:{start:{line:1449,column:12},end:{line:1449,column:45}},552:{start:{line:1453,column:6},end:{line:1453,column:26}},553:{start:{line:1454,column:6},end:{line:1499,column:10}},554:{start:{line:1461,column:10},end:{line:1484,column:11}},555:{start:{line:1462,column:12},end:{line:1470,column:13}},556:{start:{line:1463,column:14},end:{line:1463,column:43}},557:{start:{line:1464,column:14},end:{line:1464,column:37}},558:{start:{line:1465,column:14},end:{line:1465,column:62}},559:{start:{line:1467,column:14},end:{line:1467,column:44}},560:{start:{line:1468,column:14},end:{line:1468,column:38}},561:{start:{line:1469,column:14},end:{line:1469,column:32}},562:{start:{line:1471,column:12},end:{line:1474,column:13}},563:{start:{line:1472,column:14},end:{line:1472,column:51}},564:{start:{line:1473,column:14},end:{line:1473,column:40}},565:{start:{line:1475,column:12},end:{line:1475,column:34}},566:{start:{line:1476,column:12},end:{line:1478,column:20}},567:{start:{line:1477,column:14},end:{line:1477,column:35}},568:{start:{line:1480,column:12},end:{line:1480,column:33}},569:{start:{line:1481,column:12},end:{line:1481,column:36}},570:{start:{line:1482,column:12},end:{line:1482,column:103}},571:{start:{line:1483,column:12},end:{line:1483,column:33}},572:{start:{line:1485,column:10},end:{line:1485,column:25}},573:{start:{line:1488,column:10},end:{line:1488,column:31}},574:{start:{line:1491,column:10},end:{line:1497,column:11}},575:{start:{line:1492,column:12},end:{line:1492,column:36}},576:{start:{line:1493,column:12},end:{line:1493,column:49}},577:{start:{line:1495,column:12},end:{line:1495,column:36}},578:{start:{line:1496,column:12},end:{line:1496,column:103}},579:{start:{line:1498,column:10},end:{line:1498,column:31}},580:{start:{line:1502,column:6},end:{line:1502,column:28}},581:{start:{line:1505,column:6},end:{line:1505,column:44}},582:{start:{line:1506,column:6},end:{line:1506,column:33}},583:{start:{line:1507,column:6},end:{line:1510,column:7}},584:{start:{line:1508,column:8},end:{line:1508,column:67}},585:{start:{line:1509,column:8},end:{line:1509,column:32}},586:{start:{line:1511,column:6},end:{line:1511,column:33}},587:{start:{line:1514,column:21},end:{line:1514,column:34}},588:{start:{line:1515,column:6},end:{line:1517,column:7}},589:{start:{line:1516,column:8},end:{line:1516,column:36}},590:{start:{line:1518,column:6},end:{line:1539,column:10}},591:{start:{line:1524,column:10},end:{line:1526,column:12}},592:{start:{line:1529,column:10},end:{line:1529,column:24}},593:{start:{line:1532,column:10},end:{line:1538,column:11}},594:{start:{line:1533,column:32},end:{line:1536,column:13}},595:{start:{line:1537,column:12},end:{line:1537,column:44}},596:{start:{line:1542,column:19},end:{line:1544,column:8}},597:{start:{line:1546,column:19},end:{line:1546,column:46}},598:{start:{line:1547,column:6},end:{line:1547,column:43}},599:{start:{line:1548,column:6},end:{line:1548,column:50}},600:{start:{line:1549,column:6},end:{line:1549,column:18}},601:{start:{line:1553,column:6},end:{line:1563,column:8}},602:{start:{line:1560,column:8},end:{line:1560,column:52}},603:{start:{line:1561,column:8},end:{line:1561,column:69}},604:{start:{line:1562,column:8},end:{line:1562,column:36}},605:{start:{line:1566,column:6},end:{line:1576,column:8}},606:{start:{line:1573,column:8},end:{line:1573,column:52}},607:{start:{line:1574,column:8},end:{line:1574,column:69}},608:{start:{line:1575,column:8},end:{line:1575,column:36}},609:{start:{line:1579,column:6},end:{line:1579,column:71}},610:{start:{line:1582,column:6},end:{line:1582,column:38}},611:{start:{line:1585,column:6},end:{line:1585,column:48}},612:{start:{line:1589,column:6},end:{line:1616,column:7}},613:{start:{line:1590,column:8},end:{line:1590,column:23}},614:{start:{line:1591,column:8},end:{line:1591,column:57}},615:{start:{line:1592,column:13},end:{line:1616,column:7}},616:{start:{line:1593,column:8},end:{line:1593,column:42}},617:{start:{line:1594,column:8},end:{line:1594,column:57}},618:{start:{line:1596,column:8},end:{line:1600,column:10}},619:{start:{line:1601,column:8},end:{line:1601,column:23}},620:{start:{line:1602,column:13},end:{line:1616,column:7}},621:{start:{line:1603,column:8},end:{line:1603,column:35}},622:{start:{line:1604,column:8},end:{line:1606,column:9}},623:{start:{line:1605,column:10},end:{line:1605,column:63}},624:{start:{line:1607,column:8},end:{line:1607,column:62}},625:{start:{line:1609,column:8},end:{line:1609,column:30}},626:{start:{line:1610,column:13},end:{line:1616,column:7}},627:{start:{line:1611,column:8},end:{line:1611,column:35}},628:{start:{line:1612,column:8},end:{line:1614,column:9}},629:{start:{line:1613,column:10},end:{line:1613,column:36}},630:{start:{line:1615,column:8},end:{line:1615,column:62}},631:{start:{line:1619,column:25},end:{line:1619,column:57}},632:{start:{line:1620,column:6},end:{line:1622,column:70}},633:{start:{line:1621,column:25},end:{line:1621,column:60}},634:{start:{line:1622,column:29},end:{line:1622,column:69}},635:{start:{line:1625,column:6},end:{line:1636,column:10}},636:{start:{line:1634,column:10},end:{line:1634,column:30}},637:{start:{line:1635,column:10},end:{line:1635,column:32}},638:{start:{line:1639,column:6},end:{line:1639,column:66}},639:{start:{line:1642,column:6},end:{line:1644,column:7}},640:{start:{line:1643,column:8},end:{line:1643,column:63}},641:{start:{line:1647,column:6},end:{line:1647,column:38}},642:{start:{line:1650,column:18},end:{line:1650,column:19}},643:{start:{line:1651,column:6},end:{line:1657,column:7}},644:{start:{line:1652,column:8},end:{line:1655,column:9}},645:{start:{line:1653,column:10},end:{line:1653,column:39}},646:{start:{line:1654,column:10},end:{line:1654,column:15}},647:{start:{line:1656,column:8},end:{line:1656,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:66,column:2},end:{line:66,column:3}},loc:{start:{line:66,column:9},end:{line:181,column:3}},line:66},1:{name:"(anonymous_1)",decl:{start:{line:128,column:18},end:{line:128,column:19}},loc:{start:{line:128,column:24},end:{line:128,column:26}},line:128},2:{name:"(anonymous_2)",decl:{start:{line:136,column:18},end:{line:136,column:19}},loc:{start:{line:136,column:24},end:{line:136,column:26}},line:136},3:{name:"(anonymous_3)",decl:{start:{line:146,column:18},end:{line:146,column:19}},loc:{start:{line:146,column:24},end:{line:146,column:26}},line:146},4:{name:"(anonymous_4)",decl:{start:{line:156,column:18},end:{line:156,column:19}},loc:{start:{line:156,column:24},end:{line:156,column:26}},line:156},5:{name:"(anonymous_5)",decl:{start:{line:183,column:19},end:{line:183,column:20}},loc:{start:{line:183,column:31},end:{line:189,column:5}},line:183},6:{name:"(anonymous_6)",decl:{start:{line:190,column:14},end:{line:190,column:15}},loc:{start:{line:190,column:26},end:{line:194,column:5}},line:190},7:{name:"(anonymous_7)",decl:{start:{line:195,column:21},end:{line:195,column:22}},loc:{start:{line:195,column:33},end:{line:199,column:5}},line:195},8:{name:"(anonymous_8)",decl:{start:{line:200,column:26},end:{line:200,column:27}},loc:{start:{line:200,column:38},end:{line:202,column:5}},line:200},9:{name:"(anonymous_9)",decl:{start:{line:203,column:14},end:{line:203,column:15}},loc:{start:{line:203,column:26},end:{line:205,column:5}},line:203},10:{name:"(anonymous_10)",decl:{start:{line:206,column:18},end:{line:206,column:19}},loc:{start:{line:206,column:30},end:{line:209,column:5}},line:206},11:{name:"(anonymous_11)",decl:{start:{line:212,column:21},end:{line:212,column:22}},loc:{start:{line:212,column:33},end:{line:214,column:5}},line:212},12:{name:"(anonymous_12)",decl:{start:{line:215,column:11},end:{line:215,column:12}},loc:{start:{line:215,column:23},end:{line:411,column:5}},line:215},13:{name:"(anonymous_13)",decl:{start:{line:224,column:23},end:{line:224,column:24}},loc:{start:{line:224,column:29},end:{line:226,column:15}},line:224},14:{name:"(anonymous_14)",decl:{start:{line:232,column:23},end:{line:232,column:24}},loc:{start:{line:232,column:29},end:{line:234,column:15}},line:232},15:{name:"(anonymous_15)",decl:{start:{line:240,column:23},end:{line:240,column:24}},loc:{start:{line:240,column:29},end:{line:242,column:15}},line:240},16:{name:"(anonymous_16)",decl:{start:{line:251,column:23},end:{line:251,column:24}},loc:{start:{line:251,column:29},end:{line:253,column:15}},line:251},17:{name:"(anonymous_17)",decl:{start:{line:259,column:23},end:{line:259,column:24}},loc:{start:{line:259,column:29},end:{line:261,column:15}},line:259},18:{name:"(anonymous_18)",decl:{start:{line:270,column:23},end:{line:270,column:24}},loc:{start:{line:270,column:29},end:{line:272,column:15}},line:270},19:{name:"(anonymous_19)",decl:{start:{line:281,column:23},end:{line:281,column:24}},loc:{start:{line:281,column:29},end:{line:283,column:15}},line:281},20:{name:"(anonymous_20)",decl:{start:{line:293,column:23},end:{line:293,column:24}},loc:{start:{line:293,column:29},end:{line:295,column:15}},line:293},21:{name:"(anonymous_21)",decl:{start:{line:301,column:23},end:{line:301,column:24}},loc:{start:{line:301,column:29},end:{line:303,column:15}},line:301},22:{name:"(anonymous_22)",decl:{start:{line:313,column:23},end:{line:313,column:24}},loc:{start:{line:313,column:29},end:{line:315,column:15}},line:313},23:{name:"(anonymous_23)",decl:{start:{line:324,column:23},end:{line:324,column:24}},loc:{start:{line:324,column:29},end:{line:326,column:15}},line:324},24:{name:"(anonymous_24)",decl:{start:{line:332,column:23},end:{line:332,column:24}},loc:{start:{line:332,column:29},end:{line:335,column:15}},line:332},25:{name:"(anonymous_25)",decl:{start:{line:333,column:46},end:{line:333,column:47}},loc:{start:{line:333,column:52},end:{line:333,column:54}},line:333},26:{name:"(anonymous_26)",decl:{start:{line:340,column:23},end:{line:340,column:24}},loc:{start:{line:340,column:29},end:{line:342,column:15}},line:340},27:{name:"(anonymous_27)",decl:{start:{line:351,column:23},end:{line:351,column:24}},loc:{start:{line:351,column:29},end:{line:353,column:15}},line:351},28:{name:"(anonymous_28)",decl:{start:{line:359,column:23},end:{line:359,column:24}},loc:{start:{line:359,column:29},end:{line:361,column:15}},line:359},29:{name:"(anonymous_29)",decl:{start:{line:367,column:23},end:{line:367,column:24}},loc:{start:{line:367,column:29},end:{line:369,column:15}},line:367},30:{name:"(anonymous_30)",decl:{start:{line:375,column:23},end:{line:375,column:24}},loc:{start:{line:375,column:29},end:{line:377,column:15}},line:375},31:{name:"(anonymous_31)",decl:{start:{line:385,column:23},end:{line:385,column:24}},loc:{start:{line:385,column:29},end:{line:387,column:15}},line:385},32:{name:"(anonymous_32)",decl:{start:{line:393,column:23},end:{line:393,column:24}},loc:{start:{line:393,column:29},end:{line:395,column:15}},line:393},33:{name:"(anonymous_33)",decl:{start:{line:404,column:23},end:{line:404,column:24}},loc:{start:{line:404,column:29},end:{line:406,column:15}},line:404},34:{name:"(anonymous_34)",decl:{start:{line:412,column:31},end:{line:412,column:32}},loc:{start:{line:412,column:43},end:{line:427,column:5}},line:412},35:{name:"(anonymous_35)",decl:{start:{line:430,column:14},end:{line:430,column:15}},loc:{start:{line:430,column:29},end:{line:436,column:5}},line:430},36:{name:"(anonymous_36)",decl:{start:{line:437,column:18},end:{line:437,column:19}},loc:{start:{line:437,column:38},end:{line:439,column:5}},line:437},37:{name:"(anonymous_37)",decl:{start:{line:441,column:11},end:{line:441,column:12}},loc:{start:{line:441,column:23},end:{line:453,column:3}},line:441},38:{name:"(anonymous_38)",decl:{start:{line:450,column:61},end:{line:450,column:62}},loc:{start:{line:450,column:75},end:{line:452,column:5}},line:450},39:{name:"(anonymous_39)",decl:{start:{line:454,column:11},end:{line:454,column:12}},loc:{start:{line:454,column:29},end:{line:492,column:3}},line:454},40:{name:"(anonymous_40)",decl:{start:{line:474,column:37},end:{line:474,column:38}},loc:{start:{line:474,column:58},end:{line:477,column:5}},line:474},41:{name:"(anonymous_41)",decl:{start:{line:482,column:40},end:{line:482,column:41}},loc:{start:{line:482,column:52},end:{line:491,column:5}},line:482},42:{name:"(anonymous_42)",decl:{start:{line:493,column:2},end:{line:493,column:3}},loc:{start:{line:493,column:18},end:{line:496,column:3}},line:493},43:{name:"(anonymous_43)",decl:{start:{line:497,column:2},end:{line:497,column:3}},loc:{start:{line:497,column:14},end:{line:506,column:3}},line:497},44:{name:"(anonymous_44)",decl:{start:{line:507,column:21},end:{line:507,column:22}},loc:{start:{line:507,column:47},end:{line:513,column:3}},line:507},45:{name:"(anonymous_45)",decl:{start:{line:515,column:4},end:{line:515,column:5}},loc:{start:{line:515,column:19},end:{line:531,column:5}},line:515},46:{name:"(anonymous_46)",decl:{start:{line:516,column:43},end:{line:516,column:44}},loc:{start:{line:516,column:57},end:{line:530,column:7}},line:516},47:{name:"(anonymous_47)",decl:{start:{line:518,column:54},end:{line:518,column:55}},loc:{start:{line:518,column:65},end:{line:528,column:9}},line:518},48:{name:"(anonymous_48)",decl:{start:{line:532,column:4},end:{line:532,column:5}},loc:{start:{line:532,column:22},end:{line:574,column:5}},line:532},49:{name:"(anonymous_49)",decl:{start:{line:539,column:16},end:{line:539,column:17}},loc:{start:{line:539,column:23},end:{line:539,column:42}},line:539},50:{name:"(anonymous_50)",decl:{start:{line:540,column:16},end:{line:540,column:17}},loc:{start:{line:540,column:23},end:{line:540,column:35}},line:540},51:{name:"(anonymous_51)",decl:{start:{line:542,column:33},end:{line:542,column:34}},loc:{start:{line:542,column:45},end:{line:551,column:7}},line:542},52:{name:"(anonymous_52)",decl:{start:{line:561,column:17},end:{line:561,column:18}},loc:{start:{line:561,column:29},end:{line:567,column:7}},line:561},53:{name:"(anonymous_53)",decl:{start:{line:570,column:8},end:{line:570,column:9}},loc:{start:{line:570,column:20},end:{line:572,column:7}},line:570},54:{name:"(anonymous_54)",decl:{start:{line:576,column:4},end:{line:576,column:5}},loc:{start:{line:576,column:30},end:{line:594,column:5}},line:576},55:{name:"(anonymous_55)",decl:{start:{line:595,column:26},end:{line:595,column:27}},loc:{start:{line:595,column:40},end:{line:618,column:5}},line:595},56:{name:"(anonymous_56)",decl:{start:{line:596,column:56},end:{line:596,column:57}},loc:{start:{line:596,column:70},end:{line:617,column:7}},line:596},57:{name:"(anonymous_57)",decl:{start:{line:598,column:10},end:{line:598,column:11}},loc:{start:{line:598,column:17},end:{line:598,column:38}},line:598},58:{name:"(anonymous_58)",decl:{start:{line:619,column:19},end:{line:619,column:20}},loc:{start:{line:619,column:31},end:{line:633,column:5}},line:619},59:{name:"(anonymous_59)",decl:{start:{line:620,column:59},end:{line:620,column:60}},loc:{start:{line:620,column:73},end:{line:632,column:7}},line:620},60:{name:"(anonymous_60)",decl:{start:{line:634,column:30},end:{line:634,column:31}},loc:{start:{line:634,column:48},end:{line:638,column:5}},line:634},61:{name:"(anonymous_61)",decl:{start:{line:639,column:19},end:{line:639,column:20}},loc:{start:{line:639,column:31},end:{line:648,column:5}},line:639},62:{name:"(anonymous_62)",decl:{start:{line:645,column:16},end:{line:645,column:17}},loc:{start:{line:645,column:25},end:{line:645,column:37}},line:645},63:{name:"(anonymous_63)",decl:{start:{line:646,column:13},end:{line:646,column:14}},loc:{start:{line:646,column:22},end:{line:646,column:33}},line:646},64:{name:"(anonymous_64)",decl:{start:{line:649,column:22},end:{line:649,column:23}},loc:{start:{line:649,column:34},end:{line:656,column:5}},line:649},65:{name:"(anonymous_65)",decl:{start:{line:653,column:16},end:{line:653,column:17}},loc:{start:{line:653,column:25},end:{line:653,column:71}},line:653},66:{name:"(anonymous_66)",decl:{start:{line:654,column:13},end:{line:654,column:14}},loc:{start:{line:654,column:22},end:{line:654,column:43}},line:654},67:{name:"(anonymous_67)",decl:{start:{line:657,column:17},end:{line:657,column:18}},loc:{start:{line:657,column:51},end:{line:692,column:5}},line:657},68:{name:"(anonymous_68)",decl:{start:{line:678,column:16},end:{line:678,column:17}},loc:{start:{line:678,column:30},end:{line:687,column:11}},line:678},69:{name:"(anonymous_69)",decl:{start:{line:688,column:16},end:{line:688,column:17}},loc:{start:{line:688,column:30},end:{line:690,column:11}},line:688},70:{name:"(anonymous_70)",decl:{start:{line:693,column:22},end:{line:693,column:23}},loc:{start:{line:693,column:34},end:{line:695,column:5}},line:693},71:{name:"(anonymous_71)",decl:{start:{line:696,column:22},end:{line:696,column:23}},loc:{start:{line:696,column:40},end:{line:706,column:5}},line:696},72:{name:"(anonymous_72)",decl:{start:{line:707,column:23},end:{line:707,column:24}},loc:{start:{line:707,column:50},end:{line:736,column:5}},line:707},73:{name:"(anonymous_73)",decl:{start:{line:712,column:8},end:{line:712,column:9}},loc:{start:{line:713,column:10},end:{line:714,column:32}},line:713},74:{name:"(anonymous_74)",decl:{start:{line:726,column:12},end:{line:726,column:13}},loc:{start:{line:726,column:21},end:{line:726,column:43}},line:726},75:{name:"(anonymous_75)",decl:{start:{line:730,column:27},end:{line:730,column:28}},loc:{start:{line:730,column:36},end:{line:735,column:7}},line:730},76:{name:"(anonymous_76)",decl:{start:{line:737,column:23},end:{line:737,column:24}},loc:{start:{line:737,column:64},end:{line:742,column:5}},line:737},77:{name:"(anonymous_77)",decl:{start:{line:740,column:13},end:{line:740,column:14}},loc:{start:{line:740,column:34},end:{line:740,column:51}},line:740},78:{name:"(anonymous_78)",decl:{start:{line:743,column:24},end:{line:743,column:25}},loc:{start:{line:743,column:44},end:{line:748,column:5}},line:743},79:{name:"(anonymous_79)",decl:{start:{line:745,column:42},end:{line:745,column:43}},loc:{start:{line:745,column:58},end:{line:747,column:7}},line:745},80:{name:"(anonymous_80)",decl:{start:{line:749,column:26},end:{line:749,column:27}},loc:{start:{line:749,column:38},end:{line:761,column:5}},line:749},81:{name:"(anonymous_81)",decl:{start:{line:755,column:14},end:{line:755,column:15}},loc:{start:{line:755,column:26},end:{line:757,column:9}},line:755},82:{name:"(anonymous_82)",decl:{start:{line:758,column:14},end:{line:758,column:15}},loc:{start:{line:758,column:28},end:{line:760,column:9}},line:758},83:{name:"(anonymous_83)",decl:{start:{line:762,column:4},end:{line:762,column:5}},loc:{start:{line:762,column:29},end:{line:768,column:5}},line:762},84:{name:"(anonymous_84)",decl:{start:{line:769,column:4},end:{line:769,column:5}},loc:{start:{line:769,column:25},end:{line:786,column:5}},line:769},85:{name:"(anonymous_85)",decl:{start:{line:787,column:4},end:{line:787,column:5}},loc:{start:{line:787,column:20},end:{line:797,column:5}},line:787},86:{name:"(anonymous_86)",decl:{start:{line:798,column:20},end:{line:798,column:21}},loc:{start:{line:798,column:32},end:{line:818,column:5}},line:798},87:{name:"(anonymous_87)",decl:{start:{line:801,column:14},end:{line:801,column:15}},loc:{start:{line:801,column:41},end:{line:817,column:9}},line:801},88:{name:"(anonymous_88)",decl:{start:{line:805,column:19},end:{line:805,column:20}},loc:{start:{line:805,column:32},end:{line:805,column:73}},line:805},89:{name:"(anonymous_89)",decl:{start:{line:819,column:4},end:{line:819,column:5}},loc:{start:{line:819,column:20},end:{line:843,column:5}},line:819},90:{name:"(anonymous_90)",decl:{start:{line:834,column:22},end:{line:834,column:23}},loc:{start:{line:834,column:32},end:{line:834,column:51}},line:834},91:{name:"(anonymous_91)",decl:{start:{line:840,column:14},end:{line:840,column:15}},loc:{start:{line:840,column:32},end:{line:842,column:9}},line:840},92:{name:"(anonymous_92)",decl:{start:{line:844,column:4},end:{line:844,column:5}},loc:{start:{line:844,column:21},end:{line:862,column:5}},line:844},93:{name:"(anonymous_93)",decl:{start:{line:863,column:24},end:{line:863,column:25}},loc:{start:{line:863,column:41},end:{line:865,column:5}},line:863},94:{name:"(anonymous_94)",decl:{start:{line:866,column:18},end:{line:866,column:19}},loc:{start:{line:866,column:30},end:{line:868,column:5}},line:866},95:{name:"(anonymous_95)",decl:{start:{line:869,column:4},end:{line:869,column:5}},loc:{start:{line:869,column:43},end:{line:889,column:5}},line:869},96:{name:"(anonymous_96)",decl:{start:{line:886,column:35},end:{line:886,column:36}},loc:{start:{line:886,column:49},end:{line:888,column:7}},line:886},97:{name:"(anonymous_97)",decl:{start:{line:890,column:4},end:{line:890,column:5}},loc:{start:{line:890,column:9},end:{line:896,column:5}},line:890},98:{name:"(anonymous_98)",decl:{start:{line:897,column:4},end:{line:897,column:5}},loc:{start:{line:897,column:19},end:{line:904,column:5}},line:897},99:{name:"(anonymous_99)",decl:{start:{line:905,column:4},end:{line:905,column:5}},loc:{start:{line:905,column:11},end:{line:915,column:5}},line:905},100:{name:"(anonymous_100)",decl:{start:{line:916,column:4},end:{line:916,column:5}},loc:{start:{line:916,column:11},end:{line:918,column:5}},line:916},101:{name:"(anonymous_101)",decl:{start:{line:919,column:4},end:{line:919,column:5}},loc:{start:{line:919,column:19},end:{line:1114,column:5}},line:919},102:{name:"(anonymous_102)",decl:{start:{line:941,column:22},end:{line:941,column:23}},loc:{start:{line:941,column:36},end:{line:951,column:17}},line:941},103:{name:"(anonymous_103)",decl:{start:{line:952,column:23},end:{line:952,column:24}},loc:{start:{line:952,column:32},end:{line:955,column:17}},line:952},104:{name:"(anonymous_104)",decl:{start:{line:999,column:16},end:{line:999,column:17}},loc:{start:{line:999,column:25},end:{line:999,column:69}},line:999},105:{name:"(anonymous_105)",decl:{start:{line:1115,column:4},end:{line:1115,column:5}},loc:{start:{line:1115,column:32},end:{line:1125,column:5}},line:1115},106:{name:"(anonymous_106)",decl:{start:{line:1126,column:4},end:{line:1126,column:5}},loc:{start:{line:1126,column:23},end:{line:1277,column:5}},line:1126},107:{name:"(anonymous_107)",decl:{start:{line:1160,column:30},end:{line:1160,column:31}},loc:{start:{line:1160,column:41},end:{line:1179,column:11}},line:1160},108:{name:"(anonymous_108)",decl:{start:{line:1216,column:37},end:{line:1216,column:38}},loc:{start:{line:1216,column:44},end:{line:1218,column:11}},line:1216},109:{name:"(anonymous_109)",decl:{start:{line:1232,column:37},end:{line:1232,column:38}},loc:{start:{line:1232,column:44},end:{line:1234,column:11}},line:1232},110:{name:"(anonymous_110)",decl:{start:{line:1247,column:40},end:{line:1247,column:41}},loc:{start:{line:1247,column:51},end:{line:1256,column:11}},line:1247},111:{name:"(anonymous_111)",decl:{start:{line:1278,column:4},end:{line:1278,column:5}},loc:{start:{line:1278,column:36},end:{line:1308,column:5}},line:1278},112:{name:"(anonymous_112)",decl:{start:{line:1285,column:28},end:{line:1285,column:29}},loc:{start:{line:1285,column:44},end:{line:1299,column:9}},line:1285},113:{name:"(anonymous_113)",decl:{start:{line:1309,column:4},end:{line:1309,column:5}},loc:{start:{line:1309,column:20},end:{line:1313,column:5}},line:1309},114:{name:"(anonymous_114)",decl:{start:{line:1315,column:4},end:{line:1315,column:5}},loc:{start:{line:1315,column:14},end:{line:1326,column:5}},line:1315},115:{name:"(anonymous_115)",decl:{start:{line:1327,column:4},end:{line:1327,column:5}},loc:{start:{line:1327,column:25},end:{line:1368,column:5}},line:1327},116:{name:"(anonymous_116)",decl:{start:{line:1369,column:4},end:{line:1369,column:5}},loc:{start:{line:1369,column:15},end:{line:1371,column:5}},line:1369},117:{name:"(anonymous_117)",decl:{start:{line:1372,column:4},end:{line:1372,column:5}},loc:{start:{line:1372,column:17},end:{line:1396,column:5}},line:1372},118:{name:"(anonymous_118)",decl:{start:{line:1374,column:14},end:{line:1374,column:15}},loc:{start:{line:1374,column:28},end:{line:1391,column:9}},line:1374},119:{name:"(anonymous_119)",decl:{start:{line:1392,column:15},end:{line:1392,column:16}},loc:{start:{line:1392,column:26},end:{line:1395,column:9}},line:1392},120:{name:"(anonymous_120)",decl:{start:{line:1398,column:4},end:{line:1398,column:5}},loc:{start:{line:1398,column:58},end:{line:1432,column:5}},line:1398},121:{name:"(anonymous_121)",decl:{start:{line:1435,column:4},end:{line:1435,column:5}},loc:{start:{line:1435,column:34},end:{line:1500,column:5}},line:1435},122:{name:"(anonymous_122)",decl:{start:{line:1460,column:14},end:{line:1460,column:15}},loc:{start:{line:1460,column:28},end:{line:1486,column:9}},line:1460},123:{name:"(anonymous_123)",decl:{start:{line:1476,column:23},end:{line:1476,column:24}},loc:{start:{line:1476,column:29},end:{line:1478,column:13}},line:1476},124:{name:"(anonymous_124)",decl:{start:{line:1487,column:15},end:{line:1487,column:16}},loc:{start:{line:1487,column:33},end:{line:1499,column:9}},line:1487},125:{name:"(anonymous_125)",decl:{start:{line:1501,column:4},end:{line:1501,column:5}},loc:{start:{line:1501,column:13},end:{line:1503,column:5}},line:1501},126:{name:"(anonymous_126)",decl:{start:{line:1504,column:4},end:{line:1504,column:5}},loc:{start:{line:1504,column:35},end:{line:1512,column:5}},line:1504},127:{name:"(anonymous_127)",decl:{start:{line:1513,column:4},end:{line:1513,column:5}},loc:{start:{line:1513,column:13},end:{line:1540,column:5}},line:1513},128:{name:"(anonymous_128)",decl:{start:{line:1523,column:14},end:{line:1523,column:15}},loc:{start:{line:1523,column:26},end:{line:1527,column:9}},line:1523},129:{name:"(anonymous_129)",decl:{start:{line:1528,column:14},end:{line:1528,column:15}},loc:{start:{line:1528,column:28},end:{line:1530,column:9}},line:1528},130:{name:"(anonymous_130)",decl:{start:{line:1531,column:15},end:{line:1531,column:16}},loc:{start:{line:1531,column:26},end:{line:1539,column:9}},line:1531},131:{name:"(anonymous_131)",decl:{start:{line:1541,column:4},end:{line:1541,column:5}},loc:{start:{line:1541,column:15},end:{line:1550,column:5}},line:1541},132:{name:"(anonymous_132)",decl:{start:{line:1552,column:4},end:{line:1552,column:5}},loc:{start:{line:1552,column:22},end:{line:1564,column:5}},line:1552},133:{name:"(anonymous_133)",decl:{start:{line:1559,column:14},end:{line:1559,column:15}},loc:{start:{line:1559,column:28},end:{line:1563,column:7}},line:1559},134:{name:"(anonymous_134)",decl:{start:{line:1565,column:4},end:{line:1565,column:5}},loc:{start:{line:1565,column:23},end:{line:1577,column:5}},line:1565},135:{name:"(anonymous_135)",decl:{start:{line:1572,column:14},end:{line:1572,column:15}},loc:{start:{line:1572,column:28},end:{line:1576,column:7}},line:1572},136:{name:"(anonymous_136)",decl:{start:{line:1578,column:4},end:{line:1578,column:5}},loc:{start:{line:1578,column:20},end:{line:1580,column:5}},line:1578},137:{name:"(anonymous_137)",decl:{start:{line:1581,column:4},end:{line:1581,column:5}},loc:{start:{line:1581,column:18},end:{line:1583,column:5}},line:1581},138:{name:"(anonymous_138)",decl:{start:{line:1584,column:4},end:{line:1584,column:5}},loc:{start:{line:1584,column:23},end:{line:1586,column:5}},line:1584},139:{name:"(anonymous_139)",decl:{start:{line:1588,column:4},end:{line:1588,column:5}},loc:{start:{line:1588,column:24},end:{line:1617,column:5}},line:1588},140:{name:"(anonymous_140)",decl:{start:{line:1618,column:22},end:{line:1618,column:23}},loc:{start:{line:1618,column:34},end:{line:1623,column:5}},line:1618},141:{name:"(anonymous_141)",decl:{start:{line:1621,column:16},end:{line:1621,column:17}},loc:{start:{line:1621,column:25},end:{line:1621,column:60}},line:1621},142:{name:"(anonymous_142)",decl:{start:{line:1622,column:17},end:{line:1622,column:18}},loc:{start:{line:1622,column:29},end:{line:1622,column:69}},line:1622},143:{name:"(anonymous_143)",decl:{start:{line:1624,column:24},end:{line:1624,column:25}},loc:{start:{line:1624,column:36},end:{line:1637,column:5}},line:1624},144:{name:"(anonymous_144)",decl:{start:{line:1633,column:14},end:{line:1633,column:15}},loc:{start:{line:1633,column:20},end:{line:1636,column:9}},line:1633},145:{name:"(anonymous_145)",decl:{start:{line:1638,column:14},end:{line:1638,column:15}},loc:{start:{line:1638,column:26},end:{line:1640,column:5}},line:1638},146:{name:"(anonymous_146)",decl:{start:{line:1641,column:16},end:{line:1641,column:17}},loc:{start:{line:1641,column:28},end:{line:1645,column:5}},line:1641},147:{name:"(anonymous_147)",decl:{start:{line:1646,column:4},end:{line:1646,column:5}},loc:{start:{line:1646,column:17},end:{line:1648,column:5}},line:1646},148:{name:"(anonymous_148)",decl:{start:{line:1649,column:4},end:{line:1649,column:5}},loc:{start:{line:1649,column:20},end:{line:1658,column:5}},line:1649}},branchMap:{0:{loc:{start:{line:184,column:6},end:{line:188,column:7}},type:"if",locations:[{start:{line:184,column:6},end:{line:188,column:7}},{start:{line:186,column:13},end:{line:188,column:7}}],line:184},1:{loc:{start:{line:196,column:13},end:{line:198,column:32}},type:"cond-expr",locations:[{start:{line:197,column:10},end:{line:197,column:24}},{start:{line:198,column:10},end:{line:198,column:32}}],line:196},2:{loc:{start:{line:201,column:13},end:{line:201,column:67}},type:"cond-expr",locations:[{start:{line:201,column:53},end:{line:201,column:62}},{start:{line:201,column:65},end:{line:201,column:67}}],line:201},3:{loc:{start:{line:207,column:6},end:{line:207,column:59}},type:"if",locations:[{start:{line:207,column:6},end:{line:207,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:207},4:{loc:{start:{line:213,column:13},end:{line:213,column:64}},type:"cond-expr",locations:[{start:{line:213,column:46},end:{line:213,column:48}},{start:{line:213,column:51},end:{line:213,column:64}}],line:213},5:{loc:{start:{line:432,column:6},end:{line:434,column:7}},type:"if",locations:[{start:{line:432,column:6},end:{line:434,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:432},6:{loc:{start:{line:484,column:6},end:{line:490,column:7}},type:"if",locations:[{start:{line:484,column:6},end:{line:490,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:484},7:{loc:{start:{line:485,column:8},end:{line:487,column:46}},type:"binary-expr",locations:[{start:{line:485,column:8},end:{line:485,column:22}},{start:{line:486,column:8},end:{line:486,column:36}},{start:{line:487,column:8},end:{line:487,column:46}}],line:485},8:{loc:{start:{line:499,column:4},end:{line:501,column:5}},type:"if",locations:[{start:{line:499,column:4},end:{line:501,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:499},9:{loc:{start:{line:502,column:4},end:{line:504,column:5}},type:"if",locations:[{start:{line:502,column:4},end:{line:504,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:502},10:{loc:{start:{line:508,column:4},end:{line:512,column:5}},type:"if",locations:[{start:{line:508,column:4},end:{line:512,column:5}},{start:{line:510,column:11},end:{line:512,column:5}}],line:508},11:{loc:{start:{line:600,column:8},end:{line:616,column:9}},type:"if",locations:[{start:{line:600,column:8},end:{line:616,column:9}},{start:{line:604,column:15},end:{line:616,column:9}}],line:600},12:{loc:{start:{line:604,column:15},end:{line:616,column:9}},type:"if",locations:[{start:{line:604,column:15},end:{line:616,column:9}},{start:{line:610,column:15},end:{line:616,column:9}}],line:604},13:{loc:{start:{line:611,column:10},end:{line:615,column:11}},type:"if",locations:[{start:{line:611,column:10},end:{line:615,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:611},14:{loc:{start:{line:621,column:8},end:{line:625,column:9}},type:"if",locations:[{start:{line:621,column:8},end:{line:625,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:621},15:{loc:{start:{line:626,column:8},end:{line:629,column:9}},type:"if",locations:[{start:{line:626,column:8},end:{line:629,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:626},16:{loc:{start:{line:653,column:25},end:{line:653,column:71}},type:"binary-expr",locations:[{start:{line:653,column:25},end:{line:653,column:45}},{start:{line:653,column:49},end:{line:653,column:71}}],line:653},17:{loc:{start:{line:657,column:33},end:{line:657,column:49}},type:"default-arg",locations:[{start:{line:657,column:47},end:{line:657,column:49}}],line:657},18:{loc:{start:{line:658,column:6},end:{line:691,column:7}},type:"if",locations:[{start:{line:658,column:6},end:{line:691,column:7}},{start:{line:665,column:13},end:{line:691,column:7}}],line:658},19:{loc:{start:{line:698,column:6},end:{line:705,column:7}},type:"if",locations:[{start:{line:698,column:6},end:{line:705,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:698},20:{loc:{start:{line:700,column:8},end:{line:704,column:9}},type:"if",locations:[{start:{line:700,column:8},end:{line:704,column:9}},{start:{line:702,column:15},end:{line:704,column:9}}],line:700},21:{loc:{start:{line:708,column:6},end:{line:710,column:7}},type:"if",locations:[{start:{line:708,column:6},end:{line:710,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:708},22:{loc:{start:{line:713,column:10},end:{line:714,column:32}},type:"binary-expr",locations:[{start:{line:713,column:11},end:{line:713,column:36}},{start:{line:713,column:40},end:{line:713,column:64}},{start:{line:714,column:10},end:{line:714,column:32}}],line:713},23:{loc:{start:{line:718,column:6},end:{line:729,column:7}},type:"switch",locations:[{start:{line:719,column:8},end:{line:722,column:15}},{start:{line:723,column:8},end:{line:728,column:15}}],line:718},24:{loc:{start:{line:732,column:8},end:{line:734,column:9}},type:"if",locations:[{start:{line:732,column:8},end:{line:734,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:732},25:{loc:{start:{line:737,column:33},end:{line:737,column:62}},type:"default-arg",locations:[{start:{line:737,column:43},end:{line:737,column:62}}],line:737},26:{loc:{start:{line:740,column:34},end:{line:740,column:51}},type:"binary-expr",locations:[{start:{line:740,column:34},end:{line:740,column:44}},{start:{line:740,column:48},end:{line:740,column:51}}],line:740},27:{loc:{start:{line:763,column:6},end:{line:767,column:7}},type:"if",locations:[{start:{line:763,column:6},end:{line:767,column:7}},{start:{line:765,column:13},end:{line:767,column:7}}],line:763},28:{loc:{start:{line:772,column:6},end:{line:785,column:7}},type:"if",locations:[{start:{line:772,column:6},end:{line:785,column:7}},{start:{line:778,column:13},end:{line:785,column:7}}],line:772},29:{loc:{start:{line:773,column:8},end:{line:774,column:43}},type:"binary-expr",locations:[{start:{line:773,column:9},end:{line:773,column:22}},{start:{line:773,column:26},end:{line:773,column:39}},{start:{line:774,column:8},end:{line:774,column:43}}],line:773},30:{loc:{start:{line:778,column:13},end:{line:785,column:7}},type:"if",locations:[{start:{line:778,column:13},end:{line:785,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:778},31:{loc:{start:{line:779,column:8},end:{line:781,column:43}},type:"binary-expr",locations:[{start:{line:779,column:9},end:{line:779,column:22}},{start:{line:779,column:26},end:{line:779,column:39}},{start:{line:780,column:8},end:{line:780,column:22}},{start:{line:781,column:8},end:{line:781,column:43}}],line:779},32:{loc:{start:{line:789,column:6},end:{line:791,column:7}},type:"if",locations:[{start:{line:789,column:6},end:{line:791,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:789},33:{loc:{start:{line:789,column:10},end:{line:789,column:61}},type:"binary-expr",locations:[{start:{line:789,column:10},end:{line:789,column:23}},{start:{line:789,column:27},end:{line:789,column:61}}],line:789},34:{loc:{start:{line:792,column:6},end:{line:796,column:7}},type:"if",locations:[{start:{line:792,column:6},end:{line:796,column:7}},{start:{line:794,column:13},end:{line:796,column:7}}],line:792},35:{loc:{start:{line:803,column:10},end:{line:808,column:11}},type:"if",locations:[{start:{line:803,column:10},end:{line:808,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:803},36:{loc:{start:{line:809,column:10},end:{line:812,column:11}},type:"if",locations:[{start:{line:809,column:10},end:{line:812,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:809},37:{loc:{start:{line:813,column:10},end:{line:815,column:11}},type:"if",locations:[{start:{line:813,column:10},end:{line:815,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:813},38:{loc:{start:{line:869,column:23},end:{line:869,column:41}},type:"default-arg",locations:[{start:{line:869,column:37},end:{line:869,column:41}}],line:869},39:{loc:{start:{line:872,column:6},end:{line:875,column:7}},type:"if",locations:[{start:{line:872,column:6},end:{line:875,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:872},40:{loc:{start:{line:877,column:6},end:{line:879,column:7}},type:"if",locations:[{start:{line:877,column:6},end:{line:879,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:877},41:{loc:{start:{line:883,column:6},end:{line:885,column:7}},type:"if",locations:[{start:{line:883,column:6},end:{line:885,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:883},42:{loc:{start:{line:898,column:6},end:{line:903,column:7}},type:"if",locations:[{start:{line:898,column:6},end:{line:903,column:7}},{start:{line:900,column:13},end:{line:903,column:7}}],line:898},43:{loc:{start:{line:909,column:6},end:{line:914,column:7}},type:"if",locations:[{start:{line:909,column:6},end:{line:914,column:7}},{start:{line:912,column:13},end:{line:914,column:7}}],line:909},44:{loc:{start:{line:924,column:6},end:{line:1113,column:7}},type:"switch",locations:[{start:{line:925,column:8},end:{line:931,column:15}},{start:{line:932,column:8},end:{line:1019,column:15}},{start:{line:1020,column:8},end:{line:1031,column:15}},{start:{line:1032,column:8},end:{line:1034,column:15}},{start:{line:1035,column:8},end:{line:1038,column:15}},{start:{line:1039,column:8},end:{line:1045,column:15}},{start:{line:1046,column:8},end:{line:1048,column:15}},{start:{line:1049,column:8},end:{line:1083,column:15}},{start:{line:1084,column:8},end:{line:1095,column:15}},{start:{line:1096,column:8},end:{line:1098,column:15}},{start:{line:1099,column:8},end:{line:1108,column:15}},{start:{line:1109,column:8},end:{line:1112,column:15}}],line:924},45:{loc:{start:{line:928,column:10},end:{line:930,column:11}},type:"if",locations:[{start:{line:928,column:10},end:{line:930,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:928},46:{loc:{start:{line:933,column:10},end:{line:962,column:11}},type:"if",locations:[{start:{line:933,column:10},end:{line:962,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:933},47:{loc:{start:{line:933,column:14},end:{line:933,column:69}},type:"binary-expr",locations:[{start:{line:933,column:14},end:{line:933,column:27}},{start:{line:933,column:31},end:{line:933,column:69}}],line:933},48:{loc:{start:{line:934,column:12},end:{line:961,column:13}},type:"if",locations:[{start:{line:934,column:12},end:{line:961,column:13}},{start:{line:956,column:19},end:{line:961,column:13}}],line:934},49:{loc:{start:{line:965,column:10},end:{line:1018,column:11}},type:"switch",locations:[{start:{line:966,column:12},end:{line:980,column:19}},{start:{line:981,column:12},end:{line:982,column:31}},{start:{line:984,column:12},end:{line:985,column:45}},{start:{line:987,column:12},end:{line:987,column:30}},{start:{line:988,column:12},end:{line:988,column:27}},{start:{line:989,column:12},end:{line:1015,column:19}},{start:{line:1016,column:12},end:{line:1017,column:19}}],line:965},50:{loc:{start:{line:990,column:14},end:{line:996,column:15}},type:"if",locations:[{start:{line:990,column:14},end:{line:996,column:15}},{start:{line:993,column:21},end:{line:996,column:15}}],line:990},51:{loc:{start:{line:1001,column:14},end:{line:1014,column:15}},type:"if",locations:[{start:{line:1001,column:14},end:{line:1014,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1001},52:{loc:{start:{line:1003,column:27},end:{line:1003,column:62}},type:"cond-expr",locations:[{start:{line:1003,column:46},end:{line:1003,column:58}},{start:{line:1003,column:61},end:{line:1003,column:62}}],line:1003},53:{loc:{start:{line:1011,column:16},end:{line:1013,column:17}},type:"if",locations:[{start:{line:1011,column:16},end:{line:1013,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1011},54:{loc:{start:{line:1024,column:12},end:{line:1026,column:13}},type:"if",locations:[{start:{line:1024,column:12},end:{line:1026,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1024},55:{loc:{start:{line:1041,column:10},end:{line:1044,column:11}},type:"if",locations:[{start:{line:1041,column:10},end:{line:1044,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1041},56:{loc:{start:{line:1053,column:12},end:{line:1060,column:13}},type:"if",locations:[{start:{line:1053,column:12},end:{line:1060,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1053},57:{loc:{start:{line:1054,column:14},end:{line:1055,column:47}},type:"binary-expr",locations:[{start:{line:1054,column:14},end:{line:1054,column:47}},{start:{line:1055,column:14},end:{line:1055,column:47}}],line:1054},58:{loc:{start:{line:1066,column:10},end:{line:1070,column:11}},type:"if",locations:[{start:{line:1066,column:10},end:{line:1070,column:11}},{start:{line:1068,column:17},end:{line:1070,column:11}}],line:1066},59:{loc:{start:{line:1071,column:10},end:{line:1075,column:11}},type:"if",locations:[{start:{line:1071,column:10},end:{line:1075,column:11}},{start:{line:1073,column:17},end:{line:1075,column:11}}],line:1071},60:{loc:{start:{line:1077,column:10},end:{line:1082,column:11}},type:"if",locations:[{start:{line:1077,column:10},end:{line:1082,column:11}},{start:{line:1080,column:17},end:{line:1082,column:11}}],line:1077},61:{loc:{start:{line:1086,column:12},end:{line:1092,column:13}},type:"if",locations:[{start:{line:1086,column:12},end:{line:1092,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1086},62:{loc:{start:{line:1087,column:14},end:{line:1088,column:47}},type:"binary-expr",locations:[{start:{line:1087,column:14},end:{line:1087,column:47}},{start:{line:1088,column:14},end:{line:1088,column:47}}],line:1087},63:{loc:{start:{line:1127,column:6},end:{line:1132,column:7}},type:"if",locations:[{start:{line:1127,column:6},end:{line:1132,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1127},64:{loc:{start:{line:1141,column:6},end:{line:1276,column:7}},type:"switch",locations:[{start:{line:1142,column:8},end:{line:1142,column:19}},{start:{line:1143,column:8},end:{line:1181,column:15}},{start:{line:1182,column:8},end:{line:1192,column:15}},{start:{line:1193,column:8},end:{line:1204,column:15}},{start:{line:1205,column:8},end:{line:1222,column:15}},{start:{line:1223,column:8},end:{line:1223,column:27}},{start:{line:1224,column:8},end:{line:1240,column:15}},{start:{line:1241,column:8},end:{line:1245,column:15}},{start:{line:1246,column:8},end:{line:1258,column:15}},{start:{line:1259,column:8},end:{line:1259,column:32}},{start:{line:1260,column:8},end:{line:1270,column:15}},{start:{line:1271,column:8},end:{line:1275,column:15}}],line:1141},65:{loc:{start:{line:1150,column:10},end:{line:1155,column:11}},type:"if",locations:[{start:{line:1150,column:10},end:{line:1155,column:11}},{start:{line:1152,column:17},end:{line:1155,column:11}}],line:1150},66:{loc:{start:{line:1150,column:14},end:{line:1150,column:77}},type:"binary-expr",locations:[{start:{line:1150,column:14},end:{line:1150,column:26}},{start:{line:1150,column:30},end:{line:1150,column:51}},{start:{line:1150,column:55},end:{line:1150,column:77}}],line:1150},67:{loc:{start:{line:1152,column:17},end:{line:1155,column:11}},type:"if",locations:[{start:{line:1152,column:17},end:{line:1155,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1152},68:{loc:{start:{line:1157,column:10},end:{line:1159,column:11}},type:"if",locations:[{start:{line:1157,column:10},end:{line:1159,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1157},69:{loc:{start:{line:1162,column:12},end:{line:1178,column:13}},type:"if",locations:[{start:{line:1162,column:12},end:{line:1178,column:13}},{start:{line:1170,column:19},end:{line:1178,column:13}}],line:1162},70:{loc:{start:{line:1185,column:10},end:{line:1187,column:11}},type:"if",locations:[{start:{line:1185,column:10},end:{line:1187,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1185},71:{loc:{start:{line:1194,column:10},end:{line:1196,column:11}},type:"if",locations:[{start:{line:1194,column:10},end:{line:1196,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1194},72:{loc:{start:{line:1194,column:14},end:{line:1194,column:52}},type:"binary-expr",locations:[{start:{line:1194,column:14},end:{line:1194,column:25}},{start:{line:1194,column:29},end:{line:1194,column:52}}],line:1194},73:{loc:{start:{line:1197,column:10},end:{line:1199,column:11}},type:"if",locations:[{start:{line:1197,column:10},end:{line:1199,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1197},74:{loc:{start:{line:1197,column:14},end:{line:1197,column:48}},type:"binary-expr",locations:[{start:{line:1197,column:14},end:{line:1197,column:25}},{start:{line:1197,column:29},end:{line:1197,column:48}}],line:1197},75:{loc:{start:{line:1206,column:10},end:{line:1208,column:11}},type:"if",locations:[{start:{line:1206,column:10},end:{line:1208,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1206},76:{loc:{start:{line:1206,column:14},end:{line:1206,column:52}},type:"binary-expr",locations:[{start:{line:1206,column:14},end:{line:1206,column:25}},{start:{line:1206,column:29},end:{line:1206,column:52}}],line:1206},77:{loc:{start:{line:1209,column:10},end:{line:1211,column:11}},type:"if",locations:[{start:{line:1209,column:10},end:{line:1211,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1209},78:{loc:{start:{line:1209,column:14},end:{line:1209,column:48}},type:"binary-expr",locations:[{start:{line:1209,column:14},end:{line:1209,column:25}},{start:{line:1209,column:29},end:{line:1209,column:48}}],line:1209},79:{loc:{start:{line:1212,column:10},end:{line:1214,column:11}},type:"if",locations:[{start:{line:1212,column:10},end:{line:1214,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1212},80:{loc:{start:{line:1212,column:14},end:{line:1212,column:49}},type:"binary-expr",locations:[{start:{line:1212,column:14},end:{line:1212,column:25}},{start:{line:1212,column:29},end:{line:1212,column:49}}],line:1212},81:{loc:{start:{line:1225,column:10},end:{line:1227,column:11}},type:"if",locations:[{start:{line:1225,column:10},end:{line:1227,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1225},82:{loc:{start:{line:1225,column:14},end:{line:1225,column:52}},type:"binary-expr",locations:[{start:{line:1225,column:14},end:{line:1225,column:25}},{start:{line:1225,column:29},end:{line:1225,column:52}}],line:1225},83:{loc:{start:{line:1228,column:10},end:{line:1230,column:11}},type:"if",locations:[{start:{line:1228,column:10},end:{line:1230,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1228},84:{loc:{start:{line:1228,column:14},end:{line:1228,column:48}},type:"binary-expr",locations:[{start:{line:1228,column:14},end:{line:1228,column:25}},{start:{line:1228,column:29},end:{line:1228,column:48}}],line:1228},85:{loc:{start:{line:1235,column:10},end:{line:1237,column:11}},type:"if",locations:[{start:{line:1235,column:10},end:{line:1237,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1235},86:{loc:{start:{line:1263,column:10},end:{line:1265,column:11}},type:"if",locations:[{start:{line:1263,column:10},end:{line:1265,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1263},87:{loc:{start:{line:1263,column:14},end:{line:1263,column:47}},type:"binary-expr",locations:[{start:{line:1263,column:14},end:{line:1263,column:25}},{start:{line:1263,column:29},end:{line:1263,column:47}}],line:1263},88:{loc:{start:{line:1266,column:10},end:{line:1268,column:11}},type:"if",locations:[{start:{line:1266,column:10},end:{line:1268,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1266},89:{loc:{start:{line:1283,column:6},end:{line:1300,column:7}},type:"if",locations:[{start:{line:1283,column:6},end:{line:1300,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1283},90:{loc:{start:{line:1303,column:18},end:{line:1303,column:79}},type:"cond-expr",locations:[{start:{line:1303,column:39},end:{line:1303,column:58}},{start:{line:1303,column:61},end:{line:1303,column:79}}],line:1303},91:{loc:{start:{line:1379,column:10},end:{line:1381,column:11}},type:"if",locations:[{start:{line:1379,column:10},end:{line:1381,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1379},92:{loc:{start:{line:1382,column:10},end:{line:1384,column:11}},type:"if",locations:[{start:{line:1382,column:10},end:{line:1384,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1382},93:{loc:{start:{line:1385,column:10},end:{line:1387,column:11}},type:"if",locations:[{start:{line:1385,column:10},end:{line:1387,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1385},94:{loc:{start:{line:1398,column:43},end:{line:1398,column:56}},type:"default-arg",locations:[{start:{line:1398,column:51},end:{line:1398,column:56}}],line:1398},95:{loc:{start:{line:1402,column:6},end:{line:1408,column:7}},type:"if",locations:[{start:{line:1402,column:6},end:{line:1408,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1402},96:{loc:{start:{line:1404,column:8},end:{line:1407,column:9}},type:"if",locations:[{start:{line:1404,column:8},end:{line:1407,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1404},97:{loc:{start:{line:1418,column:6},end:{line:1425,column:7}},type:"if",locations:[{start:{line:1418,column:6},end:{line:1425,column:7}},{start:{line:1422,column:13},end:{line:1425,column:7}}],line:1418},98:{loc:{start:{line:1426,column:6},end:{line:1429,column:7}},type:"if",locations:[{start:{line:1426,column:6},end:{line:1429,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1426},99:{loc:{start:{line:1435,column:19},end:{line:1435,column:32}},type:"default-arg",locations:[{start:{line:1435,column:26},end:{line:1435,column:32}}],line:1435},100:{loc:{start:{line:1437,column:6},end:{line:1452,column:7}},type:"if",locations:[{start:{line:1437,column:6},end:{line:1452,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1437},101:{loc:{start:{line:1438,column:8},end:{line:1451,column:9}},type:"if",locations:[{start:{line:1438,column:8},end:{line:1451,column:9}},{start:{line:1442,column:15},end:{line:1451,column:9}}],line:1438},102:{loc:{start:{line:1443,column:10},end:{line:1450,column:11}},type:"if",locations:[{start:{line:1443,column:10},end:{line:1450,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1443},103:{loc:{start:{line:1461,column:10},end:{line:1484,column:11}},type:"if",locations:[{start:{line:1461,column:10},end:{line:1484,column:11}},{start:{line:1479,column:17},end:{line:1484,column:11}}],line:1461},104:{loc:{start:{line:1462,column:12},end:{line:1470,column:13}},type:"if",locations:[{start:{line:1462,column:12},end:{line:1470,column:13}},{start:{line:1466,column:19},end:{line:1470,column:13}}],line:1462},105:{loc:{start:{line:1471,column:12},end:{line:1474,column:13}},type:"if",locations:[{start:{line:1471,column:12},end:{line:1474,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1471},106:{loc:{start:{line:1491,column:10},end:{line:1497,column:11}},type:"if",locations:[{start:{line:1491,column:10},end:{line:1497,column:11}},{start:{line:1494,column:17},end:{line:1497,column:11}}],line:1491},107:{loc:{start:{line:1507,column:6},end:{line:1510,column:7}},type:"if",locations:[{start:{line:1507,column:6},end:{line:1510,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1507},108:{loc:{start:{line:1515,column:6},end:{line:1517,column:7}},type:"if",locations:[{start:{line:1515,column:6},end:{line:1517,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1515},109:{loc:{start:{line:1532,column:10},end:{line:1538,column:11}},type:"if",locations:[{start:{line:1532,column:10},end:{line:1538,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1532},110:{loc:{start:{line:1589,column:6},end:{line:1616,column:7}},type:"if",locations:[{start:{line:1589,column:6},end:{line:1616,column:7}},{start:{line:1592,column:13},end:{line:1616,column:7}}],line:1589},111:{loc:{start:{line:1592,column:13},end:{line:1616,column:7}},type:"if",locations:[{start:{line:1592,column:13},end:{line:1616,column:7}},{start:{line:1602,column:13},end:{line:1616,column:7}}],line:1592},112:{loc:{start:{line:1602,column:13},end:{line:1616,column:7}},type:"if",locations:[{start:{line:1602,column:13},end:{line:1616,column:7}},{start:{line:1610,column:13},end:{line:1616,column:7}}],line:1602},113:{loc:{start:{line:1604,column:8},end:{line:1606,column:9}},type:"if",locations:[{start:{line:1604,column:8},end:{line:1606,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1604},114:{loc:{start:{line:1610,column:13},end:{line:1616,column:7}},type:"if",locations:[{start:{line:1610,column:13},end:{line:1616,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1610},115:{loc:{start:{line:1612,column:8},end:{line:1614,column:9}},type:"if",locations:[{start:{line:1612,column:8},end:{line:1614,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1612},116:{loc:{start:{line:1642,column:6},end:{line:1644,column:7}},type:"if",locations:[{start:{line:1642,column:6},end:{line:1644,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1642},117:{loc:{start:{line:1642,column:10},end:{line:1642,column:58}},type:"binary-expr",locations:[{start:{line:1642,column:10},end:{line:1642,column:40}},{start:{line:1642,column:44},end:{line:1642,column:58}}],line:1642},118:{loc:{start:{line:1652,column:8},end:{line:1655,column:9}},type:"if",locations:[{start:{line:1652,column:8},end:{line:1655,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1652}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0,203:0,204:0,205:0,206:0,207:0,208:0,209:0,210:0,211:0,212:0,213:0,214:0,215:0,216:0,217:0,218:0,219:0,220:0,221:0,222:0,223:0,224:0,225:0,226:0,227:0,228:0,229:0,230:0,231:0,232:0,233:0,234:0,235:0,236:0,237:0,238:0,239:0,240:0,241:0,242:0,243:0,244:0,245:0,246:0,247:0,248:0,249:0,250:0,251:0,252:0,253:0,254:0,255:0,256:0,257:0,258:0,259:0,260:0,261:0,262:0,263:0,264:0,265:0,266:0,267:0,268:0,269:0,270:0,271:0,272:0,273:0,274:0,275:0,276:0,277:0,278:0,279:0,280:0,281:0,282:0,283:0,284:0,285:0,286:0,287:0,288:0,289:0,290:0,291:0,292:0,293:0,294:0,295:0,296:0,297:0,298:0,299:0,300:0,301:0,302:0,303:0,304:0,305:0,306:0,307:0,308:0,309:0,310:0,311:0,312:0,313:0,314:0,315:0,316:0,317:0,318:0,319:0,320:0,321:0,322:0,323:0,324:0,325:0,326:0,327:0,328:0,329:0,330:0,331:0,332:0,333:0,334:0,335:0,336:0,337:0,338:0,339:0,340:0,341:0,342:0,343:0,344:0,345:0,346:0,347:0,348:0,349:0,350:0,351:0,352:0,353:0,354:0,355:0,356:0,357:0,358:0,359:0,360:0,361:0,362:0,363:0,364:0,365:0,366:0,367:0,368:0,369:0,370:0,371:0,372:0,373:0,374:0,375:0,376:0,377:0,378:0,379:0,380:0,381:0,382:0,383:0,384:0,385:0,386:0,387:0,388:0,389:0,390:0,391:0,392:0,393:0,394:0,395:0,396:0,397:0,398:0,399:0,400:0,401:0,402:0,403:0,404:0,405:0,406:0,407:0,408:0,409:0,410:0,411:0,412:0,413:0,414:0,415:0,416:0,417:0,418:0,419:0,420:0,421:0,422:0,423:0,424:0,425:0,426:0,427:0,428:0,429:0,430:0,431:0,432:0,433:0,434:0,435:0,436:0,437:0,438:0,439:0,440:0,441:0,442:0,443:0,444:0,445:0,446:0,447:0,448:0,449:0,450:0,451:0,452:0,453:0,454:0,455:0,456:0,457:0,458:0,459:0,460:0,461:0,462:0,463:0,464:0,465:0,466:0,467:0,468:0,469:0,470:0,471:0,472:0,473:0,474:0,475:0,476:0,477:0,478:0,479:0,480:0,481:0,482:0,483:0,484:0,485:0,486:0,487:0,488:0,489:0,490:0,491:0,492:0,493:0,494:0,495:0,496:0,497:0,498:0,499:0,500:0,501:0,502:0,503:0,504:0,505:0,506:0,507:0,508:0,509:0,510:0,511:0,512:0,513:0,514:0,515:0,516:0,517:0,518:0,519:0,520:0,521:0,522:0,523:0,524:0,525:0,526:0,527:0,528:0,529:0,530:0,531:0,532:0,533:0,534:0,535:0,536:0,537:0,538:0,539:0,540:0,541:0,542:0,543:0,544:0,545:0,546:0,547:0,548:0,549:0,550:0,551:0,552:0,553:0,554:0,555:0,556:0,557:0,558:0,559:0,560:0,561:0,562:0,563:0,564:0,565:0,566:0,567:0,568:0,569:0,570:0,571:0,572:0,573:0,574:0,575:0,576:0,577:0,578:0,579:0,580:0,581:0,582:0,583:0,584:0,585:0,586:0,587:0,588:0,589:0,590:0,591:0,592:0,593:0,594:0,595:0,596:0,597:0,598:0,599:0,600:0,601:0,602:0,603:0,604:0,605:0,606:0,607:0,608:0,609:0,610:0,611:0,612:0,613:0,614:0,615:0,616:0,617:0,618:0,619:0,620:0,621:0,622:0,623:0,624:0,625:0,626:0,627:0,628:0,629:0,630:0,631:0,632:0,633:0,634:0,635:0,636:0,637:0,638:0,639:0,640:0,641:0,642:0,643:0,644:0,645:0,646:0,647:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0,0],23:[0,0],24:[0,0],25:[0],26:[0,0],27:[0,0],28:[0,0],29:[0,0,0],30:[0,0],31:[0,0,0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0,0,0,0,0,0,0,0,0,0,0],45:[0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0,0,0,0,0,0],50:[0,0],51:[0,0],52:[0,0],53:[0,0],54:[0,0],55:[0,0],56:[0,0],57:[0,0],58:[0,0],59:[0,0],60:[0,0],61:[0,0],62:[0,0],63:[0,0],64:[0,0,0,0,0,0,0,0,0,0,0,0],65:[0,0],66:[0,0,0],67:[0,0],68:[0,0],69:[0,0],70:[0,0],71:[0,0],72:[0,0],73:[0,0],74:[0,0],75:[0,0],76:[0,0],77:[0,0],78:[0,0],79:[0,0],80:[0,0],81:[0,0],82:[0,0],83:[0,0],84:[0,0],85:[0,0],86:[0,0],87:[0,0],88:[0,0],89:[0,0],90:[0,0],91:[0,0],92:[0,0],93:[0,0],94:[0],95:[0,0],96:[0,0],97:[0,0],98:[0,0],99:[0],100:[0,0],101:[0,0],102:[0,0],103:[0,0],104:[0,0],105:[0,0],106:[0,0],107:[0,0],108:[0,0],109:[0,0],110:[0,0],111:[0,0],112:[0,0],113:[0,0],114:[0,0],115:[0,0],116:[0,0],117:[0,0],118:[0,0]},inputSourceMap:{version:3,sources:["ScriptRunner.vue"],names:[],mappings:";AAmYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n <v-snackbar v-model=\"showAlert\" top :color=\"alertType\" :timeout=\"3000\">\n <v-icon> mdi-{{ alertType }} </v-icon>\n {{ alertText }}\n <template v-slot:action=\"{ attrs }\">\n <v-btn text v-bind=\"attrs\" @click=\"showAlert = false\"> Close </v-btn>\n </template>\n </v-snackbar>\n <v-snackbar v-model=\"showReadOnlyToast\" top :timeout=\"-1\" color=\"orange\">\n <v-icon> mdi-pencil-off </v-icon>\n {{ lockedBy }} is editing this script. Editor is in read-only mode\n <template v-slot:action=\"{ attrs }\">\n <v-btn\n text\n v-bind=\"attrs\"\n color=\"danger\"\n @click=\"confirmLocalUnlock\"\n data-test=\"unlock-button\"\n >\n Unlock\n </v-btn>\n <v-btn\n text\n v-bind=\"attrs\"\n @click=\"\n () => {\n showReadOnlyToast = false\n }\n \"\n >\n dismiss\n </v-btn>\n </template>\n </v-snackbar>\n <div class=\"grid\">\n <div\n class=\"item\"\n v-for=\"def in screens\"\n :key=\"def.id\"\n :id=\"screenId(def.id)\"\n ref=\"gridItem\"\n >\n <div class=\"item-content\">\n <openc3-screen\n :target=\"def.target\"\n :screen=\"def.screen\"\n :definition=\"def.definition\"\n :keywords=\"screenKeywords\"\n :initialFloated=\"true\"\n :initialTop=\"def.top\"\n :initialLeft=\"def.left\"\n :initialZ=\"3\"\n :minZ=\"3\"\n :fixFloated=\"true\"\n :count=\"def.count\"\n @close-screen=\"closeScreen(def.id)\"\n @delete-screen=\"closeScreen(def.id)\"\n />\n </div>\n </div>\n </div>\n <suite-runner\n v-if=\"suiteRunner\"\n :suite-map=\"suiteMap\"\n :disable-buttons=\"disableSuiteButtons\"\n @button=\"suiteRunnerButton\"\n />\n <div id=\"sr-controls\">\n <v-row no-gutters justify=\"space-between\">\n <v-icon v-if=\"showDisconnect\" class=\"mr-2\" color=\"red\">\n mdi-connection\n </v-icon>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n icon\n @click=\"reloadFile\"\n :disabled=\"filename === NEW_FILENAME\"\n >\n <v-icon>mdi-cached</v-icon>\n </v-btn>\n </template>\n <span> Reload File </span>\n </v-tooltip>\n <v-select\n v-model=\"filenameSelect\"\n @change=\"fileNameChanged\"\n :items=\"fileList\"\n :disabled=\"fileList.length <= 1\"\n label=\"Filename\"\n id=\"filename\"\n data-test=\"filename\"\n style=\"width: 300px\"\n dense\n outlined\n hide-details\n />\n <v-text-field\n v-model=\"scriptId\"\n label=\"Script ID\"\n data-test=\"id\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 100px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-text-field\n v-model=\"state\"\n label=\"Script State\"\n data-test=\"state\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 120px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-progress-circular\n v-if=\"state === 'Connecting...'\"\n :size=\"40\"\n class=\"ml-2 mr-2\"\n indeterminate\n color=\"primary\"\n />\n <div v-else style=\"width: 40px; height: 40px\" class=\"ml-2 mr-2\"></div>\n\n \x3c!-- Disable the Start button when Suite Runner controls are showing --\x3e\n <v-spacer />\n <div v-if=\"startOrGoButton === 'Start'\">\n <v-btn\n @click=\"startHandler\"\n class=\"mx-1\"\n color=\"primary\"\n data-test=\"start-button\"\n :disabled=\"startOrGoDisabled\"\n >\n <span> Start </span>\n </v-btn>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n @click=\"scriptEnvironment.show = !scriptEnvironment.show\"\n class=\"mx-1\"\n data-test=\"env-button\"\n :color=\"environmentIconColor\"\n :disabled=\"envDisabled\"\n >\n <v-icon> {{ environmentIcon }} </v-icon>\n </v-btn>\n </template>\n <span>Script Environment</span>\n </v-tooltip>\n </div>\n <div v-else>\n <v-btn\n @click=\"go\"\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"startOrGoDisabled\"\n data-test=\"go-button\"\n >\n Go\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"pauseOrRetry\"\n class=\"mr-2\"\n :disabled=\"pauseOrRetryDisabled\"\n data-test=\"pause-retry-button\"\n >\n {{ pauseOrRetryButton }}\n </v-btn>\n\n <v-btn\n color=\"primary\"\n @click=\"stop\"\n data-test=\"stop-button\"\n :disabled=\"stopDisabled\"\n >\n Stop\n </v-btn>\n </div>\n </v-row>\n </div>\n \x3c!-- Create Multipane container to support resizing.\n NOTE: We listen to paneResize event and call editor.resize() to prevent weird sizing issues,\n The event must be paneResize and not pane-resize --\x3e\n <multipane\n class=\"horizontal-panes\"\n layout=\"horizontal\"\n @paneResize=\"editor.resize()\"\n >\n <div class=\"editorbox pane\">\n <v-snackbar\n v-model=\"showSave\"\n absolute\n top\n right\n :timeout=\"-1\"\n class=\"saving\"\n >\n Saving...\n </v-snackbar>\n <pre\n ref=\"editor\"\n class=\"editor\"\n @contextmenu.prevent=\"showExecuteSelectionMenu\"\n ></pre>\n <v-menu\n v-model=\"executeSelectionMenu\"\n :position-x=\"menuX\"\n :position-y=\"menuY\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"item in executeSelectionMenuItems\"\n :key=\"item.label\"\n :disabled=\"scriptRunning\"\n >\n <v-list-item-title @click=\"item.command\">\n {{ item.label }}\n </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n </div>\n <multipane-resizer><hr /></multipane-resizer>\n <div id=\"messages\" class=\"mt-2 pane\" ref=\"messagesDiv\">\n <div id=\"debug\" class=\"pa-0\" v-if=\"showDebug\">\n <v-row no-gutters>\n <v-btn\n color=\"primary\"\n @click=\"step\"\n style=\"width: 100px\"\n class=\"mr-4\"\n :disabled=\"!scriptRunning\"\n data-test=\"step-button\"\n >\n Step\n <v-icon right> mdi-step-forward </v-icon>\n </v-btn>\n <v-text-field\n class=\"mb-2\"\n outlined\n dense\n hide-details\n label=\"Debug\"\n v-model=\"debug\"\n @keydown=\"debugKeydown\"\n data-test=\"debug-text\"\n />\n </v-row>\n </div>\n <script-log-messages v-model=\"messages\" />\n </div>\n </multipane>\n \x3c!--- MENUS ---\x3e\n <file-open-save-dialog\n v-if=\"fileOpen\"\n v-model=\"fileOpen\"\n type=\"open\"\n api-url=\"/script-api/scripts\"\n @file=\"setFile($event)\"\n @error=\"setError($event)\"\n />\n <file-open-save-dialog\n v-if=\"showSaveAs\"\n v-model=\"showSaveAs\"\n type=\"save\"\n api-url=\"/script-api/scripts\"\n require-target-parent-dir\n :input-filename=\"filenameOrBlank\"\n @filename=\"saveAsFilename($event)\"\n @error=\"setError($event)\"\n />\n <environment-dialog v-if=\"showEnvironment\" v-model=\"showEnvironment\" />\n <ask-dialog\n v-if=\"ask.show\"\n v-model=\"ask.show\"\n :question=\"ask.question\"\n :default=\"ask.default\"\n :password=\"ask.password\"\n :answer-required=\"ask.answerRequired\"\n @response=\"ask.callback\"\n />\n <file-dialog\n v-if=\"file.show\"\n v-model=\"file.show\"\n :title=\"file.title\"\n :message=\"file.message\"\n :multiple=\"file.multiple\"\n :filter=\"file.filter\"\n @response=\"fileDialogCallback\"\n />\n <information-dialog\n v-if=\"information.show\"\n v-model=\"information.show\"\n :title=\"information.title\"\n :text=\"information.text\"\n />\n <event-list-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :events=\"inputMetadata.events\"\n :utc=\"false\"\n new-metadata\n @close=\"inputMetadata.callback\"\n />\n <overrides-dialog v-if=\"showOverrides\" v-model=\"showOverrides\" />\n <prompt-dialog\n v-if=\"prompt.show\"\n v-model=\"prompt.show\"\n :title=\"prompt.title\"\n :subtitle=\"prompt.subtitle\"\n :message=\"prompt.message\"\n :details=\"prompt.details\"\n :buttons=\"prompt.buttons\"\n :layout=\"prompt.layout\"\n :multiple=\"prompt.multiple\"\n @response=\"prompt.callback\"\n />\n <results-dialog\n v-if=\"results.show\"\n v-model=\"results.show\"\n :text=\"results.text\"\n />\n <script-environment-dialog\n v-if=\"scriptEnvironment.show\"\n v-model=\"scriptEnvironment.show\"\n :input-environment=\"scriptEnvironment.env\"\n @environment=\"environmentHandler\"\n />\n <simple-text-dialog\n v-model=\"showSuiteError\"\n title=\"Suite Analysis Error\"\n :text=\"suiteError\"\n :width=\"1000\"\n />\n <v-bottom-sheet v-model=\"showScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n v-if=\"showScripts\"\n :connect-in-new-tab=\"!!fileModified\"\n @close=\"\n () => {\n showScripts = false\n }\n \"\n />\n </v-sheet>\n </v-bottom-sheet>\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nimport Cable from '@openc3/tool-common/src/services/cable.js'\nimport Api from '@openc3/tool-common/src/services/api'\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\nimport 'ace-builds/src-min-noconflict/ext-language_tools'\nimport 'ace-builds/src-min-noconflict/ext-searchbox'\nimport { format } from 'date-fns'\nimport { Multipane, MultipaneResizer } from 'vue-multipane'\nimport FileOpenSaveDialog from '@openc3/tool-common/src/components/FileOpenSaveDialog'\nimport EnvironmentDialog from '@openc3/tool-common/src/components/EnvironmentDialog'\nimport SimpleTextDialog from '@openc3/tool-common/src/components/SimpleTextDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nimport AskDialog from '@/tools/ScriptRunner/Dialogs/AskDialog'\nimport FileDialog from '@/tools/ScriptRunner/Dialogs/FileDialog'\nimport InformationDialog from '@/tools/ScriptRunner/Dialogs/InformationDialog'\nimport EventListDialog from '@openc3/tool-common/src/tools/calendar/Dialogs/EventListDialog'\nimport OverridesDialog from '@/tools/ScriptRunner/Dialogs/OverridesDialog'\nimport PromptDialog from '@/tools/ScriptRunner/Dialogs/PromptDialog'\nimport ResultsDialog from '@/tools/ScriptRunner/Dialogs/ResultsDialog'\nimport ScriptEnvironmentDialog from '@/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog'\nimport SuiteRunner from '@/tools/ScriptRunner/SuiteRunner'\nimport ScriptLogMessages from '@/tools/ScriptRunner/ScriptLogMessages'\nimport Openc3Screen from '@openc3/tool-common/src/components/Openc3Screen'\nimport {\n CmdCompleter,\n TlmCompleter,\n MnemonicChecker,\n} from '@/tools/ScriptRunner/autocomplete'\nimport { SleepAnnotator } from '@/tools/ScriptRunner/annotations'\nimport RunningScripts from './RunningScripts.vue'\n\n// Matches target_file.rb TEMP_FOLDER\nconst TEMP_FOLDER = '__TEMP__'\nconst NEW_FILENAME = '<Untitled>'\nconst START = 'Start'\nconst GO = 'Go'\nconst PAUSE = 'Pause'\nconst RETRY = 'Retry'\n\nexport default {\n components: {\n FileOpenSaveDialog,\n Openc3Screen,\n EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n FileDialog,\n InformationDialog,\n EventListDialog,\n OverridesDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: 'COSMOS Script Runner',\n suiteRunner: false, // Whether to display the SuiteRunner GUI\n disableSuiteButtons: false,\n suiteMap: {\n // Useful for testing the various options in the SuiteRunner GUI\n // Suite: {\n // teardown: true,\n // groups: {\n // Group: {\n // setup: true,\n // cases: ['case1', 'case2', 'really_long_test_case_name3'],\n // },\n // ReallyLongGroupName: {\n // cases: ['case1', 'case2', 'case3'],\n // },\n // },\n // },\n },\n filenameSelect: null,\n currentFilename: null,\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: null,\n scriptId: null,\n startOrGoButton: START,\n startOrGoDisabled: false,\n envDisabled: false,\n pauseOrRetryButton: PAUSE,\n pauseOrRetryDisabled: false,\n stopDisabled: false,\n showEnvironment: false,\n showDebug: false,\n debug: '',\n debugHistory: [],\n debugHistoryIndex: 0,\n showDisconnect: false,\n files: {},\n breakpoints: {},\n filename: NEW_FILENAME,\n tempFilename: null,\n fileModified: '',\n fileOpen: false,\n lockedBy: null,\n showReadOnlyToast: false,\n showSaveAs: false,\n areYouSure: false,\n subscription: null,\n cable: null,\n fatal: false,\n messages: [],\n maxArrayLength: 200,\n Range: ace.require('ace/range').Range,\n ask: {\n show: false,\n question: '',\n default: null,\n password: false,\n answerRequired: true,\n callback: () => {},\n },\n file: {\n show: false,\n message: '',\n directory: null,\n filter: '*',\n multiple: false,\n callback: () => {},\n },\n prompt: {\n show: false,\n title: '',\n subtitle: '',\n message: '',\n details: '',\n buttons: null,\n layout: 'horizontal',\n callback: () => {},\n },\n information: {\n show: false,\n title: '',\n text: [],\n },\n inputMetadata: {\n show: false,\n events: [],\n callback: () => {},\n },\n results: {\n show: false,\n text: '',\n },\n scriptEnvironment: {\n show: false,\n env: [],\n },\n showSuiteError: false,\n suiteError: '',\n executeSelectionMenu: false,\n menuX: 0,\n menuY: 0,\n mnemonicChecker: new MnemonicChecker(),\n showScripts: false,\n showOverrides: false,\n activePromptId: '',\n api: null,\n screens: [],\n screenKeywords: null,\n idCounter: 0,\n updateCounter: 0,\n }\n },\n computed: {\n scriptRunning: function () {\n if (this.startOrGoButton == START) {\n return false\n } else {\n return true\n }\n },\n fileList: function () {\n const filenames = Object.keys(this.files)\n filenames.push(this.fullFilename)\n return [...new Set(filenames)] // ensure unique\n },\n environmentIcon: function () {\n return this.scriptEnvironment.env.length > 0\n ? 'mdi-bookmark'\n : 'mdi-bookmark-outline'\n },\n environmentIconColor: function () {\n return this.scriptEnvironment.env.length > 0 ? 'primary' : ''\n },\n readOnly: function () {\n return !!this.lockedBy\n },\n fullFilename: function () {\n if (this.currentFilename) return this.currentFilename\n return `${this.filename} ${this.fileModified}`.trim()\n },\n // It's annoying for people (and tests) to clear the <Untitled>\n // when saving a new file so replace with blank\n filenameOrBlank: function () {\n return this.filename === NEW_FILENAME ? '' : this.filename\n },\n menus: function () {\n return [\n {\n label: 'File',\n items: [\n {\n label: 'New File',\n icon: 'mdi-file-plus',\n disabled: this.scriptId,\n command: () => {\n this.newFile()\n },\n },\n {\n label: 'New Test Suite',\n icon: 'mdi-file-plus',\n disabled: this.scriptId,\n command: () => {\n this.newTestSuite()\n },\n },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n disabled: this.scriptId,\n command: () => {\n this.openFile()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n disabled: this.scriptId,\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\n disabled: this.scriptId,\n command: () => {\n this.delete()\n },\n },\n ],\n },\n {\n label: 'Edit',\n items: [\n {\n label: 'Find',\n icon: 'mdi-magnify',\n command: () => {\n this.editor.execCommand('find')\n },\n },\n {\n label: 'Replace',\n icon: 'mdi-find-replace',\n disabled: this.scriptId,\n command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'Execution Status',\n icon: 'mdi-run',\n command: () => {\n this.showScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Global Environment',\n icon: 'mdi-library',\n disabled: this.scriptId,\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Metadata',\n icon: 'mdi-calendar',\n disabled: this.scriptId,\n command: () => {\n this.inputMetadata.callback = () => {}\n this.showMetadata()\n },\n },\n {\n label: 'Overrides',\n icon: 'mdi-swap-horizontal',\n command: () => {\n this.showOverrides = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Ruby Syntax Check',\n icon: 'mdi-language-ruby',\n disabled: this.scriptId,\n command: () => {\n this.rubySyntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n disabled: this.scriptId,\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'Instrumented Script',\n icon: 'mdi-code-braces-box',\n disabled: this.scriptId,\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId,\n command: () => {\n this.showCallStack()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Toggle Debug',\n icon: 'mdi-bug',\n command: () => {\n this.toggleDebug()\n },\n },\n {\n label: 'Toggle Disconnect',\n icon: 'mdi-connection',\n disabled: this.scriptId,\n command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\n disabled: this.scriptId,\n command: () => {\n this.deleteAllBreakpoints()\n },\n },\n ],\n },\n ]\n },\n executeSelectionMenuItems: function () {\n return [\n {\n label: 'Execute selection',\n command: this.executeSelection,\n },\n {\n label: 'Run from here',\n command: this.runFromCursor,\n },\n {\n label: 'Clear these breakpoints',\n command: this.clearBreakpoints,\n },\n ]\n },\n },\n watch: {\n readOnly: function (val) {\n this.showReadOnlyToast = val\n if (!this.suiteRunner) {\n this.startOrGoDisabled = val\n }\n this.editor.setReadOnly(val)\n },\n fullFilename: function (filename) {\n this.filenameSelect = filename\n },\n },\n created: function () {\n // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n\n // Make NEW_FILENAME available to the template\n this.NEW_FILENAME = NEW_FILENAME\n window.onbeforeunload = this.unlockFile\n\n Api.get('/openc3-api/autocomplete/keywords/screen').then((response) => {\n this.screenKeywords = response.data\n })\n },\n mounted: async function () {\n this.editor = ace.edit(this.$refs.editor)\n this.editor.setTheme('ace/theme/twilight')\n const openC3Mode = this.buildOpenC3Mode()\n this.editor.session.setMode(new openC3Mode())\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.$blockScrolling = Infinity\n this.editor.setOption('enableBasicAutocompletion', true)\n this.editor.setOption('enableLiveAutocompletion', true)\n this.editor.completers = [new CmdCompleter(), new TlmCompleter()]\n this.editor.setHighlightActiveLine(false)\n this.editor.focus()\n this.editor.on('guttermousedown', this.toggleBreakpoint)\n // We listen to tokenizerUpdate rather than change because this\n // is the background process that updates as changes are processed\n // while change fires immediately before the UndoManager is updated.\n this.editor.session.on('tokenizerUpdate', this.onChange)\n\n const sleepAnnotator = new SleepAnnotator(this.editor)\n this.editor.session.on('change', ($event, session) => {\n sleepAnnotator.annotate($event, session)\n this.updateBreakpoints($event, session)\n })\n\n window.addEventListener('keydown', this.keydown)\n this.cable = new Cable('/script-api/cable')\n await this.tryLoadRunningScript(this.$route.params.id)\n this.autoSaveInterval = setInterval(async () => {\n // Only save if not-running, modified, and visible (e.g. not open in another tab)\n if (\n !this.scriptId &&\n this.fileModified.length > 0 &&\n document.visibilityState === 'visible'\n ) {\n await this.saveFile('auto')\n }\n }, 60000) // Save every minute\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n destroyed() {\n this.unlockFile()\n if (this.autoSaveInterval != null) {\n clearInterval(this.autoSaveInterval)\n }\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n beforeRouteUpdate: function (to, from, next) {\n if (to.params.id) {\n this.tryLoadRunningScript(to.params.id).then(next)\n } else {\n next()\n }\n },\n methods: {\n showMetadata() {\n Api.get('/openc3-api/metadata').then((response) => {\n // TODO: This is how Calendar creates new metadata items via makeMetadataEvent\n this.inputMetadata.events = response.data.map((event) => {\n return {\n name: 'Metadata',\n start: new Date(event.start * 1000),\n end: new Date(event.start * 1000),\n color: event.color,\n type: event.type,\n timed: true,\n metadata: event,\n }\n })\n this.inputMetadata.show = true\n })\n },\n buildOpenC3Mode() {\n var oop = ace.require('ace/lib/oop')\n var RubyHighlightRules = ace.require(\n 'ace/mode/ruby_highlight_rules'\n ).RubyHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n RubyHighlightRules.call(this)\n // add openc3 rules to the ruby rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, RubyHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent'\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle'\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/ruby').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var RubyMode = ace.require('ace/mode/ruby').Mode\n oop.inherits(Mode, RubyMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n // This only gets called when the user changes the filename dropdown\n fileNameChanged(filename) {\n // Split off the '*' which indicates modified\n filename = filename.split('*')[0]\n this.editor.setValue(this.files[filename].content)\n this.restoreBreakpoints(filename)\n this.editor.clearSelection()\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(\n this.files[filename].lineNo - 1,\n 0,\n this.files[filename].lineNo - 1,\n 1\n ),\n `${this.state}Marker`,\n 'fullLine'\n )\n this.editor.gotoLine(this.files[filename].lineNo)\n },\n tryLoadRunningScript: function (id) {\n return Api.get('/script-api/running-script').then((response) => {\n const loadRunningScript = response.data.find(\n (s) => `${s.id}` === `${id}`\n )\n if (loadRunningScript) {\n this.filename = loadRunningScript.name\n this.tryLoadSuites()\n this.scriptStart(loadRunningScript.id)\n } else if (id) {\n this.$notify.caution({\n title: `Running Script ${id} not found`,\n body: 'Check the Completed Scripts below ...',\n })\n this.showScripts = true\n } else {\n if (response.data.length !== 0) {\n this.alertType = 'success'\n this.alertText = `Currently ${response.data.length} running scripts.`\n this.showAlert = true\n }\n }\n })\n },\n tryLoadSuites: function () {\n Api.get(`/script-api/scripts/${this.filename}`).then((response) => {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = response.data.success == false\n })\n },\n showExecuteSelectionMenu: function ($event) {\n this.menuX = $event.pageX\n this.menuY = $event.pageY\n this.executeSelectionMenu = true\n },\n runFromCursor: function () {\n const start = this.editor.getCursorPosition().row\n const text = this.editor.session.doc\n .getLines(start, this.editor.session.doc.getLength())\n .join('\\n')\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row >= start)\n .map((row) => row - start)\n this.executeText(text, breakpoints)\n },\n executeSelection: function () {\n const text = this.editor.getSelectedText()\n const range = this.editor.getSelectionRange()\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row <= range.end.row && row >= range.start.row)\n .map((row) => row - range.start.row)\n this.executeText(text, breakpoints)\n },\n executeText: function (text, breakpoints = []) {\n if (this.state === 'error') {\n // Execute via debugger\n const lines = text.split('\\n')\n for (const line of lines) {\n this.debug = line.trim()\n this.debugKeydown({ key: 'Enter' })\n }\n } else {\n // Create a new temp script and open in new tab\n const selectionTempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n Api.post(`/script-api/scripts/${selectionTempFilename}`, {\n data: {\n text,\n breakpoints,\n },\n })\n .then((response) => {\n return Api.post(\n `/script-api/scripts/${selectionTempFilename}/run`,\n {\n data: {\n environment: this.scriptEnvironment.env,\n },\n }\n )\n })\n .then((response) => {\n window.open(`/tools/scriptrunner/${response.data}`)\n })\n }\n },\n clearBreakpoints: function () {\n this.editor.session.clearBreakpoints()\n },\n toggleBreakpoint: function ($event) {\n // Don't allow setting breakpoints while running\n if (!this.scriptId) {\n const row = $event.getDocumentPosition().row\n if ($event.editor.session.getBreakpoints(row, 0)[row]) {\n $event.editor.session.clearBreakpoint(row)\n } else {\n $event.editor.session.setBreakpoint(row)\n }\n }\n },\n updateBreakpoints: function ($event, session) {\n if ($event.lines.length <= 1) {\n return\n }\n const rowsToUpdate = this.getBreakpointRows(session).filter(\n (row) =>\n ($event.start.column === 0 && row === $event.start.row) ||\n row > $event.start.row\n )\n let rowsToDelete = []\n let offset = 0\n switch ($event.action) {\n case 'insert':\n offset = $event.lines.length - 1\n rowsToUpdate.reverse() // shift the lower ones down out of the way first\n break\n case 'remove':\n offset = -$event.lines.length + 1\n rowsToDelete = [...Array($event.lines.length).keys()].map(\n (row) => row + $event.start.row\n )\n break\n }\n rowsToUpdate.forEach((row) => {\n session.clearBreakpoint(row)\n if (!rowsToDelete.includes(row)) {\n session.setBreakpoint(row + offset)\n }\n })\n },\n getBreakpointRows: function (session = this.editor.session) {\n return session\n .getBreakpoints()\n .map((breakpoint, row) => breakpoint && row) // [empty, 'ace_breakpoint', 'ace_breakpoint', empty] -> [empty, 1, 2, empty]\n .filter(Number.isInteger) // [empty, 1, 2, empty] -> [1, 2]\n },\n restoreBreakpoints: function (filename) {\n this.clearBreakpoints()\n this.breakpoints[filename]?.forEach((breakpoint) => {\n this.editor.session.setBreakpoint(breakpoint)\n })\n },\n deleteAllBreakpoints: function () {\n this.$dialog\n .confirm('Permanently delete all breakpoints for ALL scripts?', {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete('/script-api/breakpoints/delete/all')\n })\n .then((response) => {\n this.clearBreakpoints()\n })\n },\n suiteRunnerButton(event) {\n if (this.startOrGoButton === START) {\n this.start(event, 'suiteRunner')\n } else {\n this.go(event, 'suiteRunner')\n }\n },\n async keydown(event) {\n // NOTE: Chrome does not allow overriding Ctrl-N, Ctrl-Shift-N, Ctrl-T, Ctrl-Shift-T, Ctrl-W\n // NOTE: metaKey == Command on Mac\n if (\n (event.metaKey || event.ctrlKey) &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n await this.saveFile()\n } else if (\n (event.metaKey || event.ctrlKey) &&\n event.shiftKey &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n this.saveAs()\n }\n },\n onChange(event) {\n // Don't track changes when we're running or read-only (locked)\n if (this.scriptId || this.editor.getReadOnly() === true) {\n return\n }\n if (this.editor.session.getUndoManager().canUndo()) {\n this.fileModified = '*'\n } else {\n this.fileModified = ''\n }\n },\n checkMnemonics: function () {\n this.mnemonicChecker\n .checkText(this.editor.getValue())\n .then(({ skipped, problems }) => {\n let alertText = ''\n if (problems.length) {\n const problemText = problems\n .map((problem) => `${problem.lineNumber}: ${problem.error}`)\n .join('<br/>')\n alertText += `<strong>The following lines have problems:</strong><br/>${problemText}<br/><br/>`\n }\n if (skipped.length) {\n alertText +=\n '<strong>Mnemonics with string interpolation were not checked.</strong>'\n }\n if (alertText === '') {\n alertText = '<strong>Everything looks good!</strong>'\n }\n this.$dialog.alert(alertText.trim(), { html: true })\n })\n },\n scriptStart(id) {\n this.disableSuiteButtons = true\n this.startOrGoDisabled = true\n this.envDisabled = true\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n this.state = 'Connecting...'\n this.startOrGoButton = GO\n this.scriptId = id\n this.editor.setReadOnly(true)\n this.cable\n .createSubscription(\n 'RunningScriptChannel',\n window.openc3Scope,\n {\n received: (data) => this.received(data),\n },\n {\n id: this.scriptId,\n }\n )\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n scriptComplete() {\n this.disableSuiteButtons = false\n this.startOrGoButton = START\n this.pauseOrRetryButton = PAUSE\n // Disable start if suiteRunner\n this.startOrGoDisabled = this.suiteRunner\n this.envDisabled = false\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n // Ensure stopped, if the script has an error we don't get the server stopped message\n this.state = 'stopped'\n this.fatal = false\n this.scriptId = null\n this.currentFilename = null\n // We may have changed the contents (if there were sub-scripts)\n // so don't let the undo manager think this is a chanage\n this.editor.session.getUndoManager().reset()\n this.editor.setReadOnly(false)\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n async start(event, suiteRunner = null) {\n await this.saveFile('start')\n let filename = this.filename\n if (this.filename === NEW_FILENAME) {\n // NEW_FILENAME so use tempFilename created by saveFile()\n filename = this.tempFilename\n }\n let url = `/script-api/scripts/${filename}/run`\n if (this.showDisconnect) {\n url += '/disconnect'\n }\n let data = {\n environment: this.scriptEnvironment.env,\n }\n if (suiteRunner) {\n data['suiteRunner'] = event\n }\n Api.post(url, { data }).then((response) => {\n this.scriptStart(response.data)\n })\n },\n go() {\n // Ensure we're on the correct filename when we hit go\n // They may have changed it using the drop down\n this.filenameSelect = this.currentFilename\n this.fileNameChanged(this.currentFilename)\n Api.post(`/script-api/running-script/${this.scriptId}/go`)\n },\n pauseOrRetry() {\n if (this.pauseOrRetryButton === PAUSE) {\n Api.post(`/script-api/running-script/${this.scriptId}/pause`)\n } else {\n this.pauseOrRetryButton = PAUSE\n Api.post(`/script-api/running-script/${this.scriptId}/retry`)\n }\n },\n stop() {\n // We previously encountered a fatal error so remove the marker\n // and cleanup by calling scriptComplete() because the script\n // is already stopped in the backend\n if (this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/stop`)\n }\n },\n step() {\n Api.post(`/script-api/running-script/${this.scriptId}/step`)\n },\n received(data) {\n this.cable.recordPing()\n // eslint-disable-next-line\n // console.log(data) // Uncomment for debugging\n let index = 0\n switch (data.type) {\n case 'file':\n this.files[data.filename] = { content: data.text, lineNo: 0 }\n this.breakpoints[data.filename] = data.breakpoints\n if (this.currentFilename === data.filename) {\n this.restoreBreakpoints(data.filename)\n }\n break\n case 'line':\n if (data.filename && data.filename !== this.currentFilename) {\n if (!this.files[data.filename]) {\n // We don't have the contents of the running file (probably because connected to running script)\n // Set the contents initially to an empty string so we don't start slamming the API\n this.files[data.filename] = { content: '', lineNo: 0 }\n\n // Request the script we need\n Api.get(`/script-api/scripts/${data.filename}`)\n .then((response) => {\n // Success - Save the script text and mark the currentFilename as null\n // so it will get loaded in on the next line executed\n this.files[data.filename] = {\n content: response.data.contents,\n lineNo: 0,\n }\n this.breakpoints[data.filename] = response.data.breakpoints\n this.restoreBreakpoints(data.filename)\n this.currentFilename = null\n })\n .catch((err) => {\n // Error - Restore the file contents to null so we'll try the API again on the next line\n this.files[data.filename] = null\n })\n } else {\n this.editor.setValue(this.files[data.filename].content)\n this.restoreBreakpoints(data.filename)\n this.editor.clearSelection()\n this.currentFilename = data.filename\n }\n }\n this.state = data.state\n const markers = this.editor.session.getMarkers()\n switch (this.state) {\n case 'running':\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n this.stopDisabled = false\n this.pauseOrRetryButton = PAUSE\n\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(data.line_no - 1, 0, data.line_no - 1, 1),\n 'runningMarker',\n 'fullLine'\n )\n this.editor.gotoLine(data.line_no)\n this.files[data.filename].lineNo = data.line_no\n break\n case 'fatal':\n this.fatal = true\n // Deliberate fall through (no break)\n case 'error':\n this.pauseOrRetryButton = RETRY\n // Deliberate fall through (no break)\n case 'breakpoint':\n case 'waiting':\n case 'paused':\n if (this.state == 'fatal') {\n this.startOrGoDisabled = true\n this.pauseOrRetryDisabled = true\n } else {\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n }\n this.stopDisabled = false\n let existing = Object.keys(markers).filter(\n (key) => markers[key].clazz === `${this.state}Marker`\n )\n if (existing.length === 0) {\n this.removeAllMarkers()\n let line = data.line_no > 0 ? data.line_no : 1\n this.editor.session.addMarker(\n new this.Range(line - 1, 0, line - 1, 1),\n `${this.state}Marker`,\n 'fullLine'\n )\n this.editor.gotoLine(line)\n // Fatal errors don't always have a filename set\n if (data.filename) {\n this.files[data.filename].lineNo = line\n }\n }\n break\n default:\n break\n }\n break\n case 'output':\n // data.line can consist of multiple lines split by newlines\n // thus we split and only output if the content is not empty\n for (const line of data.line.split('\\n')) {\n if (line) {\n this.messages.unshift({ message: line })\n }\n }\n while (this.messages.length > this.maxArrayLength) {\n this.messages.pop()\n }\n break\n case 'script':\n this.handleScript(data)\n break\n case 'report':\n this.results.text = data.report\n this.results.show = true\n break\n case 'complete':\n // Don't complete on fatal because we just sit there on the fatal line\n if (!this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n }\n break\n case 'step':\n this.showDebug = true\n break\n case 'screen':\n let found = false\n let definition = {}\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n definition = screen\n found = true\n break\n }\n index += 1\n }\n this.$set(definition, 'target', data.target_name)\n this.$set(definition, 'screen', data.screen_name)\n this.$set(definition, 'definition', data.definition)\n if (data.x) {\n this.$set(definition, 'left', data.x)\n } else {\n this.$set(definition, 'left', 0)\n }\n if (data.y) {\n this.$set(definition, 'top', data.y)\n } else {\n this.$set(definition, 'top', 0)\n }\n this.$set(definition, 'count', this.updateCounter++)\n if (!found) {\n this.$set(definition, 'id', this.idCounter++)\n this.$set(this.screens, this.screens.length, definition)\n } else {\n this.$set(this.screens, index, definition)\n }\n break\n case 'clearscreen':\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n break\n case 'clearallscreens':\n this.screens = []\n break\n case 'downloadfile':\n const blob = new Blob([data.text], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', data.filename)\n link.click()\n break\n default:\n // console.log('Unexpected ActionCable message')\n // console.log(data)\n break\n }\n },\n promptDialogCallback(value) {\n this.prompt.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.prompt.method,\n answer: value,\n prompt_id: this.activePromptId,\n multiple: this.prompt.multiple,\n },\n })\n },\n handleScript(data) {\n if (data.prompt_complete) {\n this.activePromptId = ''\n this.prompt.show = false\n this.ask.show = false\n return\n }\n this.activePromptId = data.prompt_id\n this.prompt.method = data.method // Set it here since all prompts use this\n this.prompt.layout = 'horizontal' // Reset the layout since most are horizontal\n this.prompt.title = 'Prompt'\n this.prompt.subtitle = ''\n this.prompt.details = ''\n this.prompt.buttons = []\n this.prompt.multiple = null\n switch (data.method) {\n case 'ask':\n case 'ask_string':\n // Reset values since this dialog can be re-used\n this.ask.default = null\n this.ask.answerRequired = true\n this.ask.password = false\n this.ask.question = data.args[0]\n // If the second parameter is not true or false it indicates a default value\n if (data.args[1] && data.args[1] !== true && data.args[1] !== false) {\n this.ask.default = data.args[1].toString()\n } else if (data.args[1] === true) {\n // If the second parameter is true it means no value is required to be entered\n this.ask.answerRequired = false\n }\n // The third parameter indicates a password textfield\n if (data.args[2] === true) {\n this.ask.password = true\n }\n this.ask.callback = (value) => {\n this.ask.show = false // Close the dialog\n if (this.ask.password) {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n password: value, // Using password as a key automatically filters it from rails logs\n prompt_id: this.activePromptId,\n },\n })\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n }\n this.ask.show = true // Display the dialog\n break\n case 'prompt_for_hazardous':\n this.prompt.title = 'Hazardous Command'\n this.prompt.message = `Warning: Command ${data.args[0]} ${data.args[1]} is Hazardous. `\n if (data.args[2]) {\n this.prompt.message += data.args[2] + ' '\n }\n this.prompt.message += 'Send?'\n this.prompt.buttons = [{ text: 'Yes', value: 'Yes' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'prompt':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n this.prompt.buttons = [{ text: 'Ok', value: 'Ok' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'combo_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n if (data.kwargs && data.kwargs.multiple) {\n this.prompt.multiple = true\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n this.prompt.layout = 'combo'\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'message_box':\n case 'vertical_message_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n if (data.method.includes('vertical')) {\n this.prompt.layout = 'vertical'\n }\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'backtrace':\n this.information.title = 'Call Stack'\n this.information.text = data.args\n this.information.show = true\n break\n case 'metadata_input':\n this.inputMetadata.callback = (value) => {\n this.inputMetadata.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n this.showMetadata()\n break\n case 'open_file_dialog':\n case 'open_files_dialog':\n this.file.title = data.args[0]\n this.file.message = data.args[1]\n if (data.kwargs && data.kwargs.filter) {\n this.file.filter = data.kwargs.filter\n }\n if (data.method == 'open_files_dialog') {\n this.file.multiple = true\n }\n this.file.show = true\n break\n default:\n /* console.log(\n 'Unknown script method:' + data.method + ' with args:' + data.args\n ) */\n break\n }\n },\n async fileDialogCallback(files) {\n this.file.show = false // Close the dialog\n // Set fileNames to 'Cancel' in case they cancelled\n // otherwise we will populate it with the file names they selected\n let fileNames = 'Cancel'\n if (files != 'Cancel') {\n fileNames = []\n await files.forEach(async (file) => {\n fileNames.push(file.name)\n // Reassign data to presignedRequest for readability\n const { data: presignedRequest } = await Api.get(\n `/openc3-api/storage/upload/${encodeURIComponent(\n `${window.openc3Scope}/tmp/${file.name}`\n )}?bucket=OPENC3_CONFIG_BUCKET`\n )\n // This pushes the file into storage by using the fields in the presignedRequest\n // See storage_controller.rb get_presigned_request()\n const response = await axios({\n ...presignedRequest,\n data: file,\n })\n })\n }\n await Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.file.multiple ? 'open_files_dialog' : 'open_file_dialog',\n answer: fileNames,\n prompt_id: this.activePromptId,\n },\n })\n },\n setError(event) {\n this.alertType = 'error'\n this.alertText = `Error: ${event}`\n this.showAlert = true\n },\n // ScriptRunner File menu actions\n newFile() {\n this.unlockFile()\n this.filename = NEW_FILENAME\n this.currentFilename = null\n this.tempFilename = null\n this.files = {} // Clear the cached file list\n this.editor.session.setValue('')\n this.fileModified = ''\n this.suiteRunner = false\n this.startOrGoDisabled = false\n this.envDisabled = false\n },\n async newTestSuite() {\n this.newFile()\n this.editor.session.setValue(`require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n`)\n await this.saveFile('auto')\n },\n openFile() {\n this.fileOpen = true\n },\n reloadFile() {\n Api.get(`/script-api/scripts/${this.filename}`)\n .then((response) => {\n const file = {\n name: this.filename,\n contents: response.data.contents,\n }\n if (response.data.suites) {\n file['suites'] = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n file['error'] = response.data.error\n }\n if (response.data.success) {\n file['success'] = response.data.success\n }\n const locked = response.data.locked\n const breakpoints = response.data.breakpoints\n this.setFile({ file, locked, breakpoints }, true)\n })\n .catch((error) => {\n this.$emit('error', `Failed to open ${this.selectedFile}. ${error}`)\n this.clear()\n })\n },\n // Called by the FileOpenDialog to set the file contents\n setFile({ file, locked, breakpoints }, local = false) {\n this.files = {} // Clear the cached file list\n // Split off the ' *' which indicates a file is modified on the server\n let newFilename = file.name.split('*')[0]\n if (local === false) {\n // We only need to unlock if the file is different\n if (this.filename !== newFilename) {\n this.unlockFile() // first unlock what was just being edited\n this.lockedBy = locked\n }\n }\n // Split off the ' *' which indicates a file is modified on the server\n this.filename = file.name.split('*')[0]\n this.currentFilename = null\n this.editor.session.setValue(file.contents)\n this.breakpoints[filename] = breakpoints\n this.restoreBreakpoints(filename)\n this.fileModified = ''\n this.envDisabled = false\n\n if (file.suites) {\n this.suiteRunner = true\n this.suiteMap = file.suites\n this.startOrGoDisabled = true\n } else {\n this.suiteRunner = false\n this.startOrGoDisabled = false\n }\n if (file.error) {\n this.suiteError = file.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = file.success == false\n },\n // saveFile takes a type to indicate if it was called by the Menu\n // or automatically by 'Start' (to ensure a consistent backend file) or autoSave\n async saveFile(type = 'menu') {\n const breakpoints = this.getBreakpointRows()\n if (this.filename === NEW_FILENAME) {\n if (type === 'menu') {\n // Menu driven saves on a new file should prompt SaveAs\n this.saveAs()\n return\n } else {\n if (this.tempFilename === null) {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n this.filename = this.tempFilename\n }\n }\n }\n this.showSave = true\n await Api.post(`/script-api/scripts/${this.filename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n if (response.status == 200) {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n } else {\n this.startOrGoDisabled = false\n this.suiteRunner = false\n this.suiteMap = {}\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n } else {\n this.showSave = false\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n this.showAlert = true\n }\n this.lockFile() // Ensure this file is locked for editing\n })\n .catch(({ response }) => {\n this.showSave = false\n // 422 error means we couldn't parse the script file into Suites\n // response.data.suites holds the parse result\n if (response.status == 422) {\n this.alertType = 'error'\n this.alertText = response.data.suites\n } else {\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n }\n this.showAlert = true\n })\n },\n saveAs() {\n this.showSaveAs = true\n },\n async saveAsFilename(filename) {\n this.filename = filename.split('*')[0]\n this.currentFilename = null\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n this.tempFilename = null\n }\n await this.saveFile('menu')\n },\n delete() {\n let filename = this.filename\n if (this.tempFilename) {\n filename = this.tempFilename\n }\n this.$dialog\n .confirm(`Permanently delete file: ${filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.post(`/script-api/scripts/${filename}/delete`, {\n data: {},\n })\n })\n .then((response) => {\n this.newFile()\n })\n .catch((error) => {\n if (error) {\n const alertObject = {\n text: `Failed Multi-Delete. ${error}`,\n type: 'error',\n }\n this.$emit('alert', alertObject)\n }\n })\n },\n download() {\n const blob = new Blob([this.editor.getValue()], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', this.filename)\n link.click()\n },\n // ScriptRunner Script menu actions\n rubySyntaxCheck() {\n Api.post('/script-api/scripts/syntax', {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showInstrumented() {\n Api.post(`/script-api/scripts/${this.filename}/instrumented`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showCallStack() {\n Api.post(`/script-api/running-script/${this.scriptId}/backtrace`)\n },\n toggleDebug() {\n this.showDebug = !this.showDebug\n },\n toggleDisconnect() {\n this.showDisconnect = !this.showDisconnect\n },\n\n debugKeydown(event) {\n if (event.key === 'Escape') {\n this.debug = ''\n this.debugHistoryIndex = this.debugHistory.length\n } else if (event.key === 'Enter') {\n this.debugHistory.push(this.debug)\n this.debugHistoryIndex = this.debugHistory.length\n // Post the code to /debug, output is processed by receive()\n Api.post(`/script-api/running-script/${this.scriptId}/debug`, {\n data: {\n args: this.debug,\n },\n })\n this.debug = ''\n } else if (event.key === 'ArrowUp') {\n this.debugHistoryIndex -= 1\n if (this.debugHistoryIndex < 0) {\n this.debugHistoryIndex = this.debugHistory.length - 1\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n // Prevent the cursor/caret from moving to the front\n event.preventDefault()\n } else if (event.key === 'ArrowDown') {\n this.debugHistoryIndex += 1\n if (this.debugHistoryIndex >= this.debugHistory.length) {\n this.debugHistoryIndex = 0\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n }\n },\n removeAllMarkers: function () {\n const allMarkers = this.editor.session.getMarkers()\n Object.keys(allMarkers)\n .filter((key) => allMarkers[key].type === 'fullLine')\n .forEach((marker) => this.editor.session.removeMarker(marker))\n },\n confirmLocalUnlock: function () {\n this.$dialog\n .confirm(\n 'Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.',\n {\n okText: 'Force Unlock',\n cancelText: 'Cancel',\n }\n )\n .then(() => {\n this.lockedBy = null\n return this.lockFile() // Re-lock it as this user so it's locked for anyone else who opens it\n })\n },\n lockFile: function () {\n return Api.post(`/script-api/scripts/${this.filename}/lock`)\n },\n unlockFile: function () {\n if (this.filename !== NEW_FILENAME && !this.readOnly) {\n Api.post(`/script-api/scripts/${this.filename}/unlock`)\n }\n },\n screenId(id) {\n return 'scriptRunnerScreen' + id\n },\n closeScreen(id) {\n let index = 0\n for (screen of this.screens) {\n if (screen.id == id) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n },\n },\n}\n<\/script>\n\n<style scoped>\n#sr-controls {\n padding-top: 0px;\n padding-bottom: 5px;\n padding-left: 0px;\n padding-right: 0px;\n}\n.editorbox {\n height: 50vh;\n}\n.editor {\n height: 100%;\n width: 100%;\n position: relative;\n font-size: 16px;\n}\nhr {\n pointer-events: none;\n position: relative;\n top: 7px;\n background-color: grey;\n height: 3px;\n width: 5%;\n margin: auto;\n}\n.script-state :deep(input) {\n text-transform: capitalize;\n}\n</style>\n<style>\n.runningMarker {\n position: absolute;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.waitingMarker {\n position: absolute;\n background: rgba(0, 155, 0, 1);\n z-index: 20;\n}\n.breakpointMarker {\n position: absolute;\n border-style: solid;\n border-color: red;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.pausedMarker {\n position: absolute;\n background: rgba(0, 140, 255, 0.5);\n z-index: 20;\n}\n.errorMarker {\n position: absolute;\n background: rgba(255, 0, 119, 0.5);\n z-index: 20;\n}\n.fatalMarker {\n position: absolute;\n background: rgba(255, 0, 0, 0.5);\n z-index: 20;\n}\n.saving {\n z-index: 20;\n opacity: 0.35;\n}\n.ace_gutter-cell.ace_breakpoint {\n border-radius: 20px 0px 0px 20px;\n box-shadow: 0px 0px 1px 1px red inset;\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n display: block;\n margin: 5px;\n z-index: 1;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"939f20182ee7a8af7e5ca46c1d737aa2e7d0ea34"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Di=function(){return o},o}Di();var Ii=(Di().s[0]++,"__TEMP__"),Ri=(Di().s[1]++,"<Untitled>"),Oi=(Di().s[2]++,"Start"),Ni=(Di().s[3]++,"Go"),Zi=(Di().s[4]++,"Pause"),Li=(Di().s[5]++,"Retry"),Fi={components:{FileOpenSaveDialog:x,Openc3Screen:Pt,EnvironmentDialog:D,Multipane:f.x,MultipaneResizer:f.P,TopBar:W,AskDialog:X,FileDialog:se,InformationDialog:pe,EventListDialog:_n,OverridesDialog:Tn,PromptDialog:Fn,ResultsDialog:Gn,ScriptEnvironmentDialog:Qn,SimpleTextDialog:L,SuiteRunner:at,RunningScripts:Ti,ScriptLogMessages:ht},data:function(){return Di().f[0]++,Di().s[6]++,{title:"COSMOS Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},filenameSelect:null,currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:null,scriptId:null,startOrGoButton:Oi,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:Zi,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:Ri,tempFilename:null,fileModified:"",fileOpen:!1,lockedBy:null,showReadOnlyToast:!1,showSaveAs:!1,areYouSure:!1,subscription:null,cable:null,fatal:!1,messages:[],maxArrayLength:200,Range:h.require("ace/range").Range,ask:{show:!1,question:"",default:null,password:!1,answerRequired:!0,callback:function(){Di().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:function(){Di().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:function(){Di().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,events:[],callback:function(){Di().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new ii,showScripts:!1,showOverrides:!1,activePromptId:"",api:null,screens:[],screenKeywords:null,idCounter:0,updateCounter:0}},computed:{scriptRunning:function(){return Di().f[5]++,Di().s[7]++,this.startOrGoButton==Oi?(Di().b[0][0]++,Di().s[8]++,!1):(Di().b[0][1]++,Di().s[9]++,!0)},fileList:function(){Di().f[6]++;var e=(Di().s[10]++,Object.keys(this.files));return Di().s[11]++,e.push(this.fullFilename),Di().s[12]++,(0,u.Z)(new Set(e))},environmentIcon:function(){return Di().f[7]++,Di().s[13]++,this.scriptEnvironment.env.length>0?(Di().b[1][0]++,"mdi-bookmark"):(Di().b[1][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return Di().f[8]++,Di().s[14]++,this.scriptEnvironment.env.length>0?(Di().b[2][0]++,"primary"):(Di().b[2][1]++,"")},readOnly:function(){return Di().f[9]++,Di().s[15]++,!!this.lockedBy},fullFilename:function(){return Di().f[10]++,Di().s[16]++,this.currentFilename?(Di().b[3][0]++,Di().s[17]++,this.currentFilename):(Di().b[3][1]++,Di().s[18]++,"".concat(this.filename," ").concat(this.fileModified).trim())},filenameOrBlank:function(){return Di().f[11]++,Di().s[19]++,this.filename===Ri?(Di().b[4][0]++,""):(Di().b[4][1]++,this.filename)},menus:function(){var e=this;return Di().f[12]++,Di().s[20]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",disabled:this.scriptId,command:function(){Di().f[13]++,Di().s[21]++,e.newFile()}},{label:"New Test Suite",icon:"mdi-file-plus",disabled:this.scriptId,command:function(){Di().f[14]++,Di().s[22]++,e.newTestSuite()}},{label:"Open File",icon:"mdi-folder-open",disabled:this.scriptId,command:function(){Di().f[15]++,Di().s[23]++,e.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",disabled:this.scriptId,command:function(){Di().f[16]++,Di().s[24]++,e.saveFile()}},{label:"Save As...",icon:"mdi-content-save",disabled:this.scriptId,command:function(){Di().f[17]++,Di().s[25]++,e.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",disabled:this.scriptId,command:function(){Di().f[18]++,Di().s[26]++,e.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",disabled:this.scriptId,command:function(){Di().f[19]++,Di().s[27]++,e.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:function(){Di().f[20]++,Di().s[28]++,e.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",disabled:this.scriptId,command:function(){Di().f[21]++,Di().s[29]++,e.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"Execution Status",icon:"mdi-run",command:function(){Di().f[22]++,Di().s[30]++,e.showScripts=!0}},{divider:!0},{label:"Global Environment",icon:"mdi-library",disabled:this.scriptId,command:function(){Di().f[23]++,Di().s[31]++,e.showEnvironment=!e.showEnvironment}},{label:"Metadata",icon:"mdi-calendar",disabled:this.scriptId,command:function(){Di().f[24]++,Di().s[32]++,e.inputMetadata.callback=function(){Di().f[25]++},Di().s[33]++,e.showMetadata()}},{label:"Overrides",icon:"mdi-swap-horizontal",command:function(){Di().f[26]++,Di().s[34]++,e.showOverrides=!0}},{divider:!0},{label:"Ruby Syntax Check",icon:"mdi-language-ruby",disabled:this.scriptId,command:function(){Di().f[27]++,Di().s[35]++,e.rubySyntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",disabled:this.scriptId,command:function(){Di().f[28]++,Di().s[36]++,e.checkMnemonics()}},{label:"Instrumented Script",icon:"mdi-code-braces-box",disabled:this.scriptId,command:function(){Di().f[29]++,Di().s[37]++,e.showInstrumented()}},{label:"Call Stack",icon:"mdi-format-list-numbered",disabled:!this.scriptId,command:function(){Di().f[30]++,Di().s[38]++,e.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:function(){Di().f[31]++,Di().s[39]++,e.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",disabled:this.scriptId,command:function(){Di().f[32]++,Di().s[40]++,e.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",disabled:this.scriptId,command:function(){Di().f[33]++,Di().s[41]++,e.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return Di().f[34]++,Di().s[42]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear these breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(e){Di().f[35]++,Di().s[43]++,this.showReadOnlyToast=e,Di().s[44]++,this.suiteRunner?Di().b[5][1]++:(Di().b[5][0]++,Di().s[45]++,this.startOrGoDisabled=e),Di().s[46]++,this.editor.setReadOnly(e)},fullFilename:function(e){Di().f[36]++,Di().s[47]++,this.filenameSelect=e}},created:function(){var e=this;Di().f[37]++,Di().s[48]++,this.api=new U.k,Di().s[49]++,this.api.ensure_offline_access(),Di().s[50]++,this.NEW_FILENAME=Ri,Di().s[51]++,window.onbeforeunload=this.unlockFile,Di().s[52]++,A.Z.get("/openc3-api/autocomplete/keywords/screen").then((function(n){Di().f[38]++,Di().s[53]++,e.screenKeywords=n.data}))},mounted:function(){var e=(0,c.Z)((0,r.Z)().mark((function e(){var n,t,i=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Di().f[39]++,Di().s[54]++,this.editor=h.edit(this.$refs.editor),Di().s[55]++,this.editor.setTheme("ace/theme/twilight"),Di().s[56]++,n=this.buildOpenC3Mode(),Di().s[57]++,this.editor.session.setMode(new n),Di().s[58]++,this.editor.session.setTabSize(2),Di().s[59]++,this.editor.session.setUseWrapMode(!0),Di().s[60]++,this.editor.$blockScrolling=1/0,Di().s[61]++,this.editor.setOption("enableBasicAutocompletion",!0),Di().s[62]++,this.editor.setOption("enableLiveAutocompletion",!0),Di().s[63]++,this.editor.completers=[new Yt,new Jt],Di().s[64]++,this.editor.setHighlightActiveLine(!1),Di().s[65]++,this.editor.focus(),Di().s[66]++,this.editor.on("guttermousedown",this.toggleBreakpoint),Di().s[67]++,this.editor.session.on("tokenizerUpdate",this.onChange),Di().s[68]++,t=new Ci(this.editor),Di().s[69]++,this.editor.session.on("change",(function(e,n){Di().f[40]++,Di().s[70]++,t.annotate(e,n),Di().s[71]++,i.updateBreakpoints(e,n)})),Di().s[72]++,window.addEventListener("keydown",this.keydown),Di().s[73]++,this.cable=new p.Z("/script-api/cable"),Di().s[74]++,e.next=38,this.tryLoadRunningScript(this.$route.params.id);case 38:Di().s[75]++,this.autoSaveInterval=setInterval((0,c.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Di().f[41]++,Di().s[76]++,Di().b[7][0]++,i.scriptId||(Di().b[7][1]++,!(i.fileModified.length>0))||(Di().b[7][2]++,"visible"!==document.visibilityState)){e.next=9;break}return Di().b[6][0]++,Di().s[77]++,e.next=7,i.saveFile("auto");case 7:e.next=10;break;case 9:Di().b[6][1]++;case 10:case"end":return e.stop()}}),e)}))),6e4);case 40:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}(),beforeDestroy:function(){Di().f[42]++,Di().s[78]++,this.editor.destroy(),Di().s[79]++,this.editor.container.remove()},destroyed:function(){Di().f[43]++,Di().s[80]++,this.unlockFile(),Di().s[81]++,null!=this.autoSaveInterval?(Di().b[8][0]++,Di().s[82]++,clearInterval(this.autoSaveInterval)):Di().b[8][1]++,Di().s[83]++,this.subscription?(Di().b[9][0]++,Di().s[84]++,this.subscription.unsubscribe()):Di().b[9][1]++,Di().s[85]++,this.cable.disconnect()},beforeRouteUpdate:function(e,n,t){Di().f[44]++,Di().s[86]++,e.params.id?(Di().b[10][0]++,Di().s[87]++,this.tryLoadRunningScript(e.params.id).then(t)):(Di().b[10][1]++,Di().s[88]++,t())},methods:{showMetadata:function(){var e=this;Di().f[45]++,Di().s[89]++,A.Z.get("/openc3-api/metadata").then((function(n){Di().f[46]++,Di().s[90]++,e.inputMetadata.events=n.data.map((function(e){return Di().f[47]++,Di().s[91]++,{name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e}})),Di().s[92]++,e.inputMetadata.show=!0}))},buildOpenC3Mode:function(){Di().f[48]++;var e=(Di().s[93]++,h.require("ace/lib/oop")),n=(Di().s[94]++,h.require("ace/mode/ruby_highlight_rules").RubyHighlightRules),t=(Di().s[95]++,Object.getOwnPropertyNames(U.k.prototype).filter((function(e){return Di().f[49]++,Di().s[96]++,"constructor"!==e})).filter((function(e){return Di().f[50]++,Di().s[97]++,"exec"!==e}))),i=(Di().s[98]++,new RegExp("(\\b".concat(t.join("\\b|\\b"),"\\b)")));Di().s[99]++;var l=function(){for(var e in Di().f[51]++,Di().s[100]++,n.call(this),Di().s[101]++,this.$rules)Di().s[102]++,this.$rules[e].unshift({regex:i,token:"support.function"})};Di().s[103]++,e.inherits(l,n);var s=(Di().s[104]++,h.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),o=(Di().s[105]++,h.require("ace/mode/behaviour/cstyle").CstyleBehaviour),a=(Di().s[106]++,h.require("ace/mode/folding/ruby").FoldMode);Di().s[107]++;var r=function(){Di().f[52]++,Di().s[108]++,this.HighlightRules=l,Di().s[109]++,this.$outdent=new s,Di().s[110]++,this.$behaviour=new o,Di().s[111]++,this.foldingRules=new a,Di().s[112]++,this.indentKeywords=this.foldingRules.indentKeywords},c=(Di().s[113]++,h.require("ace/mode/ruby").Mode);return Di().s[114]++,e.inherits(r,c),Di().s[115]++,function(){Di().f[53]++,Di().s[116]++,this.$id="ace/mode/openc3"}.call(r.prototype),Di().s[117]++,r},fileNameChanged:function(e){Di().f[54]++,Di().s[118]++,e=e.split("*")[0],Di().s[119]++,this.editor.setValue(this.files[e].content),Di().s[120]++,this.restoreBreakpoints(e),Di().s[121]++,this.editor.clearSelection(),Di().s[122]++,this.removeAllMarkers(),Di().s[123]++,this.editor.session.addMarker(new this.Range(this.files[e].lineNo-1,0,this.files[e].lineNo-1,1),"".concat(this.state,"Marker"),"fullLine"),Di().s[124]++,this.editor.gotoLine(this.files[e].lineNo)},tryLoadRunningScript:function(e){var n=this;return Di().f[55]++,Di().s[125]++,A.Z.get("/script-api/running-script").then((function(t){Di().f[56]++;var i=(Di().s[126]++,t.data.find((function(n){return Di().f[57]++,Di().s[127]++,"".concat(n.id)==="".concat(e)})));Di().s[128]++,i?(Di().b[11][0]++,Di().s[129]++,n.filename=i.name,Di().s[130]++,n.tryLoadSuites(),Di().s[131]++,n.scriptStart(i.id)):(Di().b[11][1]++,Di().s[132]++,e?(Di().b[12][0]++,Di().s[133]++,n.$notify.caution({title:"Running Script ".concat(e," not found"),body:"Check the Completed Scripts below ..."}),Di().s[134]++,n.showScripts=!0):(Di().b[12][1]++,Di().s[135]++,0!==t.data.length?(Di().b[13][0]++,Di().s[136]++,n.alertType="success",Di().s[137]++,n.alertText="Currently ".concat(t.data.length," running scripts."),Di().s[138]++,n.showAlert=!0):Di().b[13][1]++))}))},tryLoadSuites:function(){var e=this;Di().f[58]++,Di().s[139]++,A.Z.get("/script-api/scripts/".concat(this.filename)).then((function(n){Di().f[59]++,Di().s[140]++,n.data.suites?(Di().b[14][0]++,Di().s[141]++,e.startOrGoDisabled=!0,Di().s[142]++,e.suiteRunner=!0,Di().s[143]++,e.suiteMap=JSON.parse(n.data.suites)):Di().b[14][1]++,Di().s[144]++,n.data.error?(Di().b[15][0]++,Di().s[145]++,e.suiteError=n.data.error,Di().s[146]++,e.showSuiteError=!0):Di().b[15][1]++,Di().s[147]++,e.disableSuiteButtons=0==n.data.success}))},showExecuteSelectionMenu:function(e){Di().f[60]++,Di().s[148]++,this.menuX=e.pageX,Di().s[149]++,this.menuY=e.pageY,Di().s[150]++,this.executeSelectionMenu=!0},runFromCursor:function(){Di().f[61]++;var e=(Di().s[151]++,this.editor.getCursorPosition().row),n=(Di().s[152]++,this.editor.session.doc.getLines(e,this.editor.session.doc.getLength()).join("\n")),t=(Di().s[153]++,this.getBreakpointRows().filter((function(n){return Di().f[62]++,Di().s[154]++,n>=e})).map((function(n){return Di().f[63]++,Di().s[155]++,n-e})));Di().s[156]++,this.executeText(n,t)},executeSelection:function(){Di().f[64]++;var e=(Di().s[157]++,this.editor.getSelectedText()),n=(Di().s[158]++,this.editor.getSelectionRange()),t=(Di().s[159]++,this.getBreakpointRows().filter((function(e){return Di().f[65]++,Di().s[160]++,Di().b[16][0]++,e<=n.end.row&&(Di().b[16][1]++,e>=n.start.row)})).map((function(e){return Di().f[66]++,Di().s[161]++,e-n.start.row})));Di().s[162]++,this.executeText(e,t)},executeText:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Di().b[17][0]++,[]);if(Di().f[67]++,Di().s[163]++,"error"===this.state){Di().b[18][0]++;var i=(Di().s[164]++,e.split("\n"));Di().s[165]++;var l,s=(0,a.Z)(i);try{for(s.s();!(l=s.n()).done;){var o=l.value;Di().s[166]++,this.debug=o.trim(),Di().s[167]++,this.debugKeydown({key:"Enter"})}}catch(c){s.e(c)}finally{s.f()}}else{Di().b[18][1]++;var r=(Di().s[168]++,Ii+"/"+(0,v.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb");Di().s[169]++,A.Z.post("/script-api/scripts/".concat(r),{data:{text:e,breakpoints:t}}).then((function(e){return Di().f[68]++,Di().s[170]++,A.Z.post("/script-api/scripts/".concat(r,"/run"),{data:{environment:n.scriptEnvironment.env}})})).then((function(e){Di().f[69]++,Di().s[171]++,window.open("/tools/scriptrunner/".concat(e.data))}))}},clearBreakpoints:function(){Di().f[70]++,Di().s[172]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(e){if(Di().f[71]++,Di().s[173]++,this.scriptId)Di().b[19][1]++;else{Di().b[19][0]++;var n=(Di().s[174]++,e.getDocumentPosition().row);Di().s[175]++,e.editor.session.getBreakpoints(n,0)[n]?(Di().b[20][0]++,Di().s[176]++,e.editor.session.clearBreakpoint(n)):(Di().b[20][1]++,Di().s[177]++,e.editor.session.setBreakpoint(n))}},updateBreakpoints:function(e,n){if(Di().f[72]++,Di().s[178]++,e.lines.length<=1)return Di().b[21][0]++,void Di().s[179]++;Di().b[21][1]++;var t=(Di().s[180]++,this.getBreakpointRows(n).filter((function(n){return Di().f[73]++,Di().s[181]++,Di().b[22][0]++,0===e.start.column&&(Di().b[22][1]++,n===e.start.row)||(Di().b[22][2]++,n>e.start.row)}))),i=(Di().s[182]++,[]),l=(Di().s[183]++,0);switch(Di().s[184]++,e.action){case"insert":Di().b[23][0]++,Di().s[185]++,l=e.lines.length-1,Di().s[186]++,t.reverse(),Di().s[187]++;break;case"remove":Di().b[23][1]++,Di().s[188]++,l=1-e.lines.length,Di().s[189]++,i=(0,u.Z)(Array(e.lines.length).keys()).map((function(n){return Di().f[74]++,Di().s[190]++,n+e.start.row})),Di().s[191]++;break}Di().s[192]++,t.forEach((function(e){Di().f[75]++,Di().s[193]++,n.clearBreakpoint(e),Di().s[194]++,i.includes(e)?Di().b[24][1]++:(Di().b[24][0]++,Di().s[195]++,n.setBreakpoint(e+l))}))},getBreakpointRows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(Di().b[25][0]++,this.editor.session);return Di().f[76]++,Di().s[196]++,e.getBreakpoints().map((function(e,n){return Di().f[77]++,Di().s[197]++,Di().b[26][0]++,e&&(Di().b[26][1]++,n)})).filter(Number.isInteger)},restoreBreakpoints:function(e){var n,t=this;Di().f[78]++,Di().s[198]++,this.clearBreakpoints(),Di().s[199]++,null===(n=this.breakpoints[e])||void 0===n||n.forEach((function(e){Di().f[79]++,Di().s[200]++,t.editor.session.setBreakpoint(e)}))},deleteAllBreakpoints:function(){var e=this;Di().f[80]++,Di().s[201]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((function(e){return Di().f[81]++,Di().s[202]++,A.Z["delete"]("/script-api/breakpoints/delete/all")})).then((function(n){Di().f[82]++,Di().s[203]++,e.clearBreakpoints()}))},suiteRunnerButton:function(e){Di().f[83]++,Di().s[204]++,this.startOrGoButton===Oi?(Di().b[27][0]++,Di().s[205]++,this.start(e,"suiteRunner")):(Di().b[27][1]++,Di().s[206]++,this.go(e,"suiteRunner"))},keydown:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Di().f[84]++,Di().s[207]++,Di().b[29][0]++,!e.metaKey&&(Di().b[29][1]++,!e.ctrlKey)||(Di().b[29][2]++,e.keyCode!=="S".charCodeAt(0))){t.next=11;break}return Di().b[28][0]++,Di().s[208]++,e.preventDefault(),Di().s[209]++,t.next=9,n.saveFile();case 9:t.next=14;break;case 11:Di().b[28][1]++,Di().s[210]++,Di().b[31][0]++,(e.metaKey||(Di().b[31][1]++,e.ctrlKey))&&(Di().b[31][2]++,e.shiftKey)&&(Di().b[31][3]++,e.keyCode==="S".charCodeAt(0))?(Di().b[30][0]++,Di().s[211]++,e.preventDefault(),Di().s[212]++,n.saveAs()):Di().b[30][1]++;case 14:case"end":return t.stop()}}),t)})))()},onChange:function(e){if(Di().f[85]++,Di().s[213]++,Di().b[33][0]++,this.scriptId||(Di().b[33][1]++,!0===this.editor.getReadOnly()))return Di().b[32][0]++,void Di().s[214]++;Di().b[32][1]++,Di().s[215]++,this.editor.session.getUndoManager().canUndo()?(Di().b[34][0]++,Di().s[216]++,this.fileModified="*"):(Di().b[34][1]++,Di().s[217]++,this.fileModified="")},checkMnemonics:function(){var e=this;Di().f[86]++,Di().s[218]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((function(n){var t=n.skipped,i=n.problems;Di().f[87]++;var l=(Di().s[219]++,"");if(Di().s[220]++,i.length){Di().b[35][0]++;var s=(Di().s[221]++,i.map((function(e){return Di().f[88]++,Di().s[222]++,"".concat(e.lineNumber,": ").concat(e.error)})).join("<br/>"));Di().s[223]++,l+="<strong>The following lines have problems:</strong><br/>".concat(s,"<br/><br/>")}else Di().b[35][1]++;Di().s[224]++,t.length?(Di().b[36][0]++,Di().s[225]++,l+="<strong>Mnemonics with string interpolation were not checked.</strong>"):Di().b[36][1]++,Di().s[226]++,""===l?(Di().b[37][0]++,Di().s[227]++,l="<strong>Everything looks good!</strong>"):Di().b[37][1]++,Di().s[228]++,e.$dialog.alert(l.trim(),{html:!0})}))},scriptStart:function(e){var n=this;Di().f[89]++,Di().s[229]++,this.disableSuiteButtons=!0,Di().s[230]++,this.startOrGoDisabled=!0,Di().s[231]++,this.envDisabled=!0,Di().s[232]++,this.pauseOrRetryDisabled=!0,Di().s[233]++,this.stopDisabled=!0,Di().s[234]++,this.state="Connecting...",Di().s[235]++,this.startOrGoButton=Ni,Di().s[236]++,this.scriptId=e,Di().s[237]++,this.editor.setReadOnly(!0),Di().s[238]++,this.cable.createSubscription("RunningScriptChannel",window.openc3Scope,{received:function(e){return Di().f[90]++,Di().s[239]++,n.received(e)}},{id:this.scriptId}).then((function(e){Di().f[91]++,Di().s[240]++,n.subscription=e}))},scriptComplete:function(){Di().f[92]++,Di().s[241]++,this.disableSuiteButtons=!1,Di().s[242]++,this.startOrGoButton=Oi,Di().s[243]++,this.pauseOrRetryButton=Zi,Di().s[244]++,this.startOrGoDisabled=this.suiteRunner,Di().s[245]++,this.envDisabled=!1,Di().s[246]++,this.pauseOrRetryDisabled=!0,Di().s[247]++,this.stopDisabled=!0,Di().s[248]++,this.state="stopped",Di().s[249]++,this.fatal=!1,Di().s[250]++,this.scriptId=null,Di().s[251]++,this.currentFilename=null,Di().s[252]++,this.editor.session.getUndoManager().reset(),Di().s[253]++,this.editor.setReadOnly(!1)},environmentHandler:function(e){Di().f[93]++,Di().s[254]++,this.scriptEnvironment.env=e},startHandler:function(){Di().f[94]++,Di().s[255]++,this.start()},start:function(e){var n=arguments,t=this;return(0,c.Z)((0,r.Z)().mark((function i(){var l,s,o,a;return(0,r.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return l=n.length>1&&void 0!==n[1]?n[1]:(Di().b[38][0]++,null),Di().f[95]++,Di().s[256]++,i.next=5,t.saveFile("start");case 5:Di().s[257]++,s=t.filename,Di().s[258]++,t.filename===Ri?(Di().b[39][0]++,Di().s[259]++,s=t.tempFilename):Di().b[39][1]++,Di().s[260]++,o="/script-api/scripts/".concat(s,"/run"),Di().s[261]++,t.showDisconnect?(Di().b[40][0]++,Di().s[262]++,o+="/disconnect"):Di().b[40][1]++,Di().s[263]++,a={environment:t.scriptEnvironment.env},Di().s[264]++,l?(Di().b[41][0]++,Di().s[265]++,a["suiteRunner"]=e):Di().b[41][1]++,Di().s[266]++,A.Z.post(o,{data:a}).then((function(e){Di().f[96]++,Di().s[267]++,t.scriptStart(e.data)}));case 16:case"end":return i.stop()}}),i)})))()},go:function(){Di().f[97]++,Di().s[268]++,this.filenameSelect=this.currentFilename,Di().s[269]++,this.fileNameChanged(this.currentFilename),Di().s[270]++,A.Z.post("/script-api/running-script/".concat(this.scriptId,"/go"))},pauseOrRetry:function(){Di().f[98]++,Di().s[271]++,this.pauseOrRetryButton===Zi?(Di().b[42][0]++,Di().s[272]++,A.Z.post("/script-api/running-script/".concat(this.scriptId,"/pause"))):(Di().b[42][1]++,Di().s[273]++,this.pauseOrRetryButton=Zi,Di().s[274]++,A.Z.post("/script-api/running-script/".concat(this.scriptId,"/retry")))},stop:function(){Di().f[99]++,Di().s[275]++,this.fatal?(Di().b[43][0]++,Di().s[276]++,this.removeAllMarkers(),Di().s[277]++,this.scriptComplete()):(Di().b[43][1]++,Di().s[278]++,A.Z.post("/script-api/running-script/".concat(this.scriptId,"/stop")))},step:function(){Di().f[100]++,Di().s[279]++,A.Z.post("/script-api/running-script/".concat(this.scriptId,"/step"))},received:function(e){var n=this;Di().f[101]++,Di().s[280]++,this.cable.recordPing();var t=(Di().s[281]++,0);switch(Di().s[282]++,e.type){case"file":Di().b[44][0]++,Di().s[283]++,this.files[e.filename]={content:e.text,lineNo:0},Di().s[284]++,this.breakpoints[e.filename]=e.breakpoints,Di().s[285]++,this.currentFilename===e.filename?(Di().b[45][0]++,Di().s[286]++,this.restoreBreakpoints(e.filename)):Di().b[45][1]++,Di().s[287]++;break;case"line":Di().b[44][1]++,Di().s[288]++,Di().b[47][0]++,e.filename&&(Di().b[47][1]++,e.filename!==this.currentFilename)?(Di().b[46][0]++,Di().s[289]++,this.files[e.filename]?(Di().b[48][1]++,Di().s[297]++,this.editor.setValue(this.files[e.filename].content),Di().s[298]++,this.restoreBreakpoints(e.filename),Di().s[299]++,this.editor.clearSelection(),Di().s[300]++,this.currentFilename=e.filename):(Di().b[48][0]++,Di().s[290]++,this.files[e.filename]={content:"",lineNo:0},Di().s[291]++,A.Z.get("/script-api/scripts/".concat(e.filename)).then((function(t){Di().f[102]++,Di().s[292]++,n.files[e.filename]={content:t.data.contents,lineNo:0},Di().s[293]++,n.breakpoints[e.filename]=t.data.breakpoints,Di().s[294]++,n.restoreBreakpoints(e.filename),Di().s[295]++,n.currentFilename=null})).catch((function(t){Di().f[103]++,Di().s[296]++,n.files[e.filename]=null})))):Di().b[46][1]++,Di().s[301]++,this.state=e.state;var i=(Di().s[302]++,this.editor.session.getMarkers());switch(Di().s[303]++,this.state){case"running":Di().b[49][0]++,Di().s[304]++,this.startOrGoDisabled=!1,Di().s[305]++,this.pauseOrRetryDisabled=!1,Di().s[306]++,this.stopDisabled=!1,Di().s[307]++,this.pauseOrRetryButton=Zi,Di().s[308]++,this.removeAllMarkers(),Di().s[309]++,this.editor.session.addMarker(new this.Range(e.line_no-1,0,e.line_no-1,1),"runningMarker","fullLine"),Di().s[310]++,this.editor.gotoLine(e.line_no),Di().s[311]++,this.files[e.filename].lineNo=e.line_no,Di().s[312]++;break;case"fatal":Di().b[49][1]++,Di().s[313]++,this.fatal=!0;case"error":Di().b[49][2]++,Di().s[314]++,this.pauseOrRetryButton=Li;case"breakpoint":Di().b[49][3]++;case"waiting":Di().b[49][4]++;case"paused":Di().b[49][5]++,Di().s[315]++,"fatal"==this.state?(Di().b[50][0]++,Di().s[316]++,this.startOrGoDisabled=!0,Di().s[317]++,this.pauseOrRetryDisabled=!0):(Di().b[50][1]++,Di().s[318]++,this.startOrGoDisabled=!1,Di().s[319]++,this.pauseOrRetryDisabled=!1),Di().s[320]++,this.stopDisabled=!1;var l=(Di().s[321]++,Object.keys(i).filter((function(e){return Di().f[104]++,Di().s[322]++,i[e].clazz==="".concat(n.state,"Marker")})));if(Di().s[323]++,0===l.length){Di().b[51][0]++,Di().s[324]++,this.removeAllMarkers();var s=(Di().s[325]++,e.line_no>0?(Di().b[52][0]++,e.line_no):(Di().b[52][1]++,1));Di().s[326]++,this.editor.session.addMarker(new this.Range(s-1,0,s-1,1),"".concat(this.state,"Marker"),"fullLine"),Di().s[327]++,this.editor.gotoLine(s),Di().s[328]++,e.filename?(Di().b[53][0]++,Di().s[329]++,this.files[e.filename].lineNo=s):Di().b[53][1]++}else Di().b[51][1]++;Di().s[330]++;break;default:Di().b[49][6]++,Di().s[331]++;break}Di().s[332]++;break;case"output":Di().b[44][2]++,Di().s[333]++;var o,r=(0,a.Z)(e.line.split("\n"));try{for(r.s();!(o=r.n()).done;){var c=o.value;Di().s[334]++,c?(Di().b[54][0]++,Di().s[335]++,this.messages.unshift({message:c})):Di().b[54][1]++}}catch(b){r.e(b)}finally{r.f()}Di().s[336]++;while(this.messages.length>this.maxArrayLength)Di().s[337]++,this.messages.pop();Di().s[338]++;break;case"script":Di().b[44][3]++,Di().s[339]++,this.handleScript(e),Di().s[340]++;break;case"report":Di().b[44][4]++,Di().s[341]++,this.results.text=e.report,Di().s[342]++,this.results.show=!0,Di().s[343]++;break;case"complete":Di().b[44][5]++,Di().s[344]++,this.fatal?Di().b[55][1]++:(Di().b[55][0]++,Di().s[345]++,this.removeAllMarkers(),Di().s[346]++,this.scriptComplete()),Di().s[347]++;break;case"step":Di().b[44][6]++,Di().s[348]++,this.showDebug=!0,Di().s[349]++;break;case"screen":Di().b[44][7]++;var u=(Di().s[350]++,!1),d=(Di().s[351]++,{});Di().s[352]++;var m,p=(0,a.Z)(this.screens);try{for(p.s();!(m=p.n()).done;){if(screen=m.value,Di().s[353]++,Di().b[57][0]++,screen.target==e.target_name&&(Di().b[57][1]++,screen.screen==e.screen_name)){Di().b[56][0]++,Di().s[354]++,d=screen,Di().s[355]++,u=!0,Di().s[356]++;break}Di().b[56][1]++,Di().s[357]++,t+=1}}catch(b){p.e(b)}finally{p.f()}Di().s[358]++,this.$set(d,"target",e.target_name),Di().s[359]++,this.$set(d,"screen",e.screen_name),Di().s[360]++,this.$set(d,"definition",e.definition),Di().s[361]++,e.x?(Di().b[58][0]++,Di().s[362]++,this.$set(d,"left",e.x)):(Di().b[58][1]++,Di().s[363]++,this.$set(d,"left",0)),Di().s[364]++,e.y?(Di().b[59][0]++,Di().s[365]++,this.$set(d,"top",e.y)):(Di().b[59][1]++,Di().s[366]++,this.$set(d,"top",0)),Di().s[367]++,this.$set(d,"count",this.updateCounter++),Di().s[368]++,u?(Di().b[60][1]++,Di().s[371]++,this.$set(this.screens,t,d)):(Di().b[60][0]++,Di().s[369]++,this.$set(d,"id",this.idCounter++),Di().s[370]++,this.$set(this.screens,this.screens.length,d)),Di().s[372]++;break;case"clearscreen":Di().b[44][8]++,Di().s[373]++;var h,v=(0,a.Z)(this.screens);try{for(v.s();!(h=v.n()).done;){if(screen=h.value,Di().s[374]++,Di().b[62][0]++,screen.target==e.target_name&&(Di().b[62][1]++,screen.screen==e.screen_name)){Di().b[61][0]++,Di().s[375]++,this.screens.splice(t,1),Di().s[376]++;break}Di().b[61][1]++,Di().s[377]++,t+=1}}catch(b){v.e(b)}finally{v.f()}Di().s[378]++;break;case"clearallscreens":Di().b[44][9]++,Di().s[379]++,this.screens=[],Di().s[380]++;break;case"downloadfile":Di().b[44][10]++;var f=(Di().s[381]++,new Blob([e.text],{type:"text/plain"})),g=(Di().s[382]++,document.createElement("a"));Di().s[383]++,g.href=URL.createObjectURL(f),Di().s[384]++,g.setAttribute("download",e.filename),Di().s[385]++,g.click(),Di().s[386]++;break;default:Di().b[44][11]++,Di().s[387]++;break}},promptDialogCallback:function(e){Di().f[105]++,Di().s[388]++,this.prompt.show=!1,Di().s[389]++,A.Z.post("/script-api/running-script/".concat(this.scriptId,"/prompt"),{data:{method:this.prompt.method,answer:e,prompt_id:this.activePromptId,multiple:this.prompt.multiple}})},handleScript:function(e){var n=this;if(Di().f[106]++,Di().s[390]++,e.prompt_complete)return Di().b[63][0]++,Di().s[391]++,this.activePromptId="",Di().s[392]++,this.prompt.show=!1,Di().s[393]++,this.ask.show=!1,void Di().s[394]++;switch(Di().b[63][1]++,Di().s[395]++,this.activePromptId=e.prompt_id,Di().s[396]++,this.prompt.method=e.method,Di().s[397]++,this.prompt.layout="horizontal",Di().s[398]++,this.prompt.title="Prompt",Di().s[399]++,this.prompt.subtitle="",Di().s[400]++,this.prompt.details="",Di().s[401]++,this.prompt.buttons=[],Di().s[402]++,this.prompt.multiple=null,Di().s[403]++,e.method){case"ask":Di().b[64][0]++;case"ask_string":Di().b[64][1]++,Di().s[404]++,this.ask.default=null,Di().s[405]++,this.ask.answerRequired=!0,Di().s[406]++,this.ask.password=!1,Di().s[407]++,this.ask.question=e.args[0],Di().s[408]++,Di().b[66][0]++,e.args[1]&&(Di().b[66][1]++,!0!==e.args[1])&&(Di().b[66][2]++,!1!==e.args[1])?(Di().b[65][0]++,Di().s[409]++,this.ask.default=e.args[1].toString()):(Di().b[65][1]++,Di().s[410]++,!0===e.args[1]?(Di().b[67][0]++,Di().s[411]++,this.ask.answerRequired=!1):Di().b[67][1]++),Di().s[412]++,!0===e.args[2]?(Di().b[68][0]++,Di().s[413]++,this.ask.password=!0):Di().b[68][1]++,Di().s[414]++,this.ask.callback=function(t){Di().f[107]++,Di().s[415]++,n.ask.show=!1,Di().s[416]++,n.ask.password?(Di().b[69][0]++,Di().s[417]++,A.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,password:t,prompt_id:n.activePromptId}})):(Di().b[69][1]++,Di().s[418]++,A.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,answer:t,prompt_id:n.activePromptId}}))},Di().s[419]++,this.ask.show=!0,Di().s[420]++;break;case"prompt_for_hazardous":Di().b[64][2]++,Di().s[421]++,this.prompt.title="Hazardous Command",Di().s[422]++,this.prompt.message="Warning: Command ".concat(e.args[0]," ").concat(e.args[1]," is Hazardous. "),Di().s[423]++,e.args[2]?(Di().b[70][0]++,Di().s[424]++,this.prompt.message+=e.args[2]+" "):Di().b[70][1]++,Di().s[425]++,this.prompt.message+="Send?",Di().s[426]++,this.prompt.buttons=[{text:"Yes",value:"Yes"}],Di().s[427]++,this.prompt.callback=this.promptDialogCallback,Di().s[428]++,this.prompt.show=!0,Di().s[429]++;break;case"prompt":Di().b[64][3]++,Di().s[430]++,Di().b[72][0]++,e.kwargs&&(Di().b[72][1]++,e.kwargs.informative)?(Di().b[71][0]++,Di().s[431]++,this.prompt.subtitle=e.kwargs.informative):Di().b[71][1]++,Di().s[432]++,Di().b[74][0]++,e.kwargs&&(Di().b[74][1]++,e.kwargs.details)?(Di().b[73][0]++,Di().s[433]++,this.prompt.details=e.kwargs.details):Di().b[73][1]++,Di().s[434]++,this.prompt.message=e.args[0],Di().s[435]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],Di().s[436]++,this.prompt.callback=this.promptDialogCallback,Di().s[437]++,this.prompt.show=!0,Di().s[438]++;break;case"combo_box":Di().b[64][4]++,Di().s[439]++,Di().b[76][0]++,e.kwargs&&(Di().b[76][1]++,e.kwargs.informative)?(Di().b[75][0]++,Di().s[440]++,this.prompt.subtitle=e.kwargs.informative):Di().b[75][1]++,Di().s[441]++,Di().b[78][0]++,e.kwargs&&(Di().b[78][1]++,e.kwargs.details)?(Di().b[77][0]++,Di().s[442]++,this.prompt.details=e.kwargs.details):Di().b[77][1]++,Di().s[443]++,Di().b[80][0]++,e.kwargs&&(Di().b[80][1]++,e.kwargs.multiple)?(Di().b[79][0]++,Di().s[444]++,this.prompt.multiple=!0):Di().b[79][1]++,Di().s[445]++,this.prompt.message=e.args[0],Di().s[446]++,e.args.slice(1).forEach((function(e){Di().f[108]++,Di().s[447]++,n.prompt.buttons.push({text:e,value:e})})),Di().s[448]++,this.prompt.layout="combo",Di().s[449]++,this.prompt.callback=this.promptDialogCallback,Di().s[450]++,this.prompt.show=!0,Di().s[451]++;break;case"message_box":Di().b[64][5]++;case"vertical_message_box":Di().b[64][6]++,Di().s[452]++,Di().b[82][0]++,e.kwargs&&(Di().b[82][1]++,e.kwargs.informative)?(Di().b[81][0]++,Di().s[453]++,this.prompt.subtitle=e.kwargs.informative):Di().b[81][1]++,Di().s[454]++,Di().b[84][0]++,e.kwargs&&(Di().b[84][1]++,e.kwargs.details)?(Di().b[83][0]++,Di().s[455]++,this.prompt.details=e.kwargs.details):Di().b[83][1]++,Di().s[456]++,this.prompt.message=e.args[0],Di().s[457]++,e.args.slice(1).forEach((function(e){Di().f[109]++,Di().s[458]++,n.prompt.buttons.push({text:e,value:e})})),Di().s[459]++,e.method.includes("vertical")?(Di().b[85][0]++,Di().s[460]++,this.prompt.layout="vertical"):Di().b[85][1]++,Di().s[461]++,this.prompt.callback=this.promptDialogCallback,Di().s[462]++,this.prompt.show=!0,Di().s[463]++;break;case"backtrace":Di().b[64][7]++,Di().s[464]++,this.information.title="Call Stack",Di().s[465]++,this.information.text=e.args,Di().s[466]++,this.information.show=!0,Di().s[467]++;break;case"metadata_input":Di().b[64][8]++,Di().s[468]++,this.inputMetadata.callback=function(t){Di().f[110]++,Di().s[469]++,n.inputMetadata.show=!1,Di().s[470]++,A.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,answer:t,prompt_id:n.activePromptId}})},Di().s[471]++,this.showMetadata(),Di().s[472]++;break;case"open_file_dialog":Di().b[64][9]++;case"open_files_dialog":Di().b[64][10]++,Di().s[473]++,this.file.title=e.args[0],Di().s[474]++,this.file.message=e.args[1],Di().s[475]++,Di().b[87][0]++,e.kwargs&&(Di().b[87][1]++,e.kwargs.filter)?(Di().b[86][0]++,Di().s[476]++,this.file.filter=e.kwargs.filter):Di().b[86][1]++,Di().s[477]++,"open_files_dialog"==e.method?(Di().b[88][0]++,Di().s[478]++,this.file.multiple=!0):Di().b[88][1]++,Di().s[479]++,this.file.show=!0,Di().s[480]++;break;default:Di().b[64][11]++,Di().s[481]++;break}},fileDialogCallback:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){var i;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Di().f[111]++,Di().s[482]++,n.file.show=!1,Di().s[483]++,i="Cancel",Di().s[484]++,"Cancel"==e){t.next=14;break}return Di().b[89][0]++,Di().s[485]++,i=[],Di().s[486]++,t.next=12,e.forEach(function(){var e=(0,c.Z)((0,r.Z)().mark((function e(n){var t,l;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Di().f[112]++,Di().s[487]++,i.push(n.name),Di().s[488]++,e.next=6,A.Z.get("/openc3-api/storage/upload/".concat(encodeURIComponent("".concat(window.openc3Scope,"/tmp/").concat(n.name)),"?bucket=OPENC3_CONFIG_BUCKET"));case 6:return t=e.sent,l=t.data,Di().s[489]++,e.next=11,m()((0,o.Z)((0,o.Z)({},l),{},{data:n}));case 11:e.sent;case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 12:t.next=15;break;case 14:Di().b[89][1]++;case 15:return Di().s[490]++,t.next=18,A.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:n.file.multiple?(Di().b[90][0]++,"open_files_dialog"):(Di().b[90][1]++,"open_file_dialog"),answer:i,prompt_id:n.activePromptId}});case 18:case"end":return t.stop()}}),t)})))()},setError:function(e){Di().f[113]++,Di().s[491]++,this.alertType="error",Di().s[492]++,this.alertText="Error: ".concat(e),Di().s[493]++,this.showAlert=!0},newFile:function(){Di().f[114]++,Di().s[494]++,this.unlockFile(),Di().s[495]++,this.filename=Ri,Di().s[496]++,this.currentFilename=null,Di().s[497]++,this.tempFilename=null,Di().s[498]++,this.files={},Di().s[499]++,this.editor.session.setValue(""),Di().s[500]++,this.fileModified="",Di().s[501]++,this.suiteRunner=!1,Di().s[502]++,this.startOrGoDisabled=!1,Di().s[503]++,this.envDisabled=!1},newTestSuite:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Di().f[115]++,Di().s[504]++,e.newFile(),Di().s[505]++,e.editor.session.setValue("require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n"),Di().s[506]++,n.next=8,e.saveFile("auto");case 8:case"end":return n.stop()}}),n)})))()},openFile:function(){Di().f[116]++,Di().s[507]++,this.fileOpen=!0},reloadFile:function(){var e=this;Di().f[117]++,Di().s[508]++,A.Z.get("/script-api/scripts/".concat(this.filename)).then((function(n){Di().f[118]++;var t=(Di().s[509]++,{name:e.filename,contents:n.data.contents});Di().s[510]++,n.data.suites?(Di().b[91][0]++,Di().s[511]++,t["suites"]=JSON.parse(n.data.suites)):Di().b[91][1]++,Di().s[512]++,n.data.error?(Di().b[92][0]++,Di().s[513]++,t["error"]=n.data.error):Di().b[92][1]++,Di().s[514]++,n.data.success?(Di().b[93][0]++,Di().s[515]++,t["success"]=n.data.success):Di().b[93][1]++;var i=(Di().s[516]++,n.data.locked),l=(Di().s[517]++,n.data.breakpoints);Di().s[518]++,e.setFile({file:t,locked:i,breakpoints:l},!0)})).catch((function(n){Di().f[119]++,Di().s[519]++,e.$emit("error","Failed to open ".concat(e.selectedFile,". ").concat(n)),Di().s[520]++,e.clear()}))},setFile:function(e){var n=e.file,t=e.locked,i=e.breakpoints,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Di().b[94][0]++,!1);Di().f[120]++,Di().s[521]++,this.files={};var s=(Di().s[522]++,n.name.split("*")[0]);Di().s[523]++,!1===l?(Di().b[95][0]++,Di().s[524]++,this.filename!==s?(Di().b[96][0]++,Di().s[525]++,this.unlockFile(),Di().s[526]++,this.lockedBy=t):Di().b[96][1]++):Di().b[95][1]++,Di().s[527]++,this.filename=n.name.split("*")[0],Di().s[528]++,this.currentFilename=null,Di().s[529]++,this.editor.session.setValue(n.contents),Di().s[530]++,this.breakpoints[filename]=i,Di().s[531]++,this.restoreBreakpoints(filename),Di().s[532]++,this.fileModified="",Di().s[533]++,this.envDisabled=!1,Di().s[534]++,n.suites?(Di().b[97][0]++,Di().s[535]++,this.suiteRunner=!0,Di().s[536]++,this.suiteMap=n.suites,Di().s[537]++,this.startOrGoDisabled=!0):(Di().b[97][1]++,Di().s[538]++,this.suiteRunner=!1,Di().s[539]++,this.startOrGoDisabled=!1),Di().s[540]++,n.error?(Di().b[98][0]++,Di().s[541]++,this.suiteError=n.error,Di().s[542]++,this.showSuiteError=!0):Di().b[98][1]++,Di().s[543]++,this.disableSuiteButtons=0==n.success},saveFile:function(){var e=arguments,n=this;return(0,c.Z)((0,r.Z)().mark((function t(){var i,l;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:(Di().b[99][0]++,"menu"),Di().f[121]++,Di().s[544]++,l=n.getBreakpointRows(),Di().s[545]++,n.filename!==Ri){t.next=20;break}if(Di().b[100][0]++,Di().s[546]++,"menu"!==i){t.next=15;break}return Di().b[101][0]++,Di().s[547]++,n.saveAs(),Di().s[548]++,t.abrupt("return");case 15:Di().b[101][1]++,Di().s[549]++,null===n.tempFilename?(Di().b[102][0]++,Di().s[550]++,n.tempFilename=Ii+"/"+(0,v.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb",Di().s[551]++,n.filename=n.tempFilename):Di().b[102][1]++;case 18:t.next=21;break;case 20:Di().b[100][1]++;case 21:return Di().s[552]++,n.showSave=!0,Di().s[553]++,t.next=26,A.Z.post("/script-api/scripts/".concat(n.filename),{data:{text:n.editor.getValue(),breakpoints:l}}).then((function(e){Di().f[122]++,Di().s[554]++,200==e.status?(Di().b[103][0]++,Di().s[555]++,e.data.suites?(Di().b[104][0]++,Di().s[556]++,n.startOrGoDisabled=!0,Di().s[557]++,n.suiteRunner=!0,Di().s[558]++,n.suiteMap=JSON.parse(e.data.suites)):(Di().b[104][1]++,Di().s[559]++,n.startOrGoDisabled=!1,Di().s[560]++,n.suiteRunner=!1,Di().s[561]++,n.suiteMap={}),Di().s[562]++,e.data.error?(Di().b[105][0]++,Di().s[563]++,n.suiteError=e.data.error,Di().s[564]++,n.showSuiteError=!0):Di().b[105][1]++,Di().s[565]++,n.fileModified="",Di().s[566]++,setTimeout((function(){Di().f[123]++,Di().s[567]++,n.showSave=!1}),2e3)):(Di().b[103][1]++,Di().s[568]++,n.showSave=!1,Di().s[569]++,n.alertType="error",Di().s[570]++,n.alertText="Error saving file. Code: ".concat(e.status," Text: ").concat(e.statusText),Di().s[571]++,n.showAlert=!0),Di().s[572]++,n.lockFile()})).catch((function(e){var t=e.response;Di().f[124]++,Di().s[573]++,n.showSave=!1,Di().s[574]++,422==t.status?(Di().b[106][0]++,Di().s[575]++,n.alertType="error",Di().s[576]++,n.alertText=t.data.suites):(Di().b[106][1]++,Di().s[577]++,n.alertType="error",Di().s[578]++,n.alertText="Error saving file. Code: ".concat(t.status," Text: ").concat(t.statusText)),Di().s[579]++,n.showAlert=!0}));case 26:case"end":return t.stop()}}),t)})))()},saveAs:function(){Di().f[125]++,Di().s[580]++,this.showSaveAs=!0},saveAsFilename:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Di().f[126]++,Di().s[581]++,n.filename=e.split("*")[0],Di().s[582]++,n.currentFilename=null,Di().s[583]++,n.tempFilename?(Di().b[107][0]++,Di().s[584]++,A.Z.post("/script-api/scripts/".concat(n.tempFilename,"/delete")),Di().s[585]++,n.tempFilename=null):Di().b[107][1]++,Di().s[586]++,t.next=10,n.saveFile("menu");case 10:case"end":return t.stop()}}),t)})))()},delete:function(){var e=this;Di().f[127]++;var n=(Di().s[587]++,this.filename);Di().s[588]++,this.tempFilename?(Di().b[108][0]++,Di().s[589]++,n=this.tempFilename):Di().b[108][1]++,Di().s[590]++,this.$dialog.confirm("Permanently delete file: ".concat(n),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return Di().f[128]++,Di().s[591]++,A.Z.post("/script-api/scripts/".concat(n,"/delete"),{data:{}})})).then((function(n){Di().f[129]++,Di().s[592]++,e.newFile()})).catch((function(n){if(Di().f[130]++,Di().s[593]++,n){Di().b[109][0]++;var t=(Di().s[594]++,{text:"Failed Multi-Delete. ".concat(n),type:"error"});Di().s[595]++,e.$emit("alert",t)}else Di().b[109][1]++}))},download:function(){Di().f[131]++;var e=(Di().s[596]++,new Blob([this.editor.getValue()],{type:"text/plain"})),n=(Di().s[597]++,document.createElement("a"));Di().s[598]++,n.href=URL.createObjectURL(e),Di().s[599]++,n.setAttribute("download",this.filename),Di().s[600]++,n.click()},rubySyntaxCheck:function(){var e=this;Di().f[132]++,Di().s[601]++,A.Z.post("/script-api/scripts/syntax",{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(n){Di().f[133]++,Di().s[602]++,e.information.title=n.data.title,Di().s[603]++,e.information.text=JSON.parse(n.data.description),Di().s[604]++,e.information.show=!0}))},showInstrumented:function(){var e=this;Di().f[134]++,Di().s[605]++,A.Z.post("/script-api/scripts/".concat(this.filename,"/instrumented"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(n){Di().f[135]++,Di().s[606]++,e.information.title=n.data.title,Di().s[607]++,e.information.text=JSON.parse(n.data.description),Di().s[608]++,e.information.show=!0}))},showCallStack:function(){Di().f[136]++,Di().s[609]++,A.Z.post("/script-api/running-script/".concat(this.scriptId,"/backtrace"))},toggleDebug:function(){Di().f[137]++,Di().s[610]++,this.showDebug=!this.showDebug},toggleDisconnect:function(){Di().f[138]++,Di().s[611]++,this.showDisconnect=!this.showDisconnect},debugKeydown:function(e){Di().f[139]++,Di().s[612]++,"Escape"===e.key?(Di().b[110][0]++,Di().s[613]++,this.debug="",Di().s[614]++,this.debugHistoryIndex=this.debugHistory.length):(Di().b[110][1]++,Di().s[615]++,"Enter"===e.key?(Di().b[111][0]++,Di().s[616]++,this.debugHistory.push(this.debug),Di().s[617]++,this.debugHistoryIndex=this.debugHistory.length,Di().s[618]++,A.Z.post("/script-api/running-script/".concat(this.scriptId,"/debug"),{data:{args:this.debug}}),Di().s[619]++,this.debug=""):(Di().b[111][1]++,Di().s[620]++,"ArrowUp"===e.key?(Di().b[112][0]++,Di().s[621]++,this.debugHistoryIndex-=1,Di().s[622]++,this.debugHistoryIndex<0?(Di().b[113][0]++,Di().s[623]++,this.debugHistoryIndex=this.debugHistory.length-1):Di().b[113][1]++,Di().s[624]++,this.debug=this.debugHistory[this.debugHistoryIndex],Di().s[625]++,e.preventDefault()):(Di().b[112][1]++,Di().s[626]++,"ArrowDown"===e.key?(Di().b[114][0]++,Di().s[627]++,this.debugHistoryIndex+=1,Di().s[628]++,this.debugHistoryIndex>=this.debugHistory.length?(Di().b[115][0]++,Di().s[629]++,this.debugHistoryIndex=0):Di().b[115][1]++,Di().s[630]++,this.debug=this.debugHistory[this.debugHistoryIndex]):Di().b[114][1]++)))},removeAllMarkers:function(){var e=this;Di().f[140]++;var n=(Di().s[631]++,this.editor.session.getMarkers());Di().s[632]++,Object.keys(n).filter((function(e){return Di().f[141]++,Di().s[633]++,"fullLine"===n[e].type})).forEach((function(n){return Di().f[142]++,Di().s[634]++,e.editor.session.removeMarker(n)}))},confirmLocalUnlock:function(){var e=this;Di().f[143]++,Di().s[635]++,this.$dialog.confirm("Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then((function(){return Di().f[144]++,Di().s[636]++,e.lockedBy=null,Di().s[637]++,e.lockFile()}))},lockFile:function(){return Di().f[145]++,Di().s[638]++,A.Z.post("/script-api/scripts/".concat(this.filename,"/lock"))},unlockFile:function(){Di().f[146]++,Di().s[639]++,Di().b[117][0]++,this.filename===Ri||(Di().b[117][1]++,this.readOnly)?Di().b[116][1]++:(Di().b[116][0]++,Di().s[640]++,A.Z.post("/script-api/scripts/".concat(this.filename,"/unlock")))},screenId:function(e){return Di().f[147]++,Di().s[641]++,"scriptRunnerScreen"+e},closeScreen:function(e){Di().f[148]++;var n=(Di().s[642]++,0);Di().s[643]++;var t,i=(0,a.Z)(this.screens);try{for(i.s();!(t=i.n()).done;){if(screen=t.value,Di().s[644]++,screen.id==e){Di().b[118][0]++,Di().s[645]++,this.screens.splice(n,1),Di().s[646]++;break}Di().b[118][1]++,Di().s[647]++,n+=1}}catch(l){i.e(l)}finally{i.f()}}}},Pi=Fi,$i=(t(75330),t(88506),(0,y.Z)(Pi,l,s,!1,null,"6a57905f",null)),Hi=$i.exports},93964:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});t(34115),t(634);var i=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Details ")]),n("v-spacer")],1),n("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),n("v-card-subtitle",[e._v(e._s(e.details.description))]),n("v-card-text",[n("v-container",{attrs:{fluid:""}},["tlm"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),n("v-col",[e._v(e._s(e.rawValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),n("v-col",[e._v(e._s(e.convertedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),n("v-col",[e._v(e._s(e.formattedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),n("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),n("v-col",[e._v(e._s(e.details.format_string))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),n("v-col",[e._v(e._s(e.details.id_value))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),n("v-col",[e._v(e._s(e.details.units_full))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),n("v-col",[e._v(e._s(e.details.units))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),n("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),n("v-col",[e._v(e._s(t.value))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col",[e._v("None")])],1),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),"enabled"===i?n("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(n){e.$set(e.details.limits,"enabled",n)},expression:"details.limits.enabled"}}):e._e(),"enabled"!==i?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),"enabled"!==i?n("div",[e._v(e._s(e.formatLimit(t)))]):e._e(),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col",[e._v("None")])],1),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),n("v-col",[e._v(e._s(t))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},l=[],s=t(15789),o=t(66964),a=t(49502),r=(t(74083),t(18178),t(32501),t(68995),t(27233),t(28673),t(58188),t(88233),t(48392)),c={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new r.k},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,n){var t=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){t.api.get_tlm_values(["".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__RAW"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__CONVERTED"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__FORMATTED"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__WITH_UNITS")]).then((function(e){for(var n=0;n<e.length;n++){var i=null;if("String"===e[n][0]["json_class"]&&void 0!==e[n][0]["raw"]?i=e[n][0]["raw"]:"BLOCK"===t.details.data_type&&(i=e[n][0]),null!==i){i=i.slice(0,parseInt(t.details.bit_size)/8);var l=!1;i.length>64&&(l=!0),e[n][0]=Array.from(i.slice(0,64),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),l&&(e[n][0]+="...")}}t.rawValue=e[0][0],t.convertedValue=e[1][0],t.formattedValue=e[2][0],t.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;return(0,a.Z)((0,s.Z)().mark((function n(){return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("tlm"!==e.type){n.next=5;break}return n.next=3,e.api.get_item(e.targetName,e.packetName,e.itemName).then((function(n){if(e.details=n,n.limits){var t=!1;n.limits.enabled&&(t=!0,delete n.limits.enabled),e.details.limits=(0,o.Z)({enabled:t},n.limits)}}));case 3:n.next=7;break;case 5:return n.next=7,e.api.get_parameter(e.targetName,e.packetName,e.itemName).then((function(n){e.details=n}));case 7:case"end":return n.stop()}}),n)})))()},changeLimitsEnabled:function(){var e=this;return(0,a.Z)((0,s.Z)().mark((function n(){return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.details.limits.enabled){n.next=5;break}return n.next=3,e.api.enable_limits(e.targetName,e.packetName,e.itemName);case 3:n.next=7;break;case 5:return n.next=7,e.api.disable_limits(e.targetName,e.packetName,e.itemName);case 7:case"end":return n.stop()}}),n)})))()},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},u=c,d=(t(23270),t(93483)),m=(0,d.Z)(u,i,l,!1,null,"1e0f0ab0",null),p=m.exports},33908:function(e,n,t){"use strict";t.d(n,{Z:function(){return L}});t(74083);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-card",{nativeOn:{click:function(n){return e.$emit("click")}}},[n("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[n("span",[e._v("Errors")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(n){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit ")])]),n("v-spacer"),n("span",[e._v(e._s(e.title))]),n("v-spacer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v(" mdi-arrow-collapse ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v(" mdi-arrow-expand ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v(" mdi-arrow-collapse-horizontal ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v(" mdi-arrow-expand-horizontal ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v(" mdi-arrow-collapse-vertical ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v(" mdi-arrow-expand-vertical ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(n){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[n("div",{attrs:{id:"chart".concat(e.id)}}),n("div",{attrs:{id:"betweenCharts"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:"overview".concat(e.id)}})])])],1),n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.$emit("input")},input:function(n){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(n){e.editGraph=n},expression:"editGraph"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Edit Graph")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),n("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(n){e.graphStartDateTime=n}}}),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),n("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(n){e.graphEndDateTime=n}}}),n("v-row",{attrs:{dense:""}},[n("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(n){e.legendPosition=n},expression:"legendPosition"}})],1),n("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),n("v-row",{attrs:{dense:""}},[n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(n){e.graphMinY=n},expression:"graphMinY"}})],1),n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(n){e.graphMaxY=n},expression:"graphMaxY"}})],1)],1),n("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var i=t.item;return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-btn",{attrs:{icon:"","data-test":"delete-item-icon".concat(i.itemId)},on:{click:function(){return e.removeItems([i])}}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),n("v-card-actions",[n("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Errors")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1),n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e.editGraphMenu?n("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(n){e.editGraphMenu=n},expression:"editGraphMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){e.editGraph=!0}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),e.editItem?n("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(n){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(n){e.editItem=n},expression:"editItem"}}):e._e(),e.itemMenu?n("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(n){e.itemMenu=n},expression:"itemMenu"}},[n("v-list",{attrs:{nav:"",dense:""}},[n("v-subheader",[e._v(" "+e._s(e.selectedItem.targetName)+" "+e._s(e.selectedItem.packetName)+" "+e._s(e.selectedItem.itemName)+" ")]),n("v-list-item",{on:{click:function(n){e.editItem=!0}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-pencil")])],1),n("v-list-item-content",[n("v-list-item-title",[e._v(" Edit ")])],1)],1),n("v-list-item",{on:{click:function(n){return e.removeItems([e.selectedItem])}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-delete")])],1),n("v-list-item-content",[n("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e.legendMenu?n("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(n){e.legendMenu=n},expression:"legendMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){return e.moveLegend("top")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("bottom")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("left")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("right")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},l=[],s=t(50615),o=t(97302),a=t(78081),r=t(66964),c=(t(71245),t(43450),t(6710),t(58188),t(6886),t(36728),t(43108),t(18178),t(32501),t(13489),t(99805),t(1951),t(35883),t(39529),t(31235),function(){var e=this,n=e._self._c;return n("div",[n("v-row",[n("v-col",[n("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on;return[n("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date".concat(Date.now()),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(n){e.date=n},expression:"date"}},i))]}}])})],1),n("v-col",[n("v-text-field",{attrs:{label:e.timeLabel,name:"time".concat(Date.now()),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(n){e.time=n},expression:"time"}})],1)],1)],1)}),u=[],d=t(31200),m=t(10247),p=t(66700),A=t(73053),h={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data:function(){return{date:null,time:null,rules:{required:function(e){return!!e||"Required"},date:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(n){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(n){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created:function(){if(this.dateTime){var e=(0,p.Z)(this.dateTime/1e6);this.date=(0,A.Z)(e,"yyyy-MM-dd"),this.time=(0,A.Z)(e,"HH:mm:ss")}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},v=h,f=t(93483),g=(0,f.Z)(v,c,u,!1,null,null,null),b=g.exports,C=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(n){e.$set(e.editItem,"valueType",n)},expression:"editItem.valueType"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(n){e.$set(e.editItem,"reduced",n)},expression:"editItem.reduced"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(n){e.$set(e.editItem,"reducedType",n)},expression:"editItem.reducedType"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(n){return e.$emit("changeColor",n)}},model:{value:e.editItem.color,callback:function(n){e.$set(e.editItem,"color",n)},expression:"editItem.color"}}),e.limitsNames.length>1?n("div",[n("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(n){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(n){e.limitsName=n},expression:"limitsName"}}),n("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e(),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){return e.$emit("cancel")}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){return e.$emit("close",e.editItem)}}},[e._v(" Ok ")])],1)],1)],1)},_=[],y=t(15789),w=t(49502),x=(t(34769),t(67890),t(49228),t(48392)),k={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},limitsNames:function(){return Object.keys(this.limits)}},created:function(){var e=this;return(0,w.Z)((0,y.Z)().mark((function n(){return(0,y.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.editItem=(0,r.Z)({},e.item),n.next=3,e.api;case 3:e.api=(new x.k).get_item(e.item.targetName,e.item.packetName,e.item.itemName).then((function(n){for(var t=0,i=Object.entries(n.limits);t<i.length;t++){var l=(0,o.Z)(i[t],2),s=l[0],a=l[1];Object.keys(a).includes("red_low")&&e.$set(e.limits,s,Object.values(a))}e.limitsName=Object.keys(e.limits).find((function(n){return e.limits[n]+""===e.editItem.limits+""}))}));case 4:case"end":return n.stop()}}),n)})))()}},S=k,M=(0,f.Z)(S,C,_,!1,null,null,null),E=M.exports,T=t(3276),D=t(86522),I=t.n(D),R=t(59161);t(8514);var O={components:{DateTimeChooser:b,GraphEditItemDialog:E},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data:function(){return{itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new R.Z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["cornflowerblue","red","lime","darkorange","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];var e=0;return this.items.map((function(n){return e+=1,(0,r.Z)((0,r.Z)({},n),{},{itemId:e})}))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created:function(){this.title="Graph ".concat(this.id);var e,n=(0,a.Z)(this.items.entries());try{for(n.s();!(e=n.n()).done;){var t=(0,o.Z)(e.value,2),i=t[0],l=t[1];this.data.push([]),this.indexes[this.subscriptionKey(l)]=i+1,void 0===l.color&&(l.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)}}catch(s){n.e(s)}finally{n.f()}},mounted:function(){var e=this,n=this.items.reduce((function(n,t){var i={spanGaps:!0};return n.chartSeries.push((0,r.Z)((0,r.Z)({},i),{},{item:t,label:e.formatLabel(t),stroke:function(n,t){return e.items[t-1].color},value:function(e,n){return"string"===typeof n||isNaN(n)?"NaN":null==n?"--":n.toFixed(2)}})),n.overviewSeries.push((0,r.Z)({},i)),n}),{chartSeries:[],overviewSeries:[]}),t=n.chartSeries,i=n.overviewSeries,l={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,l={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new T.Z(l,this.data,document.getElementById("chart".concat(this.id)));else{l=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{plugins:[this.linesPlugin()],series:[{label:"Time",value:function(e,n){return null==n?"--":(0,A.Z)((0,p.Z)(1e3*n),"yyyy-MM-dd HH:mm:ss")}}].concat((0,s.Z)(t)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:function(n,t,i){return function(t){"pause"===e.state&&0===n.select.width&&e.$emit("start"),i(t)}}}},hooks:{setScale:[function(n,t){if("x"===t&&!e.zoomOverview&&e.overview){e.zoomChart=!0;var i=Math.round(e.overview.valToPos(n.scales.x.min,"x")),l=Math.round(e.overview.valToPos(n.scales.x.max,"x"));e.overview.setSelect({left:i,width:l-i}),e.zoomChart=!1}}],setSelect:[function(n){"start"===e.state&&n.select.width>0&&e.$emit("pause")}],ready:[function(n){var t=n.root.querySelector(".u-over");t.addEventListener("contextmenu",(function(n){n.preventDefault(),e.itemMenu=!1,e.legendMenu=!1,e.editGraphMenuX=n.clientX,e.editGraphMenuY=n.clientY,e.editGraphMenu=!0})),t.addEventListener("mouseenter",(function(n){e.$emit("resize")})),t.addEventListener("mouseleave",(function(n){e.$emit("resize")}));var i=n.root.querySelector(".u-legend");i.addEventListener("contextmenu",(function(t){t.preventDefault(),e.editGraphMenu=!1,e.legendMenu=!1,e.itemMenuX=t.clientX,e.itemMenuY=t.clientY;var l=t.target.closest(".u-series"),s=Array.prototype.slice.call(i.childNodes).indexOf(l),o=n.series[s];o.item?(e.selectedItem=o.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=t.clientX,e.legendMenuY=t.clientY,e.legendMenu=!0)}))}]}}),this.graph=new T.Z(l,this.data,document.getElementById("chart".concat(this.id)));var o=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,s.Z)(i),cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[function(n){if(!e.zoomChart){"start"===e.state&&n.select.width>0&&e.$emit("pause"),e.zoomOverview=!0;var t=n.posToVal(n.select.left,"x"),i=n.posToVal(n.select.left+n.select.width,"x");e.graph.setScale("x",{min:t,max:i}),e.zoomOverview=!1}}]}});this.overview=new T.Z(o,this.data,document.getElementById("overview".concat(this.id))),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,n){switch(e){case"start":"stop"===n&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,n){this.dataChanged=!0},graphMinY:function(e,n){var t=parseFloat(e);isNaN(t)||(this.graphMinY=t),this.setGraphRange()},graphMaxY:function(e,n){var t=parseFloat(e);isNaN(t)||(this.graphMaxY=t),this.setGraphRange()},graphStartDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){var e=this;this.subscribe(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){var e=this;this.updateGraphData(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"!==this.state&&this.dataChanged){this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);var e=this.data[0][this.data[0].length-1],n=this.data[0][this.data[0].length-this.pointsGraphed],t=this.data[0][0];t<e-this.secondsGraphed&&(t=e-this.secondsGraphed),n>t&&(t=n),this.graph.setScale("x",{min:t,max:e}),this.dataChanged=!1}},formatLabel:function(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;var n="";return"CONVERTED"!==e.valueType&&(n+=e.valueType),"DECOM"!==e.reduced&&(""!==n&&(n+=" "),n+="".concat(e.reduced.split("_")[1]," ").concat(e.reducedType)),"".concat(e.itemName," (").concat(n,")")},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){this.editGraph=!1,this.needToUpdate&&(null==this.subscription?this.startGraph():(this.removeItemsFromSubscription(),this.addItemsToSubscription()),this.needToUpdate=!1),this.moveLegend(this.legendPosition)},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){var e=this,n=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(n=0),this.graph.scales.y.range=function(t,i,l){var s=i;(e.graphMinY||0===e.graphMinY)&&(s=e.graphMinY);var o=l;return(e.graphMaxY||0===e.graphMaxY)&&(o=e.graphMaxY),T.Z.rangeNum(s,o,n,!0)}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return e.received(n)},connected:function(){e.addItemsToSubscription(e.items)},disconnected:function(){e.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:function(){e.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((function(n){e.subscription=n}))},getSize:function(e){var n=document.getElementById("openc3-nav-drawer"),t=n.classList.contains("v-navigation-drawer--open")?n.clientWidth:0,i=0;if("right"===this.legendPosition||"left"===this.legendPosition){var l=document.getElementsByClassName("u-legend")[0];i=l.clientWidth}var s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-t-i,o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=document.getElementsByClassName("c-chooser")[0],r=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:a&&(r=o-a.clientHeight-r-190,this.fullHeight||(r=r/2+10));var c=s-60;return this.fullWidth||(c=c/2-10),{width:this.width||c,height:this.height||r}},getScales:function(){return{scales:{x:{range:function(e,n,t){return null==n?[1566453600,1566497660]:[n,t]}},y:{range:function(e,n,t){return null==n?[-100,100]:T.Z.rangeNum(n,t,.1,!0)}}}}},getAxes:function(e){var n="rgba(0, 0, 0, .1)",t="black";return this.$vuetify.theme.dark&&(n="rgba(255, 255, 255, .1)",t="white"),{axes:[{stroke:t,grid:{show:!0,stroke:n,width:2}},{size:80,stroke:t,grid:{show:"overview"!==e,stroke:n,width:2}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){var n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[t].style.borderColor=e},changeLimits:function(e){var n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){var e=this;return{hooks:{draw:function(n){var t=n.ctx,i=n.bbox,l=n.valToPos(n.scales.y.min,"y",!0),s=n.valToPos(n.scales.y.max,"y",!0),o=n.valToPos(e.limitsValues[0],"y",!0),a=n.valToPos(e.limitsValues[1],"y",!0),r=n.valToPos(e.limitsValues[2],"y",!0),c=n.valToPos(e.limitsValues[3],"y",!0);if(t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",n.scales.y.min<e.limitsValues[0]){var u=o<s?s:o;t.fillRect(i.left,o,i.width,l-u)}if(n.scales.y.max>e.limitsValues[3]){var d=l<c?l:c;t.fillRect(i.left,s,i.width,d-s)}if(t.fillStyle="rgba(255,255,0,0.15)",n.scales.y.min<e.limitsValues[1]&&n.scales.y.max>e.limitsValues[0]){var m=a<s?s:a;t.fillRect(i.left,m,i.width,o-m)}if(n.scales.y.max>e.limitsValues[2]&&n.scales.y.min<e.limitsValues[3]){var p=l<c?l:c,A=l<r?l:r;t.fillRect(i.left,p,i.width,A-p)}if(t.fillStyle="rgba(0,255,0,0.15)",4===e.limitsValues.length){if(n.scales.y.min<e.limitsValues[2]&&n.scales.y.max>e.limitsValues[1]){var h=r<s?s:r,v=l<a?l:a;t.fillRect(i.left,h,i.width,v-h)}}else{var f=n.valToPos(e.limitsValues[4],"y",!0),g=n.valToPos(e.limitsValues[5],"y",!0);if(n.scales.y.min<e.limitsValues[4]&&n.scales.y.max>e.limitsValues[1]){var b=f<s?s:f;t.fillRect(i.left,b,i.width,a-b)}if(n.scales.y.max>e.limitsValues[5]&&n.scales.y.min<e.limitsValues[2]){var C=l<r?l:r,_=l<g?l:g;t.fillRect(i.left,C,i.width,_-C)}t.fillStyle="rgba(0,0,255,0.15)";var y=g<s?s:g,w=l<f?l:f;t.fillRect(i.left,y,i.width,w-y)}t.stroke(),t.restore()}}}},changeItem:function(e){var n=this;this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((function(){n.addItems([n.selectedItem])}))},addItems:function(e){var n,t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",l=(0,a.Z)(e);try{for(l.s();!(n=l.n()).done;){var s=n.value;s.valueType||(s.valueType=i),void 0===s.color&&(s.color=this.colors[this.colorIndex]),void 0===s.limits?s.limits=[]:s.limits.length>0&&(this.limitsValues=s.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(s);var o=this.data.length;this.graph.addSeries({spanGaps:!0,item:s,label:this.formatLabel(s),stroke:function(e,n){return t.items[n-1].color},value:function(e,n){return"string"===typeof n||isNaN(n)?"NaN":null==n?"--":n.toFixed(2)}},o),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:function(e,n){return t.items[n-1].color}},o);var r=Array(this.data[0].length);this.data.splice(o,0,r),this.indexes[this.subscriptionKey(s)]=o}}catch(c){l.e(c)}finally{l.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,t=this.startTime;this.graphStartDateTime&&(t=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(i){i&&OpenC3Auth.setTokens(),e.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:n.map(e.subscriptionKey),start_time:t,end_time:e.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);var n,t=(0,a.Z)(e.map(this.subscriptionKey));try{for(t.s();!(n=t.n()).done;){var i=n.value,l=this.reorderIndexes(i);this.colors.unshift(this.graph.series[l].stroke),this.items.splice(l-1,1),this.data.splice(l,1),this.graph.delSeries(l),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(l),this.overview.setData(this.data))}}catch(s){t.e(s)}finally{t.f()}},removeItemsFromSubscription:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items;this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){var n=this.indexes[e];for(var t in delete this.indexes[e],this.indexes)this.indexes[t]>n&&(this.indexes[t]-=1);return n},received:function(e){this.cable.recordPing();for(var n=0;n<e.length;n++){var t=e[n].__time/1e9,i=e[0].length;if(0===i||t>e[0][i-1]){for(var l=0;l<this.data.length;l++)this.data[l].push(null);this.set_data_at_index(this.data[0].length-1,t,e[n])}else{var s=I()(this.data[0],t,this.bs_comparator);if(s>=0)this.set_data_at_index(s,t,e[n]);else{for(var o=-s-1,a=0;a<this.data.length;a++)this.data[a].splice(o,0,null);this.set_data_at_index(o,t,e[n])}}}if(null==this.startTime){var r=1e9*this.data[0][0];this.$emit("started",r)}this.dataChanged=!0},bs_comparator:function(e,n){return e-n},set_data_at_index:function(e,n,t){this.data[0][e]=n;for(var i=0,l=Object.entries(t);i<l.length;i++){var s=(0,o.Z)(l[i],2),r=s[0],c=s[1];if("time"!==r){var u=this.indexes[r];if(u){var d=this.data[u];if(c.raw)d[e]=null;else if("string"===typeof c){if(d[e]=null,!r.includes("__RAW")){var m,p=(0,a.Z)(this.items);try{for(p.s();!(m=p.n()).done;){var A=m.value;if(this.subscriptionKey(A)===r){this.selectedItem=A;break}}}catch(h){p.e(h)}finally{p.f()}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else d[e]=c}}}},subscriptionKey:function(e){var n="".concat(e.reduced,"__TLM__").concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType);return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(n+="__".concat(e.reducedType)),n}}},N=O,Z=(t(51349),t(98840),(0,f.Z)(N,i,l,!1,null,"ea1fb086",null)),L=Z.exports},91679:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"array-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(78081),o=(t(68995),t(45794),t(92318)),a=t(93964),r=(t(80131),{components:{DetailsDialog:a.Z},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[o.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var n="",t=" ",i="\n",l=0;if(Array.isArray(e)){var o,a=(0,s.Z)(e);try{for(a.s();!(o=a.n()).done;){var r,c=o.value;this.formatter&&"nil"!==(null===(r=this.formatter)||void 0===r?void 0:r.toLowerCase())?n+=sprintf(this.formatter,c):n+=c,l+=1,l%this.itemsPerRow===0?(l=0,n+=i):n+=t}}catch(u){a.e(u)}finally{a.f()}return n.trim()}return e}}}),c=r,u=(t(94776),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"5cd86706",null),m=d.exports},90328:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"block-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","no-resize":"","hide-details":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(78081),o=(t(68995),t(92318)),a=t(93964),r=(t(80131),{components:{DetailsDialog:a.Z},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[o.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var n="";if(e&&e.raw){var t,i=" ",l="\n",o=0,a=0,r=this.bytesPerWord*this.wordsPerRow,c=(0,s.Z)(e.raw);try{for(c.s();!(t=c.n()).done;){var u=t.value;this.addrFormat&&0===o&&(n+=sprintf(this.addrFormat,a),a+=r),n+=sprintf(this.formatter,u),o+=1,o%r===0?(o=0,n+=l):o%this.bytesPerWord===0&&(n+=i)}}catch(d){c.e(d)}finally{c.f()}}else n=e;return n}}}),c=r,u=(t(14311),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"0872fd0e",null),m=d.exports},94307:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var i=function(){var e=this,n=e._self._c;return n("div",[n("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" ")]),n("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(n){e.displaySendHazardous=n},expression:"displaySendHazardous"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Hazardous")]),n("v-card-text",[e._v(" Warning: Command is Hazardous. Send? ")]),n("v-btn",{staticClass:"primary mr-4",on:{click:e.sendHazardousCmd}},[e._v("Yes")]),n("v-btn",{staticClass:"primary",on:{click:e.cancelHazardousCmd}},[e._v("No")])],1)],1)],1)},l=[],s=t(90985),o=s.Z,a=t(93483),r=(0,a.Z)(o,i,l,!1,null,null,null),c=r.exports},37739:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=t(548),o={mixins:[s.Z],computed:{width:function(){return this.parameters[0]+"px"},height:function(){return this.parameters[1]+"px"}}},a=o,r=(t(64550),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"17947dc7",null),u=c.exports},72810:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},l=[],s=t(92202),o={mixins:[s.Z]},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},47696:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return e.imageUrl?n("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},l=[],s=(t(58188),t(1939),t(44112),t(92202)),o=t(1716),a={mixins:[s.Z,o.Z],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?"".concat(this.parameters[3],"px"):"100%"},height:function(){return this.parameters[4]?"".concat(this.parameters[4],"px"):"100%"}},created:function(){var e=this;this.settings.forEach((function(n){"SCREEN"===n[0]&&(e.screenTarget=n[1],e.screenName=n[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((function(n){e.imageUrl=n}))},methods:{clickHandler:function(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},15348:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=function(){var e=this,n=e._self._c;return n("g",[e._l(e.images,(function(t){return n("image",{directives:[{name:"show",rawName:"v-show",value:t.value==e.selectedValue,expression:"image.value == selectedValue"}],key:t.value,attrs:{href:t.url,x:t.x,y:t.y,width:t.width,height:t.height},on:{click:e.clickHandler}})})),e.defaultImage?n("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},l=[],s=t(66964),o=t(15789),a=t(49502),r=(t(58188),t(1939),t(18178),t(43450),t(95342),t(44112),t(28673),t(6886),t(92202)),c=t(1716),u={mixins:[r.Z,c.Z],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){var e=this;return!this.images.some((function(n){return n.value==e.selectedValue}))}},created:function(){var e=this;this.settings.forEach((function(n){"SCREEN"===n[0]&&(e.screenTarget=n[1],e.screenName=n[2])})),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]||"RAW"),this.screen&&this.screen.addItem(this.valueId);var n=this.settings.filter((function(e){return"IMAGE"===e[0]})).map(function(){var n=(0,a.Z)((0,o.Z)().mark((function n(t){var i;return(0,o.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t[2],i.startsWith("http")){n.next=5;break}return n.next=4,e.getPresignedUrl(i);case 4:i=n.sent;case 5:return n.abrupt("return",{url:i,value:t[1],x:t[3],y:t[4],width:t[5],height:t[6]});case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());if(Promise.all(n).then((function(n){e.images=n})),this.parameters[4]){var t={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?"".concat(this.parameters[7],"px"):"100%",height:this.parameters[8]?"".concat(this.parameters[8],"px"):"100%"},i=this.parameters[4];i.startsWith("http")?this.defaultImage=(0,s.Z)((0,s.Z)({},t),{},{url:i}):this.getPresignedUrl(i).then((function(n){e.defaultImage=(0,s.Z)((0,s.Z)({},t),{},{url:n})}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler:function(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},d=u,m=t(93483),p=(0,m.Z)(d,i,l,!1,null,null,null),A=p.exports},19091:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v(" "+e._s(e.parameters[2])+" ")])},l=[],s=t(92202),o={mixins:[s.Z],computed:{fillColor:function(){return this.parameters[3]?this.parameters[3]:"black"}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},93856:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v(" "+e._s(e._value)+" ")])},l=[],s=(t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:null}},computed:{_value:function(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize:function(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor:function(){return this.parameters[6]?this.parameters[6]:"black"}},created:function(){var e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},96068:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},l=[],s=t(92202),o={mixins:[s.Z],computed:{calcStyle:function(){var e="black";this.parameters[4]&&(e=this.parameters[4]);var n=1;return this.parameters[5]&&(n=this.parameters[5]),"stroke:"+e+";stroke-width:"+n}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},17289:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},l=[],s=(t(58188),t(1939),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:0,valueMap:{}}},computed:{calcStyle:function(){var e="black";this.screen&&this.screen.screenValues[this.valueId][0]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);var n=1;return this.parameters[7]&&(n=this.parameters[7]),"stroke:"+e+";stroke-width:"+n}},created:function(){var e=this;this.settings.forEach((function(n){"VALUE_EQ"===n[0]&&(e.valueMap[n[1]]=n[2])}));var n="CONVERTED";this.parameters[8]&&(n=this.parameters[8]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},6122:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{items:[],label:"Checkbox",value:!1}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.label=this.parameters[0]},methods:{checked:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},84190:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",items:e.items},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{items:[],value:null}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.items=this.parameters},methods:{text:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},39609:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=t(66964),l=function(){var e=this,n=e._self._c;return n(e.widgetType,e._b({tag:"component"},"component",(0,i.Z)((0,i.Z)({},e.$props),e.$attrs),!1))},s=[],o=t(15789),a=t(49502),r=(t(18178),t(71372),{data:function(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return"".concat(window.location.origin,"/tools/widgets/").concat(this.name,"/").concat(this.name,".umd.min.js")}},mounted:function(){var e=this;return(0,a.Z)((0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,System.import(e.url);case 3:e.widgetType=n.sent,n.next=9;break;case 6:throw n.prev=6,n.t0=n["catch"](0),new Error("Unknown widget: ".concat(e.name));case 9:case"end":return n.stop()}}),n,null,[[0,6]])})))()}}),c=r,u=t(93483),d=(0,u.Z)(c,l,s,!1,null,null,null),m=d.exports},90742:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},l=[],s=t(92202),o=t(87557),a={mixins:[s.Z],components:{ValueWidget:o["default"]},computed:{getParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created:function(){this.setWidth(this.parameters[5],"ch",12)}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},745:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o={mixins:[s.Z],created:function(){if(this.parameters[0]){var e=this.parameters[0];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1835:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),n("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},l=[],s=t(745),o=t(548),a={mixins:[o.Z],components:{HorizontalWidget:s["default"]}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},92398:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return r}});var i=function(){var e=this,n=e._self._c;return n("hr")},l=[],s=t(93483),o={},a=(0,s.Z)(o,i,l,!1,null,null,null),r=a.exports},27549:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("iframe",{style:e.computedStyle,attrs:{src:e.parameters[0],width:e.width,height:e.height}})},l=[],s=t(92202),o={mixins:[s.Z],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1499:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("img",{style:e.computedStyle,attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},l=[],s=(t(18178),t(58188),t(49228),t(48392)),o=t(92202),a=t(59161),r={mixins:[o.Z],data:function(){return{api:new s.k,cable:new a.Z,subscription:null,imageData:""}},computed:{src:function(){return"data:image/".concat(this.parameters[3],";base64, ").concat(this.imageData)},itemFullName:function(){return"TLM__".concat(this.targetName,"__").concat(this.packetName,"__").concat(this.itemName,"__").concat(this.valueType)},targetName:function(){return this.parameters[0]},packetName:function(){return this.parameters[1]},itemName:function(){return this.parameters[2]},valueType:function(){return"CONVERTED"}},created:function(){var e=this;this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((function(n){var t=null===n||void 0===n?void 0:n.find((function(n){return n[0]===e.itemName}));t&&(e.imageData=t[1])})).finally((function(){e.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(this.cable.recordPing(),e["error"])this.$notify.serious({body:e["error"]});else if(e.length){var n=e[e.length-1];this.imageData=n[this.itemFullName]}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return e.received(n)},connected:function(){e.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[e.itemFullName]})},disconnected:function(){e.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:function(){e.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((function(n){e.subscription=n}))}}},c=r,u=t(93483),d=(0,u.Z)(c,i,l,!1,null,null,null),m=d.exports},75318:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v(" "+e._s(e.labelText)+" ")])},l=[],s=t(92202),o={mixins:[s.Z],data:function(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText:function(){return this.parameters[0]},cssProps:function(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created:function(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},a=o,r=(t(88489),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"19db816e",null),u=c.exports},21275:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("led-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(29016),c={mixins:[o.Z],components:{LabelWidget:a["default"],LedWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},15929:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(11826),c={mixins:[o.Z],components:{LabelWidget:a["default"],ProgressbarWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},91745:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(56803),c={mixins:[o.Z],components:{LabelWidget:a["default"],SparklineWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},210:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(87557),c={mixins:[o.Z],components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},28913:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("value-widget",{attrs:{parameters:e.valueParameters,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],o=(t(34115),t(634),t(32501),t(36728),t(92202)),a=t(75318),r=t(87557),c=t(48392),u={mixins:[o.Z],data:function(){return{description:"",valueParameters:[]}},components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.description]}},created:function(){var e=this;this.valueParameters=this.parameters.slice(0,3),this.valueParameters.push(this.parameters[4]),this.parameters.length>3?this.description=this.parameters[3]:(new c.k).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.description=n["description"]}))}},d=u,m=t(93483),p=(0,m.Z)(d,l,s,!1,null,null,null),A=p.exports},68738:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=(t(18178),t(95342),t(58188),t(68995),t(210)),a=t(74032),r=t(92202),c={mixins:[r.Z],components:{LabelvalueWidget:o["default"],LimitsbarWidget:a["default"]},computed:{labelValueSettings:function(){return[].concat((0,i.Z)(this.settings.filter((function(e){return"__SCREEN__"===e[0]}))),(0,i.Z)(this.settings.filter((function(e){return 0===parseInt(e[0])||1===parseInt(e[0])}))))},limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},94338:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("label-widget",{attrs:{parameters:[e.parameters[2]],settings:(0,i.Z)(e.settings),"widget-index":0}}),n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:(0,i.Z)(e.settings),"widget-index":1}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=t(75318),a=t(87557),r=t(36652),c=t(92202),u={mixins:[c.Z],components:{LabelWidget:o["default"],ValueWidget:a["default"],LimitscolumnWidget:r["default"]},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},d=u,m=t(93483),p=(0,m.Z)(d,l,s,!1,null,null,null),A=p.exports},45964:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=(t(18178),t(95342),t(58188),t(68995),t(210)),a=t(96758),r=t(92202),c={mixins:[r.Z],components:{LabelvalueWidget:o["default"],RangebarWidget:a["default"]},computed:{labelValueSettings:function(){return[].concat((0,i.Z)(this.settings.filter((function(e){return"__SCREEN__"===e[0]}))),(0,i.Z)(this.settings.filter((function(e){return 0===parseInt(e[0])||1===parseInt(e[0])}))))},labelValueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){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]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},29016:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"led mt-1",style:e.cssProps})},l=[],s=(t(68995),t(58188),t(1939),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width:function(){return this.parameters[4]?parseInt(this.parameters[4]):20},height:function(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps:function(){var e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);var n=this.colors[e];return n||(n=this.colors.ANY),n||(n="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":n}}},created:function(){var e=this;this.settings.forEach((function(n){switch(n[0]){case"LED_COLOR":e.colors[n[1]]=n[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=(t(65818),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"4e68ef1f",null),u=c.exports},74032:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],s=(t(58188),t(1939),t(68995),t(18178),t(92202)),o=t(48392),a="DEFAULT",r={mixins:[s.Z],data:function(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);var n=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(n),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,n)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created:function(){var e=this;this.api=new o.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.limitsSettings=n})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((function(n){"MIN_VALUE"===n[0]&&(e.minValue=parseInt(n[1])),"MAX_VALUE"===n[0]&&(e.maxValue=parseInt(n[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var n="CONVERTED";this.parameters[3]&&(n=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits:function(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.redLow=0),e[2]==e[3]&&(this.redHigh=0);var n=80;return 0==this.redLow&&(n+=10),0==this.redHigh&&(n+=10),this.scale=(e[3]-e[0])/n,e},calcPosition:function(e,n){if(null!=e&&n){var t=n[0]-10*this.scale;this.minValue&&this.minValue==n[0]&&(t=n[0]);n[3],this.scale;if(this.maxValue&&this.maxValue==n[3]&&n[3],e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var i=parseInt((e-t)/this.scale);return i>100?100:i<0?0:i}},calcLimits:function(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(n){e.currentLimitsSet=n}))}}},c=r,u=(t(73866),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"f1782fb4",null),m=d.exports},74865:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("div",{staticClass:"led align-self-center",style:e.cssProps}),n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},l=[],s=(t(68995),t(92318)),o={mixins:[s.Z],data:function(){return{radius:15,fullLabelDisplay:!1}},created:function(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName:function(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps:function(){return this.screen&&this.screen.screenValues[this.valueId][0],{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType:function(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},a=o,r=(t(58878),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"47f390ae",null),u=c.exports},36652:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],s=(t(18178),t(68995),t(92202)),o=t(48392),a="DEFAULT",r={mixins:[s.Z],data:function(){return{width:20,height:100,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--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+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created:function(){var e=this;this.api=new o.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.limitsSettings=n})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var n="CONVERTED";this.parameters[3]&&(n=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition:function(e,n){if(e&&n){var t=.8;n[0]===n[1]&&(t+=.1),n[2]===n[3]&&(t+=.1);var i=(n[3]-n[0])/t,l=n[0]-.1*i;n[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var s=parseInt((e-l)/i*100);return s>100?100:s<0?0:s}},calcLimits:function(e){if(e){var n=80;e[0]===e[1]?(this.redLow=0,n+=10):this.redLow=10,e[2]===e[3]?(this.redHigh=0,n+=10):this.redHigh=10;var t=1*(e[3]-e[0]);this.yellowLow=Math.round((e[1]-e[0])/t*n),this.yellowHigh=Math.round((e[3]-e[2])/t*n),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/t*n),this.greenHigh=Math.round((e[2]-e[5])/t*n),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0)}},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(n){e.currentLimitsSet=n}))}}},c=r,u=(t(48001),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"0e4c2263",null),m=d.exports},32554:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{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,"hide-system-bar":"","hide-overview":""},on:{pause:function(){return e.state="pause"},start:function(){return e.state="start"}}})},l=[],s=t(22841),o=t(33908),a={components:{Graph:o.Z},mixins:[s.Z]},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},42509:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("table",{style:e.computedStyle},e._l(e.widgetChunks,(function(t,i){return n("tr",{key:"r"+i},e._l(t,(function(t,i){return n("td",{key:"c"+i},[n(t.type,e._g({tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))],1)})),0)})),0)},l=[],s=(t(68995),t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o=t(76635),a=t.n(o),r={mixins:[s.Z],computed:{columns:function(){return parseInt(this.parameters[0])},widgetChunks:function(){return a().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){var e=this.parameters[1];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},c=r,u=t(93483),d=(0,u.Z)(c,i,l,!1,null,null,null),m=d.exports},11826:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-progress-linear",{style:e.computedStyle,attrs:{height:"25",value:e._value}},[n("strong",[e._v(e._s(Math.ceil(e._value))+"%")])])},l=[],s=(t(68995),t(13489),t(18178),t(92202)),o={mixins:[s.Z],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:100}},computed:{_value:function(){var e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1882:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},l=[],s=(t(71245),t(92202)),o={props:{value:{type:Number}},mixins:[s.Z],data:function(){return{label:"Radio"}},created:function(){this.label=this.parameters[0]}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},22201:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(n){e.selectedIndex=n},expression:"selectedIndex"}},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{value:i,target:t.target,parameters:t.parameters,settings:t.settings,name:t.name}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(68995),t(548)),o={mixins:[s.Z],data:function(){return{selectedIndex:0}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected:function(){return this.selectedIndex}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},96758:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar__container"},[n("div",{staticClass:"rangebar__line"}),n("div",{staticClass:"rangebar__arrow"})])}],s=(t(68995),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{width:160,height:22}},computed:{cssProps:function(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min:function(){return parseInt(this.parameters[3])},max:function(){return parseInt(this.parameters[4])},range:function(){return this.max-this.min}},created:function(){var e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition:function(){var e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;var n=(e-this.min)/this.range*100;return n>100?100:n<0?0:n}}},a=o,r=(t(34363),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"f50bb458",null),u=c.exports},64836:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("vertical-widget",e._g({staticClass:"overflow-y-auto",style:e.computedStyle,attrs:{settings:e.settings,parameters:e.parameters.slice(1),widgets:e.widgets}},e.$listeners))},l=[],s=t(548),o=t(21833),a={mixins:[s.Z],components:{VerticalWidget:o["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},28560:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},l=[],s=t(92202),o={mixins:[s.Z],computed:{labelText:function(){return this.parameters[0]}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},39413:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{style:e.style})},l=[],s=t(92202),o={mixins:[s.Z],computed:{style:function(){return["width: ".concat(this.parameters[0],"px;"),"height: ".concat(this.parameters[1],"px;")].join("")}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},56803:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{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,sparkline:""}})},l=[],s=t(22841),o=t(33908),a={components:{Graph:o.Z},mixins:[s.Z],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},51018:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});t(18178);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-tabs",{style:e.computedStyle,model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,i){return n("v-tab",{key:i},[e._v(" "+e._s(t.parameters[0])+" ")])})),1),n("v-tabs-items",{model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,i){return n("v-tab-item",{key:i},e._l(t.widgets,(function(t,l){return n(t.type,e._g({key:"".concat(i,"-").concat(l),tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)})),1)],1)},l=[],s=t(548),o={mixins:[s.Z],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},31597:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"textbox-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(92318),o=t(93964),a=(t(80131),{components:{DetailsDialog:o.Z},data:function(){return{width:200,height:200}},mixins:[s.Z],computed:{aging:function(){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(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}}),r=a,c=(t(13134),t(93483)),u=(0,c.Z)(r,i,l,!1,null,"0b5bfdc6",null),d=u.exports},71447:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{value:null}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},43748:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v(" "+e._s(e.labelText)+" ")])},l=[],s=(t(71372),t(92202)),o={mixins:[s.Z],computed:{labelText:function(){return this.parameters[0]}},created:function(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},87557:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",l,!1),i))]}}])},[n("span",[e._v(e._s(e.fullName))])]),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=(t(68995),t(92318)),o=t(93964),a=4,r={components:{DetailsDialog:o.Z},mixins:[s.Z],data:function(){return{width:12+a}},computed:{fullName:function(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.verifyNumParams("VALUE",3,3,"VALUE <TARGET> <PACKET> <ITEM>"),this.setWidth(parseInt(this.parameters[4])+a,"ch",this.width)}},c=r,u=(t(20019),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"2750a386",null),m=d.exports},73437:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=(t(32501),function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:(0,i.Z)(e.settings),"widget-index":1}})],1)}),s=[],o=t(87557),a=t(74032),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],LimitsbarWidget:a["default"]},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},56822:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(87557),a=t(36652),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],LimitscolumnWidget:a["default"]},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},91312:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.valueParameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(87557),a=t(96758),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],RangebarWidget:a["default"]},computed:{valueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){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]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),p=m.exports},21833:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o={mixins:[s.Z],created:function(){if(this.parameters[0]){var e=this.parameters[0];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},59233:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),n("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},l=[],s=t(21833),o=t(548),a={mixins:[o.Z],components:{VerticalWidget:s["default"]}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},74301:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-card__subtitle[data-v-33fbf9b4]{padding:0;padding-bottom:10px}",""]),n["default"]=a},96653:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#sr-controls[data-v-6a57905f]{padding-top:0;padding-bottom:5px;padding-left:0;padding-right:0}.editorbox[data-v-6a57905f]{height:50vh}.editor[data-v-6a57905f]{height:100%;width:100%;font-size:16px}.editor[data-v-6a57905f],hr[data-v-6a57905f]{position:relative}hr[data-v-6a57905f]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-6a57905f] input{text-transform:capitalize}",""]),n["default"]=a},88565:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".runningMarker{position:absolute;background:rgba(0,255,0,.5);z-index:20}.waitingMarker{position:absolute;background:#009b00;z-index:20}.breakpointMarker{position:absolute;border-style:solid;border-color:red;background:rgba(0,255,0,.5);z-index:20}.pausedMarker{background:rgba(0,140,255,.5)}.errorMarker,.pausedMarker{position:absolute;z-index:20}.errorMarker{background:rgba(255,0,119,.5)}.fatalMarker{position:absolute;background:rgba(255,0,0,.5);z-index:20}.saving{z-index:20;opacity:.35}.ace_gutter-cell.ace_breakpoint{border-radius:20px 0 0 20px;box-shadow:inset 0 0 1px 1px red}.grid{position:relative}.item{position:absolute;display:block;margin:5px;z-index:1}.item-content{position:relative;cursor:pointer;border-radius:6px}",""]),n["default"]=a},43208:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".label[data-v-1e0f0ab0]{font-weight:700;text-transform:capitalize}[data-v-1e0f0ab0] .v-input--selection-controls{padding:0;margin:0}",""]),n["default"]=a},73713:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".ace_autocomplete{width:60vw!important}",""]),n["default"]=a},10009:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".editor[data-v-4c92d9b1]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-4c92d9b1]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-4c92d9b1] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),n["default"]=a},18809:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]),n["default"]=a},50301:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#chart[data-v-ea1fb086]{background-color:var(--v-tertiary-darken2)}#chart[data-v-ea1fb086] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),n["default"]=a},83263:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-card[data-v-a491b21e]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-a491b21e] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),n["default"]=a},6294:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),n["default"]=a},20652:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".array-widget-container[data-v-5cd86706] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5cd86706] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5cd86706] input{color:#00c800}.openc3-yellow[data-v-5cd86706] input{color:#ffdc00}.openc3-red[data-v-5cd86706] input{color:#ff2d2d}.openc3-blue[data-v-5cd86706] input{color:#09f}.openc3-purple[data-v-5cd86706] input{color:#c800c8}.openc3-black[data-v-5cd86706] input{color:#000}.openc3-white[data-v-5cd86706] input{color:#fff}",""]),n["default"]=a},4177:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".block-widget-container[data-v-0872fd0e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-0872fd0e] textarea{font-family:Courier New,Courier,monospace}.value[data-v-0872fd0e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0872fd0e] input{color:#00c800}.openc3-yellow[data-v-0872fd0e] input{color:#ffdc00}.openc3-red[data-v-0872fd0e] input{color:#ff2d2d}.openc3-blue[data-v-0872fd0e] input{color:#09f}.openc3-purple[data-v-0872fd0e] input{color:#c800c8}.openc3-black[data-v-0872fd0e] input{color:#000}.openc3-white[data-v-0872fd0e] input{color:#fff}",""]),n["default"]=a},18748:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]),n["default"]=a},38374:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),n["default"]=a},19912:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),n["default"]=a},76658:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".textbox-widget-container[data-v-0b5bfdc6] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-0b5bfdc6] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0b5bfdc6] input{color:#00c800}.openc3-yellow[data-v-0b5bfdc6] input{color:#ffdc00}.openc3-red[data-v-0b5bfdc6] input{color:#ff2d2d}.openc3-blue[data-v-0b5bfdc6] input{color:#09f}.openc3-purple[data-v-0b5bfdc6] input{color:#c800c8}.openc3-black[data-v-0b5bfdc6] input{color:#000}.openc3-white[data-v-0b5bfdc6] input{color:#fff}",""]),n["default"]=a},19940:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-37955b8a]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},54780:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-41562d92]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},94811:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-f2badfd2]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},48432:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-ffe4e8e8]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},12364:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#tr-container[data-v-3372ac08]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}",""]),n["default"]=a},31023:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]),n["default"]=a},67632:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".limitsbar[data-v-f1782fb4]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-f1782fb4]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-f1782fb4]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-f1782fb4],.limitsbar__redlow[data-v-f1782fb4]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-f1782fb4]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-f1782fb4]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-f1782fb4],.limitsbar__yellowlow[data-v-f1782fb4]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-f1782fb4]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-f1782fb4]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-f1782fb4],.limitsbar__greenlow[data-v-f1782fb4]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-f1782fb4]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-f1782fb4]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-f1782fb4],.limitsbar__line[data-v-f1782fb4]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-f1782fb4]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-f1782fb4]{position:absolute;top:-5px;left:var(--position);width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),n["default"]=a},4931:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".limitsbar[data-v-0e4c2263]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-0e4c2263]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-0e4c2263]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-0e4c2263],.limitsbar__redlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-0e4c2263]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-0e4c2263]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-0e4c2263],.limitsbar__yellowlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-0e4c2263]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-0e4c2263],.limitsbar__greenlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-0e4c2263]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-0e4c2263],.limitsbar__line[data-v-0e4c2263]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-0e4c2263]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-0e4c2263]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;-webkit-transform:translateY(5px);transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]),n["default"]=a},82917:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".rangebar[data-v-f50bb458]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.rangebar__container[data-v-f50bb458]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-f50bb458]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-f50bb458],.rangebar__line[data-v-f50bb458]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-f50bb458]{top:-5px;width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),n["default"]=a},15471:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".value-widget-container[data-v-2750a386]{min-height:34px}.value-widget-container[data-v-2750a386] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-2750a386] input{text-align:var(--text-align)!important}.value[data-v-2750a386] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-2750a386] input{color:#00c800}.openc3-yellow[data-v-2750a386] input{color:#ffdc00}.openc3-red[data-v-2750a386] input{color:#ff2d2d}.openc3-blue[data-v-2750a386] input{color:#09f}.openc3-purple[data-v-2750a386] input{color:#c800c8}.openc3-black[data-v-2750a386] input{color:#000}.openc3-white[data-v-2750a386] input{color:#fff}",""]),n["default"]=a},90985:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(15789),_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(49502),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45794),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(58188),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39529),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(31235),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(77950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(85940),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(36728),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(48392),_services_api__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16129),_Widget__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(92202);__webpack_exports__.Z={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_11__.Z],data:function(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText:function(){return this.parameters[0]},eval:function(){return this.parameters[1]}},created:function(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_9__.k},methods:{onClick:function onClick(){var _this=this;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)((0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().mark((function _callee(){var lines,self,screen,api,run_script,runScript,i,result;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:lines=_this.eval.split(";;"),self=_this,screen=_this.screen,api=_this.api,run_script=_this.runScript,runScript=_this.runScript,i=0;case 7:if(!(i<lines.length)){_context.next=28;break}if(result=eval(lines[i].trim()),!(result instanceof Promise)){_context.next=25;break}return _context.prev=10,_context.next=13,result;case 13:_context.next=25;break;case 15:if(_context.prev=15,_context.t0=_context["catch"](10),!_context.t0.message.includes("is Hazardous")){_context.next=25;break}_this.lastCmd=_context.t0.message.split("\n").pop(),_this.displaySendHazardous=!0;case 20:if(!_this.displaySendHazardous){_context.next=25;break}return _context.next=23,new Promise((function(e){return setTimeout(e,500)}));case 23:_context.next=20;break;case 25:i++,_context.next=7;break;case 28:case"end":return _context.stop()}}),_callee,null,[[10,15]])})))()},sendHazardousCmd:function sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd:function(){this.displaySendHazardous=!1},runScript:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[];for(var l in t)i.push({key:l,value:t[l],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_10__.Z.post("/script-api/scripts/".concat(e,"/run"),{data:{environment:i}}).then((function(e){n&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},74087:function(e,n,t){var i=t(74301);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("abc7abfc",i,!0,{sourceMap:!1,shadowMode:!1})},75330:function(e,n,t){var i=t(96653);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("31e5507a",i,!0,{sourceMap:!1,shadowMode:!1})},88506:function(e,n,t){var i=t(88565);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("e1d06f8e",i,!0,{sourceMap:!1,shadowMode:!1})},23270:function(e,n,t){var i=t(43208);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("c388abcc",i,!0,{sourceMap:!1,shadowMode:!1})},16895:function(e,n,t){var i=t(73713);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("26aa5c80",i,!0,{sourceMap:!1,shadowMode:!1})},48038:function(e,n,t){var i=t(10009);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("50d18334",i,!0,{sourceMap:!1,shadowMode:!1})},51349:function(e,n,t){var i=t(18809);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("98974f7a",i,!0,{sourceMap:!1,shadowMode:!1})},98840:function(e,n,t){var i=t(50301);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("742254cf",i,!0,{sourceMap:!1,shadowMode:!1})},51080:function(e,n,t){var i=t(83263);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("75f26182",i,!0,{sourceMap:!1,shadowMode:!1})},94888:function(e,n,t){var i=t(6294);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("706a3f6d",i,!0,{sourceMap:!1,shadowMode:!1})},94776:function(e,n,t){var i=t(20652);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("771bf989",i,!0,{sourceMap:!1,shadowMode:!1})},14311:function(e,n,t){var i=t(4177);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("7a72c236",i,!0,{sourceMap:!1,shadowMode:!1})},88489:function(e,n,t){var i=t(18748);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("a05f0e64",i,!0,{sourceMap:!1,shadowMode:!1})},65818:function(e,n,t){var i=t(38374);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("5d2fe189",i,!0,{sourceMap:!1,shadowMode:!1})},58878:function(e,n,t){var i=t(19912);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("adf28f2a",i,!0,{sourceMap:!1,shadowMode:!1})},13134:function(e,n,t){var i=t(76658);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("458ef3b0",i,!0,{sourceMap:!1,shadowMode:!1})},95906:function(e,n,t){var i=t(19940);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("6fbe0352",i,!0,{sourceMap:!1,shadowMode:!1})},98297:function(e,n,t){var i=t(54780);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("624110ac",i,!0,{sourceMap:!1,shadowMode:!1})},20408:function(e,n,t){var i=t(94811);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("1dd31bd2",i,!0,{sourceMap:!1,shadowMode:!1})},10204:function(e,n,t){var i=t(48432);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("e6e3a244",i,!0,{sourceMap:!1,shadowMode:!1})},14723:function(e,n,t){var i=t(12364);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("0aed5680",i,!0,{sourceMap:!1,shadowMode:!1})},64550:function(e,n,t){var i=t(31023);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("62b2115a",i,!0,{sourceMap:!1,shadowMode:!1})},73866:function(e,n,t){var i=t(67632);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("1fd7210f",i,!0,{sourceMap:!1,shadowMode:!1})},48001:function(e,n,t){var i=t(4931);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("5862f0b2",i,!0,{sourceMap:!1,shadowMode:!1})},34363:function(e,n,t){var i=t(82917);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("31a841c7",i,!0,{sourceMap:!1,shadowMode:!1})},20019:function(e,n,t){var i=t(15471);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("c59cda46",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=792.js.map
|