openc3-tool-scriptrunner 5.0.6 → 5.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +2 -1
- data/tools/scriptrunner/js/488.js +2 -0
- data/tools/scriptrunner/js/488.js.map +1 -0
- data/tools/scriptrunner/js/79.js +43 -0
- data/tools/scriptrunner/js/79.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/736.js +0 -2
- data/tools/scriptrunner/js/736.js.map +0 -1
- data/tools/scriptrunner/js/859.js +0 -4
- data/tools/scriptrunner/js/859.js.map +0 -1
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_tool_scriptrunner"]=self["webpackChunk_openc3_tool_scriptrunner"]||[]).push([[736],{5736:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return vt}});var l=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("top-bar",{attrs:{menus:n.menus,title:n.title}}),t("v-snackbar",{attrs:{top:"",color:n.alertType,timeout:3e3},scopedSlots:n._u([{key:"action",fn:function(e){var l=e.attrs;return[t("v-btn",n._b({attrs:{text:""},on:{click:function(e){n.showAlert=!1}}},"v-btn",l,!1),[n._v(" Close ")])]}}]),model:{value:n.showAlert,callback:function(e){n.showAlert=e},expression:"showAlert"}},[t("v-icon",[n._v(" mdi-"+n._s(n.alertType)+" ")]),n._v(" "+n._s(n.alertText)+" ")],1),t("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:n._u([{key:"action",fn:function(e){var l=e.attrs;return[t("v-btn",n._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:n.confirmLocalUnlock}},"v-btn",l,!1),[n._v(" Unlock ")]),t("v-btn",n._b({attrs:{text:""},on:{click:function(){n.showReadOnlyToast=!1}}},"v-btn",l,!1),[n._v(" dismiss ")])]}}]),model:{value:n.showReadOnlyToast,callback:function(e){n.showReadOnlyToast=e},expression:"showReadOnlyToast"}},[t("v-icon",[n._v(" mdi-pencil-off ")]),n._v(" "+n._s(n.lockedBy)+" is editing this script. Editor is in read-only mode ")],1),n.suiteRunner?t("suite-runner",{attrs:{"suite-map":n.suiteMap,"disable-buttons":n.disableSuiteButtons},on:{button:n.suiteRunnerButton}}):n._e(),t("div",{attrs:{id:"sr-controls"}},[t("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[n.showDisconnect?t("v-icon",{staticClass:"mr-2",attrs:{color:"red"}},[n._v(" mdi-connection ")]):n._e(),t("v-select",{attrs:{outlined:"",dense:"","hide-details":"",items:n.fileList,disabled:n.fileList.length<=1,label:"Filename",id:"filename","data-test":"filename"},on:{change:n.fileNameChanged},model:{value:n.fullFilename,callback:function(e){n.fullFilename=e},expression:"fullFilename"}}),t("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:n.scriptId,callback:function(e){n.scriptId=e},expression:"scriptId"}}),t("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:n.state,callback:function(e){n.state=e},expression:"state"}}),"Connecting..."===n.state?t("v-progress-circular",{staticClass:"ml-2 mr-2",attrs:{size:40,indeterminate:"",color:"primary"}}):t("div",{staticClass:"ml-2 mr-2",staticStyle:{width:"40px",height:"40px"}}),t("v-spacer"),"Start"===n.startOrGoButton?t("div",[t("v-btn",{staticClass:"mx-1",attrs:{color:"primary","data-test":"start-button",disabled:n.startOrGoDisabled},on:{click:n.startHandler}},[t("span",[n._v(" Start ")])]),t("v-tooltip",{attrs:{bottom:""},scopedSlots:n._u([{key:"activator",fn:function(e){var l=e.on,i=e.attrs;return[t("v-btn",n._g(n._b({staticClass:"mx-1",attrs:{"data-test":"env-button",color:n.environmentIconColor,disabled:n.envDisabled},on:{click:function(e){n.scriptEnvironment.show=!n.scriptEnvironment.show}}},"v-btn",i,!1),l),[t("v-icon",[n._v(" "+n._s(n.environmentIcon)+" ")])],1)]}}],null,!1,3991735395)},[t("span",[n._v(" Open Environment Dialog ")])])],1):t("div",[t("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.startOrGoDisabled,"data-test":"go-button"},on:{click:n.go}},[n._v(" Go ")]),t("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.pauseOrRetryDisabled,"data-test":"pause-retry-button"},on:{click:n.pauseOrRetry}},[n._v(" "+n._s(n.pauseOrRetryButton)+" ")]),t("v-btn",{attrs:{color:"primary","data-test":"stop-button",disabled:n.stopDisabled},on:{click:n.stop}},[n._v(" Stop ")])],1)],1)],1),t("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(e){return n.editor.resize()}}},[t("div",{staticClass:"pane",attrs:{id:"editorbox"}},[t("v-snackbar",{staticClass:"saving",attrs:{absolute:"",top:"",right:"",timeout:-1},model:{value:n.showSave,callback:function(e){n.showSave=e},expression:"showSave"}},[n._v(" Saving... ")]),t("pre",{attrs:{id:"editor"},on:{contextmenu:function(e){return e.preventDefault(),n.showExecuteSelectionMenu.apply(null,arguments)}}}),t("v-menu",{attrs:{"position-x":n.menuX,"position-y":n.menuY,absolute:"","offset-y":""},model:{value:n.executeSelectionMenu,callback:function(e){n.executeSelectionMenu=e},expression:"executeSelectionMenu"}},[t("v-list",n._l(n.executeSelectionMenuItems,(function(e){return t("v-list-item",{key:e.label},[t("v-list-item-title",{on:{click:e.command}},[n._v(" "+n._s(e.label)+" ")])],1)})),1)],1)],1),t("multipane-resizer",[t("hr")]),t("div",{ref:"messagesDiv",staticClass:"mt-2 pane",attrs:{id:"messages"}},[n.showDebug?t("div",{staticClass:"pa-0",attrs:{id:"debug"}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-btn",{staticClass:"mr-4",staticStyle:{width:"100px"},attrs:{color:"primary","data-test":"step-button"},on:{click:n.step}},[n._v(" Step "),t("v-icon",{attrs:{right:""}},[n._v(" mdi-step-forward ")])],1),t("v-text-field",{staticClass:"mb-2",attrs:{outlined:"",dense:"","hide-details":"",label:"Debug","data-test":"debug-text"},on:{keydown:n.debugKeydown},model:{value:n.debug,callback:function(e){n.debug=e},expression:"debug"}})],1)],1):n._e(),t("script-log-messages",{model:{value:n.messages,callback:function(e){n.messages=e},expression:"messages"}})],1)],1),n.fileOpen?t("file-open-save-dialog",{attrs:{type:"open","api-url":"/script-api/scripts"},on:{file:function(e){return n.setFile(e)},error:function(e){return n.setError(e)}},model:{value:n.fileOpen,callback:function(e){n.fileOpen=e},expression:"fileOpen"}}):n._e(),n.showSaveAs?t("file-open-save-dialog",{attrs:{type:"save","api-url":"/script-api/scripts","require-target-parent-dir":"","input-filename":n.filenameOrBlank},on:{filename:function(e){return n.saveAsFilename(e)},error:function(e){return n.setError(e)}},model:{value:n.showSaveAs,callback:function(e){n.showSaveAs=e},expression:"showSaveAs"}}):n._e(),n.showEnvironment?t("environment-dialog",{model:{value:n.showEnvironment,callback:function(e){n.showEnvironment=e},expression:"showEnvironment"}}):n._e(),n.ask.show?t("ask-dialog",{attrs:{question:n.ask.question,default:n.ask.default,password:n.ask.password,"answer-required":n.ask.answerRequired},on:{response:n.ask.callback},model:{value:n.ask.show,callback:function(e){n.$set(n.ask,"show",e)},expression:"ask.show"}}):n._e(),n.file.show?t("file-dialog",{attrs:{title:n.file.title,message:n.file.message,multiple:n.file.multiple,filter:n.file.filter},on:{response:n.fileDialogCallback},model:{value:n.file.show,callback:function(e){n.$set(n.file,"show",e)},expression:"file.show"}}):n._e(),n.information.show?t("information-dialog",{attrs:{title:n.information.title,text:n.information.text},model:{value:n.information.show,callback:function(e){n.$set(n.information,"show",e)},expression:"information.show"}}):n._e(),n.inputMetadata.show?t("input-metadata-dialog",{attrs:{target:n.inputMetadata.target},on:{response:n.inputMetadata.callback},model:{value:n.inputMetadata.show,callback:function(e){n.$set(n.inputMetadata,"show",e)},expression:"inputMetadata.show"}}):n._e(),n.prompt.show?t("prompt-dialog",{attrs:{title:n.prompt.title,subtitle:n.prompt.subtitle,message:n.prompt.message,details:n.prompt.details,buttons:n.prompt.buttons,layout:n.prompt.layout},on:{response:n.prompt.callback},model:{value:n.prompt.show,callback:function(e){n.$set(n.prompt,"show",e)},expression:"prompt.show"}}):n._e(),n.results.show?t("results-dialog",{attrs:{text:n.results.text},model:{value:n.results.show,callback:function(e){n.$set(n.results,"show",e)},expression:"results.show"}}):n._e(),n.scriptEnvironment.show?t("script-environment-dialog",{attrs:{"input-environment":n.scriptEnvironment.env},on:{environment:n.environmentHandler},model:{value:n.scriptEnvironment.show,callback:function(e){n.$set(n.scriptEnvironment,"show",e)},expression:"scriptEnvironment.show"}}):n._e(),t("simple-text-dialog",{attrs:{title:"Suite Analysis Error",text:n.suiteError,width:1e3},model:{value:n.showSuiteError,callback:function(e){n.showSuiteError=e},expression:"showSuiteError"}}),t("v-bottom-sheet",{model:{value:n.showStartedScripts,callback:function(e){n.showStartedScripts=e},expression:"showStartedScripts"}},[t("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[t("running-scripts",{attrs:{"connect-in-new-tab":!!n.fileModified},on:{close:function(){n.showStartedScripts=!1}}})],1)],1)],1)},i=[],o=t(8378),s=t(1150),a=t(6625),c=t(5627),r=t(5060),u=(t(4769),t(8188),t(3244),t(8673),t(6886),t(9228),t(3450),t(5342),t(7950),t(8319),t(5794),t(1939),t(9529),t(1235),t(3132),t(1245),t(8178),t(8233),t(2501),t(4121),t(523),t(4115),t(634),t(9644)),m=t.n(u),A=t(7105),d=t(6455),p=t(3492);p.ConnectionMonitor.staleThreshold=60;var h=function(){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,A.Z)(this,n),this._cable=p.createConsumer(e)}return(0,d.Z)(n,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(n,e){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){return t._cable.subscriptions.create((0,o.Z)({channel:n,scope:e,token:localStorage.openc3Token},i),l)}))}}]),n}(),f=t(4091),v=new f["default"],C=m().create({baseURL:location.origin,timeout:6e4,params:{}});C.interceptors.response.use((function(n){return n}),(function(n){if(n.response){if(401===n.response.status)delete localStorage.openc3Token,OpenC3Auth.login(location.href);else{var e,t,l,i,o,s,a,c,r,u;if(localStorage.axiosIgnoreResponse===n.response.status.toString())return Promise.reject(n);var m="HTTP ".concat(n.response.status," - ");if(null!==(e=n.response)&&void 0!==e&&e.statusText&&(m+="".concat(n.response.statusText," ")),null!==(t=n.response)&&void 0!==t&&null!==(l=t.config)&&void 0!==l&&l.data&&(m+="".concat(n.response.config.data," ")),null!==(i=n.response)&&void 0!==i&&null!==(o=i.data)&&void 0!==o&&o.message)m+="".concat(n.response.data.message);else if(null!==(s=n.response)&&void 0!==s&&null!==(a=s.data)&&void 0!==a&&a.exception)m+="".concat(n.response.data.exception);else if(null!==(c=n.response)&&void 0!==c&&null!==(r=c.data)&&void 0!==r&&null!==(u=r.error)&&void 0!==u&&u.message)n.response.data.error.class&&(m+="".concat(n.response.data.error.class," ")),m+="".concat(n.response.data.error.message);else{var A;m+="".concat(null===(A=n.response)||void 0===A?void 0:A.data)}v.$notify.serious({title:"Network error",body:m})}throw n}throw n}));var b=C,g=function(){var n=(0,c.Z)((0,a.Z)().mark((function n(e,t){var l,i,o,s,c,r,u,m,A,d=arguments;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(l=d.length>2&&void 0!==d[2]?d[2]:{},i=l.data,o=l.params,s=void 0===o?{}:o,c=l.headers,r=l.noAuth,u=void 0!==r&&r,m=l.noScope,A=void 0!==m&&m,u){n.next=11;break}return n.prev=2,n.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](2),OpenC3Auth.login();case 10:c["Authorization"]=localStorage.openc3Token;case 11:return A||s["scope"]||(s["scope"]=localStorage.scope),n.abrupt("return",b({method:e,url:t,data:i,params:s,headers:c}));case 13:case"end":return n.stop()}}),n,null,[[2,7]])})));return function(e,t){return n.apply(this,arguments)}}(),y={Accept:"application/json"},w=(0,o.Z)((0,o.Z)({},y),{},{"Content-Type":"application/json"}),k={get:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.params,l=e.headers,i=void 0===l?y:l,o=e.noScope,s=e.noAuth;return g("get",n,{params:t,headers:i,noScope:o,noAuth:s})},put:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.data,l=e.params,i=e.headers,o=void 0===i?w:i,s=e.noScope,a=e.noAuth;return g("put",n,{data:t,params:l,headers:o,noScope:s,noAuth:a})},post:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.data,l=e.params,i=e.headers,o=void 0===i?w:i,s=e.noScope,a=e.noAuth;return g("post",n,{data:t,params:l,headers:o,noScope:s,noAuth:a})},delete:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.params,l=e.headers,i=void 0===l?y:l,o=e.noScope,s=e.noAuth;return g("delete",n,{params:t,headers:i,noScope:o,noAuth:s})}},_=t(5095),x=(t(1411),t(419),t(3923),t(2375),t(5881)),S=t(7284),R=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(e){return e.preventDefault(),n.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",[n._v(" "+n._s(n.title)+" ")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","data-test":"file-open-save-search"},on:{input:n.handleSearch},model:{value:n.search,callback:function(e){n.search=e},expression:"search"}})],1),t("v-row",{staticClass:"mt-2",attrs:{dense:""}},[t("v-treeview",{ref:"tree",staticStyle:{width:"100%"},attrs:{dense:"",activatable:"","return-object":"",items:n.items,search:n.search,"open-on-click":"open"===n.type},on:{"update:active":n.activeFile},scopedSlots:n._u([{key:"prepend",fn:function(e){var l=e.item,i=e.open;return[l.file?t("v-icon",[n._v(" "+n._s("mdi-language-ruby")+" ")]):t("v-icon",[n._v(" "+n._s(i?"mdi-folder-open":"mdi-folder")+" ")])]}}]),model:{value:n.tree,callback:function(e){n.tree=e},expression:"tree"}})],1),t("v-row",{staticClass:"my-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===n.type},model:{value:n.selectedFile,callback:function(e){n.selectedFile=e},expression:"selectedFile"}})],1),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:n.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:n._s(n.error)}})]),t("v-row",{staticClass:"mt-2"},[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:n.disableButtons},on:{click:function(e){n.show=!1}}},[n._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:n.disableButtons||!!n.error},on:{click:function(e){return e.preventDefault(),n.success.apply(null,arguments)}}},[n._v(" "+n._s(n.submit)+" ")])],1)],1)])],1)])],1)},M=[],E=(t(4083),t(4069),t(7368),t(4471),t(1172),t(9949),{props:{type:{type:String,required:!0,validator:function(n){return-1!==["open","save"].indexOf(n)}},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(n){this.$emit("input",n)}},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 n="".concat(this.selectedFile," is not a valid filename. Must ");return this.requireTargetParentDir&&(n+="be in a target directory and "),n+="only contain alphanumeric characters and / ! - _ . * ' ( )",n}return null},validFilenameRegex:function(){var n="0-9a-zA-Z",e="".concat(n,"\\/\\!\\-\\_\\.\\*\\'\\(\\)"),t="[".concat(e,"]+\\.[").concat(n,"]+");if(this.requireTargetParentDir){var l="(".concat(this.targets.join("|"),")");t="\\/?".concat(l,"\\/").concat(t)}return new RegExp(t)}},created:function(){var n=this;k.get(this.apiUrl).then((function(e){n.items=[],n.id=1;var t,l=(0,s.Z)(e.data);try{for(l.s();!(t=l.n()).done;){var i=t.value;n.filepath=i,n.insertFile(n.items,1,i),n.id++}}catch(o){l.e(o)}finally{l.f()}n.inputFilename&&(n.selectedFile=n.inputFilename)})).catch((function(e){n.$emit("error","Failed to connect to OpenC3. ".concat(e))})),this.requireTargetParentDir&&k.get("/openc3-api/targets").then((function(e){n.targets=e.data}))},methods:{clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(n){n?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(n){0===n.length?this.selectedFile=null:this.selectedFile=n[0].path},exists:function(n,e){var t,l=!1,i=(0,s.Z)(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.path===e)return!0;o.children&&(l=l||this.exists(o.children,e))}}catch(a){i.e(a)}finally{i.f()}return l},success:function(){"open"===this.type?this.openSuccess():this.saveSuccess()},openSuccess:function(){var n=this;this.disableButtons=!0,k.get("".concat(this.apiUrl,"/").concat(this.selectedFile)).then((function(e){var t={name:n.selectedFile,contents:e.data.contents};e.data.suites&&(t["suites"]=JSON.parse(e.data.suites)),e.data.error&&(t["error"]=e.data.error),e.data.success&&(t["success"]=e.data.success);var l=e.data.locked,i=e.data.breakpoints;n.$emit("file",{file:t,locked:l,breakpoints:i}),n.clear()})).catch((function(e){n.$emit("error","Failed to open ".concat(n.selectedFile,". ").concat(e)),n.clear()}))},saveSuccess:function(){var n=this,e=this.exists(this.items,this.selectedFile);e?this.$dialog.confirm("Are you sure you want to overwrite: ".concat(this.selectedFile),{okText:"Overwrite",cancelText:"Cancel"}).then((function(e){n.$emit("filename",n.selectedFile),n.clear()})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(n,e,t){var l=t.split("/");if(1===l.length)return n.push({id:this.id,name:l[0],file:"ruby",path:this.filepath}),void this.id++;var i=n.findIndex((function(n){return n.name===l[0]}));-1===i?(n.push({id:this.id,name:l[0],children:[],path:this.filepath.split("/").slice(0,e).join("/")}),this.id++,this.insertFile(n[n.length-1].children,e+1,l.slice(1).join("/"))):this.insertFile(n[i].children,e+1,l.slice(1).join("/"))}}}),D=E,T=t(3287),I=(0,T.Z)(D,R,M,!1,null,null,null),O=I.exports,F=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(e){return e.preventDefault(),n.addEnvironment.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",[n._v("Environment Variables")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{staticClass:"mb-2",attrs:{dense:""}},[t("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:n.search,callback:function(e){n.search=e},expression:"search"}})],1),t("v-data-table",{attrs:{"item-key":"name","hide-default-header":"","data-test":"env-table",search:n.search,headers:n.headers,items:n.environment,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:n._u([{key:"item.actions",fn:function(e){var l=e.item;return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(e){return n.deleteEnvironment(l)}}},[t("v-icon",[n._v("mdi-delete")])],1)]}}])}),t("v-row",{attrs:{dense:""}},[t("v-col",[t("v-text-field",{attrs:{label:"Key","data-test":"env-key"},model:{value:n.key,callback:function(e){n.key=e},expression:"key"}})],1),t("v-col",[t("v-text-field",{attrs:{label:"Value","data-test":"env-value"},model:{value:n.keyValue,callback:function(e){n.keyValue=e},expression:"keyValue"}})],1)],1),t("v-row",{attrs:{dense:""}},[t("v-btn",{attrs:{block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!n.key||!n.keyValue},on:{click:function(e){return e.preventDefault(),n.addEnvironment.apply(null,arguments)}}},[n._v(" Add ")])],1)],1)])],1)])],1)},$=[],B={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(n){this.$emit("input",n)}}},mounted:function(){this.update()},methods:{alertHandler:function(n){this.alert=n.text,this.alertType=n.type,this.showAlert=!0},update:function(){var n=this;k.get("/openc3-api/environment").then((function(e){n.environment=e.data})).catch((function(n){}))},addEnvironment:function(){var n=this;k.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then((function(e){"New environment variable: ".concat(e.data.name);n.update()})).catch((function(e){var t={text:"Failed to add environment variable: ".concat(e),type:"error"};n.alertHandler(t)})),this.key="",this.keyValue=""},deleteEnvironment:function(n){var e=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(n.key,"=").concat(n.value),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return k["delete"]("/openc3-api/environment/".concat(n.name))})).then((function(t){var l={text:"Removed environment variable: ".concat(n.name),type:"success"};e.alertHandler(l),e.update()})).catch((function(n){var t={text:"Failed to delete environment: ".concat(n),type:"error"};e.alertHandler(t)}))}}},N=B,L=(0,T.Z)(N,F,$,!1,null,null,null),Z=L.exports,U=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{width:n.width},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[n._v(" "+n._s(n.title)+" ")]),t("v-spacer"),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(e){var l=e.on,i=e.attrs;return[t("div",n._g(n._b({},"div",i,!1),l),[t("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:n.download}},[n._v(" mdi-download ")])],1)]}}])},[t("span",[n._v(" Download ")])])],1)],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("span",{staticStyle:{"white-space":"pre-wrap"}},[n._v(n._s(n.text))])])]),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},H=[],P={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get:function(){return this.value},set:function(n){this.$emit("input",n)}}},methods:{download:function(){var n=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(n),e.setAttribute("download","".concat(this.title,".txt")),e.click()}}},G=P,j=(0,T.Z)(G,U,H,!1,null,null,null),q=j.exports,V=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("div",{staticClass:"v-toolbar__content"},[n._l(n.menus,(function(e,l){return t("v-menu",{key:l,attrs:{"offset-y":""},scopedSlots:n._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[t("v-btn",n._g(n._b({staticClass:"mx-1",attrs:{outlined:"","data-test":n.formatDT(n.title+" "+e.label)}},"v-btn",o,!1),i),[t("span",{domProps:{textContent:n._s(e.label)}}),t("v-icon",{attrs:{right:""}},[n._v(" mdi-menu-down ")])],1)]}}],null,!0)},[t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:e.radioGroup,"hide-details":"",dense:""}},[n._l(e.items,(function(l,i){return[l.divider?t("v-divider"):t("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":n.formatDT(n.title+" "+e.label+" "+l.label)},on:{click:l.command}},[l.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):n._e(),l.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:l.label,value:l.label},model:{value:n.checked,callback:function(e){n.checked=e},expression:"checked"}})],1):n._e(),l.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:l.disabled}},[n._v(n._s(l.icon))])],1):n._e(),l.radio||l.checkbox?n._e():t("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[n._v(n._s(l.label))])],1)]}))],2)],1)],1)})),t("v-spacer"),t("v-toolbar-title",[n._v(n._s(n.title))]),t("v-spacer")],2)])},z=[],W=(t(5940),t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(n){return n.replaceAll(" ","-").toLowerCase()}}}),Y=W,K=(t(5741),(0,T.Z)(Y,V,z,!1,null,"3237297b",null)),J=K.exports,X=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("v-form",{on:{submit:function(e){return e.preventDefault(),n.submitHandler.apply(null,arguments)}},model:{value:n.valid,callback:function(e){n.valid=e},expression:"valid"}},[t("v-system-bar",[t("v-spacer"),t("span",[n._v(" User Input Required ")]),t("v-spacer")],1),t("div",{staticClass:"pa-2"},[t("v-card-text",[t("v-row",[t("v-card-title",[n._v(n._s(n.question))])],1),t("v-row",{staticClass:"my-1"},[t("v-text-field",{attrs:{autofocus:"","data-test":"ask-value-input",type:n.password?"password":"text",rules:n.rules},model:{value:n.inputValue,callback:function(e){n.inputValue=e},expression:"inputValue"}})],1)],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"ask-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),t("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"ask-ok",disabled:!n.valid},on:{click:function(e){return e.preventDefault(),n.submitHandler.apply(null,arguments)}}},[n._v(" Ok ")])],1)],1)],1)],1)},Q=[];function nn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",e="1dc6b0d7b22c29efe9b25be7f648e769f89e6e70",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:93,column:4},end:{line:97,column:5}},1:{start:{line:96,column:21},end:{line:96,column:38}},2:{start:{line:100,column:4},end:{line:103,column:5}},3:{start:{line:101,column:6},end:{line:101,column:23}},4:{start:{line:102,column:6},end:{line:102,column:36}},5:{start:{line:104,column:4},end:{line:107,column:5}},6:{start:{line:105,column:6},end:{line:105,column:23}},7:{start:{line:106,column:6},end:{line:106,column:32}},8:{start:{line:106,column:27},end:{line:106,column:31}},9:{start:{line:112,column:8},end:{line:112,column:25}},10:{start:{line:115,column:8},end:{line:115,column:34}},11:{start:{line:121,column:6},end:{line:121,column:45}},12:{start:{line:124,column:6},end:{line:124,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:92,column:2},end:{line:92,column:3}},loc:{start:{line:92,column:9},end:{line:98,column:3}},line:92},1:{name:"(anonymous_1)",decl:{start:{line:96,column:14},end:{line:96,column:15}},loc:{start:{line:96,column:21},end:{line:96,column:38}},line:96},2:{name:"(anonymous_2)",decl:{start:{line:99,column:2},end:{line:99,column:3}},loc:{start:{line:99,column:12},end:{line:108,column:3}},line:99},3:{name:"(anonymous_3)",decl:{start:{line:106,column:20},end:{line:106,column:21}},loc:{start:{line:106,column:27},end:{line:106,column:31}},line:106},4:{name:"(anonymous_4)",decl:{start:{line:111,column:6},end:{line:111,column:7}},loc:{start:{line:111,column:12},end:{line:113,column:7}},line:111},5:{name:"(anonymous_5)",decl:{start:{line:114,column:6},end:{line:114,column:7}},loc:{start:{line:114,column:17},end:{line:116,column:7}},line:114},6:{name:"(anonymous_6)",decl:{start:{line:120,column:19},end:{line:120,column:20}},loc:{start:{line:120,column:31},end:{line:122,column:5}},line:120},7:{name:"(anonymous_7)",decl:{start:{line:123,column:19},end:{line:123,column:20}},loc:{start:{line:123,column:31},end:{line:125,column:5}},line:123}},branchMap:{0:{loc:{start:{line:96,column:21},end:{line:96,column:38}},type:"binary-expr",locations:[{start:{line:96,column:21},end:{line:96,column:24}},{start:{line:96,column:28},end:{line:96,column:38}}],line:96},1:{loc:{start:{line:100,column:4},end:{line:103,column:5}},type:"if",locations:[{start:{line:100,column:4},end:{line:103,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:100},2:{loc:{start:{line:104,column:4},end:{line:107,column:5}},type:"if",locations:[{start:{line:104,column:4},end:{line:107,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:104}},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:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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--\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>{{ question }}</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:"1dc6b0d7b22c29efe9b25be7f648e769f89e6e70"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return nn=function(){return s},s}nn();var en={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 nn().f[0]++,nn().s[0]++,{inputValue:"",valid:!1,rules:[function(n){return nn().f[1]++,nn().s[1]++,nn().b[0][0]++,!!n||(nn().b[0][1]++,"Required")}]}},created:function(){nn().f[2]++,nn().s[2]++,this.default?(nn().b[1][0]++,nn().s[3]++,this.valid=!0,nn().s[4]++,this.inputValue=this.default):nn().b[1][1]++,nn().s[5]++,!1===this.answerRequired?(nn().b[2][0]++,nn().s[6]++,this.valid=!0,nn().s[7]++,this.rules=[function(n){return nn().f[3]++,nn().s[8]++,!0}]):nn().b[2][1]++},computed:{show:{get:function(){return nn().f[4]++,nn().s[9]++,this.value},set:function(n){nn().f[5]++,nn().s[10]++,this.$emit("input",n)}}},methods:{submitHandler:function(){nn().f[6]++,nn().s[11]++,this.$emit("response",this.inputValue)},cancelHandler:function(){nn().f[7]++,nn().s[12]++,this.$emit("response","Cancel")}}},tn=en,ln=(0,T.Z)(tn,X,Q,!1,null,null,null),on=ln.exports,sn=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("v-form",{on:{submit:function(e){return e.preventDefault(),n.submitHandler.apply(null,arguments)}},model:{value:n.valid,callback:function(e){n.valid=e},expression:"valid"}},[t("v-system-bar",[t("v-spacer"),t("span",[n._v(" File Dialog ")]),t("v-spacer")],1),t("div",{staticClass:"pa-2"},[t("v-card-text",[t("v-row",[t("v-card-title",[n._v(n._s(n.title))])],1),n.message?t("v-row",[t("span",{staticClass:"ma-3",domProps:{textContent:n._s(n.message)}})]):n._e(),t("v-row",{staticClass:"my-1"},[t("v-file-input",{attrs:{label:"Choose File",autofocus:"","data-test":"file-input",accept:n.filter,"small-chips":"",multiple:n.multiple},model:{value:n.inputValue,callback:function(e){n.inputValue=e},expression:"inputValue"}})],1)],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"file-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),t("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"file-ok",disabled:!n.valid},on:{click:function(e){return e.preventDefault(),n.submitHandler.apply(null,arguments)}}},[n._v(" Ok ")])],1)],1)],1)],1)},an=[];function cn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",e="03d8b2ca8e5d96c3e7e03c65cc5761906e058e94",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:98,column:4},end:{line:100,column:5}},1:{start:{line:105,column:8},end:{line:105,column:25}},2:{start:{line:108,column:8},end:{line:108,column:34}},3:{start:{line:116,column:6},end:{line:118,column:7}},4:{start:{line:117,column:8},end:{line:117,column:43}},5:{start:{line:119,column:6},end:{line:119,column:45}},6:{start:{line:122,column:6},end:{line:122,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:97,column:2},end:{line:97,column:3}},loc:{start:{line:97,column:9},end:{line:101,column:3}},line:97},1:{name:"(anonymous_1)",decl:{start:{line:104,column:6},end:{line:104,column:7}},loc:{start:{line:104,column:12},end:{line:106,column:7}},line:104},2:{name:"(anonymous_2)",decl:{start:{line:107,column:6},end:{line:107,column:7}},loc:{start:{line:107,column:17},end:{line:109,column:7}},line:107},3:{name:"(anonymous_3)",decl:{start:{line:113,column:19},end:{line:113,column:20}},loc:{start:{line:113,column:31},end:{line:120,column:5}},line:113},4:{name:"(anonymous_4)",decl:{start:{line:121,column:19},end:{line:121,column:20}},loc:{start:{line:121,column:31},end:{line:123,column:5}},line:121}},branchMap:{0:{loc:{start:{line:116,column:6},end:{line:118,column:7}},type:"if",locations:[{start:{line:116,column:6},end:{line:118,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:116}},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:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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",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--\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>{{ title }}</v-card-title>\n </v-row>\n <v-row v-if="message">\n <span class="ma-3" v-text="message" />\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:"03d8b2ca8e5d96c3e7e03c65cc5761906e058e94"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return cn=function(){return s},s}cn();var rn={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 cn().f[0]++,cn().s[0]++,{inputValue:null}},computed:{show:{get:function(){return cn().f[1]++,cn().s[1]++,this.value},set:function(n){cn().f[2]++,cn().s[2]++,this.$emit("input",n)}}},methods:{submitHandler:function(){cn().f[3]++,cn().s[3]++,Array.isArray(this.inputValue)?cn().b[0][1]++:(cn().b[0][0]++,cn().s[4]++,this.inputValue=[this.inputValue]),cn().s[5]++,this.$emit("response",this.inputValue)},cancelHandler:function(){cn().f[4]++,cn().s[6]++,this.$emit("response","Cancel")}}},un=rn,mn=(0,T.Z)(un,sn,an,!1,null,null,null),An=mn.exports,dn=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",{domProps:{textContent:n._s(n.title)}}),t("v-spacer")],1),t("div",{staticClass:"pa-2"},[t("v-card-text",n._l(n.text,(function(e,l){return t("v-row",{key:l,attrs:{"no-gutters":""}},[t("span",{domProps:{textContent:n._s(e)}})])})),1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{color:"primary"},on:{click:function(e){n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},pn=[];function hn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",e="3a263c26f1ad641160c9e0d93bdae40dcf2eddfc",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:63,column:8},end:{line:63,column:25}},1:{start:{line:66,column:8},end:{line:66,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:12},end:{line:64,column:7}},line:62},1:{name:"(anonymous_1)",decl:{start:{line:65,column:6},end:{line:65,column:7}},loc:{start:{line:65,column:17},end:{line:67,column:7}},line:65}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,sources:["InformationDialog.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA;AACA;AACA;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--\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 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 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:"3a263c26f1ad641160c9e0d93bdae40dcf2eddfc"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return hn=function(){return s},s}hn();var fn={props:{value:{type:Boolean,required:!0},title:{type:String,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return hn().f[0]++,hn().s[0]++,this.value},set:function(n){hn().f[1]++,hn().s[1]++,this.$emit("input",n)}}},methods:{}},vn=fn,Cn=(0,T.Z)(vn,dn,pn,!1,null,null,null),bn=Cn.exports,gn=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[n._v("Input Metadata")]),t("v-spacer")],1),t("div",{staticClass:"pa-2"},[t("v-card-text",[t("v-simple-table",{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",{staticClass:"text-left"},[n._v("Key")]),t("th",{staticClass:"text-left"},[n._v("Value")]),t("th",{staticClass:"text-right"},[t("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(e){var l=e.on,i=e.attrs;return[t("div",n._g(n._b({},"div",i,!1),l),[t("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:n.newMetadata}},[n._v(" mdi-plus ")])],1)]}}])},[t("span",[n._v("New Metadata")])])],1)]),n._l(n.metadata,(function(e,l){return[t("tr",{key:"tr-"+l},[t("td",[t("v-text-field",{attrs:{type:"text",dense:"","data-test":"key-"+l},model:{value:e.key,callback:function(t){n.$set(e,"key",t)},expression:"meta.key"}})],1),t("td",[t("v-text-field",{attrs:{type:"text",dense:"","data-test":"value-"+l},model:{value:e.value,callback:function(t){n.$set(e,"value",t)},expression:"meta.value"}})],1),t("td",[t("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(e){var i=e.on,o=e.attrs;return[t("div",n._g(n._b({},"div",o,!1),i),[t("v-icon",{attrs:{"data-test":"delete-metadata-icon"},on:{click:function(e){return n.rm(l)}}},[n._v(" mdi-delete ")])],1)]}}],null,!0)},[t("span",[n._v("Delete Metadata")])])],1)])]}))],2)]),t("v-row",{directives:[{name:"show",rawName:"v-show",value:n.lastUpdated,expression:"lastUpdated"}]},[t("v-col",[t("span",{staticClass:"pt-3"},[n._v("Last update: "+n._s(n.lastUpdated))])])],1),t("v-row",[t("v-col",[t("span",{directives:[{name:"show",rawName:"v-show",value:n.inputError,expression:"inputError"}],staticClass:"red--text",domProps:{textContent:n._s(n.inputError)}})])],1)],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"metadata-dialog-cancel"},on:{click:n.cancel}},[n._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"metadata-dialog-save",disabled:!!n.inputError},on:{click:n.updateMetadata}},[n._v(" Update ")])],1)],1)],1)},yn=[],wn=(t(3108),t(9805),t(8816)),kn=t(578),_n=t(1901),xn=(t(1372),t(3675),t(4898),t(5825),t(7170),t(8857),t(8329),t(6279),t(427),t(1159),t(2516),t(4349),t(5273),t(6729),t(1801),t(574),t(5787),t(9271),t(3160),t(5688),t(3157),t(1700),t(315),t(556),t(9224),t(6297),t(8882),t(7233),t(5734),function(){function n(){(0,A.Z)(this,n),(0,_n.Z)(this,"id",1)}return(0,d.Z)(n,[{key:"exec",value:function(){var n=(0,c.Z)((0,a.Z)().mark((function n(e,t){var l,i,o,s=arguments;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return l=s.length>2&&void 0!==s[2]?s[2]:{},n.prev=1,n.next=4,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 4:n.next=9;break;case 6:n.prev=6,n.t0=n["catch"](1),OpenC3Auth.login();case 9:return this.id=this.id+1,n.prev=10,l["scope"]=localStorage.scope,n.next=14,b.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:l},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"}});case 14:return i=n.sent,n.abrupt("return",i.data.result);case 18:throw n.prev=18,n.t1=n["catch"](10),o=new Error,n.t1.response?(o.name=n.t1.response.data.error.data.class,o.message=n.t1.response.data.error.data.message):n.t1.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o;case 23:case"end":return n.stop()}}),n,this,[[1,6],[10,18]])})));function e(e,t){return n.apply(this,arguments)}return e}()},{key:"decode_openc3_type",value:function(n){if(null!==n&&"object"===(0,kn.Z)(n)&&"Float"==n.json_class&&n.raw){if("NaN"==n.raw)return NaN;if("Infinity"==n.raw)return 1/0;if("-Infinity"==n.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(n){return Number.isNaN(n)?{json_class:"Float",raw:"NaN"}:n==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:n==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(n){return this.exec("connect_interface",[n])}},{key:"disconnect_interface",value:function(n){return this.exec("disconnect_interface",[n])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(n){return this.exec("connect_router",[n])}},{key:"disconnect_router",value:function(n){return this.exec("disconnect_router",[n])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(n){return this.exec("get_tlm_cnts",[n])}},{key:"get_item",value:function(n,e,t){return this.exec("get_item",[n,e,t])}},{key:"get_parameter",value:function(n,e,t){return this.exec("get_parameter",[n,e,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(n){return this.exec("start_cmd_log",[n])}},{key:"start_tlm_log",value:function(n){return this.exec("start_tlm_log",[n])}},{key:"stop_cmd_log",value:function(n){return this.exec("stop_cmd_log",[n])}},{key:"stop_tlm_log",value:function(n){return this.exec("stop_tlm_log",[n])}},{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(n){return this.exec("set_limits_set",[n])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(n){return this.exec("start_background_task",[n])}},{key:"stop_background_task",value:function(n){return this.exec("stop_background_task",[n])}},{key:"get_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(n){return this.exec("get_target",[n])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(n,e){return this.exec("get_telemetry",[n,e])}},{key:"get_all_telemetry",value:function(n){return this.exec("get_all_telemetry",[n])}},{key:"get_all_telemetry_names",value:function(n){return this.exec("get_all_telemetry_names",[n])}},{key:"get_tlm_packet",value:function(){var n=(0,c.Z)((0,a.Z)().mark((function n(e,t,l){var i,o,s,c;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.exec("get_tlm_packet",[e,t],{type:l});case 2:if(i=n.sent,null!=i)for(o=i.length,s=null,c=0;c<o;c++)s=this.decode_openc3_type(i[c][1]),null!==s&&(i[c][1]=s);return n.abrupt("return",i);case 5:case"end":return n.stop()}}),n,this)})));function e(e,t,l){return n.apply(this,arguments)}return e}()},{key:"get_packet_derived_items",value:function(n,e){return this.exec("get_packet_derived_items",[n,e])}},{key:"get_tlm_buffer",value:function(n,e){return this.exec("get_tlm_buffer",[n,e])}},{key:"get_tlm_values",value:function(){var n=(0,c.Z)((0,a.Z)().mark((function n(e){var t,l,i,o;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.exec("get_tlm_values",[e]);case 2:for(t=n.sent,l=t[0].length,i=null,o=0;o<l;o++)i=this.decode_openc3_type(t[0][o]),null!==i&&(t[0][o]=i);return n.abrupt("return",t);case 7:case"end":return n.stop()}}),n,this)})));function e(e){return n.apply(this,arguments)}return e}()},{key:"get_limits",value:function(n,e,t){return this.exec("get_limits",[n,e,t])}},{key:"tlm",value:function(){var n=(0,c.Z)((0,a.Z)().mark((function n(e,t,l){var i,o;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.exec("tlm",[e,t,l]);case 2:return i=n.sent,o=this.decode_openc3_type(i),null!==o&&(0,wn.Z)("data"),n.abrupt("return",i);case 6:case"end":return n.stop()}}),n,this)})));function e(e,t,l){return n.apply(this,arguments)}return e}()},{key:"get_all_commands",value:function(n){return this.exec("get_all_commands",[n])}},{key:"get_all_command_names",value:function(n){return this.exec("get_all_command_names",[n])}},{key:"get_command",value:function(n,e){return this.exec("get_command",[n,e])}},{key:"get_cmd_cnts",value:function(n){return this.exec("get_cmd_cnts",[n])}},{key:"get_cmd_value",value:function(n,e,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[n,e,t,l])}},{key:"get_cmd_buffer",value:function(n,e){return this.exec("get_cmd_buffer",[n,e])}},{key:"_cmd",value:function(n,e,t,l){var i=null;for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(i=this.encode_openc3_type(l[o]),null!==i&&(l[o]=i));return this.exec(n,[e,t,l])}},{key:"get_cmd_hazardous",value:function(n,e,t){return void 0===e?this.exec("get_cmd_hazardous",n):this._cmd("get_cmd_hazardous",n,e,t)}},{key:"cmd",value:function(n,e,t){return void 0===e?this.exec("cmd",n):this._cmd("cmd",n,e,t)}},{key:"cmd_no_range_check",value:function(n,e,t){return void 0===e?this.exec("cmd_no_range_check",n):this._cmd("cmd_no_range_check",n,e,t)}},{key:"cmd_raw",value:function(n,e,t){return void 0===e?this.exec("cmd_raw",n):this._cmd("cmd_raw",n,e,t)}},{key:"cmd_raw_no_range_check",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_range_check",n):this._cmd("cmd_raw_no_range_check",n,e,t)}},{key:"cmd_no_hazardous_check",value:function(n,e,t){return void 0===e?this.exec("cmd_no_hazardous_check",n):this._cmd("cmd_no_hazardous_check",n,e,t)}},{key:"cmd_no_checks",value:function(n,e,t){return void 0===e?this.exec("cmd_no_checks",n):this._cmd("cmd_no_checks",n,e,t)}},{key:"cmd_raw_no_hazardous_check",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_hazardous_check",n):this._cmd("cmd_raw_no_hazardous_check",n,e,t)}},{key:"cmd_raw_no_checks",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_checks",n):this._cmd("cmd_raw_no_checks",n,e,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(n,e){return this.exec("send_raw",[n,e])}},{key:"list_configs",value:function(n){return this.exec("list_configs",[n])}},{key:"load_config",value:function(n,e){return this.exec("load_config",[n,e])}},{key:"save_config",value:function(n,e,t){return this.exec("save_config",[n,e,t])}},{key:"delete_config",value:function(n,e){return this.exec("delete_config",[n,e])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(n){return this.exec("get_overall_limits_state",[n])}},{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(n){return this.exec("get_setting",[n])}},{key:"get_settings",value:function(n){return this.exec("get_settings",n)}},{key:"save_setting",value:function(n,e){return this.exec("save_setting",[n,e])}},{key:"hashString",value:function(){var n=(0,c.Z)((0,a.Z)().mark((function n(e){var t,l,i;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!window.isSecureContext){n.next=7;break}return t=(new TextEncoder).encode(e),n.next=4,crypto.subtle.digest("SHA-256",t);case 4:return l=n.sent,i=new Uint8Array(l),n.abrupt("return",Array.from(i).map((function(n){return n.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return n.stop()}}),n)})));function e(e){return n.apply(this,arguments)}return e}()}]),n}());function Sn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue",e="1657939d28d2083e4ae9c852cf30c9d7ad73dd4d",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue",statementMap:{0:{start:{line:137,column:4},end:{line:140,column:5}},1:{start:{line:143,column:4},end:{line:143,column:22}},2:{start:{line:148,column:28},end:{line:150,column:7}},3:{start:{line:149,column:18},end:{line:149,column:54}},4:{start:{line:151,column:6},end:{line:153,column:7}},5:{start:{line:152,column:8},end:{line:152,column:67}},6:{start:{line:154,column:6},end:{line:154,column:17}},7:{start:{line:158,column:8},end:{line:158,column:25}},8:{start:{line:161,column:8},end:{line:161,column:34}},9:{start:{line:167,column:23},end:{line:170,column:12}},10:{start:{line:168,column:8},end:{line:168,column:43}},11:{start:{line:169,column:8},end:{line:169,column:21}},12:{start:{line:171,column:20},end:{line:171,column:29}},13:{start:{line:172,column:6},end:{line:179,column:8}},14:{start:{line:175,column:8},end:{line:178,column:10}},15:{start:{line:180,column:6},end:{line:180,column:38}},16:{start:{line:181,column:6},end:{line:181,column:28}},17:{start:{line:184,column:6},end:{line:184,column:38}},18:{start:{line:185,column:6},end:{line:185,column:28}},19:{start:{line:188,column:6},end:{line:196,column:8}},20:{start:{line:189,column:8},end:{line:195,column:9}},21:{start:{line:190,column:10},end:{line:190,column:28}},22:{start:{line:191,column:10},end:{line:191,column:33}},23:{start:{line:193,column:10},end:{line:193,column:73}},24:{start:{line:194,column:10},end:{line:194,column:51}},25:{start:{line:199,column:6},end:{line:201,column:8}},26:{start:{line:200,column:8},end:{line:200,column:47}},27:{start:{line:204,column:6},end:{line:207,column:8}},28:{start:{line:210,column:6},end:{line:210,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:136,column:2},end:{line:136,column:3}},loc:{start:{line:136,column:9},end:{line:141,column:3}},line:136},1:{name:"(anonymous_1)",decl:{start:{line:142,column:11},end:{line:142,column:12}},loc:{start:{line:142,column:23},end:{line:144,column:3}},line:142},2:{name:"(anonymous_2)",decl:{start:{line:146,column:16},end:{line:146,column:17}},loc:{start:{line:146,column:28},end:{line:155,column:5}},line:146},3:{name:"(anonymous_3)",decl:{start:{line:149,column:8},end:{line:149,column:9}},loc:{start:{line:149,column:18},end:{line:149,column:54}},line:149},4:{name:"(anonymous_4)",decl:{start:{line:157,column:6},end:{line:157,column:7}},loc:{start:{line:157,column:12},end:{line:159,column:7}},line:157},5:{name:"(anonymous_5)",decl:{start:{line:160,column:6},end:{line:160,column:7}},loc:{start:{line:160,column:17},end:{line:162,column:7}},line:160},6:{name:"(anonymous_6)",decl:{start:{line:166,column:20},end:{line:166,column:21}},loc:{start:{line:166,column:32},end:{line:182,column:5}},line:166},7:{name:"(anonymous_7)",decl:{start:{line:167,column:44},end:{line:167,column:45}},loc:{start:{line:167,column:65},end:{line:170,column:7}},line:167},8:{name:"(anonymous_8)",decl:{start:{line:174,column:14},end:{line:174,column:15}},loc:{start:{line:174,column:28},end:{line:179,column:7}},line:174},9:{name:"(anonymous_9)",decl:{start:{line:183,column:12},end:{line:183,column:13}},loc:{start:{line:183,column:24},end:{line:186,column:5}},line:183},10:{name:"(anonymous_10)",decl:{start:{line:187,column:17},end:{line:187,column:18}},loc:{start:{line:187,column:29},end:{line:197,column:5}},line:187},11:{name:"(anonymous_11)",decl:{start:{line:188,column:50},end:{line:188,column:51}},loc:{start:{line:188,column:64},end:{line:196,column:7}},line:188},12:{name:"(anonymous_12)",decl:{start:{line:198,column:18},end:{line:198,column:19}},loc:{start:{line:198,column:40},end:{line:202,column:5}},line:198},13:{name:"(anonymous_13)",decl:{start:{line:199,column:50},end:{line:199,column:51}},loc:{start:{line:199,column:57},end:{line:201,column:7}},line:199},14:{name:"(anonymous_14)",decl:{start:{line:203,column:17},end:{line:203,column:18}},loc:{start:{line:203,column:29},end:{line:208,column:5}},line:203},15:{name:"(anonymous_15)",decl:{start:{line:209,column:8},end:{line:209,column:9}},loc:{start:{line:209,column:25},end:{line:211,column:5}},line:209}},branchMap:{0:{loc:{start:{line:149,column:18},end:{line:149,column:54}},type:"binary-expr",locations:[{start:{line:149,column:18},end:{line:149,column:33}},{start:{line:149,column:37},end:{line:149,column:54}}],line:149},1:{loc:{start:{line:151,column:6},end:{line:153,column:7}},type:"if",locations:[{start:{line:151,column:6},end:{line:153,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:151},2:{loc:{start:{line:189,column:8},end:{line:195,column:9}},type:"if",locations:[{start:{line:189,column:8},end:{line:195,column:9}},{start:{line:192,column:15},end:{line:195,column:9}}],line:189}},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},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},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["InputMetadataDialog.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HA;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",file:"InputMetadataDialog.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--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Input Metadata</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class="text-left">Key</th>\n <th class="text-left">Value</th>\n <th class="text-right">\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon\n data-test="new-metadata-icon"\n @click="newMetadata"\n >\n mdi-plus\n </v-icon>\n </div>\n </template>\n <span>New Metadata</span>\n </v-tooltip>\n </th>\n </tr>\n <template v-for="(meta, i) in metadata">\n <tr :key="`tr-${i}`">\n <td>\n <v-text-field\n v-model="meta.key"\n type="text"\n dense\n :data-test="`key-${i}`"\n />\n </td>\n <td>\n <v-text-field\n v-model="meta.value"\n type="text"\n dense\n :data-test="`value-${i}`"\n />\n </td>\n <td>\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon\n data-test="delete-metadata-icon"\n @click="rm(i)"\n >\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span>Delete Metadata</span>\n </v-tooltip>\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n <v-row v-show="lastUpdated">\n <v-col>\n <span class="pt-3">Last update: {{ lastUpdated }}</span>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <span class="red--text" v-show="inputError" v-text="inputError" />\n </v-col>\n </v-row>\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="metadata-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateMetadata"\n class="mx-2"\n color="primary"\n data-test="metadata-dialog-save"\n :disabled="!!inputError"\n >\n Update\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\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 lastUpdated: null,\n metadata: [],\n }\n },\n mounted: function () {\n this.getMetadata()\n },\n computed: {\n inputError: function () {\n // Don\'t check for this.metadata.length < 1 because we have to allow for deletes\n const emptyKeyValue = this.metadata.find(\n (meta) => meta.key === \'\' || meta.value === \'\'\n )\n if (emptyKeyValue) {\n return \'Missing or empty key, value in the metadata table.\'\n }\n return null\n },\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 updateMetadata: function () {\n const metadata = this.metadata.reduce((result, element) => {\n result[element.key] = element.value\n return result\n }, {})\n const color = \'#003784\'\n Api.post(\'/openc3-api/metadata\', {\n data: { color: color, metadata: metadata },\n }).then((response) => {\n this.$notify.normal({\n title: \'Created Metadata\',\n body: `Metadata created at ${response.data.start}`,\n })\n })\n this.$emit(\'response\', metadata)\n this.show = !this.show\n },\n cancel: function () {\n this.$emit(\'response\', \'Cancel\')\n this.show = !this.show\n },\n getMetadata: function () {\n Api.get(\'/openc3-api/metadata/latest\').then((response) => {\n if (response.status !== 200) {\n this.metadata = []\n this.lastUpdated = null\n } else {\n this.lastUpdated = new Date(response.data.updated_at / 1000000)\n this.updateValues(response.data.metadata)\n }\n })\n },\n updateValues: function (metaValues) {\n this.metadata = Object.keys(metaValues).map((k) => {\n return { key: k, value: metaValues[k] }\n })\n },\n newMetadata: function () {\n this.metadata.push({\n key: \'\',\n value: \'\',\n })\n },\n rm: function (index) {\n this.metadata.splice(index, 1)\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1657939d28d2083e4ae9c852cf30c9d7ad73dd4d"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Sn=function(){return s},s}Sn();var Rn={components:{},props:{value:{type:Boolean,required:!0}},data:function(){return Sn().f[0]++,Sn().s[0]++,{lastUpdated:null,metadata:[]}},mounted:function(){Sn().f[1]++,Sn().s[1]++,this.getMetadata()},computed:{inputError:function(){Sn().f[2]++;var n=(Sn().s[2]++,this.metadata.find((function(n){return Sn().f[3]++,Sn().s[3]++,Sn().b[0][0]++,""===n.key||(Sn().b[0][1]++,""===n.value)})));return Sn().s[4]++,n?(Sn().b[1][0]++,Sn().s[5]++,"Missing or empty key, value in the metadata table."):(Sn().b[1][1]++,Sn().s[6]++,null)},show:{get:function(){return Sn().f[4]++,Sn().s[7]++,this.value},set:function(n){Sn().f[5]++,Sn().s[8]++,this.$emit("input",n)}}},methods:{updateMetadata:function(){var n=this;Sn().f[6]++;var e=(Sn().s[9]++,this.metadata.reduce((function(n,e){return Sn().f[7]++,Sn().s[10]++,n[e.key]=e.value,Sn().s[11]++,n}),{})),t=(Sn().s[12]++,"#003784");Sn().s[13]++,k.post("/openc3-api/metadata",{data:{color:t,metadata:e}}).then((function(e){Sn().f[8]++,Sn().s[14]++,n.$notify.normal({title:"Created Metadata",body:"Metadata created at ".concat(e.data.start)})})),Sn().s[15]++,this.$emit("response",e),Sn().s[16]++,this.show=!this.show},cancel:function(){Sn().f[9]++,Sn().s[17]++,this.$emit("response","Cancel"),Sn().s[18]++,this.show=!this.show},getMetadata:function(){var n=this;Sn().f[10]++,Sn().s[19]++,k.get("/openc3-api/metadata/latest").then((function(e){Sn().f[11]++,Sn().s[20]++,200!==e.status?(Sn().b[2][0]++,Sn().s[21]++,n.metadata=[],Sn().s[22]++,n.lastUpdated=null):(Sn().b[2][1]++,Sn().s[23]++,n.lastUpdated=new Date(e.data.updated_at/1e6),Sn().s[24]++,n.updateValues(e.data.metadata))}))},updateValues:function(n){Sn().f[12]++,Sn().s[25]++,this.metadata=Object.keys(n).map((function(e){return Sn().f[13]++,Sn().s[26]++,{key:e,value:n[e]}}))},newMetadata:function(){Sn().f[14]++,Sn().s[27]++,this.metadata.push({key:"",value:""})},rm:function(n){Sn().f[15]++,Sn().s[28]++,this.metadata.splice(n,1)}}},Mn=Rn,En=(0,T.Z)(Mn,gn,yn,!1,null,null,null),Dn=En.exports,Tn=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",{domProps:{textContent:n._s(n.title)}}),t("v-spacer")],1),t("div",{staticClass:"pa-2"},[t("v-card-text",[n.subtitle?t("v-row",[t("v-card-subtitle",[n._v(n._s(n.subtitle))])],1):n._e(),t("v-row",{staticClass:"mt-1"},[t("span",{domProps:{textContent:n._s(n.message)}})]),n.details?t("v-row",{staticClass:"mt-1"},[t("span",{domProps:{textContent:n._s(n.details)}})]):n._e()],1)],1),"combo"===n.layout?t("div",[t("v-row",{staticClass:"ma-2"},[t("v-select",{staticClass:"ma-1",attrs:{label:"Select",color:"secondary","data-test":"prompt-select",items:n.buttons},on:{change:function(e){n.selectOkDisabled=!1}},model:{value:n.selectedItem,callback:function(e){n.selectedItem=e},expression:"selectedItem"}})],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),t("v-btn",{staticClass:"ma-1",attrs:{color:"primary","data-test":"prompt-ok",disabled:n.selectOkDisabled},on:{click:n.submitHandler}},[n._v(" Ok ")])],1)],1):t("div",[t("v-card-actions",{class:n.layoutClass},[t("v-spacer"),t("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),n._l(n.buttons,(function(e,l){return t("div",{key:l},[t("v-btn",{staticClass:"ma-1",attrs:{"data-test":"prompt-"+e.text,color:e.value?"primary":""},on:{click:function(t){return n.submitWrapper(e.value)}}},[n._v(" "+n._s(e.text)+" ")])],1)}))],2)],1)],1)],1)},In=[];function On(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",e="da298c4fddd306a8dbee3382c7db488599298a25",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:122,column:21},end:{line:122,column:23}},1:{start:{line:131,column:4},end:{line:134,column:5}},2:{start:{line:139,column:8},end:{line:139,column:25}},3:{start:{line:142,column:8},end:{line:142,column:34}},4:{start:{line:146,column:19},end:{line:146,column:39}},5:{start:{line:147,column:6},end:{line:151,column:7}},6:{start:{line:148,column:8},end:{line:148,column:38}},7:{start:{line:150,column:8},end:{line:150,column:35}},8:{start:{line:156,column:6},end:{line:156,column:32}},9:{start:{line:157,column:6},end:{line:157,column:26}},10:{start:{line:160,column:6},end:{line:160,column:47}},11:{start:{line:163,column:6},end:{line:163,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:122,column:15},end:{line:122,column:16}},loc:{start:{line:122,column:21},end:{line:122,column:23}},line:122},1:{name:"(anonymous_1)",decl:{start:{line:130,column:2},end:{line:130,column:3}},loc:{start:{line:130,column:9},end:{line:135,column:3}},line:130},2:{name:"(anonymous_2)",decl:{start:{line:138,column:6},end:{line:138,column:7}},loc:{start:{line:138,column:12},end:{line:140,column:7}},line:138},3:{name:"(anonymous_3)",decl:{start:{line:141,column:6},end:{line:141,column:7}},loc:{start:{line:141,column:17},end:{line:143,column:7}},line:141},4:{name:"(anonymous_4)",decl:{start:{line:145,column:4},end:{line:145,column:5}},loc:{start:{line:145,column:18},end:{line:152,column:5}},line:145},5:{name:"(anonymous_5)",decl:{start:{line:155,column:19},end:{line:155,column:20}},loc:{start:{line:155,column:37},end:{line:158,column:5}},line:155},6:{name:"(anonymous_6)",decl:{start:{line:159,column:19},end:{line:159,column:20}},loc:{start:{line:159,column:31},end:{line:161,column:5}},line:159},7:{name:"(anonymous_7)",decl:{start:{line:162,column:19},end:{line:162,column:20}},loc:{start:{line:162,column:31},end:{line:164,column:5}},line:162}},branchMap:{0:{loc:{start:{line:147,column:6},end:{line:151,column:7}},type:"if",locations:[{start:{line:147,column:6},end:{line:151,column:7}},{start:{line:149,column:13},end:{line:151,column:7}}],line:147}},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:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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--\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 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>{{ subtitle }}</v-card-subtitle>\n </v-row>\n <v-row class="mt-1">\n <span v-text="message" />\n </v-row>\n <v-row v-if="details" class="mt-1">\n <span 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 />\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 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']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"da298c4fddd306a8dbee3382c7db488599298a25"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return On=function(){return s},s}On();var Fn={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"},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(n){On().f[3]++,On().s[3]++,this.$emit("input",n)}},layoutClass:function(){On().f[4]++;var n=(On().s[4]++,"d-flex align-start");return On().s[5]++,"vertical"===this.layout?(On().b[0][0]++,On().s[6]++,"".concat(n," flex-column")):(On().b[0][1]++,On().s[7]++,"".concat(n," flex-row"))}},methods:{submitWrapper:function(n){On().f[5]++,On().s[8]++,this.selectedItem=n,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")}}},$n=Fn,Bn=(0,T.Z)($n,Tn,In,!1,null,null,null),Nn=Bn.exports,Ln=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[n._v(" Script Results ")]),t("v-spacer")],1),t("div",{staticClass:"pa-2"},[t("v-card-text",[t("v-textarea",{attrs:{readonly:"","hide-details":"",dense:"","auto-grow":"",value:n.text}})],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:n.downloadResults}},[n._v(" Download ")]),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},Zn=[];function Un(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",e="3af9d22f31807a0dc65fa65d173efc0de84768fc",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:60,column:8},end:{line:60,column:25}},1:{start:{line:63,column:8},end:{line:63,column:34}},2:{start:{line:69,column:19},end:{line:71,column:8}},3:{start:{line:73,column:19},end:{line:73,column:46}},4:{start:{line:74,column:6},end:{line:74,column:43}},5:{start:{line:75,column:6},end:{line:78,column:7}},6:{start:{line:79,column:6},end:{line:79,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:59,column:6},end:{line:59,column:7}},loc:{start:{line:59,column:12},end:{line:61,column:7}},line:59},1:{name:"(anonymous_1)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:17},end:{line:64,column:7}},line:62},2:{name:"(anonymous_2)",decl:{start:{line:68,column:4},end:{line:68,column:5}},loc:{start:{line:68,column:22},end:{line:80,column:5}},line:68}},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:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA;;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--\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:"3af9d22f31807a0dc65fa65d173efc0de84768fc"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Un=function(){return s},s}Un();var Hn={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return Un().f[0]++,Un().s[0]++,this.value},set:function(n){Un().f[1]++,Un().s[1]++,this.$emit("input",n)}}},methods:{downloadResults:function(){Un().f[2]++;var n=(Un().s[2]++,new Blob([this.text],{type:"text/plain"})),e=(Un().s[3]++,document.createElement("a"));Un().s[4]++,e.href=URL.createObjectURL(n),Un().s[5]++,e.setAttribute("download",(0,x.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),Un().s[6]++,e.click()}}},Pn=Hn,Gn=(0,T.Z)(Pn,Ln,Zn,!1,null,null,null),jn=Gn.exports,qn=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[n._v(" Start Environment Configuration ")]),t("v-spacer")],1),t("div",{staticClass:"pa-2"},[t("v-card-text",[t("environment-chooser",{model:{value:n.selected,callback:function(e){n.selected=e},expression:"selected"}})],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"environment-dialog-cancel"},on:{click:n.cancel}},[n._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"environment-dialog-save",disabled:!!n.inputError},on:{click:n.updateEnvironment}},[n._v(" Save ")])],1)],1)],1)},Vn=[],zn=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("v-row",{attrs:{"no-gutters":""}},[t("span",[n._v(" Select from OpenC3 environment variables ")])]),t("v-row",{staticClass:"ma-0"},[t("v-select",{attrs:{"persistent-hint":"","return-object":"",label:"Select Environment Options",hint:"Inject Environment Variables",items:n.environmentItems},on:{change:n.addEnvironmentItem},scopedSlots:n._u([{key:"item",fn:function(e){var l=e.item;return[t("div",[t("span",{domProps:{textContent:n._s(l.key+"="+l.value)}})])]}}]),model:{value:n.deadSelect,callback:function(e){n.deadSelect=e},expression:"deadSelect"}},[[t("div",[t("span",[n._v(" Select Environment Options ")])])]],2)],1),t("div",{staticClass:"mt-2"}),t("v-simple-table",{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",{staticClass:"text-left"},[n._v("Key")]),t("th",{staticClass:"text-left"},[n._v("Value")]),t("th",{staticClass:"text-right"},[t("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(e){var l=e.on,i=e.attrs;return[t("div",n._g(n._b({},"div",i,!1),l),[t("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:n.newEnvironment}},[n._v(" mdi-plus ")])],1)]}}])},[t("span",[n._v(" Add Environment ")])])],1)]),n._l(n.selected,(function(e,l){return[t("tr",{key:"tr-"+l},[t("td",[t("v-text-field",{attrs:{dense:"",type:"text",readonly:e.readonly,"data-test":"key-"+l},model:{value:e.key,callback:function(t){n.$set(e,"key",t)},expression:"env.key"}})],1),t("td",[t("v-text-field",{attrs:{dense:"",type:"text",readonly:e.readonly,"data-test":"value-"+l},model:{value:e.value,callback:function(t){n.$set(e,"value",t)},expression:"env.value"}})],1),t("td",[t("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(e){var i=e.on,o=e.attrs;return[t("div",n._g(n._b({},"div",o,!1),i),[t("v-icon",{attrs:{"data-test":"remove-env-icon-"+l},on:{click:function(e){return n.rm(l)}}},[n._v(" mdi-delete ")])],1)]}}],null,!0)},[t("span",[n._v(" Delete Environment ")])])],1)])]}))],2)])],1)},Wn=[],Yn={props:{value:{type:Array,required:!0}},data:function(){return{deadSelect:null,environmentOptions:[]}},mounted:function(){this.getEnvironment()},computed:{selected:{get:function(){return this.value},set:function(n){this.$emit("input",n)}},environmentItems:function(){var n=this;return this.environmentOptions.filter((function(e){return!n.selected.find((function(n){return n.key===e.key}))}))}},methods:{getEnvironment:function(){var n=this;k.get("/openc3-api/environment").then((function(e){n.environmentOptions=e.data}))},addEnvironmentItem:function(n){this.selected.push({key:n.key,value:n.value,readonly:!0});var e=this.environmentOptions.findIndex((function(e){return e.key===n.key&&e.value===n.value}));this.environmentOptions.splice(e,e>=0?1:0),this.deadSelect=null},newEnvironment:function(){this.selected.push({key:"",value:"",readonly:!1})},rm:function(n){var e=this.selected.splice(n,1)[0];e&&e.readonly&&this.environmentOptions.push(e)}}},Kn=Yn,Jn=(0,T.Z)(Kn,zn,Wn,!1,null,null,null),Xn=Jn.exports;function Qn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",e="0caa41005a70a718af2a26d0e4433d22e5eb882e",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:75,column:4},end:{line:77,column:5}},1:{start:{line:80,column:4},end:{line:80,column:26}},2:{start:{line:85,column:8},end:{line:85,column:25}},3:{start:{line:88,column:8},end:{line:88,column:34}},4:{start:{line:94,column:6},end:{line:94,column:48}},5:{start:{line:97,column:6},end:{line:97,column:46}},6:{start:{line:98,column:6},end:{line:98,column:28}},7:{start:{line:101,column:6},end:{line:101,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:74,column:2},end:{line:74,column:3}},loc:{start:{line:74,column:9},end:{line:78,column:3}},line:74},1:{name:"(anonymous_1)",decl:{start:{line:79,column:11},end:{line:79,column:12}},loc:{start:{line:79,column:23},end:{line:81,column:3}},line:79},2:{name:"(anonymous_2)",decl:{start:{line:84,column:6},end:{line:84,column:7}},loc:{start:{line:84,column:12},end:{line:86,column:7}},line:84},3:{name:"(anonymous_3)",decl:{start:{line:87,column:6},end:{line:87,column:7}},loc:{start:{line:87,column:17},end:{line:89,column:7}},line:87},4:{name:"(anonymous_4)",decl:{start:{line:93,column:21},end:{line:93,column:22}},loc:{start:{line:93,column:33},end:{line:95,column:5}},line:93},5:{name:"(anonymous_5)",decl:{start:{line:96,column:23},end:{line:96,column:24}},loc:{start:{line:96,column:35},end:{line:99,column:5}},line:96},6:{name:"(anonymous_6)",decl:{start:{line:100,column:12},end:{line:100,column:13}},loc:{start:{line:100,column:24},end:{line:102,column:5}},line:100}},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:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA;;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--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Start Environment Configuration </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:"0caa41005a70a718af2a26d0e4433d22e5eb882e"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Qn=function(){return s},s}Qn();var ne={components:{EnvironmentChooser:Xn},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data:function(){return Qn().f[0]++,Qn().s[0]++,{selected:[]}},mounted:function(){Qn().f[1]++,Qn().s[1]++,this.loadEnvironment()},computed:{show:{get:function(){return Qn().f[2]++,Qn().s[2]++,this.value},set:function(n){Qn().f[3]++,Qn().s[3]++,this.$emit("input",n)}}},methods:{loadEnvironment:function(){Qn().f[4]++,Qn().s[4]++,this.selected=(0,r.Z)(this.inputEnvironment)},updateEnvironment:function(){Qn().f[5]++,Qn().s[5]++,this.$emit("environment",this.selected),Qn().s[6]++,this.show=!this.show},cancel:function(){Qn().f[6]++,Qn().s[7]++,this.show=!this.show}}},ee=ne,te=(0,T.Z)(ee,qn,Vn,!1,null,null,null),le=te.exports,ie=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("div",{attrs:{id:"tr-container"}},[t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"4"}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{cols:"6"}},[t("v-checkbox",{attrs:{label:"Pause on Error",value:"pauseOnError","hide-details":"","data-test":"pause-on-error"},model:{value:n.options,callback:function(e){n.options=e},expression:"options"}})],1),t("v-col",{attrs:{cols:"6"}},[t("v-checkbox",{attrs:{label:"Manual",value:"manual","hide-details":"","data-test":"manual"},model:{value:n.options,callback:function(e){n.options=e},expression:"options"}})],1)],1)],1),t("v-col",{attrs:{cols:"8"}},[t("v-row",{attrs:{"no-gutters":"",justify:"end"}},[t("v-col",{attrs:{cols:"5"}},[t("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Suite:","hide-details":"",dense:"",items:n.suites,"data-test":"select-suite"},on:{change:n.suiteChanged},model:{value:n.suite,callback:function(e){n.suite=e},expression:"suite"}})],1),t("v-col",{attrs:{cols:"auto"}},[t("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-suite"},on:{click:function(e){return n.$emit("button",{method:"start",suite:n.suite,options:n.options})}}},[n._v(" Start ")]),t("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-suite",disabled:n.disableButtons||!n.setupSuiteEnabled},on:{click:function(e){return n.$emit("button",{method:"setup",suite:n.suite,options:n.options})}}},[n._v(" Setup ")]),t("v-btn",{attrs:{color:"primary","data-test":"teardown-suite",disabled:n.disableButtons||!n.teardownSuiteEnabled},on:{click:function(e){return n.$emit("button",{method:"teardown",suite:n.suite,options:n.options})}}},[n._v(" Teardown ")])],1)],1)],1)],1),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"4"}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{cols:"6"}},[t("v-checkbox",{attrs:{label:"Continue after Error",value:"continueAfterError","hide-details":"","data-test":"continue-after-error"},model:{value:n.options,callback:function(e){n.options=e},expression:"options"}})],1),t("v-col",{attrs:{cols:"6"}},[t("v-checkbox",{attrs:{label:"Loop",value:"loop","hide-details":"","data-test":"loop"},model:{value:n.options,callback:function(e){n.options=e},expression:"options"}})],1)],1)],1),t("v-col",{attrs:{cols:"8"}},[t("v-row",{attrs:{"no-gutters":"",justify:"end"}},[t("v-col",{attrs:{cols:"5"}},[t("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Group:","hide-details":"",dense:"",items:n.groups,"data-test":"select-group"},on:{change:n.groupChanged},model:{value:n.group,callback:function(e){n.group=e},expression:"group"}})],1),t("v-col",{attrs:{cols:"auto"}},[t("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-group"},on:{click:function(e){return n.$emit("button",{method:"start",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Start ")]),t("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-group",disabled:n.disableButtons||!n.setupGroupEnabled},on:{click:function(e){return n.$emit("button",{method:"setup",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Setup ")]),t("v-btn",{attrs:{color:"primary","data-test":"teardown-group",disabled:n.disableButtons||!n.teardownGroupEnabled},on:{click:function(e){return n.$emit("button",{method:"teardown",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Teardown ")])],1)],1)],1)],1),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-col",{attrs:{cols:"4"}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{cols:"6"}},[t("v-checkbox",{attrs:{label:"Abort after Error",value:"abortAfterError","hide-details":"","data-test":"abort-after-error"},model:{value:n.options,callback:function(e){n.options=e},expression:"options"}})],1),t("v-col",{attrs:{cols:"6"}},[t("v-checkbox",{attrs:{disabled:!n.options.includes("loop"),label:"Break Loop on Error",value:"breakLoopOnError","hide-details":"","data-test":"break-loop-on-error"},model:{value:n.options,callback:function(e){n.options=e},expression:"options"}})],1)],1)],1),t("v-col",{attrs:{cols:"8"}},[t("v-row",{attrs:{"no-gutters":"",justify:"end"}},[t("v-col",{attrs:{cols:"5"}},[t("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Script:","hide-details":"",dense:"",items:n.scripts,"data-test":"select-script"},on:{change:n.scriptChanged},model:{value:n.script,callback:function(e){n.script=e},expression:"script"}})],1),t("v-col",{attrs:{cols:"auto"}},[t("v-btn",{attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-script"},on:{click:function(e){return n.$emit("button",{method:"start",suite:n.suite,group:n.group,script:n.script,options:n.options})}}},[n._v(" Start ")]),t("div",{staticStyle:{width:"300px"}})],1)],1)],1)],1)],1)])},oe=[];function se(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",e="9a9b5d668b087fd2350d7b58e12cc0485b70746c",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:244,column:4},end:{line:252,column:5}},1:{start:{line:256,column:6},end:{line:260,column:7}},2:{start:{line:257,column:8},end:{line:257,column:19}},3:{start:{line:259,column:8},end:{line:259,column:20}},4:{start:{line:263,column:6},end:{line:267,column:7}},5:{start:{line:264,column:8},end:{line:264,column:19}},6:{start:{line:266,column:8},end:{line:266,column:20}},7:{start:{line:270,column:6},end:{line:278,column:7}},8:{start:{line:275,column:8},end:{line:275,column:19}},9:{start:{line:277,column:8},end:{line:277,column:20}},10:{start:{line:281,column:6},end:{line:289,column:7}},11:{start:{line:286,column:8},end:{line:286,column:19}},12:{start:{line:288,column:8},end:{line:288,column:20}},13:{start:{line:293,column:4},end:{line:293,column:21}},14:{start:{line:299,column:8},end:{line:299,column:29}},15:{start:{line:306,column:6},end:{line:306,column:46}},16:{start:{line:307,column:6},end:{line:315,column:7}},17:{start:{line:311,column:8},end:{line:311,column:25}},18:{start:{line:313,column:8},end:{line:313,column:67}},19:{start:{line:314,column:8},end:{line:314,column:75}},20:{start:{line:318,column:6},end:{line:318,column:46}},21:{start:{line:319,column:6},end:{line:319,column:39}},22:{start:{line:322,column:6},end:{line:322,column:24}},23:{start:{line:323,column:6},end:{line:323,column:21}},24:{start:{line:324,column:6},end:{line:324,column:22}},25:{start:{line:325,column:6},end:{line:325,column:60}},26:{start:{line:327,column:6},end:{line:327,column:39}},27:{start:{line:330,column:6},end:{line:330,column:24}},28:{start:{line:331,column:6},end:{line:331,column:22}},29:{start:{line:332,column:6},end:{line:332,column:68}},30:{start:{line:334,column:6},end:{line:334,column:41}},31:{start:{line:337,column:6},end:{line:337,column:25}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:243,column:2},end:{line:243,column:3}},loc:{start:{line:243,column:9},end:{line:253,column:3}},line:243},1:{name:"(anonymous_1)",decl:{start:{line:255,column:4},end:{line:255,column:5}},loc:{start:{line:255,column:24},end:{line:261,column:5}},line:255},2:{name:"(anonymous_2)",decl:{start:{line:262,column:4},end:{line:262,column:5}},loc:{start:{line:262,column:27},end:{line:268,column:5}},line:262},3:{name:"(anonymous_3)",decl:{start:{line:269,column:4},end:{line:269,column:5}},loc:{start:{line:269,column:24},end:{line:279,column:5}},line:269},4:{name:"(anonymous_4)",decl:{start:{line:280,column:4},end:{line:280,column:5}},loc:{start:{line:280,column:27},end:{line:290,column:5}},line:280},5:{name:"(anonymous_5)",decl:{start:{line:292,column:2},end:{line:292,column:3}},loc:{start:{line:292,column:12},end:{line:294,column:3}},line:292},6:{name:"(anonymous_6)",decl:{start:{line:298,column:15},end:{line:298,column:16}},loc:{start:{line:298,column:41},end:{line:300,column:7}},line:298},7:{name:"(anonymous_7)",decl:{start:{line:305,column:4},end:{line:305,column:5}},loc:{start:{line:305,column:21},end:{line:316,column:5}},line:305},8:{name:"(anonymous_8)",decl:{start:{line:317,column:4},end:{line:317,column:5}},loc:{start:{line:317,column:17},end:{line:320,column:5}},line:317},9:{name:"(anonymous_9)",decl:{start:{line:321,column:4},end:{line:321,column:5}},loc:{start:{line:321,column:24},end:{line:328,column:5}},line:321},10:{name:"(anonymous_10)",decl:{start:{line:329,column:4},end:{line:329,column:5}},loc:{start:{line:329,column:24},end:{line:335,column:5}},line:329},11:{name:"(anonymous_11)",decl:{start:{line:336,column:4},end:{line:336,column:5}},loc:{start:{line:336,column:25},end:{line:338,column:5}},line:336}},branchMap:{0:{loc:{start:{line:256,column:6},end:{line:260,column:7}},type:"if",locations:[{start:{line:256,column:6},end:{line:260,column:7}},{start:{line:258,column:13},end:{line:260,column:7}}],line:256},1:{loc:{start:{line:256,column:10},end:{line:256,column:55}},type:"binary-expr",locations:[{start:{line:256,column:10},end:{line:256,column:20}},{start:{line:256,column:24},end:{line:256,column:55}}],line:256},2:{loc:{start:{line:263,column:6},end:{line:267,column:7}},type:"if",locations:[{start:{line:263,column:6},end:{line:267,column:7}},{start:{line:265,column:13},end:{line:267,column:7}}],line:263},3:{loc:{start:{line:263,column:10},end:{line:263,column:58}},type:"binary-expr",locations:[{start:{line:263,column:10},end:{line:263,column:20}},{start:{line:263,column:24},end:{line:263,column:58}}],line:263},4:{loc:{start:{line:270,column:6},end:{line:278,column:7}},type:"if",locations:[{start:{line:270,column:6},end:{line:278,column:7}},{start:{line:276,column:13},end:{line:278,column:7}}],line:270},5:{loc:{start:{line:271,column:8},end:{line:273,column:58}},type:"binary-expr",locations:[{start:{line:271,column:8},end:{line:271,column:18}},{start:{line:272,column:8},end:{line:272,column:18}},{start:{line:273,column:8},end:{line:273,column:58}}],line:271},6:{loc:{start:{line:281,column:6},end:{line:289,column:7}},type:"if",locations:[{start:{line:281,column:6},end:{line:289,column:7}},{start:{line:287,column:13},end:{line:289,column:7}}],line:281},7:{loc:{start:{line:282,column:8},end:{line:284,column:61}},type:"binary-expr",locations:[{start:{line:282,column:8},end:{line:282,column:18}},{start:{line:283,column:8},end:{line:283,column:18}},{start:{line:284,column:8},end:{line:284,column:61}}],line:282},8:{loc:{start:{line:307,column:6},end:{line:315,column:7}},type:"if",locations:[{start:{line:307,column:6},end:{line:315,column:7}},{start:{line:312,column:13},end:{line:315,column:7}}],line:307},9:{loc:{start:{line:308,column:8},end:{line:309,column:65}},type:"binary-expr",locations:[{start:{line:308,column:8},end:{line:308,column:46}},{start:{line:309,column:8},end:{line:309,column:65}}],line:308}},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:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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--\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:"9a9b5d668b087fd2350d7b58e12cc0485b70746c"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return se=function(){return s},s}se();var ae={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data:function(){return se().f[0]++,se().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled:function(){return se().f[1]++,se().s[1]++,se().b[1][0]++,this.suite&&(se().b[1][1]++,this.suiteMap[this.suite].setup)?(se().b[0][0]++,se().s[2]++,!0):(se().b[0][1]++,se().s[3]++,!1)},teardownSuiteEnabled:function(){return se().f[2]++,se().s[4]++,se().b[3][0]++,this.suite&&(se().b[3][1]++,this.suiteMap[this.suite].teardown)?(se().b[2][0]++,se().s[5]++,!0):(se().b[2][1]++,se().s[6]++,!1)},setupGroupEnabled:function(){return se().f[3]++,se().s[7]++,se().b[5][0]++,this.suite&&(se().b[5][1]++,this.group)&&(se().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(se().b[4][0]++,se().s[8]++,!0):(se().b[4][1]++,se().s[9]++,!1)},teardownGroupEnabled:function(){return se().f[4]++,se().s[10]++,se().b[7][0]++,this.suite&&(se().b[7][1]++,this.group)&&(se().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(se().b[6][0]++,se().s[11]++,!0):(se().b[6][1]++,se().s[12]++,!1)}},created:function(){se().f[5]++,se().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(n,e){se().f[6]++,se().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap:function(){se().f[7]++,se().s[15]++,this.suites=Object.keys(this.suiteMap),se().s[16]++,se().b[9][0]++,void 0==this.suiteMap[this.suite]||(se().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(se().b[8][0]++,se().s[17]++,this.initSuites()):(se().b[8][1]++,se().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),se().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites:function(){se().f[8]++,se().s[20]++,this.suites=Object.keys(this.suiteMap),se().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged:function(n){se().f[9]++,se().s[22]++,this.suite=n,se().s[23]++,this.group="",se().s[24]++,this.script="",se().s[25]++,this.groups=Object.keys(this.suiteMap[n].groups),se().s[26]++,this.groupChanged(this.groups[0])},groupChanged:function(n){se().f[10]++,se().s[27]++,this.group=n,se().s[28]++,this.script="",se().s[29]++,this.scripts=this.suiteMap[this.suite].groups[n].scripts,se().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged:function(n){se().f[11]++,se().s[31]++,this.script=n}}},ce=ae,re=(t(7961),(0,T.Z)(ce,ie,oe,!1,null,"3677302c",null)),ue=re.exports,me=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("v-card",[t("v-card-title",[t("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(e){var l=e.on,i=e.attrs;return[t("div",n._g(n._b({},"div",i,!1),l),[t("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:n.downloadLog}},[t("v-icon",[n._v(" mdi-download ")])],1)],1)]}}])},[t("span",[n._v(" Download Log ")])]),n._v(" Log Messages "),t("v-spacer"),t("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(e){var l=e.on,i=e.attrs;return[t("div",n._g(n._b({},"div",i,!1),l),[t("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:n.clearLog}},[t("v-icon",[n._v(" mdi-delete ")])],1)],1)]}}])},[t("span",[n._v(" Clear Log ")])])],1),t("v-card-subtitle",[t("v-text-field",{attrs:{"single-line":"","hide-details":"",autofocus:"",label:"Search","data-test":"search-output-messages"},model:{value:n.search,callback:function(e){n.search=e},expression:"search"}})],1),t("v-data-table",{attrs:{headers:n.headers,items:n.messages,search:n.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:"",height:"45vh","data-test":"output-messages"}})],1)],1)},Ae=[];function de(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",e="91cf02989198444d745e22d7f72139c661ebe10b",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:89,column:4},end:{line:92,column:5}},1:{start:{line:97,column:8},end:{line:97,column:25}},2:{start:{line:100,column:8},end:{line:100,column:34}},3:{start:{line:106,column:21},end:{line:106,column:79}},4:{start:{line:106,column:52},end:{line:106,column:67}},5:{start:{line:107,column:19},end:{line:109,column:8}},6:{start:{line:111,column:19},end:{line:111,column:46}},7:{start:{line:112,column:6},end:{line:112,column:43}},8:{start:{line:113,column:6},end:{line:116,column:7}},9:{start:{line:117,column:6},end:{line:117,column:18}},10:{start:{line:120,column:6},end:{line:127,column:10}},11:{start:{line:126,column:10},end:{line:126,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:88,column:2},end:{line:88,column:3}},loc:{start:{line:88,column:9},end:{line:93,column:3}},line:88},1:{name:"(anonymous_1)",decl:{start:{line:96,column:6},end:{line:96,column:7}},loc:{start:{line:96,column:12},end:{line:98,column:7}},line:96},2:{name:"(anonymous_2)",decl:{start:{line:99,column:6},end:{line:99,column:7}},loc:{start:{line:99,column:17},end:{line:101,column:7}},line:99},3:{name:"(anonymous_3)",decl:{start:{line:105,column:4},end:{line:105,column:5}},loc:{start:{line:105,column:18},end:{line:118,column:5}},line:105},4:{name:"(anonymous_4)",decl:{start:{line:106,column:39},end:{line:106,column:40}},loc:{start:{line:106,column:52},end:{line:106,column:67}},line:106},5:{name:"(anonymous_5)",decl:{start:{line:119,column:14},end:{line:119,column:15}},loc:{start:{line:119,column:26},end:{line:128,column:5}},line:119},6:{name:"(anonymous_6)",decl:{start:{line:125,column:14},end:{line:125,column:15}},loc:{start:{line:125,column:26},end:{line:127,column:9}},line:125}},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:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EA;;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--\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:"91cf02989198444d745e22d7f72139c661ebe10b"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return de=function(){return s},s}de();var pe={props:{value:{type:Array,required:!0}},data:function(){return de().f[0]++,de().s[0]++,{search:"",headers:[{text:"Message",value:"message"}]}},computed:{messages:{get:function(){return de().f[1]++,de().s[1]++,this.value},set:function(n){de().f[2]++,de().s[2]++,this.$emit("input",n)}}},methods:{downloadLog:function(){de().f[3]++;var n=(de().s[3]++,this.messages.map((function(n){return de().f[4]++,de().s[4]++,n.message})).join("\n")),e=(de().s[5]++,new Blob([n],{type:"text/plain"})),t=(de().s[6]++,document.createElement("a"));de().s[7]++,t.href=URL.createObjectURL(e),de().s[8]++,t.setAttribute("download",(0,x.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),de().s[9]++,t.click()},clearLog:function(){var n=this;de().f[5]++,de().s[10]++,this.$dialog.confirm("Are you sure you want to clear the logs?",{okText:"Clear",cancelText:"Cancel"}).then((function(e){de().f[6]++,de().s[11]++,n.messages=[]}))}}},he=pe,fe=(0,T.Z)(he,me,Ae,!1,null,null,null),ve=fe.exports,Ce=t(4375),be=t(5590);function ge(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",e="b16bc9dee0846358be552d363173cb2bb62d2f74",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",statementMap:{0:{start:{line:22,column:20},end:{line:24,column:1}},1:{start:{line:23,column:2},end:{line:23,column:61}},2:{start:{line:26,column:28},end:{line:28,column:1}},3:{start:{line:27,column:2},end:{line:27,column:57}},4:{start:{line:31,column:16},end:{line:41,column:1}},5:{start:{line:32,column:2},end:{line:40,column:8}},6:{start:{line:33,column:16},end:{line:33,column:28}},7:{start:{line:34,column:4},end:{line:38,column:5}},8:{start:{line:35,column:6},end:{line:35,column:28}},9:{start:{line:37,column:6},end:{line:37,column:26}},10:{start:{line:39,column:4},end:{line:39,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:20},end:{line:22,column:21}},loc:{start:{line:22,column:30},end:{line:24,column:1}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:26,column:28},end:{line:26,column:29}},loc:{start:{line:26,column:38},end:{line:28,column:1}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:31,column:16},end:{line:31,column:17}},loc:{start:{line:31,column:35},end:{line:41,column:1}},line:31},3:{name:"(anonymous_3)",decl:{start:{line:32,column:22},end:{line:32,column:23}},loc:{start:{line:32,column:40},end:{line:40,column:3}},line:32}},branchMap:{0:{loc:{start:{line:34,column:4},end:{line:38,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:38,column:5}},{start:{line:36,column:11},end:{line:38,column:5}}],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},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b16bc9dee0846358be552d363173cb2bb62d2f74"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return ge=function(){return s},s}ge(),ge().s[0]++;var ye=function(n){return ge().f[0]++,ge().s[1]++,k.get("/openc3-api/autocomplete/keywords/".concat(n))};ge().s[2]++;var we=function(n){return ge().f[1]++,ge().s[3]++,k.get("/openc3-api/autocomplete/data/".concat(n))};ge().s[4]++;var ke=function(n,e){return ge().f[2]++,ge().s[5]++,n.reduce((function(n,t){ge().f[3]++;var l=(ge().s[6]++,e(t));return ge().s[7]++,n[l]?(ge().b[0][0]++,ge().s[8]++,n[l].push(t)):(ge().b[0][1]++,ge().s[9]++,n[l]=[t]),ge().s[10]++,n}),{})};function _e(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",e="6db958dab610ee98cdde719170be3a39b7318ca0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",statementMap:{0:{start:{line:22,column:32},end:{line:28,column:1}},1:{start:{line:24,column:17},end:{line:24,column:32}},2:{start:{line:25,column:18},end:{line:25,column:33}},3:{start:{line:26,column:17},end:{line:26,column:34}},4:{start:{line:27,column:2},end:{line:27,column:59}},5:{start:{line:36,column:4},end:{line:36,column:32}},6:{start:{line:37,column:4},end:{line:37,column:30}},7:{start:{line:39,column:4},end:{line:42,column:6}},8:{start:{line:40,column:6},end:{line:40,column:74}},9:{start:{line:41,column:6},end:{line:41,column:32}},10:{start:{line:43,column:4},end:{line:46,column:6}},11:{start:{line:44,column:6},end:{line:44,column:43}},12:{start:{line:45,column:6},end:{line:45,column:25}},13:{start:{line:49,column:19},end:{line:71,column:3}},14:{start:{line:50,column:18},end:{line:50,column:20}},15:{start:{line:51,column:29},end:{line:54,column:5}},16:{start:{line:55,column:4},end:{line:59,column:5}},17:{start:{line:56,column:46},end:{line:56,column:75}},18:{start:{line:58,column:6},end:{line:58,column:37}},19:{start:{line:61,column:4},end:{line:70,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:32},end:{line:22,column:33}},loc:{start:{line:22,column:42},end:{line:28,column:1}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:35,column:4},end:{line:47,column:3}},line:35},2:{name:"(anonymous_2)",decl:{start:{line:33,column:24},end:{line:33,column:25}},loc:{start:{line:33,column:30},end:{line:33,column:32}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:34,column:31},end:{line:34,column:32}},loc:{start:{line:34,column:37},end:{line:34,column:39}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:39,column:27},end:{line:39,column:28}},loc:{start:{line:39,column:41},end:{line:42,column:5}},line:39},5:{name:"(anonymous_5)",decl:{start:{line:43,column:35},end:{line:43,column:36}},loc:{start:{line:43,column:49},end:{line:46,column:5}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:49,column:19},end:{line:49,column:20}},loc:{start:{line:49,column:74},end:{line:71,column:3}},line:49},7:{name:"(anonymous_7)",decl:{start:{line:56,column:35},end:{line:56,column:36}},loc:{start:{line:56,column:46},end:{line:56,column:75}},line:56}},branchMap:{0:{loc:{start:{line:33,column:4},end:{line:33,column:32}},type:"default-arg",locations:[{start:{line:33,column:24},end:{line:33,column:32}}],line:33},1:{loc:{start:{line:34,column:4},end:{line:34,column:39}},type:"default-arg",locations:[{start:{line:34,column:31},end:{line:34,column:39}}],line:34},2:{loc:{start:{line:55,column:4},end:{line:59,column:5}},type:"if",locations:[{start:{line:55,column:4},end:{line:59,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:55}},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:"6db958dab610ee98cdde719170be3a39b7318ca0"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return _e=function(){return s},s}_e(),_e().s[0]++;var xe=function(n){_e().f[0]++;var e=(_e().s[1]++,"(^|[{\\(\\s])"),t=(_e().s[2]++,"[\\s\\(]['\"]"),l=(_e().s[3]++,"(\\S+\\s?){0,3}");return _e().s[4]++,new RegExp("".concat(e).concat(n).concat(t).concat(l,"$"))},Se=(0,d.Z)((function n(e){var t=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(_e().b[0][0]++,function(){_e().f[2]++}),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(_e().b[1][0]++,function(){_e().f[3]++});(0,A.Z)(this,n),(0,_n.Z)(this,"getCompletions",(_e().s[13]++,function(n,e,t,l,i){_e().f[6]++;var o=(_e().s[14]++,[]),s=(_e().s[15]++,e.doc.$lines[t.row].slice(0,t.column));_e().s[16]++,this.keywordExpressions.some((function(n){return _e().f[7]++,_e().s[17]++,s.match(n)}))?(_e().b[2][0]++,_e().s[18]++,o=this.autocompleteData):_e().b[2][1]++,_e().s[19]++,i(null,(0,r.Z)(o))})),_e().f[1]++,_e().s[5]++,this.keywordExpressions=[],_e().s[6]++,this.autocompleteData=[],_e().s[7]++,ye(e).then((function(n){_e().f[4]++,_e().s[8]++,t.keywordExpressions=n.data.map(xe),_e().s[9]++,i()})),_e().s[10]++,we(e).then((function(n){_e().f[5]++,_e().s[11]++,t.autocompleteData=n.data,_e().s[12]++,l()}))}));function Re(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",e="9379341eab33e5fa36dac77a584cc49f20c6376d",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",statementMap:{0:{start:{line:24,column:4},end:{line:24,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:16},end:{line:25,column:3}},line:23}},branchMap:{},s:{0:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9379341eab33e5fa36dac77a584cc49f20c6376d"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Re=function(){return s},s}Re();var Me=function(n){(0,Ce.Z)(t,n);var e=(0,be.Z)(t);function t(){return(0,A.Z)(this,t),Re().f[0]++,Re().s[0]++,e.call(this,"cmd")}return(0,d.Z)(t)}(Se),Ee=t(1345);function De(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",e="40bee91558da1f724dd057bcfbfea9216581f157",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",statementMap:{0:{start:{line:24,column:4},end:{line:50,column:6}},1:{start:{line:27,column:6},end:{line:42,column:12}},2:{start:{line:28,column:27},end:{line:28,column:60}},3:{start:{line:29,column:25},end:{line:29,column:67}},4:{start:{line:30,column:28},end:{line:34,column:9}},5:{start:{line:36,column:8},end:{line:40,column:9}},6:{start:{line:37,column:10},end:{line:37,column:46}},7:{start:{line:39,column:10},end:{line:39,column:44}},8:{start:{line:41,column:8},end:{line:41,column:21}},9:{start:{line:43,column:6},end:{line:49,column:8}},10:{start:{line:44,column:8},end:{line:48,column:9}},11:{start:{line:54,column:19},end:{line:74,column:3}},12:{start:{line:55,column:18},end:{line:55,column:20}},13:{start:{line:56,column:29},end:{line:59,column:5}},14:{start:{line:60,column:4},end:{line:71,column:5}},15:{start:{line:61,column:46},end:{line:61,column:75}},16:{start:{line:63,column:26},end:{line:65,column:7}},17:{start:{line:64,column:24},end:{line:64,column:61}},18:{start:{line:66,column:6},end:{line:70,column:7}},19:{start:{line:67,column:8},end:{line:67,column:53}},20:{start:{line:69,column:8},end:{line:69,column:30}},21:{start:{line:73,column:4},end:{line:73,column:27}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:16},end:{line:51,column:3}},line:23},1:{name:"(anonymous_1)",decl:{start:{line:24,column:17},end:{line:24,column:18}},loc:{start:{line:24,column:23},end:{line:50,column:5}},line:24},2:{name:"(anonymous_2)",decl:{start:{line:27,column:60},end:{line:27,column:61}},loc:{start:{line:27,column:78},end:{line:42,column:7}},line:27},3:{name:"(anonymous_3)",decl:{start:{line:43,column:61},end:{line:43,column:62}},loc:{start:{line:43,column:77},end:{line:49,column:7}},line:43},4:{name:"(anonymous_4)",decl:{start:{line:54,column:19},end:{line:54,column:20}},loc:{start:{line:54,column:74},end:{line:74,column:3}},line:54},5:{name:"(anonymous_5)",decl:{start:{line:61,column:35},end:{line:61,column:36}},loc:{start:{line:61,column:46},end:{line:61,column:75}},line:61},6:{name:"(anonymous_6)",decl:{start:{line:64,column:8},end:{line:64,column:9}},loc:{start:{line:64,column:24},end:{line:64,column:61}},line:64}},branchMap:{0:{loc:{start:{line:36,column:8},end:{line:40,column:9}},type:"if",locations:[{start:{line:36,column:8},end:{line:40,column:9}},{start:{line:38,column:15},end:{line:40,column:9}}],line:36},1:{loc:{start:{line:60,column:4},end:{line:71,column:5}},type:"if",locations:[{start:{line:60,column:4},end:{line:71,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},2:{loc:{start:{line:66,column:6},end:{line:70,column:7}},type:"if",locations:[{start:{line:66,column:6},end:{line:70,column:7}},{start:{line:68,column:13},end:{line:70,column:7}}],line:66}},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:"40bee91558da1f724dd057bcfbfea9216581f157"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return De=function(){return s},s}De();var Te=function(n){(0,Ce.Z)(t,n);var e=(0,be.Z)(t);function t(){var n;return(0,A.Z)(this,t),De().f[0]++,De().s[0]++,n=e.call(this,"tlm",(function(){De().f[1]++,De().s[1]++,n.groupedPacketData=n.autocompleteData.reduce((function(n,e){De().f[2]++;var t=(De().s[2]++,e.caption.match(/\S+\s\S+/)[0]),l=(De().s[3]++,e.snippet.replace("".concat(t," "),"")),i=(De().s[4]++,{caption:l,snippet:l,meta:"item"});return De().s[5]++,n[t]?(De().b[0][0]++,De().s[6]++,n[t].push(i)):(De().b[0][1]++,De().s[7]++,n[t]=[i]),De().s[8]++,n}),{}),De().s[9]++,n.packets=Object.keys(n.groupedPacketData).map((function(n){return De().f[3]++,De().s[10]++,{caption:n,snippet:n,meta:"packet"}}))})),(0,_n.Z)((0,Ee.Z)(n),"getCompletions",(De().s[11]++,function(n,e,t,l,i){De().f[4]++;var o=(De().s[12]++,[]),s=(De().s[13]++,e.doc.$lines[t.row].slice(0,t.column));if(De().s[14]++,this.keywordExpressions.some((function(n){return De().f[5]++,De().s[15]++,s.match(n)}))){De().b[1][0]++;var a=(De().s[16]++,Object.keys(this.groupedPacketData).find((function(n){return De().f[6]++,De().s[17]++,s.includes(n)})));De().s[18]++,a?(De().b[2][0]++,De().s[19]++,o=this.groupedPacketData[a]):(De().b[2][1]++,De().s[20]++,o=this.packets)}else De().b[1][1]++;De().s[21]++,i(null,o)})),n}return(0,d.Z)(t)}(Se);t(3430);function Ie(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",e="7185fdff633ffd3edabf15fd2c15091af9669e53",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",statementMap:{0:{start:{line:23,column:23},end:{line:28,column:1}},1:{start:{line:25,column:17},end:{line:25,column:32}},2:{start:{line:26,column:15},end:{line:26,column:37}},3:{start:{line:27,column:2},end:{line:27,column:46}},4:{start:{line:29,column:32},end:{line:29,column:41}},5:{start:{line:30,column:29},end:{line:30,column:43}},6:{start:{line:34,column:4},end:{line:34,column:30}},7:{start:{line:36,column:4},end:{line:36,column:21}},8:{start:{line:37,column:4},end:{line:44,column:6}},9:{start:{line:38,column:6},end:{line:43,column:8}},10:{start:{line:39,column:8},end:{line:42,column:9}},11:{start:{line:46,column:4},end:{line:46,column:35}},12:{start:{line:47,column:4},end:{line:49,column:6}},13:{start:{line:48,column:6},end:{line:48,column:68}},14:{start:{line:51,column:4},end:{line:51,column:35}},15:{start:{line:52,column:4},end:{line:54,column:6}},16:{start:{line:53,column:6},end:{line:53,column:68}},17:{start:{line:57,column:14},end:{line:135,column:3}},18:{start:{line:58,column:42},end:{line:128,column:5}},19:{start:{line:60,column:8},end:{line:60,column:26}},20:{start:{line:61,column:8},end:{line:63,column:9}},21:{start:{line:62,column:10},end:{line:62,column:23}},22:{start:{line:64,column:25},end:{line:66,column:16}},23:{start:{line:65,column:10},end:{line:65,column:43}},24:{start:{line:67,column:25},end:{line:69,column:16}},25:{start:{line:68,column:10},end:{line:68,column:43}},26:{start:{line:70,column:8},end:{line:72,column:9}},27:{start:{line:71,column:10},end:{line:71,column:23}},28:{start:{line:74,column:25},end:{line:74,column:50}},29:{start:{line:75,column:30},end:{line:77,column:32}},30:{start:{line:79,column:8},end:{line:82,column:9}},31:{start:{line:80,column:10},end:{line:80,column:44}},32:{start:{line:81,column:10},end:{line:81,column:23}},33:{start:{line:84,column:37},end:{line:84,column:80}},34:{start:{line:85,column:30},end:{line:87,column:9}},35:{start:{line:88,column:8},end:{line:90,column:9}},36:{start:{line:89,column:10},end:{line:89,column:23}},37:{start:{line:92,column:25},end:{line:95,column:9}},38:{start:{line:96,column:8},end:{line:107,column:9}},39:{start:{line:97,column:10},end:{line:97,column:42}},40:{start:{line:99,column:33},end:{line:99,column:55}},41:{start:{line:100,column:10},end:{line:106,column:11}},42:{start:{line:101,column:12},end:{line:103,column:13}},43:{start:{line:102,column:25},end:{line:102,column:45}},44:{start:{line:105,column:12},end:{line:105,column:80}},45:{start:{line:105,column:70},end:{line:105,column:79}},46:{start:{line:110,column:8},end:{line:118,column:9}},47:{start:{line:111,column:10},end:{line:117,column:11}},48:{start:{line:112,column:12},end:{line:112,column:79}},49:{start:{line:114,column:12},end:{line:116,column:13}},50:{start:{line:115,column:14},end:{line:115,column:46}},51:{start:{line:120,column:8},end:{line:124,column:10}},52:{start:{line:125,column:8},end:{line:125,column:21}},53:{start:{line:130,column:21},end:{line:130,column:57}},54:{start:{line:131,column:4},end:{line:134,column:5}},55:{start:{line:133,column:40},end:{line:133,column:67}},56:{start:{line:137,column:16},end:{line:209,column:3}},57:{start:{line:138,column:25},end:{line:138,column:27}},58:{start:{line:139,column:25},end:{line:142,column:5}},59:{start:{line:141,column:19},end:{line:141,column:42}},60:{start:{line:143,column:4},end:{line:207,column:5}},61:{start:{line:144,column:6},end:{line:152,column:7}},62:{start:{line:145,column:8},end:{line:150,column:9}},63:{start:{line:146,column:10},end:{line:149,column:12}},64:{start:{line:151,column:8},end:{line:151,column:16}},65:{start:{line:153,column:27},end:{line:156,column:7}},66:{start:{line:155,column:21},end:{line:155,column:44}},67:{start:{line:157,column:6},end:{line:206,column:7}},68:{start:{line:158,column:8},end:{line:205,column:9}},69:{start:{line:159,column:27},end:{line:159,column:64}},70:{start:{line:160,column:10},end:{line:174,column:11}},71:{start:{line:161,column:27},end:{line:163,column:34}},72:{start:{line:164,column:29},end:{line:164,column:59}},73:{start:{line:165,column:12},end:{line:173,column:13}},74:{start:{line:167,column:16},end:{line:169,column:17}},75:{start:{line:168,column:28},end:{line:168,column:37}},76:{start:{line:170,column:16},end:{line:170,column:29}},77:{start:{line:176,column:24},end:{line:176,column:62}},78:{start:{line:177,column:10},end:{line:185,column:11}},79:{start:{line:178,column:12},end:{line:183,column:14}},80:{start:{line:184,column:12},end:{line:184,column:20}},81:{start:{line:186,column:10},end:{line:204,column:11}},82:{start:{line:187,column:12},end:{line:193,column:13}},83:{start:{line:187,column:38},end:{line:187,column:68}},84:{start:{line:188,column:14},end:{line:191,column:16}},85:{start:{line:192,column:14},end:{line:192,column:22}},86:{start:{line:195,column:12},end:{line:203,column:13}},87:{start:{line:196,column:14},end:{line:202,column:15}},88:{start:{line:196,column:40},end:{line:196,column:54}},89:{start:{line:197,column:16},end:{line:200,column:18}},90:{start:{line:201,column:16},end:{line:201,column:24}},91:{start:{line:208,column:4},end:{line:208,column:23}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:23},end:{line:23,column:24}},loc:{start:{line:23,column:33},end:{line:28,column:1}},line:23},1:{name:"(anonymous_1)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:16},end:{line:55,column:3}},line:33},2:{name:"(anonymous_2)",decl:{start:{line:37,column:36},end:{line:37,column:37}},loc:{start:{line:37,column:50},end:{line:44,column:5}},line:37},3:{name:"(anonymous_3)",decl:{start:{line:38,column:23},end:{line:38,column:24}},loc:{start:{line:38,column:35},end:{line:43,column:7}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:47,column:28},end:{line:47,column:29}},loc:{start:{line:47,column:42},end:{line:49,column:5}},line:47},5:{name:"(anonymous_5)",decl:{start:{line:52,column:28},end:{line:52,column:29}},loc:{start:{line:52,column:42},end:{line:54,column:5}},line:52},6:{name:"(anonymous_6)",decl:{start:{line:57,column:14},end:{line:57,column:15}},loc:{start:{line:57,column:36},end:{line:135,column:3}},line:57},7:{name:"(anonymous_7)",decl:{start:{line:59,column:6},end:{line:59,column:7}},loc:{start:{line:59,column:31},end:{line:126,column:7}},line:59},8:{name:"(anonymous_8)",decl:{start:{line:64,column:59},end:{line:64,column:60}},loc:{start:{line:64,column:77},end:{line:66,column:9}},line:64},9:{name:"(anonymous_9)",decl:{start:{line:67,column:59},end:{line:67,column:60}},loc:{start:{line:67,column:77},end:{line:69,column:9}},line:67},10:{name:"(anonymous_10)",decl:{start:{line:102,column:14},end:{line:102,column:15}},loc:{start:{line:102,column:25},end:{line:102,column:45}},line:102},11:{name:"(anonymous_11)",decl:{start:{line:105,column:52},end:{line:105,column:53}},loc:{start:{line:105,column:70},end:{line:105,column:79}},line:105},12:{name:"(anonymous_12)",decl:{start:{line:114,column:56},end:{line:114,column:57}},loc:{start:{line:115,column:14},end:{line:115,column:46}},line:115},13:{name:"(anonymous_13)",decl:{start:{line:133,column:30},end:{line:133,column:31}},loc:{start:{line:133,column:40},end:{line:133,column:67}},line:133},14:{name:"(anonymous_14)",decl:{start:{line:137,column:16},end:{line:137,column:17}},loc:{start:{line:137,column:40},end:{line:209,column:3}},line:137},15:{name:"(anonymous_15)",decl:{start:{line:141,column:6},end:{line:141,column:7}},loc:{start:{line:141,column:19},end:{line:141,column:42}},line:141},16:{name:"(anonymous_16)",decl:{start:{line:155,column:8},end:{line:155,column:9}},loc:{start:{line:155,column:21},end:{line:155,column:44}},line:155},17:{name:"(anonymous_17)",decl:{start:{line:166,column:14},end:{line:166,column:15}},loc:{start:{line:166,column:38},end:{line:171,column:15}},line:166},18:{name:"(anonymous_18)",decl:{start:{line:168,column:18},end:{line:168,column:19}},loc:{start:{line:168,column:28},end:{line:168,column:37}},line:168},19:{name:"(anonymous_19)",decl:{start:{line:187,column:28},end:{line:187,column:29}},loc:{start:{line:187,column:38},end:{line:187,column:68}},line:187},20:{name:"(anonymous_20)",decl:{start:{line:196,column:30},end:{line:196,column:31}},loc:{start:{line:196,column:40},end:{line:196,column:54}},line:196}},branchMap:{0:{loc:{start:{line:61,column:8},end:{line:63,column:9}},type:"if",locations:[{start:{line:61,column:8},end:{line:63,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:61},1:{loc:{start:{line:65,column:17},end:{line:65,column:43}},type:"binary-expr",locations:[{start:{line:65,column:17},end:{line:65,column:22}},{start:{line:65,column:26},end:{line:65,column:43}}],line:65},2:{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},3:{loc:{start:{line:70,column:8},end:{line:72,column:9}},type:"if",locations:[{start:{line:70,column:8},end:{line:72,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:70},4:{loc:{start:{line:70,column:12},end:{line:70,column:34}},type:"binary-expr",locations:[{start:{line:70,column:12},end:{line:70,column:21}},{start:{line:70,column:25},end:{line:70,column:34}}],line:70},5:{loc:{start:{line:74,column:26},end:{line:74,column:46}},type:"binary-expr",locations:[{start:{line:74,column:26},end:{line:74,column:34}},{start:{line:74,column:38},end:{line:74,column:46}}],line:74},6:{loc:{start:{line:79,column:8},end:{line:82,column:9}},type:"if",locations:[{start:{line:79,column:8},end:{line:82,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:79},7:{loc:{start:{line:86,column:10},end:{line:86,column:42}},type:"cond-expr",locations:[{start:{line:86,column:33},end:{line:86,column:36}},{start:{line:86,column:39},end:{line:86,column:42}}],line:86},8:{loc:{start:{line:88,column:8},end:{line:90,column:9}},type:"if",locations:[{start:{line:88,column:8},end:{line:90,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:88},9:{loc:{start:{line:96,column:8},end:{line:107,column:9}},type:"if",locations:[{start:{line:96,column:8},end:{line:107,column:9}},{start:{line:98,column:15},end:{line:107,column:9}}],line:96},10:{loc:{start:{line:100,column:10},end:{line:106,column:11}},type:"if",locations:[{start:{line:100,column:10},end:{line:106,column:11}},{start:{line:104,column:17},end:{line:106,column:11}}],line:100},11:{loc:{start:{line:111,column:10},end:{line:117,column:11}},type:"if",locations:[{start:{line:111,column:10},end:{line:117,column:11}},{start:{line:113,column:17},end:{line:117,column:11}}],line:111},12:{loc:{start:{line:144,column:6},end:{line:152,column:7}},type:"if",locations:[{start:{line:144,column:6},end:{line:152,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:144},13:{loc:{start:{line:159,column:27},end:{line:159,column:64}},type:"cond-expr",locations:[{start:{line:159,column:51},end:{line:159,column:56}},{start:{line:159,column:59},end:{line:159,column:64}}],line:159},14:{loc:{start:{line:160,column:10},end:{line:174,column:11}},type:"if",locations:[{start:{line:160,column:10},end:{line:174,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:160},15:{loc:{start:{line:161,column:27},end:{line:163,column:34}},type:"cond-expr",locations:[{start:{line:162,column:16},end:{line:162,column:35}},{start:{line:163,column:16},end:{line:163,column:34}}],line:161},16:{loc:{start:{line:177,column:10},end:{line:185,column:11}},type:"if",locations:[{start:{line:177,column:10},end:{line:185,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:177},17:{loc:{start:{line:181,column:16},end:{line:181,column:57}},type:"cond-expr",locations:[{start:{line:181,column:37},end:{line:181,column:45}},{start:{line:181,column:48},end:{line:181,column:57}}],line:181},18:{loc:{start:{line:186,column:10},end:{line:204,column:11}},type:"if",locations:[{start:{line:186,column:10},end:{line:204,column:11}},{start:{line:194,column:17},end:{line:204,column:11}}],line:186},19:{loc:{start:{line:187,column:12},end:{line:193,column:13}},type:"if",locations:[{start:{line:187,column:12},end:{line:193,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:187},20:{loc:{start:{line:196,column:14},end:{line:202,column:15}},type:"if",locations:[{start:{line:196,column:14},end:{line:202,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:196}},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:"7185fdff633ffd3edabf15fd2c15091af9669e53"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ie=function(){return s},s}Ie(),Ie().s[0]++;var Oe=function(n){Ie().f[0]++;var e=(Ie().s[1]++,"(^|[{\\(\\s])"),t=(Ie().s[2]++,"((\\s.+)|(\\(.+\\)))");return Ie().s[3]++,new RegExp("".concat(e).concat(n).concat(t))},Fe=(Ie().s[4]++,/#\{.+\}/),$e=(Ie().s[5]++,/['"],\s?['"]/),Be=(0,d.Z)((function n(){var e=this;(0,A.Z)(this,n),(0,_n.Z)(this,"checkText",(Ie().s[17]++,function(){var n=(0,c.Z)((0,a.Z)().mark((function n(e){var t,l,i,o,s=this;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ie().f[6]++,Ie().s[18]++,t=e.split("\n").reduce((function(n,e,t){if(Ie().f[7]++,Ie().s[19]++,e=e.trim(),Ie().s[20]++,e.match(/^#/))return Ie().b[0][0]++,Ie().s[21]++,n;Ie().b[0][1]++;var l=(Ie().s[22]++,s.cmdKeywordExpressions.reduce((function(n,t){return Ie().f[8]++,Ie().s[23]++,Ie().b[1][0]++,n||(Ie().b[1][1]++,e.match(t))}),null)),i=(Ie().s[24]++,s.tlmKeywordExpressions.reduce((function(n,t){return Ie().f[9]++,Ie().s[25]++,Ie().b[2][0]++,n||(Ie().b[2][1]++,e.match(t))}),null));if(Ie().s[26]++,Ie().b[4][0]++,!l&&(Ie().b[4][1]++,!i))return Ie().b[3][0]++,Ie().s[27]++,n;Ie().b[3][1]++;var o=(Ie().s[28]++,(Ie().b[5][0]++,l||(Ie().b[5][1]++,i))[0]),a=(Ie().s[29]++,o.substring(o.match(/[\(\s)]/).index+1).replace(/\)\s*$/,""));if(Ie().s[30]++,a.match(Fe))return Ie().b[6][0]++,Ie().s[31]++,n.linesToSkip.push(t+1),Ie().s[32]++,n;Ie().b[6][1]++;var c=(Ie().s[33]++,!!a.match($e)),r=(Ie().s[34]++,a.split(c?(Ie().b[7][0]++,","):(Ie().b[7][1]++," ")));if(Ie().s[35]++,r.length<2)return Ie().b[8][0]++,Ie().s[36]++,n;Ie().b[8][1]++;var u=(Ie().s[37]++,{target:r[0],packet:r[1]});if(Ie().s[38]++,i)Ie().b[9][0]++,Ie().s[39]++,u.item=r[2];else{Ie().b[9][1]++;var m=(Ie().s[40]++,r.slice(2));Ie().s[41]++,c?(Ie().b[10][0]++,Ie().s[42]++,u.params=m.map((function(n){return Ie().f[10]++,Ie().s[43]++,n.split("=>")[0]}))):(Ie().b[10][1]++,Ie().s[44]++,u.params=m.filter((function(n,e){return Ie().f[11]++,Ie().s[45]++,e%2})))}for(var A in Ie().s[46]++,u)Ie().s[47]++,"string"===typeof u[A]?(Ie().b[11][0]++,Ie().s[48]++,u[A]=u[A].replace(/['"]/g,"").trim()):(Ie().b[11][1]++,Ie().s[49]++,u[A]=u[A].map((function(n){return Ie().f[12]++,Ie().s[50]++,n.replace(/['"]/g,"").trim()})));return Ie().s[51]++,n.linesToCheck.push({line:e,mnemonic:u,lineNumber:t+1}),Ie().s[52]++,n}),{linesToCheck:[],linesToSkip:[]}),l=t.linesToCheck,i=t.linesToSkip,Ie().s[53]++,n.next=5,this._checkLines(l);case 5:return o=n.sent,Ie().s[54]++,n.abrupt("return",{skipped:i.sort(),problems:o.sort((function(n,e){return Ie().f[13]++,Ie().s[55]++,n.lineNumber-e.lineNumber}))});case 8:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}())),(0,_n.Z)(this,"_checkLines",(Ie().s[56]++,function(){var n=(0,c.Z)((0,a.Z)().mark((function n(t){var l,i,c,r,u,m,A,d,p,h,f,v;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:Ie().f[14]++,Ie().s[57]++,l=[],Ie().s[58]++,i=ke(t,(function(n){return Ie().f[15]++,Ie().s[59]++,n.mnemonic.target})),Ie().s[60]++,n.t0=(0,a.Z)().keys(i);case 5:if((n.t1=n.t0()).done){n.next=47;break}if(c=n.t1.value,Ie().s[61]++,e.targets[c]){n.next=17;break}Ie().b[12][0]++,Ie().s[62]++,r=(0,s.Z)(i[c]);try{for(r.s();!(u=r.n()).done;)m=u.value,Ie().s[63]++,l.push((0,o.Z)((0,o.Z)({},m),{},{error:'Target "'.concat(c,'" does not exist.')}))}catch(C){r.e(C)}finally{r.f()}return Ie().s[64]++,n.abrupt("continue",5);case 17:Ie().b[12][1]++;case 18:Ie().s[65]++,A=ke(i[c],(function(n){return Ie().f[16]++,Ie().s[66]++,n.mnemonic.packet})),Ie().s[67]++,n.t2=(0,a.Z)().keys(A);case 21:if((n.t3=n.t2()).done){n.next=45;break}d=n.t3.value,Ie().s[68]++,p=(0,s.Z)(A[d]),n.prev=25,f=(0,a.Z)().mark((function n(){var t,i,r,u,m,A,p,f,v;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t=h.value,Ie().s[69]++,i=t.mnemonic.item?(Ie().b[13][0]++,"tlm"):(Ie().b[13][1]++,"cmd"),Ie().s[70]++,e.targets[c][i]){n.next=14;break}return Ie().b[14][0]++,Ie().s[71]++,r=t.mnemonic.item?(Ie().b[15][0]++,"get_all_telemetry"):(Ie().b[15][1]++,"get_all_commands"),Ie().s[72]++,n.next=9,e.api[r](c);case 9:u=n.sent,Ie().s[73]++,e.targets[c][i]=u.reduce((function(n,e){return Ie().f[17]++,Ie().s[74]++,n[e.packet_name]=e.items.map((function(n){return Ie().f[18]++,Ie().s[75]++,n.name})),Ie().s[76]++,n}),{}),n.next=15;break;case 14:Ie().b[14][1]++;case 15:if(Ie().s[77]++,m=e.targets[c][i][d],Ie().s[78]++,m){n.next=25;break}return Ie().b[16][0]++,Ie().s[79]++,l.push((0,o.Z)((0,o.Z)({},t),{},{error:"".concat("tlm"===i?(Ie().b[17][0]++,"Packet"):(Ie().b[17][1]++,"Command"),' "').concat(c," ").concat(d,'" does not exist.')})),Ie().s[80]++,n.abrupt("return","continue");case 25:Ie().b[16][1]++;case 26:if(Ie().s[81]++,!t.mnemonic.item){n.next=41;break}if(Ie().b[18][0]++,Ie().s[82]++,m.some((function(n){return Ie().f[19]++,Ie().s[83]++,n===t.mnemonic.item}))){n.next=38;break}return Ie().b[19][0]++,Ie().s[84]++,l.push((0,o.Z)((0,o.Z)({},t),{},{error:'Item "'.concat(c," ").concat(d," ").concat(t.mnemonic.item,'" does not exist.')})),Ie().s[85]++,n.abrupt("return","continue");case 38:Ie().b[19][1]++;case 39:n.next=61;break;case 41:Ie().b[18][1]++,Ie().s[86]++,A=(0,s.Z)(t.mnemonic.params),n.prev=44,f=function(){var n=p.value;if(Ie().s[87]++,!m.some((function(e){return Ie().f[20]++,Ie().s[88]++,e===n})))return Ie().b[20][0]++,Ie().s[89]++,l.push((0,o.Z)((0,o.Z)({},t),{},{error:'Command "'.concat(c," ").concat(d,'" param "').concat(n,'" does not exist.')})),Ie().s[90]++,"continue";Ie().b[20][1]++},A.s();case 47:if((p=A.n()).done){n.next=53;break}if(v=f(),"continue"!==v){n.next=51;break}return n.abrupt("continue",51);case 51:n.next=47;break;case 53:n.next=58;break;case 55:n.prev=55,n.t0=n["catch"](44),A.e(n.t0);case 58:return n.prev=58,A.f(),n.finish(58);case 61:case"end":return n.stop()}}),n,null,[[44,55,58,61]])})),p.s();case 28:if((h=p.n()).done){n.next=35;break}return n.delegateYield(f(),"t4",30);case 30:if(v=n.t4,"continue"!==v){n.next=33;break}return n.abrupt("continue",33);case 33:n.next=28;break;case 35:n.next=40;break;case 37:n.prev=37,n.t5=n["catch"](25),p.e(n.t5);case 40:return n.prev=40,p.f(),n.finish(40);case 43:n.next=21;break;case 45:n.next=5;break;case 47:return Ie().s[91]++,n.abrupt("return",l);case 49:case"end":return n.stop()}}),n,null,[[25,37,40,43]])})));return function(e){return n.apply(this,arguments)}}())),Ie().f[1]++,Ie().s[6]++,this.api=new xn,Ie().s[7]++,this.targets={},Ie().s[8]++,this.api.get_target_list().then((function(n){Ie().f[2]++,Ie().s[9]++,n.forEach((function(n){Ie().f[3]++,Ie().s[10]++,e.targets[n]={cmd:null,tlm:null}}))})),Ie().s[11]++,this.cmdKeywordExpressions=[],Ie().s[12]++,ye("cmd").then((function(n){Ie().f[4]++,Ie().s[13]++,e.cmdKeywordExpressions=n.data.map(Oe)})),Ie().s[14]++,this.tlmKeywordExpressions=[],Ie().s[15]++,ye("tlm").then((function(n){Ie().f[5]++,Ie().s[16]++,e.tlmKeywordExpressions=n.data.map(Oe)}))}));function Ne(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",e="fd94693c255479a235de640b3b8e491b7638c7c7",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fd94693c255479a235de640b3b8e491b7638c7c7"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ne=function(){return s},s}Ne();var Le=t(7583),Ze=t(5293),Ue=t(3418);t(2356);function He(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",e="8ecd4081a963e7bd3a3a9212bd7919d3c9380ebd",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",statementMap:{0:{start:{line:28,column:4},end:{line:28,column:71}},1:{start:{line:29,column:4},end:{line:29,column:25}},2:{start:{line:30,column:4},end:{line:30,column:27}},3:{start:{line:31,column:4},end:{line:31,column:21}},4:{start:{line:32,column:4},end:{line:32,column:21}},5:{start:{line:36,column:12},end:{line:46,column:3}},6:{start:{line:37,column:20},end:{line:37,column:40}},7:{start:{line:38,column:4},end:{line:38,column:39}},8:{start:{line:39,column:18},end:{line:44,column:5}},9:{start:{line:45,column:4},end:{line:45,column:33}},10:{start:{line:49,column:13},end:{line:84,column:3}},11:{start:{line:50,column:4},end:{line:68,column:5}},12:{start:{line:52,column:6},end:{line:67,column:7}},13:{start:{line:54,column:10},end:{line:58,column:11}},14:{start:{line:59,column:10},end:{line:59,column:15}},15:{start:{line:61,column:10},end:{line:65,column:11}},16:{start:{line:66,column:10},end:{line:66,column:15}},17:{start:{line:69,column:4},end:{line:83,column:5}},18:{start:{line:69,column:19},end:{line:69,column:35}},19:{start:{line:70,column:19},end:{line:70,column:71}},20:{start:{line:71,column:6},end:{line:82,column:7}},21:{start:{line:72,column:8},end:{line:72,column:37}},22:{start:{line:73,column:8},end:{line:79,column:10}},23:{start:{line:80,column:13},end:{line:82,column:7}},24:{start:{line:81,column:8},end:{line:81,column:51}},25:{start:{line:86,column:19},end:{line:89,column:3}},26:{start:{line:87,column:4},end:{line:87,column:61}},27:{start:{line:88,column:4},end:{line:88,column:72}},28:{start:{line:91,column:29},end:{line:100,column:3}},29:{start:{line:92,column:4},end:{line:99,column:5}},30:{start:{line:97,column:12},end:{line:97,column:70}},31:{start:{line:102,column:22},end:{line:111,column:3}},32:{start:{line:103,column:4},end:{line:110,column:5}},33:{start:{line:105,column:8},end:{line:107,column:9}},34:{start:{line:106,column:10},end:{line:106,column:33}},35:{start:{line:108,column:8},end:{line:108,column:25}},36:{start:{line:113,column:26},end:{line:119,column:3}},37:{start:{line:114,column:4},end:{line:118,column:5}},38:{start:{line:117,column:32},end:{line:117,column:64}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:47},end:{line:33,column:3}},line:27},1:{name:"(anonymous_1)",decl:{start:{line:36,column:12},end:{line:36,column:13}},loc:{start:{line:36,column:18},end:{line:46,column:3}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:49,column:13},end:{line:49,column:14}},loc:{start:{line:49,column:34},end:{line:84,column:3}},line:49},3:{name:"(anonymous_3)",decl:{start:{line:86,column:19},end:{line:86,column:20}},loc:{start:{line:86,column:47},end:{line:89,column:3}},line:86},4:{name:"(anonymous_4)",decl:{start:{line:91,column:29},end:{line:91,column:30}},loc:{start:{line:91,column:47},end:{line:100,column:3}},line:91},5:{name:"(anonymous_5)",decl:{start:{line:96,column:10},end:{line:96,column:11}},loc:{start:{line:97,column:12},end:{line:97,column:70}},line:97},6:{name:"(anonymous_6)",decl:{start:{line:102,column:22},end:{line:102,column:23}},loc:{start:{line:102,column:47},end:{line:111,column:3}},line:102},7:{name:"(anonymous_7)",decl:{start:{line:104,column:35},end:{line:104,column:36}},loc:{start:{line:104,column:51},end:{line:109,column:7}},line:104},8:{name:"(anonymous_8)",decl:{start:{line:113,column:26},end:{line:113,column:27}},loc:{start:{line:113,column:39},end:{line:119,column:3}},line:113},9:{name:"(anonymous_9)",decl:{start:{line:117,column:16},end:{line:117,column:17}},loc:{start:{line:117,column:32},end:{line:117,column:64}},line:117}},branchMap:{0:{loc:{start:{line:50,column:4},end:{line:68,column:5}},type:"if",locations:[{start:{line:50,column:4},end:{line:68,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:50},1:{loc:{start:{line:52,column:6},end:{line:67,column:7}},type:"switch",locations:[{start:{line:53,column:8},end:{line:59,column:15}},{start:{line:60,column:8},end:{line:66,column:15}}],line:52},2:{loc:{start:{line:71,column:6},end:{line:82,column:7}},type:"if",locations:[{start:{line:71,column:6},end:{line:82,column:7}},{start:{line:80,column:13},end:{line:82,column:7}}],line:71},3:{loc:{start:{line:72,column:8},end:{line:72,column:37}},type:"binary-expr",locations:[{start:{line:72,column:8},end:{line:72,column:20}},{start:{line:72,column:25},end:{line:72,column:36}}],line:72},4:{loc:{start:{line:80,column:13},end:{line:82,column:7}},type:"if",locations:[{start:{line:80,column:13},end:{line:82,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:80},5:{loc:{start:{line:97,column:12},end:{line:97,column:70}},type:"binary-expr",locations:[{start:{line:97,column:12},end:{line:97,column:44}},{start:{line:97,column:48},end:{line:97,column:70}}],line:97},6:{loc:{start:{line:105,column:8},end:{line:107,column:9}},type:"if",locations:[{start:{line:105,column:8},end:{line:107,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:105}},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:"8ecd4081a963e7bd3a3a9212bd7919d3c9380ebd"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return He=function(){return s},s}He();var Pe=new WeakMap,Ge=new WeakMap,je=new WeakMap,qe=new WeakMap,Ve=new WeakMap,ze=new WeakMap,We=new WeakMap,Ye=new WeakMap,Ke=new WeakMap,Je=(0,d.Z)((function n(e,t){var l=this,i=t.pattern,o=t.text,s=t.type;(0,A.Z)(this,n),(0,Le.Z)(this,Pe,{writable:!0,value:void 0}),(0,Le.Z)(this,Ge,{writable:!0,value:void 0}),(0,Le.Z)(this,je,{writable:!0,value:void 0}),(0,Le.Z)(this,qe,{writable:!0,value:void 0}),(0,Le.Z)(this,Ve,{writable:!0,value:void 0}),(0,_n.Z)(this,"refresh",(He().s[5]++,function(){He().f[1]++;var n=(He().s[6]++,(0,Ze.Z)(l,Ge).session);He().s[7]++,(0,Ze.Z)(l,Ke).call(l,n);var e=(He().s[8]++,{lines:n.doc.$lines,action:"insert",start:{row:0},end:{row:n.doc.$lines.length}});He().s[9]++,l.annotate(e,n)})),(0,_n.Z)(this,"annotate",(He().s[10]++,function(n,e){if(He().f[2]++,He().s[11]++,n.lines.length>1)switch(He().b[0][0]++,He().s[12]++,n.action){case"insert":He().b[1][0]++,He().s[13]++,(0,Ze.Z)(l,Ye).call(l,e,n.start.row,n.lines.length-1),He().s[14]++;break;case"remove":He().b[1][1]++,He().s[15]++,(0,Ze.Z)(l,Ye).call(l,e,n.start.row+1,1-n.lines.length),He().s[16]++;break}else He().b[0][1]++;He().s[17]++;for(var t=(He().s[18]++,n.start.row);t<=n.end.row;t++){var i,o,s=(He().s[19]++,null===(i=e.doc.$lines[t])||void 0===i||null===(o=i.match((0,Ze.Z)(l,je)))||void 0===o?void 0:o.index);He().s[20]++,void 0!==s?(He().b[2][0]++,He().s[21]++,He().b[3][0]++,0!==s&&(He().b[3][1]++,s+=1),He().s[22]++,(0,Ze.Z)(l,ze).call(l,e,{row:t,column:s,text:(0,Ze.Z)(l,qe),type:(0,Ze.Z)(l,Ve),openc3Id:(0,Ze.Z)(l,Pe)})):(He().b[2][1]++,He().s[23]++,"remove"===n.action?(He().b[4][0]++,He().s[24]++,(0,Ze.Z)(l,We).call(l,e,t)):He().b[4][1]++)}})),(0,Le.Z)(this,ze,{writable:!0,value:(He().s[25]++,function(n,e){He().f[3]++,He().s[26]++,(0,Ze.Z)(l,We).call(l,n,e.row),He().s[27]++,n.setAnnotations([].concat((0,r.Z)(n.getAnnotations()),[e]))})}),(0,Le.Z)(this,We,{writable:!0,value:(He().s[28]++,function(n,e){He().f[4]++,He().s[29]++,n.setAnnotations(n.getAnnotations().filter((function(n){return He().f[5]++,He().s[30]++,He().b[5][0]++,n.openc3Id!==(0,Ze.Z)(l,Pe)||(He().b[5][1]++,n.row!==e)})))})}),(0,Le.Z)(this,Ye,{writable:!0,value:(He().s[31]++,function(n,e,t){He().f[6]++,He().s[32]++,n.setAnnotations(n.getAnnotations().map((function(n){return He().f[7]++,He().s[33]++,n.row>e?(He().b[6][0]++,He().s[34]++,n.row+=t):He().b[6][1]++,He().s[35]++,n})))})}),(0,Le.Z)(this,Ke,{writable:!0,value:(He().s[36]++,function(n){He().f[8]++,He().s[37]++,n.setAnnotations(n.getAnnotations().filter((function(n){return He().f[9]++,He().s[38]++,n.openc3Id!==(0,Ze.Z)(l,Pe)})))})}),He().f[0]++,He().s[0]++,(0,Ue.Z)(this,Pe,"regexAnnotator-".concat(Math.floor(1e7*Math.random()))),He().s[1]++,(0,Ue.Z)(this,Ge,e),He().s[2]++,(0,Ue.Z)(this,je,i),He().s[3]++,(0,Ue.Z)(this,qe,o),He().s[4]++,(0,Ue.Z)(this,Ve,s)}));function Xe(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",e="cc32d28b60175ea9b5230399dcae57135b764eff",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",statementMap:{0:{start:{line:24,column:19},end:{line:24,column:31}},1:{start:{line:25,column:20},end:{line:25,column:27}},2:{start:{line:26,column:19},end:{line:26,column:29}},3:{start:{line:27,column:4},end:{line:31,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:22},end:{line:32,column:3}},line:23}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cc32d28b60175ea9b5230399dcae57135b764eff"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Xe=function(){return s},s}Xe();var Qe=function(n){(0,Ce.Z)(t,n);var e=(0,be.Z)(t);function t(n){(0,A.Z)(this,t),Xe().f[0]++;var l=(Xe().s[0]++,"(^|[{\\s])"),i=(Xe().s[1]++,"sleep"),o=(Xe().s[2]++,"[\\(\\s]");return Xe().s[3]++,e.call(this,n,{pattern:new RegExp("".concat(l).concat(i).concat(o)),text:"Use `wait` instead of `sleep` in OpenC3 scripts",type:"warning"})}return(0,d.Z)(t)}(Je);function nt(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",e="817ff7e0f9295814dffc4684e6764474b53b153e",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"817ff7e0f9295814dffc4684e6764474b53b153e"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return nt=function(){return s},s}nt();var et=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("v-card",{attrs:{flat:""}},[t("v-card-title",[n._v(" Running Scripts ")]),t("v-card-text",[t("div",{staticClass:"row"},[t("div",{staticClass:"col-2"},[t("v-btn",{attrs:{color:"primary"},on:{click:n.getRunningScripts}},[n._v("Refresh")])],1),t("div",{staticClass:"col-10"},[t("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":"","data-test":"running-search"},model:{value:n.runningSearch,callback:function(e){n.runningSearch=e},expression:"runningSearch"}})],1)])]),t("v-data-table",{attrs:{headers:n.runningHeaders,items:n.runningScripts,search:n.runningSearch,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"","data-test":"running-scripts"},scopedSlots:n._u([{key:"item.connect",fn:function(e){var l=e.item;return[t("v-btn",{attrs:{color:"primary"},on:{click:function(e){return n.connectScript(l)}}},[t("span",[n._v("Connect")]),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:n.connectInNewTab,expression:"connectInNewTab"}],attrs:{right:""}},[n._v(" mdi-open-in-new ")])],1)]}},{key:"item.stop",fn:function(e){var l=e.item;return[t("v-btn",{attrs:{color:"primary"},on:{click:function(e){return n.stopScript(l)}}},[t("span",[n._v("Stop")]),t("v-icon",{attrs:{right:""}},[n._v(" mdi-close-circle-outline ")])],1)]}},{key:"item.delete",fn:function(e){var l=e.item;return[t("v-btn",{attrs:{color:"primary"},on:{click:function(e){return n.deleteScript(l)}}},[t("span",[n._v("Delete")]),t("v-icon",{attrs:{right:""}},[n._v(" mdi-alert-octagon-outline ")])],1)]}}])})],1),t("v-card",{staticClass:"mt-3",attrs:{flat:""}},[t("v-card-title",[n._v(" Completed Scripts ")]),t("v-card-text",[t("div",{staticClass:"row"},[t("div",{staticClass:"col-2"},[t("v-btn",{attrs:{color:"primary"},on:{click:n.getCompletedScripts}},[n._v("Refresh")])],1),t("div",{staticClass:"col-10"},[t("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:n.completedSearch,callback:function(e){n.completedSearch=e},expression:"completedSearch"}})],1)])]),t("v-data-table",{attrs:{headers:n.completedHeaders,items:n.completedScripts,search:n.completedSearch,"calculate-widths":"","hide-default-footer":"","multi-sort":"","data-test":"completed-scripts"},scopedSlots:n._u([{key:"item.download",fn:function(e){var l=e.item;return[t("v-btn",{attrs:{color:"primary",disabled:n.downloadScript,loading:n.downloadScript&&n.downloadScript.name===l.name},on:{click:function(e){return n.downloadScriptLog(l)}},scopedSlots:n._u([{key:"loader",fn:function(){return[t("span",[n._v("Loading...")])]},proxy:!0}],null,!0)},[l.name.includes("Test Report")?t("span",[n._v("Test Report")]):t("span",[n._v("Script Log")]),t("v-icon",{attrs:{right:""}},[n._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)},tt=[];function lt(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",e="24a217e6a6661287b933d3b62e1389ec256ccbaa",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:130,column:4},end:{line:169,column:5}},1:{start:{line:172,column:4},end:{line:172,column:28}},2:{start:{line:173,column:4},end:{line:173,column:30}},3:{start:{line:177,column:6},end:{line:179,column:8}},4:{start:{line:178,column:8},end:{line:178,column:43}},5:{start:{line:182,column:6},end:{line:184,column:8}},6:{start:{line:183,column:8},end:{line:183,column:45}},7:{start:{line:187,column:26},end:{line:190,column:7}},8:{start:{line:191,column:6},end:{line:197,column:7}},9:{start:{line:192,column:23},end:{line:192,column:56}},10:{start:{line:193,column:8},end:{line:193,column:35}},11:{start:{line:195,column:8},end:{line:195,column:38}},12:{start:{line:196,column:8},end:{line:196,column:27}},13:{start:{line:200,column:6},end:{line:223,column:10}},14:{start:{line:209,column:10},end:{line:209,column:73}},15:{start:{line:212,column:10},end:{line:214,column:12}},16:{start:{line:215,column:10},end:{line:215,column:34}},17:{start:{line:218,column:10},end:{line:222,column:11}},18:{start:{line:219,column:12},end:{line:221,column:14}},19:{start:{line:226,column:6},end:{line:250,column:10}},20:{start:{line:236,column:10},end:{line:236,column:75}},21:{start:{line:239,column:10},end:{line:241,column:12}},22:{start:{line:242,column:10},end:{line:242,column:34}},23:{start:{line:245,column:10},end:{line:249,column:11}},24:{start:{line:246,column:12},end:{line:248,column:14}},25:{start:{line:253,column:6},end:{line:253,column:34}},26:{start:{line:254,column:6},end:{line:274,column:10}},27:{start:{line:260,column:32},end:{line:260,column:53}},28:{start:{line:261,column:27},end:{line:261,column:66}},29:{start:{line:263,column:23},end:{line:263,column:50}},30:{start:{line:264,column:10},end:{line:264,column:39}},31:{start:{line:265,column:10},end:{line:265,column:49}},32:{start:{line:266,column:10},end:{line:266,column:22}},33:{start:{line:267,column:10},end:{line:267,column:36}},34:{start:{line:270,column:10},end:{line:273,column:12}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:129,column:2},end:{line:129,column:3}},loc:{start:{line:129,column:9},end:{line:170,column:3}},line:129},1:{name:"(anonymous_1)",decl:{start:{line:171,column:2},end:{line:171,column:3}},loc:{start:{line:171,column:12},end:{line:174,column:3}},line:171},2:{name:"(anonymous_2)",decl:{start:{line:176,column:23},end:{line:176,column:24}},loc:{start:{line:176,column:35},end:{line:180,column:5}},line:176},3:{name:"(anonymous_3)",decl:{start:{line:177,column:49},end:{line:177,column:50}},loc:{start:{line:177,column:63},end:{line:179,column:7}},line:177},4:{name:"(anonymous_4)",decl:{start:{line:181,column:25},end:{line:181,column:26}},loc:{start:{line:181,column:37},end:{line:185,column:5}},line:181},5:{name:"(anonymous_5)",decl:{start:{line:182,column:52},end:{line:182,column:53}},loc:{start:{line:182,column:66},end:{line:184,column:7}},line:182},6:{name:"(anonymous_6)",decl:{start:{line:186,column:19},end:{line:186,column:20}},loc:{start:{line:186,column:37},end:{line:198,column:5}},line:186},7:{name:"(anonymous_7)",decl:{start:{line:199,column:16},end:{line:199,column:17}},loc:{start:{line:199,column:34},end:{line:224,column:5}},line:199},8:{name:"(anonymous_8)",decl:{start:{line:208,column:14},end:{line:208,column:15}},loc:{start:{line:208,column:26},end:{line:210,column:9}},line:208},9:{name:"(anonymous_9)",decl:{start:{line:211,column:14},end:{line:211,column:15}},loc:{start:{line:211,column:28},end:{line:216,column:9}},line:211},10:{name:"(anonymous_10)",decl:{start:{line:217,column:15},end:{line:217,column:16}},loc:{start:{line:217,column:26},end:{line:223,column:9}},line:217},11:{name:"(anonymous_11)",decl:{start:{line:225,column:18},end:{line:225,column:19}},loc:{start:{line:225,column:36},end:{line:251,column:5}},line:225},12:{name:"(anonymous_12)",decl:{start:{line:235,column:14},end:{line:235,column:15}},loc:{start:{line:235,column:26},end:{line:237,column:9}},line:235},13:{name:"(anonymous_13)",decl:{start:{line:238,column:14},end:{line:238,column:15}},loc:{start:{line:238,column:28},end:{line:243,column:9}},line:238},14:{name:"(anonymous_14)",decl:{start:{line:244,column:15},end:{line:244,column:16}},loc:{start:{line:244,column:26},end:{line:250,column:9}},line:244},15:{name:"(anonymous_15)",decl:{start:{line:252,column:23},end:{line:252,column:24}},loc:{start:{line:252,column:41},end:{line:275,column:5}},line:252},16:{name:"(anonymous_16)",decl:{start:{line:259,column:14},end:{line:259,column:15}},loc:{start:{line:259,column:28},end:{line:268,column:9}},line:259},17:{name:"(anonymous_17)",decl:{start:{line:269,column:15},end:{line:269,column:16}},loc:{start:{line:269,column:21},end:{line:274,column:9}},line:269}},branchMap:{0:{loc:{start:{line:191,column:6},end:{line:197,column:7}},type:"if",locations:[{start:{line:191,column:6},end:{line:197,column:7}},{start:{line:194,column:13},end:{line:197,column:7}}],line:191},1:{loc:{start:{line:218,column:10},end:{line:222,column:11}},type:"if",locations:[{start:{line:218,column:10},end:{line:222,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:218},2:{loc:{start:{line:245,column:10},end:{line:249,column:11}},type:"if",locations:[{start:{line:245,column:10},end:{line:249,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:245}},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:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHA;;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",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--\x3e\n\n<template>\n <div>\n <v-card flat>\n <v-card-title> Running Scripts </v-card-title>\n <v-card-text>\n <div class="row">\n <div class="col-2">\n <v-btn color="primary" @click="getRunningScripts">Refresh</v-btn>\n </div>\n <div class="col-10">\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 calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n data-test="running-scripts"\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-title> Completed Scripts </v-card-title>\n <v-card-text>\n <div class="row">\n <div class="col-2">\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n </div>\n <div class="col-10">\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-data-table\n :headers="completedHeaders"\n :items="completedScripts"\n :search="completedSearch"\n calculate-widths\n hide-default-footer\n multi-sort\n data-test="completed-scripts"\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(\'Test Report\')">Test Report</span>\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-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 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=logs`\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 Minio \'logs\' bucket at ${script.log}`,\n })\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"24a217e6a6661287b933d3b62e1389ec256ccbaa"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return lt=function(){return s},s}lt();var it={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data:function(){return lt().f[0]++,lt().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(){lt().f[1]++,lt().s[1]++,this.getRunningScripts(),lt().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){var n=this;lt().f[2]++,lt().s[3]++,k.get("/script-api/running-script").then((function(e){lt().f[3]++,lt().s[4]++,n.runningScripts=e.data}))},getCompletedScripts:function(){var n=this;lt().f[4]++,lt().s[5]++,k.get("/script-api/completed-scripts").then((function(e){lt().f[5]++,lt().s[6]++,n.completedScripts=e.data}))},connectScript:function(n){lt().f[6]++;var e=(lt().s[7]++,{name:"ScriptRunner",params:{id:n.id}});if(lt().s[8]++,this.connectInNewTab){lt().b[0][0]++;var t=(lt().s[9]++,this.$router.resolve(e)),l=t.href;lt().s[10]++,window.open(l,"_blank")}else lt().b[0][1]++,lt().s[11]++,this.$router.push(e),lt().s[12]++,this.$emit("close")},stopScript:function(n){var e=this;lt().f[7]++,lt().s[13]++,this.$dialog.confirm("Are you sure you want to stop script: ".concat(n.id," ").concat(n.name,"?"),{okText:"Stop",cancelText:"Cancel"}).then((function(e){return lt().f[8]++,lt().s[14]++,k.post("/script-api/running-script/".concat(n.id,"/stop"))})).then((function(t){lt().f[9]++,lt().s[15]++,e.$notify.normal({body:"Stopped script: ".concat(n.id," ").concat(n.name)}),lt().s[16]++,e.getRunningScripts()})).catch((function(t){lt().f[10]++,lt().s[17]++,t?(lt().b[1][0]++,lt().s[18]++,e.$notify.caution({body:"Failed to stop script: ".concat(n.id," ").concat(n.name)})):lt().b[1][1]++}))},deleteScript:function(n){var e=this;lt().f[11]++,lt().s[19]++,this.$dialog.confirm("Are you sure you want to force quit script: ".concat(n.id," ").concat(n.name,"?\n")+"Did you try to stop the script first to allow the script to stop gracefully?",{okText:"Force Quit",cancelText:"Cancel"}).then((function(e){return lt().f[12]++,lt().s[20]++,k.post("/script-api/running-script/".concat(n.id,"/delete"))})).then((function(t){lt().f[13]++,lt().s[21]++,e.$notify.normal({body:"Stopped script: ".concat(n.id," ").concat(n.name)}),lt().s[22]++,e.getRunningScripts()})).catch((function(t){lt().f[14]++,lt().s[23]++,t?(lt().b[2][0]++,lt().s[24]++,e.$notify.caution({body:"Failed to stop script: ".concat(n.id," ").concat(n.name)})):lt().b[2][1]++}))},downloadScriptLog:function(n){var e=this;lt().f[15]++,lt().s[25]++,this.downloadScript=n,lt().s[26]++,k.get("/openc3-api/storage/download/".concat(encodeURIComponent(n.log),"?bucket=logs")).then((function(t){lt().f[16]++;var l=(lt().s[27]++,n.log.split("/")),i=(lt().s[28]++,l[l.length-1]),o=(lt().s[29]++,document.createElement("a"));lt().s[30]++,o.href=t.data.url,lt().s[31]++,o.setAttribute("download",i),lt().s[32]++,o.click(),lt().s[33]++,e.downloadScript=null})).catch((function(){lt().f[17]++,lt().s[34]++,e.$notify.caution({title:"Unable to download log for ".concat(n.name),body:"You may be able to download this log manually from the Minio 'logs' bucket at ".concat(n.log)})}))}}},ot=it,st=(0,T.Z)(ot,et,tt,!1,null,null,null),at=st.exports;function ct(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",e="21af326ff7a6fa7099c14d5a50d50b555bbfc877",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:365,column:21},end:{line:365,column:33}},1:{start:{line:366,column:14},end:{line:366,column:21}},2:{start:{line:367,column:11},end:{line:367,column:15}},3:{start:{line:368,column:14},end:{line:368,column:21}},4:{start:{line:369,column:14},end:{line:369,column:21}},5:{start:{line:391,column:4},end:{line:497,column:5}},6:{start:{line:501,column:24},end:{line:501,column:47}},7:{start:{line:502,column:6},end:{line:502,column:39}},8:{start:{line:503,column:6},end:{line:503,column:36}},9:{start:{line:506,column:6},end:{line:508,column:32}},10:{start:{line:511,column:6},end:{line:511,column:67}},11:{start:{line:514,column:6},end:{line:514,column:28}},12:{start:{line:517,column:6},end:{line:517,column:59}},13:{start:{line:517,column:32},end:{line:517,column:59}},14:{start:{line:518,column:6},end:{line:518,column:26}},15:{start:{line:523,column:6},end:{line:523,column:64}},16:{start:{line:526,column:6},end:{line:691,column:7}},17:{start:{line:534,column:16},end:{line:534,column:30}},18:{start:{line:541,column:16},end:{line:541,column:31}},19:{start:{line:551,column:16},end:{line:551,column:31}},20:{start:{line:558,column:16},end:{line:558,column:29}},21:{start:{line:568,column:16},end:{line:568,column:31}},22:{start:{line:578,column:16},end:{line:578,column:29}},23:{start:{line:590,column:16},end:{line:590,column:47}},24:{start:{line:597,column:16},end:{line:597,column:50}},25:{start:{line:609,column:16},end:{line:609,column:46}},26:{start:{line:619,column:16},end:{line:619,column:60}},27:{start:{line:626,column:17},end:{line:627,column:70}},28:{start:{line:637,column:16},end:{line:637,column:38}},29:{start:{line:644,column:16},end:{line:644,column:37}},30:{start:{line:651,column:16},end:{line:651,column:39}},31:{start:{line:659,column:16},end:{line:659,column:36}},32:{start:{line:669,column:16},end:{line:669,column:34}},33:{start:{line:676,column:16},end:{line:676,column:39}},34:{start:{line:686,column:16},end:{line:686,column:43}},35:{start:{line:694,column:6},end:{line:707,column:7}},36:{start:{line:712,column:6},end:{line:712,column:34}},37:{start:{line:713,column:6},end:{line:715,column:7}},38:{start:{line:714,column:8},end:{line:714,column:36}},39:{start:{line:716,column:6},end:{line:716,column:34}},40:{start:{line:720,column:4},end:{line:720,column:43}},41:{start:{line:723,column:4},end:{line:723,column:36}},42:{start:{line:724,column:4},end:{line:724,column:46}},43:{start:{line:725,column:4},end:{line:725,column:48}},44:{start:{line:726,column:4},end:{line:726,column:37}},45:{start:{line:727,column:4},end:{line:727,column:44}},46:{start:{line:728,column:4},end:{line:728,column:42}},47:{start:{line:729,column:4},end:{line:729,column:60}},48:{start:{line:730,column:4},end:{line:730,column:59}},49:{start:{line:731,column:4},end:{line:731,column:69}},50:{start:{line:732,column:4},end:{line:732,column:45}},51:{start:{line:733,column:4},end:{line:733,column:23}},52:{start:{line:734,column:4},end:{line:734,column:60}},53:{start:{line:738,column:4},end:{line:738,column:60}},54:{start:{line:740,column:27},end:{line:740,column:58}},55:{start:{line:741,column:4},end:{line:744,column:6}},56:{start:{line:742,column:6},end:{line:742,column:46}},57:{start:{line:743,column:6},end:{line:743,column:45}},58:{start:{line:746,column:4},end:{line:746,column:52}},59:{start:{line:747,column:4},end:{line:747,column:47}},60:{start:{line:748,column:4},end:{line:748,column:58}},61:{start:{line:749,column:4},end:{line:757,column:13}},62:{start:{line:751,column:6},end:{line:756,column:7}},63:{start:{line:755,column:8},end:{line:755,column:29}},64:{start:{line:760,column:4},end:{line:760,column:25}},65:{start:{line:761,column:4},end:{line:761,column:34}},66:{start:{line:764,column:4},end:{line:764,column:21}},67:{start:{line:765,column:4},end:{line:767,column:5}},68:{start:{line:766,column:6},end:{line:766,column:42}},69:{start:{line:768,column:4},end:{line:770,column:5}},70:{start:{line:769,column:6},end:{line:769,column:65}},71:{start:{line:771,column:4},end:{line:773,column:5}},72:{start:{line:772,column:6},end:{line:772,column:37}},73:{start:{line:774,column:4},end:{line:774,column:27}},74:{start:{line:777,column:4},end:{line:781,column:5}},75:{start:{line:778,column:6},end:{line:778,column:56}},76:{start:{line:780,column:6},end:{line:780,column:12}},77:{start:{line:785,column:6},end:{line:785,column:56}},78:{start:{line:786,column:6},end:{line:786,column:39}},79:{start:{line:787,column:6},end:{line:787,column:34}},80:{start:{line:788,column:6},end:{line:788,column:29}},81:{start:{line:789,column:6},end:{line:798,column:7}},82:{start:{line:799,column:6},end:{line:799,column:55}},83:{start:{line:800,column:6},end:{line:800,column:30}},84:{start:{line:803,column:6},end:{line:821,column:8}},85:{start:{line:804,column:34},end:{line:806,column:9}},86:{start:{line:805,column:17},end:{line:805,column:38}},87:{start:{line:807,column:8},end:{line:820,column:9}},88:{start:{line:808,column:10},end:{line:808,column:48}},89:{start:{line:809,column:10},end:{line:809,column:30}},90:{start:{line:810,column:10},end:{line:810,column:48}},91:{start:{line:811,column:15},end:{line:820,column:9}},92:{start:{line:812,column:10},end:{line:815,column:12}},93:{start:{line:817,column:10},end:{line:817,column:36}},94:{start:{line:818,column:10},end:{line:818,column:79}},95:{start:{line:819,column:10},end:{line:819,column:31}},96:{start:{line:824,column:6},end:{line:836,column:8}},97:{start:{line:825,column:8},end:{line:829,column:9}},98:{start:{line:826,column:10},end:{line:826,column:39}},99:{start:{line:827,column:10},end:{line:827,column:33}},100:{start:{line:828,column:10},end:{line:828,column:58}},101:{start:{line:830,column:8},end:{line:833,column:9}},102:{start:{line:831,column:10},end:{line:831,column:47}},103:{start:{line:832,column:10},end:{line:832,column:36}},104:{start:{line:835,column:8},end:{line:835,column:65}},105:{start:{line:839,column:6},end:{line:839,column:31}},106:{start:{line:840,column:6},end:{line:840,column:31}},107:{start:{line:841,column:6},end:{line:841,column:38}},108:{start:{line:844,column:20},end:{line:844,column:55}},109:{start:{line:845,column:19},end:{line:847,column:19}},110:{start:{line:848,column:26},end:{line:850,column:34}},111:{start:{line:849,column:25},end:{line:849,column:37}},112:{start:{line:850,column:22},end:{line:850,column:33}},113:{start:{line:851,column:6},end:{line:851,column:41}},114:{start:{line:854,column:19},end:{line:854,column:48}},115:{start:{line:855,column:20},end:{line:855,column:51}},116:{start:{line:856,column:26},end:{line:858,column:44}},117:{start:{line:857,column:25},end:{line:857,column:71}},118:{start:{line:858,column:22},end:{line:858,column:43}},119:{start:{line:859,column:6},end:{line:859,column:41}},120:{start:{line:862,column:6},end:{line:892,column:7}},121:{start:{line:864,column:22},end:{line:864,column:38}},122:{start:{line:865,column:8},end:{line:868,column:9}},123:{start:{line:866,column:10},end:{line:866,column:34}},124:{start:{line:867,column:10},end:{line:867,column:45}},125:{start:{line:872,column:10},end:{line:872,column:68}},126:{start:{line:873,column:8},end:{line:891,column:12}},127:{start:{line:880,column:12},end:{line:887,column:13}},128:{start:{line:890,column:12},end:{line:890,column:63}},129:{start:{line:895,column:6},end:{line:895,column:44}},130:{start:{line:898,column:6},end:{line:908,column:7}},131:{start:{line:902,column:20},end:{line:902,column:52}},132:{start:{line:903,column:8},end:{line:907,column:9}},133:{start:{line:904,column:10},end:{line:904,column:52}},134:{start:{line:906,column:10},end:{line:906,column:50}},135:{start:{line:911,column:6},end:{line:913,column:7}},136:{start:{line:912,column:8},end:{line:912,column:14}},137:{start:{line:914,column:27},end:{line:918,column:7}},138:{start:{line:916,column:10},end:{line:917,column:32}},139:{start:{line:919,column:25},end:{line:919,column:27}},140:{start:{line:920,column:19},end:{line:920,column:20}},141:{start:{line:921,column:6},end:{line:932,column:7}},142:{start:{line:923,column:10},end:{line:923,column:42}},143:{start:{line:924,column:10},end:{line:924,column:32}},144:{start:{line:925,column:10},end:{line:925,column:15}},145:{start:{line:927,column:10},end:{line:927,column:43}},146:{start:{line:928,column:10},end:{line:930,column:11}},147:{start:{line:929,column:21},end:{line:929,column:43}},148:{start:{line:931,column:10},end:{line:931,column:15}},149:{start:{line:933,column:6},end:{line:938,column:8}},150:{start:{line:934,column:8},end:{line:934,column:36}},151:{start:{line:935,column:8},end:{line:937,column:9}},152:{start:{line:936,column:10},end:{line:936,column:45}},153:{start:{line:941,column:6},end:{line:944,column:33}},154:{start:{line:943,column:34},end:{line:943,column:51}},155:{start:{line:947,column:6},end:{line:947,column:29}},156:{start:{line:948,column:6},end:{line:950,column:8}},157:{start:{line:949,column:8},end:{line:949,column:53}},158:{start:{line:953,column:6},end:{line:963,column:10}},159:{start:{line:959,column:10},end:{line:959,column:65}},160:{start:{line:962,column:10},end:{line:962,column:33}},161:{start:{line:966,column:6},end:{line:970,column:7}},162:{start:{line:967,column:8},end:{line:967,column:40}},163:{start:{line:969,column:8},end:{line:969,column:37}},164:{start:{line:975,column:6},end:{line:988,column:7}},165:{start:{line:979,column:8},end:{line:979,column:30}},166:{start:{line:980,column:8},end:{line:980,column:23}},167:{start:{line:981,column:13},end:{line:988,column:7}},168:{start:{line:986,column:8},end:{line:986,column:30}},169:{start:{line:987,column:8},end:{line:987,column:21}},170:{start:{line:992,column:6},end:{line:994,column:7}},171:{start:{line:993,column:8},end:{line:993,column:14}},172:{start:{line:995,column:6},end:{line:999,column:7}},173:{start:{line:996,column:8},end:{line:996,column:31}},174:{start:{line:998,column:8},end:{line:998,column:30}},175:{start:{line:1002,column:6},end:{line:1020,column:10}},176:{start:{line:1005,column:26},end:{line:1005,column:28}},177:{start:{line:1006,column:10},end:{line:1011,column:11}},178:{start:{line:1007,column:32},end:{line:1009,column:28}},179:{start:{line:1008,column:32},end:{line:1008,column:73}},180:{start:{line:1010,column:12},end:{line:1010,column:107}},181:{start:{line:1012,column:10},end:{line:1015,column:11}},182:{start:{line:1013,column:12},end:{line:1014,column:86}},183:{start:{line:1016,column:10},end:{line:1018,column:11}},184:{start:{line:1017,column:12},end:{line:1017,column:65}},185:{start:{line:1019,column:10},end:{line:1019,column:62}},186:{start:{line:1023,column:6},end:{line:1023,column:37}},187:{start:{line:1024,column:6},end:{line:1024,column:35}},188:{start:{line:1025,column:6},end:{line:1025,column:29}},189:{start:{line:1026,column:6},end:{line:1026,column:38}},190:{start:{line:1027,column:6},end:{line:1027,column:30}},191:{start:{line:1028,column:6},end:{line:1028,column:34}},192:{start:{line:1029,column:6},end:{line:1029,column:31}},193:{start:{line:1030,column:6},end:{line:1030,column:24}},194:{start:{line:1031,column:6},end:{line:1031,column:35}},195:{start:{line:1032,column:6},end:{line:1045,column:10}},196:{start:{line:1037,column:32},end:{line:1037,column:51}},197:{start:{line:1044,column:10},end:{line:1044,column:42}},198:{start:{line:1048,column:6},end:{line:1048,column:38}},199:{start:{line:1049,column:6},end:{line:1049,column:34}},200:{start:{line:1050,column:6},end:{line:1050,column:37}},201:{start:{line:1052,column:6},end:{line:1052,column:47}},202:{start:{line:1053,column:6},end:{line:1053,column:30}},203:{start:{line:1054,column:6},end:{line:1054,column:38}},204:{start:{line:1055,column:6},end:{line:1055,column:30}},205:{start:{line:1057,column:6},end:{line:1057,column:28}},206:{start:{line:1058,column:6},end:{line:1058,column:24}},207:{start:{line:1059,column:6},end:{line:1059,column:26}},208:{start:{line:1060,column:6},end:{line:1060,column:36}},209:{start:{line:1063,column:6},end:{line:1063,column:40}},210:{start:{line:1066,column:6},end:{line:1066,column:18}},211:{start:{line:1069,column:6},end:{line:1069,column:28}},212:{start:{line:1070,column:21},end:{line:1070,column:34}},213:{start:{line:1071,column:6},end:{line:1074,column:7}},214:{start:{line:1073,column:8},end:{line:1073,column:36}},215:{start:{line:1075,column:16},end:{line:1075,column:53}},216:{start:{line:1076,column:6},end:{line:1078,column:7}},217:{start:{line:1077,column:8},end:{line:1077,column:28}},218:{start:{line:1079,column:17},end:{line:1081,column:7}},219:{start:{line:1082,column:6},end:{line:1084,column:7}},220:{start:{line:1083,column:8},end:{line:1083,column:35}},221:{start:{line:1085,column:6},end:{line:1087,column:8}},222:{start:{line:1086,column:8},end:{line:1086,column:39}},223:{start:{line:1090,column:6},end:{line:1090,column:64}},224:{start:{line:1093,column:6},end:{line:1098,column:7}},225:{start:{line:1094,column:8},end:{line:1094,column:69}},226:{start:{line:1096,column:8},end:{line:1096,column:39}},227:{start:{line:1097,column:8},end:{line:1097,column:69}},228:{start:{line:1104,column:6},end:{line:1109,column:7}},229:{start:{line:1105,column:8},end:{line:1105,column:31}},230:{start:{line:1106,column:8},end:{line:1106,column:29}},231:{start:{line:1108,column:8},end:{line:1108,column:68}},232:{start:{line:1112,column:6},end:{line:1112,column:66}},233:{start:{line:1116,column:6},end:{line:1235,column:7}},234:{start:{line:1118,column:10},end:{line:1118,column:71}},235:{start:{line:1119,column:10},end:{line:1119,column:60}},236:{start:{line:1120,column:10},end:{line:1122,column:11}},237:{start:{line:1121,column:12},end:{line:1121,column:50}},238:{start:{line:1123,column:10},end:{line:1123,column:15}},239:{start:{line:1125,column:10},end:{line:1154,column:11}},240:{start:{line:1126,column:12},end:{line:1153,column:13}},241:{start:{line:1129,column:14},end:{line:1129,column:68}},242:{start:{line:1132,column:14},end:{line:1147,column:18}},243:{start:{line:1136,column:18},end:{line:1139,column:19}},244:{start:{line:1140,column:18},end:{line:1140,column:77}},245:{start:{line:1141,column:18},end:{line:1141,column:56}},246:{start:{line:1142,column:18},end:{line:1142,column:45}},247:{start:{line:1146,column:18},end:{line:1146,column:50}},248:{start:{line:1149,column:14},end:{line:1149,column:69}},249:{start:{line:1150,column:14},end:{line:1150,column:52}},250:{start:{line:1151,column:14},end:{line:1151,column:42}},251:{start:{line:1152,column:14},end:{line:1152,column:50}},252:{start:{line:1155,column:10},end:{line:1155,column:33}},253:{start:{line:1156,column:26},end:{line:1156,column:58}},254:{start:{line:1157,column:10},end:{line:1210,column:11}},255:{start:{line:1159,column:14},end:{line:1159,column:44}},256:{start:{line:1160,column:14},end:{line:1160,column:47}},257:{start:{line:1161,column:14},end:{line:1161,column:39}},258:{start:{line:1162,column:14},end:{line:1162,column:45}},259:{start:{line:1164,column:14},end:{line:1164,column:37}},260:{start:{line:1165,column:14},end:{line:1169,column:15}},261:{start:{line:1170,column:14},end:{line:1170,column:48}},262:{start:{line:1171,column:14},end:{line:1171,column:61}},263:{start:{line:1172,column:14},end:{line:1172,column:19}},264:{start:{line:1174,column:14},end:{line:1174,column:31}},265:{start:{line:1177,column:14},end:{line:1177,column:45}},266:{start:{line:1182,column:14},end:{line:1188,column:15}},267:{start:{line:1183,column:16},end:{line:1183,column:45}},268:{start:{line:1184,column:16},end:{line:1184,column:48}},269:{start:{line:1186,column:16},end:{line:1186,column:46}},270:{start:{line:1187,column:16},end:{line:1187,column:49}},271:{start:{line:1189,column:14},end:{line:1189,column:39}},272:{start:{line:1190,column:29},end:{line:1192,column:15}},273:{start:{line:1191,column:25},end:{line:1191,column:69}},274:{start:{line:1193,column:14},end:{line:1206,column:15}},275:{start:{line:1194,column:16},end:{line:1194,column:39}},276:{start:{line:1195,column:27},end:{line:1195,column:62}},277:{start:{line:1196,column:16},end:{line:1200,column:17}},278:{start:{line:1201,column:16},end:{line:1201,column:42}},279:{start:{line:1203,column:16},end:{line:1205,column:17}},280:{start:{line:1204,column:18},end:{line:1204,column:57}},281:{start:{line:1207,column:14},end:{line:1207,column:19}},282:{start:{line:1209,column:14},end:{line:1209,column:19}},283:{start:{line:1211,column:10},end:{line:1211,column:15}},284:{start:{line:1213,column:10},end:{line:1213,column:55}},285:{start:{line:1214,column:10},end:{line:1216,column:11}},286:{start:{line:1215,column:12},end:{line:1215,column:31}},287:{start:{line:1217,column:10},end:{line:1217,column:15}},288:{start:{line:1219,column:10},end:{line:1219,column:33}},289:{start:{line:1220,column:10},end:{line:1220,column:15}},290:{start:{line:1222,column:10},end:{line:1222,column:41}},291:{start:{line:1223,column:10},end:{line:1223,column:34}},292:{start:{line:1224,column:10},end:{line:1224,column:15}},293:{start:{line:1227,column:10},end:{line:1230,column:11}},294:{start:{line:1228,column:12},end:{line:1228,column:35}},295:{start:{line:1229,column:12},end:{line:1229,column:33}},296:{start:{line:1234,column:10},end:{line:1234,column:15}},297:{start:{line:1238,column:6},end:{line:1238,column:30}},298:{start:{line:1239,column:6},end:{line:1245,column:8}},299:{start:{line:1248,column:6},end:{line:1253,column:7}},300:{start:{line:1249,column:8},end:{line:1249,column:32}},301:{start:{line:1250,column:8},end:{line:1250,column:32}},302:{start:{line:1251,column:8},end:{line:1251,column:29}},303:{start:{line:1252,column:8},end:{line:1252,column:14}},304:{start:{line:1254,column:6},end:{line:1254,column:42}},305:{start:{line:1255,column:6},end:{line:1255,column:38}},306:{start:{line:1256,column:6},end:{line:1256,column:39}},307:{start:{line:1257,column:6},end:{line:1257,column:34}},308:{start:{line:1258,column:6},end:{line:1258,column:31}},309:{start:{line:1259,column:6},end:{line:1259,column:30}},310:{start:{line:1260,column:6},end:{line:1260,column:30}},311:{start:{line:1261,column:6},end:{line:1395,column:7}},312:{start:{line:1265,column:10},end:{line:1265,column:33}},313:{start:{line:1266,column:10},end:{line:1266,column:40}},314:{start:{line:1267,column:10},end:{line:1267,column:35}},315:{start:{line:1268,column:10},end:{line:1268,column:42}},316:{start:{line:1270,column:10},end:{line:1275,column:11}},317:{start:{line:1271,column:12},end:{line:1271,column:54}},318:{start:{line:1272,column:17},end:{line:1275,column:11}},319:{start:{line:1274,column:12},end:{line:1274,column:43}},320:{start:{line:1277,column:10},end:{line:1279,column:11}},321:{start:{line:1278,column:12},end:{line:1278,column:36}},322:{start:{line:1280,column:10},end:{line:1299,column:11}},323:{start:{line:1281,column:12},end:{line:1281,column:33}},324:{start:{line:1282,column:12},end:{line:1298,column:13}},325:{start:{line:1283,column:14},end:{line:1289,column:16}},326:{start:{line:1291,column:14},end:{line:1297,column:16}},327:{start:{line:1300,column:10},end:{line:1300,column:30}},328:{start:{line:1301,column:10},end:{line:1301,column:15}},329:{start:{line:1303,column:10},end:{line:1303,column:49}},330:{start:{line:1304,column:10},end:{line:1304,column:97}},331:{start:{line:1305,column:10},end:{line:1307,column:11}},332:{start:{line:1306,column:12},end:{line:1306,column:53}},333:{start:{line:1308,column:10},end:{line:1308,column:40}},334:{start:{line:1309,column:10},end:{line:1309,column:63}},335:{start:{line:1310,column:10},end:{line:1310,column:58}},336:{start:{line:1311,column:10},end:{line:1311,column:33}},337:{start:{line:1312,column:10},end:{line:1312,column:15}},338:{start:{line:1314,column:10},end:{line:1316,column:11}},339:{start:{line:1315,column:12},end:{line:1315,column:58}},340:{start:{line:1317,column:10},end:{line:1319,column:11}},341:{start:{line:1318,column:12},end:{line:1318,column:53}},342:{start:{line:1320,column:10},end:{line:1320,column:44}},343:{start:{line:1321,column:10},end:{line:1321,column:61}},344:{start:{line:1322,column:10},end:{line:1322,column:58}},345:{start:{line:1323,column:10},end:{line:1323,column:33}},346:{start:{line:1324,column:10},end:{line:1324,column:15}},347:{start:{line:1326,column:10},end:{line:1328,column:11}},348:{start:{line:1327,column:12},end:{line:1327,column:58}},349:{start:{line:1329,column:10},end:{line:1331,column:11}},350:{start:{line:1330,column:12},end:{line:1330,column:53}},351:{start:{line:1332,column:10},end:{line:1332,column:44}},352:{start:{line:1333,column:10},end:{line:1335,column:12}},353:{start:{line:1334,column:12},end:{line:1334,column:59}},354:{start:{line:1336,column:10},end:{line:1336,column:34}},355:{start:{line:1337,column:10},end:{line:1337,column:38}},356:{start:{line:1338,column:10},end:{line:1338,column:58}},357:{start:{line:1339,column:10},end:{line:1339,column:33}},358:{start:{line:1340,column:10},end:{line:1340,column:15}},359:{start:{line:1343,column:10},end:{line:1345,column:11}},360:{start:{line:1344,column:12},end:{line:1344,column:58}},361:{start:{line:1346,column:10},end:{line:1348,column:11}},362:{start:{line:1347,column:12},end:{line:1347,column:53}},363:{start:{line:1349,column:10},end:{line:1349,column:44}},364:{start:{line:1350,column:10},end:{line:1352,column:12}},365:{start:{line:1351,column:12},end:{line:1351,column:59}},366:{start:{line:1353,column:10},end:{line:1355,column:11}},367:{start:{line:1354,column:12},end:{line:1354,column:43}},368:{start:{line:1356,column:10},end:{line:1356,column:58}},369:{start:{line:1357,column:10},end:{line:1357,column:33}},370:{start:{line:1358,column:10},end:{line:1358,column:15}},371:{start:{line:1360,column:10},end:{line:1360,column:47}},372:{start:{line:1361,column:10},end:{line:1361,column:43}},373:{start:{line:1362,column:10},end:{line:1362,column:38}},374:{start:{line:1363,column:10},end:{line:1363,column:15}},375:{start:{line:1365,column:10},end:{line:1365,column:50}},376:{start:{line:1366,column:10},end:{line:1375,column:11}},377:{start:{line:1367,column:12},end:{line:1367,column:43}},378:{start:{line:1368,column:12},end:{line:1374,column:14}},379:{start:{line:1376,column:10},end:{line:1376,column:40}},380:{start:{line:1377,column:10},end:{line:1377,column:15}},381:{start:{line:1380,column:10},end:{line:1380,column:40}},382:{start:{line:1381,column:10},end:{line:1381,column:42}},383:{start:{line:1382,column:10},end:{line:1384,column:11}},384:{start:{line:1383,column:12},end:{line:1383,column:49}},385:{start:{line:1385,column:10},end:{line:1387,column:11}},386:{start:{line:1386,column:12},end:{line:1386,column:37}},387:{start:{line:1388,column:10},end:{line:1388,column:31}},388:{start:{line:1389,column:10},end:{line:1389,column:15}},389:{start:{line:1394,column:10},end:{line:1394,column:15}},390:{start:{line:1398,column:6},end:{line:1398,column:28}},391:{start:{line:1401,column:22},end:{line:1401,column:30}},392:{start:{line:1402,column:6},end:{line:1419,column:7}},393:{start:{line:1403,column:8},end:{line:1403,column:22}},394:{start:{line:1404,column:8},end:{line:1418,column:10}},395:{start:{line:1405,column:10},end:{line:1405,column:35}},396:{start:{line:1407,column:45},end:{line:1411,column:11}},397:{start:{line:1414,column:27},end:{line:1417,column:12}},398:{start:{line:1420,column:6},end:{line:1426,column:8}},399:{start:{line:1429,column:6},end:{line:1429,column:30}},400:{start:{line:1430,column:6},end:{line:1430,column:40}},401:{start:{line:1431,column:6},end:{line:1431,column:27}},402:{start:{line:1435,column:6},end:{line:1435,column:34}},403:{start:{line:1436,column:6},end:{line:1436,column:33}},404:{start:{line:1437,column:6},end:{line:1437,column:21}},405:{start:{line:1438,column:6},end:{line:1438,column:38}},406:{start:{line:1439,column:6},end:{line:1439,column:28}},407:{start:{line:1440,column:6},end:{line:1440,column:30}},408:{start:{line:1441,column:6},end:{line:1441,column:36}},409:{start:{line:1442,column:6},end:{line:1442,column:30}},410:{start:{line:1445,column:6},end:{line:1445,column:26}},411:{start:{line:1449,column:6},end:{line:1449,column:21}},412:{start:{line:1450,column:6},end:{line:1450,column:23}},413:{start:{line:1451,column:6},end:{line:1451,column:30}},414:{start:{line:1453,column:6},end:{line:1453,column:45}},415:{start:{line:1454,column:6},end:{line:1454,column:33}},416:{start:{line:1455,column:6},end:{line:1455,column:49}},417:{start:{line:1456,column:6},end:{line:1456,column:46}},418:{start:{line:1457,column:6},end:{line:1457,column:39}},419:{start:{line:1458,column:6},end:{line:1458,column:28}},420:{start:{line:1459,column:6},end:{line:1459,column:28}},421:{start:{line:1460,column:6},end:{line:1460,column:30}},422:{start:{line:1462,column:6},end:{line:1466,column:7}},423:{start:{line:1463,column:8},end:{line:1463,column:31}},424:{start:{line:1464,column:8},end:{line:1464,column:35}},425:{start:{line:1465,column:8},end:{line:1465,column:37}},426:{start:{line:1467,column:6},end:{line:1470,column:7}},427:{start:{line:1468,column:8},end:{line:1468,column:36}},428:{start:{line:1469,column:8},end:{line:1469,column:34}},429:{start:{line:1472,column:6},end:{line:1472,column:54}},430:{start:{line:1477,column:26},end:{line:1477,column:50}},431:{start:{line:1478,column:6},end:{line:1552,column:7}},432:{start:{line:1479,column:8},end:{line:1503,column:9}},433:{start:{line:1481,column:10},end:{line:1481,column:23}},434:{start:{line:1483,column:10},end:{line:1486,column:11}},435:{start:{line:1484,column:12},end:{line:1485,column:72}},436:{start:{line:1487,column:10},end:{line:1487,column:30}},437:{start:{line:1488,column:10},end:{line:1502,column:14}},438:{start:{line:1495,column:14},end:{line:1495,column:36}},439:{start:{line:1496,column:14},end:{line:1498,column:22}},440:{start:{line:1497,column:16},end:{line:1497,column:37}},441:{start:{line:1501,column:14},end:{line:1501,column:35}},442:{start:{line:1506,column:8},end:{line:1506,column:28}},443:{start:{line:1507,column:8},end:{line:1551,column:12}},444:{start:{line:1514,column:12},end:{line:1537,column:13}},445:{start:{line:1515,column:14},end:{line:1523,column:15}},446:{start:{line:1516,column:16},end:{line:1516,column:45}},447:{start:{line:1517,column:16},end:{line:1517,column:39}},448:{start:{line:1518,column:16},end:{line:1518,column:64}},449:{start:{line:1520,column:16},end:{line:1520,column:46}},450:{start:{line:1521,column:16},end:{line:1521,column:40}},451:{start:{line:1522,column:16},end:{line:1522,column:34}},452:{start:{line:1524,column:14},end:{line:1527,column:15}},453:{start:{line:1525,column:16},end:{line:1525,column:53}},454:{start:{line:1526,column:16},end:{line:1526,column:42}},455:{start:{line:1528,column:14},end:{line:1528,column:36}},456:{start:{line:1529,column:14},end:{line:1531,column:22}},457:{start:{line:1530,column:16},end:{line:1530,column:37}},458:{start:{line:1533,column:14},end:{line:1533,column:35}},459:{start:{line:1534,column:14},end:{line:1534,column:38}},460:{start:{line:1535,column:14},end:{line:1535,column:105}},461:{start:{line:1536,column:14},end:{line:1536,column:35}},462:{start:{line:1540,column:12},end:{line:1540,column:33}},463:{start:{line:1543,column:12},end:{line:1549,column:13}},464:{start:{line:1544,column:14},end:{line:1544,column:38}},465:{start:{line:1545,column:14},end:{line:1545,column:51}},466:{start:{line:1547,column:14},end:{line:1547,column:38}},467:{start:{line:1548,column:14},end:{line:1548,column:105}},468:{start:{line:1550,column:12},end:{line:1550,column:33}},469:{start:{line:1553,column:6},end:{line:1553,column:21}},470:{start:{line:1556,column:6},end:{line:1556,column:28}},471:{start:{line:1559,column:6},end:{line:1559,column:30}},472:{start:{line:1560,column:6},end:{line:1563,column:7}},473:{start:{line:1561,column:8},end:{line:1561,column:67}},474:{start:{line:1562,column:8},end:{line:1562,column:32}},475:{start:{line:1564,column:6},end:{line:1564,column:21}},476:{start:{line:1568,column:6},end:{line:1589,column:10}},477:{start:{line:1574,column:10},end:{line:1576,column:12}},478:{start:{line:1579,column:10},end:{line:1579,column:24}},479:{start:{line:1582,column:10},end:{line:1588,column:11}},480:{start:{line:1583,column:32},end:{line:1586,column:13}},481:{start:{line:1587,column:12},end:{line:1587,column:44}},482:{start:{line:1592,column:19},end:{line:1594,column:8}},483:{start:{line:1596,column:19},end:{line:1596,column:46}},484:{start:{line:1597,column:6},end:{line:1597,column:43}},485:{start:{line:1598,column:6},end:{line:1598,column:50}},486:{start:{line:1599,column:6},end:{line:1599,column:18}},487:{start:{line:1603,column:6},end:{line:1613,column:8}},488:{start:{line:1610,column:8},end:{line:1610,column:52}},489:{start:{line:1611,column:8},end:{line:1611,column:69}},490:{start:{line:1612,column:8},end:{line:1612,column:36}},491:{start:{line:1616,column:6},end:{line:1626,column:8}},492:{start:{line:1623,column:8},end:{line:1623,column:52}},493:{start:{line:1624,column:8},end:{line:1624,column:69}},494:{start:{line:1625,column:8},end:{line:1625,column:36}},495:{start:{line:1629,column:6},end:{line:1629,column:71}},496:{start:{line:1632,column:6},end:{line:1632,column:38}},497:{start:{line:1635,column:6},end:{line:1635,column:48}},498:{start:{line:1639,column:6},end:{line:1666,column:7}},499:{start:{line:1640,column:8},end:{line:1640,column:23}},500:{start:{line:1641,column:8},end:{line:1641,column:57}},501:{start:{line:1642,column:13},end:{line:1666,column:7}},502:{start:{line:1643,column:8},end:{line:1643,column:42}},503:{start:{line:1644,column:8},end:{line:1644,column:57}},504:{start:{line:1646,column:8},end:{line:1650,column:10}},505:{start:{line:1651,column:8},end:{line:1651,column:23}},506:{start:{line:1652,column:13},end:{line:1666,column:7}},507:{start:{line:1653,column:8},end:{line:1653,column:35}},508:{start:{line:1654,column:8},end:{line:1656,column:9}},509:{start:{line:1655,column:10},end:{line:1655,column:63}},510:{start:{line:1657,column:8},end:{line:1657,column:62}},511:{start:{line:1659,column:8},end:{line:1659,column:30}},512:{start:{line:1660,column:13},end:{line:1666,column:7}},513:{start:{line:1661,column:8},end:{line:1661,column:35}},514:{start:{line:1662,column:8},end:{line:1664,column:9}},515:{start:{line:1663,column:10},end:{line:1663,column:36}},516:{start:{line:1665,column:8},end:{line:1665,column:62}},517:{start:{line:1669,column:25},end:{line:1669,column:57}},518:{start:{line:1670,column:6},end:{line:1672,column:70}},519:{start:{line:1671,column:25},end:{line:1671,column:60}},520:{start:{line:1672,column:29},end:{line:1672,column:69}},521:{start:{line:1675,column:6},end:{line:1686,column:10}},522:{start:{line:1684,column:10},end:{line:1684,column:30}},523:{start:{line:1685,column:10},end:{line:1685,column:32}},524:{start:{line:1689,column:6},end:{line:1689,column:66}},525:{start:{line:1692,column:6},end:{line:1694,column:7}},526:{start:{line:1693,column:8},end:{line:1693,column:63}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:390,column:2},end:{line:390,column:3}},loc:{start:{line:390,column:9},end:{line:498,column:3}},line:390},1:{name:"(anonymous_1)",decl:{start:{line:451,column:18},end:{line:451,column:19}},loc:{start:{line:451,column:24},end:{line:451,column:26}},line:451},2:{name:"(anonymous_2)",decl:{start:{line:459,column:18},end:{line:459,column:19}},loc:{start:{line:459,column:24},end:{line:459,column:26}},line:459},3:{name:"(anonymous_3)",decl:{start:{line:469,column:18},end:{line:469,column:19}},loc:{start:{line:469,column:24},end:{line:469,column:26}},line:469},4:{name:"(anonymous_4)",decl:{start:{line:479,column:18},end:{line:479,column:19}},loc:{start:{line:479,column:24},end:{line:479,column:26}},line:479},5:{name:"(anonymous_5)",decl:{start:{line:500,column:14},end:{line:500,column:15}},loc:{start:{line:500,column:26},end:{line:504,column:5}},line:500},6:{name:"(anonymous_6)",decl:{start:{line:505,column:21},end:{line:505,column:22}},loc:{start:{line:505,column:33},end:{line:509,column:5}},line:505},7:{name:"(anonymous_7)",decl:{start:{line:510,column:26},end:{line:510,column:27}},loc:{start:{line:510,column:38},end:{line:512,column:5}},line:510},8:{name:"(anonymous_8)",decl:{start:{line:513,column:14},end:{line:513,column:15}},loc:{start:{line:513,column:26},end:{line:515,column:5}},line:513},9:{name:"(anonymous_9)",decl:{start:{line:516,column:18},end:{line:516,column:19}},loc:{start:{line:516,column:30},end:{line:519,column:5}},line:516},10:{name:"(anonymous_10)",decl:{start:{line:522,column:21},end:{line:522,column:22}},loc:{start:{line:522,column:33},end:{line:524,column:5}},line:522},11:{name:"(anonymous_11)",decl:{start:{line:525,column:11},end:{line:525,column:12}},loc:{start:{line:525,column:23},end:{line:692,column:5}},line:525},12:{name:"(anonymous_12)",decl:{start:{line:533,column:23},end:{line:533,column:24}},loc:{start:{line:533,column:29},end:{line:535,column:15}},line:533},13:{name:"(anonymous_13)",decl:{start:{line:540,column:23},end:{line:540,column:24}},loc:{start:{line:540,column:29},end:{line:542,column:15}},line:540},14:{name:"(anonymous_14)",decl:{start:{line:550,column:23},end:{line:550,column:24}},loc:{start:{line:550,column:29},end:{line:552,column:15}},line:550},15:{name:"(anonymous_15)",decl:{start:{line:557,column:23},end:{line:557,column:24}},loc:{start:{line:557,column:29},end:{line:559,column:15}},line:557},16:{name:"(anonymous_16)",decl:{start:{line:567,column:23},end:{line:567,column:24}},loc:{start:{line:567,column:29},end:{line:569,column:15}},line:567},17:{name:"(anonymous_17)",decl:{start:{line:577,column:23},end:{line:577,column:24}},loc:{start:{line:577,column:29},end:{line:579,column:15}},line:577},18:{name:"(anonymous_18)",decl:{start:{line:589,column:23},end:{line:589,column:24}},loc:{start:{line:589,column:29},end:{line:591,column:15}},line:589},19:{name:"(anonymous_19)",decl:{start:{line:596,column:23},end:{line:596,column:24}},loc:{start:{line:596,column:29},end:{line:598,column:15}},line:596},20:{name:"(anonymous_20)",decl:{start:{line:608,column:23},end:{line:608,column:24}},loc:{start:{line:608,column:29},end:{line:610,column:15}},line:608},21:{name:"(anonymous_21)",decl:{start:{line:618,column:23},end:{line:618,column:24}},loc:{start:{line:618,column:29},end:{line:620,column:15}},line:618},22:{name:"(anonymous_22)",decl:{start:{line:625,column:23},end:{line:625,column:24}},loc:{start:{line:625,column:29},end:{line:628,column:15}},line:625},23:{name:"(anonymous_23)",decl:{start:{line:626,column:48},end:{line:626,column:49}},loc:{start:{line:626,column:54},end:{line:626,column:56}},line:626},24:{name:"(anonymous_24)",decl:{start:{line:636,column:23},end:{line:636,column:24}},loc:{start:{line:636,column:29},end:{line:638,column:15}},line:636},25:{name:"(anonymous_25)",decl:{start:{line:643,column:23},end:{line:643,column:24}},loc:{start:{line:643,column:29},end:{line:645,column:15}},line:643},26:{name:"(anonymous_26)",decl:{start:{line:650,column:23},end:{line:650,column:24}},loc:{start:{line:650,column:29},end:{line:652,column:15}},line:650},27:{name:"(anonymous_27)",decl:{start:{line:658,column:23},end:{line:658,column:24}},loc:{start:{line:658,column:29},end:{line:660,column:15}},line:658},28:{name:"(anonymous_28)",decl:{start:{line:668,column:23},end:{line:668,column:24}},loc:{start:{line:668,column:29},end:{line:670,column:15}},line:668},29:{name:"(anonymous_29)",decl:{start:{line:675,column:23},end:{line:675,column:24}},loc:{start:{line:675,column:29},end:{line:677,column:15}},line:675},30:{name:"(anonymous_30)",decl:{start:{line:685,column:23},end:{line:685,column:24}},loc:{start:{line:685,column:29},end:{line:687,column:15}},line:685},31:{name:"(anonymous_31)",decl:{start:{line:693,column:31},end:{line:693,column:32}},loc:{start:{line:693,column:43},end:{line:708,column:5}},line:693},32:{name:"(anonymous_32)",decl:{start:{line:711,column:14},end:{line:711,column:15}},loc:{start:{line:711,column:29},end:{line:717,column:5}},line:711},33:{name:"(anonymous_33)",decl:{start:{line:719,column:11},end:{line:719,column:12}},loc:{start:{line:719,column:23},end:{line:721,column:3}},line:719},34:{name:"(anonymous_34)",decl:{start:{line:722,column:11},end:{line:722,column:12}},loc:{start:{line:722,column:29},end:{line:758,column:3}},line:722},35:{name:"(anonymous_35)",decl:{start:{line:741,column:37},end:{line:741,column:38}},loc:{start:{line:741,column:58},end:{line:744,column:5}},line:741},36:{name:"(anonymous_36)",decl:{start:{line:749,column:40},end:{line:749,column:41}},loc:{start:{line:749,column:46},end:{line:757,column:5}},line:749},37:{name:"(anonymous_37)",decl:{start:{line:759,column:2},end:{line:759,column:3}},loc:{start:{line:759,column:18},end:{line:762,column:3}},line:759},38:{name:"(anonymous_38)",decl:{start:{line:763,column:2},end:{line:763,column:3}},loc:{start:{line:763,column:14},end:{line:775,column:3}},line:763},39:{name:"(anonymous_39)",decl:{start:{line:776,column:21},end:{line:776,column:22}},loc:{start:{line:776,column:47},end:{line:782,column:3}},line:776},40:{name:"(anonymous_40)",decl:{start:{line:784,column:4},end:{line:784,column:5}},loc:{start:{line:784,column:30},end:{line:801,column:5}},line:784},41:{name:"(anonymous_41)",decl:{start:{line:802,column:26},end:{line:802,column:27}},loc:{start:{line:802,column:40},end:{line:822,column:5}},line:802},42:{name:"(anonymous_42)",decl:{start:{line:803,column:56},end:{line:803,column:57}},loc:{start:{line:803,column:70},end:{line:821,column:7}},line:803},43:{name:"(anonymous_43)",decl:{start:{line:805,column:10},end:{line:805,column:11}},loc:{start:{line:805,column:17},end:{line:805,column:38}},line:805},44:{name:"(anonymous_44)",decl:{start:{line:823,column:19},end:{line:823,column:20}},loc:{start:{line:823,column:31},end:{line:837,column:5}},line:823},45:{name:"(anonymous_45)",decl:{start:{line:824,column:59},end:{line:824,column:60}},loc:{start:{line:824,column:73},end:{line:836,column:7}},line:824},46:{name:"(anonymous_46)",decl:{start:{line:838,column:30},end:{line:838,column:31}},loc:{start:{line:838,column:48},end:{line:842,column:5}},line:838},47:{name:"(anonymous_47)",decl:{start:{line:843,column:19},end:{line:843,column:20}},loc:{start:{line:843,column:31},end:{line:852,column:5}},line:843},48:{name:"(anonymous_48)",decl:{start:{line:849,column:16},end:{line:849,column:17}},loc:{start:{line:849,column:25},end:{line:849,column:37}},line:849},49:{name:"(anonymous_49)",decl:{start:{line:850,column:13},end:{line:850,column:14}},loc:{start:{line:850,column:22},end:{line:850,column:33}},line:850},50:{name:"(anonymous_50)",decl:{start:{line:853,column:22},end:{line:853,column:23}},loc:{start:{line:853,column:34},end:{line:860,column:5}},line:853},51:{name:"(anonymous_51)",decl:{start:{line:857,column:16},end:{line:857,column:17}},loc:{start:{line:857,column:25},end:{line:857,column:71}},line:857},52:{name:"(anonymous_52)",decl:{start:{line:858,column:13},end:{line:858,column:14}},loc:{start:{line:858,column:22},end:{line:858,column:43}},line:858},53:{name:"(anonymous_53)",decl:{start:{line:861,column:17},end:{line:861,column:18}},loc:{start:{line:861,column:51},end:{line:893,column:5}},line:861},54:{name:"(anonymous_54)",decl:{start:{line:879,column:16},end:{line:879,column:17}},loc:{start:{line:879,column:30},end:{line:888,column:11}},line:879},55:{name:"(anonymous_55)",decl:{start:{line:889,column:16},end:{line:889,column:17}},loc:{start:{line:889,column:30},end:{line:891,column:11}},line:889},56:{name:"(anonymous_56)",decl:{start:{line:894,column:22},end:{line:894,column:23}},loc:{start:{line:894,column:34},end:{line:896,column:5}},line:894},57:{name:"(anonymous_57)",decl:{start:{line:897,column:22},end:{line:897,column:23}},loc:{start:{line:897,column:40},end:{line:909,column:5}},line:897},58:{name:"(anonymous_58)",decl:{start:{line:910,column:23},end:{line:910,column:24}},loc:{start:{line:910,column:50},end:{line:939,column:5}},line:910},59:{name:"(anonymous_59)",decl:{start:{line:915,column:8},end:{line:915,column:9}},loc:{start:{line:916,column:10},end:{line:917,column:32}},line:916},60:{name:"(anonymous_60)",decl:{start:{line:929,column:12},end:{line:929,column:13}},loc:{start:{line:929,column:21},end:{line:929,column:43}},line:929},61:{name:"(anonymous_61)",decl:{start:{line:933,column:27},end:{line:933,column:28}},loc:{start:{line:933,column:36},end:{line:938,column:7}},line:933},62:{name:"(anonymous_62)",decl:{start:{line:940,column:23},end:{line:940,column:24}},loc:{start:{line:940,column:64},end:{line:945,column:5}},line:940},63:{name:"(anonymous_63)",decl:{start:{line:943,column:13},end:{line:943,column:14}},loc:{start:{line:943,column:34},end:{line:943,column:51}},line:943},64:{name:"(anonymous_64)",decl:{start:{line:946,column:24},end:{line:946,column:25}},loc:{start:{line:946,column:44},end:{line:951,column:5}},line:946},65:{name:"(anonymous_65)",decl:{start:{line:948,column:42},end:{line:948,column:43}},loc:{start:{line:948,column:58},end:{line:950,column:7}},line:948},66:{name:"(anonymous_66)",decl:{start:{line:952,column:26},end:{line:952,column:27}},loc:{start:{line:952,column:38},end:{line:964,column:5}},line:952},67:{name:"(anonymous_67)",decl:{start:{line:958,column:14},end:{line:958,column:15}},loc:{start:{line:958,column:26},end:{line:960,column:9}},line:958},68:{name:"(anonymous_68)",decl:{start:{line:961,column:14},end:{line:961,column:15}},loc:{start:{line:961,column:28},end:{line:963,column:9}},line:961},69:{name:"(anonymous_69)",decl:{start:{line:965,column:4},end:{line:965,column:5}},loc:{start:{line:965,column:29},end:{line:971,column:5}},line:965},70:{name:"(anonymous_70)",decl:{start:{line:972,column:4},end:{line:972,column:5}},loc:{start:{line:972,column:19},end:{line:989,column:5}},line:972},71:{name:"(anonymous_71)",decl:{start:{line:990,column:4},end:{line:990,column:5}},loc:{start:{line:990,column:20},end:{line:1e3,column:5}},line:990},72:{name:"(anonymous_72)",decl:{start:{line:1001,column:20},end:{line:1001,column:21}},loc:{start:{line:1001,column:32},end:{line:1021,column:5}},line:1001},73:{name:"(anonymous_73)",decl:{start:{line:1004,column:14},end:{line:1004,column:15}},loc:{start:{line:1004,column:41},end:{line:1020,column:9}},line:1004},74:{name:"(anonymous_74)",decl:{start:{line:1008,column:19},end:{line:1008,column:20}},loc:{start:{line:1008,column:32},end:{line:1008,column:73}},line:1008},75:{name:"(anonymous_75)",decl:{start:{line:1022,column:4},end:{line:1022,column:5}},loc:{start:{line:1022,column:20},end:{line:1046,column:5}},line:1022},76:{name:"(anonymous_76)",decl:{start:{line:1037,column:22},end:{line:1037,column:23}},loc:{start:{line:1037,column:32},end:{line:1037,column:51}},line:1037},77:{name:"(anonymous_77)",decl:{start:{line:1043,column:14},end:{line:1043,column:15}},loc:{start:{line:1043,column:32},end:{line:1045,column:9}},line:1043},78:{name:"(anonymous_78)",decl:{start:{line:1047,column:4},end:{line:1047,column:5}},loc:{start:{line:1047,column:21},end:{line:1061,column:5}},line:1047},79:{name:"(anonymous_79)",decl:{start:{line:1062,column:24},end:{line:1062,column:25}},loc:{start:{line:1062,column:41},end:{line:1064,column:5}},line:1062},80:{name:"(anonymous_80)",decl:{start:{line:1065,column:18},end:{line:1065,column:19}},loc:{start:{line:1065,column:30},end:{line:1067,column:5}},line:1065},81:{name:"(anonymous_81)",decl:{start:{line:1068,column:4},end:{line:1068,column:5}},loc:{start:{line:1068,column:37},end:{line:1088,column:5}},line:1068},82:{name:"(anonymous_82)",decl:{start:{line:1085,column:35},end:{line:1085,column:36}},loc:{start:{line:1085,column:49},end:{line:1087,column:7}},line:1085},83:{name:"(anonymous_83)",decl:{start:{line:1089,column:4},end:{line:1089,column:5}},loc:{start:{line:1089,column:34},end:{line:1091,column:5}},line:1089},84:{name:"(anonymous_84)",decl:{start:{line:1092,column:4},end:{line:1092,column:5}},loc:{start:{line:1092,column:19},end:{line:1099,column:5}},line:1092},85:{name:"(anonymous_85)",decl:{start:{line:1100,column:4},end:{line:1100,column:5}},loc:{start:{line:1100,column:11},end:{line:1110,column:5}},line:1100},86:{name:"(anonymous_86)",decl:{start:{line:1111,column:4},end:{line:1111,column:5}},loc:{start:{line:1111,column:11},end:{line:1113,column:5}},line:1111},87:{name:"(anonymous_87)",decl:{start:{line:1114,column:4},end:{line:1114,column:5}},loc:{start:{line:1114,column:19},end:{line:1236,column:5}},line:1114},88:{name:"(anonymous_88)",decl:{start:{line:1133,column:22},end:{line:1133,column:23}},loc:{start:{line:1133,column:36},end:{line:1143,column:17}},line:1133},89:{name:"(anonymous_89)",decl:{start:{line:1144,column:23},end:{line:1144,column:24}},loc:{start:{line:1144,column:32},end:{line:1147,column:17}},line:1144},90:{name:"(anonymous_90)",decl:{start:{line:1191,column:16},end:{line:1191,column:17}},loc:{start:{line:1191,column:25},end:{line:1191,column:69}},line:1191},91:{name:"(anonymous_91)",decl:{start:{line:1237,column:4},end:{line:1237,column:5}},loc:{start:{line:1237,column:32},end:{line:1246,column:5}},line:1237},92:{name:"(anonymous_92)",decl:{start:{line:1247,column:4},end:{line:1247,column:5}},loc:{start:{line:1247,column:23},end:{line:1396,column:5}},line:1247},93:{name:"(anonymous_93)",decl:{start:{line:1280,column:30},end:{line:1280,column:31}},loc:{start:{line:1280,column:41},end:{line:1299,column:11}},line:1280},94:{name:"(anonymous_94)",decl:{start:{line:1333,column:37},end:{line:1333,column:38}},loc:{start:{line:1333,column:44},end:{line:1335,column:11}},line:1333},95:{name:"(anonymous_95)",decl:{start:{line:1350,column:37},end:{line:1350,column:38}},loc:{start:{line:1350,column:44},end:{line:1352,column:11}},line:1350},96:{name:"(anonymous_96)",decl:{start:{line:1366,column:40},end:{line:1366,column:41}},loc:{start:{line:1366,column:51},end:{line:1375,column:11}},line:1366},97:{name:"(anonymous_97)",decl:{start:{line:1397,column:4},end:{line:1397,column:5}},loc:{start:{line:1397,column:36},end:{line:1427,column:5}},line:1397},98:{name:"(anonymous_98)",decl:{start:{line:1404,column:28},end:{line:1404,column:29}},loc:{start:{line:1404,column:44},end:{line:1418,column:9}},line:1404},99:{name:"(anonymous_99)",decl:{start:{line:1428,column:4},end:{line:1428,column:5}},loc:{start:{line:1428,column:20},end:{line:1432,column:5}},line:1428},100:{name:"(anonymous_100)",decl:{start:{line:1434,column:4},end:{line:1434,column:5}},loc:{start:{line:1434,column:14},end:{line:1443,column:5}},line:1434},101:{name:"(anonymous_101)",decl:{start:{line:1444,column:4},end:{line:1444,column:5}},loc:{start:{line:1444,column:15},end:{line:1446,column:5}},line:1444},102:{name:"(anonymous_102)",decl:{start:{line:1448,column:4},end:{line:1448,column:5}},loc:{start:{line:1448,column:43},end:{line:1473,column:5}},line:1448},103:{name:"(anonymous_103)",decl:{start:{line:1476,column:4},end:{line:1476,column:5}},loc:{start:{line:1476,column:28},end:{line:1554,column:5}},line:1476},104:{name:"(anonymous_104)",decl:{start:{line:1494,column:18},end:{line:1494,column:19}},loc:{start:{line:1494,column:32},end:{line:1499,column:13}},line:1494},105:{name:"(anonymous_105)",decl:{start:{line:1496,column:25},end:{line:1496,column:26}},loc:{start:{line:1496,column:31},end:{line:1498,column:15}},line:1496},106:{name:"(anonymous_106)",decl:{start:{line:1500,column:19},end:{line:1500,column:20}},loc:{start:{line:1500,column:30},end:{line:1502,column:13}},line:1500},107:{name:"(anonymous_107)",decl:{start:{line:1513,column:16},end:{line:1513,column:17}},loc:{start:{line:1513,column:30},end:{line:1538,column:11}},line:1513},108:{name:"(anonymous_108)",decl:{start:{line:1529,column:25},end:{line:1529,column:26}},loc:{start:{line:1529,column:31},end:{line:1531,column:15}},line:1529},109:{name:"(anonymous_109)",decl:{start:{line:1539,column:17},end:{line:1539,column:18}},loc:{start:{line:1539,column:35},end:{line:1551,column:11}},line:1539},110:{name:"(anonymous_110)",decl:{start:{line:1555,column:4},end:{line:1555,column:5}},loc:{start:{line:1555,column:13},end:{line:1557,column:5}},line:1555},111:{name:"(anonymous_111)",decl:{start:{line:1558,column:4},end:{line:1558,column:5}},loc:{start:{line:1558,column:29},end:{line:1565,column:5}},line:1558},112:{name:"(anonymous_112)",decl:{start:{line:1566,column:4},end:{line:1566,column:5}},loc:{start:{line:1566,column:13},end:{line:1590,column:5}},line:1566},113:{name:"(anonymous_113)",decl:{start:{line:1573,column:14},end:{line:1573,column:15}},loc:{start:{line:1573,column:26},end:{line:1577,column:9}},line:1573},114:{name:"(anonymous_114)",decl:{start:{line:1578,column:14},end:{line:1578,column:15}},loc:{start:{line:1578,column:28},end:{line:1580,column:9}},line:1578},115:{name:"(anonymous_115)",decl:{start:{line:1581,column:15},end:{line:1581,column:16}},loc:{start:{line:1581,column:26},end:{line:1589,column:9}},line:1581},116:{name:"(anonymous_116)",decl:{start:{line:1591,column:4},end:{line:1591,column:5}},loc:{start:{line:1591,column:15},end:{line:1600,column:5}},line:1591},117:{name:"(anonymous_117)",decl:{start:{line:1602,column:4},end:{line:1602,column:5}},loc:{start:{line:1602,column:22},end:{line:1614,column:5}},line:1602},118:{name:"(anonymous_118)",decl:{start:{line:1609,column:14},end:{line:1609,column:15}},loc:{start:{line:1609,column:28},end:{line:1613,column:7}},line:1609},119:{name:"(anonymous_119)",decl:{start:{line:1615,column:4},end:{line:1615,column:5}},loc:{start:{line:1615,column:23},end:{line:1627,column:5}},line:1615},120:{name:"(anonymous_120)",decl:{start:{line:1622,column:14},end:{line:1622,column:15}},loc:{start:{line:1622,column:28},end:{line:1626,column:7}},line:1622},121:{name:"(anonymous_121)",decl:{start:{line:1628,column:4},end:{line:1628,column:5}},loc:{start:{line:1628,column:20},end:{line:1630,column:5}},line:1628},122:{name:"(anonymous_122)",decl:{start:{line:1631,column:4},end:{line:1631,column:5}},loc:{start:{line:1631,column:18},end:{line:1633,column:5}},line:1631},123:{name:"(anonymous_123)",decl:{start:{line:1634,column:4},end:{line:1634,column:5}},loc:{start:{line:1634,column:23},end:{line:1636,column:5}},line:1634},124:{name:"(anonymous_124)",decl:{start:{line:1638,column:4},end:{line:1638,column:5}},loc:{start:{line:1638,column:24},end:{line:1667,column:5}},line:1638},125:{name:"(anonymous_125)",decl:{start:{line:1668,column:22},end:{line:1668,column:23}},loc:{start:{line:1668,column:34},end:{line:1673,column:5}},line:1668},126:{name:"(anonymous_126)",decl:{start:{line:1671,column:16},end:{line:1671,column:17}},loc:{start:{line:1671,column:25},end:{line:1671,column:60}},line:1671},127:{name:"(anonymous_127)",decl:{start:{line:1672,column:17},end:{line:1672,column:18}},loc:{start:{line:1672,column:29},end:{line:1672,column:69}},line:1672},128:{name:"(anonymous_128)",decl:{start:{line:1674,column:24},end:{line:1674,column:25}},loc:{start:{line:1674,column:36},end:{line:1687,column:5}},line:1674},129:{name:"(anonymous_129)",decl:{start:{line:1683,column:14},end:{line:1683,column:15}},loc:{start:{line:1683,column:20},end:{line:1686,column:9}},line:1683},130:{name:"(anonymous_130)",decl:{start:{line:1688,column:14},end:{line:1688,column:15}},loc:{start:{line:1688,column:26},end:{line:1690,column:5}},line:1688},131:{name:"(anonymous_131)",decl:{start:{line:1691,column:16},end:{line:1691,column:17}},loc:{start:{line:1691,column:28},end:{line:1695,column:5}},line:1691}},branchMap:{0:{loc:{start:{line:506,column:13},end:{line:508,column:32}},type:"cond-expr",locations:[{start:{line:507,column:10},end:{line:507,column:24}},{start:{line:508,column:10},end:{line:508,column:32}}],line:506},1:{loc:{start:{line:511,column:13},end:{line:511,column:67}},type:"cond-expr",locations:[{start:{line:511,column:53},end:{line:511,column:62}},{start:{line:511,column:65},end:{line:511,column:67}}],line:511},2:{loc:{start:{line:517,column:6},end:{line:517,column:59}},type:"if",locations:[{start:{line:517,column:6},end:{line:517,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:517},3:{loc:{start:{line:523,column:13},end:{line:523,column:64}},type:"cond-expr",locations:[{start:{line:523,column:46},end:{line:523,column:48}},{start:{line:523,column:51},end:{line:523,column:64}}],line:523},4:{loc:{start:{line:657,column:24},end:{line:657,column:63}},type:"binary-expr",locations:[{start:{line:657,column:24},end:{line:657,column:38}},{start:{line:657,column:42},end:{line:657,column:63}}],line:657},5:{loc:{start:{line:713,column:6},end:{line:715,column:7}},type:"if",locations:[{start:{line:713,column:6},end:{line:715,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:713},6:{loc:{start:{line:751,column:6},end:{line:756,column:7}},type:"if",locations:[{start:{line:751,column:6},end:{line:756,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:751},7:{loc:{start:{line:752,column:8},end:{line:753,column:46}},type:"binary-expr",locations:[{start:{line:752,column:8},end:{line:752,column:36}},{start:{line:753,column:8},end:{line:753,column:46}}],line:752},8:{loc:{start:{line:765,column:4},end:{line:767,column:5}},type:"if",locations:[{start:{line:765,column:4},end:{line:767,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:765},9:{loc:{start:{line:768,column:4},end:{line:770,column:5}},type:"if",locations:[{start:{line:768,column:4},end:{line:770,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:768},10:{loc:{start:{line:771,column:4},end:{line:773,column:5}},type:"if",locations:[{start:{line:771,column:4},end:{line:773,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:771},11:{loc:{start:{line:777,column:4},end:{line:781,column:5}},type:"if",locations:[{start:{line:777,column:4},end:{line:781,column:5}},{start:{line:779,column:11},end:{line:781,column:5}}],line:777},12:{loc:{start:{line:807,column:8},end:{line:820,column:9}},type:"if",locations:[{start:{line:807,column:8},end:{line:820,column:9}},{start:{line:811,column:15},end:{line:820,column:9}}],line:807},13:{loc:{start:{line:811,column:15},end:{line:820,column:9}},type:"if",locations:[{start:{line:811,column:15},end:{line:820,column:9}},{start:{line:816,column:15},end:{line:820,column:9}}],line:811},14:{loc:{start:{line:825,column:8},end:{line:829,column:9}},type:"if",locations:[{start:{line:825,column:8},end:{line:829,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:825},15:{loc:{start:{line:830,column:8},end:{line:833,column:9}},type:"if",locations:[{start:{line:830,column:8},end:{line:833,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:830},16:{loc:{start:{line:857,column:25},end:{line:857,column:71}},type:"binary-expr",locations:[{start:{line:857,column:25},end:{line:857,column:45}},{start:{line:857,column:49},end:{line:857,column:71}}],line:857},17:{loc:{start:{line:861,column:33},end:{line:861,column:49}},type:"default-arg",locations:[{start:{line:861,column:47},end:{line:861,column:49}}],line:861},18:{loc:{start:{line:862,column:6},end:{line:892,column:7}},type:"if",locations:[{start:{line:862,column:6},end:{line:892,column:7}},{start:{line:869,column:13},end:{line:892,column:7}}],line:862},19:{loc:{start:{line:898,column:6},end:{line:908,column:7}},type:"if",locations:[{start:{line:898,column:6},end:{line:908,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:898},20:{loc:{start:{line:899,column:8},end:{line:900,column:69}},type:"binary-expr",locations:[{start:{line:899,column:8},end:{line:899,column:35}},{start:{line:900,column:8},end:{line:900,column:69}}],line:899},21:{loc:{start:{line:903,column:8},end:{line:907,column:9}},type:"if",locations:[{start:{line:903,column:8},end:{line:907,column:9}},{start:{line:905,column:15},end:{line:907,column:9}}],line:903},22:{loc:{start:{line:911,column:6},end:{line:913,column:7}},type:"if",locations:[{start:{line:911,column:6},end:{line:913,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:911},23:{loc:{start:{line:916,column:10},end:{line:917,column:32}},type:"binary-expr",locations:[{start:{line:916,column:11},end:{line:916,column:36}},{start:{line:916,column:40},end:{line:916,column:64}},{start:{line:917,column:10},end:{line:917,column:32}}],line:916},24:{loc:{start:{line:921,column:6},end:{line:932,column:7}},type:"switch",locations:[{start:{line:922,column:8},end:{line:925,column:15}},{start:{line:926,column:8},end:{line:931,column:15}}],line:921},25:{loc:{start:{line:935,column:8},end:{line:937,column:9}},type:"if",locations:[{start:{line:935,column:8},end:{line:937,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:935},26:{loc:{start:{line:940,column:33},end:{line:940,column:62}},type:"default-arg",locations:[{start:{line:940,column:43},end:{line:940,column:62}}],line:940},27:{loc:{start:{line:943,column:34},end:{line:943,column:51}},type:"binary-expr",locations:[{start:{line:943,column:34},end:{line:943,column:44}},{start:{line:943,column:48},end:{line:943,column:51}}],line:943},28:{loc:{start:{line:966,column:6},end:{line:970,column:7}},type:"if",locations:[{start:{line:966,column:6},end:{line:970,column:7}},{start:{line:968,column:13},end:{line:970,column:7}}],line:966},29:{loc:{start:{line:975,column:6},end:{line:988,column:7}},type:"if",locations:[{start:{line:975,column:6},end:{line:988,column:7}},{start:{line:981,column:13},end:{line:988,column:7}}],line:975},30:{loc:{start:{line:976,column:8},end:{line:977,column:43}},type:"binary-expr",locations:[{start:{line:976,column:9},end:{line:976,column:22}},{start:{line:976,column:26},end:{line:976,column:39}},{start:{line:977,column:8},end:{line:977,column:43}}],line:976},31:{loc:{start:{line:981,column:13},end:{line:988,column:7}},type:"if",locations:[{start:{line:981,column:13},end:{line:988,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:981},32:{loc:{start:{line:982,column:8},end:{line:984,column:43}},type:"binary-expr",locations:[{start:{line:982,column:9},end:{line:982,column:22}},{start:{line:982,column:26},end:{line:982,column:39}},{start:{line:983,column:8},end:{line:983,column:22}},{start:{line:984,column:8},end:{line:984,column:43}}],line:982},33:{loc:{start:{line:992,column:6},end:{line:994,column:7}},type:"if",locations:[{start:{line:992,column:6},end:{line:994,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:992},34:{loc:{start:{line:995,column:6},end:{line:999,column:7}},type:"if",locations:[{start:{line:995,column:6},end:{line:999,column:7}},{start:{line:997,column:13},end:{line:999,column:7}}],line:995},35:{loc:{start:{line:1006,column:10},end:{line:1011,column:11}},type:"if",locations:[{start:{line:1006,column:10},end:{line:1011,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1006},36:{loc:{start:{line:1012,column:10},end:{line:1015,column:11}},type:"if",locations:[{start:{line:1012,column:10},end:{line:1015,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1012},37:{loc:{start:{line:1016,column:10},end:{line:1018,column:11}},type:"if",locations:[{start:{line:1016,column:10},end:{line:1018,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1016},38:{loc:{start:{line:1068,column:17},end:{line:1068,column:35}},type:"default-arg",locations:[{start:{line:1068,column:31},end:{line:1068,column:35}}],line:1068},39:{loc:{start:{line:1071,column:6},end:{line:1074,column:7}},type:"if",locations:[{start:{line:1071,column:6},end:{line:1074,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1071},40:{loc:{start:{line:1076,column:6},end:{line:1078,column:7}},type:"if",locations:[{start:{line:1076,column:6},end:{line:1078,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1076},41:{loc:{start:{line:1082,column:6},end:{line:1084,column:7}},type:"if",locations:[{start:{line:1082,column:6},end:{line:1084,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1082},42:{loc:{start:{line:1089,column:14},end:{line:1089,column:32}},type:"default-arg",locations:[{start:{line:1089,column:28},end:{line:1089,column:32}}],line:1089},43:{loc:{start:{line:1093,column:6},end:{line:1098,column:7}},type:"if",locations:[{start:{line:1093,column:6},end:{line:1098,column:7}},{start:{line:1095,column:13},end:{line:1098,column:7}}],line:1093},44:{loc:{start:{line:1104,column:6},end:{line:1109,column:7}},type:"if",locations:[{start:{line:1104,column:6},end:{line:1109,column:7}},{start:{line:1107,column:13},end:{line:1109,column:7}}],line:1104},45:{loc:{start:{line:1116,column:6},end:{line:1235,column:7}},type:"switch",locations:[{start:{line:1117,column:8},end:{line:1123,column:15}},{start:{line:1124,column:8},end:{line:1211,column:15}},{start:{line:1212,column:8},end:{line:1217,column:15}},{start:{line:1218,column:8},end:{line:1220,column:15}},{start:{line:1221,column:8},end:{line:1224,column:15}},{start:{line:1225,column:8},end:{line:1230,column:11}},{start:{line:1231,column:8},end:{line:1234,column:15}}],line:1116},46:{loc:{start:{line:1120,column:10},end:{line:1122,column:11}},type:"if",locations:[{start:{line:1120,column:10},end:{line:1122,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1120},47:{loc:{start:{line:1125,column:10},end:{line:1154,column:11}},type:"if",locations:[{start:{line:1125,column:10},end:{line:1154,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1125},48:{loc:{start:{line:1125,column:14},end:{line:1125,column:69}},type:"binary-expr",locations:[{start:{line:1125,column:14},end:{line:1125,column:27}},{start:{line:1125,column:31},end:{line:1125,column:69}}],line:1125},49:{loc:{start:{line:1126,column:12},end:{line:1153,column:13}},type:"if",locations:[{start:{line:1126,column:12},end:{line:1153,column:13}},{start:{line:1148,column:19},end:{line:1153,column:13}}],line:1126},50:{loc:{start:{line:1157,column:10},end:{line:1210,column:11}},type:"switch",locations:[{start:{line:1158,column:12},end:{line:1172,column:19}},{start:{line:1173,column:12},end:{line:1174,column:31}},{start:{line:1176,column:12},end:{line:1177,column:45}},{start:{line:1179,column:12},end:{line:1179,column:30}},{start:{line:1180,column:12},end:{line:1180,column:27}},{start:{line:1181,column:12},end:{line:1207,column:19}},{start:{line:1208,column:12},end:{line:1209,column:19}}],line:1157},51:{loc:{start:{line:1182,column:14},end:{line:1188,column:15}},type:"if",locations:[{start:{line:1182,column:14},end:{line:1188,column:15}},{start:{line:1185,column:21},end:{line:1188,column:15}}],line:1182},52:{loc:{start:{line:1193,column:14},end:{line:1206,column:15}},type:"if",locations:[{start:{line:1193,column:14},end:{line:1206,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1193},53:{loc:{start:{line:1195,column:27},end:{line:1195,column:62}},type:"cond-expr",locations:[{start:{line:1195,column:46},end:{line:1195,column:58}},{start:{line:1195,column:61},end:{line:1195,column:62}}],line:1195},54:{loc:{start:{line:1203,column:16},end:{line:1205,column:17}},type:"if",locations:[{start:{line:1203,column:16},end:{line:1205,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1203},55:{loc:{start:{line:1227,column:10},end:{line:1230,column:11}},type:"if",locations:[{start:{line:1227,column:10},end:{line:1230,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1227},56:{loc:{start:{line:1248,column:6},end:{line:1253,column:7}},type:"if",locations:[{start:{line:1248,column:6},end:{line:1253,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1248},57:{loc:{start:{line:1261,column:6},end:{line:1395,column:7}},type:"switch",locations:[{start:{line:1262,column:8},end:{line:1262,column:19}},{start:{line:1263,column:8},end:{line:1301,column:15}},{start:{line:1302,column:8},end:{line:1312,column:15}},{start:{line:1313,column:8},end:{line:1324,column:15}},{start:{line:1325,column:8},end:{line:1340,column:15}},{start:{line:1341,column:8},end:{line:1341,column:27}},{start:{line:1342,column:8},end:{line:1358,column:15}},{start:{line:1359,column:8},end:{line:1363,column:15}},{start:{line:1364,column:8},end:{line:1377,column:15}},{start:{line:1378,column:8},end:{line:1378,column:32}},{start:{line:1379,column:8},end:{line:1389,column:15}},{start:{line:1390,column:8},end:{line:1394,column:15}}],line:1261},58:{loc:{start:{line:1270,column:10},end:{line:1275,column:11}},type:"if",locations:[{start:{line:1270,column:10},end:{line:1275,column:11}},{start:{line:1272,column:17},end:{line:1275,column:11}}],line:1270},59:{loc:{start:{line:1270,column:14},end:{line:1270,column:77}},type:"binary-expr",locations:[{start:{line:1270,column:14},end:{line:1270,column:26}},{start:{line:1270,column:30},end:{line:1270,column:51}},{start:{line:1270,column:55},end:{line:1270,column:77}}],line:1270},60:{loc:{start:{line:1272,column:17},end:{line:1275,column:11}},type:"if",locations:[{start:{line:1272,column:17},end:{line:1275,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1272},61:{loc:{start:{line:1277,column:10},end:{line:1279,column:11}},type:"if",locations:[{start:{line:1277,column:10},end:{line:1279,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1277},62:{loc:{start:{line:1282,column:12},end:{line:1298,column:13}},type:"if",locations:[{start:{line:1282,column:12},end:{line:1298,column:13}},{start:{line:1290,column:19},end:{line:1298,column:13}}],line:1282},63:{loc:{start:{line:1305,column:10},end:{line:1307,column:11}},type:"if",locations:[{start:{line:1305,column:10},end:{line:1307,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1305},64:{loc:{start:{line:1314,column:10},end:{line:1316,column:11}},type:"if",locations:[{start:{line:1314,column:10},end:{line:1316,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1314},65:{loc:{start:{line:1314,column:14},end:{line:1314,column:52}},type:"binary-expr",locations:[{start:{line:1314,column:14},end:{line:1314,column:25}},{start:{line:1314,column:29},end:{line:1314,column:52}}],line:1314},66:{loc:{start:{line:1317,column:10},end:{line:1319,column:11}},type:"if",locations:[{start:{line:1317,column:10},end:{line:1319,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1317},67:{loc:{start:{line:1317,column:14},end:{line:1317,column:48}},type:"binary-expr",locations:[{start:{line:1317,column:14},end:{line:1317,column:25}},{start:{line:1317,column:29},end:{line:1317,column:48}}],line:1317},68:{loc:{start:{line:1326,column:10},end:{line:1328,column:11}},type:"if",locations:[{start:{line:1326,column:10},end:{line:1328,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1326},69:{loc:{start:{line:1326,column:14},end:{line:1326,column:52}},type:"binary-expr",locations:[{start:{line:1326,column:14},end:{line:1326,column:25}},{start:{line:1326,column:29},end:{line:1326,column:52}}],line:1326},70:{loc:{start:{line:1329,column:10},end:{line:1331,column:11}},type:"if",locations:[{start:{line:1329,column:10},end:{line:1331,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1329},71:{loc:{start:{line:1329,column:14},end:{line:1329,column:48}},type:"binary-expr",locations:[{start:{line:1329,column:14},end:{line:1329,column:25}},{start:{line:1329,column:29},end:{line:1329,column:48}}],line:1329},72:{loc:{start:{line:1343,column:10},end:{line:1345,column:11}},type:"if",locations:[{start:{line:1343,column:10},end:{line:1345,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1343},73:{loc:{start:{line:1343,column:14},end:{line:1343,column:52}},type:"binary-expr",locations:[{start:{line:1343,column:14},end:{line:1343,column:25}},{start:{line:1343,column:29},end:{line:1343,column:52}}],line:1343},74:{loc:{start:{line:1346,column:10},end:{line:1348,column:11}},type:"if",locations:[{start:{line:1346,column:10},end:{line:1348,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1346},75:{loc:{start:{line:1346,column:14},end:{line:1346,column:48}},type:"binary-expr",locations:[{start:{line:1346,column:14},end:{line:1346,column:25}},{start:{line:1346,column:29},end:{line:1346,column:48}}],line:1346},76:{loc:{start:{line:1353,column:10},end:{line:1355,column:11}},type:"if",locations:[{start:{line:1353,column:10},end:{line:1355,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1353},77:{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},78:{loc:{start:{line:1382,column:14},end:{line:1382,column:47}},type:"binary-expr",locations:[{start:{line:1382,column:14},end:{line:1382,column:25}},{start:{line:1382,column:29},end:{line:1382,column:47}}],line:1382},79:{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},80:{loc:{start:{line:1402,column:6},end:{line:1419,column:7}},type:"if",locations:[{start:{line:1402,column:6},end:{line:1419,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1402},81:{loc:{start:{line:1422,column:18},end:{line:1422,column:79}},type:"cond-expr",locations:[{start:{line:1422,column:39},end:{line:1422,column:58}},{start:{line:1422,column:61},end:{line:1422,column:79}}],line:1422},82:{loc:{start:{line:1462,column:6},end:{line:1466,column:7}},type:"if",locations:[{start:{line:1462,column:6},end:{line:1466,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1462},83:{loc:{start:{line:1467,column:6},end:{line:1470,column:7}},type:"if",locations:[{start:{line:1467,column:6},end:{line:1470,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1467},84:{loc:{start:{line:1476,column:13},end:{line:1476,column:26}},type:"default-arg",locations:[{start:{line:1476,column:20},end:{line:1476,column:26}}],line:1476},85:{loc:{start:{line:1478,column:6},end:{line:1552,column:7}},type:"if",locations:[{start:{line:1478,column:6},end:{line:1552,column:7}},{start:{line:1504,column:13},end:{line:1552,column:7}}],line:1478},86:{loc:{start:{line:1479,column:8},end:{line:1503,column:9}},type:"if",locations:[{start:{line:1479,column:8},end:{line:1503,column:9}},{start:{line:1482,column:15},end:{line:1503,column:9}}],line:1479},87:{loc:{start:{line:1483,column:10},end:{line:1486,column:11}},type:"if",locations:[{start:{line:1483,column:10},end:{line:1486,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1483},88:{loc:{start:{line:1514,column:12},end:{line:1537,column:13}},type:"if",locations:[{start:{line:1514,column:12},end:{line:1537,column:13}},{start:{line:1532,column:19},end:{line:1537,column:13}}],line:1514},89:{loc:{start:{line:1515,column:14},end:{line:1523,column:15}},type:"if",locations:[{start:{line:1515,column:14},end:{line:1523,column:15}},{start:{line:1519,column:21},end:{line:1523,column:15}}],line:1515},90:{loc:{start:{line:1524,column:14},end:{line:1527,column:15}},type:"if",locations:[{start:{line:1524,column:14},end:{line:1527,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1524},91:{loc:{start:{line:1543,column:12},end:{line:1549,column:13}},type:"if",locations:[{start:{line:1543,column:12},end:{line:1549,column:13}},{start:{line:1546,column:19},end:{line:1549,column:13}}],line:1543},92:{loc:{start:{line:1560,column:6},end:{line:1563,column:7}},type:"if",locations:[{start:{line:1560,column:6},end:{line:1563,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1560},93:{loc:{start:{line:1582,column:10},end:{line:1588,column:11}},type:"if",locations:[{start:{line:1582,column:10},end:{line:1588,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1582},94:{loc:{start:{line:1639,column:6},end:{line:1666,column:7}},type:"if",locations:[{start:{line:1639,column:6},end:{line:1666,column:7}},{start:{line:1642,column:13},end:{line:1666,column:7}}],line:1639},95:{loc:{start:{line:1642,column:13},end:{line:1666,column:7}},type:"if",locations:[{start:{line:1642,column:13},end:{line:1666,column:7}},{start:{line:1652,column:13},end:{line:1666,column:7}}],line:1642},96:{loc:{start:{line:1652,column:13},end:{line:1666,column:7}},type:"if",locations:[{start:{line:1652,column:13},end:{line:1666,column:7}},{start:{line:1660,column:13},end:{line:1666,column:7}}],line:1652},97:{loc:{start:{line:1654,column:8},end:{line:1656,column:9}},type:"if",locations:[{start:{line:1654,column:8},end:{line:1656,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1654},98:{loc:{start:{line:1660,column:13},end:{line:1666,column:7}},type:"if",locations:[{start:{line:1660,column:13},end:{line:1666,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1660},99:{loc:{start:{line:1662,column:8},end:{line:1664,column:9}},type:"if",locations:[{start:{line:1662,column:8},end:{line:1664,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1662},100:{loc:{start:{line:1692,column:6},end:{line:1694,column:7}},type:"if",locations:[{start:{line:1692,column:6},end:{line:1694,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1692},101:{loc:{start:{line:1692,column:10},end:{line:1692,column:58}},type:"binary-expr",locations:[{start:{line:1692,column:10},end:{line:1692,column:40}},{start:{line:1692,column:44},end:{line:1692,column:58}}],line:1692}},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},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},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],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0,0],24:[0,0],25:[0,0],26:[0],27:[0,0],28:[0,0],29:[0,0],30:[0,0,0],31:[0,0],32:[0,0,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],43:[0,0],44:[0,0],45:[0,0,0,0,0,0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0,0,0,0,0,0],51:[0,0],52:[0,0],53:[0,0],54:[0,0],55:[0,0],56:[0,0],57:[0,0,0,0,0,0,0,0,0,0,0,0],58:[0,0],59:[0,0,0],60:[0,0],61:[0,0],62:[0,0],63:[0,0],64:[0,0],65:[0,0],66:[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],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,0],95:[0,0],96:[0,0],97:[0,0],98:[0,0],99:[0,0],100:[0,0],101:[0,0]},inputSourceMap:{version:3,sources:["ScriptRunner.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4UA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;;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;;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",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--\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\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-select\n outlined\n dense\n hide-details\n :items=\"fileList\"\n :disabled=\"fileList.length <= 1\"\n label=\"Filename\"\n v-model=\"fullFilename\"\n @change=\"fileNameChanged\"\n id=\"filename\"\n data-test=\"filename\"\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> Open Environment Dialog </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 id=\"editorbox\" class=\"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 id=\"editor\" @contextmenu.prevent=\"showExecuteSelectionMenu\"></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 >\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 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 <input-metadata-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :target=\"inputMetadata.target\"\n @response=\"inputMetadata.callback\"\n />\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 @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=\"showStartedScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n :connect-in-new-tab=\"!!fileModified\"\n @close=\"\n () => {\n showStartedScripts = 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 { toDate, 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'\n\nimport AskDialog from '@/tools/ScriptRunner/Dialogs/AskDialog'\nimport FileDialog from '@/tools/ScriptRunner/Dialogs/FileDialog'\nimport InformationDialog from '@/tools/ScriptRunner/Dialogs/InformationDialog'\nimport InputMetadataDialog from '@/tools/ScriptRunner/Dialogs/InputMetadataDialog'\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 {\n CmdCompleter,\n TlmCompleter,\n MnemonicChecker,\n} from '@/tools/ScriptRunner/autocomplete'\nimport { SleepAnnotator } from '@/tools/ScriptRunner/annotations'\nimport RunningScripts from './RunningScripts.vue'\n\nconst NEW_FILENAME = '<Untitled>'\nconst START = 'Start'\nconst GO = 'Go'\nconst PAUSE = 'Pause'\nconst RETRY = 'Retry'\n\nexport default {\n components: {\n FileOpenSaveDialog,\n EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n FileDialog,\n InformationDialog,\n InputMetadataDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: '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 currentFilename: null,\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: ' ',\n scriptId: ' ',\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 target: null,\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 showStartedScripts: false,\n activePromptId: '',\n }\n },\n computed: {\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.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 command: () => {\n this.newFile()\n },\n },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n command: () => {\n this.openFile()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\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 command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'View Started Scripts',\n icon: 'mdi-run',\n command: () => {\n this.showStartedScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Show Environment',\n icon: 'mdi-library',\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Show Metadata',\n icon: 'mdi-calendar',\n command: () => {\n ;(this.inputMetadata.callback = () => {}),\n (this.inputMetadata.show = !this.inputMetadata.show)\n },\n },\n {\n divider: true,\n },\n {\n label: 'Ruby Syntax Check',\n icon: 'mdi-language-ruby',\n command: () => {\n this.rubySyntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'View Instrumented Script',\n icon: 'mdi-code-braces-box',\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Show Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId || 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 command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\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 },\n created: function () {\n window.onbeforeunload = this.unlockFile\n },\n mounted: async function () {\n this.editor = ace.edit('editor')\n this.editor.setTheme('ace/theme/twilight')\n this.editor.session.setMode('ace/mode/ruby')\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(() => {\n // Only save if modified and visible (e.g. not open in another tab)\n if (\n this.fileModified.length > 0 &&\n document.visibilityState === 'visible'\n ) {\n 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.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\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 fileNameChanged(filename) {\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 this.filename = filename\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: '404 Not Found',\n body: `Failed to load running script id: ${id}`,\n })\n } else {\n this.alertType = 'success'\n this.alertText = `Currently ${response.data.length} running scripts.`\n this.showAlert = true\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 format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') + '_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 if (\n $event.domEvent.which === 1 && // left click\n $event.domEvent.path[0].classList.contains('ace_gutter-cell') // on a line number\n ) {\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 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 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 read-only (we're running)\n if (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 localStorage.scope,\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.editor.setReadOnly(false)\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n start(event, suiteRunner = null) {\n 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(event, suiteRunner = null) {\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 // console.log(data) // Uncomment for debugging\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 this.messages.unshift({ message: data.line })\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 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 },\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 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 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.combo = true\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 'input_metadata':\n this.inputMetadata.target = data.args[0]\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.inputMetadata.show = true\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 `${localStorage.scope}/tmp/${file.name}`\n )}?bucket=config`\n )\n // This pushes the file into S3 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.filename = NEW_FILENAME\n this.currentFilename = 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 openFile() {\n this.fileOpen = true\n },\n // Called by the FileOpenDialog to set the file contents\n setFile({ file, locked, breakpoints }) {\n this.files = {} // Clear the cached file list\n this.unlockFile() // first unlock what was just being edited\n this.suiteRunner = false\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.lockedBy = locked\n this.envDisabled = false\n\n if (file.suites) {\n this.suiteRunner = true\n this.suiteMap = file.suites\n this.startOrGoDisabled = true\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 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 } else {\n if (this.tempFilename === null) {\n this.tempFilename =\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') + '_temp.rb'\n }\n this.showSave = true\n Api.post(`/script-api/scripts/${this.tempFilename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n })\n .catch((error) => {\n this.showSave = false\n })\n }\n } else {\n // Save a file by posting the new contents\n this.showSave = true\n 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 })\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 this.lockFile() // Ensure this file is locked for editing\n },\n saveAs() {\n this.showSaveAs = true\n },\n saveAsFilename(filename) {\n this.filename = filename\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n this.tempFilename = null\n }\n this.saveFile()\n },\n delete() {\n // TODO: Delete instead of post\n this.$dialog\n .confirm(`Permanently delete file: ${this.filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.post(`/script-api/scripts/${this.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 },\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 >>> 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</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"21af326ff7a6fa7099c14d5a50d50b555bbfc877"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return ct=function(){return s},s}ct();var rt=(ct().s[0]++,"<Untitled>"),ut=(ct().s[1]++,"Start"),mt=(ct().s[2]++,"Go"),At=(ct().s[3]++,"Pause"),dt=(ct().s[4]++,"Retry"),pt={components:{FileOpenSaveDialog:O,EnvironmentDialog:Z,Multipane:S.x,MultipaneResizer:S.P,TopBar:J,AskDialog:on,FileDialog:An,InformationDialog:bn,InputMetadataDialog:Dn,PromptDialog:Nn,ResultsDialog:jn,ScriptEnvironmentDialog:le,SimpleTextDialog:q,SuiteRunner:ue,RunningScripts:at,ScriptLogMessages:ve},data:function(){return ct().f[0]++,ct().s[5]++,{title:"Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:" ",scriptId:" ",startOrGoButton:ut,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:At,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:rt,tempFilename:null,fileModified:"",fileOpen:!1,lockedBy:null,showReadOnlyToast:!1,showSaveAs:!1,areYouSure:!1,subscription:null,cable:null,fatal:!1,messages:[],maxArrayLength:200,Range:_.require("ace/range").Range,ask:{show:!1,question:"",default:null,password:!1,answerRequired:!0,callback:function(){ct().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:function(){ct().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:function(){ct().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,target:null,callback:function(){ct().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new Be,showStartedScripts:!1,activePromptId:""}},computed:{fileList:function(){ct().f[5]++;var n=(ct().s[6]++,Object.keys(this.files));return ct().s[7]++,n.push(this.fullFilename),ct().s[8]++,(0,r.Z)(new Set(n))},environmentIcon:function(){return ct().f[6]++,ct().s[9]++,this.scriptEnvironment.env.length>0?(ct().b[0][0]++,"mdi-bookmark"):(ct().b[0][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return ct().f[7]++,ct().s[10]++,this.scriptEnvironment.env.length>0?(ct().b[1][0]++,"primary"):(ct().b[1][1]++,"")},readOnly:function(){return ct().f[8]++,ct().s[11]++,!!this.lockedBy},fullFilename:function(){return ct().f[9]++,ct().s[12]++,this.currentFilename?(ct().b[2][0]++,ct().s[13]++,this.currentFilename):(ct().b[2][1]++,ct().s[14]++,this.filename)},filenameOrBlank:function(){return ct().f[10]++,ct().s[15]++,this.filename===rt?(ct().b[3][0]++,""):(ct().b[3][1]++,this.filename)},menus:function(){var n=this;return ct().f[11]++,ct().s[16]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",command:function(){ct().f[12]++,ct().s[17]++,n.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:function(){ct().f[13]++,ct().s[18]++,n.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:function(){ct().f[14]++,ct().s[19]++,n.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:function(){ct().f[15]++,ct().s[20]++,n.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",command:function(){ct().f[16]++,ct().s[21]++,n.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:function(){ct().f[17]++,ct().s[22]++,n.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:function(){ct().f[18]++,ct().s[23]++,n.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",command:function(){ct().f[19]++,ct().s[24]++,n.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"View Started Scripts",icon:"mdi-run",command:function(){ct().f[20]++,ct().s[25]++,n.showStartedScripts=!0}},{divider:!0},{label:"Show Environment",icon:"mdi-library",command:function(){ct().f[21]++,ct().s[26]++,n.showEnvironment=!n.showEnvironment}},{label:"Show Metadata",icon:"mdi-calendar",command:function(){ct().f[22]++,ct().s[27]++,n.inputMetadata.callback=function(){ct().f[23]++},n.inputMetadata.show=!n.inputMetadata.show}},{divider:!0},{label:"Ruby Syntax Check",icon:"mdi-language-ruby",command:function(){ct().f[24]++,ct().s[28]++,n.rubySyntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",command:function(){ct().f[25]++,ct().s[29]++,n.checkMnemonics()}},{label:"View Instrumented Script",icon:"mdi-code-braces-box",command:function(){ct().f[26]++,ct().s[30]++,n.showInstrumented()}},{label:"Show Call Stack",icon:"mdi-format-list-numbered",disabled:(ct().b[4][0]++,!this.scriptId||(ct().b[4][1]++," "===this.scriptId)),command:function(){ct().f[27]++,ct().s[31]++,n.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:function(){ct().f[28]++,ct().s[32]++,n.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",command:function(){ct().f[29]++,ct().s[33]++,n.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",command:function(){ct().f[30]++,ct().s[34]++,n.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return ct().f[31]++,ct().s[35]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear these breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(n){ct().f[32]++,ct().s[36]++,this.showReadOnlyToast=n,ct().s[37]++,this.suiteRunner?ct().b[5][1]++:(ct().b[5][0]++,ct().s[38]++,this.startOrGoDisabled=n),ct().s[39]++,this.editor.setReadOnly(n)}},created:function(){ct().f[33]++,ct().s[40]++,window.onbeforeunload=this.unlockFile},mounted:function(){var n=(0,c.Z)((0,a.Z)().mark((function n(){var e,t=this;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return ct().f[34]++,ct().s[41]++,this.editor=_.edit("editor"),ct().s[42]++,this.editor.setTheme("ace/theme/twilight"),ct().s[43]++,this.editor.session.setMode("ace/mode/ruby"),ct().s[44]++,this.editor.session.setTabSize(2),ct().s[45]++,this.editor.session.setUseWrapMode(!0),ct().s[46]++,this.editor.$blockScrolling=1/0,ct().s[47]++,this.editor.setOption("enableBasicAutocompletion",!0),ct().s[48]++,this.editor.setOption("enableLiveAutocompletion",!0),ct().s[49]++,this.editor.completers=[new Me,new Te],ct().s[50]++,this.editor.setHighlightActiveLine(!1),ct().s[51]++,this.editor.focus(),ct().s[52]++,this.editor.on("guttermousedown",this.toggleBreakpoint),ct().s[53]++,this.editor.session.on("tokenizerUpdate",this.onChange),ct().s[54]++,e=new Qe(this.editor),ct().s[55]++,this.editor.session.on("change",(function(n,l){ct().f[35]++,ct().s[56]++,e.annotate(n,l),ct().s[57]++,t.updateBreakpoints(n,l)})),ct().s[58]++,window.addEventListener("keydown",this.keydown),ct().s[59]++,this.cable=new h("/script-api/cable"),ct().s[60]++,n.next=37,this.tryLoadRunningScript(this.$route.params.id);case 37:ct().s[61]++,this.autoSaveInterval=setInterval((function(){ct().f[36]++,ct().s[62]++,ct().b[7][0]++,t.fileModified.length>0&&(ct().b[7][1]++,"visible"===document.visibilityState)?(ct().b[6][0]++,ct().s[63]++,t.saveFile("auto")):ct().b[6][1]++}),6e4);case 39:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),beforeDestroy:function(){ct().f[37]++,ct().s[64]++,this.editor.destroy(),ct().s[65]++,this.editor.container.remove()},destroyed:function(){ct().f[38]++,ct().s[66]++,this.unlockFile(),ct().s[67]++,null!=this.autoSaveInterval?(ct().b[8][0]++,ct().s[68]++,clearInterval(this.autoSaveInterval)):ct().b[8][1]++,ct().s[69]++,this.tempFilename?(ct().b[9][0]++,ct().s[70]++,k.post("/script-api/scripts/".concat(this.tempFilename,"/delete"))):ct().b[9][1]++,ct().s[71]++,this.subscription?(ct().b[10][0]++,ct().s[72]++,this.subscription.unsubscribe()):ct().b[10][1]++,ct().s[73]++,this.cable.disconnect()},beforeRouteUpdate:function(n,e,t){ct().f[39]++,ct().s[74]++,n.params.id?(ct().b[11][0]++,ct().s[75]++,this.tryLoadRunningScript(n.params.id).then(t)):(ct().b[11][1]++,ct().s[76]++,t())},methods:{fileNameChanged:function(n){ct().f[40]++,ct().s[77]++,this.editor.setValue(this.files[n].content),ct().s[78]++,this.restoreBreakpoints(n),ct().s[79]++,this.editor.clearSelection(),ct().s[80]++,this.removeAllMarkers(),ct().s[81]++,this.editor.session.addMarker(new this.Range(this.files[n].lineNo-1,0,this.files[n].lineNo-1,1),"".concat(this.state,"Marker"),"fullLine"),ct().s[82]++,this.editor.gotoLine(this.files[n].lineNo),ct().s[83]++,this.filename=n},tryLoadRunningScript:function(n){var e=this;return ct().f[41]++,ct().s[84]++,k.get("/script-api/running-script").then((function(t){ct().f[42]++;var l=(ct().s[85]++,t.data.find((function(e){return ct().f[43]++,ct().s[86]++,"".concat(e.id)==="".concat(n)})));ct().s[87]++,l?(ct().b[12][0]++,ct().s[88]++,e.filename=l.name,ct().s[89]++,e.tryLoadSuites(),ct().s[90]++,e.scriptStart(l.id)):(ct().b[12][1]++,ct().s[91]++,n?(ct().b[13][0]++,ct().s[92]++,e.$notify.caution({title:"404 Not Found",body:"Failed to load running script id: ".concat(n)})):(ct().b[13][1]++,ct().s[93]++,e.alertType="success",ct().s[94]++,e.alertText="Currently ".concat(t.data.length," running scripts."),ct().s[95]++,e.showAlert=!0))}))},tryLoadSuites:function(){var n=this;ct().f[44]++,ct().s[96]++,k.get("/script-api/scripts/".concat(this.filename)).then((function(e){ct().f[45]++,ct().s[97]++,e.data.suites?(ct().b[14][0]++,ct().s[98]++,n.startOrGoDisabled=!0,ct().s[99]++,n.suiteRunner=!0,ct().s[100]++,n.suiteMap=JSON.parse(e.data.suites)):ct().b[14][1]++,ct().s[101]++,e.data.error?(ct().b[15][0]++,ct().s[102]++,n.suiteError=e.data.error,ct().s[103]++,n.showSuiteError=!0):ct().b[15][1]++,ct().s[104]++,n.disableSuiteButtons=0==e.data.success}))},showExecuteSelectionMenu:function(n){ct().f[46]++,ct().s[105]++,this.menuX=n.pageX,ct().s[106]++,this.menuY=n.pageY,ct().s[107]++,this.executeSelectionMenu=!0},runFromCursor:function(){ct().f[47]++;var n=(ct().s[108]++,this.editor.getCursorPosition().row),e=(ct().s[109]++,this.editor.session.doc.getLines(n,this.editor.session.doc.getLength()).join("\n")),t=(ct().s[110]++,this.getBreakpointRows().filter((function(e){return ct().f[48]++,ct().s[111]++,e>=n})).map((function(e){return ct().f[49]++,ct().s[112]++,e-n})));ct().s[113]++,this.executeText(e,t)},executeSelection:function(){ct().f[50]++;var n=(ct().s[114]++,this.editor.getSelectedText()),e=(ct().s[115]++,this.editor.getSelectionRange()),t=(ct().s[116]++,this.getBreakpointRows().filter((function(n){return ct().f[51]++,ct().s[117]++,ct().b[16][0]++,n<=e.end.row&&(ct().b[16][1]++,n>=e.start.row)})).map((function(n){return ct().f[52]++,ct().s[118]++,n-e.start.row})));ct().s[119]++,this.executeText(n,t)},executeText:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(ct().b[17][0]++,[]);if(ct().f[53]++,ct().s[120]++,"error"===this.state){ct().b[18][0]++;var l=(ct().s[121]++,n.split("\n"));ct().s[122]++;var i,o=(0,s.Z)(l);try{for(o.s();!(i=o.n()).done;){var a=i.value;ct().s[123]++,this.debug=a.trim(),ct().s[124]++,this.debugKeydown({key:"Enter"})}}catch(r){o.e(r)}finally{o.f()}}else{ct().b[18][1]++;var c=(ct().s[125]++,(0,x.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb");ct().s[126]++,k.post("/script-api/scripts/".concat(c),{data:{text:n,breakpoints:t}}).then((function(n){return ct().f[54]++,ct().s[127]++,k.post("/script-api/scripts/".concat(c,"/run"),{data:{environment:e.scriptEnvironment.env}})})).then((function(n){ct().f[55]++,ct().s[128]++,window.open("/tools/scriptrunner/".concat(n.data))}))}},clearBreakpoints:function(){ct().f[56]++,ct().s[129]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(n){if(ct().f[57]++,ct().s[130]++,ct().b[20][0]++,1===n.domEvent.which&&(ct().b[20][1]++,n.domEvent.path[0].classList.contains("ace_gutter-cell"))){ct().b[19][0]++;var e=(ct().s[131]++,n.getDocumentPosition().row);ct().s[132]++,n.editor.session.getBreakpoints(e,0)[e]?(ct().b[21][0]++,ct().s[133]++,n.editor.session.clearBreakpoint(e)):(ct().b[21][1]++,ct().s[134]++,n.editor.session.setBreakpoint(e))}else ct().b[19][1]++},updateBreakpoints:function(n,e){if(ct().f[58]++,ct().s[135]++,n.lines.length<=1)return ct().b[22][0]++,void ct().s[136]++;ct().b[22][1]++;var t=(ct().s[137]++,this.getBreakpointRows(e).filter((function(e){return ct().f[59]++,ct().s[138]++,ct().b[23][0]++,0===n.start.column&&(ct().b[23][1]++,e===n.start.row)||(ct().b[23][2]++,e>n.start.row)}))),l=(ct().s[139]++,[]),i=(ct().s[140]++,0);switch(ct().s[141]++,n.action){case"insert":ct().b[24][0]++,ct().s[142]++,i=n.lines.length-1,ct().s[143]++,t.reverse(),ct().s[144]++;break;case"remove":ct().b[24][1]++,ct().s[145]++,i=1-n.lines.length,ct().s[146]++,l=(0,r.Z)(Array(n.lines.length).keys()).map((function(e){return ct().f[60]++,ct().s[147]++,e+n.start.row})),ct().s[148]++;break}ct().s[149]++,t.forEach((function(n){ct().f[61]++,ct().s[150]++,e.clearBreakpoint(n),ct().s[151]++,l.includes(n)?ct().b[25][1]++:(ct().b[25][0]++,ct().s[152]++,e.setBreakpoint(n+i))}))},getBreakpointRows:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(ct().b[26][0]++,this.editor.session);return ct().f[62]++,ct().s[153]++,n.getBreakpoints().map((function(n,e){return ct().f[63]++,ct().s[154]++,ct().b[27][0]++,n&&(ct().b[27][1]++,e)})).filter(Number.isInteger)},restoreBreakpoints:function(n){var e,t=this;ct().f[64]++,ct().s[155]++,this.clearBreakpoints(),ct().s[156]++,null===(e=this.breakpoints[n])||void 0===e||e.forEach((function(n){ct().f[65]++,ct().s[157]++,t.editor.session.setBreakpoint(n)}))},deleteAllBreakpoints:function(){var n=this;ct().f[66]++,ct().s[158]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((function(n){return ct().f[67]++,ct().s[159]++,k["delete"]("/script-api/breakpoints/delete/all")})).then((function(e){ct().f[68]++,ct().s[160]++,n.clearBreakpoints()}))},suiteRunnerButton:function(n){ct().f[69]++,ct().s[161]++,this.startOrGoButton===ut?(ct().b[28][0]++,ct().s[162]++,this.start(n,"suiteRunner")):(ct().b[28][1]++,ct().s[163]++,this.go(n,"suiteRunner"))},keydown:function(n){ct().f[70]++,ct().s[164]++,ct().b[30][0]++,(n.metaKey||(ct().b[30][1]++,n.ctrlKey))&&(ct().b[30][2]++,n.keyCode==="S".charCodeAt(0))?(ct().b[29][0]++,ct().s[165]++,n.preventDefault(),ct().s[166]++,this.saveFile()):(ct().b[29][1]++,ct().s[167]++,ct().b[32][0]++,(n.metaKey||(ct().b[32][1]++,n.ctrlKey))&&(ct().b[32][2]++,n.shiftKey)&&(ct().b[32][3]++,n.keyCode==="S".charCodeAt(0))?(ct().b[31][0]++,ct().s[168]++,n.preventDefault(),ct().s[169]++,this.saveAs()):ct().b[31][1]++)},onChange:function(n){if(ct().f[71]++,ct().s[170]++,!0===this.editor.getReadOnly())return ct().b[33][0]++,void ct().s[171]++;ct().b[33][1]++,ct().s[172]++,this.editor.session.getUndoManager().canUndo()?(ct().b[34][0]++,ct().s[173]++,this.fileModified="*"):(ct().b[34][1]++,ct().s[174]++,this.fileModified="")},checkMnemonics:function(){var n=this;ct().f[72]++,ct().s[175]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((function(e){var t=e.skipped,l=e.problems;ct().f[73]++;var i=(ct().s[176]++,"");if(ct().s[177]++,l.length){ct().b[35][0]++;var o=(ct().s[178]++,l.map((function(n){return ct().f[74]++,ct().s[179]++,"".concat(n.lineNumber,": ").concat(n.error)})).join("<br/>"));ct().s[180]++,i+="<strong>The following lines have problems:</strong><br/>".concat(o,"<br/><br/>")}else ct().b[35][1]++;ct().s[181]++,t.length?(ct().b[36][0]++,ct().s[182]++,i+="<strong>Mnemonics with string interpolation were not checked.</strong>"):ct().b[36][1]++,ct().s[183]++,""===i?(ct().b[37][0]++,ct().s[184]++,i="<strong>Everything looks good!</strong>"):ct().b[37][1]++,ct().s[185]++,n.$dialog.alert(i.trim(),{html:!0})}))},scriptStart:function(n){var e=this;ct().f[75]++,ct().s[186]++,this.disableSuiteButtons=!0,ct().s[187]++,this.startOrGoDisabled=!0,ct().s[188]++,this.envDisabled=!0,ct().s[189]++,this.pauseOrRetryDisabled=!0,ct().s[190]++,this.stopDisabled=!0,ct().s[191]++,this.state="Connecting...",ct().s[192]++,this.startOrGoButton=mt,ct().s[193]++,this.scriptId=n,ct().s[194]++,this.editor.setReadOnly(!0),ct().s[195]++,this.cable.createSubscription("RunningScriptChannel",localStorage.scope,{received:function(n){return ct().f[76]++,ct().s[196]++,e.received(n)}},{id:this.scriptId}).then((function(n){ct().f[77]++,ct().s[197]++,e.subscription=n}))},scriptComplete:function(){ct().f[78]++,ct().s[198]++,this.disableSuiteButtons=!1,ct().s[199]++,this.startOrGoButton=ut,ct().s[200]++,this.pauseOrRetryButton=At,ct().s[201]++,this.startOrGoDisabled=this.suiteRunner,ct().s[202]++,this.envDisabled=!1,ct().s[203]++,this.pauseOrRetryDisabled=!0,ct().s[204]++,this.stopDisabled=!0,ct().s[205]++,this.state="stopped",ct().s[206]++,this.fatal=!1,ct().s[207]++,this.scriptId=null,ct().s[208]++,this.editor.setReadOnly(!1)},environmentHandler:function(n){ct().f[79]++,ct().s[209]++,this.scriptEnvironment.env=n},startHandler:function(){ct().f[80]++,ct().s[210]++,this.start()},start:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(ct().b[38][0]++,null);ct().f[81]++,ct().s[211]++,this.saveFile("start");var l=(ct().s[212]++,this.filename);ct().s[213]++,this.filename===rt?(ct().b[39][0]++,ct().s[214]++,l=this.tempFilename):ct().b[39][1]++;var i=(ct().s[215]++,"/script-api/scripts/".concat(l,"/run"));ct().s[216]++,this.showDisconnect?(ct().b[40][0]++,ct().s[217]++,i+="/disconnect"):ct().b[40][1]++;var o=(ct().s[218]++,{environment:this.scriptEnvironment.env});ct().s[219]++,t?(ct().b[41][0]++,ct().s[220]++,o["suiteRunner"]=n):ct().b[41][1]++,ct().s[221]++,k.post(i,{data:o}).then((function(n){ct().f[82]++,ct().s[222]++,e.scriptStart(n.data)}))},go:function(n){arguments.length>1&&void 0!==arguments[1]||ct().b[42][0]++;ct().f[83]++,ct().s[223]++,k.post("/script-api/running-script/".concat(this.scriptId,"/go"))},pauseOrRetry:function(){ct().f[84]++,ct().s[224]++,this.pauseOrRetryButton===At?(ct().b[43][0]++,ct().s[225]++,k.post("/script-api/running-script/".concat(this.scriptId,"/pause"))):(ct().b[43][1]++,ct().s[226]++,this.pauseOrRetryButton=At,ct().s[227]++,k.post("/script-api/running-script/".concat(this.scriptId,"/retry")))},stop:function(){ct().f[85]++,ct().s[228]++,this.fatal?(ct().b[44][0]++,ct().s[229]++,this.removeAllMarkers(),ct().s[230]++,this.scriptComplete()):(ct().b[44][1]++,ct().s[231]++,k.post("/script-api/running-script/".concat(this.scriptId,"/stop")))},step:function(){ct().f[86]++,ct().s[232]++,k.post("/script-api/running-script/".concat(this.scriptId,"/step"))},received:function(n){var e=this;switch(ct().f[87]++,ct().s[233]++,n.type){case"file":ct().b[45][0]++,ct().s[234]++,this.files[n.filename]={content:n.text,lineNo:0},ct().s[235]++,this.breakpoints[n.filename]=n.breakpoints,ct().s[236]++,this.currentFilename===n.filename?(ct().b[46][0]++,ct().s[237]++,this.restoreBreakpoints(n.filename)):ct().b[46][1]++,ct().s[238]++;break;case"line":ct().b[45][1]++,ct().s[239]++,ct().b[48][0]++,n.filename&&(ct().b[48][1]++,n.filename!==this.currentFilename)?(ct().b[47][0]++,ct().s[240]++,this.files[n.filename]?(ct().b[49][1]++,ct().s[248]++,this.editor.setValue(this.files[n.filename].content),ct().s[249]++,this.restoreBreakpoints(n.filename),ct().s[250]++,this.editor.clearSelection(),ct().s[251]++,this.currentFilename=n.filename):(ct().b[49][0]++,ct().s[241]++,this.files[n.filename]={content:"",lineNo:0},ct().s[242]++,k.get("/script-api/scripts/".concat(n.filename)).then((function(t){ct().f[88]++,ct().s[243]++,e.files[n.filename]={content:t.data.contents,lineNo:0},ct().s[244]++,e.breakpoints[n.filename]=t.data.breakpoints,ct().s[245]++,e.restoreBreakpoints(n.filename),ct().s[246]++,e.currentFilename=null})).catch((function(t){ct().f[89]++,ct().s[247]++,e.files[n.filename]=null})))):ct().b[47][1]++,ct().s[252]++,this.state=n.state;var t=(ct().s[253]++,this.editor.session.getMarkers());switch(ct().s[254]++,this.state){case"running":ct().b[50][0]++,ct().s[255]++,this.startOrGoDisabled=!1,ct().s[256]++,this.pauseOrRetryDisabled=!1,ct().s[257]++,this.stopDisabled=!1,ct().s[258]++,this.pauseOrRetryButton=At,ct().s[259]++,this.removeAllMarkers(),ct().s[260]++,this.editor.session.addMarker(new this.Range(n.line_no-1,0,n.line_no-1,1),"runningMarker","fullLine"),ct().s[261]++,this.editor.gotoLine(n.line_no),ct().s[262]++,this.files[n.filename].lineNo=n.line_no,ct().s[263]++;break;case"fatal":ct().b[50][1]++,ct().s[264]++,this.fatal=!0;case"error":ct().b[50][2]++,ct().s[265]++,this.pauseOrRetryButton=dt;case"breakpoint":ct().b[50][3]++;case"waiting":ct().b[50][4]++;case"paused":ct().b[50][5]++,ct().s[266]++,"fatal"==this.state?(ct().b[51][0]++,ct().s[267]++,this.startOrGoDisabled=!0,ct().s[268]++,this.pauseOrRetryDisabled=!0):(ct().b[51][1]++,ct().s[269]++,this.startOrGoDisabled=!1,ct().s[270]++,this.pauseOrRetryDisabled=!1),ct().s[271]++,this.stopDisabled=!1;var l=(ct().s[272]++,Object.keys(t).filter((function(n){return ct().f[90]++,ct().s[273]++,t[n].clazz==="".concat(e.state,"Marker")})));if(ct().s[274]++,0===l.length){ct().b[52][0]++,ct().s[275]++,this.removeAllMarkers();var i=(ct().s[276]++,n.line_no>0?(ct().b[53][0]++,n.line_no):(ct().b[53][1]++,1));ct().s[277]++,this.editor.session.addMarker(new this.Range(i-1,0,i-1,1),"".concat(this.state,"Marker"),"fullLine"),ct().s[278]++,this.editor.gotoLine(i),ct().s[279]++,n.filename?(ct().b[54][0]++,ct().s[280]++,this.files[n.filename].lineNo=i):ct().b[54][1]++}else ct().b[52][1]++;ct().s[281]++;break;default:ct().b[50][6]++,ct().s[282]++;break}ct().s[283]++;break;case"output":ct().b[45][2]++,ct().s[284]++,this.messages.unshift({message:n.line}),ct().s[285]++;while(this.messages.length>this.maxArrayLength)ct().s[286]++,this.messages.pop();ct().s[287]++;break;case"script":ct().b[45][3]++,ct().s[288]++,this.handleScript(n),ct().s[289]++;break;case"report":ct().b[45][4]++,ct().s[290]++,this.results.text=n.report,ct().s[291]++,this.results.show=!0,ct().s[292]++;break;case"complete":ct().b[45][5]++,ct().s[293]++,this.fatal?ct().b[55][1]++:(ct().b[55][0]++,ct().s[294]++,this.removeAllMarkers(),ct().s[295]++,this.scriptComplete());default:ct().b[45][6]++,ct().s[296]++;break}},promptDialogCallback:function(n){ct().f[91]++,ct().s[297]++,this.prompt.show=!1,ct().s[298]++,k.post("/script-api/running-script/".concat(this.scriptId,"/prompt"),{data:{method:this.prompt.method,answer:n,prompt_id:this.activePromptId}})},handleScript:function(n){var e=this;if(ct().f[92]++,ct().s[299]++,n.prompt_complete)return ct().b[56][0]++,ct().s[300]++,this.activePromptId="",ct().s[301]++,this.prompt.show=!1,ct().s[302]++,this.ask.show=!1,void ct().s[303]++;switch(ct().b[56][1]++,ct().s[304]++,this.activePromptId=n.prompt_id,ct().s[305]++,this.prompt.method=n.method,ct().s[306]++,this.prompt.layout="horizontal",ct().s[307]++,this.prompt.title="Prompt",ct().s[308]++,this.prompt.subtitle="",ct().s[309]++,this.prompt.details="",ct().s[310]++,this.prompt.buttons=[],ct().s[311]++,n.method){case"ask":ct().b[57][0]++;case"ask_string":ct().b[57][1]++,ct().s[312]++,this.ask.default=null,ct().s[313]++,this.ask.answerRequired=!0,ct().s[314]++,this.ask.password=!1,ct().s[315]++,this.ask.question=n.args[0],ct().s[316]++,ct().b[59][0]++,n.args[1]&&(ct().b[59][1]++,!0!==n.args[1])&&(ct().b[59][2]++,!1!==n.args[1])?(ct().b[58][0]++,ct().s[317]++,this.ask.default=n.args[1].toString()):(ct().b[58][1]++,ct().s[318]++,!0===n.args[1]?(ct().b[60][0]++,ct().s[319]++,this.ask.answerRequired=!1):ct().b[60][1]++),ct().s[320]++,!0===n.args[2]?(ct().b[61][0]++,ct().s[321]++,this.ask.password=!0):ct().b[61][1]++,ct().s[322]++,this.ask.callback=function(t){ct().f[93]++,ct().s[323]++,e.ask.show=!1,ct().s[324]++,e.ask.password?(ct().b[62][0]++,ct().s[325]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,password:t,prompt_id:e.activePromptId}})):(ct().b[62][1]++,ct().s[326]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,answer:t,prompt_id:e.activePromptId}}))},ct().s[327]++,this.ask.show=!0,ct().s[328]++;break;case"prompt_for_hazardous":ct().b[57][2]++,ct().s[329]++,this.prompt.title="Hazardous Command",ct().s[330]++,this.prompt.message="Warning: Command ".concat(n.args[0]," ").concat(n.args[1]," is Hazardous. "),ct().s[331]++,n.args[2]?(ct().b[63][0]++,ct().s[332]++,this.prompt.message+=n.args[2]+" "):ct().b[63][1]++,ct().s[333]++,this.prompt.message+="Send?",ct().s[334]++,this.prompt.buttons=[{text:"Yes",value:"Yes"}],ct().s[335]++,this.prompt.callback=this.promptDialogCallback,ct().s[336]++,this.prompt.show=!0,ct().s[337]++;break;case"prompt":ct().b[57][3]++,ct().s[338]++,ct().b[65][0]++,n.kwargs&&(ct().b[65][1]++,n.kwargs.informative)?(ct().b[64][0]++,ct().s[339]++,this.prompt.subtitle=n.kwargs.informative):ct().b[64][1]++,ct().s[340]++,ct().b[67][0]++,n.kwargs&&(ct().b[67][1]++,n.kwargs.details)?(ct().b[66][0]++,ct().s[341]++,this.prompt.details=n.kwargs.details):ct().b[66][1]++,ct().s[342]++,this.prompt.message=n.args[0],ct().s[343]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],ct().s[344]++,this.prompt.callback=this.promptDialogCallback,ct().s[345]++,this.prompt.show=!0,ct().s[346]++;break;case"combo_box":ct().b[57][4]++,ct().s[347]++,ct().b[69][0]++,n.kwargs&&(ct().b[69][1]++,n.kwargs.informative)?(ct().b[68][0]++,ct().s[348]++,this.prompt.subtitle=n.kwargs.informative):ct().b[68][1]++,ct().s[349]++,ct().b[71][0]++,n.kwargs&&(ct().b[71][1]++,n.kwargs.details)?(ct().b[70][0]++,ct().s[350]++,this.prompt.details=n.kwargs.details):ct().b[70][1]++,ct().s[351]++,this.prompt.message=n.args[0],ct().s[352]++,n.args.slice(1).forEach((function(n){ct().f[94]++,ct().s[353]++,e.prompt.buttons.push({text:n,value:n})})),ct().s[354]++,this.prompt.combo=!0,ct().s[355]++,this.prompt.layout="combo",ct().s[356]++,this.prompt.callback=this.promptDialogCallback,ct().s[357]++,this.prompt.show=!0,ct().s[358]++;break;case"message_box":ct().b[57][5]++;case"vertical_message_box":ct().b[57][6]++,ct().s[359]++,ct().b[73][0]++,n.kwargs&&(ct().b[73][1]++,n.kwargs.informative)?(ct().b[72][0]++,ct().s[360]++,this.prompt.subtitle=n.kwargs.informative):ct().b[72][1]++,ct().s[361]++,ct().b[75][0]++,n.kwargs&&(ct().b[75][1]++,n.kwargs.details)?(ct().b[74][0]++,ct().s[362]++,this.prompt.details=n.kwargs.details):ct().b[74][1]++,ct().s[363]++,this.prompt.message=n.args[0],ct().s[364]++,n.args.slice(1).forEach((function(n){ct().f[95]++,ct().s[365]++,e.prompt.buttons.push({text:n,value:n})})),ct().s[366]++,n.method.includes("vertical")?(ct().b[76][0]++,ct().s[367]++,this.prompt.layout="vertical"):ct().b[76][1]++,ct().s[368]++,this.prompt.callback=this.promptDialogCallback,ct().s[369]++,this.prompt.show=!0,ct().s[370]++;break;case"backtrace":ct().b[57][7]++,ct().s[371]++,this.information.title="Call Stack",ct().s[372]++,this.information.text=n.args,ct().s[373]++,this.information.show=!0,ct().s[374]++;break;case"input_metadata":ct().b[57][8]++,ct().s[375]++,this.inputMetadata.target=n.args[0],ct().s[376]++,this.inputMetadata.callback=function(t){ct().f[96]++,ct().s[377]++,e.inputMetadata.show=!1,ct().s[378]++,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,answer:t,prompt_id:e.activePromptId}})},ct().s[379]++,this.inputMetadata.show=!0,ct().s[380]++;break;case"open_file_dialog":ct().b[57][9]++;case"open_files_dialog":ct().b[57][10]++,ct().s[381]++,this.file.title=n.args[0],ct().s[382]++,this.file.message=n.args[1],ct().s[383]++,ct().b[78][0]++,n.kwargs&&(ct().b[78][1]++,n.kwargs.filter)?(ct().b[77][0]++,ct().s[384]++,this.file.filter=n.kwargs.filter):ct().b[77][1]++,ct().s[385]++,"open_files_dialog"==n.method?(ct().b[79][0]++,ct().s[386]++,this.file.multiple=!0):ct().b[79][1]++,ct().s[387]++,this.file.show=!0,ct().s[388]++;break;default:ct().b[57][11]++,ct().s[389]++;break}},fileDialogCallback:function(n){var e=this;return(0,c.Z)((0,a.Z)().mark((function t(){var l;return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(ct().f[97]++,ct().s[390]++,e.file.show=!1,ct().s[391]++,l="Cancel",ct().s[392]++,"Cancel"==n){t.next=14;break}return ct().b[80][0]++,ct().s[393]++,l=[],ct().s[394]++,t.next=12,n.forEach(function(){var n=(0,c.Z)((0,a.Z)().mark((function n(e){var t,i;return(0,a.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return ct().f[98]++,ct().s[395]++,l.push(e.name),ct().s[396]++,n.next=6,k.get("/openc3-api/storage/upload/".concat(encodeURIComponent("".concat(localStorage.scope,"/tmp/").concat(e.name)),"?bucket=config"));case 6:return t=n.sent,i=t.data,ct().s[397]++,n.next=11,m()((0,o.Z)((0,o.Z)({},i),{},{data:e}));case 11:n.sent;case 12:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 12:t.next=15;break;case 14:ct().b[80][1]++;case 15:return ct().s[398]++,t.next=18,k.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:e.file.multiple?(ct().b[81][0]++,"open_files_dialog"):(ct().b[81][1]++,"open_file_dialog"),answer:l,prompt_id:e.activePromptId}});case 18:case"end":return t.stop()}}),t)})))()},setError:function(n){ct().f[99]++,ct().s[399]++,this.alertType="error",ct().s[400]++,this.alertText="Error: ".concat(n),ct().s[401]++,this.showAlert=!0},newFile:function(){ct().f[100]++,ct().s[402]++,this.filename=rt,ct().s[403]++,this.currentFilename=null,ct().s[404]++,this.files={},ct().s[405]++,this.editor.session.setValue(""),ct().s[406]++,this.fileModified="",ct().s[407]++,this.suiteRunner=!1,ct().s[408]++,this.startOrGoDisabled=!1,ct().s[409]++,this.envDisabled=!1},openFile:function(){ct().f[101]++,ct().s[410]++,this.fileOpen=!0},setFile:function(n){var e=n.file,t=n.locked,l=n.breakpoints;ct().f[102]++,ct().s[411]++,this.files={},ct().s[412]++,this.unlockFile(),ct().s[413]++,this.suiteRunner=!1,ct().s[414]++,this.filename=e.name.split("*")[0],ct().s[415]++,this.currentFilename=null,ct().s[416]++,this.editor.session.setValue(e.contents),ct().s[417]++,this.breakpoints[filename]=l,ct().s[418]++,this.restoreBreakpoints(filename),ct().s[419]++,this.fileModified="",ct().s[420]++,this.lockedBy=t,ct().s[421]++,this.envDisabled=!1,ct().s[422]++,e.suites?(ct().b[82][0]++,ct().s[423]++,this.suiteRunner=!0,ct().s[424]++,this.suiteMap=e.suites,ct().s[425]++,this.startOrGoDisabled=!0):ct().b[82][1]++,ct().s[426]++,e.error?(ct().b[83][0]++,ct().s[427]++,this.suiteError=e.error,ct().s[428]++,this.showSuiteError=!0):ct().b[83][1]++,ct().s[429]++,this.disableSuiteButtons=0==e.success},saveFile:function(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(ct().b[84][0]++,"menu");ct().f[103]++;var t=(ct().s[430]++,this.getBreakpointRows());ct().s[431]++,this.filename===rt?(ct().b[85][0]++,ct().s[432]++,"menu"===e?(ct().b[86][0]++,ct().s[433]++,this.saveAs()):(ct().b[86][1]++,ct().s[434]++,null===this.tempFilename?(ct().b[87][0]++,ct().s[435]++,this.tempFilename=(0,x.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb"):ct().b[87][1]++,ct().s[436]++,this.showSave=!0,ct().s[437]++,k.post("/script-api/scripts/".concat(this.tempFilename),{data:{text:this.editor.getValue(),breakpoints:t}}).then((function(e){ct().f[104]++,ct().s[438]++,n.fileModified="",ct().s[439]++,setTimeout((function(){ct().f[105]++,ct().s[440]++,n.showSave=!1}),2e3)})).catch((function(e){ct().f[106]++,ct().s[441]++,n.showSave=!1})))):(ct().b[85][1]++,ct().s[442]++,this.showSave=!0,ct().s[443]++,k.post("/script-api/scripts/".concat(this.filename),{data:{text:this.editor.getValue(),breakpoints:t}}).then((function(e){ct().f[107]++,ct().s[444]++,200==e.status?(ct().b[88][0]++,ct().s[445]++,e.data.suites?(ct().b[89][0]++,ct().s[446]++,n.startOrGoDisabled=!0,ct().s[447]++,n.suiteRunner=!0,ct().s[448]++,n.suiteMap=JSON.parse(e.data.suites)):(ct().b[89][1]++,ct().s[449]++,n.startOrGoDisabled=!1,ct().s[450]++,n.suiteRunner=!1,ct().s[451]++,n.suiteMap={}),ct().s[452]++,e.data.error?(ct().b[90][0]++,ct().s[453]++,n.suiteError=e.data.error,ct().s[454]++,n.showSuiteError=!0):ct().b[90][1]++,ct().s[455]++,n.fileModified="",ct().s[456]++,setTimeout((function(){ct().f[108]++,ct().s[457]++,n.showSave=!1}),2e3)):(ct().b[88][1]++,ct().s[458]++,n.showSave=!1,ct().s[459]++,n.alertType="error",ct().s[460]++,n.alertText="Error saving file. Code: ".concat(e.status," Text: ").concat(e.statusText),ct().s[461]++,n.showAlert=!0)})).catch((function(e){var t=e.response;ct().f[109]++,ct().s[462]++,n.showSave=!1,ct().s[463]++,422==t.status?(ct().b[91][0]++,ct().s[464]++,n.alertType="error",ct().s[465]++,n.alertText=t.data.suites):(ct().b[91][1]++,ct().s[466]++,n.alertType="error",ct().s[467]++,n.alertText="Error saving file. Code: ".concat(t.status," Text: ").concat(t.statusText)),ct().s[468]++,n.showAlert=!0}))),ct().s[469]++,this.lockFile()},saveAs:function(){ct().f[110]++,ct().s[470]++,this.showSaveAs=!0},saveAsFilename:function(n){ct().f[111]++,ct().s[471]++,this.filename=n,ct().s[472]++,this.tempFilename?(ct().b[92][0]++,ct().s[473]++,k.post("/script-api/scripts/".concat(this.tempFilename,"/delete")),ct().s[474]++,this.tempFilename=null):ct().b[92][1]++,ct().s[475]++,this.saveFile()},delete:function(){var n=this;ct().f[112]++,ct().s[476]++,this.$dialog.confirm("Permanently delete file: ".concat(this.filename),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return ct().f[113]++,ct().s[477]++,k.post("/script-api/scripts/".concat(n.filename,"/delete"),{data:{}})})).then((function(e){ct().f[114]++,ct().s[478]++,n.newFile()})).catch((function(e){if(ct().f[115]++,ct().s[479]++,e){ct().b[93][0]++;var t=(ct().s[480]++,{text:"Failed Multi-Delete. ".concat(e),type:"error"});ct().s[481]++,n.$emit("alert",t)}else ct().b[93][1]++}))},download:function(){ct().f[116]++;var n=(ct().s[482]++,new Blob([this.editor.getValue()],{type:"text/plain"})),e=(ct().s[483]++,document.createElement("a"));ct().s[484]++,e.href=URL.createObjectURL(n),ct().s[485]++,e.setAttribute("download",this.filename),ct().s[486]++,e.click()},rubySyntaxCheck:function(){var n=this;ct().f[117]++,ct().s[487]++,k.post("/script-api/scripts/syntax",{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(e){ct().f[118]++,ct().s[488]++,n.information.title=e.data.title,ct().s[489]++,n.information.text=JSON.parse(e.data.description),ct().s[490]++,n.information.show=!0}))},showInstrumented:function(){var n=this;ct().f[119]++,ct().s[491]++,k.post("/script-api/scripts/".concat(this.filename,"/instrumented"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(e){ct().f[120]++,ct().s[492]++,n.information.title=e.data.title,ct().s[493]++,n.information.text=JSON.parse(e.data.description),ct().s[494]++,n.information.show=!0}))},showCallStack:function(){ct().f[121]++,ct().s[495]++,k.post("/script-api/running-script/".concat(this.scriptId,"/backtrace"))},toggleDebug:function(){ct().f[122]++,ct().s[496]++,this.showDebug=!this.showDebug},toggleDisconnect:function(){ct().f[123]++,ct().s[497]++,this.showDisconnect=!this.showDisconnect},debugKeydown:function(n){ct().f[124]++,ct().s[498]++,"Escape"===n.key?(ct().b[94][0]++,ct().s[499]++,this.debug="",ct().s[500]++,this.debugHistoryIndex=this.debugHistory.length):(ct().b[94][1]++,ct().s[501]++,"Enter"===n.key?(ct().b[95][0]++,ct().s[502]++,this.debugHistory.push(this.debug),ct().s[503]++,this.debugHistoryIndex=this.debugHistory.length,ct().s[504]++,k.post("/script-api/running-script/".concat(this.scriptId,"/debug"),{data:{args:this.debug}}),ct().s[505]++,this.debug=""):(ct().b[95][1]++,ct().s[506]++,"ArrowUp"===n.key?(ct().b[96][0]++,ct().s[507]++,this.debugHistoryIndex-=1,ct().s[508]++,this.debugHistoryIndex<0?(ct().b[97][0]++,ct().s[509]++,this.debugHistoryIndex=this.debugHistory.length-1):ct().b[97][1]++,ct().s[510]++,this.debug=this.debugHistory[this.debugHistoryIndex],ct().s[511]++,n.preventDefault()):(ct().b[96][1]++,ct().s[512]++,"ArrowDown"===n.key?(ct().b[98][0]++,ct().s[513]++,this.debugHistoryIndex+=1,ct().s[514]++,this.debugHistoryIndex>=this.debugHistory.length?(ct().b[99][0]++,ct().s[515]++,this.debugHistoryIndex=0):ct().b[99][1]++,ct().s[516]++,this.debug=this.debugHistory[this.debugHistoryIndex]):ct().b[98][1]++)))},removeAllMarkers:function(){var n=this;ct().f[125]++;var e=(ct().s[517]++,this.editor.session.getMarkers());ct().s[518]++,Object.keys(e).filter((function(n){return ct().f[126]++,ct().s[519]++,"fullLine"===e[n].type})).forEach((function(e){return ct().f[127]++,ct().s[520]++,n.editor.session.removeMarker(e)}))},confirmLocalUnlock:function(){var n=this;ct().f[128]++,ct().s[521]++,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 ct().f[129]++,ct().s[522]++,n.lockedBy=null,ct().s[523]++,n.lockFile()}))},lockFile:function(){return ct().f[130]++,ct().s[524]++,k.post("/script-api/scripts/".concat(this.filename,"/lock"))},unlockFile:function(){ct().f[131]++,ct().s[525]++,ct().b[101][0]++,this.filename===rt||(ct().b[101][1]++,this.readOnly)?ct().b[100][1]++:(ct().b[100][0]++,ct().s[526]++,k.post("/script-api/scripts/".concat(this.filename,"/unlock")))}}},ht=pt,ft=(t(3501),t(4320),(0,T.Z)(ht,l,i,!1,null,"f3e214f8",null)),vt=ft.exports},7764:function(n,e,t){"use strict";t.r(e);var l=t(3467),i=t.n(l),o=t(8715),s=t.n(o),a=s()(i());a.push([n.id,".v-list[data-v-3237297b] .v-label{margin-left:5px}.v-list-item__icon[data-v-3237297b]{margin-right:15px!important}.v-list-item__title[data-v-3237297b]{color:#fff}",""]),e["default"]=a},33:function(n,e,t){"use strict";t.r(e);var l=t(3467),i=t.n(l),o=t(8715),s=t.n(o),a=s()(i());a.push([n.id,"#sr-controls[data-v-f3e214f8]{padding-top:0;padding-bottom:5px;padding-left:0;padding-right:0}#editorbox[data-v-f3e214f8]{height:50vh}#editor[data-v-f3e214f8]{height:100%;width:100%;font-size:16px}#editor[data-v-f3e214f8],hr[data-v-f3e214f8]{position:relative}hr[data-v-f3e214f8]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-f3e214f8] input{text-transform:capitalize}",""]),e["default"]=a},5311:function(n,e,t){"use strict";t.r(e);var l=t(3467),i=t.n(l),o=t(8715),s=t.n(o),a=s()(i());a.push([n.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}",""]),e["default"]=a},242:function(n,e,t){"use strict";t.r(e);var l=t(3467),i=t.n(l),o=t(8715),s=t.n(o),a=s()(i());a.push([n.id,"#tr-container[data-v-3677302c]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}",""]),e["default"]=a},5741:function(n,e,t){var l=t(7764);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("9f637652",l,!0,{sourceMap:!1,shadowMode:!1})},3501:function(n,e,t){var l=t(33);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("1b17f4c6",l,!0,{sourceMap:!1,shadowMode:!1})},4320:function(n,e,t){var l=t(5311);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("6b88c132",l,!0,{sourceMap:!1,shadowMode:!1})},7961:function(n,e,t){var l=t(242);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("e15a04c0",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=736.js.map
|