openc3-cosmos-tool-cmdtlmserver 5.12.0 → 5.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/cmdtlmserver/js/146.js +2 -0
- data/tools/cmdtlmserver/js/146.js.map +1 -0
- data/tools/cmdtlmserver/js/214.js +2 -0
- data/tools/cmdtlmserver/js/214.js.map +1 -0
- data/tools/cmdtlmserver/js/244.js +2 -0
- data/tools/cmdtlmserver/js/244.js.map +1 -0
- data/tools/cmdtlmserver/js/33.js +2 -0
- data/tools/cmdtlmserver/js/33.js.map +1 -0
- data/tools/cmdtlmserver/js/588.js +2 -0
- data/tools/cmdtlmserver/js/588.js.map +1 -0
- data/tools/cmdtlmserver/js/694.js +2 -0
- data/tools/cmdtlmserver/js/694.js.map +1 -0
- data/tools/cmdtlmserver/js/872.js +1 -1
- data/tools/cmdtlmserver/js/872.js.map +1 -1
- data/tools/cmdtlmserver/js/939.js +2 -0
- data/tools/cmdtlmserver/js/939.js.map +1 -0
- data/tools/cmdtlmserver/js/991.js +2 -0
- data/tools/cmdtlmserver/js/991.js.map +1 -0
- data/tools/cmdtlmserver/js/app.js +1 -1
- data/tools/cmdtlmserver/js/app.js.map +1 -1
- metadata +18 -18
- data/tools/cmdtlmserver/js/159.js +0 -2
- data/tools/cmdtlmserver/js/159.js.map +0 -1
- data/tools/cmdtlmserver/js/178.js +0 -2
- data/tools/cmdtlmserver/js/178.js.map +0 -1
- data/tools/cmdtlmserver/js/401.js +0 -2
- data/tools/cmdtlmserver/js/401.js.map +0 -1
- data/tools/cmdtlmserver/js/740.js +0 -2
- data/tools/cmdtlmserver/js/740.js.map +0 -1
- data/tools/cmdtlmserver/js/745.js +0 -2
- data/tools/cmdtlmserver/js/745.js.map +0 -1
- data/tools/cmdtlmserver/js/889.js +0 -2
- data/tools/cmdtlmserver/js/889.js.map +0 -1
- data/tools/cmdtlmserver/js/96.js +0 -2
- data/tools/cmdtlmserver/js/96.js.map +0 -1
- data/tools/cmdtlmserver/js/961.js +0 -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D,IAAAE,EAAA,MACA+B,EAAA,SAAAjC,IAAAE,EAAA,MACAiC,EAAA,eACAnC,IAAAE,EAAA,MACA,KAAAS,KAAAwD,KAAA,CACAP,KAAAM,EAAA,GACAjC,QAAAA,EACAE,eAAAA,EACAC,UAAA8B,EAAA,GACAE,QAAAF,EAAA,GACAG,UAAAH,EAAA,GACAI,UAAAJ,EAAA,GACAK,SAAAL,EAAA,GACAM,SAAAN,EAAA,GACAO,SAAAP,EAAA,GACAQ,SAAAR,EAAA,IAEA,CAAAlE,IAAAE,EAAA,MACA,KAAA2B,iBAAA,IAEA,ICpM0T,I,cCOtT8C,GAAY,OACd,EACAxE,EACAkC,GACA,EACA,KACA,KACA,MAIF,QAAesC,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/InterfacesTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/InterfacesTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/InterfacesTab.vue?4098","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/InterfacesTab.vue?cd05"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-card',[_c('v-card-title',[_vm._v(\"\\n \"+_vm._s(_vm.data.length)+\" Interfaces\\n \"),_c('v-spacer'),_vm._v(\" \"),_c('v-text-field',{staticClass:\"search\",attrs:{\"label\":\"Search\",\"prepend-inner-icon\":\"mdi-magnify\",\"clearable\":\"\",\"outlined\":\"\",\"dense\":\"\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_vm._v(\" \"),_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.data,\"search\":_vm.search,\"custom-sort\":_vm.sortTable,\"items-per-page\":10,\"footer-props\":{ itemsPerPageOptions: [10, 20, -1] },\"calculate-widths\":\"\",\"multi-sort\":\"\",\"data-test\":\"interfaces-table\"},scopedSlots:_vm._u([{key:\"item.connect\",fn:function({ item }){return [_c('v-btn',{attrs:{\"block\":\"\",\"color\":\"primary\",\"disabled\":_vm.buttonsDisabled},on:{\"click\":function($event){return _vm.connectDisconnect(item)}}},[_vm._v(\"\\n \"+_vm._s(item.connect)+\"\\n \")])]}},{key:\"item.connected\",fn:function({ item }){return [_c('span',{class:item.connectedClass},[_vm._v(\"\\n \"+_vm._s(item.connected)+\"\\n \")])]}}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-card>\n <v-card-title>\n {{ data.length }} Interfaces\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"data\"\n :search=\"search\"\n :custom-sort=\"sortTable\"\n :items-per-page=\"10\"\n :footer-props=\"{ itemsPerPageOptions: [10, 20, -1] }\"\n calculate-widths\n multi-sort\n data-test=\"interfaces-table\"\n >\n <template v-slot:item.connect=\"{ item }\">\n <v-btn\n block\n color=\"primary\"\n :disabled=\"buttonsDisabled\"\n @click=\"connectDisconnect(item)\"\n >\n {{ item.connect }}\n </v-btn>\n </template>\n <template v-slot:item.connected=\"{ item }\">\n <span :class=\"item.connectedClass\">\n {{ item.connected }}\n </span>\n </template>\n </v-data-table>\n </v-card>\n</template>\n\n<script>\nimport Updater from './Updater'\n\nexport default {\n mixins: [Updater],\n props: {\n tabId: Number,\n curTab: Number,\n },\n data() {\n return {\n search: '',\n data: [],\n buttonsDisabled: false,\n headers: [\n { text: 'Name', value: 'name' },\n {\n text: 'Action',\n value: 'connect',\n sortable: false,\n filterable: false,\n },\n { text: 'Connected', value: 'connected' },\n { text: 'Clients', value: 'clients' },\n { text: 'Tx Q', value: 'tx_q_size' },\n { text: 'Rx Q', value: 'rx_q_size' },\n { text: 'Tx bytes', value: 'tx_bytes' },\n { text: 'Rx bytes', value: 'rx_bytes' },\n { text: 'Cmd pkts', value: 'cmd_pkts' },\n { text: 'Tlm pkts', value: 'tlm_pkts' },\n ],\n }\n },\n methods: {\n // Custom sort algorithm to allow the connected column to be sorted by CONNECTED first\n sortTable(items, index, isDesc) {\n items.sort((a, b) => {\n for (let i = 0; i < index.length; i++) {\n let column = index[i]\n let desc = isDesc[i]\n\n if (column === 'connected') {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n if (a[column] === 'CONNECTED') {\n return -1\n } else {\n return 1\n }\n } else {\n if (a[column] === 'CONNECTED') {\n return 1\n } else {\n return -1\n }\n }\n } else if (column === 'name') {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n // Strings so use localeCompare to sort\n return a[column].localeCompare(b[column])\n } else {\n return b[column].localeCompare(a[column])\n }\n } else {\n // Items are the same so continue to let subsequent column sorts apply\n if (a[column] === b[column]) {\n continue\n }\n if (!desc) {\n // The rest of the columns are numbers so just subtract to sort\n return a[column] - b[column]\n } else {\n return b[column] - a[column]\n }\n }\n }\n })\n return items\n },\n connectDisconnect(item) {\n this.buttonsDisabled = true\n if (item.connected === 'DISCONNECTED') {\n this.api.connect_interface(item.name)\n } else {\n this.api.disconnect_interface(item.name)\n }\n },\n update() {\n if (this.tabId != this.curTab) return\n this.api.get_all_interface_info().then((info) => {\n this.data = [] // Clear the old data\n for (let int of info) {\n let connect = null\n let connectedClass = null\n if (int[1] == 'DISCONNECTED') {\n connect = 'Connect'\n connectedClass = 'openc3-white'\n } else if (int[1] == 'CONNECTED') {\n connect = 'Disconnect'\n connectedClass = 'openc3-green'\n } else {\n connect = 'Cancel'\n connectedClass = 'openc3-red'\n }\n this.data.push({\n name: int[0],\n connect: connect,\n connectedClass: connectedClass,\n connected: int[1],\n clients: int[2],\n tx_q_size: int[3],\n rx_q_size: int[4],\n tx_bytes: int[5],\n rx_bytes: int[6],\n cmd_pkts: int[7],\n tlm_pkts: int[8],\n })\n }\n this.buttonsDisabled = false\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InterfacesTab.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./InterfacesTab.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./InterfacesTab.vue?vue&type=template&id=89ec135c\"\nimport script from \"./InterfacesTab.vue?vue&type=script&lang=js\"\nexport * from \"./InterfacesTab.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["cov_z1n112vt","actualCoverage","s","render","f","_vm","this","_c","_self","_v","_s","data","length","staticClass","attrs","model","value","search","callback","$$v","expression","headers","sortTable","itemsPerPageOptions","scopedSlots","_u","key","fn","item","buttonsDisabled","on","$event","connectDisconnect","connect","class","connectedClass","connected","staticRenderFns","mixins","Updater","props","tabId","Number","curTab","text","sortable","filterable","methods","items","index","isDesc","sort","a","b","i","column","desc","localeCompare","api","connect_interface","name","disconnect_interface","update","get_all_interface_info","then","info","int","push","clients","tx_q_size","rx_q_size","tx_bytes","rx_bytes","cmd_pkts","tlm_pkts","component"],"sourceRoot":""}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[872],{4872:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(8123);function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",t="4a33e65af05f7d08e216a604150e8920749ac334",n=new Function("return this")(),r="__coverage__",c={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",statementMap:{0:{start:{line:32,column:4},end:{line:35,column:5}},1:{start:{line:38,column:4},end:{line:38,column:30}},2:{start:{line:41,column:4},end:{line:41,column:24}},3:{start:{line:44,column:4},end:{line:47,column:5}},4:{start:{line:45,column:6},end:{line:45,column:33}},5:{start:{line:46,column:6},end:{line:46,column:25}},6:{start:{line:52,column:6},end:{line:52,column:26}},7:{start:{line:57,column:6},end:{line:60,column:7}},8:{start:{line:58,column:8},end:{line:58,column:35}},9:{start:{line:59,column:8},end:{line:59,column:27}},10:{start:{line:61,column:6},end:{line:63,column:30}},11:{start:{line:62,column:8},end:{line:62,column:21}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:31,column:9},end:{line:36,column:3}},line:31},1:{name:"(anonymous_1)",decl:{start:{line:37,column:2},end:{line:37,column:3}},loc:{start:{line:37,column:12},end:{line:39,column:3}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:40,column:2},end:{line:40,column:3}},loc:{start:{line:40,column:12},end:{line:42,column:3}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:18},end:{line:48,column:3}},line:43},4:{name:"(anonymous_4)",decl:{start:{line:51,column:21},end:{line:51,column:22}},loc:{start:{line:51,column:47},end:{line:53,column:5}},line:51},5:{name:"(anonymous_5)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:20},end:{line:64,column:5}},line:56},6:{name:"(anonymous_6)",decl:{start:{line:61,column:33},end:{line:61,column:34}},loc:{start:{line:61,column:39},end:{line:63,column:7}},line:61}},branchMap:{0:{loc:{start:{line:44,column:4},end:{line:47,column:5}},type:"if",locations:[{start:{line:44,column:4},end:{line:47,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},1:{loc:{start:{line:57,column:6},end:{line:60,column:7}},type:"if",locations:[{start:{line:57,column:6},end:{line:60,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},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:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4a33e65af05f7d08e216a604150e8920749ac334"},i=n[r]||(n[r]={});i[e]&&i[e].hash===t||(i[e]=c);var l=i[e];return s=function(){return l},l}s();const c={props:{refreshInterval:{default:1e3}},data(){return s().f[0]++,s().s[0]++,{updater:null,api:null}},created(){s().f[1]++,s().s[1]++,this.api=new r.k},mounted(){s().f[2]++,s().s[2]++,this.changeUpdater()},beforeDestroy(){s().f[3]++,s().s[3]++,null!=this.updater?(s().b[0][0]++,s().s[4]++,clearInterval(this.updater),s().s[5]++,this.updater=null):s().b[0][1]++},watch:{refreshInterval:function(e,t){s().f[4]++,s().s[6]++,this.changeUpdater()}},methods:{changeUpdater(){s().f[5]++,s().s[7]++,null!=this.updater?(s().b[1][0]++,s().s[8]++,clearInterval(this.updater),s().s[9]++,this.updater=null):s().b[1][1]++,s().s[10]++,this.updater=setInterval((()=>{s().f[6]++,s().s[11]++,this.update()}),this.refreshInterval)}}}},8123:(e,t,n)=>{n.d(t,{k:()=>_});var r=n(6088),s=(n(978),n(309),n(5984),n(7380),n(527),n(1697),n(9394),n(3438),n(3616),n(5630),n(896),n(4139),n(9644)),c=n.n(s),i=n(4091);const l=new i["default"],a=c().create({baseURL:location.origin,timeout:6e4,params:{}});a.interceptors.response.use((e=>e),(e=>{if(e.response){var t,n,r,s,c;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);let a=`HTTP ${e.response.status} - `;if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(a+=`${e.response.statusText} `),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(a+=`${e.response.config.data} `),null!==(r=e.response)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&r.message)a+=`${e.response.data.message}`;else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&s.exception)a+=`${e.response.data.exception}`;else if(null!==(c=e.response)&&void 0!==c&&null!==(c=c.data)&&void 0!==c&&null!==(c=c.error)&&void 0!==c&&c.message)e.response.data.error.class&&(a+=`${e.response.data.error.class} `),a+=`${e.response.data.error.message}`;else{var i;a+=`${null===(i=e.response)||void 0===i?void 0:i.data}`}throw l.$notify&&l.$notify.serious({title:"Network error",body:a}),e}throw e}));const o=a;class _{constructor(){(0,r.Z)(this,"id",1)}async exec(e,t,n={},r={},s=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(i){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope;const c=await o.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...r},timeout:s});return c.data.result}catch(i){var c=new Error;throw i.response?(c.name=i.response.data.error.data.class,c.message=i.response.data.error.data.message):i.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,n){return this.exec("get_item",[e,t,n])}get_parameter(e,t,n){return this.exec("get_parameter",[e,t,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_list(){return this.exec("get_target_list",[])}get_target_names(){return this.exec("get_target_names",[])}get_telemetry(e,t){return this.exec("get_telemetry",[e,t])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,r=30){const s=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:r});if(null!=s)for(var c=s.length,i=null,l=0;l<c;l++)i=this.decode_openc3_type(s[l][1]),null!==i&&(s[l][1]=i);return s}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30){const n=await this.exec("get_tlm_values",[e],{stale_time:t},{},1e4);for(var r=n[0].length,s=null,c=0;c<r;c++)s=this.decode_openc3_type(n[0][c]),null!==s&&(n[0][c]=s);return n}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,r="CONVERTED"){let s=null;if(void 0===t)s=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){var c=new Error;throw c.name="TypeError",c.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,c}s=await this.exec("tlm",[e],{type:t})}else s=await this.exec("tlm",[e,t,n],{type:r});var i=this.decode_openc3_type(s);return null!==i&&(s=i),s}async inject_tlm(e,t,n=null,r="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:r})}set_tlm(e,t,n,r){return this.exec("set_tlm",[e,t,n],{type:r})}override_tlm(e,t,n,r){return this.exec("override_tlm",[e,t,n],{type:r})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,r){return this.exec("normalize_tlm",[e,t,n],{type:r})}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,r="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,r])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,r,s){var c=null;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(c=this.encode_openc3_type(r[i]),null!==c&&(r[i]=c));return this.exec(e,[t,n,r],{},s)}get_cmd_hazardous(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}cmd(e,t,n,r={}){return void 0===t?this.exec("cmd",e,{},r):this._cmd("cmd",e,t,n,r)}cmd_no_range_check(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}cmd_raw(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}cmd_raw_no_range_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}cmd_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}cmd_no_checks(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}cmd_raw_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}cmd_raw_no_checks(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}build_command(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,n){return this.exec("save_config",[e,t,n])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,n){return this.exec("enable_limits",[e,t,n])}disable_limits(e,t,n){return this.exec("disable_limits",[e,t,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("save_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n);return Array.from(r).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}}}]);
|
1
|
+
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[872],{4872:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(8123);function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",t="4a33e65af05f7d08e216a604150e8920749ac334",n=new Function("return this")(),r="__coverage__",c={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/Updater.js",statementMap:{0:{start:{line:32,column:4},end:{line:35,column:5}},1:{start:{line:38,column:4},end:{line:38,column:30}},2:{start:{line:41,column:4},end:{line:41,column:24}},3:{start:{line:44,column:4},end:{line:47,column:5}},4:{start:{line:45,column:6},end:{line:45,column:33}},5:{start:{line:46,column:6},end:{line:46,column:25}},6:{start:{line:52,column:6},end:{line:52,column:26}},7:{start:{line:57,column:6},end:{line:60,column:7}},8:{start:{line:58,column:8},end:{line:58,column:35}},9:{start:{line:59,column:8},end:{line:59,column:27}},10:{start:{line:61,column:6},end:{line:63,column:30}},11:{start:{line:62,column:8},end:{line:62,column:21}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:31,column:9},end:{line:36,column:3}},line:31},1:{name:"(anonymous_1)",decl:{start:{line:37,column:2},end:{line:37,column:3}},loc:{start:{line:37,column:12},end:{line:39,column:3}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:40,column:2},end:{line:40,column:3}},loc:{start:{line:40,column:12},end:{line:42,column:3}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:18},end:{line:48,column:3}},line:43},4:{name:"(anonymous_4)",decl:{start:{line:51,column:21},end:{line:51,column:22}},loc:{start:{line:51,column:47},end:{line:53,column:5}},line:51},5:{name:"(anonymous_5)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:20},end:{line:64,column:5}},line:56},6:{name:"(anonymous_6)",decl:{start:{line:61,column:33},end:{line:61,column:34}},loc:{start:{line:61,column:39},end:{line:63,column:7}},line:61}},branchMap:{0:{loc:{start:{line:44,column:4},end:{line:47,column:5}},type:"if",locations:[{start:{line:44,column:4},end:{line:47,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},1:{loc:{start:{line:57,column:6},end:{line:60,column:7}},type:"if",locations:[{start:{line:57,column:6},end:{line:60,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57}},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:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4a33e65af05f7d08e216a604150e8920749ac334"},i=n[r]||(n[r]={});i[e]&&i[e].hash===t||(i[e]=c);var l=i[e];return s=function(){return l},l}s();const c={props:{refreshInterval:{default:1e3}},data(){return s().f[0]++,s().s[0]++,{updater:null,api:null}},created(){s().f[1]++,s().s[1]++,this.api=new r.k},mounted(){s().f[2]++,s().s[2]++,this.changeUpdater()},beforeDestroy(){s().f[3]++,s().s[3]++,null!=this.updater?(s().b[0][0]++,s().s[4]++,clearInterval(this.updater),s().s[5]++,this.updater=null):s().b[0][1]++},watch:{refreshInterval:function(e,t){s().f[4]++,s().s[6]++,this.changeUpdater()}},methods:{changeUpdater(){s().f[5]++,s().s[7]++,null!=this.updater?(s().b[1][0]++,s().s[8]++,clearInterval(this.updater),s().s[9]++,this.updater=null):s().b[1][1]++,s().s[10]++,this.updater=setInterval((()=>{s().f[6]++,s().s[11]++,this.update()}),this.refreshInterval)}}}},8123:(e,t,n)=>{n.d(t,{k:()=>o});var r=n(6088),s=(n(978),n(309),n(5984),n(7380),n(527),n(1697),n(9394),n(3438),n(3616),n(5630),n(896),n(4139),n(162)),c=n(4091);const i=new c["default"],l=s.Z.create({baseURL:location.origin,timeout:6e4,params:{}});l.interceptors.response.use((e=>e),(e=>{if(e.response){var t,n,r,s,c;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);let a=`HTTP ${e.response.status} - `;if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(a+=`${e.response.statusText} `),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(a+=`${e.response.config.data} `),null!==(r=e.response)&&void 0!==r&&null!==(r=r.data)&&void 0!==r&&r.message)a+=`${e.response.data.message}`;else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&s.exception)a+=`${e.response.data.exception}`;else if(null!==(c=e.response)&&void 0!==c&&null!==(c=c.data)&&void 0!==c&&null!==(c=c.error)&&void 0!==c&&c.message)e.response.data.error.class&&(a+=`${e.response.data.error.class} `),a+=`${e.response.data.error.message}`;else{var l;a+=`${null===(l=e.response)||void 0===l?void 0:l.data}`}throw i.$notify&&i.$notify.serious({title:"Network error",body:a}),e}throw e}));const a=l;class o{constructor(){(0,r.Z)(this,"id",1)}async exec(e,t,n={},r={},s=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(i){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope;const c=await a.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...r},timeout:s});return c.data.result}catch(i){var c=new Error;throw i.response?(c.name=i.response.data.error.data.class,c.message=i.response.data.error.data.message):i.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,n){return this.exec("get_item",[e,t,n])}get_param(e,t,n){return this.exec("get_param",[e,t,n])}get_parameter(e,t,n){return this.exec("get_parameter",[e,t,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_telemetry",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,r=30){const s=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:r});if(null!=s)for(var c=s.length,i=null,l=0;l<c;l++)i=this.decode_openc3_type(s[l][1]),null!==i&&(s[l][1]=i);return s}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30){const n=await this.exec("get_tlm_values",[e],{stale_time:t},{},1e4);for(var r=n[0].length,s=null,c=0;c<r;c++)s=this.decode_openc3_type(n[0][c]),null!==s&&(n[0][c]=s);return n}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,r="CONVERTED"){let s=null;if(void 0===t)s=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){var c=new Error;throw c.name="TypeError",c.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,c}s=await this.exec("tlm",[e],{type:t})}else s=await this.exec("tlm",[e,t,n],{type:r});var i=this.decode_openc3_type(s);return null!==i&&(s=i),s}async inject_tlm(e,t,n=null,r="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:r})}set_tlm(e,t,n,r){return this.exec("set_tlm",[e,t,n],{type:r})}override_tlm(e,t,n,r){return this.exec("override_tlm",[e,t,n],{type:r})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,r){return this.exec("normalize_tlm",[e,t,n],{type:r})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,r="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,r])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,r,s){var c=null;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(c=this.encode_openc3_type(r[i]),null!==c&&(r[i]=c));return this.exec(e,[t,n,r],{},s)}get_cmd_hazardous(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}cmd(e,t,n,r={}){return void 0===t?this.exec("cmd",e,{},r):this._cmd("cmd",e,t,n,r)}cmd_no_range_check(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}cmd_raw(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}cmd_raw_no_range_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}cmd_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}cmd_no_checks(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}cmd_raw_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}cmd_raw_no_checks(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}build_cmd(e,t,n){return void 0===t?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,n)}build_command(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,n){return this.exec("save_config",[e,t,n])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,n){return this.exec("enable_limits",[e,t,n])}disable_limits(e,t,n){return this.exec("disable_limits",[e,t,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("save_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n);return Array.from(r).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}}}]);
|
2
2
|
//# sourceMappingURL=872.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js/872.js","mappings":"kyFAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,CAAAD,IASZ,SACEE,MAAO,CACLC,gBAAiB,CACfC,QAAS,MAGbC,IAAAA,GACE,OADKL,IAAAM,EAAA,KAAAN,IAAAO,EAAA,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D,KAAK,gBAAiB,GACpC,CAEAgI,gBAAAA,GACE,OAAOvL,KAAKuD,KAAK,mBAAoB,GACvC,CAEAiI,WAAAA,CAAYhH,GACV,OAAOxE,KAAKuD,KAAK,cAAe,CAACiB,GACnC,CAEAiH,YAAAA,CAAaC,GACX,OAAO1L,KAAKuD,KAAK,eAAgBmI,EACnC,CAEAC,WAAAA,CAAYnH,EAAM9E,GAChB,OAAOM,KAAKuD,KAAK,cAAe,CAACiB,EAAM9E,GACzC,CAGAkM,YAAAA,CAAapH,EAAM9E,GACjB,OAAOM,KAAKuD,KAAK,eAAgB,CAACiB,EAAM9E,GAC1C,CAEAmM,WAAAA,GACE,OAAO7L,KAAKuD,KAAK,cAAe,GAClC,CAGA,gBAAMuI,CAAWC,GACf,GAAIlI,OAAOmI,gBAAiB,CAE1B,MAAMC,GAAc,IAAIC,aAAcC,OAAOJ,GAGvCK,QAA0BC,OAAOC,OAAOC,OAC5C,UACAN,GAIIO,EAAkB,IAAIC,WAAWL,GAGvC,OAAOM,MAAMC,KAAKH,GACfI,KAAKvM,GAAMA,EAAEmC,SAAS,IAAIqK,SAAS,EAAG,OACtCC,KAAK,GACV,CAEF,E","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/Updater.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/services/openc3-api.js"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n*/\n\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nexport default {\n props: {\n refreshInterval: {\n default: 1000,\n },\n },\n data() {\n return {\n updater: null,\n api: null,\n }\n },\n created() {\n this.api = new OpenC3Api()\n },\n mounted() {\n this.changeUpdater()\n },\n beforeDestroy() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n },\n watch: {\n // eslint-disable-next-line no-unused-vars\n refreshInterval: function (newVal, oldVal) {\n this.changeUpdater()\n },\n },\n methods: {\n changeUpdater() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n this.updater = setInterval(() => {\n this.update()\n }, this.refreshInterval)\n },\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nexport class OpenC3Api {\n id = 1\n\n constructor() {}\n\n async exec(\n method,\n params,\n kwparams = {},\n headerOptions = {},\n timeout = 60000,\n ) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity,\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n this.id = this.id + 1\n try {\n kwparams['scope'] = window.openc3Scope\n const response = await axios.post(\n '/openc3-api/api',\n {\n jsonrpc: '2.0',\n method: method,\n params: params,\n id: this.id,\n keyword_params: kwparams,\n },\n {\n headers: {\n Authorization: localStorage.openc3Token,\n 'Content-Type': 'application/json-rpc',\n ...headerOptions,\n },\n timeout: timeout,\n },\n )\n // var data = response.data\n // if (data.error) {\n // var err = new Error()\n // err.name = data.error.data.class\n // err.message = data.error.data.message\n // console.log(data.error.data.backtrace.join('\\n'))\n // throw err\n // }\n return response.data.result\n } catch (error) {\n var err = new Error()\n if (error.response) {\n // The request was made and the server responded with a\n // status code that falls out of the range of 2xx\n err.name = error.response.data.error.data.class\n err.message = error.response.data.error.data.message\n } else if (error.request) {\n // The request was made but no response was received, `error.request`\n // is an instance of XMLHttpRequest in the browser and an instance\n // of http.ClientRequest in Node.js\n err.name = 'Request error'\n // NOTE: Openc3Screen.vue uses this specific message to determine\n // if the CmdTlmApi server is down. Don't change unless also changing there.\n err.message = 'Request error, no response received'\n } else {\n // Something happened in setting up the request and triggered an Error\n err.name = 'Unknown error'\n }\n throw err\n }\n }\n\n decode_openc3_type(val) {\n if (val !== null && typeof val === 'object') {\n if (val.json_class == 'Float' && val.raw) {\n if (val.raw == 'NaN') {\n return NaN\n } else if (val.raw == 'Infinity') {\n return Infinity\n } else if (val.raw == '-Infinity') {\n return -Infinity\n }\n }\n }\n return null\n }\n\n encode_openc3_type(val) {\n if (Number.isNaN(val)) {\n return { json_class: 'Float', raw: 'NaN' }\n } else if (val == Number.POSITIVE_INFINITY) {\n return { json_class: 'Float', raw: 'Infinity' }\n } else if (val == Number.NEGATIVE_INFINITY) {\n return { json_class: 'Float', raw: '-Infinity' }\n }\n return null\n }\n\n ensure_offline_access() {\n this.offline_access_needed().then((needed) => {\n if (needed) {\n if (localStorage.openc3OfflineToken) {\n this.set_offline_access(localStorage.openc3OfflineToken).then(() => {\n delete localStorage.openc3OfflineToken\n })\n } else {\n OpenC3Auth.getOfflineAccess()\n }\n }\n })\n }\n\n // ***********************************************\n // The following APIs are used by the CmdTlmServer\n // ***********************************************\n\n offline_access_needed() {\n return this.exec('offline_access_needed', [])\n }\n\n set_offline_access(offline_access_token) {\n return this.exec('set_offline_access', [offline_access_token])\n }\n\n get_all_interface_info() {\n return this.exec('get_all_interface_info', [])\n }\n\n map_target_to_interface(target_name, interface_name) {\n return this.exec('map_target_to_interface', [target_name, interface_name])\n }\n\n connect_interface(interface_name, ...interface_params) {\n if (interface_params.length > 0) {\n return this.exec('connect_interface', [\n interface_name,\n ...interface_params,\n ])\n } else {\n return this.exec('connect_interface', [interface_name])\n }\n }\n\n disconnect_interface(interface_name) {\n return this.exec('disconnect_interface', [interface_name])\n }\n\n get_all_router_info() {\n return this.exec('get_all_router_info', [])\n }\n\n connect_router(router_name) {\n return this.exec('connect_router', [router_name])\n }\n\n disconnect_router(router_name) {\n return this.exec('disconnect_router', [router_name])\n }\n\n get_target_interfaces() {\n return this.exec('get_target_interfaces', [])\n }\n\n // DEPRECATED\n get_all_target_info() {\n return this.exec('get_all_target_info', [])\n }\n\n get_tlm_cnts(target_commands) {\n return this.exec('get_tlm_cnts', [target_commands])\n }\n\n get_item(target, packet, item) {\n return this.exec('get_item', [target, packet, item])\n }\n\n get_parameter(target, packet, item) {\n return this.exec('get_parameter', [target, packet, item])\n }\n\n get_limits_sets() {\n return this.exec('get_limits_sets', [])\n }\n\n get_limits_set() {\n return this.exec('get_limits_set', [])\n }\n\n set_limits_set(limits_set) {\n return this.exec('set_limits_set', [limits_set])\n }\n\n // ***********************************************\n // End CmdTlmServer APIs\n // ***********************************************\n\n get_target(target_name) {\n return this.exec('get_target', [target_name])\n }\n\n // get_target_list is DEPRECATED\n get_target_list() {\n return this.exec('get_target_list', [])\n }\n get_target_names() {\n return this.exec('get_target_names', [])\n }\n\n get_telemetry(target_name, packet_name) {\n return this.exec('get_telemetry', [target_name, packet_name])\n }\n\n get_all_telemetry(target_name) {\n return this.exec('get_all_telemetry', [target_name])\n }\n\n get_all_telemetry_names(target_name) {\n return this.exec('get_all_telemetry_names', [target_name])\n }\n\n async get_tlm_packet(target_name, packet_name, value_type, stale_time = 30) {\n const data = await this.exec('get_tlm_packet', [target_name, packet_name], {\n type: value_type,\n stale_time: stale_time,\n })\n // Make sure data isn't null or undefined. Note this is the only valid use of == or !=\n if (data != null) {\n var len = data.length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_openc3_type(data[i][1])\n if (converted !== null) {\n data[i][1] = converted\n }\n }\n }\n return data\n }\n\n get_packet_derived_items(target_name, packet_name) {\n return this.exec('get_packet_derived_items', [target_name, packet_name])\n }\n\n get_tlm_buffer(target_name, packet_name) {\n return this.exec('get_tlm_buffer', [target_name, packet_name])\n }\n\n async get_tlm_values(items, stale_time = 30) {\n const data = await this.exec(\n 'get_tlm_values',\n [items],\n {\n stale_time: stale_time,\n },\n {},\n 10000, // 10s timeout ... should never be this long\n )\n var len = data[0].length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_openc3_type(data[0][i])\n if (converted !== null) {\n data[0][i] = converted\n }\n }\n return data\n }\n\n get_limits(target_name, packet_name, item_name) {\n return this.exec('get_limits', [target_name, packet_name, item_name])\n }\n\n async tlm(target_name, packet_name, item_name, value_type = 'CONVERTED') {\n let data = null\n // Check for the single string syntax: tlm(\"TGT PKT ITEM\")\n if (packet_name === undefined) {\n data = await this.exec('tlm', [target_name])\n // Check for the single string syntax with type: tlm(\"TGT PKT ITEM\", \"RAW\")\n } else if (item_name === undefined) {\n if (\n ['RAW', 'CONVERTED', 'FORMATTED', 'WITH_UNITS'].includes(packet_name)\n ) {\n data = await this.exec('tlm', [target_name], { type: packet_name })\n } else {\n var err = new Error()\n err.name = 'TypeError'\n err.message = `Invalid data type ${packet_name}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`\n throw err\n }\n } else {\n data = await this.exec('tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n var converted = this.decode_openc3_type(data)\n if (converted !== null) {\n data = converted\n }\n return data\n }\n\n async inject_tlm(\n target_name,\n packet_name,\n item_hash = null,\n value_type = 'CONVERTED',\n ) {\n data = await this.exec(\n 'inject_tlm',\n [target_name, packet_name, item_hash],\n {\n type: value_type,\n },\n )\n }\n\n set_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('set_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n override_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('override_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n get_overrides() {\n return this.exec('get_overrides')\n }\n\n normalize_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('normalize_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n get_all_commands(target_name) {\n return this.exec('get_all_commands', [target_name])\n }\n\n get_all_command_names(target_name) {\n return this.exec('get_all_command_names', [target_name])\n }\n\n get_command(target_name, command_name) {\n return this.exec('get_command', [target_name, command_name])\n }\n\n get_cmd_cnts(target_commands) {\n return this.exec('get_cmd_cnts', [target_commands])\n }\n\n get_cmd_value(\n target_name,\n packet_name,\n parameter_name,\n value_type = 'CONVERTED',\n ) {\n return this.exec('get_cmd_value', [\n target_name,\n packet_name,\n parameter_name,\n value_type,\n ])\n }\n\n get_cmd_buffer(target_name, packet_name) {\n return this.exec('get_cmd_buffer', [target_name, packet_name])\n }\n\n // Implementation of functionality shared by cmd methods with param_lists.\n _cmd(method, target_name, command_name, param_list, headerOptions) {\n var converted = null\n for (var key in param_list) {\n if (Object.prototype.hasOwnProperty.call(param_list, key)) {\n converted = this.encode_openc3_type(param_list[key])\n if (converted !== null) {\n param_list[key] = converted\n }\n }\n }\n return this.exec(\n method,\n [target_name, command_name, param_list],\n {},\n headerOptions,\n )\n }\n\n get_cmd_hazardous(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('get_cmd_hazardous', target_name)\n } else {\n return this._cmd(\n 'get_cmd_hazardous',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd(target_name, command_name, param_list, headerOptions = {}) {\n if (command_name === undefined) {\n return this.exec('cmd', target_name, {}, headerOptions)\n } else {\n return this._cmd(\n 'cmd',\n target_name,\n command_name,\n param_list,\n headerOptions,\n )\n }\n }\n\n cmd_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_range_check',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd_raw(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw', target_name)\n } else {\n return this._cmd('cmd_raw', target_name, command_name, param_list)\n }\n }\n\n cmd_raw_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_range_check',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_hazardous_check',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_checks', target_name)\n } else {\n return this._cmd('cmd_no_checks', target_name, command_name, param_list)\n }\n }\n\n cmd_raw_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_hazardous_check',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd_raw_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_checks', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_checks',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n build_command(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('build_command', target_name)\n } else {\n return this._cmd('build_command', target_name, command_name, param_list)\n }\n }\n\n get_interface_names() {\n return this.exec('get_interface_names', [])\n }\n\n send_raw(interface_name, data) {\n return this.exec('send_raw', [interface_name, data])\n }\n\n list_configs(tool) {\n return this.exec('list_configs', [tool])\n }\n\n load_config(tool, name) {\n return this.exec('load_config', [tool, name])\n }\n\n save_config(tool, name, data) {\n return this.exec('save_config', [tool, name, data])\n }\n\n delete_config(tool, name) {\n return this.exec('delete_config', [tool, name])\n }\n\n enable_limits(target, packet, item) {\n return this.exec('enable_limits', [target, packet, item])\n }\n\n disable_limits(target, packet, item) {\n return this.exec('disable_limits', [target, packet, item])\n }\n\n get_out_of_limits() {\n return this.exec('get_out_of_limits', [])\n }\n\n get_overall_limits_state(ignored) {\n return this.exec('get_overall_limits_state', [ignored])\n }\n\n list_settings() {\n return this.exec('list_settings', [])\n }\n\n get_all_settings() {\n return this.exec('get_all_settings', [])\n }\n\n get_setting(name) {\n return this.exec('get_setting', [name])\n }\n\n get_settings(array) {\n return this.exec('get_settings', array)\n }\n\n set_setting(name, data) {\n return this.exec('set_setting', [name, data])\n }\n\n // DEPRECATED\n save_setting(name, data) {\n return this.exec('save_setting', [name, data])\n }\n\n get_metrics() {\n return this.exec('get_metrics', [])\n }\n\n // TODO: Currently unused but seemed like a useful function\n async hashString(string) {\n if (window.isSecureContext) {\n // Encode the string as an arrayBuffer which the subtle crypto API uses\n const arrayBuffer = new TextEncoder().encode(string)\n // Use the subtle crypto API to perform a SHA256 Sum of the array buffer\n // The resulting hash is stored in an array buffer\n const hashAsArrayBuffer = await crypto.subtle.digest(\n 'SHA-256',\n arrayBuffer,\n )\n // To create a string we will get the hexadecimal value of each byte of the array buffer\n // This gets us an array where each byte of the array buffer becomes one item in the array\n const uint8ViewOfHash = new Uint8Array(hashAsArrayBuffer)\n // We then convert it to a regular array so we can convert each item to hexadecimal strings\n // Where to characters of 0-9 or a-f represent a number between 0 and 16, containing 4 bits of information, so 2 of them is 8 bits (1 byte).\n return Array.from(uint8ViewOfHash)\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('')\n }\n // else ?\n }\n}\n"],"names":["cov_18iatml2cn","actualCoverage","props","refreshInterval","default","data","f","s","updater","api","created","this","OpenC3Api","mounted","changeUpdater","beforeDestroy","b","clearInterval","watch","newVal","oldVal","methods","setInterval","update","vueInstance","Vue","axiosInstance","axios","baseURL","location","origin","timeout","params","interceptors","response","use","error","_error$response","_error$response2","_error$response3","_error$response4","_error$response5","status","OpenC3Auth","updateToken","defaultMinValidity","then","refreshed","setTokens","headers","includes","toString","Promise","reject","body","statusText","config","message","exception","class","_error$response6","$notify","serious","title","constructor","_defineProperty","exec","method","kwparams","headerOptions","login","id","window","openc3Scope","post","jsonrpc","keyword_params","Authorization","localStorage","openc3Token","result","err","Error","name","request","decode_openc3_type","val","json_class","raw","NaN","Infinity","encode_openc3_type","Number","isNaN","POSITIVE_INFINITY","NEGATIVE_INFINITY","ensure_offline_access","offline_access_needed","needed","openc3OfflineToken","set_offline_access","getOfflineAccess","offline_access_token","get_all_interface_info","map_target_to_interface","target_name","interface_name","connect_interface","interface_params","length","disconnect_interface","get_all_router_info","connect_router","router_name","disconnect_router","get_target_interfaces","get_all_target_info","get_tlm_cnts","target_commands","get_item","target","packet","item","get_parameter","get_limits_sets","get_limits_set","set_limits_set","limits_set","get_target","get_target_list","get_target_names","get_telemetry","packet_name","get_all_telemetry","get_all_telemetry_names","get_tlm_packet","value_type","stale_time","type","len","converted","i","get_packet_derived_items","get_tlm_buffer","get_tlm_values","items","get_limits","item_name","tlm","undefined","inject_tlm","item_hash","set_tlm","override_tlm","get_overrides","normalize_tlm","get_all_commands","get_all_command_names","get_command","command_name","get_cmd_cnts","get_cmd_value","parameter_name","get_cmd_buffer","_cmd","param_list","key","Object","prototype","hasOwnProperty","call","get_cmd_hazardous","cmd","cmd_no_range_check","cmd_raw","cmd_raw_no_range_check","cmd_no_hazardous_check","cmd_no_checks","cmd_raw_no_hazardous_check","cmd_raw_no_checks","build_command","get_interface_names","send_raw","list_configs","tool","load_config","save_config","delete_config","enable_limits","disable_limits","get_out_of_limits","get_overall_limits_state","ignored","list_settings","get_all_settings","get_setting","get_settings","array","set_setting","save_setting","get_metrics","hashString","string","isSecureContext","arrayBuffer","TextEncoder","encode","hashAsArrayBuffer","crypto","subtle","digest","uint8ViewOfHash","Uint8Array","Array","from","map","padStart","join"],"sourceRoot":""}
|
1
|
+
{"version":3,"file":"js/872.js","mappings":"kyFAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,CAAAD,IASZ,SACEE,MAAO,CACLC,gBAAiB,CACfC,QAAS,MAGbC,IAAAA,GACE,OADKL,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACE,CACLC,QAAS,KACTC,IAAK,KAET,EACAC,OAAAA,GAAUV,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACRI,KAAKF,IAAM,IAAIG,EAAAA,CACjB,EACAC,OAAAA,GAAUb,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACRI,KAAKG,eACP,EACAC,aAAAA,GAAgBf,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACM,MAAhBI,KAAKH,SAAiBR,IAAAgB,EAAA,QAAAhB,IAAAO,EAAA,KACxBU,cAAcN,KAAKH,SAAQR,IAAAO,EAAA,KAC3BI,KAAKH,QAAU,MAChBR,IAAAgB,EAAA,OACH,EACAE,MAAO,CAELf,gBAAiB,SAAUgB,EAAQC,GAAQpB,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACzCI,KAAKG,eACP,GAEFO,QAAS,CACPP,aAAAA,GAAgBd,IAAAM,EAAA,KAAAN,IAAAO,EAAA,KACM,MAAhBI,KAAKH,SAAiBR,IAAAgB,EAAA,QAAAhB,IAAAO,EAAA,KACxBU,cAAcN,KAAKH,SAAQR,IAAAO,EAAA,KAC3BI,KAAKH,QAAU,MAChBR,IAAAgB,EAAA,QAAAhB,IAAAO,EAAA,MACDI,KAAKH,QAAUc,aA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BAAAA,GACE,OAAOhM,KAAKwD,KAAK,mBAAoB,GACvC,CAEAyI,WAAAA,CAAYxH,GACV,OAAOzE,KAAKwD,KAAK,cAAe,CAACiB,GACnC,CAEAyH,YAAAA,CAAaC,GACX,OAAOnM,KAAKwD,KAAK,eAAgB2I,EACnC,CAEAC,WAAAA,CAAY3H,EAAM/E,GAChB,OAAOM,KAAKwD,KAAK,cAAe,CAACiB,EAAM/E,GACzC,CAGA2M,YAAAA,CAAa5H,EAAM/E,GACjB,OAAOM,KAAKwD,KAAK,eAAgB,CAACiB,EAAM/E,GAC1C,CAEA4M,WAAAA,GACE,OAAOtM,KAAKwD,KAAK,cAAe,GAClC,CAGA,gBAAM+I,CAAWC,GACf,GAAI1I,OAAO2I,gBAAiB,CAE1B,MAAMC,GAAc,IAAIC,aAAcC,OAAOJ,GAGvCK,QAA0BC,OAAOC,OAAOC,OAC5C,UACAN,GAIIO,EAAkB,IAAIC,WAAWL,GAGvC,OAAOM,MAAMC,KAAKH,GACfI,KAAKhN,GAAMA,EAAEoC,SAAS,IAAI6K,SAAS,EAAG,OACtCC,KAAK,GACV,CAEF,E","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/Updater.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-cmdtlmserver/../openc3-tool-common/src/services/openc3-api.js"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n*/\n\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nexport default {\n props: {\n refreshInterval: {\n default: 1000,\n },\n },\n data() {\n return {\n updater: null,\n api: null,\n }\n },\n created() {\n this.api = new OpenC3Api()\n },\n mounted() {\n this.changeUpdater()\n },\n beforeDestroy() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n },\n watch: {\n // eslint-disable-next-line no-unused-vars\n refreshInterval: function (newVal, oldVal) {\n this.changeUpdater()\n },\n },\n methods: {\n changeUpdater() {\n if (this.updater != null) {\n clearInterval(this.updater)\n this.updater = null\n }\n this.updater = setInterval(() => {\n this.update()\n }, this.refreshInterval)\n },\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nexport class OpenC3Api {\n id = 1\n\n constructor() {}\n\n async exec(\n method,\n params,\n kwparams = {},\n headerOptions = {},\n timeout = 60000,\n ) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity,\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n this.id = this.id + 1\n try {\n kwparams['scope'] = window.openc3Scope\n const response = await axios.post(\n '/openc3-api/api',\n {\n jsonrpc: '2.0',\n method: method,\n params: params,\n id: this.id,\n keyword_params: kwparams,\n },\n {\n headers: {\n Authorization: localStorage.openc3Token,\n 'Content-Type': 'application/json-rpc',\n ...headerOptions,\n },\n timeout: timeout,\n },\n )\n // var data = response.data\n // if (data.error) {\n // var err = new Error()\n // err.name = data.error.data.class\n // err.message = data.error.data.message\n // console.log(data.error.data.backtrace.join('\\n'))\n // throw err\n // }\n return response.data.result\n } catch (error) {\n var err = new Error()\n if (error.response) {\n // The request was made and the server responded with a\n // status code that falls out of the range of 2xx\n err.name = error.response.data.error.data.class\n err.message = error.response.data.error.data.message\n } else if (error.request) {\n // The request was made but no response was received, `error.request`\n // is an instance of XMLHttpRequest in the browser and an instance\n // of http.ClientRequest in Node.js\n err.name = 'Request error'\n // NOTE: Openc3Screen.vue uses this specific message to determine\n // if the CmdTlmApi server is down. Don't change unless also changing there.\n err.message = 'Request error, no response received'\n } else {\n // Something happened in setting up the request and triggered an Error\n err.name = 'Unknown error'\n }\n throw err\n }\n }\n\n decode_openc3_type(val) {\n if (val !== null && typeof val === 'object') {\n if (val.json_class == 'Float' && val.raw) {\n if (val.raw == 'NaN') {\n return NaN\n } else if (val.raw == 'Infinity') {\n return Infinity\n } else if (val.raw == '-Infinity') {\n return -Infinity\n }\n }\n }\n return null\n }\n\n encode_openc3_type(val) {\n if (Number.isNaN(val)) {\n return { json_class: 'Float', raw: 'NaN' }\n } else if (val == Number.POSITIVE_INFINITY) {\n return { json_class: 'Float', raw: 'Infinity' }\n } else if (val == Number.NEGATIVE_INFINITY) {\n return { json_class: 'Float', raw: '-Infinity' }\n }\n return null\n }\n\n ensure_offline_access() {\n this.offline_access_needed().then((needed) => {\n if (needed) {\n if (localStorage.openc3OfflineToken) {\n this.set_offline_access(localStorage.openc3OfflineToken).then(() => {\n delete localStorage.openc3OfflineToken\n })\n } else {\n OpenC3Auth.getOfflineAccess()\n }\n }\n })\n }\n\n // ***********************************************\n // The following APIs are used by the CmdTlmServer\n // ***********************************************\n\n offline_access_needed() {\n return this.exec('offline_access_needed', [])\n }\n\n set_offline_access(offline_access_token) {\n return this.exec('set_offline_access', [offline_access_token])\n }\n\n get_all_interface_info() {\n return this.exec('get_all_interface_info', [])\n }\n\n map_target_to_interface(target_name, interface_name) {\n return this.exec('map_target_to_interface', [target_name, interface_name])\n }\n\n connect_interface(interface_name, ...interface_params) {\n if (interface_params.length > 0) {\n return this.exec('connect_interface', [\n interface_name,\n ...interface_params,\n ])\n } else {\n return this.exec('connect_interface', [interface_name])\n }\n }\n\n disconnect_interface(interface_name) {\n return this.exec('disconnect_interface', [interface_name])\n }\n\n get_all_router_info() {\n return this.exec('get_all_router_info', [])\n }\n\n connect_router(router_name) {\n return this.exec('connect_router', [router_name])\n }\n\n disconnect_router(router_name) {\n return this.exec('disconnect_router', [router_name])\n }\n\n get_target_interfaces() {\n return this.exec('get_target_interfaces', [])\n }\n\n // DEPRECATED\n get_all_target_info() {\n return this.exec('get_all_target_info', [])\n }\n\n get_tlm_cnts(target_commands) {\n return this.exec('get_tlm_cnts', [target_commands])\n }\n\n get_item(target, packet, item) {\n return this.exec('get_item', [target, packet, item])\n }\n\n get_param(target, packet, item) {\n return this.exec('get_param', [target, packet, item])\n }\n // DEPRECATED for get_param\n get_parameter(target, packet, item) {\n return this.exec('get_parameter', [target, packet, item])\n }\n\n get_limits_sets() {\n return this.exec('get_limits_sets', [])\n }\n\n get_limits_set() {\n return this.exec('get_limits_set', [])\n }\n\n set_limits_set(limits_set) {\n return this.exec('set_limits_set', [limits_set])\n }\n\n // ***********************************************\n // End CmdTlmServer APIs\n // ***********************************************\n\n get_target(target_name) {\n return this.exec('get_target', [target_name])\n }\n\n get_target_names() {\n return this.exec('get_target_names', [])\n }\n // DEPRECATED\n get_target_list() {\n return this.exec('get_target_list', [])\n }\n\n get_tlm(target_name, packet_name) {\n return this.exec('get_tlm', [target_name, packet_name])\n }\n // DEPRECATED\n get_telemetry(target_name, packet_name) {\n return this.exec('get_telemetry', [target_name, packet_name])\n }\n\n get_all_tlm(target_name) {\n return this.exec('get_all_tlm', [target_name])\n }\n // DEPREACTE\n get_all_telemetry(target_name) {\n return this.exec('get_all_telemetry', [target_name])\n }\n\n get_all_tlm_names(target_name) {\n return this.exec('get_all_tlm_names', [target_name])\n }\n // DEPRECATED\n get_all_telemetry_names(target_name) {\n return this.exec('get_all_telemetry_names', [target_name])\n }\n\n async get_tlm_packet(target_name, packet_name, value_type, stale_time = 30) {\n const data = await this.exec('get_tlm_packet', [target_name, packet_name], {\n type: value_type,\n stale_time: stale_time,\n })\n // Make sure data isn't null or undefined. Note this is the only valid use of == or !=\n if (data != null) {\n var len = data.length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_openc3_type(data[i][1])\n if (converted !== null) {\n data[i][1] = converted\n }\n }\n }\n return data\n }\n\n get_packet_derived_items(target_name, packet_name) {\n return this.exec('get_packet_derived_items', [target_name, packet_name])\n }\n\n get_tlm_buffer(target_name, packet_name) {\n return this.exec('get_tlm_buffer', [target_name, packet_name])\n }\n\n async get_tlm_values(items, stale_time = 30) {\n const data = await this.exec(\n 'get_tlm_values',\n [items],\n {\n stale_time: stale_time,\n },\n {},\n 10000, // 10s timeout ... should never be this long\n )\n var len = data[0].length\n var converted = null\n for (var i = 0; i < len; i++) {\n converted = this.decode_openc3_type(data[0][i])\n if (converted !== null) {\n data[0][i] = converted\n }\n }\n return data\n }\n\n get_limits(target_name, packet_name, item_name) {\n return this.exec('get_limits', [target_name, packet_name, item_name])\n }\n\n async tlm(target_name, packet_name, item_name, value_type = 'CONVERTED') {\n let data = null\n // Check for the single string syntax: tlm(\"TGT PKT ITEM\")\n if (packet_name === undefined) {\n data = await this.exec('tlm', [target_name])\n // Check for the single string syntax with type: tlm(\"TGT PKT ITEM\", \"RAW\")\n } else if (item_name === undefined) {\n if (\n ['RAW', 'CONVERTED', 'FORMATTED', 'WITH_UNITS'].includes(packet_name)\n ) {\n data = await this.exec('tlm', [target_name], { type: packet_name })\n } else {\n var err = new Error()\n err.name = 'TypeError'\n err.message = `Invalid data type ${packet_name}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`\n throw err\n }\n } else {\n data = await this.exec('tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n var converted = this.decode_openc3_type(data)\n if (converted !== null) {\n data = converted\n }\n return data\n }\n\n async inject_tlm(\n target_name,\n packet_name,\n item_hash = null,\n value_type = 'CONVERTED',\n ) {\n data = await this.exec(\n 'inject_tlm',\n [target_name, packet_name, item_hash],\n {\n type: value_type,\n },\n )\n }\n\n set_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('set_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n override_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('override_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n get_overrides() {\n return this.exec('get_overrides')\n }\n\n normalize_tlm(target_name, packet_name, item_name, value_type) {\n return this.exec('normalize_tlm', [target_name, packet_name, item_name], {\n type: value_type,\n })\n }\n\n get_all_cmds(target_name) {\n return this.exec('get_all_cmds', [target_name])\n }\n // DEPRECATED for get_all_cmds\n get_all_commands(target_name) {\n return this.exec('get_all_commands', [target_name])\n }\n\n get_all_cmd_names(target_name) {\n return this.exec('get_all_cmd_names', [target_name])\n }\n // DEPRECATED for get_all_cmd_names\n get_all_command_names(target_name) {\n return this.exec('get_all_command_names', [target_name])\n }\n\n get_cmd(target_name, command_name) {\n return this.exec('get_cmd', [target_name, command_name])\n }\n // DEPRECATED for get_cmd\n get_command(target_name, command_name) {\n return this.exec('get_command', [target_name, command_name])\n }\n\n get_cmd_cnts(target_commands) {\n return this.exec('get_cmd_cnts', [target_commands])\n }\n\n get_cmd_value(\n target_name,\n packet_name,\n parameter_name,\n value_type = 'CONVERTED',\n ) {\n return this.exec('get_cmd_value', [\n target_name,\n packet_name,\n parameter_name,\n value_type,\n ])\n }\n\n get_cmd_buffer(target_name, packet_name) {\n return this.exec('get_cmd_buffer', [target_name, packet_name])\n }\n\n // Implementation of functionality shared by cmd methods with param_lists.\n _cmd(method, target_name, command_name, param_list, headerOptions) {\n var converted = null\n for (var key in param_list) {\n if (Object.prototype.hasOwnProperty.call(param_list, key)) {\n converted = this.encode_openc3_type(param_list[key])\n if (converted !== null) {\n param_list[key] = converted\n }\n }\n }\n return this.exec(\n method,\n [target_name, command_name, param_list],\n {},\n headerOptions,\n )\n }\n\n get_cmd_hazardous(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('get_cmd_hazardous', target_name)\n } else {\n return this._cmd(\n 'get_cmd_hazardous',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd(target_name, command_name, param_list, headerOptions = {}) {\n if (command_name === undefined) {\n return this.exec('cmd', target_name, {}, headerOptions)\n } else {\n return this._cmd(\n 'cmd',\n target_name,\n command_name,\n param_list,\n headerOptions,\n )\n }\n }\n\n cmd_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_range_check',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd_raw(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw', target_name)\n } else {\n return this._cmd('cmd_raw', target_name, command_name, param_list)\n }\n }\n\n cmd_raw_no_range_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_range_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_range_check',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_no_hazardous_check',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_no_checks', target_name)\n } else {\n return this._cmd('cmd_no_checks', target_name, command_name, param_list)\n }\n }\n\n cmd_raw_no_hazardous_check(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_hazardous_check', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_hazardous_check',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n cmd_raw_no_checks(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('cmd_raw_no_checks', target_name)\n } else {\n return this._cmd(\n 'cmd_raw_no_checks',\n target_name,\n command_name,\n param_list,\n )\n }\n }\n\n build_cmd(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('build_cmd', target_name)\n } else {\n return this._cmd('build_cmd', target_name, command_name, param_list)\n }\n }\n // DEPRECATED for build_cmd\n build_command(target_name, command_name, param_list) {\n if (command_name === undefined) {\n return this.exec('build_command', target_name)\n } else {\n return this._cmd('build_command', target_name, command_name, param_list)\n }\n }\n\n get_interface_names() {\n return this.exec('get_interface_names', [])\n }\n\n send_raw(interface_name, data) {\n return this.exec('send_raw', [interface_name, data])\n }\n\n list_configs(tool) {\n return this.exec('list_configs', [tool])\n }\n\n load_config(tool, name) {\n return this.exec('load_config', [tool, name])\n }\n\n save_config(tool, name, data) {\n return this.exec('save_config', [tool, name, data])\n }\n\n delete_config(tool, name) {\n return this.exec('delete_config', [tool, name])\n }\n\n enable_limits(target, packet, item) {\n return this.exec('enable_limits', [target, packet, item])\n }\n\n disable_limits(target, packet, item) {\n return this.exec('disable_limits', [target, packet, item])\n }\n\n get_out_of_limits() {\n return this.exec('get_out_of_limits', [])\n }\n\n get_overall_limits_state(ignored) {\n return this.exec('get_overall_limits_state', [ignored])\n }\n\n list_settings() {\n return this.exec('list_settings', [])\n }\n\n get_all_settings() {\n return this.exec('get_all_settings', [])\n }\n\n get_setting(name) {\n return this.exec('get_setting', [name])\n }\n\n get_settings(array) {\n return this.exec('get_settings', array)\n }\n\n set_setting(name, data) {\n return this.exec('set_setting', [name, data])\n }\n\n // DEPRECATED\n save_setting(name, data) {\n return this.exec('save_setting', [name, data])\n }\n\n get_metrics() {\n return this.exec('get_metrics', [])\n }\n\n // TODO: Currently unused but seemed like a useful function\n async hashString(string) {\n if (window.isSecureContext) {\n // Encode the string as an arrayBuffer which the subtle crypto API uses\n const arrayBuffer = new TextEncoder().encode(string)\n // Use the subtle crypto API to perform a SHA256 Sum of the array buffer\n // The resulting hash is stored in an array buffer\n const hashAsArrayBuffer = await crypto.subtle.digest(\n 'SHA-256',\n arrayBuffer,\n )\n // To create a string we will get the hexadecimal value of each byte of the array buffer\n // This gets us an array where each byte of the array buffer becomes one item in the array\n const uint8ViewOfHash = new Uint8Array(hashAsArrayBuffer)\n // We then convert it to a regular array so we can convert each item to hexadecimal strings\n // Where to characters of 0-9 or a-f represent a number between 0 and 16, containing 4 bits of information, so 2 of them is 8 bits (1 byte).\n return Array.from(uint8ViewOfHash)\n .map((b) => b.toString(16).padStart(2, '0'))\n .join('')\n }\n // else ?\n }\n}\n"],"names":["cov_18iatml2cn","actualCoverage","props","refreshInterval","default","data","f","s","updater","api","created","this","OpenC3Api","mounted","changeUpdater","beforeDestroy","b","clearInterval","watch","newVal","oldVal","methods","setInterval","update","vueInstance","Vue","axiosInstance","axios","create","baseURL","location","origin","timeout","params","interceptors","response","use","error","_error$response","_error$response2","_error$response3","_error$response4","_error$response5","status","OpenC3Auth","updateToken","defaultMinValidity","then","refreshed","setTokens","headers","includes","toString","Promise","reject","body","statusText","config","message","exception","class","_error$response6","$notify","serious","title","constructor","_defineProperty","exec","method","kwparams","headerOptions","login","id","window","openc3Scope","post","jsonrpc","keyword_params","Authorization","localStorage","openc3Token","result","err","Error","name","request","decode_openc3_type","val","json_class","raw","NaN","Infinity","encode_openc3_type","Number","isNaN","POSITIVE_INFINITY","NEGATIVE_INFINITY","ensure_offline_access","offline_access_needed","needed","openc3OfflineToken","set_offline_access","getOfflineAccess","offline_access_token","get_all_interface_info","map_target_to_interface","target_name","interface_name","connect_interface","interface_params","length","disconnect_interface","get_all_router_info","connect_router","router_name","disconnect_router","get_target_interfaces","get_all_target_info","get_tlm_cnts","target_commands","get_item","target","packet","item","get_param","get_parameter","get_limits_sets","get_limits_set","set_limits_set","limits_set","get_target","get_target_names","get_target_list","get_tlm","packet_name","get_telemetry","get_all_tlm","get_all_telemetry","get_all_tlm_names","get_all_telemetry_names","get_tlm_packet","value_type","stale_time","type","len","converted","i","get_packet_derived_items","get_tlm_buffer","get_tlm_values","items","get_limits","item_name","tlm","undefined","inject_tlm","item_hash","set_tlm","override_tlm","get_overrides","normalize_tlm","get_all_cmds","get_all_commands","get_all_cmd_names","get_all_command_names","get_cmd","command_name","get_command","get_cmd_cnts","get_cmd_value","parameter_name","get_cmd_buffer","_cmd","param_list","key","Object","prototype","hasOwnProperty","call","get_cmd_hazardous","cmd","cmd_no_range_check","cmd_raw","cmd_raw_no_range_check","cmd_no_hazardous_check","cmd_no_checks","cmd_raw_no_hazardous_check","cmd_raw_no_checks","build_cmd","build_command","get_interface_names","send_raw","list_configs","tool","load_config","save_config","delete_config","enable_limits","disable_limits","get_out_of_limits","get_overall_limits_state","ignored","list_settings","get_all_settings","get_setting","get_settings","array","set_setting","save_setting","get_metrics","hashString","string","isSecureContext","arrayBuffer","TextEncoder","encode","hashAsArrayBuffer","crypto","subtle","digest","uint8ViewOfHash","Uint8Array","Array","from","map","padStart","join"],"sourceRoot":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[939],{5939:(e,n,t)=>{function a(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TargetsTab.vue",n="22f881bf0087d553db1bed525343eae1a62ca7b4",t=new Function("return this")(),l="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TargetsTab.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:695}},4:{start:{line:1,column:410},end:{line:1,column:424}},5:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:394},end:{line:1,column:395}},loc:{start:{line:1,column:409},end:{line:1,column:425}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"22f881bf0087d553db1bed525343eae1a62ca7b4"},r=t[l]||(t[l]={});r[e]&&r[e].hash===n||(r[e]=s);var o=r[e];return a=function(){return o},o}t.r(n),t.d(n,{default:()=>m}),a(),a().s[0]++;var l=function(){a().f[0]++;var e=(a().s[1]++,this),n=(a().s[2]++,e._self._c);return a().s[3]++,n("v-card",[n("v-card-title",[e._v("\n "+e._s(e.data.length)+" Targets\n "),n("v-spacer"),e._v(" "),n("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){a().f[1]++,a().s[4]++,e.search=n},expression:"search"}})],1),e._v(" "),n("v-data-table",{attrs:{headers:e.headers,items:e.data,search:e.search,"items-per-page":10,"footer-props":{itemsPerPageOptions:[10,20,-1]},"calculate-widths":"","multi-sort":"","data-test":"targets-table"}})],1)},s=(a().s[5]++,[]),r=(t(309),t(4936),t(4872));function o(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TargetsTab.vue",n="d2e917495a9e594353d1d473262b601dba7bac68",t=new Function("return this")(),a="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TargetsTab.vue",statementMap:{0:{start:{line:11,column:4},end:{line:18,column:5}},1:{start:{line:22,column:6},end:{line:22,column:43}},2:{start:{line:22,column:37},end:{line:22,column:43}},3:{start:{line:23,column:6},end:{line:31,column:8}},4:{start:{line:24,column:8},end:{line:24,column:22}},5:{start:{line:25,column:8},end:{line:30,column:9}},6:{start:{line:26,column:10},end:{line:29,column:12}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:19,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:21,column:4},end:{line:21,column:5}},loc:{start:{line:21,column:13},end:{line:32,column:5}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:23,column:44},end:{line:23,column:45}},loc:{start:{line:23,column:54},end:{line:31,column:7}},line:23}},branchMap:{0:{loc:{start:{line:22,column:6},end:{line:22,column:43}},type:"if",locations:[{start:{line:22,column:6},end:{line:22,column:43}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:22}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["TargetsTab.vue"],names:[],mappings:";AAqDA;;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",file:"TargetsTab.vue",sourceRoot:"src/tools/CmdTlmServer",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-card>\n <v-card-title>\n {{ data.length }} Targets\n <v-spacer />\n <v-text-field\n v-model="search"\n label="Search"\n prepend-inner-icon="mdi-magnify"\n clearable\n outlined\n dense\n single-line\n hide-details\n class="search"\n />\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="data"\n :search="search"\n :items-per-page="10"\n :footer-props="{ itemsPerPageOptions: [10, 20, -1] }"\n calculate-widths\n multi-sort\n data-test="targets-table"\n />\n </v-card>\n</template>\n\n<script>\nimport Updater from \'./Updater\'\n\nexport default {\n mixins: [Updater],\n props: {\n tabId: Number,\n curTab: Number,\n },\n data() {\n return {\n search: \'\',\n data: [],\n headers: [\n { text: \'Target Name\', value: \'name\' },\n { text: \'Interfaces\', value: \'interface\' },\n ],\n }\n },\n methods: {\n update() {\n if (this.tabId != this.curTab) return\n this.api.get_target_interfaces().then((info) => {\n this.data = []\n for (let x of info) {\n this.data.push({\n name: x[0],\n interface: x[1],\n })\n }\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d2e917495a9e594353d1d473262b601dba7bac68"},s=t[a]||(t[a]={});s[e]&&s[e].hash===n||(s[e]=l);var r=s[e];return o=function(){return r},r}o();const c={mixins:[r.Z],props:{tabId:Number,curTab:Number},data(){return o().f[0]++,o().s[0]++,{search:"",data:[],headers:[{text:"Target Name",value:"name"},{text:"Interfaces",value:"interface"}]}},methods:{update(){if(o().f[1]++,o().s[1]++,this.tabId!=this.curTab)return o().b[0][0]++,void o().s[2]++;o().b[0][1]++,o().s[3]++,this.api.get_target_interfaces().then((e=>{o().f[2]++,o().s[4]++,this.data=[],o().s[5]++;for(let n of e)o().s[6]++,this.data.push({name:n[0],interface:n[1]})}))}}},i=c;var d=t(3483),u=(0,d.Z)(i,l,s,!1,null,null,null);const m=u.exports}}]);
|
2
|
+
//# sourceMappingURL=939.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js/939.js","mappings":"4xCAeY,OAAAA,EAAA,kBAAAC,CAAA,EAAAA,CAAA,C,8BAAAD,IAAAA,IAAAE,EAAA,KAfZ,IAAIC,EAAS,WAAiBH,IAAAI,EAAA,KAAC,IAAIC,GAAGL,IAAAE,EAAA,KAACI,MAAKC,GAAEP,IAAAE,EAAA,KAACG,EAAIG,MAAMD,IAAG,OAAAP,IAAAE,EAAA,KAAOK,EAAG,SAAS,CAACA,EAAG,eAAe,CAACF,EAAII,GAAG,SAASJ,EAAIK,GAAGL,EAAIM,KAAKC,QAAQ,kBAAkBL,EAAG,YAAYF,EAAII,GAAG,KAAKF,EAAG,eAAe,CAACM,YAAY,SAASC,MAAM,CAAC,MAAQ,SAAS,qBAAqB,cAAc,UAAY,GAAG,SAAW,GAAG,MAAQ,GAAG,cAAc,GAAG,eAAe,IAAIC,MAAM,CAACC,MAAOX,EAAIY,OAAQC,SAAS,SAAUC,GAAKnB,IAAAI,EAAA,KAAAJ,IAAAE,EAAA,KAACG,EAAIY,OAAOE,CAAG,EAAEC,WAAW,aAAa,GAAGf,EAAII,GAAG,KAAKF,EAAG,eAAe,CAACO,MAAM,CAAC,QAAUT,EAAIgB,QAAQ,MAAQhB,EAAIM,KAAK,OAASN,EAAIY,OAAO,iBAAiB,GAAG,eAAe,CAAEK,oBAAqB,CAAC,GAAI,IAAK,IAAK,mBAAmB,GAAG,aAAa,GAAG,YAAY,oBAAoB,EACrrB,EACIC,GAAevB,IAAAE,EAAA,KAAG,I,i/HCiEtB,OAAAF,EAAA,kBAAAC,CAAA,EAAAA,CAAA,CAAAD,IAZA,SACAwB,OAAA,CAAAC,EAAAA,GACAC,MAAA,CACAC,MAAAC,OACAC,OAAAD,QAEAjB,IAAAA,GACA,OADAX,IAAAI,EAAA,KAAAJ,IAAAE,EAAA,KACA,CACAe,OAAA,GACAN,KAAA,GACAU,QAAA,CACA,CAAAS,KAAA,cAAAd,MAAA,QACA,CAAAc,KAAA,aAAAd,MAAA,cAGA,EACAe,QAAA,CACAC,MAAAA,GACA,GADAhC,IAAAI,EAAA,KAAAJ,IAAAE,EAAA,KACA,KAAAyB,OAAA,KAAAE,OAAA,OAAA7B,IAAAiC,EAAA,aAAAjC,IAAAE,EAAA,KAAAF,IAAAiC,EAAA,QAAAjC,IAAAE,EAAA,KACA,KAAAgC,IAAAC,wBAAAC,MAAAC,IAAArC,IAAAI,EAAA,KAAAJ,IAAAE,EAAA,KACA,KAAAS,KAAA,GAAAX,IAAAE,EAAA,KACA,QAAAoC,KAAAD,EAAArC,IAAAE,EAAA,KACA,KAAAS,KAAA4B,KAAA,CACAC,KAAAF,EAAA,GACAG,UAAAH,EAAA,IAEA,GAEA,ICnFuT,I,cCOnTI,GAAY,OACd,EACAvC,EACAoB,GACA,EACA,KACA,KACA,MAIF,QAAemB,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/TargetsTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/src/tools/CmdTlmServer/TargetsTab.vue","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/TargetsTab.vue?527c","webpack://@openc3/cosmos-tool-cmdtlmserver/./src/tools/CmdTlmServer/TargetsTab.vue?3388"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-card',[_c('v-card-title',[_vm._v(\"\\n \"+_vm._s(_vm.data.length)+\" Targets\\n \"),_c('v-spacer'),_vm._v(\" \"),_c('v-text-field',{staticClass:\"search\",attrs:{\"label\":\"Search\",\"prepend-inner-icon\":\"mdi-magnify\",\"clearable\":\"\",\"outlined\":\"\",\"dense\":\"\",\"single-line\":\"\",\"hide-details\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_vm._v(\" \"),_c('v-data-table',{attrs:{\"headers\":_vm.headers,\"items\":_vm.data,\"search\":_vm.search,\"items-per-page\":10,\"footer-props\":{ itemsPerPageOptions: [10, 20, -1] },\"calculate-widths\":\"\",\"multi-sort\":\"\",\"data-test\":\"targets-table\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n-->\n\n<template>\n <v-card>\n <v-card-title>\n {{ data.length }} Targets\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"data\"\n :search=\"search\"\n :items-per-page=\"10\"\n :footer-props=\"{ itemsPerPageOptions: [10, 20, -1] }\"\n calculate-widths\n multi-sort\n data-test=\"targets-table\"\n />\n </v-card>\n</template>\n\n<script>\nimport Updater from './Updater'\n\nexport default {\n mixins: [Updater],\n props: {\n tabId: Number,\n curTab: Number,\n },\n data() {\n return {\n search: '',\n data: [],\n headers: [\n { text: 'Target Name', value: 'name' },\n { text: 'Interfaces', value: 'interface' },\n ],\n }\n },\n methods: {\n update() {\n if (this.tabId != this.curTab) return\n this.api.get_target_interfaces().then((info) => {\n this.data = []\n for (let x of info) {\n this.data.push({\n name: x[0],\n interface: x[1],\n })\n }\n })\n },\n },\n}\n</script>\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TargetsTab.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TargetsTab.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./TargetsTab.vue?vue&type=template&id=d4ec626e\"\nimport script from \"./TargetsTab.vue?vue&type=script&lang=js\"\nexport * from \"./TargetsTab.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["cov_28up2yifcw","actualCoverage","s","render","f","_vm","this","_c","_self","_v","_s","data","length","staticClass","attrs","model","value","search","callback","$$v","expression","headers","itemsPerPageOptions","staticRenderFns","mixins","Updater","props","tabId","Number","curTab","text","methods","update","b","api","get_target_interfaces","then","info","x","push","name","interface","component"],"sourceRoot":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]=self["webpackChunk_openc3_cosmos_tool_cmdtlmserver"]||[]).push([[991],{9887:(t,e,r)=>{var n=r(6148),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},2065:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4317:(t,e,r)=>{var n,o,i,s=r(2065),a=r(9924),c=r(2150),u=r(688),f=r(5309),l=r(4678),h=r(1566),p=r(3397),d=r(2385),y=r(2470),g=r(9393),m=r(6148),w=r(7610),v=r(4584),b=r(2032),A=r(5736),E=r(7804),O=E.enforce,T=E.get,R=c.Int8Array,x=R&&R.prototype,S=c.Uint8ClampedArray,C=S&&S.prototype,N=R&&w(R),_=x&&w(x),j=Object.prototype,P=c.TypeError,U=b("toStringTag"),F=A("TYPED_ARRAY_TAG"),B="TypedArrayConstructor",L=s&&!!v&&"Opera"!==h(c.opera),I=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},k={BigInt64Array:8,BigUint64Array:8},M=function(t){if(!f(t))return!1;var e=h(t);return"DataView"===e||l(D,e)||l(k,e)},q=function(t){var e=w(t);if(f(e)){var r=T(e);return r&&l(r,B)?r[B]:q(e)}},V=function(t){if(!f(t))return!1;var e=h(t);return l(D,e)||l(k,e)},W=function(t){if(V(t))return t;throw new P("Target is not a typed array")},z=function(t){if(u(t)&&(!v||m(N,t)))return t;throw new P(p(t)+" is not a typed array constructor")},H=function(t,e,r,n){if(a){if(r)for(var o in D){var i=c[o];if(i&&l(i.prototype,t))try{delete i.prototype[t]}catch(s){try{i.prototype[t]=e}catch(u){}}}_[t]&&!r||y(_,t,r?e:L&&x[t]||e,n)}},J=function(t,e,r){var n,o;if(a){if(v){if(r)for(n in D)if(o=c[n],o&&l(o,t))try{delete o[t]}catch(i){}if(N[t]&&!r)return;try{return y(N,t,r?e:L&&N[t]||e)}catch(i){}}for(n in D)o=c[n],!o||o[t]&&!r||y(o,t,e)}};for(n in D)o=c[n],i=o&&o.prototype,i?O(i)[B]=o:L=!1;for(n in k)o=c[n],i=o&&o.prototype,i&&(O(i)[B]=o);if((!L||!u(N)||N===Function.prototype)&&(N=function(){throw new P("Incorrect invocation")},L))for(n in D)c[n]&&v(c[n],N);if((!L||!_||_===j)&&(_=N.prototype,L))for(n in D)c[n]&&v(c[n].prototype,_);if(L&&w(C)!==_&&v(C,_),a&&!l(_,U))for(n in I=!0,g(_,U,{configurable:!0,get:function(){return f(this)?this[F]:void 0}}),D)c[n]&&d(c[n],F,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:I&&F,aTypedArray:W,aTypedArrayConstructor:z,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:J,getTypedArrayConstructor:q,isView:M,isTypedArray:V,TypedArray:N,TypedArrayPrototype:_}},7454:(t,e,r)=>{var n=r(2150),o=r(9668),i=r(9924),s=r(2065),a=r(453),c=r(2385),u=r(9393),f=r(9700),l=r(4694),h=r(9887),p=r(1680),d=r(7331),y=r(5992),g=r(52),m=r(9481),w=r(7610),v=r(4584),b=r(6217).f,A=r(8404),E=r(6403),O=r(7495),T=r(7804),R=a.PROPER,x=a.CONFIGURABLE,S="ArrayBuffer",C="DataView",N="prototype",_="Wrong length",j="Wrong index",P=T.getterFor(S),U=T.getterFor(C),F=T.set,B=n[S],L=B,I=L&&L[N],D=n[C],k=D&&D[N],M=Object.prototype,q=n.Array,V=n.RangeError,W=o(A),z=o([].reverse),H=m.pack,J=m.unpack,K=function(t){return[255&t]},G=function(t){return[255&t,t>>8&255]},Y=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},$=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},X=function(t){return H(g(t),23,4)},Q=function(t){return H(t,52,8)},Z=function(t,e,r){u(t[N],e,{configurable:!0,get:function(){return r(this)[e]}})},tt=function(t,e,r,n){var o=U(t),i=y(r),s=!!n;if(i+e>o.byteLength)throw new V(j);var a=o.bytes,c=i+o.byteOffset,u=E(a,c,c+e);return s?u:z(u)},et=function(t,e,r,n,o,i){var s=U(t),a=y(r),c=n(+o),u=!!i;if(a+e>s.byteLength)throw new V(j);for(var f=s.bytes,l=a+s.byteOffset,h=0;h<e;h++)f[l+h]=c[u?h:e-h-1]};if(s){var rt=R&&B.name!==S;if(l((function(){B(1)}))&&l((function(){new B(-1)}))&&!l((function(){return new B,new B(1.5),new B(NaN),1!==B.length||rt&&!x})))rt&&x&&c(B,"name",S);else{L=function(t){return h(this,I),new B(y(t))},L[N]=I;for(var nt,ot=b(B),it=0;ot.length>it;)(nt=ot[it++])in L||c(L,nt,B[nt]);I.constructor=L}v&&w(k)!==M&&v(k,M);var st=new D(new L(2)),at=o(k.setInt8);st.setInt8(0,2147483648),st.setInt8(1,2147483649),!st.getInt8(0)&&st.getInt8(1)||f(k,{setInt8:function(t,e){at(this,t,e<<24>>24)},setUint8:function(t,e){at(this,t,e<<24>>24)}},{unsafe:!0})}else L=function(t){h(this,I);var e=y(t);F(this,{type:S,bytes:W(q(e),0),byteLength:e}),i||(this.byteLength=e,this.detached=!1)},I=L[N],D=function(t,e,r){h(this,k),h(t,I);var n=P(t),o=n.byteLength,s=p(e);if(s<0||s>o)throw new V("Wrong offset");if(r=void 0===r?o-s:d(r),s+r>o)throw new V(_);F(this,{type:C,buffer:t,byteLength:r,byteOffset:s,bytes:n.bytes}),i||(this.buffer=t,this.byteLength=r,this.byteOffset=s)},k=D[N],i&&(Z(L,"byteLength",P),Z(D,"buffer",U),Z(D,"byteLength",U),Z(D,"byteOffset",U)),f(k,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return J(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return J(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,K,e)},setUint8:function(t,e){et(this,1,t,K,e)},setInt16:function(t,e){et(this,2,t,G,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,G,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,Y,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,Y,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,X,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,Q,e,arguments.length>2&&arguments[2])}});O(L,S),O(D,C),t.exports={ArrayBuffer:L,DataView:D}},8404:(t,e,r)=>{var n=r(298),o=r(7352),i=r(8344);t.exports=function(t){var e=n(this),r=i(e),s=arguments.length,a=o(s>1?arguments[1]:void 0,r),c=s>2?arguments[2]:void 0,u=void 0===c?r:o(c,r);while(u>a)e[a++]=t;return e}},7895:(t,e,r)=>{var n=r(8344);t.exports=function(t,e,r){var o=0,i=arguments.length>2?r:n(e),s=new t(i);while(i>o)s[o]=e[o++];return s}},563:(t,e,r)=>{var n=r(4162),o=r(4347),i=r(298),s=r(8344),a=function(t){var e=1===t;return function(r,a,c){var u,f,l=i(r),h=o(l),p=s(h),d=n(a,c);while(p-- >0)if(u=h[p],f=d(u,p,l),f)switch(t){case 0:return u;case 1:return p}return e?-1:void 0}};t.exports={findLast:a(0),findLastIndex:a(1)}},5909:(t,e,r)=>{var n=r(4162),o=r(9668),i=r(4347),s=r(298),a=r(8344),c=r(1699),u=o([].push),f=function(t){var e=1===t,r=2===t,o=3===t,f=4===t,l=6===t,h=7===t,p=5===t||l;return function(d,y,g,m){for(var w,v,b=s(d),A=i(b),E=a(A),O=n(y,g),T=0,R=m||c,x=e?R(d,E):r||h?R(d,0):void 0;E>T;T++)if((p||T in A)&&(w=A[T],v=O(w,T,b),t))if(e)x[T]=v;else if(v)switch(t){case 3:return!0;case 5:return w;case 6:return T;case 2:u(x,w)}else switch(t){case 4:return!1;case 7:u(x,w)}return l?-1:o||f?f:x}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},6403:(t,e,r)=>{var n=r(7352),o=r(8344),i=r(3182),s=Array,a=Math.max;t.exports=function(t,e,r){for(var c=o(t),u=n(e,c),f=n(void 0===r?c:r,c),l=s(a(f-u,0)),h=0;u<f;u++,h++)i(l,h,t[u]);return l.length=h,l}},3097:(t,e,r)=>{var n=r(6403),o=Math.floor,i=function(t,e){var r=t.length,c=o(r/2);return r<8?s(t,e):a(t,i(n(t,0,c),e),i(n(t,c),e),e)},s=function(t,e){var r,n,o=t.length,i=1;while(i<o){n=i,r=t[i];while(n&&e(t[n-1],r)>0)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},a=function(t,e,r,n){var o=e.length,i=r.length,s=0,a=0;while(s<o||a<i)t[s+a]=s<o&&a<i?n(e[s],r[a])<=0?e[s++]:r[a++]:s<o?e[s++]:r[a++];return t};t.exports=i},9120:(t,e,r)=>{var n=r(256),o=r(1414),i=r(5309),s=r(2032),a=s("species"),c=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,o(e)&&(e===c||n(e.prototype))?e=void 0:i(e)&&(e=e[a],null===e&&(e=void 0))),void 0===e?c:e}},1699:(t,e,r)=>{var n=r(9120);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},4501:(t,e,r)=>{var n=r(8344);t.exports=function(t,e){for(var r=n(t),o=new e(r),i=0;i<r;i++)o[i]=t[r-i-1];return o}},7117:(t,e,r)=>{var n=r(8344),o=r(1680),i=RangeError;t.exports=function(t,e,r,s){var a=n(t),c=o(r),u=c<0?a+c:c;if(u>=a||u<0)throw new i("Incorrect index");for(var f=new e(a),l=0;l<a;l++)f[l]=l===u?s:t[l];return f}},4418:(t,e,r)=>{var n=r(2032),o=n("iterator"),i=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){i=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(c){return!1}var r=!1;try{var n={};n[o]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(c){}return r}},3182:(t,e,r)=>{var n=r(2358),o=r(2131),i=r(7781);t.exports=function(t,e,r){var s=n(e);s in t?o.f(t,s,i(0,r)):t[s]=r}},9393:(t,e,r)=>{var n=r(1135),o=r(2131);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},9700:(t,e,r)=>{var n=r(2470);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},9016:(t,e,r)=>{var n=r(1370),o=n.match(/firefox\/(\d+)/i);t.exports=!!o&&+o[1]},821:(t,e,r)=>{var n=r(1370);t.exports=/MSIE|Trident/.test(n)},4389:(t,e,r)=>{var n=r(1370),o=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!o&&+o[1]},4162:(t,e,r)=>{var n=r(5033),o=r(1052),i=r(6398),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},8674:(t,e,r)=>{var n=r(1566),o=r(5383),i=r(5268),s=r(8515),a=r(2032),c=a("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||s[n(t)]}},4406:(t,e,r)=>{var n=r(8724),o=r(1052),i=r(9175),s=r(3397),a=r(8674),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return i(n(r,t));throw new c(s(t)+" is not iterable")}},9481:t=>{var e=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,s=Math.LN2,a=function(t,a,c){var u,f,l,h=e(c),p=8*c-a-1,d=(1<<p)-1,y=d>>1,g=23===a?n(2,-24)-n(2,-77):0,m=t<0||0===t&&1/t<0?1:0,w=0;t=r(t),t!==t||t===1/0?(f=t!==t?1:0,u=d):(u=o(i(t)/s),l=n(2,-u),t*l<1&&(u--,l*=2),t+=u+y>=1?g/l:g*n(2,1-y),t*l>=2&&(u++,l/=2),u+y>=d?(f=0,u=d):u+y>=1?(f=(t*l-1)*n(2,a),u+=y):(f=t*n(2,y-1)*n(2,a),u=0));while(a>=8)h[w++]=255&f,f/=256,a-=8;u=u<<a|f,p+=a;while(p>0)h[w++]=255&u,u/=256,p-=8;return h[--w]|=128*m,h},c=function(t,e){var r,o=t.length,i=8*o-e-1,s=(1<<i)-1,a=s>>1,c=i-7,u=o-1,f=t[u--],l=127&f;f>>=7;while(c>0)l=256*l+t[u--],c-=8;r=l&(1<<-c)-1,l>>=-c,c+=e;while(c>0)r=256*r+t[u--],c-=8;if(0===l)l=1-a;else{if(l===s)return r?NaN:f?-1/0:1/0;r+=n(2,e),l-=a}return(f?-1:1)*r*n(2,l-e)};t.exports={pack:a,unpack:c}},2407:(t,e,r)=>{var n=r(2032),o=r(8515),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},9232:(t,e,r)=>{var n=r(1566);t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},791:(t,e,r)=>{var n=r(5309),o=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&o(t)===t}},5584:(t,e,r)=>{var n=r(1162),o=Math.abs,i=2220446049250313e-31,s=1/i,a=function(t){return t+s-s};t.exports=function(t,e,r,s){var c=+t,u=o(c),f=n(c);if(u<s)return f*a(u/s/e)*s*e;var l=(1+e/i)*u,h=l-(l-u);return h>r||h!==h?f*(1/0):f*h}},52:(t,e,r)=>{var n=r(5584),o=1.1920928955078125e-7,i=34028234663852886e22,s=11754943508222875e-54;t.exports=Math.fround||function(t){return n(t,o,i,s)}},1162:t=>{t.exports=Math.sign||function(t){var e=+t;return 0===e||e!==e?e:e<0?-1:1}},7278:(t,e,r)=>{var n=r(2160),o=r(9393),i=r(2032),s=r(9924),a=i("species");t.exports=function(t){var e=n(t);s&&e&&!e[a]&&o(e,a,{configurable:!0,get:function(){return this}})}},6601:(t,e,r)=>{var n=r(1272),o=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new o("Can't convert number to bigint");return BigInt(e)}},5992:(t,e,r)=>{var n=r(1680),o=r(7331),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=o(e);if(e!==r)throw new i("Wrong length or index");return r}},2066:(t,e,r)=>{var n=r(6949),o=RangeError;t.exports=function(t,e){var r=n(t);if(r%e)throw new o("Wrong offset");return r}},6949:(t,e,r)=>{var n=r(1680),o=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new o("The argument can't be less than 0");return e}},5402:t=>{var e=Math.round;t.exports=function(t){var r=e(t);return r<0?0:r>255?255:255&r}},9082:(t,e,r)=>{var n=r(5532),o=r(2150),i=r(8724),s=r(9924),a=r(8087),c=r(4317),u=r(7454),f=r(9887),l=r(7781),h=r(2385),p=r(791),d=r(7331),y=r(5992),g=r(2066),m=r(5402),w=r(2358),v=r(4678),b=r(1566),A=r(5309),E=r(7935),O=r(8536),T=r(6148),R=r(4584),x=r(6217).f,S=r(6897),C=r(5909).forEach,N=r(7278),_=r(9393),j=r(2131),P=r(7537),U=r(7804),F=r(5086),B=U.get,L=U.set,I=U.enforce,D=j.f,k=P.f,M=o.RangeError,q=u.ArrayBuffer,V=q.prototype,W=u.DataView,z=c.NATIVE_ARRAY_BUFFER_VIEWS,H=c.TYPED_ARRAY_TAG,J=c.TypedArray,K=c.TypedArrayPrototype,G=c.aTypedArrayConstructor,Y=c.isTypedArray,$="BYTES_PER_ELEMENT",X="Wrong length",Q=function(t,e){G(t);var r=0,n=e.length,o=new t(n);while(n>r)o[r]=e[r++];return o},Z=function(t,e){_(t,e,{configurable:!0,get:function(){return B(this)[e]}})},tt=function(t){var e;return T(V,t)||"ArrayBuffer"===(e=b(t))||"SharedArrayBuffer"===e},et=function(t,e){return Y(t)&&!E(e)&&e in t&&p(+e)&&e>=0},rt=function(t,e){return e=w(e),et(t,e)?l(2,t[e]):k(t,e)},nt=function(t,e,r){return e=w(e),!(et(t,e)&&A(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?D(t,e,r):(t[e]=r.value,t)};s?(z||(P.f=rt,j.f=nt,Z(K,"buffer"),Z(K,"byteOffset"),Z(K,"byteLength"),Z(K,"length")),n({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:rt,defineProperty:nt}),t.exports=function(t,e,r){var s=t.match(/\d+/)[0]/8,c=t+(r?"Clamped":"")+"Array",u="get"+t,l="set"+t,p=o[c],w=p,v=w&&w.prototype,b={},E=function(t,e){var r=B(t);return r.view[u](e*s+r.byteOffset,!0)},T=function(t,e,n){var o=B(t);o.view[l](e*s+o.byteOffset,r?m(n):n,!0)},_=function(t,e){D(t,e,{get:function(){return E(this,e)},set:function(t){return T(this,e,t)},enumerable:!0})};z?a&&(w=e((function(t,e,r,n){return f(t,v),F(function(){return A(e)?tt(e)?void 0!==n?new p(e,g(r,s),n):void 0!==r?new p(e,g(r,s)):new p(e):Y(e)?Q(w,e):i(S,w,e):new p(y(e))}(),t,w)})),R&&R(w,J),C(x(p),(function(t){t in w||h(w,t,p[t])})),w.prototype=v):(w=e((function(t,e,r,n){f(t,v);var o,a,c,u=0,l=0;if(A(e)){if(!tt(e))return Y(e)?Q(w,e):i(S,w,e);o=e,l=g(r,s);var h=e.byteLength;if(void 0===n){if(h%s)throw new M(X);if(a=h-l,a<0)throw new M(X)}else if(a=d(n)*s,a+l>h)throw new M(X);c=a/s}else c=y(e),a=c*s,o=new q(a);L(t,{buffer:o,byteOffset:l,byteLength:a,length:c,view:new W(o)});while(u<c)_(t,u++)})),R&&R(w,J),v=w.prototype=O(K)),v.constructor!==w&&h(v,"constructor",w),I(v).TypedArrayConstructor=w,H&&h(v,H,c);var j=w!==p;b[c]=w,n({global:!0,constructor:!0,forced:j,sham:!z},b),$ in w||h(w,$,s),$ in v||h(v,$,s),N(c)}):t.exports=function(){}},8087:(t,e,r)=>{var n=r(2150),o=r(4694),i=r(4418),s=r(4317).NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,c=n.Int8Array;t.exports=!s||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||o((function(){return 1!==new c(new a(2),1,void 0).length}))},6897:(t,e,r)=>{var n=r(4162),o=r(8724),i=r(3755),s=r(298),a=r(8344),c=r(4406),u=r(8674),f=r(2407),l=r(9232),h=r(4317).aTypedArrayConstructor,p=r(6601);t.exports=function(t){var e,r,d,y,g,m,w,v,b=i(this),A=s(t),E=arguments.length,O=E>1?arguments[1]:void 0,T=void 0!==O,R=u(A);if(R&&!f(R)){w=c(A,R),v=w.next,A=[];while(!(m=o(v,w)).done)A.push(m.value)}for(T&&E>2&&(O=n(O,arguments[2])),r=a(A),d=new(h(b))(r),y=l(d),e=0;r>e;e++)g=T?O(A[e],e):A[e],d[e]=y?p(g):+g;return d}},7380:(t,e,r)=>{var n=r(4317),o=r(8344),i=r(1680),s=n.aTypedArray,a=n.exportTypedArrayMethod;a("at",(function(t){var e=s(this),r=o(e),n=i(t),a=n>=0?n:r+n;return a<0||a>=r?void 0:e[a]}))},527:(t,e,r)=>{var n=r(4317),o=r(8404),i=r(6601),s=r(1566),a=r(8724),c=r(9668),u=r(4694),f=n.aTypedArray,l=n.exportTypedArrayMethod,h=c("".slice),p=u((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));l("fill",(function(t){var e=arguments.length;f(this);var r="Big"===h(s(this),0,3)?i(t):+t;return a(o,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),p)},9394:(t,e,r)=>{var n=r(4317),o=r(563).findLastIndex,i=n.aTypedArray,s=n.exportTypedArrayMethod;s("findLastIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},1697:(t,e,r)=>{var n=r(4317),o=r(563).findLast,i=n.aTypedArray,s=n.exportTypedArrayMethod;s("findLast",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},3438:(t,e,r)=>{var n=r(2150),o=r(8724),i=r(4317),s=r(8344),a=r(2066),c=r(298),u=r(4694),f=n.RangeError,l=n.Int8Array,h=l&&l.prototype,p=h&&h.set,d=i.aTypedArray,y=i.exportTypedArrayMethod,g=!u((function(){var t=new Uint8ClampedArray(2);return o(p,t,{length:1,0:3},1),3!==t[1]})),m=g&&i.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var t=new l(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));y("set",(function(t){d(this);var e=a(arguments.length>1?arguments[1]:void 0,1),r=c(t);if(g)return o(p,this,r,e);var n=this.length,i=s(r),u=0;if(i+e>n)throw new f("Wrong length");while(u<i)this[e+u]=r[u++]}),!g||m)},3616:(t,e,r)=>{var n=r(2150),o=r(5033),i=r(4694),s=r(1052),a=r(3097),c=r(4317),u=r(9016),f=r(821),l=r(7067),h=r(4389),p=c.aTypedArray,d=c.exportTypedArrayMethod,y=n.Uint16Array,g=y&&o(y.prototype.sort),m=!!g&&!(i((function(){g(new y(2),null)}))&&i((function(){g(new y(2),{})}))),w=!!g&&!i((function(){if(l)return l<74;if(u)return u<67;if(f)return!0;if(h)return h<602;var t,e,r=new y(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(g(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0})),v=function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!==r?-1:e!==e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}};d("sort",(function(t){return void 0!==t&&s(t),w?g(this,t):a(p(this),v(t))}),!w||m)},5630:(t,e,r)=>{var n=r(4501),o=r(4317),i=o.aTypedArray,s=o.exportTypedArrayMethod,a=o.getTypedArrayConstructor;s("toReversed",(function(){return n(i(this),a(this))}))},896:(t,e,r)=>{var n=r(4317),o=r(9668),i=r(1052),s=r(7895),a=n.aTypedArray,c=n.getTypedArrayConstructor,u=n.exportTypedArrayMethod,f=o(n.TypedArrayPrototype.sort);u("toSorted",(function(t){void 0!==t&&i(t);var e=a(this),r=s(c(e),e);return f(r,t)}))},5984:(t,e,r)=>{var n=r(9082);n("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},4139:(t,e,r)=>{var n=r(7117),o=r(4317),i=r(9232),s=r(1680),a=r(6601),c=o.aTypedArray,u=o.getTypedArrayConstructor,f=o.exportTypedArrayMethod,l=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();f("with",{with:function(t,e){var r=c(this),o=s(t),f=i(r)?a(e):+e;return n(r,u(r),o,f)}}["with"],!l)},162:(t,e,r)=>{r.d(e,{Z:()=>Ve});var n={};function o(t,e){return function(){return t.apply(e,arguments)}}r.r(n),r.d(n,{hasBrowserEnv:()=>Pt,hasStandardBrowserEnv:()=>Ut,hasStandardBrowserWebWorkerEnv:()=>Ft});const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,a=(t=>e=>{const r=i.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),c=t=>(t=t.toLowerCase(),e=>a(e)===t),u=t=>e=>typeof e===t,{isArray:f}=Array,l=u("undefined");function h(t){return null!==t&&!l(t)&&null!==t.constructor&&!l(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const p=c("ArrayBuffer");function d(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e}const y=u("string"),g=u("function"),m=u("number"),w=t=>null!==t&&"object"===typeof t,v=t=>!0===t||!1===t,b=t=>{if("object"!==a(t))return!1;const e=s(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},A=c("Date"),E=c("File"),O=c("Blob"),T=c("FileList"),R=t=>w(t)&&g(t.pipe),x=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=a(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},S=c("URLSearchParams"),C=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function N(t,e,{allOwnKeys:r=!1}={}){if(null===t||"undefined"===typeof t)return;let n,o;if("object"!==typeof t&&(t=[t]),f(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const o=r?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(n=0;n<i;n++)s=o[n],e.call(null,t[s],s,t)}}function _(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;while(o-- >0)if(n=r[o],e===n.toLowerCase())return n;return null}const j=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),P=t=>!l(t)&&t!==j;function U(){const{caseless:t}=P(this)&&this||{},e={},r=(r,n)=>{const o=t&&_(e,n)||n;b(e[o])&&b(r)?e[o]=U(e[o],r):b(r)?e[o]=U({},r):f(r)?e[o]=r.slice():e[o]=r};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&N(arguments[n],r);return e}const F=(t,e,r,{allOwnKeys:n}={})=>(N(e,((e,n)=>{r&&g(e)?t[n]=o(e,r):t[n]=e}),{allOwnKeys:n}),t),B=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),L=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},I=(t,e,r,n)=>{let o,i,a;const c={};if(e=e||{},null==t)return e;do{o=Object.getOwnPropertyNames(t),i=o.length;while(i-- >0)a=o[i],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&s(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},D=(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},k=t=>{if(!t)return null;if(f(t))return t;let e=t.length;if(!m(e))return null;const r=new Array(e);while(e-- >0)r[e]=t[e];return r},M=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&s(Uint8Array)),q=(t,e)=>{const r=t&&t[Symbol.iterator],n=r.call(t);let o;while((o=n.next())&&!o.done){const r=o.value;e.call(t,r[0],r[1])}},V=(t,e)=>{let r;const n=[];while(null!==(r=t.exec(e)))n.push(r);return n},W=c("HTMLFormElement"),z=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),H=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),J=c("RegExp"),K=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};N(r,((r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)})),Object.defineProperties(t,n)},G=t=>{K(t,((e,r)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];g(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},Y=(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return f(t)?n(t):n(String(t).split(e)),r},$=()=>{},X=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Q="abcdefghijklmnopqrstuvwxyz",Z="0123456789",tt={DIGIT:Z,ALPHA:Q,ALPHA_DIGIT:Q+Q.toUpperCase()+Z},et=(t=16,e=tt.ALPHA_DIGIT)=>{let r="";const{length:n}=e;while(t--)r+=e[Math.random()*n|0];return r};function rt(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const nt=t=>{const e=new Array(10),r=(t,n)=>{if(w(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=f(t)?[]:{};return N(t,((t,e)=>{const i=r(t,n+1);!l(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)},ot=c("AsyncFunction"),it=t=>t&&(w(t)||g(t))&&g(t.then)&&g(t.catch),st={isArray:f,isArrayBuffer:p,isBuffer:h,isFormData:x,isArrayBufferView:d,isString:y,isNumber:m,isBoolean:v,isObject:w,isPlainObject:b,isUndefined:l,isDate:A,isFile:E,isBlob:O,isRegExp:J,isFunction:g,isStream:R,isURLSearchParams:S,isTypedArray:M,isFileList:T,forEach:N,merge:U,extend:F,trim:C,stripBOM:B,inherits:L,toFlatObject:I,kindOf:a,kindOfTest:c,endsWith:D,toArray:k,forEachEntry:q,matchAll:V,isHTMLForm:W,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:K,freezeMethods:G,toObjectSet:Y,toCamelCase:z,noop:$,toFiniteNumber:X,findKey:_,global:j,isContextDefined:P,ALPHABET:tt,generateString:et,isSpecCompliantForm:rt,toJSONObject:nt,isAsyncFn:ot,isThenable:it};function at(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}st.inherits(at,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:st.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ct=at.prototype,ut={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{ut[t]={value:t}})),Object.defineProperties(at,ut),Object.defineProperty(ct,"isAxiosError",{value:!0}),at.from=(t,e,r,n,o,i)=>{const s=Object.create(ct);return st.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),at.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const ft=at,lt=null;function ht(t){return st.isPlainObject(t)||st.isArray(t)}function pt(t){return st.endsWith(t,"[]")?t.slice(0,-2):t}function dt(t,e,r){return t?t.concat(e).map((function(t,e){return t=pt(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}function yt(t){return st.isArray(t)&&!t.some(ht)}const gt=st.toFlatObject(st,{},null,(function(t){return/^is[A-Z]/.test(t)}));function mt(t,e,r){if(!st.isObject(t))throw new TypeError("target must be an object");e=e||new(lt||FormData),r=st.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!st.isUndefined(e[t])}));const n=r.metaTokens,o=r.visitor||f,i=r.dots,s=r.indexes,a=r.Blob||"undefined"!==typeof Blob&&Blob,c=a&&st.isSpecCompliantForm(e);if(!st.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(st.isDate(t))return t.toISOString();if(!c&&st.isBlob(t))throw new ft("Blob is not supported. Use a Buffer instead.");return st.isArrayBuffer(t)||st.isTypedArray(t)?c&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function f(t,r,o){let a=t;if(t&&!o&&"object"===typeof t)if(st.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(st.isArray(t)&&yt(t)||(st.isFileList(t)||st.endsWith(r,"[]"))&&(a=st.toArray(t)))return r=pt(r),a.forEach((function(t,n){!st.isUndefined(t)&&null!==t&&e.append(!0===s?dt([r],n,i):null===s?r:r+"[]",u(t))})),!1;return!!ht(t)||(e.append(dt(o,r,i),u(t)),!1)}const l=[],h=Object.assign(gt,{defaultVisitor:f,convertValue:u,isVisitable:ht});function p(t,r){if(!st.isUndefined(t)){if(-1!==l.indexOf(t))throw Error("Circular reference detected in "+r.join("."));l.push(t),st.forEach(t,(function(t,n){const i=!(st.isUndefined(t)||null===t)&&o.call(e,t,st.isString(n)?n.trim():n,r,h);!0===i&&p(t,r?r.concat(n):[n])})),l.pop()}}if(!st.isObject(t))throw new TypeError("data must be an object");return p(t),e}const wt=mt;function vt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function bt(t,e){this._pairs=[],t&&wt(t,this,e)}const At=bt.prototype;At.append=function(t,e){this._pairs.push([t,e])},At.toString=function(t){const e=t?function(e){return t.call(this,e,vt)}:vt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Et=bt;function Ot(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tt(t,e,r){if(!e)return t;const n=r&&r.encode||Ot,o=r&&r.serialize;let i;if(i=o?o(e,r):st.isURLSearchParams(e)?e.toString():new Et(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}class Rt{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){st.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const xt=Rt,St={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ct="undefined"!==typeof URLSearchParams?URLSearchParams:Et,Nt="undefined"!==typeof FormData?FormData:null,_t="undefined"!==typeof Blob?Blob:null,jt={isBrowser:!0,classes:{URLSearchParams:Ct,FormData:Nt,Blob:_t},protocols:["http","https","file","blob","url","data"]},Pt="undefined"!==typeof window&&"undefined"!==typeof document,Ut=(t=>Pt&&["ReactNative","NativeScript","NS"].indexOf(t)<0)("undefined"!==typeof navigator&&navigator.product),Ft=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Bt={...n,...jt};function Lt(t,e){return wt(t,new Bt.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return Bt.isNode&&st.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function It(t){return st.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function Dt(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function kt(t){function e(t,r,n,o){let i=t[o++];const s=Number.isFinite(+i),a=o>=t.length;if(i=!i&&st.isArray(n)?n.length:i,a)return st.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&st.isObject(n[i])||(n[i]=[]);const c=e(t,r,n[i],o);return c&&st.isArray(n[i])&&(n[i]=Dt(n[i])),!s}if(st.isFormData(t)&&st.isFunction(t.entries)){const r={};return st.forEachEntry(t,((t,n)=>{e(It(t),n,r,0)})),r}return null}const Mt=kt;function qt(t,e,r){if(st.isString(t))try{return(e||JSON.parse)(t),st.trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(t)}const Vt={transitional:St,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=st.isObject(t);o&&st.isHTMLForm(t)&&(t=new FormData(t));const i=st.isFormData(t);if(i)return n&&n?JSON.stringify(Mt(t)):t;if(st.isArrayBuffer(t)||st.isBuffer(t)||st.isStream(t)||st.isFile(t)||st.isBlob(t))return t;if(st.isArrayBufferView(t))return t.buffer;if(st.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lt(t,this.formSerializer).toString();if((s=st.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return wt(s?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),qt(t)):t}],transformResponse:[function(t){const e=this.transitional||Vt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&st.isString(t)&&(r&&!this.responseType||n)){const r=e&&e.silentJSONParsing,i=!r&&n;try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw ft.from(o,ft.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bt.classes.FormData,Blob:Bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};st.forEach(["delete","get","head","post","put","patch"],(t=>{Vt.headers[t]={}}));const Wt=Vt,zt=st.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ht=t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&zt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e},Jt=Symbol("internals");function Kt(t){return t&&String(t).trim().toLowerCase()}function Gt(t){return!1===t||null==t?t:st.isArray(t)?t.map(Gt):String(t)}function Yt(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=r.exec(t))e[n[1]]=n[2];return e}const $t=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xt(t,e,r,n,o){return st.isFunction(n)?n.call(this,e,r):(o&&(e=r),st.isString(e)?st.isString(n)?-1!==e.indexOf(n):st.isRegExp(n)?n.test(e):void 0:void 0)}function Qt(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}function Zt(t,e){const r=st.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}class te{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Kt(e);if(!o)throw new Error("header name must be a non-empty string");const i=st.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Gt(t))}const i=(t,e)=>st.forEach(t,((t,r)=>o(t,r,e)));return st.isPlainObject(t)||t instanceof this.constructor?i(t,e):st.isString(t)&&(t=t.trim())&&!$t(t)?i(Ht(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=Kt(t),t){const r=st.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return Yt(t);if(st.isFunction(e))return e.call(this,t,r);if(st.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Kt(t),t){const r=st.findKey(this,t);return!(!r||void 0===this[r]||e&&!Xt(this,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Kt(t),t){const o=st.findKey(r,t);!o||e&&!Xt(r,r[o],o,e)||(delete r[o],n=!0)}}return st.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;while(r--){const o=e[r];t&&!Xt(this,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return st.forEach(this,((n,o)=>{const i=st.findKey(r,o);if(i)return e[i]=Gt(n),void delete e[o];const s=t?Qt(o):String(o).trim();s!==o&&delete e[o],e[s]=Gt(n),r[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return st.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&st.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=this[Jt]=this[Jt]={accessors:{}},r=e.accessors,n=this.prototype;function o(t){const e=Kt(t);r[e]||(Zt(n,t),r[e]=!0)}return st.isArray(t)?t.forEach(o):o(t),this}}te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),st.reduceDescriptors(te.prototype,(({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}})),st.freezeMethods(te);const ee=te;function re(t,e){const r=this||Wt,n=e||r,o=ee.from(n.headers);let i=n.data;return st.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function ne(t){return!(!t||!t.__CANCEL__)}function oe(t,e,r){ft.call(this,null==t?"canceled":t,ft.ERR_CANCELED,e,r),this.name="CanceledError"}st.inherits(oe,ft,{__CANCEL__:!0});const ie=oe;function se(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new ft("Request failed with status code "+r.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}const ae=Bt.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];st.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),st.isString(n)&&s.push("path="+n),st.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ce(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ue(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function fe(t,e){return t&&!ce(e)?ue(t,e):e}const le=Bt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=st.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return function(){return!0}}();function he(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function pe(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let f=s,l=0;while(f!==i)l+=r[f++],f%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const h=u&&c-u;return h?Math.round(1e3*l/h):void 0}}const de=pe;function ye(t,e){let r=0;const n=de(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a),u=i<=s;r=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:o};f[e?"download":"upload"]=!0,t(f)}}const ge="undefined"!==typeof XMLHttpRequest,me=ge&&function(t){return new Promise((function(e,r){let n=t.data;const o=ee.from(t.headers).normalize();let i,s,{responseType:a,withXSRFToken:c}=t;function u(){t.cancelToken&&t.cancelToken.unsubscribe(i),t.signal&&t.signal.removeEventListener("abort",i)}if(st.isFormData(n))if(Bt.hasStandardBrowserEnv||Bt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[t,...e]=s?s.split(";").map((t=>t.trim())).filter(Boolean):[];o.setContentType([t||"multipart/form-data",...e].join("; "))}let f=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const l=fe(t.baseURL,t.url);function h(){if(!f)return;const n=ee.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),o=a&&"text"!==a&&"json"!==a?f.response:f.responseText,i={data:o,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};se((function(t){e(t),u()}),(function(t){r(t),u()}),i),f=null}if(f.open(t.method.toUpperCase(),Tt(l,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,"onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(h)},f.onabort=function(){f&&(r(new ft("Request aborted",ft.ECONNABORTED,t,f)),f=null)},f.onerror=function(){r(new ft("Network Error",ft.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||St;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new ft(e,n.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,t,f)),f=null},Bt.hasStandardBrowserEnv&&(c&&st.isFunction(c)&&(c=c(t)),c||!1!==c&&le(l))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&ae.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in f&&st.forEach(o.toJSON(),(function(t,e){f.setRequestHeader(e,t)})),st.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),a&&"json"!==a&&(f.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&f.addEventListener("progress",ye(t.onDownloadProgress,!0)),"function"===typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",ye(t.onUploadProgress)),(t.cancelToken||t.signal)&&(i=e=>{f&&(r(!e||e.type?new ie(null,t,f):e),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(i),t.signal&&(t.signal.aborted?i():t.signal.addEventListener("abort",i)));const p=he(l);p&&-1===Bt.protocols.indexOf(p)?r(new ft("Unsupported protocol "+p+":",ft.ERR_BAD_REQUEST,t)):f.send(n||null)}))},we={http:lt,xhr:me};st.forEach(we,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}}));const ve=t=>`- ${t}`,be=t=>st.isFunction(t)||null===t||!1===t,Ae={getAdapter:t=>{t=st.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!be(r)&&(n=we[(e=String(r)).toLowerCase()],void 0===n))throw new ft(`Unknown adapter '${e}'`);if(n)break;o[e||"#"+i]=n}if(!n){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let r=e?t.length>1?"since :\n"+t.map(ve).join("\n"):" "+ve(t[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:we};function Ee(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ie(null,t)}function Oe(t){Ee(t),t.headers=ee.from(t.headers),t.data=re.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=Ae.getAdapter(t.adapter||Wt.adapter);return e(t).then((function(e){return Ee(t),e.data=re.call(t,t.transformResponse,e),e.headers=ee.from(e.headers),e}),(function(e){return ne(e)||(Ee(t),e&&e.response&&(e.response.data=re.call(t,t.transformResponse,e.response),e.response.headers=ee.from(e.response.headers))),Promise.reject(e)}))}const Te=t=>t instanceof ee?t.toJSON():t;function Re(t,e){e=e||{};const r={};function n(t,e,r){return st.isPlainObject(t)&&st.isPlainObject(e)?st.merge.call({caseless:r},t,e):st.isPlainObject(e)?st.merge({},e):st.isArray(e)?e.slice():e}function o(t,e,r){return st.isUndefined(e)?st.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!st.isUndefined(e))return n(void 0,e)}function s(t,e){return st.isUndefined(e)?st.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e)=>o(Te(t),Te(e),!0)};return st.forEach(Object.keys(Object.assign({},t,e)),(function(n){const i=c[n]||o,s=i(t[n],e[n],n);st.isUndefined(s)&&i!==a||(r[n]=s)})),r}const xe="1.6.2",Se={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Se[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const Ce={};function Ne(t,e,r){if("object"!==typeof t)throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;while(o-- >0){const i=n[o],s=e[i];if(s){const e=t[i],r=void 0===e||s(e,i,t);if(!0!==r)throw new ft("option "+i+" must be "+r,ft.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new ft("Unknown option "+i,ft.ERR_BAD_OPTION)}}Se.transitional=function(t,e,r){function n(t,e){return"[Axios v"+xe+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new ft(n(o," has been removed"+(e?" in "+e:"")),ft.ERR_DEPRECATED);return e&&!Ce[o]&&(Ce[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};const _e={assertOptions:Ne,validators:Se},je=_e.validators;class Pe{constructor(t){this.defaults=t,this.interceptors={request:new xt,response:new xt}}request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=Re(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&_e.assertOptions(r,{silentJSONParsing:je.transitional(je.boolean),forcedJSONParsing:je.transitional(je.boolean),clarifyTimeoutError:je.transitional(je.boolean)},!1),null!=n&&(st.isFunction(n)?e.paramsSerializer={serialize:n}:_e.assertOptions(n,{encode:je.function,serialize:je.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&st.merge(o.common,o[e.method]);o&&st.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=ee.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let f,l=0;if(!a){const t=[Oe.bind(this),void 0];t.unshift.apply(t,s),t.push.apply(t,c),f=t.length,u=Promise.resolve(e);while(l<f)u=u.then(t[l++],t[l++]);return u}f=s.length;let h=e;l=0;while(l<f){const t=s[l++],e=s[l++];try{h=t(h)}catch(p){e.call(this,p);break}}try{u=Oe.call(this,h)}catch(p){return Promise.reject(p)}l=0,f=c.length;while(l<f)u=u.then(c[l++],c[l++]);return u}getUri(t){t=Re(this.defaults,t);const e=fe(t.baseURL,t.url);return Tt(e,t.params,t.paramsSerializer)}}st.forEach(["delete","get","head","options"],(function(t){Pe.prototype[t]=function(e,r){return this.request(Re(r||{},{method:t,url:e,data:(r||{}).data}))}})),st.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Re(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Pe.prototype[t]=e(),Pe.prototype[t+"Form"]=e(!0)}));const Ue=Pe;class Fe{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;while(e-- >0)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new ie(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new Fe((function(e){t=e}));return{token:e,cancel:t}}}const Be=Fe;function Le(t){return function(e){return t.apply(null,e)}}function Ie(t){return st.isObject(t)&&!0===t.isAxiosError}const De={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(De).forEach((([t,e])=>{De[e]=t}));const ke=De;function Me(t){const e=new Ue(t),r=o(Ue.prototype.request,e);return st.extend(r,Ue.prototype,e,{allOwnKeys:!0}),st.extend(r,e,null,{allOwnKeys:!0}),r.create=function(e){return Me(Re(t,e))},r}const qe=Me(Wt);qe.Axios=Ue,qe.CanceledError=ie,qe.CancelToken=Be,qe.isCancel=ne,qe.VERSION=xe,qe.toFormData=wt,qe.AxiosError=ft,qe.Cancel=qe.CanceledError,qe.all=function(t){return Promise.all(t)},qe.spread=Le,qe.isAxiosError=Ie,qe.mergeConfig=Re,qe.AxiosHeaders=ee,qe.formToJSON=t=>Mt(st.isHTMLForm(t)?new FormData(t):t),qe.getAdapter=Ae.getAdapter,qe.HttpStatusCode=ke,qe.default=qe;const Ve=qe}}]);
|
2
|
+
//# sourceMappingURL=991.js.map
|