openc3-cosmos-demo 5.20.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,1417 @@
1
- (function(e,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["DataviewertimeWidget"]=n():e["DataviewertimeWidget"]=n()})("undefined"!==typeof self?self:this,(()=>(()=>{"use strict";var e={};(()=>{e.d=(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})}})(),(()=>{e.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n)})(),(()=>{e.p=""})();var n={};if(e.d(n,{default:()=>f}),"undefined"!==typeof window){var t=window.document.currentScript,o=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(e.p=o[1])}function i(){var e="/openc3/plugins/packages/openc3-cosmos-demo/src/DataviewertimeWidget.vue",n="07550a0e6fa6c0afbbc868e64a0d85ed0f4e9f37",t=new Function("return this")(),o="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-demo/src/DataviewertimeWidget.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:1494}},4:{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}},branchMap:{0:{loc:{start:{line:1,column:901},end:{line:1,column:1187}},type:"cond-expr",locations:[{start:{line:1,column:916},end:{line:1,column:1178}},{start:{line:1,column:1179},end:{line:1,column:1187}}],line:1},1:{loc:{start:{line:1,column:1200},end:{line:1,column:1490}},type:"cond-expr",locations:[{start:{line:1,column:1215},end:{line:1,column:1481}},{start:{line:1,column:1482},end:{line:1,column:1490}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"07550a0e6fa6c0afbbc868e64a0d85ed0f4e9f37"},a=t[o]||(t[o]={});a[e]&&a[e].hash===n||(a[e]=l);var c=a[e];return i=function(){return c},c}i(),i().s[0]++;var l=function(){i().f[0]++;var e=(i().s[1]++,this),n=(i().s[2]++,e._self._c);return i().s[3]++,n("v-container",[n("v-row",{attrs:{dense:""}},[n("v-col",[e._v("Current Time:")]),e._v(" "),n("v-col",[n("v-text-field",{attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time",value:e.date}})],1)],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-col",[e._v("UTC Time:")]),e._v(" "),n("v-col",[n("v-text-field",{attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time",value:e.utc}})],1)],1),e._v(" "),n("v-row",{attrs:{dense:""}},[n("v-col",[e._v("Stream Time (UTC):")]),e._v(" "),n("v-col",[n("v-text-field",{attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time",value:e.streamTime}})],1)],1),e._v(" "),e.hasDecom?(i().b[0][0]++,n("v-row",{attrs:{dense:""}},[n("v-col",[e._v("Packet Time:")]),e._v(" "),n("v-col",[n("v-text-field",{attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time",value:e.packetTime}})],1)],1)):(i().b[0][1]++,e._e()),e._v(" "),e.hasDecom?(i().b[1][0]++,n("v-row",{attrs:{dense:""}},[n("v-col",[e._v("Received Time:")]),e._v(" "),n("v-col",[n("v-text-field",{attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time",value:e.receivedTime}})],1)],1)):(i().b[1][1]++,e._e())],1)},a=(i().s[4]++,[]);const c={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let e=0;e<this.currentPackets.length;e++)if("RAW"===this.currentPackets[e].mode)return!0;return!1},hasDecom:function(){for(let e=0;e<this.currentPackets.length;e++)if("DECOM"===this.currentPackets[e].mode)return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(e){this.$emit("config",e)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(e){this.latestData=e}}};function r(){var e="/openc3/plugins/packages/openc3-cosmos-demo/src/DataviewertimeWidget.vue",n="907cc55e91afd48c95f539432dc992e3a41635e9",t=new Function("return this")(),o="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-demo/src/DataviewertimeWidget.vue",statementMap:{0:{start:{line:7,column:4},end:{line:12,column:5}},1:{start:{line:16,column:6},end:{line:16,column:36}},2:{start:{line:21,column:6},end:{line:29,column:8}},3:{start:{line:23,column:8},end:{line:26,column:9}},4:{start:{line:24,column:10},end:{line:24,column:58}},5:{start:{line:25,column:10},end:{line:25,column:62}},6:{start:{line:27,column:8},end:{line:27,column:73}},7:{start:{line:28,column:8},end:{line:28,column:30}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:8},end:{line:6,column:9}},loc:{start:{line:6,column:20},end:{line:13,column:3}},line:6},1:{name:"(anonymous_1)",decl:{start:{line:15,column:9},end:{line:15,column:10}},loc:{start:{line:15,column:21},end:{line:17,column:5}},line:15},2:{name:"(anonymous_2)",decl:{start:{line:20,column:16},end:{line:20,column:17}},loc:{start:{line:20,column:32},end:{line:30,column:5}},line:20},3:{name:"(anonymous_3)",decl:{start:{line:21,column:19},end:{line:21,column:20}},loc:{start:{line:21,column:31},end:{line:29,column:7}},line:21}},branchMap:{0:{loc:{start:{line:23,column:8},end:{line:26,column:9}},type:"if",locations:[{start:{line:23,column:8},end:{line:26,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:23}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["DataviewertimeWidget.vue"],names:[],mappings:";AA6FA;;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",file:"DataviewertimeWidget.vue",sourceRoot:"src",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-container>\n <v-row dense>\n <v-col>Current Time:</v-col>\n <v-col>\n <v-text-field\n solo\n dense\n readonly\n single-line\n hide-no-data\n hide-details\n placeholder="Time"\n :value="date" /></v-col\n ></v-row>\n <v-row dense>\n <v-col>UTC Time:</v-col>\n <v-col>\n <v-text-field\n solo\n dense\n readonly\n single-line\n hide-no-data\n hide-details\n placeholder="Time"\n :value="utc" /></v-col\n ></v-row>\n <v-row dense>\n <v-col>Stream Time (UTC):</v-col>\n <v-col>\n <v-text-field\n solo\n dense\n readonly\n single-line\n hide-no-data\n hide-details\n placeholder="Time"\n :value="streamTime" /></v-col\n ></v-row>\n <v-row dense v-if="hasDecom">\n <v-col>Packet Time:</v-col>\n <v-col>\n <v-text-field\n solo\n dense\n readonly\n single-line\n hide-no-data\n hide-details\n placeholder="Time"\n :value="packetTime" /></v-col\n ></v-row>\n <v-row dense v-if="hasDecom">\n <v-col>Received Time:</v-col>\n <v-col>\n <v-text-field\n solo\n dense\n readonly\n single-line\n hide-no-data\n hide-details\n placeholder="Time"\n :value="receivedTime" /></v-col\n ></v-row>\n </v-container>\n</template>\n\n<script>\nimport Component from \'@openc3/tool-common/src/components/dataviewer/Component\'\n\nexport default {\n mixins: [Component],\n data: function () {\n return {\n packetTime: null,\n receivedTime: null,\n currentTime: null,\n date: new Date(),\n }\n },\n computed: {\n utc: function () {\n return this.date.toUTCString()\n },\n },\n watch: {\n latestData: function (data) {\n data.forEach((packet) => {\n // This only works with DECOM packets\n if (\'buffer\' in packet === false) {\n this.packetTime = packet[\'PACKET_TIMEFORMATTED\']\n this.receivedTime = packet[\'RECEIVED_TIMEFORMATTED\']\n }\n this.streamTime = new Date(packet.__time / 1000000).toISOString()\n this.date = new Date()\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"907cc55e91afd48c95f539432dc992e3a41635e9"},l=t[o]||(t[o]={});l[e]&&l[e].hash===n||(l[e]=i);var a=l[e];return r=function(){return a},a}r();const s={mixins:[c],data:function(){return r().f[0]++,r().s[0]++,{packetTime:null,receivedTime:null,currentTime:null,date:new Date}},computed:{utc:function(){return r().f[1]++,r().s[1]++,this.date.toUTCString()}},watch:{latestData:function(e){r().f[2]++,r().s[2]++,e.forEach((e=>{r().f[3]++,r().s[3]++,"buffer"in e===!1?(r().b[0][0]++,r().s[4]++,this.packetTime=e["PACKET_TIMEFORMATTED"],r().s[5]++,this.receivedTime=e["RECEIVED_TIMEFORMATTED"]):r().b[0][1]++,r().s[6]++,this.streamTime=new Date(e.__time/1e6).toISOString(),r().s[7]++,this.date=new Date}))}}},d=s;function u(e,n,t,o,i,l,a,c){var r,s="function"===typeof e?e.options:e;if(n&&(s.render=n,s.staticRenderFns=t,s._compiled=!0),o&&(s.functional=!0),l&&(s._scopeId="data-v-"+l),a?(r=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},s._ssrRegister=r):i&&(r=c?function(){i.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:i),r)if(s.functional){s._injectStyles=r;var d=s.render;s.render=function(e,n){return r.call(n),d(e,n)}}else{var u=s.beforeCreate;s.beforeCreate=u?[].concat(u,r):[r]}return{exports:e,options:s}}var m=u(d,l,a,!1,null,null,null);const v=m.exports,f=v;return n=n["default"],n})()));
2
- //# sourceMappingURL=DataviewertimeWidget.umd.min.js.map
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode("")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(vn,_n){typeof exports=="object"&&typeof module<"u"?module.exports=_n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],_n):(vn=typeof globalThis<"u"?globalThis:vn||self,vn.DataviewertimeWidget=_n(vn.vue))})(this,function(vue){"use strict";const s$3=(vn,_n)=>{const kn=vn.__vccOpts||vn;for(const[Mn,Yn]of _n)kn[Mn]=Yn;return kn},$e$3=6e4,ze$3=36e5,Ue$3=1e3,q$4=Symbol.for("constructDateFrom");function y$c(vn,_n){return typeof vn=="function"?vn(_n):vn&&typeof vn=="object"&&q$4 in vn?vn[q$4](_n):vn instanceof Date?new vn.constructor(_n):new Date(_n)}function l$5(vn,_n){return y$c(_n||vn,vn)}let B$7={};function v$a(){return B$7}function x$4(vn,_n){var kn,Mn,Yn,Wn;const Kn=v$a(),Xn=(_n==null?void 0:_n.weekStartsOn)??((Mn=(kn=_n==null?void 0:_n.locale)==null?void 0:kn.options)==null?void 0:Mn.weekStartsOn)??Kn.weekStartsOn??((Wn=(Yn=Kn.locale)==null?void 0:Yn.options)==null?void 0:Wn.weekStartsOn)??0,Hn=l$5(vn,_n==null?void 0:_n.in),qn=Hn.getDay(),In=(qn<Xn?7:0)+qn-Xn;return Hn.setDate(Hn.getDate()-In),Hn.setHours(0,0,0,0),Hn}function D$4(vn,_n){return x$4(vn,{..._n,weekStartsOn:1})}function j$4(vn,_n){const kn=l$5(vn,void 0),Mn=kn.getFullYear(),Yn=y$c(kn,0);Yn.setFullYear(Mn+1,0,4),Yn.setHours(0,0,0,0);const Wn=D$4(Yn),Kn=y$c(kn,0);Kn.setFullYear(Mn,0,4),Kn.setHours(0,0,0,0);const Xn=D$4(Kn);return kn.getTime()>=Wn.getTime()?Mn+1:kn.getTime()>=Xn.getTime()?Mn:Mn-1}function N$7(vn){const _n=l$5(vn),kn=new Date(Date.UTC(_n.getFullYear(),_n.getMonth(),_n.getDate(),_n.getHours(),_n.getMinutes(),_n.getSeconds(),_n.getMilliseconds()));return kn.setUTCFullYear(_n.getFullYear()),+vn-+kn}function A$6(vn,..._n){const kn=y$c.bind(null,_n.find(Mn=>typeof Mn=="object"));return _n.map(kn)}function H$3(vn,_n){const kn=l$5(vn,void 0);return kn.setHours(0,0,0,0),kn}function R$5(vn,_n,kn){const[Mn,Yn]=A$6(void 0,vn,_n),Wn=H$3(Mn),Kn=H$3(Yn),Xn=+Wn-N$7(Wn),Hn=+Kn-N$7(Kn);return Math.round((Xn-Hn)/864e5)}function V$5(vn,_n){const kn=j$4(vn),Mn=y$c(vn,0);return Mn.setFullYear(kn,0,4),Mn.setHours(0,0,0,0),D$4(Mn)}function J$2(vn){return vn instanceof Date||typeof vn=="object"&&Object.prototype.toString.call(vn)==="[object Date]"}function $$8(vn){return!(!J$2(vn)&&typeof vn!="number"||isNaN(+l$5(vn)))}function z$b(vn,_n){const kn=l$5(vn,void 0);return kn.setFullYear(kn.getFullYear(),0,1),kn.setHours(0,0,0,0),kn}const U$5={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},K$5=(vn,_n,kn)=>{let Mn;const Yn=U$5[vn];return typeof Yn=="string"?Mn=Yn:_n===1?Mn=Yn.one:Mn=Yn.other.replace("{{count}}",_n.toString()),kn!=null&&kn.addSuffix?kn.comparison&&kn.comparison>0?"in "+Mn:Mn+" ago":Mn};function Y$3(vn){return(_n={})=>{const kn=_n.width?String(_n.width):vn.defaultWidth;return vn.formats[kn]||vn.formats[vn.defaultWidth]}}const Z$4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},p$d={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ee$2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},te$2={date:Y$3({formats:Z$4,defaultWidth:"full"}),time:Y$3({formats:p$d,defaultWidth:"full"}),dateTime:Y$3({formats:ee$2,defaultWidth:"full"})},ne$3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},re$3=(vn,_n,kn,Mn)=>ne$3[vn];function k$a(vn){return(_n,kn)=>{const Mn=kn!=null&&kn.context?String(kn.context):"standalone";let Yn;if(Mn==="formatting"&&vn.formattingValues){const Kn=vn.defaultFormattingWidth||vn.defaultWidth,Xn=kn!=null&&kn.width?String(kn.width):Kn;Yn=vn.formattingValues[Xn]||vn.formattingValues[Kn]}else{const Kn=vn.defaultWidth,Xn=kn!=null&&kn.width?String(kn.width):vn.defaultWidth;Yn=vn.values[Xn]||vn.values[Kn]}const Wn=vn.argumentCallback?vn.argumentCallback(_n):_n;return Yn[Wn]}}const ae$3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ie$2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},se$2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ue$5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ce$3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oe$3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},de$4=(vn,_n)=>{const kn=Number(vn),Mn=kn%100;if(Mn>20||Mn<10)switch(Mn%10){case 1:return kn+"st";case 2:return kn+"nd";case 3:return kn+"rd"}return kn+"th"},fe$4={ordinalNumber:de$4,era:k$a({values:ae$3,defaultWidth:"wide"}),quarter:k$a({values:ie$2,defaultWidth:"wide",argumentCallback:vn=>vn-1}),month:k$a({values:se$2,defaultWidth:"wide"}),day:k$a({values:ue$5,defaultWidth:"wide"}),dayPeriod:k$a({values:ce$3,defaultWidth:"wide",formattingValues:oe$3,defaultFormattingWidth:"wide"})};function W$4(vn){return(_n,kn={})=>{const Mn=kn.width,Yn=Mn&&vn.matchPatterns[Mn]||vn.matchPatterns[vn.defaultMatchWidth],Wn=_n.match(Yn);if(!Wn)return null;const Kn=Wn[0],Xn=Mn&&vn.parsePatterns[Mn]||vn.parsePatterns[vn.defaultParseWidth],Hn=Array.isArray(Xn)?me$4(Xn,Dn=>Dn.test(Kn)):he$4(Xn,Dn=>Dn.test(Kn));let qn;qn=vn.valueCallback?vn.valueCallback(Hn):Hn,qn=kn.valueCallback?kn.valueCallback(qn):qn;const In=_n.slice(Kn.length);return{value:qn,rest:In}}}function he$4(vn,_n){for(const kn in vn)if(Object.prototype.hasOwnProperty.call(vn,kn)&&_n(vn[kn]))return kn}function me$4(vn,_n){for(let kn=0;kn<vn.length;kn++)if(_n(vn[kn]))return kn}function le$4(vn){return(_n,kn={})=>{const Mn=_n.match(vn.matchPattern);if(!Mn)return null;const Yn=Mn[0],Wn=_n.match(vn.parsePattern);if(!Wn)return null;let Kn=vn.valueCallback?vn.valueCallback(Wn[0]):Wn[0];Kn=kn.valueCallback?kn.valueCallback(Kn):Kn;const Xn=_n.slice(Yn.length);return{value:Kn,rest:Xn}}}const ge$4=/^(\d+)(th|st|nd|rd)?/i,we$4=/\d+/i,ye$4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},be$4={any:[/^b/i,/^(a|c)/i]},Me$3={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pe$3={any:[/1/i,/2/i,/3/i,/4/i]},Oe$3={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ke$2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},We$3={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xe$3={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},De$4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ve$4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Se$4={ordinalNumber:le$4({matchPattern:ge$4,parsePattern:we$4,valueCallback:vn=>parseInt(vn,10)}),era:W$4({matchPatterns:ye$4,defaultMatchWidth:"wide",parsePatterns:be$4,defaultParseWidth:"any"}),quarter:W$4({matchPatterns:Me$3,defaultMatchWidth:"wide",parsePatterns:Pe$3,defaultParseWidth:"any",valueCallback:vn=>vn+1}),month:W$4({matchPatterns:Oe$3,defaultMatchWidth:"wide",parsePatterns:ke$2,defaultParseWidth:"any"}),day:W$4({matchPatterns:We$3,defaultMatchWidth:"wide",parsePatterns:xe$3,defaultParseWidth:"any"}),dayPeriod:W$4({matchPatterns:De$4,defaultMatchWidth:"any",parsePatterns:ve$4,defaultParseWidth:"any"})},Ye$4={code:"en-US",formatDistance:K$5,formatLong:te$2,formatRelative:re$3,localize:fe$4,match:Se$4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Te$4(vn,_n){const kn=l$5(vn,void 0);return R$5(kn,z$b(kn))+1}function Fe$3(vn,_n){const kn=l$5(vn,void 0),Mn=+D$4(kn)-+V$5(kn);return Math.round(Mn/6048e5)+1}function L$5(vn,_n){var kn,Mn,Yn,Wn;const Kn=l$5(vn,_n==null?void 0:_n.in),Xn=Kn.getFullYear(),Hn=v$a(),qn=(_n==null?void 0:_n.firstWeekContainsDate)??((Mn=(kn=_n==null?void 0:_n.locale)==null?void 0:kn.options)==null?void 0:Mn.firstWeekContainsDate)??Hn.firstWeekContainsDate??((Wn=(Yn=Hn.locale)==null?void 0:Yn.options)==null?void 0:Wn.firstWeekContainsDate)??1,In=y$c((_n==null?void 0:_n.in)||vn,0);In.setFullYear(Xn+1,0,qn),In.setHours(0,0,0,0);const Dn=x$4(In,_n),Pn=y$c((_n==null?void 0:_n.in)||vn,0);Pn.setFullYear(Xn,0,qn),Pn.setHours(0,0,0,0);const Bn=x$4(Pn,_n);return+Kn>=+Dn?Xn+1:+Kn>=+Bn?Xn:Xn-1}function Ee$3(vn,_n){var kn,Mn,Yn,Wn;const Kn=v$a(),Xn=(_n==null?void 0:_n.firstWeekContainsDate)??((Mn=(kn=_n==null?void 0:_n.locale)==null?void 0:kn.options)==null?void 0:Mn.firstWeekContainsDate)??Kn.firstWeekContainsDate??((Wn=(Yn=Kn.locale)==null?void 0:Yn.options)==null?void 0:Wn.firstWeekContainsDate)??1,Hn=L$5(vn,_n),qn=y$c((_n==null?void 0:_n.in)||vn,0);return qn.setFullYear(Hn,0,Xn),qn.setHours(0,0,0,0),x$4(qn,_n)}function Ce$3(vn,_n){const kn=l$5(vn,_n==null?void 0:_n.in),Mn=+x$4(kn,_n)-+Ee$3(kn,_n);return Math.round(Mn/6048e5)+1}function u$d(vn,_n){const kn=vn<0?"-":"",Mn=Math.abs(vn).toString().padStart(_n,"0");return kn+Mn}const w$7={y(vn,_n){const kn=vn.getFullYear(),Mn=kn>0?kn:1-kn;return u$d(_n==="yy"?Mn%100:Mn,_n.length)},M(vn,_n){const kn=vn.getMonth();return _n==="M"?String(kn+1):u$d(kn+1,2)},d(vn,_n){return u$d(vn.getDate(),_n.length)},a(vn,_n){const kn=vn.getHours()/12>=1?"pm":"am";switch(_n){case"a":case"aa":return kn.toUpperCase();case"aaa":return kn;case"aaaaa":return kn[0];case"aaaa":default:return kn==="am"?"a.m.":"p.m."}},h(vn,_n){return u$d(vn.getHours()%12||12,_n.length)},H(vn,_n){return u$d(vn.getHours(),_n.length)},m(vn,_n){return u$d(vn.getMinutes(),_n.length)},s(vn,_n){return u$d(vn.getSeconds(),_n.length)},S(vn,_n){const kn=_n.length,Mn=vn.getMilliseconds(),Yn=Math.trunc(Mn*Math.pow(10,kn-3));return u$d(Yn,_n.length)}},M$4={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Q$3={G:function(vn,_n,kn){const Mn=vn.getFullYear()>0?1:0;switch(_n){case"G":case"GG":case"GGG":return kn.era(Mn,{width:"abbreviated"});case"GGGGG":return kn.era(Mn,{width:"narrow"});case"GGGG":default:return kn.era(Mn,{width:"wide"})}},y:function(vn,_n,kn){if(_n==="yo"){const Mn=vn.getFullYear(),Yn=Mn>0?Mn:1-Mn;return kn.ordinalNumber(Yn,{unit:"year"})}return w$7.y(vn,_n)},Y:function(vn,_n,kn,Mn){const Yn=L$5(vn,Mn),Wn=Yn>0?Yn:1-Yn;if(_n==="YY"){const Kn=Wn%100;return u$d(Kn,2)}return _n==="Yo"?kn.ordinalNumber(Wn,{unit:"year"}):u$d(Wn,_n.length)},R:function(vn,_n){const kn=j$4(vn);return u$d(kn,_n.length)},u:function(vn,_n){const kn=vn.getFullYear();return u$d(kn,_n.length)},Q:function(vn,_n,kn){const Mn=Math.ceil((vn.getMonth()+1)/3);switch(_n){case"Q":return String(Mn);case"QQ":return u$d(Mn,2);case"Qo":return kn.ordinalNumber(Mn,{unit:"quarter"});case"QQQ":return kn.quarter(Mn,{width:"abbreviated",context:"formatting"});case"QQQQQ":return kn.quarter(Mn,{width:"narrow",context:"formatting"});case"QQQQ":default:return kn.quarter(Mn,{width:"wide",context:"formatting"})}},q:function(vn,_n,kn){const Mn=Math.ceil((vn.getMonth()+1)/3);switch(_n){case"q":return String(Mn);case"qq":return u$d(Mn,2);case"qo":return kn.ordinalNumber(Mn,{unit:"quarter"});case"qqq":return kn.quarter(Mn,{width:"abbreviated",context:"standalone"});case"qqqqq":return kn.quarter(Mn,{width:"narrow",context:"standalone"});case"qqqq":default:return kn.quarter(Mn,{width:"wide",context:"standalone"})}},M:function(vn,_n,kn){const Mn=vn.getMonth();switch(_n){case"M":case"MM":return w$7.M(vn,_n);case"Mo":return kn.ordinalNumber(Mn+1,{unit:"month"});case"MMM":return kn.month(Mn,{width:"abbreviated",context:"formatting"});case"MMMMM":return kn.month(Mn,{width:"narrow",context:"formatting"});case"MMMM":default:return kn.month(Mn,{width:"wide",context:"formatting"})}},L:function(vn,_n,kn){const Mn=vn.getMonth();switch(_n){case"L":return String(Mn+1);case"LL":return u$d(Mn+1,2);case"Lo":return kn.ordinalNumber(Mn+1,{unit:"month"});case"LLL":return kn.month(Mn,{width:"abbreviated",context:"standalone"});case"LLLLL":return kn.month(Mn,{width:"narrow",context:"standalone"});case"LLLL":default:return kn.month(Mn,{width:"wide",context:"standalone"})}},w:function(vn,_n,kn,Mn){const Yn=Ce$3(vn,Mn);return _n==="wo"?kn.ordinalNumber(Yn,{unit:"week"}):u$d(Yn,_n.length)},I:function(vn,_n,kn){const Mn=Fe$3(vn);return _n==="Io"?kn.ordinalNumber(Mn,{unit:"week"}):u$d(Mn,_n.length)},d:function(vn,_n,kn){return _n==="do"?kn.ordinalNumber(vn.getDate(),{unit:"date"}):w$7.d(vn,_n)},D:function(vn,_n,kn){const Mn=Te$4(vn);return _n==="Do"?kn.ordinalNumber(Mn,{unit:"dayOfYear"}):u$d(Mn,_n.length)},E:function(vn,_n,kn){const Mn=vn.getDay();switch(_n){case"E":case"EE":case"EEE":return kn.day(Mn,{width:"abbreviated",context:"formatting"});case"EEEEE":return kn.day(Mn,{width:"narrow",context:"formatting"});case"EEEEEE":return kn.day(Mn,{width:"short",context:"formatting"});case"EEEE":default:return kn.day(Mn,{width:"wide",context:"formatting"})}},e:function(vn,_n,kn,Mn){const Yn=vn.getDay(),Wn=(Yn-Mn.weekStartsOn+8)%7||7;switch(_n){case"e":return String(Wn);case"ee":return u$d(Wn,2);case"eo":return kn.ordinalNumber(Wn,{unit:"day"});case"eee":return kn.day(Yn,{width:"abbreviated",context:"formatting"});case"eeeee":return kn.day(Yn,{width:"narrow",context:"formatting"});case"eeeeee":return kn.day(Yn,{width:"short",context:"formatting"});case"eeee":default:return kn.day(Yn,{width:"wide",context:"formatting"})}},c:function(vn,_n,kn,Mn){const Yn=vn.getDay(),Wn=(Yn-Mn.weekStartsOn+8)%7||7;switch(_n){case"c":return String(Wn);case"cc":return u$d(Wn,_n.length);case"co":return kn.ordinalNumber(Wn,{unit:"day"});case"ccc":return kn.day(Yn,{width:"abbreviated",context:"standalone"});case"ccccc":return kn.day(Yn,{width:"narrow",context:"standalone"});case"cccccc":return kn.day(Yn,{width:"short",context:"standalone"});case"cccc":default:return kn.day(Yn,{width:"wide",context:"standalone"})}},i:function(vn,_n,kn){const Mn=vn.getDay(),Yn=Mn===0?7:Mn;switch(_n){case"i":return String(Yn);case"ii":return u$d(Yn,_n.length);case"io":return kn.ordinalNumber(Yn,{unit:"day"});case"iii":return kn.day(Mn,{width:"abbreviated",context:"formatting"});case"iiiii":return kn.day(Mn,{width:"narrow",context:"formatting"});case"iiiiii":return kn.day(Mn,{width:"short",context:"formatting"});case"iiii":default:return kn.day(Mn,{width:"wide",context:"formatting"})}},a:function(vn,_n,kn){const Mn=vn.getHours()/12>=1?"pm":"am";switch(_n){case"a":case"aa":return kn.dayPeriod(Mn,{width:"abbreviated",context:"formatting"});case"aaa":return kn.dayPeriod(Mn,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return kn.dayPeriod(Mn,{width:"narrow",context:"formatting"});case"aaaa":default:return kn.dayPeriod(Mn,{width:"wide",context:"formatting"})}},b:function(vn,_n,kn){const Mn=vn.getHours();let Yn;switch(Mn===12?Yn=M$4.noon:Mn===0?Yn=M$4.midnight:Yn=Mn/12>=1?"pm":"am",_n){case"b":case"bb":return kn.dayPeriod(Yn,{width:"abbreviated",context:"formatting"});case"bbb":return kn.dayPeriod(Yn,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return kn.dayPeriod(Yn,{width:"narrow",context:"formatting"});case"bbbb":default:return kn.dayPeriod(Yn,{width:"wide",context:"formatting"})}},B:function(vn,_n,kn){const Mn=vn.getHours();let Yn;switch(Mn>=17?Yn=M$4.evening:Mn>=12?Yn=M$4.afternoon:Mn>=4?Yn=M$4.morning:Yn=M$4.night,_n){case"B":case"BB":case"BBB":return kn.dayPeriod(Yn,{width:"abbreviated",context:"formatting"});case"BBBBB":return kn.dayPeriod(Yn,{width:"narrow",context:"formatting"});case"BBBB":default:return kn.dayPeriod(Yn,{width:"wide",context:"formatting"})}},h:function(vn,_n,kn){if(_n==="ho"){let Mn=vn.getHours()%12;return Mn===0&&(Mn=12),kn.ordinalNumber(Mn,{unit:"hour"})}return w$7.h(vn,_n)},H:function(vn,_n,kn){return _n==="Ho"?kn.ordinalNumber(vn.getHours(),{unit:"hour"}):w$7.H(vn,_n)},K:function(vn,_n,kn){const Mn=vn.getHours()%12;return _n==="Ko"?kn.ordinalNumber(Mn,{unit:"hour"}):u$d(Mn,_n.length)},k:function(vn,_n,kn){let Mn=vn.getHours();return Mn===0&&(Mn=24),_n==="ko"?kn.ordinalNumber(Mn,{unit:"hour"}):u$d(Mn,_n.length)},m:function(vn,_n,kn){return _n==="mo"?kn.ordinalNumber(vn.getMinutes(),{unit:"minute"}):w$7.m(vn,_n)},s:function(vn,_n,kn){return _n==="so"?kn.ordinalNumber(vn.getSeconds(),{unit:"second"}):w$7.s(vn,_n)},S:function(vn,_n){return w$7.S(vn,_n)},X:function(vn,_n,kn){const Mn=vn.getTimezoneOffset();if(Mn===0)return"Z";switch(_n){case"X":return _$9(Mn);case"XXXX":case"XX":return b$8(Mn);case"XXXXX":case"XXX":default:return b$8(Mn,":")}},x:function(vn,_n,kn){const Mn=vn.getTimezoneOffset();switch(_n){case"x":return _$9(Mn);case"xxxx":case"xx":return b$8(Mn);case"xxxxx":case"xxx":default:return b$8(Mn,":")}},O:function(vn,_n,kn){const Mn=vn.getTimezoneOffset();switch(_n){case"O":case"OO":case"OOO":return"GMT"+X$3(Mn,":");case"OOOO":default:return"GMT"+b$8(Mn,":")}},z:function(vn,_n,kn){const Mn=vn.getTimezoneOffset();switch(_n){case"z":case"zz":case"zzz":return"GMT"+X$3(Mn,":");case"zzzz":default:return"GMT"+b$8(Mn,":")}},t:function(vn,_n,kn){const Mn=Math.trunc(+vn/1e3);return u$d(Mn,_n.length)},T:function(vn,_n,kn){return u$d(+vn,_n.length)}};function X$3(vn,_n=""){const kn=vn>0?"-":"+",Mn=Math.abs(vn),Yn=Math.trunc(Mn/60),Wn=Mn%60;return Wn===0?kn+String(Yn):kn+String(Yn)+_n+u$d(Wn,2)}function _$9(vn,_n){return vn%60===0?(vn>0?"-":"+")+u$d(Math.abs(vn)/60,2):b$8(vn,_n)}function b$8(vn,_n=""){const kn=vn>0?"-":"+",Mn=Math.abs(vn),Yn=u$d(Math.trunc(Mn/60),2),Wn=u$d(Mn%60,2);return kn+Yn+_n+Wn}const I$7=(vn,_n)=>{switch(vn){case"P":return _n.date({width:"short"});case"PP":return _n.date({width:"medium"});case"PPP":return _n.date({width:"long"});case"PPPP":default:return _n.date({width:"full"})}},G$2=(vn,_n)=>{switch(vn){case"p":return _n.time({width:"short"});case"pp":return _n.time({width:"medium"});case"ppp":return _n.time({width:"long"});case"pppp":default:return _n.time({width:"full"})}},qe$2=(vn,_n)=>{const kn=vn.match(/(P+)(p+)?/)||[],Mn=kn[1],Yn=kn[2];if(!Yn)return I$7(vn,_n);let Wn;switch(Mn){case"P":Wn=_n.dateTime({width:"short"});break;case"PP":Wn=_n.dateTime({width:"medium"});break;case"PPP":Wn=_n.dateTime({width:"long"});break;case"PPPP":default:Wn=_n.dateTime({width:"full"});break}return Wn.replace("{{date}}",I$7(Mn,_n)).replace("{{time}}",G$2(Yn,_n))},Ne$3={p:G$2,P:qe$2},He$3=/^D+$/,Qe$2=/^Y+$/,Xe$3=["D","DD","YY","YYYY"];function _e$3(vn){return He$3.test(vn)}function Ie$3(vn){return Qe$2.test(vn)}function je$2(vn,_n,kn){const Mn=Le$3(vn,_n,kn);if(console.warn(Mn),Xe$3.includes(vn))throw new RangeError(Mn)}function Le$3(vn,_n,kn){const Mn=vn[0]==="Y"?"years":"days of the month";return`Use \`${vn.toLowerCase()}\` instead of \`${vn}\` (in \`${_n}\`) for formatting ${Mn} to the input \`${kn}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ge$2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Be$2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ae$3=/^'([^]*?)'?$/,Re$2=/''/g,Ve$2=/[a-zA-Z]/;function pe$3(vn,_n,kn){var Mn,Yn,Wn,Kn,Xn,Hn,qn,In;const Dn=v$a(),Pn=(kn==null?void 0:kn.locale)??Dn.locale??Ye$4,Bn=(kn==null?void 0:kn.firstWeekContainsDate)??((Yn=(Mn=kn==null?void 0:kn.locale)==null?void 0:Mn.options)==null?void 0:Yn.firstWeekContainsDate)??Dn.firstWeekContainsDate??((Kn=(Wn=Dn.locale)==null?void 0:Wn.options)==null?void 0:Kn.firstWeekContainsDate)??1,Nn=(kn==null?void 0:kn.weekStartsOn)??((Hn=(Xn=kn==null?void 0:kn.locale)==null?void 0:Xn.options)==null?void 0:Hn.weekStartsOn)??Dn.weekStartsOn??((In=(qn=Dn.locale)==null?void 0:qn.options)==null?void 0:In.weekStartsOn)??0,zn=l$5(vn,kn==null?void 0:kn.in);if(!$$8(zn))throw new RangeError("Invalid time value");let Qn=_n.match(Be$2).map(ti=>{const vi=ti[0];if(vi==="p"||vi==="P"){const pi=Ne$3[vi];return pi(ti,Pn.formatLong)}return ti}).join("").match(Ge$2).map(ti=>{if(ti==="''")return{isToken:!1,value:"'"};const vi=ti[0];if(vi==="'")return{isToken:!1,value:Je$2(ti)};if(Q$3[vi])return{isToken:!0,value:ti};if(vi.match(Ve$2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+vi+"`");return{isToken:!1,value:ti}});Pn.localize.preprocessor&&(Qn=Pn.localize.preprocessor(zn,Qn));const Jn={firstWeekContainsDate:Bn,weekStartsOn:Nn,locale:Pn};return Qn.map(ti=>{if(!ti.isToken)return ti.value;const vi=ti.value;(!(kn!=null&&kn.useAdditionalWeekYearTokens)&&Ie$3(vi)||!(kn!=null&&kn.useAdditionalDayOfYearTokens)&&_e$3(vi))&&je$2(vi,_n,String(vn));const pi=Q$3[vi[0]];return pi(zn,vi,Pn.localize,Jn)}).join("")}function Je$2(vn){const _n=vn.match(Ae$3);return _n?_n[1].replace(Re$2,"'"):vn}var hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(vn){return vn&&vn.__esModule&&Object.prototype.hasOwnProperty.call(vn,"default")?vn.default:vn}var uc={exports:{}},Nd;function Yb(){return Nd||(Nd=1,function(vn,_n){(function(){var kn="ace",Mn=function(){return this}();!Mn&&typeof window<"u"&&(Mn=window);var Yn=function(In,Dn,Pn){if(typeof In!="string"){Yn.original?Yn.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(Pn=Dn),Yn.modules[In]||(Yn.payloads[In]=Pn,Yn.modules[In]=null)};Yn.modules={},Yn.payloads={};var Wn=function(In,Dn,Pn){if(typeof Dn=="string"){var Bn=Hn(In,Dn);if(Bn!=null)return Pn&&Pn(),Bn}else if(Object.prototype.toString.call(Dn)==="[object Array]"){for(var Nn=[],zn=0,Qn=Dn.length;zn<Qn;++zn){var Jn=Hn(In,Dn[zn]);if(Jn==null&&Kn.original)return;Nn.push(Jn)}return Pn&&Pn.apply(null,Nn)||!0}},Kn=function(In,Dn){var Pn=Wn("",In,Dn);return Pn==null&&Kn.original?Kn.original.apply(this,arguments):Pn},Xn=function(In,Dn){if(Dn.indexOf("!")!==-1){var Pn=Dn.split("!");return Xn(In,Pn[0])+"!"+Xn(In,Pn[1])}if(Dn.charAt(0)=="."){var Bn=In.split("/").slice(0,-1).join("/");for(Dn=Bn+"/"+Dn;Dn.indexOf(".")!==-1&&Nn!=Dn;){var Nn=Dn;Dn=Dn.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return Dn},Hn=function(In,Dn){Dn=Xn(In,Dn);var Pn=Yn.modules[Dn];if(!Pn){if(Pn=Yn.payloads[Dn],typeof Pn=="function"){var Bn={},Nn={id:Dn,uri:"",exports:Bn,packaged:!0},zn=function(Jn,ti){return Wn(Dn,Jn,ti)},Qn=Pn(zn,Bn,Nn);Bn=Qn||Nn.exports,Yn.modules[Dn]=Bn,delete Yn.payloads[Dn]}Pn=Yn.modules[Dn]=Bn||Pn}return Pn};function qn(In){var Dn=Mn;Mn[In]||(Mn[In]={}),Dn=Mn[In],(!Dn.define||!Dn.define.packaged)&&(Yn.original=Dn.define,Dn.define=Yn,Dn.define.packaged=!0),(!Dn.require||!Dn.require.packaged)&&(Kn.original=Dn.require,Dn.require=Kn,Dn.require.packaged=!0)}qn(kn)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(kn,Mn,Yn){function Wn(Kn,Xn,Hn){Object.defineProperty(Kn,Xn,{value:Hn,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||Wn(String.prototype,"startsWith",function(Kn,Xn){return Xn=Xn||0,this.lastIndexOf(Kn,Xn)===Xn}),String.prototype.endsWith||Wn(String.prototype,"endsWith",function(Kn,Xn){var Hn=this;(Xn===void 0||Xn>Hn.length)&&(Xn=Hn.length),Xn-=Kn.length;var qn=Hn.indexOf(Kn,Xn);return qn!==-1&&qn===Xn}),String.prototype.repeat||Wn(String.prototype,"repeat",function(Kn){for(var Xn="",Hn=this;Kn>0;)Kn&1&&(Xn+=Hn),(Kn>>=1)&&(Hn+=Hn);return Xn}),String.prototype.includes||Wn(String.prototype,"includes",function(Kn,Xn){return this.indexOf(Kn,Xn)!=-1}),Object.assign||(Object.assign=function(Kn){if(Kn==null)throw new TypeError("Cannot convert undefined or null to object");for(var Xn=Object(Kn),Hn=1;Hn<arguments.length;Hn++){var qn=arguments[Hn];qn!=null&&Object.keys(qn).forEach(function(In){Xn[In]=qn[In]})}return Xn}),Object.values||(Object.values=function(Kn){return Object.keys(Kn).map(function(Xn){return Kn[Xn]})}),Array.prototype.find||Wn(Array.prototype,"find",function(Kn){for(var Xn=this.length,Hn=arguments[1],qn=0;qn<Xn;qn++){var In=this[qn];if(Kn.call(Hn,In,qn,this))return In}}),Array.prototype.findIndex||Wn(Array.prototype,"findIndex",function(Kn){for(var Xn=this.length,Hn=arguments[1],qn=0;qn<Xn;qn++){var In=this[qn];if(Kn.call(Hn,In,qn,this))return qn}}),Array.prototype.includes||Wn(Array.prototype,"includes",function(Kn,Xn){return this.indexOf(Kn,Xn)!=-1}),Array.prototype.fill||Wn(Array.prototype,"fill",function(Kn){for(var Xn=this,Hn=Xn.length>>>0,qn=arguments[1],In=qn>>0,Dn=In<0?Math.max(Hn+In,0):Math.min(In,Hn),Pn=arguments[2],Bn=Pn===void 0?Hn:Pn>>0,Nn=Bn<0?Math.max(Hn+Bn,0):Math.min(Bn,Hn);Dn<Nn;)Xn[Dn]=Kn,Dn++;return Xn}),Array.of||Wn(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(kn,Mn,Yn){kn("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(kn,Mn,Yn){Mn.deepCopy=function Wn(Kn){if(typeof Kn!="object"||!Kn)return Kn;var Xn;if(Array.isArray(Kn)){Xn=[];for(var Hn=0;Hn<Kn.length;Hn++)Xn[Hn]=Wn(Kn[Hn]);return Xn}if(Object.prototype.toString.call(Kn)!=="[object Object]")return Kn;Xn={};for(var Hn in Kn)Xn[Hn]=Wn(Kn[Hn]);return Xn}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(kn,Mn,Yn){Mn.last=function(Xn){return Xn[Xn.length-1]},Mn.stringReverse=function(Xn){return Xn.split("").reverse().join("")},Mn.stringRepeat=function(Xn,Hn){for(var qn="";Hn>0;)Hn&1&&(qn+=Xn),(Hn>>=1)&&(Xn+=Xn);return qn};var Wn=/^\s\s*/,Kn=/\s\s*$/;Mn.stringTrimLeft=function(Xn){return Xn.replace(Wn,"")},Mn.stringTrimRight=function(Xn){return Xn.replace(Kn,"")},Mn.copyObject=function(Xn){var Hn={};for(var qn in Xn)Hn[qn]=Xn[qn];return Hn},Mn.copyArray=function(Xn){for(var Hn=[],qn=0,In=Xn.length;qn<In;qn++)Xn[qn]&&typeof Xn[qn]=="object"?Hn[qn]=this.copyObject(Xn[qn]):Hn[qn]=Xn[qn];return Hn},Mn.deepCopy=kn("./deep_copy").deepCopy,Mn.arrayToMap=function(Xn){for(var Hn={},qn=0;qn<Xn.length;qn++)Hn[Xn[qn]]=1;return Hn},Mn.createMap=function(Xn){var Hn=Object.create(null);for(var qn in Xn)Hn[qn]=Xn[qn];return Hn},Mn.arrayRemove=function(Xn,Hn){for(var qn=0;qn<=Xn.length;qn++)Hn===Xn[qn]&&Xn.splice(qn,1)},Mn.escapeRegExp=function(Xn){return Xn.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},Mn.escapeHTML=function(Xn){return(""+Xn).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},Mn.getMatchOffsets=function(Xn,Hn){var qn=[];return Xn.replace(Hn,function(In){qn.push({offset:arguments[arguments.length-2],length:In.length})}),qn},Mn.deferredCall=function(Xn){var Hn=null,qn=function(){Hn=null,Xn()},In=function(Dn){return In.cancel(),Hn=setTimeout(qn,Dn||0),In};return In.schedule=In,In.call=function(){return this.cancel(),Xn(),In},In.cancel=function(){return clearTimeout(Hn),Hn=null,In},In.isPending=function(){return Hn},In},Mn.delayedCall=function(Xn,Hn){var qn=null,In=function(){qn=null,Xn()},Dn=function(Pn){qn==null&&(qn=setTimeout(In,Pn||Hn))};return Dn.delay=function(Pn){qn&&clearTimeout(qn),qn=setTimeout(In,Pn||Hn)},Dn.schedule=Dn,Dn.call=function(){this.cancel(),Xn()},Dn.cancel=function(){qn&&clearTimeout(qn),qn=null},Dn.isPending=function(){return qn},Dn},Mn.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},Mn.skipEmptyMatch=function(Xn,Hn,qn){return qn&&Xn.codePointAt(Hn)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(kn,Mn,Yn){Mn.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},Mn.getOS=function(){return Mn.isMac?Mn.OS.MAC:Mn.isLinux?Mn.OS.LINUX:Mn.OS.WINDOWS};var Wn=typeof navigator=="object"?navigator:{},Kn=(/mac|win|linux/i.exec(Wn.platform)||["other"])[0].toLowerCase(),Xn=Wn.userAgent||"",Hn=Wn.appName||"";Mn.isWin=Kn=="win",Mn.isMac=Kn=="mac",Mn.isLinux=Kn=="linux",Mn.isIE=Hn=="Microsoft Internet Explorer"||Hn.indexOf("MSAppHost")>=0?parseFloat((Xn.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((Xn.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),Mn.isOldIE=Mn.isIE&&Mn.isIE<9,Mn.isGecko=Mn.isMozilla=Xn.match(/ Gecko\/\d+/),Mn.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",Mn.isWebKit=parseFloat(Xn.split("WebKit/")[1])||void 0,Mn.isChrome=parseFloat(Xn.split(" Chrome/")[1])||void 0,Mn.isSafari=parseFloat(Xn.split(" Safari/")[1])&&!Mn.isChrome||void 0,Mn.isEdge=parseFloat(Xn.split(" Edge/")[1])||void 0,Mn.isAIR=Xn.indexOf("AdobeAIR")>=0,Mn.isAndroid=Xn.indexOf("Android")>=0,Mn.isChromeOS=Xn.indexOf(" CrOS ")>=0,Mn.isIOS=/iPad|iPhone|iPod/.test(Xn)&&!window.MSStream,Mn.isIOS&&(Mn.isMac=!0),Mn.isMobile=Mn.isIOS||Mn.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(kn,Mn,Yn){var Wn=kn("./useragent"),Kn="http://www.w3.org/1999/xhtml";Mn.buildDom=function Pn(Bn,Nn,zn){if(typeof Bn=="string"&&Bn){var Qn=document.createTextNode(Bn);return Nn&&Nn.appendChild(Qn),Qn}if(!Array.isArray(Bn))return Bn&&Bn.appendChild&&Nn&&Nn.appendChild(Bn),Bn;if(typeof Bn[0]!="string"||!Bn[0]){for(var Jn=[],ti=0;ti<Bn.length;ti++){var vi=Pn(Bn[ti],Nn,zn);vi&&Jn.push(vi)}return Jn}var pi=document.createElement(Bn[0]),si=Bn[1],ei=1;si&&typeof si=="object"&&!Array.isArray(si)&&(ei=2);for(var ti=ei;ti<Bn.length;ti++)Pn(Bn[ti],pi,zn);return ei==2&&Object.keys(si).forEach(function(mi){var fi=si[mi];mi==="class"?pi.className=Array.isArray(fi)?fi.join(" "):fi:typeof fi=="function"||mi=="value"||mi[0]=="$"?pi[mi]=fi:mi==="ref"?zn&&(zn[fi]=pi):mi==="style"?typeof fi=="string"&&(pi.style.cssText=fi):fi!=null&&pi.setAttribute(mi,fi)}),Nn&&Nn.appendChild(pi),pi},Mn.getDocumentHead=function(Pn){return Pn||(Pn=document),Pn.head||Pn.getElementsByTagName("head")[0]||Pn.documentElement},Mn.createElement=function(Pn,Bn){return document.createElementNS?document.createElementNS(Bn||Kn,Pn):document.createElement(Pn)},Mn.removeChildren=function(Pn){Pn.innerHTML=""},Mn.createTextNode=function(Pn,Bn){var Nn=Bn?Bn.ownerDocument:document;return Nn.createTextNode(Pn)},Mn.createFragment=function(Pn){var Bn=Pn?Pn.ownerDocument:document;return Bn.createDocumentFragment()},Mn.hasCssClass=function(Pn,Bn){var Nn=(Pn.className+"").split(/\s+/g);return Nn.indexOf(Bn)!==-1},Mn.addCssClass=function(Pn,Bn){Mn.hasCssClass(Pn,Bn)||(Pn.className+=" "+Bn)},Mn.removeCssClass=function(Pn,Bn){for(var Nn=Pn.className.split(/\s+/g);;){var zn=Nn.indexOf(Bn);if(zn==-1)break;Nn.splice(zn,1)}Pn.className=Nn.join(" ")},Mn.toggleCssClass=function(Pn,Bn){for(var Nn=Pn.className.split(/\s+/g),zn=!0;;){var Qn=Nn.indexOf(Bn);if(Qn==-1)break;zn=!1,Nn.splice(Qn,1)}return zn&&Nn.push(Bn),Pn.className=Nn.join(" "),zn},Mn.setCssClass=function(Pn,Bn,Nn){Nn?Mn.addCssClass(Pn,Bn):Mn.removeCssClass(Pn,Bn)},Mn.hasCssString=function(Pn,Bn){var Nn=0,zn;if(Bn=Bn||document,zn=Bn.querySelectorAll("style")){for(;Nn<zn.length;)if(zn[Nn++].id===Pn)return!0}},Mn.removeElementById=function(Pn,Bn){Bn=Bn||document,Bn.getElementById(Pn)&&Bn.getElementById(Pn).remove()};var Xn,Hn=[];Mn.useStrictCSP=function(Pn){Xn=Pn,Pn==!1?qn():Hn||(Hn=[])};function qn(){var Pn=Hn;Hn=null,Pn&&Pn.forEach(function(Bn){In(Bn[0],Bn[1])})}function In(Pn,Bn,Nn){if(!(typeof document>"u")){if(Hn){if(Nn)qn();else if(Nn===!1)return Hn.push([Pn,Bn])}if(!Xn){var zn=Nn;!Nn||!Nn.getRootNode?zn=document:(zn=Nn.getRootNode(),(!zn||zn==Nn)&&(zn=document));var Qn=zn.ownerDocument||zn;if(Bn&&Mn.hasCssString(Bn,zn))return null;Bn&&(Pn+=`
2
+ /*# sourceURL=ace/css/`+Bn+" */");var Jn=Mn.createElement("style");Jn.appendChild(Qn.createTextNode(Pn)),Bn&&(Jn.id=Bn),zn==Qn&&(zn=Mn.getDocumentHead(Qn)),zn.insertBefore(Jn,zn.firstChild)}}}if(Mn.importCssString=In,Mn.importCssStylsheet=function(Pn,Bn){Mn.buildDom(["link",{rel:"stylesheet",href:Pn}],Mn.getDocumentHead(Bn))},Mn.scrollbarWidth=function(Pn){var Bn=Mn.createElement("ace_inner");Bn.style.width="100%",Bn.style.minWidth="0px",Bn.style.height="200px",Bn.style.display="block";var Nn=Mn.createElement("ace_outer"),zn=Nn.style;zn.position="absolute",zn.left="-10000px",zn.overflow="hidden",zn.width="200px",zn.minWidth="0px",zn.height="150px",zn.display="block",Nn.appendChild(Bn);var Qn=Pn&&Pn.documentElement||document&&document.documentElement;if(!Qn)return 0;Qn.appendChild(Nn);var Jn=Bn.offsetWidth;zn.overflow="scroll";var ti=Bn.offsetWidth;return Jn===ti&&(ti=Nn.clientWidth),Qn.removeChild(Nn),Jn-ti},Mn.computedStyle=function(Pn,Bn){return window.getComputedStyle(Pn,"")||{}},Mn.setStyle=function(Pn,Bn,Nn){Pn[Bn]!==Nn&&(Pn[Bn]=Nn)},Mn.HAS_CSS_ANIMATION=!1,Mn.HAS_CSS_TRANSFORMS=!1,Mn.HI_DPI=Wn.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,Wn.isChromeOS&&(Mn.HI_DPI=!1),typeof document<"u"){var Dn=document.createElement("div");Mn.HI_DPI&&Dn.style.transform!==void 0&&(Mn.HAS_CSS_TRANSFORMS=!0),!Wn.isEdge&&typeof Dn.style.animationName<"u"&&(Mn.HAS_CSS_ANIMATION=!0),Dn=null}Mn.HAS_CSS_TRANSFORMS?Mn.translate=function(Pn,Bn,Nn){Pn.style.transform="translate("+Math.round(Bn)+"px, "+Math.round(Nn)+"px)"}:Mn.translate=function(Pn,Bn,Nn){Pn.style.top=Math.round(Nn)+"px",Pn.style.left=Math.round(Bn)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(kn,Mn,Yn){/*
3
+ * based on code from:
4
+ *
5
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
6
+ * Available via the MIT or new BSD license.
7
+ * see: http://github.com/jrburke/requirejs for details
8
+ */var Wn=kn("./dom");Mn.get=function(Kn,Xn){var Hn=new XMLHttpRequest;Hn.open("GET",Kn,!0),Hn.onreadystatechange=function(){Hn.readyState===4&&Xn(Hn.responseText)},Hn.send(null)},Mn.loadScript=function(Kn,Xn){var Hn=Wn.getDocumentHead(),qn=document.createElement("script");qn.src=Kn,Hn.appendChild(qn),qn.onload=qn.onreadystatechange=function(In,Dn){(Dn||!qn.readyState||qn.readyState=="loaded"||qn.readyState=="complete")&&(qn=qn.onload=qn.onreadystatechange=null,Dn||Xn())}},Mn.qualifyURL=function(Kn){var Xn=document.createElement("a");return Xn.href=Kn,Xn.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(kn,Mn,Yn){Mn.inherits=function(Wn,Kn){Wn.super_=Kn,Wn.prototype=Object.create(Kn.prototype,{constructor:{value:Wn,enumerable:!1,writable:!0,configurable:!0}})},Mn.mixin=function(Wn,Kn){for(var Xn in Kn)Wn[Xn]=Kn[Xn];return Wn},Mn.implement=function(Wn,Kn){Mn.mixin(Wn,Kn)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(kn,Mn,Yn){var Wn={},Kn=function(){this.propagationStopped=!0},Xn=function(){this.defaultPrevented=!0};Wn._emit=Wn._dispatchEvent=function(Hn,qn){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var In=this._eventRegistry[Hn]||[],Dn=this._defaultHandlers[Hn];if(!(!In.length&&!Dn)){(typeof qn!="object"||!qn)&&(qn={}),qn.type||(qn.type=Hn),qn.stopPropagation||(qn.stopPropagation=Kn),qn.preventDefault||(qn.preventDefault=Xn),In=In.slice();for(var Pn=0;Pn<In.length&&(In[Pn](qn,this),!qn.propagationStopped);Pn++);if(Dn&&!qn.defaultPrevented)return Dn(qn,this)}},Wn._signal=function(Hn,qn){var In=(this._eventRegistry||{})[Hn];if(In){In=In.slice();for(var Dn=0;Dn<In.length;Dn++)In[Dn](qn,this)}},Wn.once=function(Hn,qn){var In=this;if(this.on(Hn,function Dn(){In.off(Hn,Dn),qn.apply(null,arguments)}),!qn)return new Promise(function(Dn){qn=Dn})},Wn.setDefaultHandler=function(Hn,qn){var In=this._defaultHandlers;if(In||(In=this._defaultHandlers={_disabled_:{}}),In[Hn]){var Dn=In[Hn],Pn=In._disabled_[Hn];Pn||(In._disabled_[Hn]=Pn=[]),Pn.push(Dn);var Bn=Pn.indexOf(qn);Bn!=-1&&Pn.splice(Bn,1)}In[Hn]=qn},Wn.removeDefaultHandler=function(Hn,qn){var In=this._defaultHandlers;if(In){var Dn=In._disabled_[Hn];if(In[Hn]==qn)Dn&&this.setDefaultHandler(Hn,Dn.pop());else if(Dn){var Pn=Dn.indexOf(qn);Pn!=-1&&Dn.splice(Pn,1)}}},Wn.on=Wn.addEventListener=function(Hn,qn,In){this._eventRegistry=this._eventRegistry||{};var Dn=this._eventRegistry[Hn];return Dn||(Dn=this._eventRegistry[Hn]=[]),Dn.indexOf(qn)==-1&&Dn[In?"unshift":"push"](qn),qn},Wn.off=Wn.removeListener=Wn.removeEventListener=function(Hn,qn){this._eventRegistry=this._eventRegistry||{};var In=this._eventRegistry[Hn];if(In){var Dn=In.indexOf(qn);Dn!==-1&&In.splice(Dn,1)}},Wn.removeAllListeners=function(Hn){Hn||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[Hn]=void 0),this._defaultHandlers&&(this._defaultHandlers[Hn]=void 0)},Mn.EventEmitter=Wn}),ace.define("ace/lib/report_error",["require","exports","module"],function(kn,Mn,Yn){Mn.reportError=function(Wn,Kn){var Xn=new Error(Wn);Xn.data=Kn,typeof console=="object"&&console.error&&console.error(Xn),setTimeout(function(){throw Xn})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(kn,Mn,Yn){var Wn={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"};Mn.defaultEnglishMessages=Wn}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(kn,Mn,Yn){"no use strict";var Wn=kn("./oop"),Kn=kn("./event_emitter").EventEmitter,Xn=kn("./report_error").reportError,Hn=kn("./default_english_messages").defaultEnglishMessages,qn={setOptions:function(Nn){Object.keys(Nn).forEach(function(zn){this.setOption(zn,Nn[zn])},this)},getOptions:function(Nn){var zn={};if(Nn)Array.isArray(Nn)||(zn=Nn,Nn=Object.keys(zn));else{var Qn=this.$options;Nn=Object.keys(Qn).filter(function(Jn){return!Qn[Jn].hidden})}return Nn.forEach(function(Jn){zn[Jn]=this.getOption(Jn)},this),zn},setOption:function(Nn,zn){if(this["$"+Nn]!==zn){var Qn=this.$options[Nn];if(!Qn)return In('misspelled option "'+Nn+'"');if(Qn.forwardTo)return this[Qn.forwardTo]&&this[Qn.forwardTo].setOption(Nn,zn);Qn.handlesSet||(this["$"+Nn]=zn),Qn&&Qn.set&&Qn.set.call(this,zn)}},getOption:function(Nn){var zn=this.$options[Nn];return zn?zn.forwardTo?this[zn.forwardTo]&&this[zn.forwardTo].getOption(Nn):zn&&zn.get?zn.get.call(this):this["$"+Nn]:In('misspelled option "'+Nn+'"')}};function In(Nn){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var Dn,Pn,Bn=function(){function Nn(){this.$defaultOptions={},Dn=Hn,Pn="dollarSigns"}return Nn.prototype.defineOptions=function(zn,Qn,Jn){return zn.$options||(this.$defaultOptions[Qn]=zn.$options={}),Object.keys(Jn).forEach(function(ti){var vi=Jn[ti];typeof vi=="string"&&(vi={forwardTo:vi}),vi.name||(vi.name=ti),zn.$options[vi.name]=vi,"initialValue"in vi&&(zn["$"+vi.name]=vi.initialValue)}),Wn.implement(zn,qn),this},Nn.prototype.resetOptions=function(zn){Object.keys(zn.$options).forEach(function(Qn){var Jn=zn.$options[Qn];"value"in Jn&&zn.setOption(Qn,Jn.value)})},Nn.prototype.setDefaultValue=function(zn,Qn,Jn){if(!zn){for(zn in this.$defaultOptions)if(this.$defaultOptions[zn][Qn])break;if(!this.$defaultOptions[zn][Qn])return!1}var ti=this.$defaultOptions[zn]||(this.$defaultOptions[zn]={});ti[Qn]&&(ti.forwardTo?this.setDefaultValue(ti.forwardTo,Qn,Jn):ti[Qn].value=Jn)},Nn.prototype.setDefaultValues=function(zn,Qn){Object.keys(Qn).forEach(function(Jn){this.setDefaultValue(zn,Jn,Qn[Jn])},this)},Nn.prototype.setMessages=function(zn,Qn){Dn=zn,Qn&&Qn.placeholders&&(Pn=Qn.placeholders)},Nn.prototype.nls=function(zn,Qn,Jn){Dn[zn]||(In("No message found for the key '"+zn+"' in messages with id "+Dn.$id+", trying to find a translation for the default string '"+Qn+"'."),Dn[Qn]||In("No message found for the default string '"+Qn+"' in the provided messages. Falling back to the default English message."));var ti=Dn[zn]||Dn[Qn]||Qn;return Jn&&(Pn==="dollarSigns"&&(ti=ti.replace(/\$(\$|[\d]+)/g,function(vi,pi){return pi=="$"?"$":Jn[pi]})),Pn==="curlyBrackets"&&(ti=ti.replace(/\{([^\}]+)\}/g,function(vi,pi){return Jn[pi]}))),ti},Nn}();Bn.prototype.warn=In,Bn.prototype.reportError=Xn,Wn.implement(Bn.prototype,Kn),Mn.AppConfig=Bn}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(kn,Mn,Yn){Yn.exports=`.ace-tm .ace_gutter {
9
+ background: #f0f0f0;
10
+ color: #333;
11
+ }
12
+
13
+ .ace-tm .ace_print-margin {
14
+ width: 1px;
15
+ background: #e8e8e8;
16
+ }
17
+
18
+ .ace-tm .ace_fold {
19
+ background-color: #6B72E6;
20
+ }
21
+
22
+ .ace-tm {
23
+ background-color: #FFFFFF;
24
+ color: black;
25
+ }
26
+
27
+ .ace-tm .ace_cursor {
28
+ color: black;
29
+ }
30
+
31
+ .ace-tm .ace_invisible {
32
+ color: rgb(191, 191, 191);
33
+ }
34
+
35
+ .ace-tm .ace_storage,
36
+ .ace-tm .ace_keyword {
37
+ color: blue;
38
+ }
39
+
40
+ .ace-tm .ace_constant {
41
+ color: rgb(197, 6, 11);
42
+ }
43
+
44
+ .ace-tm .ace_constant.ace_buildin {
45
+ color: rgb(88, 72, 246);
46
+ }
47
+
48
+ .ace-tm .ace_constant.ace_language {
49
+ color: rgb(88, 92, 246);
50
+ }
51
+
52
+ .ace-tm .ace_constant.ace_library {
53
+ color: rgb(6, 150, 14);
54
+ }
55
+
56
+ .ace-tm .ace_invalid {
57
+ background-color: rgba(255, 0, 0, 0.1);
58
+ color: red;
59
+ }
60
+
61
+ .ace-tm .ace_support.ace_function {
62
+ color: rgb(60, 76, 114);
63
+ }
64
+
65
+ .ace-tm .ace_support.ace_constant {
66
+ color: rgb(6, 150, 14);
67
+ }
68
+
69
+ .ace-tm .ace_support.ace_type,
70
+ .ace-tm .ace_support.ace_class {
71
+ color: rgb(109, 121, 222);
72
+ }
73
+
74
+ .ace-tm .ace_keyword.ace_operator {
75
+ color: rgb(104, 118, 135);
76
+ }
77
+
78
+ .ace-tm .ace_string {
79
+ color: rgb(3, 106, 7);
80
+ }
81
+
82
+ .ace-tm .ace_comment {
83
+ color: rgb(76, 136, 107);
84
+ }
85
+
86
+ .ace-tm .ace_comment.ace_doc {
87
+ color: rgb(0, 102, 255);
88
+ }
89
+
90
+ .ace-tm .ace_comment.ace_doc.ace_tag {
91
+ color: rgb(128, 159, 191);
92
+ }
93
+
94
+ .ace-tm .ace_constant.ace_numeric {
95
+ color: rgb(0, 0, 205);
96
+ }
97
+
98
+ .ace-tm .ace_variable {
99
+ color: rgb(49, 132, 149);
100
+ }
101
+
102
+ .ace-tm .ace_xml-pe {
103
+ color: rgb(104, 104, 91);
104
+ }
105
+
106
+ .ace-tm .ace_entity.ace_name.ace_function {
107
+ color: #0000A2;
108
+ }
109
+
110
+
111
+ .ace-tm .ace_heading {
112
+ color: rgb(12, 7, 255);
113
+ }
114
+
115
+ .ace-tm .ace_list {
116
+ color:rgb(185, 6, 144);
117
+ }
118
+
119
+ .ace-tm .ace_meta.ace_tag {
120
+ color:rgb(0, 22, 142);
121
+ }
122
+
123
+ .ace-tm .ace_string.ace_regex {
124
+ color: rgb(255, 0, 0)
125
+ }
126
+
127
+ .ace-tm .ace_marker-layer .ace_selection {
128
+ background: rgb(181, 213, 255);
129
+ }
130
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
131
+ box-shadow: 0 0 3px 0px white;
132
+ }
133
+ .ace-tm .ace_marker-layer .ace_step {
134
+ background: rgb(252, 255, 0);
135
+ }
136
+
137
+ .ace-tm .ace_marker-layer .ace_stack {
138
+ background: rgb(164, 229, 101);
139
+ }
140
+
141
+ .ace-tm .ace_marker-layer .ace_bracket {
142
+ margin: -1px 0 0 -1px;
143
+ border: 1px solid rgb(192, 192, 192);
144
+ }
145
+
146
+ .ace-tm .ace_marker-layer .ace_active-line {
147
+ background: rgba(0, 0, 0, 0.07);
148
+ }
149
+
150
+ .ace-tm .ace_gutter-active-line {
151
+ background-color : #dcdcdc;
152
+ }
153
+
154
+ .ace-tm .ace_marker-layer .ace_selected-word {
155
+ background: rgb(250, 250, 255);
156
+ border: 1px solid rgb(200, 200, 250);
157
+ }
158
+
159
+ .ace-tm .ace_indent-guide {
160
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
161
+ }
162
+
163
+ .ace-tm .ace_indent-guide-active {
164
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
165
+ }
166
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(kn,Mn,Yn){Mn.isDark=!1,Mn.cssClass="ace-tm",Mn.cssText=kn("./textmate-css"),Mn.$id="ace/theme/textmate";var Wn=kn("../lib/dom");Wn.importCssString(Mn.cssText,Mn.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(kn,Mn,Yn){"no use strict";var Wn=kn("./lib/lang"),Kn=kn("./lib/net"),Xn=kn("./lib/dom"),Hn=kn("./lib/app_config").AppConfig;Yn.exports=Mn=new Hn;var qn={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};Mn.get=function(Bn){if(!qn.hasOwnProperty(Bn))throw new Error("Unknown config key: "+Bn);return qn[Bn]},Mn.set=function(Bn,Nn){if(qn.hasOwnProperty(Bn))qn[Bn]=Nn;else if(this.setDefaultValue("",Bn,Nn)==!1)throw new Error("Unknown config key: "+Bn);Bn=="useStrictCSP"&&Xn.useStrictCSP(Nn)},Mn.all=function(){return Wn.copyObject(qn)},Mn.$modes={},Mn.moduleUrl=function(Bn,Nn){if(qn.$moduleUrls[Bn])return qn.$moduleUrls[Bn];var zn=Bn.split("/");Nn=Nn||zn[zn.length-2]||"";var Qn=Nn=="snippets"?"/":"-",Jn=zn[zn.length-1];if(Nn=="worker"&&Qn=="-"){var ti=new RegExp("^"+Nn+"[\\-_]|[\\-_]"+Nn+"$","g");Jn=Jn.replace(ti,"")}(!Jn||Jn==Nn)&&zn.length>1&&(Jn=zn[zn.length-2]);var vi=qn[Nn+"Path"];return vi==null?vi=qn.basePath:Qn=="/"&&(Nn=Qn=""),vi&&vi.slice(-1)!="/"&&(vi+="/"),vi+Nn+Qn+Jn+this.get("suffix")},Mn.setModuleUrl=function(Bn,Nn){return qn.$moduleUrls[Bn]=Nn};var In=function(Bn,Nn){if(Bn==="ace/theme/textmate"||Bn==="./theme/textmate")return Nn(null,kn("./theme/textmate"));if(Dn)return Dn(Bn,Nn);console.error("loader is not configured")},Dn;Mn.setLoader=function(Bn){Dn=Bn},Mn.dynamicModules=Object.create(null),Mn.$loading={},Mn.$loaded={},Mn.loadModule=function(Bn,Nn){var zn;if(Array.isArray(Bn))var Qn=Bn[0],Jn=Bn[1];else if(typeof Bn=="string")var Jn=Bn;var ti=function(vi){if(vi&&!Mn.$loading[Jn])return Nn&&Nn(vi);if(Mn.$loading[Jn]||(Mn.$loading[Jn]=[]),Mn.$loading[Jn].push(Nn),!(Mn.$loading[Jn].length>1)){var pi=function(){In(Jn,function(si,ei){ei&&(Mn.$loaded[Jn]=ei),Mn._emit("load.module",{name:Jn,module:ei});var mi=Mn.$loading[Jn];Mn.$loading[Jn]=null,mi.forEach(function(fi){fi&&fi(ei)})})};if(!Mn.get("packaged"))return pi();Kn.loadScript(Mn.moduleUrl(Jn,Qn),pi),Pn()}};if(Mn.dynamicModules[Jn])Mn.dynamicModules[Jn]().then(function(vi){vi.default?ti(vi.default):ti(vi)});else{try{zn=this.$require(Jn)}catch{}ti(zn||Mn.$loaded[Jn])}},Mn.$require=function(Bn){if(typeof Yn.require=="function"){var Nn="require";return Yn[Nn](Bn)}},Mn.setModuleLoader=function(Bn,Nn){Mn.dynamicModules[Bn]=Nn};var Pn=function(){!qn.basePath&&!qn.workerPath&&!qn.modePath&&!qn.themePath&&!Object.keys(qn.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),Pn=function(){})};Mn.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(kn,Mn,Yn){kn("./lib/fixoldbrowsers");var Wn=kn("./config");Wn.setLoader(function(qn,In){kn([qn],function(Dn){In(null,Dn)})});var Kn=function(){return this||typeof window<"u"&&window}();Yn.exports=function(qn){Wn.init=Xn,Wn.$require=kn,qn.require=kn},Xn(!0);function Xn(qn){if(!(!Kn||!Kn.document)){Wn.set("packaged",qn||kn.packaged||Yn.packaged||Kn.define&&(void 0).packaged);var In={},Dn="",Pn=document.currentScript||document._currentScript,Bn=Pn&&Pn.ownerDocument||document;Pn&&Pn.src&&(Dn=Pn.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var Nn=Bn.getElementsByTagName("script"),zn=0;zn<Nn.length;zn++){var Qn=Nn[zn],Jn=Qn.src||Qn.getAttribute("src");if(Jn){for(var ti=Qn.attributes,vi=0,pi=ti.length;vi<pi;vi++){var si=ti[vi];si.name.indexOf("data-ace-")===0&&(In[Hn(si.name.replace(/^data-ace-/,""))]=si.value)}var ei=Jn.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);ei&&(Dn=ei[1])}}Dn&&(In.base=In.base||Dn,In.packaged=!0),In.basePath=In.base,In.workerPath=In.workerPath||In.base,In.modePath=In.modePath||In.base,In.themePath=In.themePath||In.base,delete In.base;for(var mi in In)typeof In[mi]<"u"&&Wn.set(mi,In[mi])}}function Hn(qn){return qn.replace(/-(.)/g,function(In,Dn){return Dn.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(kn,Mn,Yn){var Wn=function(){function Kn(Xn,Hn,qn,In){this.start={row:Xn,column:Hn},this.end={row:qn,column:In}}return Kn.prototype.isEqual=function(Xn){return this.start.row===Xn.start.row&&this.end.row===Xn.end.row&&this.start.column===Xn.start.column&&this.end.column===Xn.end.column},Kn.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},Kn.prototype.contains=function(Xn,Hn){return this.compare(Xn,Hn)==0},Kn.prototype.compareRange=function(Xn){var Hn,qn=Xn.end,In=Xn.start;return Hn=this.compare(qn.row,qn.column),Hn==1?(Hn=this.compare(In.row,In.column),Hn==1?2:Hn==0?1:0):Hn==-1?-2:(Hn=this.compare(In.row,In.column),Hn==-1?-1:Hn==1?42:0)},Kn.prototype.comparePoint=function(Xn){return this.compare(Xn.row,Xn.column)},Kn.prototype.containsRange=function(Xn){return this.comparePoint(Xn.start)==0&&this.comparePoint(Xn.end)==0},Kn.prototype.intersects=function(Xn){var Hn=this.compareRange(Xn);return Hn==-1||Hn==0||Hn==1},Kn.prototype.isEnd=function(Xn,Hn){return this.end.row==Xn&&this.end.column==Hn},Kn.prototype.isStart=function(Xn,Hn){return this.start.row==Xn&&this.start.column==Hn},Kn.prototype.setStart=function(Xn,Hn){typeof Xn=="object"?(this.start.column=Xn.column,this.start.row=Xn.row):(this.start.row=Xn,this.start.column=Hn)},Kn.prototype.setEnd=function(Xn,Hn){typeof Xn=="object"?(this.end.column=Xn.column,this.end.row=Xn.row):(this.end.row=Xn,this.end.column=Hn)},Kn.prototype.inside=function(Xn,Hn){return this.compare(Xn,Hn)==0?!(this.isEnd(Xn,Hn)||this.isStart(Xn,Hn)):!1},Kn.prototype.insideStart=function(Xn,Hn){return this.compare(Xn,Hn)==0?!this.isEnd(Xn,Hn):!1},Kn.prototype.insideEnd=function(Xn,Hn){return this.compare(Xn,Hn)==0?!this.isStart(Xn,Hn):!1},Kn.prototype.compare=function(Xn,Hn){return!this.isMultiLine()&&Xn===this.start.row?Hn<this.start.column?-1:Hn>this.end.column?1:0:Xn<this.start.row?-1:Xn>this.end.row?1:this.start.row===Xn?Hn>=this.start.column?0:-1:this.end.row===Xn?Hn<=this.end.column?0:1:0},Kn.prototype.compareStart=function(Xn,Hn){return this.start.row==Xn&&this.start.column==Hn?-1:this.compare(Xn,Hn)},Kn.prototype.compareEnd=function(Xn,Hn){return this.end.row==Xn&&this.end.column==Hn?1:this.compare(Xn,Hn)},Kn.prototype.compareInside=function(Xn,Hn){return this.end.row==Xn&&this.end.column==Hn?1:this.start.row==Xn&&this.start.column==Hn?-1:this.compare(Xn,Hn)},Kn.prototype.clipRows=function(Xn,Hn){if(this.end.row>Hn)var qn={row:Hn+1,column:0};else if(this.end.row<Xn)var qn={row:Xn,column:0};if(this.start.row>Hn)var In={row:Hn+1,column:0};else if(this.start.row<Xn)var In={row:Xn,column:0};return Kn.fromPoints(In||this.start,qn||this.end)},Kn.prototype.extend=function(Xn,Hn){var qn=this.compare(Xn,Hn);if(qn==0)return this;if(qn==-1)var In={row:Xn,column:Hn};else var Dn={row:Xn,column:Hn};return Kn.fromPoints(In||this.start,Dn||this.end)},Kn.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},Kn.prototype.isMultiLine=function(){return this.start.row!==this.end.row},Kn.prototype.clone=function(){return Kn.fromPoints(this.start,this.end)},Kn.prototype.collapseRows=function(){return this.end.column==0?new Kn(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Kn(this.start.row,0,this.end.row,0)},Kn.prototype.toScreenRange=function(Xn){var Hn=Xn.documentToScreenPosition(this.start),qn=Xn.documentToScreenPosition(this.end);return new Kn(Hn.row,Hn.column,qn.row,qn.column)},Kn.prototype.moveBy=function(Xn,Hn){this.start.row+=Xn,this.start.column+=Hn,this.end.row+=Xn,this.end.column+=Hn},Kn}();Wn.fromPoints=function(Kn,Xn){return new Wn(Kn.row,Kn.column,Xn.row,Xn.column)},Wn.comparePoints=function(Kn,Xn){return Kn.row-Xn.row||Kn.column-Xn.column},Mn.Range=Wn}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(kn,Mn,Yn){for(var Wn=kn("./oop"),Kn={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},Xn={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},Hn=0;Hn<10;Hn++)Xn["Digit"+Hn]=48+Hn,Xn["Numpad"+Hn]=96+Hn,Kn.PRINTABLE_KEYS[48+Hn]=""+Hn,Kn.FUNCTION_KEYS[96+Hn]="Numpad"+Hn;for(var Hn=65;Hn<91;Hn++){var qn=String.fromCharCode(Hn+32);Xn["Key"+qn.toUpperCase()]=Hn,Kn.PRINTABLE_KEYS[Hn]=qn}for(var Hn=1;Hn<13;Hn++)Xn["F"+Hn]=111+Hn,Kn.FUNCTION_KEYS[111+Hn]="F"+Hn;var In={Shift:16,Control:17,Alt:18,Meta:224};for(var Dn in In)Xn[Dn]=Xn[Dn+"Left"]=Xn[Dn+"Right"]=In[Dn];Mn.$codeToKeyCode=Xn,Kn.PRINTABLE_KEYS[173]="-";for(var Pn in Kn.FUNCTION_KEYS){var Bn=Kn.FUNCTION_KEYS[Pn].toLowerCase();Kn[Bn]=parseInt(Pn,10)}for(var Pn in Kn.PRINTABLE_KEYS){var Bn=Kn.PRINTABLE_KEYS[Pn].toLowerCase();Kn[Bn]=parseInt(Pn,10)}Wn.mixin(Kn,Kn.MODIFIER_KEYS),Wn.mixin(Kn,Kn.PRINTABLE_KEYS),Wn.mixin(Kn,Kn.FUNCTION_KEYS),Kn.enter=Kn.return,Kn.escape=Kn.esc,Kn.del=Kn.delete,function(){for(var Nn=["cmd","ctrl","alt","shift"],zn=Math.pow(2,Nn.length);zn--;)Kn.KEY_MODS[zn]=Nn.filter(function(Qn){return zn&Kn.KEY_MODS[Qn]}).join("-")+"-"}(),Kn.KEY_MODS[0]="",Kn.KEY_MODS[-1]="input-",Wn.mixin(Mn,Kn),Mn.default=Mn,Mn.keyCodeToString=function(Nn){var zn=Kn[Nn];return typeof zn!="string"&&(zn=String.fromCharCode(Nn)),zn.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(kn,Mn,Yn){var Wn=kn("./keys"),Kn=kn("./useragent"),Xn=null,Hn=0,qn;function In(){qn=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return qn={passive:!1},!0}})}catch{}}function Dn(){return qn==null&&In(),qn}function Pn(vi,pi,si){this.elem=vi,this.type=pi,this.callback=si}Pn.prototype.destroy=function(){Nn(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var Bn=Mn.addListener=function(vi,pi,si,ei){vi.addEventListener(pi,si,Dn()),ei&&ei.$toDestroy.push(new Pn(vi,pi,si))},Nn=Mn.removeListener=function(vi,pi,si){vi.removeEventListener(pi,si,Dn())};Mn.stopEvent=function(vi){return Mn.stopPropagation(vi),Mn.preventDefault(vi),!1},Mn.stopPropagation=function(vi){vi.stopPropagation&&vi.stopPropagation()},Mn.preventDefault=function(vi){vi.preventDefault&&vi.preventDefault()},Mn.getButton=function(vi){return vi.type=="dblclick"?0:vi.type=="contextmenu"||Kn.isMac&&vi.ctrlKey&&!vi.altKey&&!vi.shiftKey?2:vi.button},Mn.capture=function(vi,pi,si){var ei=vi&&vi.ownerDocument||document;function mi(fi){pi&&pi(fi),si&&si(fi),Nn(ei,"mousemove",pi),Nn(ei,"mouseup",mi),Nn(ei,"dragstart",mi)}return Bn(ei,"mousemove",pi),Bn(ei,"mouseup",mi),Bn(ei,"dragstart",mi),mi},Mn.addMouseWheelListener=function(vi,pi,si){Bn(vi,"wheel",function(ei){var mi=.15,fi=ei.deltaX||0,yi=ei.deltaY||0;switch(ei.deltaMode){case ei.DOM_DELTA_PIXEL:ei.wheelX=fi*mi,ei.wheelY=yi*mi;break;case ei.DOM_DELTA_LINE:var gi=15;ei.wheelX=fi*gi,ei.wheelY=yi*gi;break;case ei.DOM_DELTA_PAGE:var xi=150;ei.wheelX=fi*xi,ei.wheelY=yi*xi;break}pi(ei)},si)},Mn.addMultiMouseDownListener=function(vi,pi,si,ei,mi){var fi=0,yi,gi,xi,ai={2:"dblclick",3:"tripleclick",4:"quadclick"};function oi(li){if(Mn.getButton(li)!==0?fi=0:li.detail>1?(fi++,fi>4&&(fi=1)):fi=1,Kn.isIE){var wi=Math.abs(li.clientX-yi)>5||Math.abs(li.clientY-gi)>5;(!xi||wi)&&(fi=1),xi&&clearTimeout(xi),xi=setTimeout(function(){xi=null},pi[fi-1]||600),fi==1&&(yi=li.clientX,gi=li.clientY)}if(li._clicks=fi,si[ei]("mousedown",li),fi>4)fi=0;else if(fi>1)return si[ei](ai[fi],li)}Array.isArray(vi)||(vi=[vi]),vi.forEach(function(li){Bn(li,"mousedown",oi,mi)})};function zn(vi){return 0|(vi.ctrlKey?1:0)|(vi.altKey?2:0)|(vi.shiftKey?4:0)|(vi.metaKey?8:0)}Mn.getModifierString=function(vi){return Wn.KEY_MODS[zn(vi)]};function Qn(vi,pi,si){var ei=zn(pi);if(!si&&pi.code&&(si=Wn.$codeToKeyCode[pi.code]||si),!Kn.isMac&&Xn){if(pi.getModifierState&&(pi.getModifierState("OS")||pi.getModifierState("Win"))&&(ei|=8),Xn.altGr)if((3&ei)!=3)Xn.altGr=0;else return;if(si===18||si===17){var mi=pi.location;if(si===17&&mi===1)Xn[si]==1&&(Hn=pi.timeStamp);else if(si===18&&ei===3&&mi===2){var fi=pi.timeStamp-Hn;fi<50&&(Xn.altGr=!0)}}}if(si in Wn.MODIFIER_KEYS&&(si=-1),!(!ei&&si===13&&pi.location===3&&(vi(pi,ei,-si),pi.defaultPrevented))){if(Kn.isChromeOS&&ei&8){if(vi(pi,ei,si),pi.defaultPrevented)return;ei&=-9}return!ei&&!(si in Wn.FUNCTION_KEYS)&&!(si in Wn.PRINTABLE_KEYS)?!1:vi(pi,ei,si)}}Mn.addCommandKeyListener=function(vi,pi,si){var ei=null;Bn(vi,"keydown",function(mi){Xn[mi.keyCode]=(Xn[mi.keyCode]||0)+1;var fi=Qn(pi,mi,mi.keyCode);return ei=mi.defaultPrevented,fi},si),Bn(vi,"keypress",function(mi){ei&&(mi.ctrlKey||mi.altKey||mi.shiftKey||mi.metaKey)&&(Mn.stopEvent(mi),ei=null)},si),Bn(vi,"keyup",function(mi){Xn[mi.keyCode]=null},si),Xn||(Jn(),Bn(window,"focus",Jn))};function Jn(){Xn=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!Kn.isOldIE){var ti=1;Mn.nextTick=function(vi,pi){pi=pi||window;var si="zero-timeout-message-"+ti++,ei=function(mi){mi.data==si&&(Mn.stopPropagation(mi),Nn(pi,"message",ei),vi())};Bn(pi,"message",ei),pi.postMessage(si,"*")}}Mn.$idleBlocked=!1,Mn.onIdle=function(vi,pi){return setTimeout(function si(){Mn.$idleBlocked?setTimeout(si,100):vi()},pi)},Mn.$idleBlockId=null,Mn.blockIdle=function(vi){Mn.$idleBlockId&&clearTimeout(Mn.$idleBlockId),Mn.$idleBlocked=!0,Mn.$idleBlockId=setTimeout(function(){Mn.$idleBlocked=!1},vi||100)},Mn.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),Mn.nextFrame?Mn.nextFrame=Mn.nextFrame.bind(window):Mn.nextFrame=function(vi){setTimeout(vi,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(kn,Mn,Yn){var Wn;Yn.exports={lineMode:!1,pasteCancelled:function(){return Wn&&Wn>Date.now()-50?!0:Wn=!1},cancel:function(){Wn=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(kn,Mn,Yn){var Wn=kn("../lib/event"),Kn=kn("../config").nls,Xn=kn("../lib/useragent"),Hn=kn("../lib/dom"),qn=kn("../lib/lang"),In=kn("../clipboard"),Dn=Xn.isChrome<18,Pn=Xn.isIE,Bn=Xn.isChrome>63,Nn=400,zn=kn("../lib/keys"),Qn=zn.KEY_MODS,Jn=Xn.isIOS,ti=Jn?/\s/:/\n/,vi=Xn.isMobile,pi;pi=function(si,ei){var mi=Hn.createElement("textarea");mi.className="ace_text-input",mi.setAttribute("wrap","off"),mi.setAttribute("autocorrect","off"),mi.setAttribute("autocapitalize","off"),mi.setAttribute("spellcheck","false"),mi.style.opacity="0",si.insertBefore(mi,si.firstChild);var fi=!1,yi=!1,gi=!1,xi=!1,ai="";vi||(mi.style.fontSize="1px");var oi=!1,li=!1,wi="",bi=0,_i=0,Ti=0,Li=Number.MAX_SAFE_INTEGER,Ri=Number.MIN_SAFE_INTEGER,Ii=0;try{var zi=document.activeElement===mi}catch{}this.setNumberOfExtraLines=function(Ji){if(Li=Number.MAX_SAFE_INTEGER,Ri=Number.MIN_SAFE_INTEGER,Ji<0){Ii=0;return}Ii=Ji},this.setAriaLabel=function(){var Ji="";if(ei.$textInputAriaLabel&&(Ji+="".concat(ei.$textInputAriaLabel,", ")),ei.session){var _r=ei.session.selection.cursor.row;Ji+=Kn("text-input.aria-label","Cursor at row $0",[_r+1])}mi.setAttribute("aria-label",Ji)},this.setAriaOptions=function(Ji){Ji.activeDescendant?(mi.setAttribute("aria-haspopup","true"),mi.setAttribute("aria-autocomplete",Ji.inline?"both":"list"),mi.setAttribute("aria-activedescendant",Ji.activeDescendant)):(mi.setAttribute("aria-haspopup","false"),mi.setAttribute("aria-autocomplete","both"),mi.removeAttribute("aria-activedescendant")),Ji.role&&mi.setAttribute("role",Ji.role),Ji.setLabel&&(mi.setAttribute("aria-roledescription",Kn("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),Wn.addListener(mi,"blur",function(Ji){li||(ei.onBlur(Ji),zi=!1)},ei),Wn.addListener(mi,"focus",function(Ji){if(!li){if(zi=!0,Xn.isEdge)try{if(!document.hasFocus())return}catch{}ei.onFocus(Ji),Xn.isEdge?setTimeout(Bi):Bi()}},ei),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:ei.renderer.enableKeyboardAccessibility}),ai||Bn||this.$focusScroll=="browser")return mi.focus({preventScroll:!0});var Ji=mi.style.top;mi.style.position="fixed",mi.style.top="0px";try{var _r=mi.getBoundingClientRect().top!=0}catch{return}var Sr=[];if(_r)for(var Yr=mi.parentElement;Yr&&Yr.nodeType==1;)Sr.push(Yr),Yr.setAttribute("ace_nocontext","true"),!Yr.parentElement&&Yr.getRootNode?Yr=Yr.getRootNode().host:Yr=Yr.parentElement;mi.focus({preventScroll:!0}),_r&&Sr.forEach(function(Kr){Kr.removeAttribute("ace_nocontext")}),setTimeout(function(){mi.style.position="",mi.style.top=="0px"&&(mi.style.top=Ji)},0)},this.blur=function(){mi.blur()},this.isFocused=function(){return zi},ei.on("beforeEndOperation",function(){var Ji=ei.curOp,_r=Ji&&Ji.command&&Ji.command.name;if(_r!="insertstring"){var Sr=_r&&(Ji.docChanged||Ji.selectionChanged);gi&&Sr&&(wi=mi.value="",Go()),Bi()}}),ei.on("changeSelection",this.setAriaLabel);var Oi=function(Ji,_r){for(var Sr=_r,Yr=1;Yr<=Ji-Li&&Yr<2*Ii+1;Yr++)Sr+=ei.session.getLine(Ji-Yr).length+1;return Sr},Bi=Jn?function(Ji){if(!(!zi||fi&&!Ji||xi)){Ji||(Ji="");var _r=`
167
+ ab`+Ji+`cde fg
168
+ `;_r!=mi.value&&(mi.value=wi=_r);var Sr=4,Yr=4+(Ji.length||(ei.selection.isEmpty()?0:1));(bi!=Sr||_i!=Yr)&&mi.setSelectionRange(Sr,Yr),bi=Sr,_i=Yr}}:function(){if(!(gi||xi)&&!(!zi&&!pr)){gi=!0;var Ji=0,_r=0,Sr="";if(ei.session){var Yr=ei.selection,Kr=Yr.getRange(),ko=Yr.cursor.row;ko===Ri+1?(Li=Ri+1,Ri=Li+2*Ii):ko===Li-1?(Ri=Li-1,Li=Ri-2*Ii):(ko<Li-1||ko>Ri+1)&&(Li=ko>Ii?ko-Ii:0,Ri=ko>Ii?ko+Ii:2*Ii);for(var So=[],so=Li;so<=Ri;so++)So.push(ei.session.getLine(so));if(Sr=So.join(`
169
+ `),Ji=Oi(Kr.start.row,Kr.start.column),_r=Oi(Kr.end.row,Kr.end.column),Kr.start.row<Li){var ao=ei.session.getLine(Li-1);Ji=Kr.start.row<Li-1?0:Ji,_r+=ao.length+1,Sr=ao+`
170
+ `+Sr}else if(Kr.end.row>Ri){var to=ei.session.getLine(Ri+1);_r=Kr.end.row>Ri+1?to.length:Kr.end.column,_r+=Sr.length+1,Sr=Sr+`
171
+ `+to}else vi&&ko>0&&(Sr=`
172
+ `+Sr,_r+=1,Ji+=1);Sr.length>Nn&&(Ji<Nn&&_r<Nn?Sr=Sr.slice(0,Nn):(Sr=`
173
+ `,Ji==_r?Ji=_r=0:(Ji=0,_r=1)));var Ho=Sr+`
174
+
175
+ `;Ho!=wi&&(mi.value=wi=Ho,bi=_i=Ho.length)}if(pr&&(bi=mi.selectionStart,_i=mi.selectionEnd),_i!=_r||bi!=Ji||mi.selectionEnd!=_i)try{mi.setSelectionRange(Ji,_r),bi=Ji,_i=_r}catch{}gi=!1}};this.resetSelection=Bi,zi&&ei.onFocus();var Yi=function(Ji){return Ji.selectionStart===0&&Ji.selectionEnd>=wi.length&&Ji.value===wi&&wi&&Ji.selectionEnd!==_i},Fi=function(Ji){gi||(fi?fi=!1:Yi(mi)?(ei.selectAll(),Bi()):vi&&mi.selectionStart!=bi&&Bi())},Qi=null;this.setInputHandler=function(Ji){Qi=Ji},this.getInputHandler=function(){return Qi};var pr=!1,fr=function(Ji,_r){if(pr&&(pr=!1),yi)return Bi(),Ji&&ei.onPaste(Ji),yi=!1,"";for(var Sr=mi.selectionStart,Yr=mi.selectionEnd,Kr=bi,ko=wi.length-_i,So=Ji,so=Ji.length-Sr,ao=Ji.length-Yr,to=0;Kr>0&&wi[to]==Ji[to];)to++,Kr--;for(So=So.slice(to),to=1;ko>0&&wi.length-to>bi-1&&wi[wi.length-to]==Ji[Ji.length-to];)to++,ko--;so-=to-1,ao-=to-1;var Ho=So.length-to+1;if(Ho<0&&(Kr=-Ho,Ho=0),So=So.slice(0,Ho),!_r&&!So&&!so&&!Kr&&!ko&&!ao)return"";xi=!0;var Rs=!1;return Xn.isAndroid&&So==". "&&(So=" ",Rs=!0),So&&!Kr&&!ko&&!so&&!ao||oi?ei.onTextInput(So):ei.onTextInput(So,{extendLeft:Kr,extendRight:ko,restoreStart:so,restoreEnd:ao}),xi=!1,wi=Ji,bi=Sr,_i=Yr,Ti=ao,Rs?`
176
+ `:So},ar=function(Ji){if(gi)return Do();if(Ji&&Ji.inputType){if(Ji.inputType=="historyUndo")return ei.execCommand("undo");if(Ji.inputType=="historyRedo")return ei.execCommand("redo")}var _r=mi.value,Sr=fr(_r,!0);(_r.length>Nn+100||ti.test(Sr)||vi&&bi<1&&bi==_i)&&Bi()},yr=function(Ji,_r,Sr){var Yr=Ji.clipboardData||window.clipboardData;if(!(!Yr||Dn)){var Kr=Pn||Sr?"Text":"text/plain";try{return _r?Yr.setData(Kr,_r)!==!1:Yr.getData(Kr)}catch(ko){if(!Sr)return yr(ko,_r,!0)}}},ro=function(Ji,_r){var Sr=ei.getCopyText();if(!Sr)return Wn.preventDefault(Ji);yr(Ji,Sr)?(Jn&&(Bi(Sr),fi=Sr,setTimeout(function(){fi=!1},10)),_r?ei.onCut():ei.onCopy(),Wn.preventDefault(Ji)):(fi=!0,mi.value=Sr,mi.select(),setTimeout(function(){fi=!1,Bi(),_r?ei.onCut():ei.onCopy()}))},Fo=function(Ji){ro(Ji,!0)},$o=function(Ji){ro(Ji,!1)},Co=function(Ji){var _r=yr(Ji);In.pasteCancelled()||(typeof _r=="string"?(_r&&ei.onPaste(_r,Ji),Xn.isIE&&setTimeout(Bi),Wn.preventDefault(Ji)):(mi.value="",yi=!0))};Wn.addCommandKeyListener(mi,function(Ji,_r,Sr){if(!gi)return ei.onCommandKey(Ji,_r,Sr)},ei),Wn.addListener(mi,"select",Fi,ei),Wn.addListener(mi,"input",ar,ei),Wn.addListener(mi,"cut",Fo,ei),Wn.addListener(mi,"copy",$o,ei),Wn.addListener(mi,"paste",Co,ei),(!("oncut"in mi)||!("oncopy"in mi)||!("onpaste"in mi))&&Wn.addListener(si,"keydown",function(Ji){if(!(Xn.isMac&&!Ji.metaKey||!Ji.ctrlKey))switch(Ji.keyCode){case 67:$o(Ji);break;case 86:Co(Ji);break;case 88:Fo(Ji);break}},ei);var es=function(Ji){if(!(gi||!ei.onCompositionStart||ei.$readOnly)&&(gi={},!oi)){Ji.data&&(gi.useTextareaForIME=!1),setTimeout(Do,0),ei._signal("compositionStart"),ei.on("mousedown",wa);var _r=ei.getSelectionRange();_r.end.row=_r.start.row,_r.end.column=_r.start.column,gi.markerRange=_r,gi.selectionStart=bi,ei.onCompositionStart(gi),gi.useTextareaForIME?(wi=mi.value="",bi=0,_i=0):(mi.msGetInputContext&&(gi.context=mi.msGetInputContext()),mi.getInputContext&&(gi.context=mi.getInputContext()))}},Do=function(){if(!(!gi||!ei.onCompositionUpdate||ei.$readOnly)){if(oi)return wa();if(gi.useTextareaForIME)ei.onCompositionUpdate(mi.value);else{var Ji=mi.value;fr(Ji),gi.markerRange&&(gi.context&&(gi.markerRange.start.column=gi.selectionStart=gi.context.compositionStartOffset),gi.markerRange.end.column=gi.markerRange.start.column+_i-gi.selectionStart+Ti)}}},Go=function(Ji){!ei.onCompositionEnd||ei.$readOnly||(gi=!1,ei.onCompositionEnd(),ei.off("mousedown",wa),Ji&&ar())};function wa(){li=!0,mi.blur(),mi.focus(),li=!1}var as=qn.delayedCall(Do,50).schedule.bind(null,null);function Zo(Ji){Ji.keyCode==27&&mi.value.length<mi.selectionStart&&(gi||(wi=mi.value),bi=_i=-1,Bi()),as()}Wn.addListener(mi,"compositionstart",es,ei),Wn.addListener(mi,"compositionupdate",Do,ei),Wn.addListener(mi,"keyup",Zo,ei),Wn.addListener(mi,"keydown",as,ei),Wn.addListener(mi,"compositionend",Go,ei),this.getElement=function(){return mi},this.setCommandMode=function(Ji){oi=Ji,mi.readOnly=!1},this.setReadOnly=function(Ji){oi||(mi.readOnly=Ji)},this.setCopyWithEmptySelection=function(Ji){},this.onContextMenu=function(Ji){pr=!0,Bi(),ei._emit("nativecontextmenu",{target:ei,domEvent:Ji}),this.moveToMouse(Ji,!0)},this.moveToMouse=function(Ji,_r){ai||(ai=mi.style.cssText),mi.style.cssText=(_r?"z-index:100000;":"")+(Xn.isIE?"opacity:0.1;":"")+"text-indent: -"+(bi+_i)*ei.renderer.characterWidth*.5+"px;";var Sr=ei.container.getBoundingClientRect(),Yr=Hn.computedStyle(ei.container),Kr=Sr.top+(parseInt(Yr.borderTopWidth)||0),ko=Sr.left+(parseInt(Sr.borderLeftWidth)||0),So=Sr.bottom-Kr-mi.clientHeight-2,so=function(ao){Hn.translate(mi,ao.clientX-ko-2,Math.min(ao.clientY-Kr-2,So))};so(Ji),Ji.type=="mousedown"&&(ei.renderer.$isMousePressed=!0,clearTimeout(Ar),Xn.isWin&&Wn.capture(ei.container,so,zr))},this.onContextMenuClose=zr;var Ar;function zr(){clearTimeout(Ar),Ar=setTimeout(function(){ai&&(mi.style.cssText=ai,ai=""),ei.renderer.$isMousePressed=!1,ei.renderer.$keepTextAreaAtCursor&&ei.renderer.$moveTextAreaToCursor()},0)}var Qo=function(Ji){ei.textInput.onContextMenu(Ji),zr()};Wn.addListener(mi,"mouseup",Qo,ei),Wn.addListener(mi,"mousedown",function(Ji){Ji.preventDefault(),zr()},ei),Wn.addListener(ei.renderer.scroller,"contextmenu",Qo,ei),Wn.addListener(mi,"contextmenu",Qo,ei),Jn&&jr(si,ei,mi);function jr(Ji,_r,Sr){var Yr=null,Kr=!1;Sr.addEventListener("keydown",function(So){Yr&&clearTimeout(Yr),Kr=!0},!0),Sr.addEventListener("keyup",function(So){Yr=setTimeout(function(){Kr=!1},100)},!0);var ko=function(So){if(document.activeElement===Sr&&!(Kr||gi||_r.$mouseHandler.isMousePressed)&&!fi){var so=Sr.selectionStart,ao=Sr.selectionEnd,to=null,Ho=0;if(so==0?to=zn.up:so==1?to=zn.home:ao>_i&&wi[ao]==`
177
+ `?to=zn.end:so<bi&&wi[so-1]==" "?(to=zn.left,Ho=Qn.option):so<bi||so==bi&&_i!=bi&&so==ao?to=zn.left:ao>_i&&wi.slice(0,ao).split(`
178
+ `).length>2?to=zn.down:ao>_i&&wi[ao-1]==" "?(to=zn.right,Ho=Qn.option):(ao>_i||ao==_i&&_i!=bi&&so==ao)&&(to=zn.right),so!==ao&&(Ho|=Qn.shift),to){var Rs=_r.onCommandKey({},Ho,to);if(!Rs&&_r.commands){to=zn.keyCodeToString(to);var sl=_r.commands.findKeyCommand(Ho,to);sl&&_r.execCommand(sl)}bi=so,_i=ao,Bi("")}}};document.addEventListener("selectionchange",ko),_r.on("destroy",function(){document.removeEventListener("selectionchange",ko)})}this.destroy=function(){mi.parentElement&&mi.parentElement.removeChild(mi)}},Mn.TextInput=pi,Mn.$setUserAgentForTests=function(si,ei){vi=si,Jn=ei}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(kn,Mn,Yn){var Wn=kn("../lib/useragent"),Kn=0,Xn=550,Hn=function(){function Dn(Pn){Pn.$clickSelection=null;var Bn=Pn.editor;Bn.setDefaultHandler("mousedown",this.onMouseDown.bind(Pn)),Bn.setDefaultHandler("dblclick",this.onDoubleClick.bind(Pn)),Bn.setDefaultHandler("tripleclick",this.onTripleClick.bind(Pn)),Bn.setDefaultHandler("quadclick",this.onQuadClick.bind(Pn)),Bn.setDefaultHandler("mousewheel",this.onMouseWheel.bind(Pn));var Nn=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];Nn.forEach(function(zn){Pn[zn]=this[zn]},this),Pn.selectByLines=this.extendSelectionBy.bind(Pn,"getLineRange"),Pn.selectByWords=this.extendSelectionBy.bind(Pn,"getWordRange")}return Dn.prototype.onMouseDown=function(Pn){var Bn=Pn.inSelection(),Nn=Pn.getDocumentPosition();this.mousedownEvent=Pn;var zn=this.editor,Qn=Pn.getButton();if(Qn!==0){var Jn=zn.getSelectionRange(),ti=Jn.isEmpty();(ti||Qn==1)&&zn.selection.moveToPosition(Nn),Qn==2&&(zn.textInput.onContextMenu(Pn.domEvent),Wn.isMozilla||Pn.preventDefault());return}if(this.mousedownEvent.time=Date.now(),Bn&&!zn.isFocused()&&(zn.focus(),this.$focusTimeout&&!this.$clickSelection&&!zn.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(Pn);return}return this.captureMouse(Pn),this.startSelect(Nn,Pn.domEvent._clicks>1),Pn.preventDefault()},Dn.prototype.startSelect=function(Pn,Bn){Pn=Pn||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var Nn=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?Nn.selection.selectToPosition(Pn):Bn||Nn.selection.moveToPosition(Pn),Bn||this.select(),Nn.setStyle("ace_selecting"),this.setState("select"))},Dn.prototype.select=function(){var Pn,Bn=this.editor,Nn=Bn.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var zn=this.$clickSelection.comparePoint(Nn);if(zn==-1)Pn=this.$clickSelection.end;else if(zn==1)Pn=this.$clickSelection.start;else{var Qn=In(this.$clickSelection,Nn);Nn=Qn.cursor,Pn=Qn.anchor}Bn.selection.setSelectionAnchor(Pn.row,Pn.column)}Bn.selection.selectToPosition(Nn),Bn.renderer.scrollCursorIntoView()},Dn.prototype.extendSelectionBy=function(Pn){var Bn,Nn=this.editor,zn=Nn.renderer.screenToTextCoordinates(this.x,this.y),Qn=Nn.selection[Pn](zn.row,zn.column);if(this.$clickSelection){var Jn=this.$clickSelection.comparePoint(Qn.start),ti=this.$clickSelection.comparePoint(Qn.end);if(Jn==-1&&ti<=0)Bn=this.$clickSelection.end,(Qn.end.row!=zn.row||Qn.end.column!=zn.column)&&(zn=Qn.start);else if(ti==1&&Jn>=0)Bn=this.$clickSelection.start,(Qn.start.row!=zn.row||Qn.start.column!=zn.column)&&(zn=Qn.end);else if(Jn==-1&&ti==1)zn=Qn.end,Bn=Qn.start;else{var vi=In(this.$clickSelection,zn);zn=vi.cursor,Bn=vi.anchor}Nn.selection.setSelectionAnchor(Bn.row,Bn.column)}Nn.selection.selectToPosition(zn),Nn.renderer.scrollCursorIntoView()},Dn.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},Dn.prototype.focusWait=function(){var Pn=qn(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),Bn=Date.now();(Pn>Kn||Bn-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},Dn.prototype.onDoubleClick=function(Pn){var Bn=Pn.getDocumentPosition(),Nn=this.editor,zn=Nn.session,Qn=zn.getBracketRange(Bn);Qn?(Qn.isEmpty()&&(Qn.start.column--,Qn.end.column++),this.setState("select")):(Qn=Nn.selection.getWordRange(Bn.row,Bn.column),this.setState("selectByWords")),this.$clickSelection=Qn,this.select()},Dn.prototype.onTripleClick=function(Pn){var Bn=Pn.getDocumentPosition(),Nn=this.editor;this.setState("selectByLines");var zn=Nn.getSelectionRange();zn.isMultiLine()&&zn.contains(Bn.row,Bn.column)?(this.$clickSelection=Nn.selection.getLineRange(zn.start.row),this.$clickSelection.end=Nn.selection.getLineRange(zn.end.row).end):this.$clickSelection=Nn.selection.getLineRange(Bn.row),this.select()},Dn.prototype.onQuadClick=function(Pn){var Bn=this.editor;Bn.selectAll(),this.$clickSelection=Bn.getSelectionRange(),this.setState("selectAll")},Dn.prototype.onMouseWheel=function(Pn){if(!Pn.getAccelKey()){Pn.getShiftKey()&&Pn.wheelY&&!Pn.wheelX&&(Pn.wheelX=Pn.wheelY,Pn.wheelY=0);var Bn=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var Nn=this.$lastScroll,zn=Pn.domEvent.timeStamp,Qn=zn-Nn.t,Jn=Qn?Pn.wheelX/Qn:Nn.vx,ti=Qn?Pn.wheelY/Qn:Nn.vy;Qn<Xn&&(Jn=(Jn+Nn.vx)/2,ti=(ti+Nn.vy)/2);var vi=Math.abs(Jn/ti),pi=!1;if(vi>=1&&Bn.renderer.isScrollableBy(Pn.wheelX*Pn.speed,0)&&(pi=!0),vi<=1&&Bn.renderer.isScrollableBy(0,Pn.wheelY*Pn.speed)&&(pi=!0),pi)Nn.allowed=zn;else if(zn-Nn.allowed<Xn){var si=Math.abs(Jn)<=1.5*Math.abs(Nn.vx)&&Math.abs(ti)<=1.5*Math.abs(Nn.vy);si?(pi=!0,Nn.allowed=zn):Nn.allowed=0}if(Nn.t=zn,Nn.vx=Jn,Nn.vy=ti,pi)return Bn.renderer.scrollBy(Pn.wheelX*Pn.speed,Pn.wheelY*Pn.speed),Pn.stop()}},Dn}();Hn.prototype.selectEnd=Hn.prototype.selectByLinesEnd,Hn.prototype.selectAllEnd=Hn.prototype.selectByLinesEnd,Hn.prototype.selectByWordsEnd=Hn.prototype.selectByLinesEnd,Mn.DefaultHandlers=Hn;function qn(Dn,Pn,Bn,Nn){return Math.sqrt(Math.pow(Bn-Dn,2)+Math.pow(Nn-Pn,2))}function In(Dn,Pn){if(Dn.start.row==Dn.end.row)var Bn=2*Pn.column-Dn.start.column-Dn.end.column;else if(Dn.start.row==Dn.end.row-1&&!Dn.start.column&&!Dn.end.column)var Bn=Pn.column-4;else var Bn=2*Pn.row-Dn.start.row-Dn.end.row;return Bn<0?{cursor:Dn.start,anchor:Dn.end}:{cursor:Dn.end,anchor:Dn.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(kn,Mn,Yn){Mn.preventParentScroll=function(Wn){Wn.stopPropagation();var Kn=Wn.currentTarget,Xn=Kn.scrollHeight>Kn.clientHeight;Xn||Wn.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(kn,Mn,Yn){var Wn=this&&this.__extends||function(){var zn=function(Qn,Jn){return zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ti,vi){ti.__proto__=vi}||function(ti,vi){for(var pi in vi)Object.prototype.hasOwnProperty.call(vi,pi)&&(ti[pi]=vi[pi])},zn(Qn,Jn)};return function(Qn,Jn){if(typeof Jn!="function"&&Jn!==null)throw new TypeError("Class extends value "+String(Jn)+" is not a constructor or null");zn(Qn,Jn);function ti(){this.constructor=Qn}Qn.prototype=Jn===null?Object.create(Jn):(ti.prototype=Jn.prototype,new ti)}}(),Kn=this&&this.__values||function(zn){var Qn=typeof Symbol=="function"&&Symbol.iterator,Jn=Qn&&zn[Qn],ti=0;if(Jn)return Jn.call(zn);if(zn&&typeof zn.length=="number")return{next:function(){return zn&&ti>=zn.length&&(zn=void 0),{value:zn&&zn[ti++],done:!zn}}};throw new TypeError(Qn?"Object is not iterable.":"Symbol.iterator is not defined.")},Xn=kn("./lib/dom");kn("./lib/event");var Hn=kn("./range").Range,qn=kn("./lib/scroll").preventParentScroll,In="ace_tooltip",Dn=function(){function zn(Qn){this.isOpen=!1,this.$element=null,this.$parentNode=Qn}return zn.prototype.$init=function(){return this.$element=Xn.createElement("div"),this.$element.className=In,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},zn.prototype.getElement=function(){return this.$element||this.$init()},zn.prototype.setText=function(Qn){this.getElement().textContent=Qn},zn.prototype.setHtml=function(Qn){this.getElement().innerHTML=Qn},zn.prototype.setPosition=function(Qn,Jn){this.getElement().style.left=Qn+"px",this.getElement().style.top=Jn+"px"},zn.prototype.setClassName=function(Qn){Xn.addCssClass(this.getElement(),Qn)},zn.prototype.setTheme=function(Qn){this.$element.className=In+" "+(Qn.isDark?"ace_dark ":"")+(Qn.cssClass||"")},zn.prototype.show=function(Qn,Jn,ti){Qn!=null&&this.setText(Qn),Jn!=null&&ti!=null&&this.setPosition(Jn,ti),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},zn.prototype.hide=function(Qn){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=In,this.isOpen=!1)},zn.prototype.getHeight=function(){return this.getElement().offsetHeight},zn.prototype.getWidth=function(){return this.getElement().offsetWidth},zn.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},zn}(),Pn=function(){function zn(){this.popups=[]}return zn.prototype.addPopup=function(Qn){this.popups.push(Qn),this.updatePopups()},zn.prototype.removePopup=function(Qn){var Jn=this.popups.indexOf(Qn);Jn!==-1&&(this.popups.splice(Jn,1),this.updatePopups())},zn.prototype.updatePopups=function(){var Qn,Jn,ti,vi;this.popups.sort(function(ai,oi){return oi.priority-ai.priority});var pi=[];try{for(var si=Kn(this.popups),ei=si.next();!ei.done;ei=si.next()){var mi=ei.value,fi=!0;try{for(var yi=(ti=void 0,Kn(pi)),gi=yi.next();!gi.done;gi=yi.next()){var xi=gi.value;if(this.doPopupsOverlap(xi,mi)){fi=!1;break}}}catch(ai){ti={error:ai}}finally{try{gi&&!gi.done&&(vi=yi.return)&&vi.call(yi)}finally{if(ti)throw ti.error}}fi?pi.push(mi):mi.hide()}}catch(ai){Qn={error:ai}}finally{try{ei&&!ei.done&&(Jn=si.return)&&Jn.call(si)}finally{if(Qn)throw Qn.error}}},zn.prototype.doPopupsOverlap=function(Qn,Jn){var ti=Qn.getElement().getBoundingClientRect(),vi=Jn.getElement().getBoundingClientRect();return ti.left<vi.right&&ti.right>vi.left&&ti.top<vi.bottom&&ti.bottom>vi.top},zn}(),Bn=new Pn;Mn.popupManager=Bn,Mn.Tooltip=Dn;var Nn=function(zn){Wn(Qn,zn);function Qn(Jn){Jn===void 0&&(Jn=document.body);var ti=zn.call(this,Jn)||this;ti.timeout=void 0,ti.lastT=0,ti.idleTime=350,ti.lastEvent=void 0,ti.onMouseOut=ti.onMouseOut.bind(ti),ti.onMouseMove=ti.onMouseMove.bind(ti),ti.waitForHover=ti.waitForHover.bind(ti),ti.hide=ti.hide.bind(ti);var vi=ti.getElement();return vi.style.whiteSpace="pre-wrap",vi.style.pointerEvents="auto",vi.addEventListener("mouseout",ti.onMouseOut),vi.tabIndex=-1,vi.addEventListener("blur",(function(){vi.contains(document.activeElement)||this.hide()}).bind(ti)),vi.addEventListener("wheel",qn),ti}return Qn.prototype.addToEditor=function(Jn){Jn.on("mousemove",this.onMouseMove),Jn.on("mousedown",this.hide),Jn.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},Qn.prototype.removeFromEditor=function(Jn){Jn.off("mousemove",this.onMouseMove),Jn.off("mousedown",this.hide),Jn.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},Qn.prototype.onMouseMove=function(Jn,ti){this.lastEvent=Jn,this.lastT=Date.now();var vi=ti.$mouseHandler.isMousePressed;if(this.isOpen){var pi=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(pi.row,pi.column)||vi||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||vi||(this.lastEvent=Jn,this.timeout=setTimeout(this.waitForHover,this.idleTime))},Qn.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var Jn=Date.now()-this.lastT;if(this.idleTime-Jn>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-Jn);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},Qn.prototype.isOutsideOfText=function(Jn){var ti=Jn.editor,vi=Jn.getDocumentPosition(),pi=ti.session.getLine(vi.row);if(vi.column==pi.length){var si=ti.renderer.pixelToScreenCoordinates(Jn.clientX,Jn.clientY),ei=ti.session.documentToScreenPosition(vi.row,vi.column);if(ei.column!=si.column||ei.row!=si.row)return!0}return!1},Qn.prototype.setDataProvider=function(Jn){this.$gatherData=Jn},Qn.prototype.showForRange=function(Jn,ti,vi,pi){var si=10;if(!(pi&&pi!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var ei=Jn.renderer;this.isOpen||(Bn.addPopup(this),this.$registerCloseEvents(),this.setTheme(ei.theme)),this.isOpen=!0,this.addMarker(ti,Jn.session),this.range=Hn.fromPoints(ti.start,ti.end);var mi=ei.textToScreenCoordinates(ti.start.row,ti.start.column),fi=ei.scroller.getBoundingClientRect();mi.pageX<fi.left&&(mi.pageX=fi.left);var yi=this.getElement();yi.innerHTML="",yi.appendChild(vi),yi.style.maxHeight="",yi.style.display="block";var gi=yi.clientHeight,xi=yi.clientWidth,ai=window.innerHeight-mi.pageY-ei.lineHeight,oi=!0;mi.pageY-gi<0&&mi.pageY<ai&&(oi=!1),yi.style.maxHeight=(oi?mi.pageY:ai)-si+"px",yi.style.top=oi?"":mi.pageY+ei.lineHeight+"px",yi.style.bottom=oi?window.innerHeight-mi.pageY+"px":"",yi.style.left=Math.min(mi.pageX,window.innerWidth-xi-si)+"px"}},Qn.prototype.addMarker=function(Jn,ti){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=ti,this.marker=ti&&ti.addMarker(Jn,"ace_highlight-marker","text")},Qn.prototype.hide=function(Jn){!Jn&&document.activeElement==this.getElement()||Jn&&Jn.target&&(Jn.type!="keydown"||Jn.ctrlKey||Jn.metaKey)&&this.$element.contains(Jn.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,Bn.removePopup(this)))},Qn.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},Qn.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},Qn.prototype.onMouseOut=function(Jn){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!Jn.relatedTarget||this.getElement().contains(Jn.relatedTarget)||Jn&&Jn.currentTarget.contains(Jn.relatedTarget)||Jn.relatedTarget.classList.contains("ace_content")||this.hide())},Qn}(Dn);Mn.HoverTooltip=Nn}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(kn,Mn,Yn){var Wn=this&&this.__extends||function(){var Bn=function(Nn,zn){return Bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qn,Jn){Qn.__proto__=Jn}||function(Qn,Jn){for(var ti in Jn)Object.prototype.hasOwnProperty.call(Jn,ti)&&(Qn[ti]=Jn[ti])},Bn(Nn,zn)};return function(Nn,zn){if(typeof zn!="function"&&zn!==null)throw new TypeError("Class extends value "+String(zn)+" is not a constructor or null");Bn(Nn,zn);function Qn(){this.constructor=Nn}Nn.prototype=zn===null?Object.create(zn):(Qn.prototype=zn.prototype,new Qn)}}(),Kn=this&&this.__values||function(Bn){var Nn=typeof Symbol=="function"&&Symbol.iterator,zn=Nn&&Bn[Nn],Qn=0;if(zn)return zn.call(Bn);if(Bn&&typeof Bn.length=="number")return{next:function(){return Bn&&Qn>=Bn.length&&(Bn=void 0),{value:Bn&&Bn[Qn++],done:!Bn}}};throw new TypeError(Nn?"Object is not iterable.":"Symbol.iterator is not defined.")},Xn=kn("../lib/dom"),Hn=kn("../lib/event"),qn=kn("../tooltip").Tooltip,In=kn("../config").nls;kn("../lib/lang");function Dn(Bn){var Nn=Bn.editor,zn=Nn.renderer.$gutterLayer,Qn=new Pn(Nn);Bn.editor.setDefaultHandler("guttermousedown",function(ei){if(!(!Nn.isFocused()||ei.getButton()!=0)){var mi=zn.getRegion(ei);if(mi!="foldWidgets"){var fi=ei.getDocumentPosition().row,yi=Nn.session.selection;if(ei.getShiftKey())yi.selectTo(fi,0);else{if(ei.domEvent.detail==2)return Nn.selectAll(),ei.preventDefault();Bn.$clickSelection=Nn.selection.getLineRange(fi)}return Bn.setState("selectByLines"),Bn.captureMouse(ei),ei.preventDefault()}}});var Jn,ti;function vi(){var ei=ti.getDocumentPosition().row,mi=Nn.session.getLength();if(ei==mi){var fi=Nn.renderer.pixelToScreenCoordinates(0,ti.y).row,yi=ti.$pos;if(fi>Nn.session.documentToScreenRow(yi.row,yi.column))return pi()}if(Qn.showTooltip(ei),!!Qn.isOpen)if(Nn.on("mousewheel",pi),Bn.$tooltipFollowsMouse)si(ti);else{var gi=ti.getGutterRow(),xi=zn.$lines.get(gi);if(xi){var ai=xi.element.querySelector(".ace_gutter_annotation"),oi=ai.getBoundingClientRect(),li=Qn.getElement().style;li.left=oi.right+"px",li.top=oi.bottom+"px"}else si(ti)}}function pi(){Jn&&(Jn=clearTimeout(Jn)),Qn.isOpen&&(Qn.hideTooltip(),Nn.off("mousewheel",pi))}function si(ei){Qn.setPosition(ei.x,ei.y)}Bn.editor.setDefaultHandler("guttermousemove",function(ei){var mi=ei.domEvent.target||ei.domEvent.srcElement;if(Xn.hasCssClass(mi,"ace_fold-widget"))return pi();Qn.isOpen&&Bn.$tooltipFollowsMouse&&si(ei),ti=ei,!Jn&&(Jn=setTimeout(function(){Jn=null,ti&&!Bn.isMousePressed?vi():pi()},50))}),Hn.addListener(Nn.renderer.$gutter,"mouseout",function(ei){ti=null,!(!Qn.isOpen||Jn)&&(Jn=setTimeout(function(){Jn=null,pi()},50))},Nn),Nn.on("changeSession",pi),Nn.on("input",pi)}Mn.GutterHandler=Dn;var Pn=function(Bn){Wn(Nn,Bn);function Nn(zn){var Qn=Bn.call(this,zn.container)||this;return Qn.editor=zn,Qn}return Nn.prototype.setPosition=function(zn,Qn){var Jn=window.innerWidth||document.documentElement.clientWidth,ti=window.innerHeight||document.documentElement.clientHeight,vi=this.getWidth(),pi=this.getHeight();zn+=15,Qn+=15,zn+vi>Jn&&(zn-=zn+vi-Jn),Qn+pi>ti&&(Qn-=20+pi),qn.prototype.setPosition.call(this,zn,Qn)},Object.defineProperty(Nn,"annotationLabels",{get:function(){return{error:{singular:In("gutter-tooltip.aria-label.error.singular","error"),plural:In("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:In("gutter-tooltip.aria-label.security.singular","security finding"),plural:In("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:In("gutter-tooltip.aria-label.warning.singular","warning"),plural:In("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:In("gutter-tooltip.aria-label.info.singular","information message"),plural:In("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:In("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:In("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),Nn.prototype.showTooltip=function(zn){var Qn,Jn=this.editor.renderer.$gutterLayer,ti=Jn.$annotations[zn],vi;ti?vi={displayText:Array.from(ti.displayText),type:Array.from(ti.type)}:vi={displayText:[],type:[]};var pi=Jn.session.getFoldLine(zn);if(pi&&Jn.$showFoldedAnnotations){for(var si={error:[],security:[],warning:[],info:[],hint:[]},ei={error:1,security:2,warning:3,info:4,hint:5},mi,fi=zn+1;fi<=pi.end.row;fi++)if(Jn.$annotations[fi])for(var yi=0;yi<Jn.$annotations[fi].text.length;yi++){var gi=Jn.$annotations[fi].type[yi];si[gi].push(Jn.$annotations[fi].text[yi]),(!mi||ei[gi]<ei[mi])&&(mi=gi)}if(["error","security","warning"].includes(mi)){var xi="".concat(Nn.annotationsToSummaryString(si)," in folded code.");vi.displayText.push(xi),vi.type.push(mi+"_fold")}}if(vi.displayText.length===0)return this.hide();for(var ai={error:[],security:[],warning:[],info:[],hint:[]},oi=Jn.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",fi=0;fi<vi.displayText.length;fi++){var li=Xn.createElement("span"),wi=Xn.createElement("span");(Qn=wi.classList).add.apply(Qn,["ace_".concat(vi.type[fi]),oi]),wi.setAttribute("aria-label","".concat(Nn.annotationLabels[vi.type[fi].replace("_fold","")].singular)),wi.setAttribute("role","img"),wi.appendChild(Xn.createTextNode(" ")),li.appendChild(wi),li.appendChild(Xn.createTextNode(vi.displayText[fi])),li.appendChild(Xn.createElement("br")),ai[vi.type[fi].replace("_fold","")].push(li)}var bi=this.getElement();Xn.removeChildren(bi),ai.error.forEach(function(_i){return bi.appendChild(_i)}),ai.security.forEach(function(_i){return bi.appendChild(_i)}),ai.warning.forEach(function(_i){return bi.appendChild(_i)}),ai.info.forEach(function(_i){return bi.appendChild(_i)}),ai.hint.forEach(function(_i){return bi.appendChild(_i)}),bi.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},Nn.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},Nn.annotationsToSummaryString=function(zn){var Qn,Jn,ti=[],vi=["error","security","warning","info","hint"];try{for(var pi=Kn(vi),si=pi.next();!si.done;si=pi.next()){var ei=si.value;if(zn[ei].length){var mi=zn[ei].length===1?Nn.annotationLabels[ei].singular:Nn.annotationLabels[ei].plural;ti.push("".concat(zn[ei].length," ").concat(mi))}}}catch(fi){Qn={error:fi}}finally{try{si&&!si.done&&(Jn=pi.return)&&Jn.call(pi)}finally{if(Qn)throw Qn.error}}return ti.join(", ")},Nn}(qn);Mn.GutterTooltip=Pn}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(kn,Mn,Yn){var Wn=kn("../lib/event"),Kn=kn("../lib/useragent"),Xn=function(){function Hn(qn,In){this.speed,this.wheelX,this.wheelY,this.domEvent=qn,this.editor=In,this.x=this.clientX=qn.clientX,this.y=this.clientY=qn.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return Hn.prototype.stopPropagation=function(){Wn.stopPropagation(this.domEvent),this.propagationStopped=!0},Hn.prototype.preventDefault=function(){Wn.preventDefault(this.domEvent),this.defaultPrevented=!0},Hn.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},Hn.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},Hn.prototype.getGutterRow=function(){var qn=this.getDocumentPosition().row,In=this.editor.session.documentToScreenRow(qn,0),Dn=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return In-Dn},Hn.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var qn=this.editor,In=qn.getSelectionRange();if(In.isEmpty())this.$inSelection=!1;else{var Dn=this.getDocumentPosition();this.$inSelection=In.contains(Dn.row,Dn.column)}return this.$inSelection},Hn.prototype.getButton=function(){return Wn.getButton(this.domEvent)},Hn.prototype.getShiftKey=function(){return this.domEvent.shiftKey},Hn.prototype.getAccelKey=function(){return Kn.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},Hn}();Mn.MouseEvent=Xn}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(kn,Mn,Yn){var Wn=kn("../lib/dom"),Kn=kn("../lib/event"),Xn=kn("../lib/useragent"),Hn=200,qn=200,In=5;function Dn(Bn){var Nn=Bn.editor,zn=Wn.createElement("div");zn.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",zn.textContent=" ";var Qn=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];Qn.forEach(function(Oi){Bn[Oi]=this[Oi]},this),Nn.on("mousedown",this.onMouseDown.bind(Bn));var Jn=Nn.container,ti,vi,pi,si,ei,mi,fi=0,yi,gi,xi,ai,oi;this.onDragStart=function(Oi){if(this.cancelDrag||!Jn.draggable){var Bi=this;return setTimeout(function(){Bi.startSelect(),Bi.captureMouse(Oi)},0),Oi.preventDefault()}ei=Nn.getSelectionRange();var Yi=Oi.dataTransfer;Yi.effectAllowed=Nn.getReadOnly()?"copy":"copyMove",Nn.container.appendChild(zn),Yi.setDragImage&&Yi.setDragImage(zn,0,0),setTimeout(function(){Nn.container.removeChild(zn)}),Yi.clearData(),Yi.setData("Text",Nn.session.getTextRange()),gi=!0,this.setState("drag")},this.onDragEnd=function(Oi){if(Jn.draggable=!1,gi=!1,this.setState(null),!Nn.getReadOnly()){var Bi=Oi.dataTransfer.dropEffect;!yi&&Bi=="move"&&Nn.session.remove(Nn.getSelectionRange()),Nn.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(Oi){if(!(Nn.getReadOnly()||!Ii(Oi.dataTransfer)))return vi=Oi.clientX,pi=Oi.clientY,ti||_i(),fi++,Oi.dataTransfer.dropEffect=yi=zi(Oi),Kn.preventDefault(Oi)},this.onDragOver=function(Oi){if(!(Nn.getReadOnly()||!Ii(Oi.dataTransfer)))return vi=Oi.clientX,pi=Oi.clientY,ti||(_i(),fi++),Li!==null&&(Li=null),Oi.dataTransfer.dropEffect=yi=zi(Oi),Kn.preventDefault(Oi)},this.onDragLeave=function(Oi){if(fi--,fi<=0&&ti)return Ti(),yi=null,Kn.preventDefault(Oi)},this.onDrop=function(Oi){if(mi){var Bi=Oi.dataTransfer;if(gi)switch(yi){case"move":ei.contains(mi.row,mi.column)?ei={start:mi,end:mi}:ei=Nn.moveText(ei,mi);break;case"copy":ei=Nn.moveText(ei,mi,!0);break}else{var Yi=Bi.getData("Text");ei={start:mi,end:Nn.session.insert(mi,Yi)},Nn.focus(),yi=null}return Ti(),Kn.preventDefault(Oi)}},Kn.addListener(Jn,"dragstart",this.onDragStart.bind(Bn),Nn),Kn.addListener(Jn,"dragend",this.onDragEnd.bind(Bn),Nn),Kn.addListener(Jn,"dragenter",this.onDragEnter.bind(Bn),Nn),Kn.addListener(Jn,"dragover",this.onDragOver.bind(Bn),Nn),Kn.addListener(Jn,"dragleave",this.onDragLeave.bind(Bn),Nn),Kn.addListener(Jn,"drop",this.onDrop.bind(Bn),Nn);function li(Oi,Bi){var Yi=Date.now(),Fi=!Bi||Oi.row!=Bi.row,Qi=!Bi||Oi.column!=Bi.column;if(!ai||Fi||Qi)Nn.moveCursorToPosition(Oi),ai=Yi,oi={x:vi,y:pi};else{var pr=Pn(oi.x,oi.y,vi,pi);pr>In?ai=null:Yi-ai>=qn&&(Nn.renderer.scrollCursorIntoView(),ai=null)}}function wi(Oi,Bi){var Yi=Date.now(),Fi=Nn.renderer.layerConfig.lineHeight,Qi=Nn.renderer.layerConfig.characterWidth,pr=Nn.renderer.scroller.getBoundingClientRect(),fr={x:{left:vi-pr.left,right:pr.right-vi},y:{top:pi-pr.top,bottom:pr.bottom-pi}},ar=Math.min(fr.x.left,fr.x.right),yr=Math.min(fr.y.top,fr.y.bottom),ro={row:Oi.row,column:Oi.column};ar/Qi<=2&&(ro.column+=fr.x.left<fr.x.right?-3:2),yr/Fi<=1&&(ro.row+=fr.y.top<fr.y.bottom?-1:1);var Fo=Oi.row!=ro.row,$o=Oi.column!=ro.column,Co=!Bi||Oi.row!=Bi.row;Fo||$o&&!Co?xi?Yi-xi>=Hn&&Nn.renderer.scrollCursorIntoView(ro):xi=Yi:xi=null}function bi(){var Oi=mi;mi=Nn.renderer.screenToTextCoordinates(vi,pi),li(mi,Oi),wi(mi,Oi)}function _i(){ei=Nn.selection.toOrientedRange(),ti=Nn.session.addMarker(ei,"ace_selection",Nn.getSelectionStyle()),Nn.clearSelection(),Nn.isFocused()&&Nn.renderer.$cursorLayer.setBlinking(!1),clearInterval(si),bi(),si=setInterval(bi,20),fi=0,Kn.addListener(document,"mousemove",Ri)}function Ti(){clearInterval(si),Nn.session.removeMarker(ti),ti=null,Nn.selection.fromOrientedRange(ei),Nn.isFocused()&&!gi&&Nn.$resetCursorStyle(),ei=null,mi=null,fi=0,xi=null,ai=null,Kn.removeListener(document,"mousemove",Ri)}var Li=null;function Ri(){Li==null&&(Li=setTimeout(function(){Li!=null&&ti&&Ti()},20))}function Ii(Oi){var Bi=Oi.types;return!Bi||Array.prototype.some.call(Bi,function(Yi){return Yi=="text/plain"||Yi=="Text"})}function zi(Oi){var Bi=["copy","copymove","all","uninitialized"],Yi=["move","copymove","linkmove","all","uninitialized"],Fi=Xn.isMac?Oi.altKey:Oi.ctrlKey,Qi="uninitialized";try{Qi=Oi.dataTransfer.effectAllowed.toLowerCase()}catch{}var pr="none";return Fi&&Bi.indexOf(Qi)>=0?pr="copy":Yi.indexOf(Qi)>=0?pr="move":Bi.indexOf(Qi)>=0&&(pr="copy"),pr}}(function(){this.dragWait=function(){var Bn=Date.now()-this.mousedownEvent.time;Bn>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var Bn=this.editor.container;Bn.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(Bn){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var Bn=this.editor,Nn=Bn.container;Nn.draggable=!0,Bn.renderer.$cursorLayer.setBlinking(!1),Bn.setStyle("ace_dragging");var zn=Xn.isWin?"default":"move";Bn.renderer.setCursorStyle(zn),this.setState("dragReady")},this.onMouseDrag=function(Bn){var Nn=this.editor.container;if(Xn.isIE&&this.state=="dragReady"){var zn=Pn(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);zn>3&&Nn.dragDrop()}if(this.state==="dragWait"){var zn=Pn(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);zn>0&&(Nn.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(Bn){if(this.$dragEnabled){this.mousedownEvent=Bn;var Nn=this.editor,zn=Bn.inSelection(),Qn=Bn.getButton(),Jn=Bn.domEvent.detail||1;if(Jn===1&&Qn===0&&zn){if(Bn.editor.inMultiSelectMode&&(Bn.getAccelKey()||Bn.getShiftKey()))return;this.mousedownEvent.time=Date.now();var ti=Bn.domEvent.target||Bn.domEvent.srcElement;if("unselectable"in ti&&(ti.unselectable="on"),Nn.getDragDelay()){if(Xn.isWebKit){this.cancelDrag=!0;var vi=Nn.container;vi.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(Bn,this.onMouseDrag.bind(this)),Bn.defaultPrevented=!0}}}}).call(Dn.prototype);function Pn(Bn,Nn,zn,Qn){return Math.sqrt(Math.pow(zn-Bn,2)+Math.pow(Qn-Nn,2))}Mn.DragdropHandler=Dn}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(kn,Mn,Yn){var Wn=kn("./mouse_event").MouseEvent,Kn=kn("../lib/event"),Xn=kn("../lib/dom");Mn.addTouchListeners=function(Hn,qn){var In="scroll",Dn,Pn,Bn,Nn,zn,Qn,Jn=0,ti,vi=0,pi=0,si=0,ei,mi;function fi(){var li=window.navigator&&window.navigator.clipboard,wi=!1,bi=function(){var Li=qn.getCopyText(),Ri=qn.session.getUndoManager().hasUndo();mi.replaceChild(Xn.buildDom(wi?["span",!Li&&_i("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],Li&&_i("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],Li&&_i("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],li&&_i("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Ri&&_i("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],_i("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],_i("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),mi.firstChild)},_i=function(Li){return qn.commands.canExecute(Li,qn)},Ti=function(Li){var Ri=Li.target.getAttribute("action");if(Ri=="more"||!wi)return wi=!wi,bi();Ri=="paste"?li.readText().then(function(Ii){qn.execCommand(Ri,Ii)}):Ri&&((Ri=="cut"||Ri=="copy")&&(li?li.writeText(qn.getCopyText()):document.execCommand("copy")),qn.execCommand(Ri)),mi.firstChild.style.display="none",wi=!1,Ri!="openCommandPalette"&&qn.focus()};mi=Xn.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(Li){In="menu",Li.stopPropagation(),Li.preventDefault(),qn.textInput.focus()},ontouchend:function(Li){Li.stopPropagation(),Li.preventDefault(),Ti(Li)},onclick:Ti},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],qn.container)}function yi(){if(!qn.getOption("enableMobileMenu")){mi&&gi();return}mi||fi();var li=qn.selection.cursor,wi=qn.renderer.textToScreenCoordinates(li.row,li.column),bi=qn.renderer.textToScreenCoordinates(0,0).pageX,_i=qn.renderer.scrollLeft,Ti=qn.container.getBoundingClientRect();mi.style.top=wi.pageY-Ti.top-3+"px",wi.pageX-Ti.left<Ti.width-70?(mi.style.left="",mi.style.right="10px"):(mi.style.right="",mi.style.left=bi+_i-Ti.left+"px"),mi.style.display="",mi.firstChild.style.display="none",qn.on("input",gi)}function gi(li){mi&&(mi.style.display="none"),qn.off("input",gi)}function xi(){zn=null,clearTimeout(zn);var li=qn.selection.getRange(),wi=li.contains(ti.row,ti.column);(li.isEmpty()||!wi)&&(qn.selection.moveToPosition(ti),qn.selection.selectWord()),In="wait",yi()}function ai(){zn=null,clearTimeout(zn),qn.selection.moveToPosition(ti);var li=vi>=2?qn.selection.getLineRange(ti.row):qn.session.getBracketRange(ti);li&&!li.isEmpty()?qn.selection.setRange(li):qn.selection.selectWord(),In="wait"}Kn.addListener(Hn,"contextmenu",function(li){if(ei){var wi=qn.textInput.getElement();wi.focus()}},qn),Kn.addListener(Hn,"touchstart",function(li){var wi=li.touches;if(zn||wi.length>1){clearTimeout(zn),zn=null,Bn=-1,In="zoom";return}ei=qn.$mouseHandler.isMousePressed=!0;var bi=qn.renderer.layerConfig.lineHeight,_i=qn.renderer.layerConfig.lineHeight,Ti=li.timeStamp;Nn=Ti;var Li=wi[0],Ri=Li.clientX,Ii=Li.clientY;Math.abs(Dn-Ri)+Math.abs(Pn-Ii)>bi&&(Bn=-1),Dn=li.clientX=Ri,Pn=li.clientY=Ii,pi=si=0;var zi=new Wn(li,qn);if(ti=zi.getDocumentPosition(),Ti-Bn<500&&wi.length==1&&!Jn)vi++,li.preventDefault(),li.button=0,ai();else{vi=0;var Oi=qn.selection.cursor,Bi=qn.selection.isEmpty()?Oi:qn.selection.anchor,Yi=qn.renderer.$cursorLayer.getPixelPosition(Oi,!0),Fi=qn.renderer.$cursorLayer.getPixelPosition(Bi,!0),Qi=qn.renderer.scroller.getBoundingClientRect(),pr=qn.renderer.layerConfig.offset,fr=qn.renderer.scrollLeft,ar=function(Fo,$o){return Fo=Fo/_i,$o=$o/bi-.75,Fo*Fo+$o*$o};if(li.clientX<Qi.left){In="zoom";return}var yr=ar(li.clientX-Qi.left-Yi.left+fr,li.clientY-Qi.top-Yi.top+pr),ro=ar(li.clientX-Qi.left-Fi.left+fr,li.clientY-Qi.top-Fi.top+pr);yr<3.5&&ro<3.5&&(In=yr>ro?"cursor":"anchor"),ro<3.5?In="anchor":yr<3.5?In="cursor":In="scroll",zn=setTimeout(xi,450)}Bn=Ti},qn),Kn.addListener(Hn,"touchend",function(li){ei=qn.$mouseHandler.isMousePressed=!1,Qn&&clearInterval(Qn),In=="zoom"?(In="",Jn=0):zn?(qn.selection.moveToPosition(ti),Jn=0,yi()):In=="scroll"?(oi(),gi()):yi(),clearTimeout(zn),zn=null},qn),Kn.addListener(Hn,"touchmove",function(li){zn&&(clearTimeout(zn),zn=null);var wi=li.touches;if(!(wi.length>1||In=="zoom")){var bi=wi[0],_i=Dn-bi.clientX,Ti=Pn-bi.clientY;if(In=="wait")if(_i*_i+Ti*Ti>4)In="cursor";else return li.preventDefault();Dn=bi.clientX,Pn=bi.clientY,li.clientX=bi.clientX,li.clientY=bi.clientY;var Li=li.timeStamp,Ri=Li-Nn;if(Nn=Li,In=="scroll"){var Ii=new Wn(li,qn);Ii.speed=1,Ii.wheelX=_i,Ii.wheelY=Ti,10*Math.abs(_i)<Math.abs(Ti)&&(_i=0),10*Math.abs(Ti)<Math.abs(_i)&&(Ti=0),Ri!=0&&(pi=_i/Ri,si=Ti/Ri),qn._emit("mousewheel",Ii),Ii.propagationStopped||(pi=si=0)}else{var zi=new Wn(li,qn),Oi=zi.getDocumentPosition();In=="cursor"?qn.selection.moveCursorToPosition(Oi):In=="anchor"&&qn.selection.setSelectionAnchor(Oi.row,Oi.column),qn.renderer.scrollCursorIntoView(Oi),li.preventDefault()}}},qn);function oi(){Jn+=60,Qn=setInterval(function(){Jn--<=0&&(clearInterval(Qn),Qn=null),Math.abs(pi)<.01&&(pi=0),Math.abs(si)<.01&&(si=0),Jn<20&&(pi=.9*pi),Jn<20&&(si=.9*si);var li=qn.session.getScrollTop();qn.renderer.scrollBy(10*pi,10*si),li==qn.session.getScrollTop()&&(Jn=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(kn,Mn,Yn){var Wn=kn("../lib/event"),Kn=kn("../lib/useragent"),Xn=kn("./default_handlers").DefaultHandlers,Hn=kn("./default_gutter_handler").GutterHandler,qn=kn("./mouse_event").MouseEvent,In=kn("./dragdrop_handler").DragdropHandler,Dn=kn("./touch_handler").addTouchListeners,Pn=kn("../config"),Bn=function(){function Nn(zn){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var Qn=this;this.editor=zn,new Xn(this),new Hn(this),new In(this);var Jn=function(pi){var si=!document.hasFocus||!document.hasFocus()||!zn.isFocused()&&document.activeElement==(zn.textInput&&zn.textInput.getElement());si&&window.focus(),zn.focus(),setTimeout(function(){zn.isFocused()||zn.focus()})},ti=zn.renderer.getMouseEventTarget();Wn.addListener(ti,"click",this.onMouseEvent.bind(this,"click"),zn),Wn.addListener(ti,"mousemove",this.onMouseMove.bind(this,"mousemove"),zn),Wn.addMultiMouseDownListener([ti,zn.renderer.scrollBarV&&zn.renderer.scrollBarV.inner,zn.renderer.scrollBarH&&zn.renderer.scrollBarH.inner,zn.textInput&&zn.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",zn),Wn.addMouseWheelListener(zn.container,this.onMouseWheel.bind(this,"mousewheel"),zn),Dn(zn.container,zn);var vi=zn.renderer.$gutter;Wn.addListener(vi,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),zn),Wn.addListener(vi,"click",this.onMouseEvent.bind(this,"gutterclick"),zn),Wn.addListener(vi,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),zn),Wn.addListener(vi,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),zn),Wn.addListener(ti,"mousedown",Jn,zn),Wn.addListener(vi,"mousedown",Jn,zn),Kn.isIE&&zn.renderer.scrollBarV&&(Wn.addListener(zn.renderer.scrollBarV.element,"mousedown",Jn,zn),Wn.addListener(zn.renderer.scrollBarH.element,"mousedown",Jn,zn)),zn.on("mousemove",function(pi){if(!(Qn.state||Qn.$dragDelay||!Qn.$dragEnabled)){var si=zn.renderer.screenToTextCoordinates(pi.x,pi.y),ei=zn.session.selection.getRange(),mi=zn.renderer;!ei.isEmpty()&&ei.insideStart(si.row,si.column)?mi.setCursorStyle("default"):mi.setCursorStyle("")}},zn)}return Nn.prototype.onMouseEvent=function(zn,Qn){this.editor.session&&this.editor._emit(zn,new qn(Qn,this.editor))},Nn.prototype.onMouseMove=function(zn,Qn){var Jn=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!Jn||!Jn.length||this.editor._emit(zn,new qn(Qn,this.editor))},Nn.prototype.onMouseWheel=function(zn,Qn){var Jn=new qn(Qn,this.editor);Jn.speed=this.$scrollSpeed*2,Jn.wheelX=Qn.wheelX,Jn.wheelY=Qn.wheelY,this.editor._emit(zn,Jn)},Nn.prototype.setState=function(zn){this.state=zn},Nn.prototype.captureMouse=function(zn,Qn){this.x=zn.x,this.y=zn.y,this.isMousePressed=!0;var Jn=this.editor,ti=this.editor.renderer;ti.$isMousePressed=!0;var vi=this,pi=function(yi){if(yi){if(Kn.isWebKit&&!yi.which&&vi.releaseMouse)return vi.releaseMouse();vi.x=yi.clientX,vi.y=yi.clientY,Qn&&Qn(yi),vi.mouseEvent=new qn(yi,vi.editor),vi.$mouseMoved=!0}},si=function(yi){Jn.off("beforeEndOperation",mi),clearInterval(fi),Jn.session&&ei(),vi[vi.state+"End"]&&vi[vi.state+"End"](yi),vi.state="",vi.isMousePressed=ti.$isMousePressed=!1,ti.$keepTextAreaAtCursor&&ti.$moveTextAreaToCursor(),vi.$onCaptureMouseMove=vi.releaseMouse=null,yi&&vi.onMouseEvent("mouseup",yi),Jn.endOperation()},ei=function(){vi[vi.state]&&vi[vi.state](),vi.$mouseMoved=!1};if(Kn.isOldIE&&zn.domEvent.type=="dblclick")return setTimeout(function(){si(zn)});var mi=function(yi){vi.releaseMouse&&Jn.curOp.command.name&&Jn.curOp.selectionChanged&&(vi[vi.state+"End"]&&vi[vi.state+"End"](),vi.state="",vi.releaseMouse())};Jn.on("beforeEndOperation",mi),Jn.startOperation({command:{name:"mouse"}}),vi.$onCaptureMouseMove=pi,vi.releaseMouse=Wn.capture(this.editor.container,pi,si);var fi=setInterval(ei,20)},Nn.prototype.cancelContextMenu=function(){var zn=(function(Qn){Qn&&Qn.domEvent&&Qn.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",zn),Qn&&Qn.domEvent&&Wn.stopEvent(Qn.domEvent))}).bind(this);setTimeout(zn,10),this.editor.on("nativecontextmenu",zn)},Nn.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},Nn}();Bn.prototype.releaseMouse=null,Pn.defineOptions(Bn.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:Kn.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),Mn.MouseHandler=Bn}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(kn,Mn,Yn){var Wn=kn("../lib/dom"),Kn=function(){function Xn(Hn){Hn.on("click",function(qn){var In=qn.getDocumentPosition(),Dn=Hn.session,Pn=Dn.getFoldAt(In.row,In.column,1);Pn&&(qn.getAccelKey()?Dn.removeFold(Pn):Dn.expandFold(Pn),qn.stop());var Bn=qn.domEvent&&qn.domEvent.target;Bn&&Wn.hasCssClass(Bn,"ace_inline_button")&&Wn.hasCssClass(Bn,"ace_toggle_wrap")&&(Dn.setOption("wrap",!Dn.getUseWrapMode()),Hn.renderer.scrollCursorIntoView())}),Hn.on("gutterclick",function(qn){var In=Hn.renderer.$gutterLayer.getRegion(qn);if(In=="foldWidgets"){var Dn=qn.getDocumentPosition().row,Pn=Hn.session;Pn.foldWidgets&&Pn.foldWidgets[Dn]&&Hn.session.onFoldWidgetClick(Dn,qn),Hn.isFocused()||Hn.focus(),qn.stop()}}),Hn.on("gutterdblclick",function(qn){var In=Hn.renderer.$gutterLayer.getRegion(qn);if(In=="foldWidgets"){var Dn=qn.getDocumentPosition().row,Pn=Hn.session,Bn=Pn.getParentFoldRangeData(Dn,!0),Nn=Bn.range||Bn.firstRange;if(Nn){Dn=Nn.start.row;var zn=Pn.getFoldAt(Dn,Pn.getLine(Dn).length,1);zn?Pn.removeFold(zn):(Pn.addFold("...",Nn),Hn.renderer.scrollCursorIntoView({row:Nn.start.row,column:0}))}qn.stop()}})}return Xn}();Mn.FoldHandler=Kn}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(kn,Mn,Yn){var Wn=kn("../lib/keys"),Kn=kn("../lib/event"),Xn=function(){function Hn(qn){this.$editor=qn,this.$data={editor:qn},this.$handlers=[],this.setDefaultHandler(qn.commands)}return Hn.prototype.setDefaultHandler=function(qn){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=qn,this.addKeyboardHandler(qn,0)},Hn.prototype.setKeyboardHandler=function(qn){var In=this.$handlers;if(In[In.length-1]!=qn){for(;In[In.length-1]&&In[In.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(In[In.length-1]);this.addKeyboardHandler(qn,1)}},Hn.prototype.addKeyboardHandler=function(qn,In){if(qn){typeof qn=="function"&&!qn.handleKeyboard&&(qn.handleKeyboard=qn);var Dn=this.$handlers.indexOf(qn);Dn!=-1&&this.$handlers.splice(Dn,1),In==null?this.$handlers.push(qn):this.$handlers.splice(In,0,qn),Dn==-1&&qn.attach&&qn.attach(this.$editor)}},Hn.prototype.removeKeyboardHandler=function(qn){var In=this.$handlers.indexOf(qn);return In==-1?!1:(this.$handlers.splice(In,1),qn.detach&&qn.detach(this.$editor),!0)},Hn.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},Hn.prototype.getStatusText=function(){var qn=this.$data,In=qn.editor;return this.$handlers.map(function(Dn){return Dn.getStatusText&&Dn.getStatusText(In,qn)||""}).filter(Boolean).join(" ")},Hn.prototype.$callKeyboardHandlers=function(qn,In,Dn,Pn){for(var Bn,Nn=!1,zn=this.$editor.commands,Qn=this.$handlers.length;Qn--&&(Bn=this.$handlers[Qn].handleKeyboard(this.$data,qn,In,Dn,Pn),!(!(!Bn||!Bn.command)&&(Bn.command=="null"?Nn=!0:Nn=zn.exec(Bn.command,this.$editor,Bn.args,Pn),Nn&&Pn&&qn!=-1&&Bn.passEvent!=!0&&Bn.command.passEvent!=!0&&Kn.stopEvent(Pn),Nn))););return!Nn&&qn==-1&&(Bn={command:"insertstring"},Nn=zn.exec("insertstring",this.$editor,In)),Nn&&this.$editor._signal&&this.$editor._signal("keyboardActivity",Bn),Nn},Hn.prototype.onCommandKey=function(qn,In,Dn){var Pn=Wn.keyCodeToString(Dn);return this.$callKeyboardHandlers(In,Pn,Dn,qn)},Hn.prototype.onTextInput=function(qn){return this.$callKeyboardHandlers(-1,qn)},Hn}();Mn.KeyBinding=Xn}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(kn,Mn,Yn){var Wn=0,Kn=0,Xn=!1,Hn=!1,qn=!1,In=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],Dn=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Pn=0,Bn=1,Nn=0,zn=1,Qn=2,Jn=3,ti=4,vi=5,pi=6,si=7,ei=8,mi=9,fi=10,yi=11,gi=12,xi=13,ai=14,oi=15,li=16,wi=17,bi=18,_i=[bi,bi,bi,bi,bi,bi,bi,bi,bi,pi,vi,pi,ei,vi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,vi,vi,vi,pi,ei,ti,ti,yi,yi,yi,ti,ti,ti,ti,ti,fi,mi,fi,mi,mi,Qn,Qn,Qn,Qn,Qn,Qn,Qn,Qn,Qn,Qn,mi,ti,ti,ti,ti,ti,ti,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,ti,ti,ti,ti,ti,ti,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,Nn,ti,ti,ti,ti,bi,bi,bi,bi,bi,bi,vi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,bi,mi,ti,yi,yi,yi,yi,ti,ti,ti,ti,Nn,ti,ti,bi,ti,ti,yi,yi,Qn,Qn,ti,Nn,ti,ti,ti,Qn,Nn,ti,ti,ti,ti,ti],Ti=[ei,ei,ei,ei,ei,ei,ei,ei,ei,ei,ei,bi,bi,bi,Nn,zn,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ei,vi,xi,ai,oi,li,wi,mi,yi,yi,yi,yi,yi,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,mi,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ti,ei];function Li(Oi,Bi,Yi,Fi){var Qi=Wn?Dn:In,pr=null,fr=null,ar=null,yr=0,ro=null,Fo=null,$o=-1,Co=null,es=null,Do=[];if(!Fi)for(Co=0,Fi=[];Co<Yi;Co++)Fi[Co]=zi(Oi[Co]);for(Kn=Wn,Xn=!1,Hn=!1,qn=!1,es=0;es<Yi;es++){if(pr=yr,Do[es]=fr=Ii(Oi,Fi,Do,es),yr=Qi[pr][fr],ro=yr&240,yr&=15,Bi[es]=ar=Qi[yr][5],ro>0)if(ro==16){for(Co=$o;Co<es;Co++)Bi[Co]=1;$o=-1}else $o=-1;if(Fo=Qi[yr][6],Fo)$o==-1&&($o=es);else if($o>-1){for(Co=$o;Co<es;Co++)Bi[Co]=ar;$o=-1}Fi[es]==vi&&(Bi[es]=0),Kn|=ar}if(qn){for(Co=0;Co<Yi;Co++)if(Fi[Co]==pi){Bi[Co]=Wn;for(var Go=Co-1;Go>=0&&Fi[Go]==ei;Go--)Bi[Go]=Wn}}}function Ri(Oi,Bi,Yi){if(!(Kn<Oi)){if(Oi==1&&Wn==Bn&&!Hn){Yi.reverse();return}for(var Fi=Yi.length,Qi=0,pr,fr,ar,yr;Qi<Fi;){if(Bi[Qi]>=Oi){for(pr=Qi+1;pr<Fi&&Bi[pr]>=Oi;)pr++;for(fr=Qi,ar=pr-1;fr<ar;fr++,ar--)yr=Yi[fr],Yi[fr]=Yi[ar],Yi[ar]=yr;Qi=pr}Qi++}}}function Ii(Oi,Bi,Yi,Fi){var Qi=Bi[Fi],pr,fr,ar,yr;switch(Qi){case Nn:case zn:Xn=!1;case ti:case Jn:return Qi;case Qn:return Xn?Jn:Qn;case si:return Xn=!0,zn;case ei:return ti;case mi:return Fi<1||Fi+1>=Bi.length||(pr=Yi[Fi-1])!=Qn&&pr!=Jn||(fr=Bi[Fi+1])!=Qn&&fr!=Jn?ti:(Xn&&(fr=Jn),fr==pr?fr:ti);case fi:return pr=Fi>0?Yi[Fi-1]:vi,pr==Qn&&Fi+1<Bi.length&&Bi[Fi+1]==Qn?Qn:ti;case yi:if(Fi>0&&Yi[Fi-1]==Qn)return Qn;if(Xn)return ti;for(yr=Fi+1,ar=Bi.length;yr<ar&&Bi[yr]==yi;)yr++;return yr<ar&&Bi[yr]==Qn?Qn:ti;case gi:for(ar=Bi.length,yr=Fi+1;yr<ar&&Bi[yr]==gi;)yr++;if(yr<ar){var ro=Oi[Fi],Fo=ro>=1425&&ro<=2303||ro==64286;if(pr=Bi[yr],Fo&&(pr==zn||pr==si))return zn}return Fi<1||(pr=Bi[Fi-1])==vi?ti:Yi[Fi-1];case vi:return Xn=!1,Hn=!0,Wn;case pi:return qn=!0,ti;case xi:case ai:case li:case wi:case oi:Xn=!1;case bi:return ti}}function zi(Oi){var Bi=Oi.charCodeAt(0),Yi=Bi>>8;return Yi==0?Bi>191?Nn:_i[Bi]:Yi==5?/[\u0591-\u05f4]/.test(Oi)?zn:Nn:Yi==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(Oi)?gi:/[\u0660-\u0669\u066b-\u066c]/.test(Oi)?Jn:Bi==1642?yi:/[\u06f0-\u06f9]/.test(Oi)?Qn:si:Yi==32&&Bi<=8287?Ti[Bi&255]:Yi==254&&Bi>=65136?si:ti}Mn.L=Nn,Mn.R=zn,Mn.EN=Qn,Mn.ON_R=3,Mn.AN=4,Mn.R_H=5,Mn.B=6,Mn.RLE=7,Mn.DOT="·",Mn.doBidiReorder=function(Oi,Bi,Yi){if(Oi.length<2)return{};var Fi=Oi.split(""),Qi=new Array(Fi.length),pr=new Array(Fi.length),fr=[];Wn=Yi?Bn:Pn,Li(Fi,fr,Fi.length,Bi);for(var ar=0;ar<Qi.length;Qi[ar]=ar,ar++);Ri(2,fr,Qi),Ri(1,fr,Qi);for(var ar=0;ar<Qi.length-1;ar++)Bi[ar]===Jn?fr[ar]=Mn.AN:fr[ar]===zn&&(Bi[ar]>si&&Bi[ar]<xi||Bi[ar]===ti||Bi[ar]===bi)?fr[ar]=Mn.ON_R:ar>0&&Fi[ar-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(Fi[ar])&&(fr[ar-1]=fr[ar]=Mn.R_H,ar++);Fi[Fi.length-1]===Mn.DOT&&(fr[Fi.length-1]=Mn.B),Fi[0]==="‫"&&(fr[0]=Mn.RLE);for(var ar=0;ar<Qi.length;ar++)pr[ar]=fr[Qi[ar]];return{logicalFromVisual:Qi,bidiLevels:pr}},Mn.hasBidiCharacters=function(Oi,Bi){for(var Yi=!1,Fi=0;Fi<Oi.length;Fi++)Bi[Fi]=zi(Oi.charAt(Fi)),!Yi&&(Bi[Fi]==zn||Bi[Fi]==si||Bi[Fi]==Jn)&&(Yi=!0);return Yi},Mn.getVisualFromLogicalIdx=function(Oi,Bi){for(var Yi=0;Yi<Bi.logicalFromVisual.length;Yi++)if(Bi.logicalFromVisual[Yi]==Oi)return Yi;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(kn,Mn,Yn){var Wn=kn("./lib/bidiutil"),Kn=kn("./lib/lang"),Xn=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,Hn=function(){function qn(In){this.session=In,this.bidiMap={},this.currentRow=null,this.bidiUtil=Wn,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=Xn.test(In.getValue())}return qn.prototype.isBidiRow=function(In,Dn,Pn){return this.seenBidi?(In!==this.currentRow&&(this.currentRow=In,this.updateRowLine(Dn,Pn),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},qn.prototype.onChange=function(In){this.seenBidi?this.currentRow=null:In.action=="insert"&&Xn.test(In.lines.join(`
179
+ `))&&(this.seenBidi=!0,this.currentRow=null)},qn.prototype.getDocumentRow=function(){var In=0,Dn=this.session.$screenRowCache;if(Dn.length){var Pn=this.session.$getRowCacheIndex(Dn,this.currentRow);Pn>=0&&(In=this.session.$docRowCache[Pn])}return In},qn.prototype.getSplitIndex=function(){var In=0,Dn=this.session.$screenRowCache;if(Dn.length)for(var Pn,Bn=this.session.$getRowCacheIndex(Dn,this.currentRow);this.currentRow-In>0&&(Pn=this.session.$getRowCacheIndex(Dn,this.currentRow-In-1),Pn===Bn);)Bn=Pn,In++;else In=this.currentRow;return In},qn.prototype.updateRowLine=function(In,Dn){In===void 0&&(In=this.getDocumentRow());var Pn=In===this.session.getLength()-1,Bn=Pn?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(In),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var Nn=this.session.$wrapData[In];Nn&&(Dn===void 0&&(Dn=this.getSplitIndex()),Dn>0&&Nn.length?(this.wrapIndent=Nn.indent,this.wrapOffset=this.wrapIndent*this.charWidths[Wn.L],this.line=Dn<Nn.length?this.line.substring(Nn[Dn-1],Nn[Dn]):this.line.substring(Nn[Nn.length-1])):this.line=this.line.substring(0,Nn[Dn]),Dn==Nn.length&&(this.line+=this.showInvisibles?Bn:Wn.DOT))}else this.line+=this.showInvisibles?Bn:Wn.DOT;var zn=this.session,Qn=0,Jn;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(ti,vi){return ti===" "||zn.isFullWidth(ti.charCodeAt(0))?(Jn=ti===" "?zn.getScreenTabSize(vi+Qn):2,Qn+=Jn-1,Kn.stringRepeat(Wn.DOT,Jn)):ti}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==Wn.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},qn.prototype.updateBidiMap=function(){var In=[];Wn.hasBidiCharacters(this.line,In)||this.isRtlDir?this.bidiMap=Wn.doBidiReorder(this.line,In,this.isRtlDir):this.bidiMap={}},qn.prototype.markAsDirty=function(){this.currentRow=null},qn.prototype.updateCharacterWidths=function(In){if(this.characterWidth!==In.$characterSize.width){this.fontMetrics=In;var Dn=this.characterWidth=In.$characterSize.width,Pn=In.$measureCharWidth("ה");this.charWidths[Wn.L]=this.charWidths[Wn.EN]=this.charWidths[Wn.ON_R]=Dn,this.charWidths[Wn.R]=this.charWidths[Wn.AN]=Pn,this.charWidths[Wn.R_H]=Pn*.45,this.charWidths[Wn.B]=this.charWidths[Wn.RLE]=0,this.currentRow=null}},qn.prototype.setShowInvisibles=function(In){this.showInvisibles=In,this.currentRow=null},qn.prototype.setEolChar=function(In){this.EOL=In},qn.prototype.setContentWidth=function(In){this.contentWidth=In},qn.prototype.isRtlLine=function(In){return this.$isRtl?!0:In!=null?this.session.getLine(In).charAt(0)==this.RLE:this.isRtlDir},qn.prototype.setRtlDirection=function(In,Dn){for(var Pn=In.getCursorPosition(),Bn=In.selection.getSelectionAnchor().row;Bn<=Pn.row;Bn++)!Dn&&In.session.getLine(Bn).charAt(0)===In.session.$bidiHandler.RLE?In.session.doc.removeInLine(Bn,0,1):Dn&&In.session.getLine(Bn).charAt(0)!==In.session.$bidiHandler.RLE&&In.session.doc.insert({column:0,row:Bn},In.session.$bidiHandler.RLE)},qn.prototype.getPosLeft=function(In){In-=this.wrapIndent;var Dn=this.line.charAt(0)===this.RLE?1:0,Pn=In>Dn?this.session.getOverwrite()?In:In-1:Dn,Bn=Wn.getVisualFromLogicalIdx(Pn,this.bidiMap),Nn=this.bidiMap.bidiLevels,zn=0;!this.session.getOverwrite()&&In<=Dn&&Nn[Bn]%2!==0&&Bn++;for(var Qn=0;Qn<Bn;Qn++)zn+=this.charWidths[Nn[Qn]];return!this.session.getOverwrite()&&In>Dn&&Nn[Bn]%2===0&&(zn+=this.charWidths[Nn[Bn]]),this.wrapIndent&&(zn+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(zn+=this.rtlLineOffset),zn},qn.prototype.getSelections=function(In,Dn){var Pn=this.bidiMap,Bn=Pn.bidiLevels,Nn,zn=[],Qn=0,Jn=Math.min(In,Dn)-this.wrapIndent,ti=Math.max(In,Dn)-this.wrapIndent,vi=!1,pi=!1,si=0;this.wrapIndent&&(Qn+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var ei,mi=0;mi<Bn.length;mi++)ei=Pn.logicalFromVisual[mi],Nn=Bn[mi],vi=ei>=Jn&&ei<ti,vi&&!pi?si=Qn:!vi&&pi&&zn.push({left:si,width:Qn-si}),Qn+=this.charWidths[Nn],pi=vi;if(vi&&mi===Bn.length&&zn.push({left:si,width:Qn-si}),this.isRtlDir)for(var fi=0;fi<zn.length;fi++)zn[fi].left+=this.rtlLineOffset;return zn},qn.prototype.offsetToCol=function(Pn){this.isRtlDir&&(Pn-=this.rtlLineOffset);var Dn=0,Pn=Math.max(Pn,0),Bn=0,Nn=0,zn=this.bidiMap.bidiLevels,Qn=this.charWidths[zn[Nn]];for(this.wrapIndent&&(Pn-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);Pn>Bn+Qn/2;){if(Bn+=Qn,Nn===zn.length-1){Qn=0;break}Qn=this.charWidths[zn[++Nn]]}return Nn>0&&zn[Nn-1]%2!==0&&zn[Nn]%2===0?(Pn<Bn&&Nn--,Dn=this.bidiMap.logicalFromVisual[Nn]):Nn>0&&zn[Nn-1]%2===0&&zn[Nn]%2!==0?Dn=1+(Pn>Bn?this.bidiMap.logicalFromVisual[Nn]:this.bidiMap.logicalFromVisual[Nn-1]):this.isRtlDir&&Nn===zn.length-1&&Qn===0&&zn[Nn-1]%2===0||!this.isRtlDir&&Nn===0&&zn[Nn]%2!==0?Dn=1+this.bidiMap.logicalFromVisual[Nn]:(Nn>0&&zn[Nn-1]%2!==0&&Qn!==0&&Nn--,Dn=this.bidiMap.logicalFromVisual[Nn]),Dn===0&&this.isRtlDir&&Dn++,Dn+this.wrapIndent},qn}();Mn.BidiHandler=Hn}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(kn,Mn,Yn){var Wn=kn("./lib/oop"),Kn=kn("./lib/lang"),Xn=kn("./lib/event_emitter").EventEmitter,Hn=kn("./range").Range,qn=function(){function In(Dn){this.session=Dn,this.doc=Dn.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var Pn=this;this.cursor.on("change",function(Bn){Pn.$cursorChanged=!0,Pn.$silent||Pn._emit("changeCursor"),!Pn.$isEmpty&&!Pn.$silent&&Pn._emit("changeSelection"),!Pn.$keepDesiredColumnOnChange&&Bn.old.column!=Bn.value.column&&(Pn.$desiredColumn=null)}),this.anchor.on("change",function(){Pn.$anchorChanged=!0,!Pn.$isEmpty&&!Pn.$silent&&Pn._emit("changeSelection")})}return In.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},In.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},In.prototype.getCursor=function(){return this.lead.getPosition()},In.prototype.setAnchor=function(Dn,Pn){this.$isEmpty=!1,this.anchor.setPosition(Dn,Pn)},In.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},In.prototype.getSelectionLead=function(){return this.lead.getPosition()},In.prototype.isBackwards=function(){var Dn=this.anchor,Pn=this.lead;return Dn.row>Pn.row||Dn.row==Pn.row&&Dn.column>Pn.column},In.prototype.getRange=function(){var Dn=this.anchor,Pn=this.lead;return this.$isEmpty?Hn.fromPoints(Pn,Pn):this.isBackwards()?Hn.fromPoints(Pn,Dn):Hn.fromPoints(Dn,Pn)},In.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},In.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},In.prototype.setRange=function(Dn,Pn){var Bn=Pn?Dn.end:Dn.start,Nn=Pn?Dn.start:Dn.end;this.$setSelection(Bn.row,Bn.column,Nn.row,Nn.column)},In.prototype.$setSelection=function(Dn,Pn,Bn,Nn){if(!this.$silent){var zn=this.$isEmpty,Qn=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(Dn,Pn),this.cursor.setPosition(Bn,Nn),this.$isEmpty=!Hn.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||zn!=this.$isEmpty||Qn)&&this._emit("changeSelection")}},In.prototype.$moveSelection=function(Dn){var Pn=this.lead;this.$isEmpty&&this.setSelectionAnchor(Pn.row,Pn.column),Dn.call(this)},In.prototype.selectTo=function(Dn,Pn){this.$moveSelection(function(){this.moveCursorTo(Dn,Pn)})},In.prototype.selectToPosition=function(Dn){this.$moveSelection(function(){this.moveCursorToPosition(Dn)})},In.prototype.moveTo=function(Dn,Pn){this.clearSelection(),this.moveCursorTo(Dn,Pn)},In.prototype.moveToPosition=function(Dn){this.clearSelection(),this.moveCursorToPosition(Dn)},In.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},In.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},In.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},In.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},In.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},In.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},In.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},In.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},In.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},In.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},In.prototype.getWordRange=function(Dn,Pn){if(typeof Pn>"u"){var Bn=Dn||this.lead;Dn=Bn.row,Pn=Bn.column}return this.session.getWordRange(Dn,Pn)},In.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},In.prototype.selectAWord=function(){var Dn=this.getCursor(),Pn=this.session.getAWordRange(Dn.row,Dn.column);this.setSelectionRange(Pn)},In.prototype.getLineRange=function(Dn,Pn){var Bn=typeof Dn=="number"?Dn:this.lead.row,Nn,zn=this.session.getFoldLine(Bn);return zn?(Bn=zn.start.row,Nn=zn.end.row):Nn=Bn,Pn===!0?new Hn(Bn,0,Nn,this.session.getLine(Nn).length):new Hn(Bn,0,Nn+1,0)},In.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},In.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},In.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},In.prototype.wouldMoveIntoSoftTab=function(Dn,Pn,Bn){var Nn=Dn.column,zn=Dn.column+Pn;return Bn<0&&(Nn=Dn.column-Pn,zn=Dn.column),this.session.isTabStop(Dn)&&this.doc.getLine(Dn.row).slice(Nn,zn).split(" ").length-1==Pn},In.prototype.moveCursorLeft=function(){var Dn=this.lead.getPosition(),Pn;if(Pn=this.session.getFoldAt(Dn.row,Dn.column,-1))this.moveCursorTo(Pn.start.row,Pn.start.column);else if(Dn.column===0)Dn.row>0&&this.moveCursorTo(Dn.row-1,this.doc.getLine(Dn.row-1).length);else{var Bn=this.session.getTabSize();this.wouldMoveIntoSoftTab(Dn,Bn,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-Bn):this.moveCursorBy(0,-1)}},In.prototype.moveCursorRight=function(){var Dn=this.lead.getPosition(),Pn;if(Pn=this.session.getFoldAt(Dn.row,Dn.column,1))this.moveCursorTo(Pn.end.row,Pn.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var Bn=this.session.getTabSize(),Dn=this.lead;this.wouldMoveIntoSoftTab(Dn,Bn,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,Bn):this.moveCursorBy(0,1)}},In.prototype.moveCursorLineStart=function(){var Dn=this.lead.row,Pn=this.lead.column,Bn=this.session.documentToScreenRow(Dn,Pn),Nn=this.session.screenToDocumentPosition(Bn,0),zn=this.session.getDisplayLine(Dn,null,Nn.row,Nn.column),Qn=zn.match(/^\s*/);Qn[0].length!=Pn&&!this.session.$useEmacsStyleLineStart&&(Nn.column+=Qn[0].length),this.moveCursorToPosition(Nn)},In.prototype.moveCursorLineEnd=function(){var Dn=this.lead,Pn=this.session.getDocumentLastRowColumnPosition(Dn.row,Dn.column);if(this.lead.column==Pn.column){var Bn=this.session.getLine(Pn.row);if(Pn.column==Bn.length){var Nn=Bn.search(/\s+$/);Nn>0&&(Pn.column=Nn)}}this.moveCursorTo(Pn.row,Pn.column)},In.prototype.moveCursorFileEnd=function(){var Dn=this.doc.getLength()-1,Pn=this.doc.getLine(Dn).length;this.moveCursorTo(Dn,Pn)},In.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},In.prototype.moveCursorLongWordRight=function(){var Dn=this.lead.row,Pn=this.lead.column,Bn=this.doc.getLine(Dn),Nn=Bn.substring(Pn);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var zn=this.session.getFoldAt(Dn,Pn,1);if(zn){this.moveCursorTo(zn.end.row,zn.end.column);return}if(this.session.nonTokenRe.exec(Nn)&&(Pn+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,Nn=Bn.substring(Pn)),Pn>=Bn.length){this.moveCursorTo(Dn,Bn.length),this.moveCursorRight(),Dn<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(Nn)&&(Pn+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Dn,Pn)},In.prototype.moveCursorLongWordLeft=function(){var Dn=this.lead.row,Pn=this.lead.column,Bn;if(Bn=this.session.getFoldAt(Dn,Pn,-1)){this.moveCursorTo(Bn.start.row,Bn.start.column);return}var Nn=this.session.getFoldStringAt(Dn,Pn,-1);Nn==null&&(Nn=this.doc.getLine(Dn).substring(0,Pn));var zn=Kn.stringReverse(Nn);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(zn)&&(Pn-=this.session.nonTokenRe.lastIndex,zn=zn.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),Pn<=0){this.moveCursorTo(Dn,0),this.moveCursorLeft(),Dn>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(zn)&&(Pn-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Dn,Pn)},In.prototype.$shortWordEndIndex=function(Dn){var Pn=0,Bn,Nn=/\s/,zn=this.session.tokenRe;if(zn.lastIndex=0,this.session.tokenRe.exec(Dn))Pn=this.session.tokenRe.lastIndex;else{for(;(Bn=Dn[Pn])&&Nn.test(Bn);)Pn++;if(Pn<1){for(zn.lastIndex=0;(Bn=Dn[Pn])&&!zn.test(Bn);)if(zn.lastIndex=0,Pn++,Nn.test(Bn))if(Pn>2){Pn--;break}else{for(;(Bn=Dn[Pn])&&Nn.test(Bn);)Pn++;if(Pn>2)break}}}return zn.lastIndex=0,Pn},In.prototype.moveCursorShortWordRight=function(){var Dn=this.lead.row,Pn=this.lead.column,Bn=this.doc.getLine(Dn),Nn=Bn.substring(Pn),zn=this.session.getFoldAt(Dn,Pn,1);if(zn)return this.moveCursorTo(zn.end.row,zn.end.column);if(Pn==Bn.length){var Qn=this.doc.getLength();do Dn++,Nn=this.doc.getLine(Dn);while(Dn<Qn&&/^\s*$/.test(Nn));/^\s+/.test(Nn)||(Nn=""),Pn=0}var Jn=this.$shortWordEndIndex(Nn);this.moveCursorTo(Dn,Pn+Jn)},In.prototype.moveCursorShortWordLeft=function(){var Dn=this.lead.row,Pn=this.lead.column,Bn;if(Bn=this.session.getFoldAt(Dn,Pn,-1))return this.moveCursorTo(Bn.start.row,Bn.start.column);var Nn=this.session.getLine(Dn).substring(0,Pn);if(Pn===0){do Dn--,Nn=this.doc.getLine(Dn);while(Dn>0&&/^\s*$/.test(Nn));Pn=Nn.length,/\s+$/.test(Nn)||(Nn="")}var zn=Kn.stringReverse(Nn),Qn=this.$shortWordEndIndex(zn);return this.moveCursorTo(Dn,Pn-Qn)},In.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},In.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},In.prototype.moveCursorBy=function(Dn,Pn){var Bn=this.session.documentToScreenPosition(this.lead.row,this.lead.column),Nn;if(Pn===0&&(Dn!==0&&(this.session.$bidiHandler.isBidiRow(Bn.row,this.lead.row)?(Nn=this.session.$bidiHandler.getPosLeft(Bn.column),Bn.column=Math.round(Nn/this.session.$bidiHandler.charWidths[0])):Nn=Bn.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?Bn.column=this.$desiredColumn:this.$desiredColumn=Bn.column),Dn!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var zn=this.session.lineWidgets[this.lead.row];Dn<0?Dn-=zn.rowsAbove||0:Dn>0&&(Dn+=zn.rowCount-(zn.rowsAbove||0))}var Qn=this.session.screenToDocumentPosition(Bn.row+Dn,Bn.column,Nn);Dn!==0&&Pn===0&&Qn.row===this.lead.row&&(Qn.column,this.lead.column),this.moveCursorTo(Qn.row,Qn.column+Pn,Pn===0)},In.prototype.moveCursorToPosition=function(Dn){this.moveCursorTo(Dn.row,Dn.column)},In.prototype.moveCursorTo=function(Dn,Pn,Bn){var Nn=this.session.getFoldAt(Dn,Pn,1);Nn&&(Dn=Nn.start.row,Pn=Nn.start.column),this.$keepDesiredColumnOnChange=!0;var zn=this.session.getLine(Dn);/[\uDC00-\uDFFF]/.test(zn.charAt(Pn))&&zn.charAt(Pn-1)&&(this.lead.row==Dn&&this.lead.column==Pn+1?Pn=Pn-1:Pn=Pn+1),this.lead.setPosition(Dn,Pn),this.$keepDesiredColumnOnChange=!1,Bn||(this.$desiredColumn=null)},In.prototype.moveCursorToScreen=function(Dn,Pn,Bn){var Nn=this.session.screenToDocumentPosition(Dn,Pn);this.moveCursorTo(Nn.row,Nn.column,Bn)},In.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},In.prototype.fromOrientedRange=function(Dn){this.setSelectionRange(Dn,Dn.cursor==Dn.start),this.$desiredColumn=Dn.desiredColumn||this.$desiredColumn},In.prototype.toOrientedRange=function(Dn){var Pn=this.getRange();return Dn?(Dn.start.column=Pn.start.column,Dn.start.row=Pn.start.row,Dn.end.column=Pn.end.column,Dn.end.row=Pn.end.row):Dn=Pn,Dn.cursor=this.isBackwards()?Dn.start:Dn.end,Dn.desiredColumn=this.$desiredColumn,Dn},In.prototype.getRangeOfMovements=function(Dn){var Pn=this.getCursor();try{Dn(this);var Bn=this.getCursor();return Hn.fromPoints(Pn,Bn)}catch{return Hn.fromPoints(Pn,Pn)}finally{this.moveCursorToPosition(Pn)}},In.prototype.toJSON=function(){if(this.rangeCount)var Dn=this.ranges.map(function(Pn){var Bn=Pn.clone();return Bn.isBackwards=Pn.cursor==Pn.start,Bn});else{var Dn=this.getRange();Dn.isBackwards=this.isBackwards()}return Dn},In.prototype.fromJSON=function(Dn){if(Dn.start==null)if(this.rangeList&&Dn.length>1){this.toSingleRange(Dn[0]);for(var Pn=Dn.length;Pn--;){var Bn=Hn.fromPoints(Dn[Pn].start,Dn[Pn].end);Dn[Pn].isBackwards&&(Bn.cursor=Bn.start),this.addRange(Bn,!0)}return}else Dn=Dn[0];this.rangeList&&this.toSingleRange(Dn),this.setSelectionRange(Dn,Dn.isBackwards)},In.prototype.isEqual=function(Dn){if((Dn.length||this.rangeCount)&&Dn.length!=this.rangeCount)return!1;if(!Dn.length||!this.ranges)return this.getRange().isEqual(Dn);for(var Pn=this.ranges.length;Pn--;)if(!this.ranges[Pn].isEqual(Dn[Pn]))return!1;return!0},In}();qn.prototype.setSelectionAnchor=qn.prototype.setAnchor,qn.prototype.getSelectionAnchor=qn.prototype.getAnchor,qn.prototype.setSelectionRange=qn.prototype.setRange,Wn.implement(qn.prototype,Xn),Mn.Selection=qn}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(kn,Mn,Yn){var Wn=kn("./lib/report_error").reportError,Kn=2e3,Xn=function(){function Hn(qn){this.splitRegex,this.states=qn,this.regExps={},this.matchMappings={};for(var In in this.states){for(var Dn=this.states[In],Pn=[],Bn=0,Nn=this.matchMappings[In]={defaultToken:"text"},zn="g",Qn=[],Jn=0;Jn<Dn.length;Jn++){var ti=Dn[Jn];if(ti.defaultToken&&(Nn.defaultToken=ti.defaultToken),ti.caseInsensitive&&zn.indexOf("i")===-1&&(zn+="i"),ti.unicode&&zn.indexOf("u")===-1&&(zn+="u"),ti.regex!=null){ti.regex instanceof RegExp&&(ti.regex=ti.regex.toString().slice(1,-1));var vi=ti.regex,pi=new RegExp("(?:("+vi+")|(.))").exec("a").length-2;Array.isArray(ti.token)?ti.token.length==1||pi==1?ti.token=ti.token[0]:pi-1!=ti.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:ti,groupCount:pi-1}),ti.token=ti.token[0]):(ti.tokenArray=ti.token,ti.token=null,ti.onMatch=this.$arrayTokens):typeof ti.token=="function"&&!ti.onMatch&&(pi>1?ti.onMatch=this.$applyToken:ti.onMatch=ti.token),pi>1&&(/\\\d/.test(ti.regex)?vi=ti.regex.replace(/\\([0-9]+)/g,function(si,ei){return"\\"+(parseInt(ei,10)+Bn+1)}):(pi=1,vi=this.removeCapturingGroups(ti.regex)),!ti.splitRegex&&typeof ti.token!="string"&&Qn.push(ti)),Nn[Bn]=Jn,Bn+=pi,Pn.push(vi),ti.onMatch||(ti.onMatch=null)}}Pn.length||(Nn[0]=0,Pn.push("$")),Qn.forEach(function(si){si.splitRegex=this.createSplitterRegexp(si.regex,zn)},this),this.regExps[In]=new RegExp("("+Pn.join(")|(")+")|($)",zn)}}return Hn.prototype.$setMaxTokenCount=function(qn){Kn=qn|0},Hn.prototype.$applyToken=function(qn){var In=this.splitRegex.exec(qn).slice(1),Dn=this.token.apply(this,In);if(typeof Dn=="string")return[{type:Dn,value:qn}];for(var Pn=[],Bn=0,Nn=Dn.length;Bn<Nn;Bn++)In[Bn]&&(Pn[Pn.length]={type:Dn[Bn],value:In[Bn]});return Pn},Hn.prototype.$arrayTokens=function(qn){if(!qn)return[];var In=this.splitRegex.exec(qn);if(!In)return"text";for(var Dn=[],Pn=this.tokenArray,Bn=0,Nn=Pn.length;Bn<Nn;Bn++)In[Bn+1]&&(Dn[Dn.length]={type:Pn[Bn],value:In[Bn+1]});return Dn},Hn.prototype.removeCapturingGroups=function(qn){var In=qn.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(Dn,Pn){return Pn?"(?:":Dn});return In},Hn.prototype.createSplitterRegexp=function(qn,In){if(qn.indexOf("(?=")!=-1){var Dn=0,Pn=!1,Bn={};qn.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(Nn,zn,Qn,Jn,ti,vi){return Pn?Pn=ti!="]":ti?Pn=!0:Jn?(Dn==Bn.stack&&(Bn.end=vi+1,Bn.stack=-1),Dn--):Qn&&(Dn++,Qn.length!=1&&(Bn.stack=Dn,Bn.start=vi)),Nn}),Bn.end!=null&&/^\)*$/.test(qn.substr(Bn.end))&&(qn=qn.substring(0,Bn.start)+qn.substr(Bn.end))}return qn.charAt(0)!="^"&&(qn="^"+qn),qn.charAt(qn.length-1)!="$"&&(qn+="$"),new RegExp(qn,(In||"").replace("g",""))},Hn.prototype.getLineTokens=function(qn,In){if(In&&typeof In!="string"){var Dn=In.slice(0);In=Dn[0],In==="#tmp"&&(Dn.shift(),In=Dn.shift())}else var Dn=[];var Pn=In||"start",Bn=this.states[Pn];Bn||(Pn="start",Bn=this.states[Pn]);var Nn=this.matchMappings[Pn],zn=this.regExps[Pn];zn.lastIndex=0;for(var Qn,Jn=[],ti=0,vi=0,pi={type:null,value:""};Qn=zn.exec(qn);){var si=Nn.defaultToken,ei=null,mi=Qn[0],fi=zn.lastIndex;if(fi-mi.length>ti){var yi=qn.substring(ti,fi-mi.length);pi.type==si?pi.value+=yi:(pi.type&&Jn.push(pi),pi={type:si,value:yi})}for(var gi=0;gi<Qn.length-2;gi++)if(Qn[gi+1]!==void 0){ei=Bn[Nn[gi]],ei.onMatch?si=ei.onMatch(mi,Pn,Dn,qn):si=ei.token,ei.next&&(typeof ei.next=="string"?Pn=ei.next:Pn=ei.next(Pn,Dn),Bn=this.states[Pn],Bn||(this.reportError("state doesn't exist",Pn),Pn="start",Bn=this.states[Pn]),Nn=this.matchMappings[Pn],ti=fi,zn=this.regExps[Pn],zn.lastIndex=fi),ei.consumeLineEnd&&(ti=fi);break}if(mi){if(typeof si=="string")(!ei||ei.merge!==!1)&&pi.type===si?pi.value+=mi:(pi.type&&Jn.push(pi),pi={type:si,value:mi});else if(si){pi.type&&Jn.push(pi),pi={type:null,value:""};for(var gi=0;gi<si.length;gi++)Jn.push(si[gi])}}if(ti==qn.length)break;if(ti=fi,vi++>Kn){for(vi>2*qn.length&&this.reportError("infinite loop with in ace tokenizer",{startState:In,line:qn});ti<qn.length;)pi.type&&Jn.push(pi),pi={value:qn.substring(ti,ti+=500),type:"overflow"};Pn="start",Dn=[];break}}return pi.type&&Jn.push(pi),Dn.length>1&&Dn[0]!==Pn&&Dn.unshift("#tmp",Pn),{tokens:Jn,state:Dn.length?Dn:Pn}},Hn}();Xn.prototype.reportError=Wn,Mn.Tokenizer=Xn}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(kn,Mn,Yn){var Wn=kn("../lib/deep_copy").deepCopy,Kn;Kn=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(qn,In){if(!In){for(var Dn in qn)this.$rules[Dn]=qn[Dn];return}for(var Dn in qn){for(var Pn=qn[Dn],Bn=0;Bn<Pn.length;Bn++){var Nn=Pn[Bn];(Nn.next||Nn.onMatch)&&(typeof Nn.next=="string"&&Nn.next.indexOf(In)!==0&&(Nn.next=In+Nn.next),Nn.nextState&&Nn.nextState.indexOf(In)!==0&&(Nn.nextState=In+Nn.nextState))}this.$rules[In+Dn]=Pn}},this.getRules=function(){return this.$rules},this.embedRules=function(qn,In,Dn,Pn,Bn){var Nn=typeof qn=="function"?new qn().getRules():qn;if(Pn)for(var zn=0;zn<Pn.length;zn++)Pn[zn]=In+Pn[zn];else{Pn=[];for(var Qn in Nn)Pn.push(In+Qn)}if(this.addRules(Nn,In),Dn)for(var Jn=Array.prototype[Bn?"push":"unshift"],zn=0;zn<Pn.length;zn++)Jn.apply(this.$rules[Pn[zn]],Wn(Dn));this.$embeds||(this.$embeds=[]),this.$embeds.push(In)},this.getEmbeds=function(){return this.$embeds};var Xn=function(qn,In){return(qn!="start"||In.length)&&In.unshift(this.nextState,qn),this.nextState},Hn=function(qn,In){return In.shift(),In.shift()||"start"};this.normalizeRules=function(){var qn=0,In=this.$rules;function Dn(Pn){var Bn=In[Pn];Bn.processed=!0;for(var Nn=0;Nn<Bn.length;Nn++){var zn=Bn[Nn],Qn=null;Array.isArray(zn)&&(Qn=zn,zn={}),!zn.regex&&zn.start&&(zn.regex=zn.start,zn.next||(zn.next=[]),zn.next.push({defaultToken:zn.token},{token:zn.token+".end",regex:zn.end||zn.start,next:"pop"}),zn.token=zn.token+".start",zn.push=!0);var Jn=zn.next||zn.push;if(Jn&&Array.isArray(Jn)){var ti=zn.stateName;ti||(ti=zn.token,typeof ti!="string"&&(ti=ti[0]||""),In[ti]&&(ti+=qn++)),In[ti]=Jn,zn.next=ti,Dn(ti)}else Jn=="pop"&&(zn.next=Hn);if(zn.push&&(zn.nextState=zn.next||zn.push,zn.next=Xn,delete zn.push),zn.rules)for(var vi in zn.rules)In[vi]?In[vi].push&&In[vi].push.apply(In[vi],zn.rules[vi]):In[vi]=zn.rules[vi];var pi=typeof zn=="string"?zn:zn.include;if(pi&&(pi==="$self"&&(pi="start"),Array.isArray(pi)?Qn=pi.map(function(ei){return In[ei]}):Qn=In[pi]),Qn){var si=[Nn,1].concat(Qn);zn.noEscape&&(si=si.filter(function(ei){return!ei.next})),Bn.splice.apply(Bn,si),Nn--}zn.keywordMap&&(zn.token=this.createKeywordMapper(zn.keywordMap,zn.defaultToken||"text",zn.caseInsensitive),delete zn.defaultToken)}}Object.keys(In).forEach(Dn,this)},this.createKeywordMapper=function(qn,In,Dn,Pn){var Bn=Object.create(null);return this.$keywordList=[],Object.keys(qn).forEach(function(Nn){for(var zn=qn[Nn],Qn=zn.split(Pn||"|"),Jn=Qn.length;Jn--;){var ti=Qn[Jn];this.$keywordList.push(ti),Dn&&(ti=ti.toLowerCase()),Bn[ti]=Nn}},this),qn=null,Dn?function(Nn){return Bn[Nn.toLowerCase()]||In}:function(Nn){return Bn[Nn]||In}},this.getKeywords=function(){return this.$keywords}}).call(Kn.prototype),Mn.TextHighlightRules=Kn}),ace.define("ace/mode/behaviour",["require","exports","module"],function(kn,Mn,Yn){var Wn;Wn=function(){this.$behaviours={}},(function(){this.add=function(Kn,Xn,Hn){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[Kn]:this.$behaviours[Kn]={}}this.$behaviours[Kn][Xn]=Hn},this.addBehaviours=function(Kn){for(var Xn in Kn)for(var Hn in Kn[Xn])this.add(Xn,Hn,Kn[Xn][Hn])},this.remove=function(Kn){this.$behaviours&&this.$behaviours[Kn]&&delete this.$behaviours[Kn]},this.inherit=function(Kn,Xn){if(typeof Kn=="function")var Hn=new Kn().getBehaviours(Xn);else var Hn=Kn.getBehaviours(Xn);this.addBehaviours(Hn)},this.getBehaviours=function(Kn){if(Kn){for(var Xn={},Hn=0;Hn<Kn.length;Hn++)this.$behaviours[Kn[Hn]]&&(Xn[Kn[Hn]]=this.$behaviours[Kn[Hn]]);return Xn}else return this.$behaviours}}).call(Wn.prototype),Mn.Behaviour=Wn}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(kn,Mn,Yn){var Wn=kn("./range").Range,Kn=function(){function Xn(Hn,qn,In){this.$session=Hn,this.$row=qn,this.$rowTokens=Hn.getTokens(qn);var Dn=Hn.getTokenAt(qn,In);this.$tokenIndex=Dn?Dn.index:-1}return Xn.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},Xn.prototype.stepForward=function(){this.$tokenIndex+=1;for(var Hn;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,Hn||(Hn=this.$session.getLength()),this.$row>=Hn)return this.$row=Hn-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},Xn.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},Xn.prototype.getCurrentTokenRow=function(){return this.$row},Xn.prototype.getCurrentTokenColumn=function(){var Hn=this.$rowTokens,qn=this.$tokenIndex,In=Hn[qn].start;if(In!==void 0)return In;for(In=0;qn>0;)qn-=1,In+=Hn[qn].value.length;return In},Xn.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},Xn.prototype.getCurrentTokenRange=function(){var Hn=this.$rowTokens[this.$tokenIndex],qn=this.getCurrentTokenColumn();return new Wn(this.$row,qn,this.$row,qn+Hn.value.length)},Xn}();Mn.TokenIterator=Kn}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("../behaviour").Behaviour,Xn=kn("../../token_iterator").TokenIterator,Hn=kn("../../lib/lang"),qn=["text","paren.rparen","rparen","paren","punctuation.operator"],In=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],Dn,Pn={},Bn={'"':'"',"'":"'"},Nn=function(Jn){var ti=-1;if(Jn.multiSelect&&(ti=Jn.selection.index,Pn.rangeCount!=Jn.multiSelect.rangeCount&&(Pn={rangeCount:Jn.multiSelect.rangeCount})),Pn[ti])return Dn=Pn[ti];Dn=Pn[ti]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},zn=function(Jn,ti,vi,pi){var si=Jn.end.row-Jn.start.row;return{text:vi+ti+pi,selection:[0,Jn.start.column+1,si,Jn.end.column+(si?0:1)]}},Qn;Qn=function(Jn){Jn=Jn||{},this.add("braces","insertion",function(ti,vi,pi,si,ei){var mi=pi.getCursorPosition(),fi=si.doc.getLine(mi.row);if(ei=="{"){Nn(pi);var yi=pi.getSelectionRange(),gi=si.doc.getTextRange(yi),xi=si.getTokenAt(mi.row,mi.column);if(gi!==""&&gi!=="{"&&pi.getWrapBehavioursEnabled())return zn(yi,gi,"{","}");if(xi&&/(?:string)\.quasi|\.xml/.test(xi.type)){var ai=[/tag\-(?:open|name)/,/attribute\-name/];return ai.some(function(Li){return Li.test(xi.type)})||/(string)\.quasi/.test(xi.type)&&xi.value[mi.column-xi.start-1]!=="$"?void 0:(Qn.recordAutoInsert(pi,si,"}"),{text:"{}",selection:[1,1]})}else if(Qn.isSaneInsertion(pi,si))return/[\]\}\)]/.test(fi[mi.column])||pi.inMultiSelectMode||Jn.braces?(Qn.recordAutoInsert(pi,si,"}"),{text:"{}",selection:[1,1]}):(Qn.recordMaybeInsert(pi,si,"{"),{text:"{",selection:[1,1]})}else if(ei=="}"){Nn(pi);var oi=fi.substring(mi.column,mi.column+1);if(oi=="}"){var li=si.$findOpeningBracket("}",{column:mi.column+1,row:mi.row});if(li!==null&&Qn.isAutoInsertedClosing(mi,fi,ei))return Qn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(ei==`
180
+ `||ei==`\r
181
+ `){Nn(pi);var wi="";Qn.isMaybeInsertedClosing(mi,fi)&&(wi=Hn.stringRepeat("}",Dn.maybeInsertedBrackets),Qn.clearMaybeInsertedClosing());var oi=fi.substring(mi.column,mi.column+1);if(oi==="}"){var bi=si.findMatchingBracket({row:mi.row,column:mi.column+1},"}");if(!bi)return null;var _i=this.$getIndent(si.getLine(bi.row))}else if(wi)var _i=this.$getIndent(fi);else{Qn.clearMaybeInsertedClosing();return}var Ti=_i+si.getTabString();return{text:`
182
+ `+Ti+`
183
+ `+_i+wi,selection:[1,Ti.length,1,Ti.length]}}else Qn.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(ti,vi,pi,si,ei){var mi=si.doc.getTextRange(ei);if(!ei.isMultiLine()&&mi=="{"){Nn(pi);var fi=si.doc.getLine(ei.start.row),yi=fi.substring(ei.end.column,ei.end.column+1);if(yi=="}")return ei.end.column++,ei;Dn.maybeInsertedBrackets--}}),this.add("parens","insertion",function(ti,vi,pi,si,ei){if(ei=="("){Nn(pi);var mi=pi.getSelectionRange(),fi=si.doc.getTextRange(mi);if(fi!==""&&pi.getWrapBehavioursEnabled())return zn(mi,fi,"(",")");if(Qn.isSaneInsertion(pi,si))return Qn.recordAutoInsert(pi,si,")"),{text:"()",selection:[1,1]}}else if(ei==")"){Nn(pi);var yi=pi.getCursorPosition(),gi=si.doc.getLine(yi.row),xi=gi.substring(yi.column,yi.column+1);if(xi==")"){var ai=si.$findOpeningBracket(")",{column:yi.column+1,row:yi.row});if(ai!==null&&Qn.isAutoInsertedClosing(yi,gi,ei))return Qn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(ti,vi,pi,si,ei){var mi=si.doc.getTextRange(ei);if(!ei.isMultiLine()&&mi=="("){Nn(pi);var fi=si.doc.getLine(ei.start.row),yi=fi.substring(ei.start.column+1,ei.start.column+2);if(yi==")")return ei.end.column++,ei}}),this.add("brackets","insertion",function(ti,vi,pi,si,ei){if(ei=="["){Nn(pi);var mi=pi.getSelectionRange(),fi=si.doc.getTextRange(mi);if(fi!==""&&pi.getWrapBehavioursEnabled())return zn(mi,fi,"[","]");if(Qn.isSaneInsertion(pi,si))return Qn.recordAutoInsert(pi,si,"]"),{text:"[]",selection:[1,1]}}else if(ei=="]"){Nn(pi);var yi=pi.getCursorPosition(),gi=si.doc.getLine(yi.row),xi=gi.substring(yi.column,yi.column+1);if(xi=="]"){var ai=si.$findOpeningBracket("]",{column:yi.column+1,row:yi.row});if(ai!==null&&Qn.isAutoInsertedClosing(yi,gi,ei))return Qn.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(ti,vi,pi,si,ei){var mi=si.doc.getTextRange(ei);if(!ei.isMultiLine()&&mi=="["){Nn(pi);var fi=si.doc.getLine(ei.start.row),yi=fi.substring(ei.start.column+1,ei.start.column+2);if(yi=="]")return ei.end.column++,ei}}),this.add("string_dquotes","insertion",function(ti,vi,pi,si,ei){var mi=si.$mode.$quotes||Bn;if(ei.length==1&&mi[ei]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(ei)!=-1)return;Nn(pi);var fi=ei,yi=pi.getSelectionRange(),gi=si.doc.getTextRange(yi);if(gi!==""&&(gi.length!=1||!mi[gi])&&pi.getWrapBehavioursEnabled())return zn(yi,gi,fi,fi);if(!gi){var xi=pi.getCursorPosition(),ai=si.doc.getLine(xi.row),oi=ai.substring(xi.column-1,xi.column),li=ai.substring(xi.column,xi.column+1),wi=si.getTokenAt(xi.row,xi.column),bi=si.getTokenAt(xi.row,xi.column+1);if(oi=="\\"&&wi&&/escape/.test(wi.type))return null;var _i=wi&&/string|escape/.test(wi.type),Ti=!bi||/string|escape/.test(bi.type),Li;if(li==fi)Li=_i!==Ti,Li&&/string\.end/.test(bi.type)&&(Li=!1);else{if(_i&&!Ti||_i&&Ti)return null;var Ri=si.$mode.tokenRe;Ri.lastIndex=0;var Ii=Ri.test(oi);Ri.lastIndex=0;var zi=Ri.test(li),Oi=si.$mode.$pairQuotesAfter,Bi=Oi&&Oi[fi]&&Oi[fi].test(oi);if(!Bi&&Ii||zi||li&&!/[\s;,.})\]\\]/.test(li))return null;var Yi=ai[xi.column-2];if(oi==fi&&(Yi==fi||Ri.test(Yi)))return null;Li=!0}return{text:Li?fi+fi:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(ti,vi,pi,si,ei){var mi=si.$mode.$quotes||Bn,fi=si.doc.getTextRange(ei);if(!ei.isMultiLine()&&mi.hasOwnProperty(fi)){Nn(pi);var yi=si.doc.getLine(ei.start.row),gi=yi.substring(ei.start.column+1,ei.start.column+2);if(gi==fi)return ei.end.column++,ei}}),Jn.closeDocComment!==!1&&this.add("doc comment end","insertion",function(ti,vi,pi,si,ei){if(ti==="doc-start"&&(ei===`
184
+ `||ei===`\r
185
+ `)&&pi.selection.isEmpty()){var mi=pi.getCursorPosition();if(mi.column===0)return;for(var fi=si.doc.getLine(mi.row),yi=si.doc.getLine(mi.row+1),gi=si.getTokens(mi.row),xi=0,ai=0;ai<gi.length;ai++){xi+=gi[ai].value.length;var oi=gi[ai];if(xi>=mi.column){if(xi===mi.column){if(!/\.doc/.test(oi.type))return;if(/\*\//.test(oi.value)){var li=gi[ai+1];if(!li||!/\.doc/.test(li.type))return}}var wi=mi.column-(xi-oi.value.length),bi=oi.value.indexOf("*/"),_i=oi.value.indexOf("/**",bi>-1?bi+2:0);if(_i!==-1&&wi>_i&&wi<_i+3||bi!==-1&&_i!==-1&&wi>=bi&&wi<=_i||!/\.doc/.test(oi.type))return;break}}var Ti=this.$getIndent(fi);if(/\s*\*/.test(yi))return/^\s*\*/.test(fi)?{text:ei+Ti+"* ",selection:[1,2+Ti.length,1,2+Ti.length]}:{text:ei+Ti+" * ",selection:[1,3+Ti.length,1,3+Ti.length]};if(/\/\*\*/.test(fi.substring(0,mi.column)))return{text:ei+Ti+" * "+ei+" "+Ti+"*/",selection:[1,4+Ti.length,1,4+Ti.length]}}})},Qn.isSaneInsertion=function(Jn,ti){var vi=Jn.getCursorPosition(),pi=new Xn(ti,vi.row,vi.column);if(!this.$matchTokenType(pi.getCurrentToken()||"text",qn)){if(/[)}\]]/.test(Jn.session.getLine(vi.row)[vi.column]))return!0;var si=new Xn(ti,vi.row,vi.column+1);if(!this.$matchTokenType(si.getCurrentToken()||"text",qn))return!1}return pi.stepForward(),pi.getCurrentTokenRow()!==vi.row||this.$matchTokenType(pi.getCurrentToken()||"text",In)},Qn.$matchTokenType=function(Jn,ti){return ti.indexOf(Jn.type||Jn)>-1},Qn.recordAutoInsert=function(Jn,ti,vi){var pi=Jn.getCursorPosition(),si=ti.doc.getLine(pi.row);this.isAutoInsertedClosing(pi,si,Dn.autoInsertedLineEnd[0])||(Dn.autoInsertedBrackets=0),Dn.autoInsertedRow=pi.row,Dn.autoInsertedLineEnd=vi+si.substr(pi.column),Dn.autoInsertedBrackets++},Qn.recordMaybeInsert=function(Jn,ti,vi){var pi=Jn.getCursorPosition(),si=ti.doc.getLine(pi.row);this.isMaybeInsertedClosing(pi,si)||(Dn.maybeInsertedBrackets=0),Dn.maybeInsertedRow=pi.row,Dn.maybeInsertedLineStart=si.substr(0,pi.column)+vi,Dn.maybeInsertedLineEnd=si.substr(pi.column),Dn.maybeInsertedBrackets++},Qn.isAutoInsertedClosing=function(Jn,ti,vi){return Dn.autoInsertedBrackets>0&&Jn.row===Dn.autoInsertedRow&&vi===Dn.autoInsertedLineEnd[0]&&ti.substr(Jn.column)===Dn.autoInsertedLineEnd},Qn.isMaybeInsertedClosing=function(Jn,ti){return Dn.maybeInsertedBrackets>0&&Jn.row===Dn.maybeInsertedRow&&ti.substr(Jn.column)===Dn.maybeInsertedLineEnd&&ti.substr(0,Jn.column)==Dn.maybeInsertedLineStart},Qn.popAutoInsertedClosing=function(){Dn.autoInsertedLineEnd=Dn.autoInsertedLineEnd.substr(1),Dn.autoInsertedBrackets--},Qn.clearMaybeInsertedClosing=function(){Dn&&(Dn.maybeInsertedBrackets=0,Dn.maybeInsertedRow=-1)},Wn.inherits(Qn,Kn),Mn.CstyleBehaviour=Qn}),ace.define("ace/unicode",["require","exports","module"],function(kn,Mn,Yn){for(var Wn=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],Kn=0,Xn=[],Hn=0;Hn<Wn.length;Hn+=2)Xn.push(Kn+=Wn[Hn]),Wn[Hn+1]&&Xn.push(45,Kn+=Wn[Hn+1]);Mn.wordChars=String.fromCharCode.apply(null,Xn)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(kn,Mn,Yn){var Wn=kn("../config"),Kn=kn("../tokenizer").Tokenizer,Xn=kn("./text_highlight_rules").TextHighlightRules,Hn=kn("./behaviour/cstyle").CstyleBehaviour,qn=kn("../unicode"),In=kn("../lib/lang"),Dn=kn("../token_iterator").TokenIterator,Pn=kn("../range").Range,Bn;Bn=function(){this.HighlightRules=Xn},(function(){this.$defaultBehaviour=new Hn,this.tokenRe=new RegExp("^["+qn.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+qn.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new Kn(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(Nn,zn,Qn,Jn){var ti=zn.doc,vi=!0,pi=!0,si=1/0,ei=zn.getTabSize(),mi=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var fi=this.lineCommentStart.map(In.escapeRegExp).join("|"),yi=this.lineCommentStart[0];else var fi=In.escapeRegExp(this.lineCommentStart),yi=this.lineCommentStart;fi=new RegExp("^(\\s*)(?:"+fi+") ?"),mi=zn.getUseSoftTabs();var gi=function(Li,Ri){var Ii=Li.match(fi);if(Ii){var zi=Ii[1].length,Oi=Ii[0].length;!li(Li,zi,Oi)&&Ii[0][Oi-1]==" "&&Oi--,ti.removeInLine(Ri,zi,Oi)}},xi=yi+" ",ai=function(Li,Ri){(!vi||/\S/.test(Li))&&(li(Li,si,si)?ti.insertInLine({row:Ri,column:si},xi):ti.insertInLine({row:Ri,column:si},yi))},oi=function(Li,Ri){return fi.test(Li)},li=function(Li,Ri,Ii){for(var zi=0;Ri--&&Li.charAt(Ri)==" ";)zi++;if(zi%ei!=0)return!1;for(var zi=0;Li.charAt(Ii++)==" ";)zi++;return ei>2?zi%ei!=ei-1:zi%ei==0}}else{if(!this.blockComment)return!1;var yi=this.blockComment.start,wi=this.blockComment.end,fi=new RegExp("^(\\s*)(?:"+In.escapeRegExp(yi)+")"),bi=new RegExp("(?:"+In.escapeRegExp(wi)+")\\s*$"),ai=function(Bi,Yi){oi(Bi,Yi)||(!vi||/\S/.test(Bi))&&(ti.insertInLine({row:Yi,column:Bi.length},wi),ti.insertInLine({row:Yi,column:si},yi))},gi=function(Bi,Yi){var Fi;(Fi=Bi.match(bi))&&ti.removeInLine(Yi,Bi.length-Fi[0].length,Bi.length),(Fi=Bi.match(fi))&&ti.removeInLine(Yi,Fi[1].length,Fi[0].length)},oi=function(Bi,Yi){if(fi.test(Bi))return!0;for(var Fi=zn.getTokens(Yi),Qi=0;Qi<Fi.length;Qi++)if(Fi[Qi].type==="comment")return!0}}function _i(Li){for(var Ri=Qn;Ri<=Jn;Ri++)Li(ti.getLine(Ri),Ri)}var Ti=1/0;_i(function(Li,Ri){var Ii=Li.search(/\S/);Ii!==-1?(Ii<si&&(si=Ii),pi&&!oi(Li,Ri)&&(pi=!1)):Ti>Li.length&&(Ti=Li.length)}),si==1/0&&(si=Ti,vi=!1,pi=!1),mi&&si%ei!=0&&(si=Math.floor(si/ei)*ei),_i(pi?gi:ai)},this.toggleBlockComment=function(Nn,zn,Qn,Jn){var ti=this.blockComment;if(ti){!ti.start&&ti[0]&&(ti=ti[0]);var vi=new Dn(zn,Jn.row,Jn.column),pi=vi.getCurrentToken();zn.selection;var si=zn.selection.toOrientedRange(),ei,mi;if(pi&&/comment/.test(pi.type)){for(var fi,yi;pi&&/comment/.test(pi.type);){var gi=pi.value.indexOf(ti.start);if(gi!=-1){var xi=vi.getCurrentTokenRow(),ai=vi.getCurrentTokenColumn()+gi;fi=new Pn(xi,ai,xi,ai+ti.start.length);break}pi=vi.stepBackward()}for(var vi=new Dn(zn,Jn.row,Jn.column),pi=vi.getCurrentToken();pi&&/comment/.test(pi.type);){var gi=pi.value.indexOf(ti.end);if(gi!=-1){var xi=vi.getCurrentTokenRow(),ai=vi.getCurrentTokenColumn()+gi;yi=new Pn(xi,ai,xi,ai+ti.end.length);break}pi=vi.stepForward()}yi&&zn.remove(yi),fi&&(zn.remove(fi),ei=fi.start.row,mi=-ti.start.length)}else mi=ti.start.length,ei=Qn.start.row,zn.insert(Qn.end,ti.end),zn.insert(Qn.start,ti.start);si.start.row==ei&&(si.start.column+=mi),si.end.row==ei&&(si.end.column+=mi),zn.selection.fromOrientedRange(si)}},this.getNextLineIndent=function(Nn,zn,Qn){return this.$getIndent(zn)},this.checkOutdent=function(Nn,zn,Qn){return!1},this.autoOutdent=function(Nn,zn,Qn){},this.$getIndent=function(Nn){return Nn.match(/^\s*/)[0]},this.createWorker=function(Nn){return null},this.createModeDelegates=function(Nn){this.$embeds=[],this.$modes={};for(var zn in Nn)if(Nn[zn]){var Qn=Nn[zn],Jn=Qn.prototype.$id,ti=Wn.$modes[Jn];ti||(Wn.$modes[Jn]=ti=new Qn),Wn.$modes[zn]||(Wn.$modes[zn]=ti),this.$embeds.push(zn),this.$modes[zn]=ti}for(var vi=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],pi=function(mi){(function(fi){var yi=vi[mi],gi=fi[yi];fi[vi[mi]]=function(){return this.$delegator(yi,arguments,gi)}})(si)},si=this,zn=0;zn<vi.length;zn++)pi(zn)},this.$delegator=function(Nn,zn,Qn){var Jn=zn[0]||"start";if(typeof Jn!="string"){if(Array.isArray(Jn[2])){var ti=Jn[2][Jn[2].length-1],vi=this.$modes[ti];if(vi)return vi[Nn].apply(vi,[Jn[1]].concat([].slice.call(zn,1)))}Jn=Jn[0]||"start"}for(var pi=0;pi<this.$embeds.length;pi++)if(this.$modes[this.$embeds[pi]]){var si=Jn.split(this.$embeds[pi]);if(!si[0]&&si[1]){zn[0]=si[1];var vi=this.$modes[this.$embeds[pi]];return vi[Nn].apply(vi,zn)}}var ei=Qn.apply(this,zn);return Qn?ei:void 0},this.transformAction=function(Nn,zn,Qn,Jn,ti){if(this.$behaviour){var vi=this.$behaviour.getBehaviours();for(var pi in vi)if(vi[pi][zn]){var si=vi[pi][zn].apply(this,arguments);if(si)return si}}},this.getKeywords=function(Nn){if(!this.completionKeywords){var zn=this.$tokenizer.rules,Qn=[];for(var Jn in zn)for(var ti=zn[Jn],vi=0,pi=ti.length;vi<pi;vi++)if(typeof ti[vi].token=="string")/keyword|support|storage/.test(ti[vi].token)&&Qn.push(ti[vi].regex);else if(typeof ti[vi].token=="object"){for(var si=0,ei=ti[vi].token.length;si<ei;si++)if(/keyword|support|storage/.test(ti[vi].token[si])){var Jn=ti[vi].regex.match(/\(.+?\)/g)[si];Qn.push(Jn.substr(1,Jn.length-2))}}this.completionKeywords=Qn}return Nn?Qn.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(Nn,zn,Qn,Jn){var ti=this.$keywordList||this.$createKeywordList();return ti.map(function(vi){return{name:vi,value:vi,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(Bn.prototype),Mn.Mode=Bn}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(kn,Mn,Yn){var Wn=kn("./lib/dom"),Kn=function(){function Xn(Hn){this.session=Hn,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return Xn.prototype.getRowLength=function(Hn){var qn;return this.lineWidgets?qn=this.lineWidgets[Hn]&&this.lineWidgets[Hn].rowCount||0:qn=0,!this.$useWrapMode||!this.$wrapData[Hn]?1+qn:this.$wrapData[Hn].length+1+qn},Xn.prototype.$getWidgetScreenLength=function(){var Hn=0;return this.lineWidgets.forEach(function(qn){qn&&qn.rowCount&&!qn.hidden&&(Hn+=qn.rowCount)}),Hn},Xn.prototype.$onChangeEditor=function(Hn){this.attach(Hn.editor)},Xn.prototype.attach=function(Hn){Hn&&Hn.widgetManager&&Hn.widgetManager!=this&&Hn.widgetManager.detach(),this.editor!=Hn&&(this.detach(),this.editor=Hn,Hn&&(Hn.widgetManager=this,Hn.renderer.on("beforeRender",this.measureWidgets),Hn.renderer.on("afterRender",this.renderWidgets)))},Xn.prototype.detach=function(Hn){var qn=this.editor;if(qn){this.editor=null,qn.widgetManager=null,qn.renderer.off("beforeRender",this.measureWidgets),qn.renderer.off("afterRender",this.renderWidgets);var In=this.session.lineWidgets;In&&In.forEach(function(Dn){Dn&&Dn.el&&Dn.el.parentNode&&(Dn._inDocument=!1,Dn.el.parentNode.removeChild(Dn.el))})}},Xn.prototype.updateOnFold=function(Hn,qn){var In=qn.lineWidgets;if(!(!In||!Hn.action)){for(var Dn=Hn.data,Pn=Dn.start.row,Bn=Dn.end.row,Nn=Hn.action=="add",zn=Pn+1;zn<Bn;zn++)In[zn]&&(In[zn].hidden=Nn);In[Bn]&&(Nn?In[Pn]?In[Bn].hidden=Nn:In[Pn]=In[Bn]:(In[Pn]==In[Bn]&&(In[Pn]=void 0),In[Bn].hidden=Nn))}},Xn.prototype.updateOnChange=function(Hn){var qn=this.session.lineWidgets;if(qn){var In=Hn.start.row,Dn=Hn.end.row-In;if(Dn!==0)if(Hn.action=="remove"){var Pn=qn.splice(In+1,Dn);!qn[In]&&Pn[Pn.length-1]&&(qn[In]=Pn.pop()),Pn.forEach(function(Nn){Nn&&this.removeLineWidget(Nn)},this),this.$updateRows()}else{var Bn=new Array(Dn);qn[In]&&qn[In].column!=null&&Hn.start.column>qn[In].column&&In++,Bn.unshift(In,0),qn.splice.apply(qn,Bn),this.$updateRows()}}},Xn.prototype.$updateRows=function(){var Hn=this.session.lineWidgets;if(Hn){var qn=!0;Hn.forEach(function(In,Dn){if(In)for(qn=!1,In.row=Dn;In.$oldWidget;)In.$oldWidget.row=Dn,In=In.$oldWidget}),qn&&(this.session.lineWidgets=null)}},Xn.prototype.$registerLineWidget=function(Hn){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var qn=this.session.lineWidgets[Hn.row];return qn&&(Hn.$oldWidget=qn,qn.el&&qn.el.parentNode&&(qn.el.parentNode.removeChild(qn.el),qn._inDocument=!1)),this.session.lineWidgets[Hn.row]=Hn,Hn},Xn.prototype.addLineWidget=function(Hn){if(this.$registerLineWidget(Hn),Hn.session=this.session,!this.editor)return Hn;var qn=this.editor.renderer;Hn.html&&!Hn.el&&(Hn.el=Wn.createElement("div"),Hn.el.innerHTML=Hn.html),Hn.text&&!Hn.el&&(Hn.el=Wn.createElement("div"),Hn.el.textContent=Hn.text),Hn.el&&(Wn.addCssClass(Hn.el,"ace_lineWidgetContainer"),Hn.className&&Wn.addCssClass(Hn.el,Hn.className),Hn.el.style.position="absolute",Hn.el.style.zIndex="5",qn.container.appendChild(Hn.el),Hn._inDocument=!0,Hn.coverGutter||(Hn.el.style.zIndex="3"),Hn.pixelHeight==null&&(Hn.pixelHeight=Hn.el.offsetHeight)),Hn.rowCount==null&&(Hn.rowCount=Hn.pixelHeight/qn.layerConfig.lineHeight);var In=this.session.getFoldAt(Hn.row,0);if(Hn.$fold=In,In){var Dn=this.session.lineWidgets;Hn.row==In.end.row&&!Dn[In.start.row]?Dn[In.start.row]=Hn:Hn.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:Hn.row}}}),this.$updateRows(),this.renderWidgets(null,qn),this.onWidgetChanged(Hn),Hn},Xn.prototype.removeLineWidget=function(Hn){if(Hn._inDocument=!1,Hn.session=null,Hn.el&&Hn.el.parentNode&&Hn.el.parentNode.removeChild(Hn.el),Hn.editor&&Hn.editor.destroy)try{Hn.editor.destroy()}catch{}if(this.session.lineWidgets){var qn=this.session.lineWidgets[Hn.row];if(qn==Hn)this.session.lineWidgets[Hn.row]=Hn.$oldWidget,Hn.$oldWidget&&this.onWidgetChanged(Hn.$oldWidget);else for(;qn;){if(qn.$oldWidget==Hn){qn.$oldWidget=Hn.$oldWidget;break}qn=qn.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:Hn.row}}}),this.$updateRows()},Xn.prototype.getWidgetsAtRow=function(Hn){for(var qn=this.session.lineWidgets,In=qn&&qn[Hn],Dn=[];In;)Dn.push(In),In=In.$oldWidget;return Dn},Xn.prototype.onWidgetChanged=function(Hn){this.session._changedWidgets.push(Hn),this.editor&&this.editor.renderer.updateFull()},Xn.prototype.measureWidgets=function(Hn,qn){var In=this.session._changedWidgets,Dn=qn.layerConfig;if(!(!In||!In.length)){for(var Pn=1/0,Bn=0;Bn<In.length;Bn++){var Nn=In[Bn];if(!(!Nn||!Nn.el)&&Nn.session==this.session){if(!Nn._inDocument){if(this.session.lineWidgets[Nn.row]!=Nn)continue;Nn._inDocument=!0,qn.container.appendChild(Nn.el)}Nn.h=Nn.el.offsetHeight,Nn.fixedWidth||(Nn.w=Nn.el.offsetWidth,Nn.screenWidth=Math.ceil(Nn.w/Dn.characterWidth));var zn=Nn.h/Dn.lineHeight;Nn.coverLine&&(zn-=this.session.getRowLineCount(Nn.row),zn<0&&(zn=0)),Nn.rowCount!=zn&&(Nn.rowCount=zn,Nn.row<Pn&&(Pn=Nn.row))}}Pn!=1/0&&(this.session._emit("changeFold",{data:{start:{row:Pn}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},Xn.prototype.renderWidgets=function(Hn,qn){var In=qn.layerConfig,Dn=this.session.lineWidgets;if(Dn){for(var Pn=Math.min(this.firstRow,In.firstRow),Bn=Math.max(this.lastRow,In.lastRow,Dn.length);Pn>0&&!Dn[Pn];)Pn--;this.firstRow=In.firstRow,this.lastRow=In.lastRow,qn.$cursorLayer.config=In;for(var Nn=Pn;Nn<=Bn;Nn++){var zn=Dn[Nn];if(!(!zn||!zn.el)){if(zn.hidden){zn.el.style.top=-100-(zn.pixelHeight||0)+"px";continue}zn._inDocument||(zn._inDocument=!0,qn.container.appendChild(zn.el));var Qn=qn.$cursorLayer.getPixelPosition({row:Nn,column:0},!0).top;zn.coverLine||(Qn+=In.lineHeight*this.session.getRowLineCount(zn.row)),zn.el.style.top=Qn-In.offset+"px";var Jn=zn.coverGutter?0:qn.gutterWidth;zn.fixedWidth||(Jn-=qn.scrollLeft),zn.el.style.left=Jn+"px",zn.fullWidth&&zn.screenWidth&&(zn.el.style.minWidth=In.width+2*In.padding+"px"),zn.fixedWidth?zn.el.style.right=qn.scrollBar.getWidth()+"px":zn.el.style.right=""}}}},Xn}();Mn.LineWidgets=Kn}),ace.define("ace/apply_delta",["require","exports","module"],function(kn,Mn,Yn){Mn.applyDelta=function(Wn,Kn,Xn){var Hn=Kn.start.row,qn=Kn.start.column,In=Wn[Hn]||"";switch(Kn.action){case"insert":var Dn=Kn.lines;if(Dn.length===1)Wn[Hn]=In.substring(0,qn)+Kn.lines[0]+In.substring(qn);else{var Pn=[Hn,1].concat(Kn.lines);Wn.splice.apply(Wn,Pn),Wn[Hn]=In.substring(0,qn)+Wn[Hn],Wn[Hn+Kn.lines.length-1]+=In.substring(qn)}break;case"remove":var Bn=Kn.end.column,Nn=Kn.end.row;Hn===Nn?Wn[Hn]=In.substring(0,qn)+In.substring(Bn):Wn.splice(Hn,Nn-Hn+1,In.substring(0,qn)+Wn[Nn].substring(Bn));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(kn,Mn,Yn){var Wn=kn("./lib/oop"),Kn=kn("./lib/event_emitter").EventEmitter,Xn=function(){function In(Dn,Pn,Bn){this.$onChange=this.onChange.bind(this),this.attach(Dn),typeof Pn!="number"?this.setPosition(Pn.row,Pn.column):this.setPosition(Pn,Bn)}return In.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},In.prototype.getDocument=function(){return this.document},In.prototype.onChange=function(Dn){if(!(Dn.start.row==Dn.end.row&&Dn.start.row!=this.row)&&!(Dn.start.row>this.row)){var Pn=qn(Dn,{row:this.row,column:this.column},this.$insertRight);this.setPosition(Pn.row,Pn.column,!0)}},In.prototype.setPosition=function(Dn,Pn,Bn){var Nn;if(Bn?Nn={row:Dn,column:Pn}:Nn=this.$clipPositionToDocument(Dn,Pn),!(this.row==Nn.row&&this.column==Nn.column)){var zn={row:this.row,column:this.column};this.row=Nn.row,this.column=Nn.column,this._signal("change",{old:zn,value:Nn})}},In.prototype.detach=function(){this.document.off("change",this.$onChange)},In.prototype.attach=function(Dn){this.document=Dn||this.document,this.document.on("change",this.$onChange)},In.prototype.$clipPositionToDocument=function(Dn,Pn){var Bn={};return Dn>=this.document.getLength()?(Bn.row=Math.max(0,this.document.getLength()-1),Bn.column=this.document.getLine(Bn.row).length):Dn<0?(Bn.row=0,Bn.column=0):(Bn.row=Dn,Bn.column=Math.min(this.document.getLine(Bn.row).length,Math.max(0,Pn))),Pn<0&&(Bn.column=0),Bn},In}();Xn.prototype.$insertRight=!1,Wn.implement(Xn.prototype,Kn);function Hn(In,Dn,Pn){var Bn=Pn?In.column<=Dn.column:In.column<Dn.column;return In.row<Dn.row||In.row==Dn.row&&Bn}function qn(In,Dn,Pn){var Bn=In.action=="insert",Nn=(Bn?1:-1)*(In.end.row-In.start.row),zn=(Bn?1:-1)*(In.end.column-In.start.column),Qn=In.start,Jn=Bn?Qn:In.end;return Hn(Dn,Qn,Pn)?{row:Dn.row,column:Dn.column}:Hn(Jn,Dn,!Pn)?{row:Dn.row+Nn,column:Dn.column+(Dn.row==Jn.row?zn:0)}:{row:Qn.row,column:Qn.column}}Mn.Anchor=Xn}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(kn,Mn,Yn){var Wn=kn("./lib/oop"),Kn=kn("./apply_delta").applyDelta,Xn=kn("./lib/event_emitter").EventEmitter,Hn=kn("./range").Range,qn=kn("./anchor").Anchor,In=function(){function Dn(Pn){this.$lines=[""],Pn.length===0?this.$lines=[""]:Array.isArray(Pn)?this.insertMergedLines({row:0,column:0},Pn):this.insert({row:0,column:0},Pn)}return Dn.prototype.setValue=function(Pn){var Bn=this.getLength()-1;this.remove(new Hn(0,0,Bn,this.getLine(Bn).length)),this.insert({row:0,column:0},Pn||"")},Dn.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},Dn.prototype.createAnchor=function(Pn,Bn){return new qn(this,Pn,Bn)},Dn.prototype.$detectNewLine=function(Pn){var Bn=Pn.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=Bn?Bn[1]:`
186
+ `,this._signal("changeNewLineMode")},Dn.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
187
+ `;case"unix":return`
188
+ `;default:return this.$autoNewLine||`
189
+ `}},Dn.prototype.setNewLineMode=function(Pn){this.$newLineMode!==Pn&&(this.$newLineMode=Pn,this._signal("changeNewLineMode"))},Dn.prototype.getNewLineMode=function(){return this.$newLineMode},Dn.prototype.isNewLine=function(Pn){return Pn==`\r
190
+ `||Pn=="\r"||Pn==`
191
+ `},Dn.prototype.getLine=function(Pn){return this.$lines[Pn]||""},Dn.prototype.getLines=function(Pn,Bn){return this.$lines.slice(Pn,Bn+1)},Dn.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},Dn.prototype.getLength=function(){return this.$lines.length},Dn.prototype.getTextRange=function(Pn){return this.getLinesForRange(Pn).join(this.getNewLineCharacter())},Dn.prototype.getLinesForRange=function(Pn){var Bn;if(Pn.start.row===Pn.end.row)Bn=[this.getLine(Pn.start.row).substring(Pn.start.column,Pn.end.column)];else{Bn=this.getLines(Pn.start.row,Pn.end.row),Bn[0]=(Bn[0]||"").substring(Pn.start.column);var Nn=Bn.length-1;Pn.end.row-Pn.start.row==Nn&&(Bn[Nn]=Bn[Nn].substring(0,Pn.end.column))}return Bn},Dn.prototype.insertLines=function(Pn,Bn){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(Pn,Bn)},Dn.prototype.removeLines=function(Pn,Bn){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(Pn,Bn)},Dn.prototype.insertNewLine=function(Pn){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(Pn,["",""])},Dn.prototype.insert=function(Pn,Bn){return this.getLength()<=1&&this.$detectNewLine(Bn),this.insertMergedLines(Pn,this.$split(Bn))},Dn.prototype.insertInLine=function(Pn,Bn){var Nn=this.clippedPos(Pn.row,Pn.column),zn=this.pos(Pn.row,Pn.column+Bn.length);return this.applyDelta({start:Nn,end:zn,action:"insert",lines:[Bn]},!0),this.clonePos(zn)},Dn.prototype.clippedPos=function(Pn,Bn){var Nn=this.getLength();Pn===void 0?Pn=Nn:Pn<0?Pn=0:Pn>=Nn&&(Pn=Nn-1,Bn=void 0);var zn=this.getLine(Pn);return Bn==null&&(Bn=zn.length),Bn=Math.min(Math.max(Bn,0),zn.length),{row:Pn,column:Bn}},Dn.prototype.clonePos=function(Pn){return{row:Pn.row,column:Pn.column}},Dn.prototype.pos=function(Pn,Bn){return{row:Pn,column:Bn}},Dn.prototype.$clipPosition=function(Pn){var Bn=this.getLength();return Pn.row>=Bn?(Pn.row=Math.max(0,Bn-1),Pn.column=this.getLine(Bn-1).length):(Pn.row=Math.max(0,Pn.row),Pn.column=Math.min(Math.max(Pn.column,0),this.getLine(Pn.row).length)),Pn},Dn.prototype.insertFullLines=function(Pn,Bn){Pn=Math.min(Math.max(Pn,0),this.getLength());var Nn=0;Pn<this.getLength()?(Bn=Bn.concat([""]),Nn=0):(Bn=[""].concat(Bn),Pn--,Nn=this.$lines[Pn].length),this.insertMergedLines({row:Pn,column:Nn},Bn)},Dn.prototype.insertMergedLines=function(Pn,Bn){var Nn=this.clippedPos(Pn.row,Pn.column),zn={row:Nn.row+Bn.length-1,column:(Bn.length==1?Nn.column:0)+Bn[Bn.length-1].length};return this.applyDelta({start:Nn,end:zn,action:"insert",lines:Bn}),this.clonePos(zn)},Dn.prototype.remove=function(Pn){var Bn=this.clippedPos(Pn.start.row,Pn.start.column),Nn=this.clippedPos(Pn.end.row,Pn.end.column);return this.applyDelta({start:Bn,end:Nn,action:"remove",lines:this.getLinesForRange({start:Bn,end:Nn})}),this.clonePos(Bn)},Dn.prototype.removeInLine=function(Pn,Bn,Nn){var zn=this.clippedPos(Pn,Bn),Qn=this.clippedPos(Pn,Nn);return this.applyDelta({start:zn,end:Qn,action:"remove",lines:this.getLinesForRange({start:zn,end:Qn})},!0),this.clonePos(zn)},Dn.prototype.removeFullLines=function(Pn,Bn){Pn=Math.min(Math.max(0,Pn),this.getLength()-1),Bn=Math.min(Math.max(0,Bn),this.getLength()-1);var Nn=Bn==this.getLength()-1&&Pn>0,zn=Bn<this.getLength()-1,Qn=Nn?Pn-1:Pn,Jn=Nn?this.getLine(Qn).length:0,ti=zn?Bn+1:Bn,vi=zn?0:this.getLine(ti).length,pi=new Hn(Qn,Jn,ti,vi),si=this.$lines.slice(Pn,Bn+1);return this.applyDelta({start:pi.start,end:pi.end,action:"remove",lines:this.getLinesForRange(pi)}),si},Dn.prototype.removeNewLine=function(Pn){Pn<this.getLength()-1&&Pn>=0&&this.applyDelta({start:this.pos(Pn,this.getLine(Pn).length),end:this.pos(Pn+1,0),action:"remove",lines:["",""]})},Dn.prototype.replace=function(Pn,Bn){if(Pn instanceof Hn||(Pn=Hn.fromPoints(Pn.start,Pn.end)),Bn.length===0&&Pn.isEmpty())return Pn.start;if(Bn==this.getTextRange(Pn))return Pn.end;this.remove(Pn);var Nn;return Bn?Nn=this.insert(Pn.start,Bn):Nn=Pn.start,Nn},Dn.prototype.applyDeltas=function(Pn){for(var Bn=0;Bn<Pn.length;Bn++)this.applyDelta(Pn[Bn])},Dn.prototype.revertDeltas=function(Pn){for(var Bn=Pn.length-1;Bn>=0;Bn--)this.revertDelta(Pn[Bn])},Dn.prototype.applyDelta=function(Pn,Bn){var Nn=Pn.action=="insert";(Nn?Pn.lines.length<=1&&!Pn.lines[0]:!Hn.comparePoints(Pn.start,Pn.end))||(Nn&&Pn.lines.length>2e4?this.$splitAndapplyLargeDelta(Pn,2e4):(Kn(this.$lines,Pn,Bn),this._signal("change",Pn)))},Dn.prototype.$safeApplyDelta=function(Pn){var Bn=this.$lines.length;(Pn.action=="remove"&&Pn.start.row<Bn&&Pn.end.row<Bn||Pn.action=="insert"&&Pn.start.row<=Bn)&&this.applyDelta(Pn)},Dn.prototype.$splitAndapplyLargeDelta=function(Pn,Bn){for(var Nn=Pn.lines,zn=Nn.length-Bn+1,Qn=Pn.start.row,Jn=Pn.start.column,ti=0,vi=0;ti<zn;ti=vi){vi+=Bn-1;var pi=Nn.slice(ti,vi);pi.push(""),this.applyDelta({start:this.pos(Qn+ti,Jn),end:this.pos(Qn+vi,Jn=0),action:Pn.action,lines:pi},!0)}Pn.lines=Nn.slice(ti),Pn.start.row=Qn+ti,Pn.start.column=Jn,this.applyDelta(Pn,!0)},Dn.prototype.revertDelta=function(Pn){this.$safeApplyDelta({start:this.clonePos(Pn.start),end:this.clonePos(Pn.end),action:Pn.action=="insert"?"remove":"insert",lines:Pn.lines.slice()})},Dn.prototype.indexToPosition=function(Pn,Bn){for(var Nn=this.$lines||this.getAllLines(),zn=this.getNewLineCharacter().length,Qn=Bn||0,Jn=Nn.length;Qn<Jn;Qn++)if(Pn-=Nn[Qn].length+zn,Pn<0)return{row:Qn,column:Pn+Nn[Qn].length+zn};return{row:Jn-1,column:Pn+Nn[Jn-1].length+zn}},Dn.prototype.positionToIndex=function(Pn,Bn){for(var Nn=this.$lines||this.getAllLines(),zn=this.getNewLineCharacter().length,Qn=0,Jn=Math.min(Pn.row,Nn.length),ti=Bn||0;ti<Jn;++ti)Qn+=Nn[ti].length+zn;return Qn+Pn.column},Dn.prototype.$split=function(Pn){return Pn.split(/\r\n|\r|\n/)},Dn}();In.prototype.$autoNewLine="",In.prototype.$newLineMode="auto",Wn.implement(In.prototype,Xn),Mn.Document=In}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(kn,Mn,Yn){var Wn=kn("./lib/oop"),Kn=kn("./lib/event_emitter").EventEmitter,Xn=function(){function Hn(qn,In){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=qn;var Dn=this;this.$worker=function(){if(Dn.running){for(var Pn=new Date,Bn=Dn.currentLine,Nn=-1,zn=Dn.doc,Qn=Bn;Dn.lines[Bn];)Bn++;var Jn=zn.getLength(),ti=0;for(Dn.running=!1;Bn<Jn;){Dn.$tokenizeRow(Bn),Nn=Bn;do Bn++;while(Dn.lines[Bn]);if(ti++,ti%5===0&&new Date-Pn>20){Dn.running=setTimeout(Dn.$worker,20);break}}Dn.currentLine=Bn,Nn==-1&&(Nn=Bn),Qn<=Nn&&Dn.fireUpdateEvent(Qn,Nn)}}}return Hn.prototype.setTokenizer=function(qn){this.tokenizer=qn,this.lines=[],this.states=[],this.start(0)},Hn.prototype.setDocument=function(qn){this.doc=qn,this.lines=[],this.states=[],this.stop()},Hn.prototype.fireUpdateEvent=function(qn,In){var Dn={first:qn,last:In};this._signal("update",{data:Dn})},Hn.prototype.start=function(qn){this.currentLine=Math.min(qn||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},Hn.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},Hn.prototype.$updateOnChange=function(qn){var In=qn.start.row,Dn=qn.end.row-In;if(Dn===0)this.lines[In]=null;else if(qn.action=="remove")this.lines.splice(In,Dn+1,null),this.states.splice(In,Dn+1,null);else{var Pn=Array(Dn+1);Pn.unshift(In,1),this.lines.splice.apply(this.lines,Pn),this.states.splice.apply(this.states,Pn)}this.currentLine=Math.min(In,this.currentLine,this.doc.getLength()),this.stop()},Hn.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},Hn.prototype.getTokens=function(qn){return this.lines[qn]||this.$tokenizeRow(qn)},Hn.prototype.getState=function(qn){return this.currentLine==qn&&this.$tokenizeRow(qn),this.states[qn]||"start"},Hn.prototype.$tokenizeRow=function(qn){var In=this.doc.getLine(qn),Dn=this.states[qn-1],Pn=this.tokenizer.getLineTokens(In,Dn,qn);return this.states[qn]+""!=Pn.state+""?(this.states[qn]=Pn.state,this.lines[qn+1]=null,this.currentLine>qn+1&&(this.currentLine=qn+1)):this.currentLine==qn&&(this.currentLine=qn+1),this.lines[qn]=Pn.tokens},Hn.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},Hn}();Wn.implement(Xn.prototype,Kn),Mn.BackgroundTokenizer=Xn}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(kn,Mn,Yn){var Wn=kn("./lib/lang"),Kn=kn("./range").Range,Xn=function(){function Hn(qn,In,Dn){Dn===void 0&&(Dn="text"),this.setRegexp(qn),this.clazz=In,this.type=Dn}return Hn.prototype.setRegexp=function(qn){this.regExp+""!=qn+""&&(this.regExp=qn,this.cache=[])},Hn.prototype.update=function(qn,In,Dn,Pn){if(this.regExp)for(var Bn=Pn.firstRow,Nn=Pn.lastRow,zn={},Qn=Bn;Qn<=Nn;Qn++){var Jn=this.cache[Qn];Jn==null&&(Jn=Wn.getMatchOffsets(Dn.getLine(Qn),this.regExp),Jn.length>this.MAX_RANGES&&(Jn=Jn.slice(0,this.MAX_RANGES)),Jn=Jn.map(function(si){return new Kn(Qn,si.offset,Qn,si.offset+si.length)}),this.cache[Qn]=Jn.length?Jn:"");for(var ti=Jn.length;ti--;){var vi=Jn[ti].toScreenRange(Dn),pi=vi.toString();zn[pi]||(zn[pi]=!0,In.drawSingleLineMarker(qn,vi,this.clazz,Pn))}}},Hn}();Xn.prototype.MAX_RANGES=500,Mn.SearchHighlight=Xn}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(kn,Mn,Yn){var Wn=function(){function si(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return si.prototype.addSession=function(ei){this.$session=ei},si.prototype.add=function(ei,mi,fi){if(!this.$fromUndo&&ei!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),mi===!1||!this.lastDeltas){this.lastDeltas=[];var yi=this.$undoStack.length;yi>this.$undoDepth-1&&this.$undoStack.splice(0,yi-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),ei.id=this.$rev=++this.$maxRev}(ei.action=="remove"||ei.action=="insert")&&(this.$lastDelta=ei),this.lastDeltas.push(ei)}},si.prototype.addSelection=function(ei,mi){this.selections.push({value:ei,rev:mi||this.$rev})},si.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},si.prototype.markIgnored=function(ei,mi){mi==null&&(mi=this.$rev+1);for(var fi=this.$undoStack,yi=fi.length;yi--;){var gi=fi[yi][0];if(gi.id<=ei)break;gi.id<mi&&(gi.ignore=!0)}this.lastDeltas=null},si.prototype.getSelection=function(ei,mi){for(var fi=this.selections,yi=fi.length;yi--;){var gi=fi[yi];if(gi.rev<ei)return mi&&(gi=fi[yi+1]),gi}},si.prototype.getRevision=function(){return this.$rev},si.prototype.getDeltas=function(ei,mi){mi==null&&(mi=this.$rev+1);for(var fi=this.$undoStack,yi=null,gi=0,xi=fi.length;xi--;){var ai=fi[xi][0];if(ai.id<mi&&!yi&&(yi=xi+1),ai.id<=ei){gi=xi+1;break}}return fi.slice(gi,yi)},si.prototype.getChangedRanges=function(ei,mi){mi==null&&(mi=this.$rev+1)},si.prototype.getChangedLines=function(ei,mi){mi==null&&(mi=this.$rev+1)},si.prototype.undo=function(ei,mi){this.lastDeltas=null;var fi=this.$undoStack;if(Kn(fi,fi.length)){ei||(ei=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var yi=fi.pop(),gi=null;return yi&&(gi=ei.undoChanges(yi,mi),this.$redoStack.push(yi),this.$syncRev()),this.$fromUndo=!1,gi}},si.prototype.redo=function(ei,mi){if(this.lastDeltas=null,ei||(ei=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var fi=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);pi(this.$redoStack,fi),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(xi){xi[0].id=++this.$maxRev},this)}var yi=this.$redoStack.pop(),gi=null;return yi&&(gi=ei.redoChanges(yi,mi),this.$undoStack.push(yi),this.$syncRev()),this.$fromUndo=!1,gi},si.prototype.$syncRev=function(){var ei=this.$undoStack,mi=ei[ei.length-1],fi=mi&&mi[0].id||0;this.$redoStackBaseRev=fi,this.$rev=fi},si.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},si.prototype.canUndo=function(){return this.$undoStack.length>0},si.prototype.canRedo=function(){return this.$redoStack.length>0},si.prototype.bookmark=function(ei){ei==null&&(ei=this.$rev),this.mark=ei},si.prototype.isAtBookmark=function(){return this.$rev===this.mark},si.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},si.prototype.fromJSON=function(ei){this.reset(),this.$undoStack=ei.$undoStack,this.$redoStack=ei.$redoStack},si.prototype.$prettyPrint=function(ei){return ei?Dn(ei):Dn(this.$undoStack)+`
192
+ ---
193
+ `+Dn(this.$redoStack)},si}();Wn.prototype.hasUndo=Wn.prototype.canUndo,Wn.prototype.hasRedo=Wn.prototype.canRedo,Wn.prototype.isClean=Wn.prototype.isAtBookmark,Wn.prototype.markClean=Wn.prototype.bookmark;function Kn(si,ei){for(var mi=ei;mi--;){var fi=si[mi];if(fi&&!fi[0].ignore){for(;mi<ei-1;){var yi=Nn(si[mi],si[mi+1]);si[mi]=yi[0],si[mi+1]=yi[1],mi++}return!0}}}var Xn=kn("./range").Range,Hn=Xn.comparePoints;Xn.comparePoints;function qn(si){return{row:si.row,column:si.column}}function In(si){return{start:qn(si.start),end:qn(si.end),action:si.action,lines:si.lines.slice()}}function Dn(si){if(si=si||this,Array.isArray(si))return si.map(Dn).join(`
194
+ `);var ei="";return si.action?(ei=si.action=="insert"?"+":"-",ei+="["+si.lines+"]"):si.value&&(Array.isArray(si.value)?ei=si.value.map(Pn).join(`
195
+ `):ei=Pn(si.value)),si.start&&(ei+=Pn(si)),(si.id||si.rev)&&(ei+=" ("+(si.id||si.rev)+")"),ei}function Pn(si){return si.start.row+":"+si.start.column+"=>"+si.end.row+":"+si.end.column}function Bn(si,ei){var mi=si.action=="insert",fi=ei.action=="insert";if(mi&&fi)if(Hn(ei.start,si.end)>=0)Qn(ei,si,-1);else if(Hn(ei.start,si.start)<=0)Qn(si,ei,1);else return null;else if(mi&&!fi)if(Hn(ei.start,si.end)>=0)Qn(ei,si,-1);else if(Hn(ei.end,si.start)<=0)Qn(si,ei,-1);else return null;else if(!mi&&fi)if(Hn(ei.start,si.start)>=0)Qn(ei,si,1);else if(Hn(ei.start,si.start)<=0)Qn(si,ei,1);else return null;else if(!mi&&!fi)if(Hn(ei.start,si.start)>=0)Qn(ei,si,1);else if(Hn(ei.end,si.start)<=0)Qn(si,ei,-1);else return null;return[ei,si]}function Nn(si,ei){for(var mi=si.length;mi--;)for(var fi=0;fi<ei.length;fi++)if(!Bn(si[mi],ei[fi])){for(;mi<si.length;){for(;fi--;)Bn(ei[fi],si[mi]);fi=ei.length,mi++}return[si,ei]}return si.selectionBefore=ei.selectionBefore=si.selectionAfter=ei.selectionAfter=null,[ei,si]}function zn(si,ei){var mi=si.action=="insert",fi=ei.action=="insert";if(mi&&fi)Hn(si.start,ei.start)<0?Qn(ei,si,1):Qn(si,ei,1);else if(mi&&!fi)Hn(si.start,ei.end)>=0?Qn(si,ei,-1):(Hn(si.start,ei.start)<=0||Qn(si,Xn.fromPoints(ei.start,si.start),-1),Qn(ei,si,1));else if(!mi&&fi)Hn(ei.start,si.end)>=0?Qn(ei,si,-1):(Hn(ei.start,si.start)<=0||Qn(ei,Xn.fromPoints(si.start,ei.start),-1),Qn(si,ei,1));else if(!mi&&!fi)if(Hn(ei.start,si.end)>=0)Qn(ei,si,-1);else if(Hn(ei.end,si.start)<=0)Qn(si,ei,-1);else{var yi,gi;return Hn(si.start,ei.start)<0&&(yi=si,si=ti(si,ei.start)),Hn(si.end,ei.end)>0&&(gi=ti(si,ei.end)),Jn(ei.end,si.start,si.end,-1),gi&&!yi&&(si.lines=gi.lines,si.start=gi.start,si.end=gi.end,gi=si),[ei,yi,gi].filter(Boolean)}return[ei,si]}function Qn(si,ei,mi){Jn(si.start,ei.start,ei.end,mi),Jn(si.end,ei.start,ei.end,mi)}function Jn(si,ei,mi,fi){si.row==(fi==1?ei:mi).row&&(si.column+=fi*(mi.column-ei.column)),si.row+=fi*(mi.row-ei.row)}function ti(si,ei){var mi=si.lines,fi=si.end;si.end=qn(ei);var yi=si.end.row-si.start.row,gi=mi.splice(yi,mi.length),xi=yi?ei.column:ei.column-si.start.column;mi.push(gi[0].substring(0,xi)),gi[0]=gi[0].substr(xi);var ai={start:qn(ei),end:fi,lines:gi,action:si.action};return ai}function vi(si,ei){ei=In(ei);for(var mi=si.length;mi--;){for(var fi=si[mi],yi=0;yi<fi.length;yi++){var gi=fi[yi],xi=zn(gi,ei);ei=xi[0],xi.length!=2&&(xi[2]?(fi.splice(yi+1,1,xi[1],xi[2]),yi++):xi[1]||(fi.splice(yi,1),yi--))}fi.length||si.splice(mi,1)}return si}function pi(si,ei){for(var mi=0;mi<ei.length;mi++)for(var fi=ei[mi],yi=0;yi<fi.length;yi++)vi(si,fi[yi])}Mn.UndoManager=Wn}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(kn,Mn,Yn){var Wn=kn("../range").Range,Kn=function(){function Xn(Hn,qn){this.foldData=Hn,Array.isArray(qn)?this.folds=qn:qn=this.folds=[qn];var In=qn[qn.length-1];this.range=new Wn(qn[0].start.row,qn[0].start.column,In.end.row,In.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(Dn){Dn.setFoldLine(this)},this)}return Xn.prototype.shiftRow=function(Hn){this.start.row+=Hn,this.end.row+=Hn,this.folds.forEach(function(qn){qn.start.row+=Hn,qn.end.row+=Hn})},Xn.prototype.addFold=function(Hn){if(Hn.sameRow){if(Hn.start.row<this.startRow||Hn.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(Hn),this.folds.sort(function(qn,In){return-qn.range.compareEnd(In.start.row,In.start.column)}),this.range.compareEnd(Hn.start.row,Hn.start.column)>0?(this.end.row=Hn.end.row,this.end.column=Hn.end.column):this.range.compareStart(Hn.end.row,Hn.end.column)<0&&(this.start.row=Hn.start.row,this.start.column=Hn.start.column)}else if(Hn.start.row==this.end.row)this.folds.push(Hn),this.end.row=Hn.end.row,this.end.column=Hn.end.column;else if(Hn.end.row==this.start.row)this.folds.unshift(Hn),this.start.row=Hn.start.row,this.start.column=Hn.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");Hn.foldLine=this},Xn.prototype.containsRow=function(Hn){return Hn>=this.start.row&&Hn<=this.end.row},Xn.prototype.walk=function(Hn,qn,In){var Dn=0,Pn=this.folds,Bn,Nn,zn,Qn=!0;qn==null&&(qn=this.end.row,In=this.end.column);for(var Jn=0;Jn<Pn.length;Jn++){if(Bn=Pn[Jn],Nn=Bn.range.compareStart(qn,In),Nn==-1){Hn(null,qn,In,Dn,Qn);return}if(zn=Hn(null,Bn.start.row,Bn.start.column,Dn,Qn),zn=!zn&&Hn(Bn.placeholder,Bn.start.row,Bn.start.column,Dn),zn||Nn===0)return;Qn=!Bn.sameRow,Dn=Bn.end.column}Hn(null,qn,In,Dn,Qn)},Xn.prototype.getNextFoldTo=function(Hn,qn){for(var In,Dn,Pn=0;Pn<this.folds.length;Pn++){if(In=this.folds[Pn],Dn=In.range.compareEnd(Hn,qn),Dn==-1)return{fold:In,kind:"after"};if(Dn===0)return{fold:In,kind:"inside"}}return null},Xn.prototype.addRemoveChars=function(Hn,qn,In){var Dn=this.getNextFoldTo(Hn,qn),Pn,Bn;if(Dn){if(Pn=Dn.fold,Dn.kind=="inside"&&Pn.start.column!=qn&&Pn.start.row!=Hn)window.console&&window.console.log(Hn,qn,Pn);else if(Pn.start.row==Hn){Bn=this.folds;var Nn=Bn.indexOf(Pn);for(Nn===0&&(this.start.column+=In),Nn;Nn<Bn.length;Nn++){if(Pn=Bn[Nn],Pn.start.column+=In,!Pn.sameRow)return;Pn.end.column+=In}this.end.column+=In}}},Xn.prototype.split=function(Hn,qn){var In=this.getNextFoldTo(Hn,qn);if(!In||In.kind=="inside")return null;var Dn=In.fold,Pn=this.folds,Bn=this.foldData,Nn=Pn.indexOf(Dn),zn=Pn[Nn-1];this.end.row=zn.end.row,this.end.column=zn.end.column,Pn=Pn.splice(Nn,Pn.length-Nn);var Qn=new Xn(Bn,Pn);return Bn.splice(Bn.indexOf(this)+1,0,Qn),Qn},Xn.prototype.merge=function(Hn){for(var qn=Hn.folds,In=0;In<qn.length;In++)this.addFold(qn[In]);var Dn=this.foldData;Dn.splice(Dn.indexOf(Hn),1)},Xn.prototype.toString=function(){var Hn=[this.range.toString()+": ["];return this.folds.forEach(function(qn){Hn.push(" "+qn.toString())}),Hn.push("]"),Hn.join(`
196
+ `)},Xn.prototype.idxToPosition=function(Hn){for(var qn=0,In=0;In<this.folds.length;In++){var Dn=this.folds[In];if(Hn-=Dn.start.column-qn,Hn<0)return{row:Dn.start.row,column:Dn.start.column+Hn};if(Hn-=Dn.placeholder.length,Hn<0)return Dn.start;qn=Dn.end.column}return{row:this.end.row,column:this.end.column+Hn}},Xn}();Mn.FoldLine=Kn}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(kn,Mn,Yn){var Wn=kn("./range").Range,Kn=Wn.comparePoints,Xn=function(){function Hn(){this.ranges=[],this.$bias=1}return Hn.prototype.pointIndex=function(qn,In,Dn){for(var Pn=this.ranges,Bn=Dn||0;Bn<Pn.length;Bn++){var Nn=Pn[Bn],zn=Kn(qn,Nn.end);if(!(zn>0)){var Qn=Kn(qn,Nn.start);return zn===0?In&&Qn!==0?-Bn-2:Bn:Qn>0||Qn===0&&!In?Bn:-Bn-1}}return-Bn-1},Hn.prototype.add=function(qn){var In=!qn.isEmpty(),Dn=this.pointIndex(qn.start,In);Dn<0&&(Dn=-Dn-1);var Pn=this.pointIndex(qn.end,In,Dn);return Pn<0?Pn=-Pn-1:Pn++,this.ranges.splice(Dn,Pn-Dn,qn)},Hn.prototype.addList=function(qn){for(var In=[],Dn=qn.length;Dn--;)In.push.apply(In,this.add(qn[Dn]));return In},Hn.prototype.substractPoint=function(qn){var In=this.pointIndex(qn);if(In>=0)return this.ranges.splice(In,1)},Hn.prototype.merge=function(){var qn=[],In=this.ranges;In=In.sort(function(zn,Qn){return Kn(zn.start,Qn.start)});for(var Dn=In[0],Pn,Bn=1;Bn<In.length;Bn++){Pn=Dn,Dn=In[Bn];var Nn=Kn(Pn.end,Dn.start);Nn<0||Nn==0&&!Pn.isEmpty()&&!Dn.isEmpty()||(Kn(Pn.end,Dn.end)<0&&(Pn.end.row=Dn.end.row,Pn.end.column=Dn.end.column),In.splice(Bn,1),qn.push(Dn),Dn=Pn,Bn--)}return this.ranges=In,qn},Hn.prototype.contains=function(qn,In){return this.pointIndex({row:qn,column:In})>=0},Hn.prototype.containsPoint=function(qn){return this.pointIndex(qn)>=0},Hn.prototype.rangeAtPoint=function(qn){var In=this.pointIndex(qn);if(In>=0)return this.ranges[In]},Hn.prototype.clipRows=function(qn,In){var Dn=this.ranges;if(Dn[0].start.row>In||Dn[Dn.length-1].start.row<qn)return[];var Pn=this.pointIndex({row:qn,column:0});Pn<0&&(Pn=-Pn-1);var Bn=this.pointIndex({row:In,column:0},Pn);Bn<0&&(Bn=-Bn-1);for(var Nn=[],zn=Pn;zn<Bn;zn++)Nn.push(Dn[zn]);return Nn},Hn.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},Hn.prototype.attach=function(qn){this.session&&this.detach(),this.session=qn,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},Hn.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},Hn.prototype.$onChange=function(qn){for(var In=qn.start,Dn=qn.end,Pn=In.row,Bn=Dn.row,Nn=this.ranges,zn=0,Qn=Nn.length;zn<Qn;zn++){var Jn=Nn[zn];if(Jn.end.row>=Pn)break}if(qn.action=="insert")for(var ti=Bn-Pn,vi=-In.column+Dn.column;zn<Qn;zn++){var Jn=Nn[zn];if(Jn.start.row>Pn)break;if(Jn.start.row==Pn&&Jn.start.column>=In.column&&(Jn.start.column==In.column&&this.$bias<=0||(Jn.start.column+=vi,Jn.start.row+=ti)),Jn.end.row==Pn&&Jn.end.column>=In.column){if(Jn.end.column==In.column&&this.$bias<0)continue;Jn.end.column==In.column&&vi>0&&zn<Qn-1&&Jn.end.column>Jn.start.column&&Jn.end.column==Nn[zn+1].start.column&&(Jn.end.column-=vi),Jn.end.column+=vi,Jn.end.row+=ti}}else for(var ti=Pn-Bn,vi=In.column-Dn.column;zn<Qn;zn++){var Jn=Nn[zn];if(Jn.start.row>Bn)break;Jn.end.row<Bn&&(Pn<Jn.end.row||Pn==Jn.end.row&&In.column<Jn.end.column)?(Jn.end.row=Pn,Jn.end.column=In.column):Jn.end.row==Bn?Jn.end.column<=Dn.column?(ti||Jn.end.column>In.column)&&(Jn.end.column=In.column,Jn.end.row=In.row):(Jn.end.column+=vi,Jn.end.row+=ti):Jn.end.row>Bn&&(Jn.end.row+=ti),Jn.start.row<Bn&&(Pn<Jn.start.row||Pn==Jn.start.row&&In.column<Jn.start.column)?(Jn.start.row=Pn,Jn.start.column=In.column):Jn.start.row==Bn?Jn.start.column<=Dn.column?(ti||Jn.start.column>In.column)&&(Jn.start.column=In.column,Jn.start.row=In.row):(Jn.start.column+=vi,Jn.start.row+=ti):Jn.start.row>Bn&&(Jn.start.row+=ti)}if(ti!=0&&zn<Qn)for(;zn<Qn;zn++){var Jn=Nn[zn];Jn.start.row+=ti,Jn.end.row+=ti}},Hn}();Xn.prototype.comparePoints=Kn,Mn.RangeList=Xn}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(kn,Mn,Yn){var Wn=this&&this.__extends||function(){var Pn=function(Bn,Nn){return Pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(zn,Qn){zn.__proto__=Qn}||function(zn,Qn){for(var Jn in Qn)Object.prototype.hasOwnProperty.call(Qn,Jn)&&(zn[Jn]=Qn[Jn])},Pn(Bn,Nn)};return function(Bn,Nn){if(typeof Nn!="function"&&Nn!==null)throw new TypeError("Class extends value "+String(Nn)+" is not a constructor or null");Pn(Bn,Nn);function zn(){this.constructor=Bn}Bn.prototype=Nn===null?Object.create(Nn):(zn.prototype=Nn.prototype,new zn)}}(),Kn=kn("../range_list").RangeList,Xn=function(Pn){Wn(Bn,Pn);function Bn(Nn,zn){var Qn=Pn.call(this)||this;return Qn.foldLine=null,Qn.placeholder=zn,Qn.range=Nn,Qn.start=Nn.start,Qn.end=Nn.end,Qn.sameRow=Nn.start.row==Nn.end.row,Qn.subFolds=Qn.ranges=[],Qn}return Bn.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},Bn.prototype.setFoldLine=function(Nn){this.foldLine=Nn,this.subFolds.forEach(function(zn){zn.setFoldLine(Nn)})},Bn.prototype.clone=function(){var Nn=this.range.clone(),zn=new Bn(Nn,this.placeholder);return this.subFolds.forEach(function(Qn){zn.subFolds.push(Qn.clone())}),zn.collapseChildren=this.collapseChildren,zn},Bn.prototype.addSubFold=function(Nn){if(!this.range.isEqual(Nn)){qn(Nn,this.start);for(var zn=Nn.start.row,Qn=Nn.start.column,Jn=0,ti=-1;Jn<this.subFolds.length&&(ti=this.subFolds[Jn].range.compare(zn,Qn),ti==1);Jn++);var vi=this.subFolds[Jn],pi=0;if(ti==0){if(vi.range.containsRange(Nn))return vi.addSubFold(Nn);pi=1}for(var zn=Nn.range.end.row,Qn=Nn.range.end.column,si=Jn,ti=-1;si<this.subFolds.length&&(ti=this.subFolds[si].range.compare(zn,Qn),ti==1);si++);ti==0&&si++;for(var ei=this.subFolds.splice(Jn,si-Jn,Nn),mi=ti==0?ei.length-1:ei.length,fi=pi;fi<mi;fi++)Nn.addSubFold(ei[fi]);return Nn.setFoldLine(this.foldLine),Nn}},Bn.prototype.restoreRange=function(Nn){return Dn(Nn,this.start)},Bn}(Kn);function Hn(Pn,Bn){Pn.row-=Bn.row,Pn.row==0&&(Pn.column-=Bn.column)}function qn(Pn,Bn){Hn(Pn.start,Bn),Hn(Pn.end,Bn)}function In(Pn,Bn){Pn.row==0&&(Pn.column+=Bn.column),Pn.row+=Bn.row}function Dn(Pn,Bn){In(Pn.start,Bn),In(Pn.end,Bn)}Mn.Fold=Xn}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(kn,Mn,Yn){var Wn=kn("../range").Range,Kn=kn("./fold_line").FoldLine,Xn=kn("./fold").Fold,Hn=kn("../token_iterator").TokenIterator,qn=kn("../mouse/mouse_event").MouseEvent;function In(){this.getFoldAt=function(Dn,Pn,Bn){var Nn=this.getFoldLine(Dn);if(!Nn)return null;for(var zn=Nn.folds,Qn=0;Qn<zn.length;Qn++){var Jn=zn[Qn].range;if(Jn.contains(Dn,Pn)){if(Bn==1&&Jn.isEnd(Dn,Pn)&&!Jn.isEmpty()||Bn==-1&&Jn.isStart(Dn,Pn)&&!Jn.isEmpty())continue;return zn[Qn]}}},this.getFoldsInRange=function(Dn){var Pn=Dn.start,Bn=Dn.end,Nn=this.$foldData,zn=[];Pn.column+=1,Bn.column-=1;for(var Qn=0;Qn<Nn.length;Qn++){var Jn=Nn[Qn].range.compareRange(Dn);if(Jn!=2){if(Jn==-2)break;for(var ti=Nn[Qn].folds,vi=0;vi<ti.length;vi++){var pi=ti[vi];if(Jn=pi.range.compareRange(Dn),Jn==-2)break;if(Jn!=2){if(Jn==42)break;zn.push(pi)}}}}return Pn.column-=1,Bn.column+=1,zn},this.getFoldsInRangeList=function(Dn){if(Array.isArray(Dn)){var Pn=[];Dn.forEach(function(Nn){Pn=Pn.concat(this.getFoldsInRange(Nn))},this)}else var Pn=this.getFoldsInRange(Dn);return Pn},this.getAllFolds=function(){for(var Dn=[],Pn=this.$foldData,Bn=0;Bn<Pn.length;Bn++)for(var Nn=0;Nn<Pn[Bn].folds.length;Nn++)Dn.push(Pn[Bn].folds[Nn]);return Dn},this.getFoldStringAt=function(Dn,Pn,Bn,Nn){if(Nn=Nn||this.getFoldLine(Dn),!Nn)return null;for(var zn={end:{column:0}},Qn,Jn,ti=0;ti<Nn.folds.length;ti++){Jn=Nn.folds[ti];var vi=Jn.range.compareEnd(Dn,Pn);if(vi==-1){Qn=this.getLine(Jn.start.row).substring(zn.end.column,Jn.start.column);break}else if(vi===0)return null;zn=Jn}return Qn||(Qn=this.getLine(Jn.start.row).substring(zn.end.column)),Bn==-1?Qn.substring(0,Pn-zn.end.column):Bn==1?Qn.substring(Pn-zn.end.column):Qn},this.getFoldLine=function(Dn,Pn){var Bn=this.$foldData,Nn=0;for(Pn&&(Nn=Bn.indexOf(Pn)),Nn==-1&&(Nn=0),Nn;Nn<Bn.length;Nn++){var zn=Bn[Nn];if(zn.start.row<=Dn&&zn.end.row>=Dn)return zn;if(zn.end.row>Dn)return null}return null},this.getNextFoldLine=function(Dn,Pn){var Bn=this.$foldData,Nn=0;for(Pn&&(Nn=Bn.indexOf(Pn)),Nn==-1&&(Nn=0),Nn;Nn<Bn.length;Nn++){var zn=Bn[Nn];if(zn.end.row>=Dn)return zn}return null},this.getFoldedRowCount=function(Dn,Pn){for(var Bn=this.$foldData,Nn=Pn-Dn+1,zn=0;zn<Bn.length;zn++){var Qn=Bn[zn],Jn=Qn.end.row,ti=Qn.start.row;if(Jn>=Pn){ti<Pn&&(ti>=Dn?Nn-=Pn-ti:Nn=0);break}else Jn>=Dn&&(ti>=Dn?Nn-=Jn-ti:Nn-=Jn-Dn+1)}return Nn},this.$addFoldLine=function(Dn){return this.$foldData.push(Dn),this.$foldData.sort(function(Pn,Bn){return Pn.start.row-Bn.start.row}),Dn},this.addFold=function(Dn,Pn){var Bn=this.$foldData,Nn=!1,zn;Dn instanceof Xn?zn=Dn:(zn=new Xn(Pn,Dn),zn.collapseChildren=Pn.collapseChildren),this.$clipRangeToDocument(zn.range);var Qn=zn.start.row,Jn=zn.start.column,ti=zn.end.row,vi=zn.end.column,pi=this.getFoldAt(Qn,Jn,1),si=this.getFoldAt(ti,vi,-1);if(pi&&si==pi)return pi.addSubFold(zn);pi&&!pi.range.isStart(Qn,Jn)&&this.removeFold(pi),si&&!si.range.isEnd(ti,vi)&&this.removeFold(si);var ei=this.getFoldsInRange(zn.range);ei.length>0&&(this.removeFolds(ei),zn.collapseChildren||ei.forEach(function(gi){zn.addSubFold(gi)}));for(var mi=0;mi<Bn.length;mi++){var fi=Bn[mi];if(ti==fi.start.row){fi.addFold(zn),Nn=!0;break}else if(Qn==fi.end.row){if(fi.addFold(zn),Nn=!0,!zn.sameRow){var yi=Bn[mi+1];if(yi&&yi.start.row==ti){fi.merge(yi);break}}break}else if(ti<=fi.start.row)break}return Nn||(fi=this.$addFoldLine(new Kn(this.$foldData,zn))),this.$useWrapMode?this.$updateWrapData(fi.start.row,fi.start.row):this.$updateRowLengthCache(fi.start.row,fi.start.row),this.$modified=!0,this._signal("changeFold",{data:zn,action:"add"}),zn},this.addFolds=function(Dn){Dn.forEach(function(Pn){this.addFold(Pn)},this)},this.removeFold=function(Dn){var Pn=Dn.foldLine,Bn=Pn.start.row,Nn=Pn.end.row,zn=this.$foldData,Qn=Pn.folds;if(Qn.length==1)zn.splice(zn.indexOf(Pn),1);else if(Pn.range.isEnd(Dn.end.row,Dn.end.column))Qn.pop(),Pn.end.row=Qn[Qn.length-1].end.row,Pn.end.column=Qn[Qn.length-1].end.column;else if(Pn.range.isStart(Dn.start.row,Dn.start.column))Qn.shift(),Pn.start.row=Qn[0].start.row,Pn.start.column=Qn[0].start.column;else if(Dn.sameRow)Qn.splice(Qn.indexOf(Dn),1);else{var Jn=Pn.split(Dn.start.row,Dn.start.column);Qn=Jn.folds,Qn.shift(),Jn.start.row=Qn[0].start.row,Jn.start.column=Qn[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(Bn,Nn):this.$updateRowLengthCache(Bn,Nn)),this.$modified=!0,this._signal("changeFold",{data:Dn,action:"remove"})},this.removeFolds=function(Dn){for(var Pn=[],Bn=0;Bn<Dn.length;Bn++)Pn.push(Dn[Bn]);Pn.forEach(function(Nn){this.removeFold(Nn)},this),this.$modified=!0},this.expandFold=function(Dn){this.removeFold(Dn),Dn.subFolds.forEach(function(Pn){Dn.restoreRange(Pn),this.addFold(Pn)},this),Dn.collapseChildren>0&&this.foldAll(Dn.start.row+1,Dn.end.row,Dn.collapseChildren-1),Dn.subFolds=[]},this.expandFolds=function(Dn){Dn.forEach(function(Pn){this.expandFold(Pn)},this)},this.unfold=function(Dn,Pn){var Bn,Nn;if(Dn==null)Bn=new Wn(0,0,this.getLength(),0),Pn==null&&(Pn=!0);else if(typeof Dn=="number")Bn=new Wn(Dn,0,Dn,this.getLine(Dn).length);else if("row"in Dn)Bn=Wn.fromPoints(Dn,Dn);else{if(Array.isArray(Dn))return Nn=[],Dn.forEach(function(Qn){Nn=Nn.concat(this.unfold(Qn))},this),Nn;Bn=Dn}Nn=this.getFoldsInRangeList(Bn);for(var zn=Nn;Nn.length==1&&Wn.comparePoints(Nn[0].start,Bn.start)<0&&Wn.comparePoints(Nn[0].end,Bn.end)>0;)this.expandFolds(Nn),Nn=this.getFoldsInRangeList(Bn);if(Pn!=!1?this.removeFolds(Nn):this.expandFolds(Nn),zn.length)return zn},this.isRowFolded=function(Dn,Pn){return!!this.getFoldLine(Dn,Pn)},this.getRowFoldEnd=function(Dn,Pn){var Bn=this.getFoldLine(Dn,Pn);return Bn?Bn.end.row:Dn},this.getRowFoldStart=function(Dn,Pn){var Bn=this.getFoldLine(Dn,Pn);return Bn?Bn.start.row:Dn},this.getFoldDisplayLine=function(Dn,Pn,Bn,Nn,zn){Nn==null&&(Nn=Dn.start.row),zn==null&&(zn=0),Pn==null&&(Pn=Dn.end.row),Bn==null&&(Bn=this.getLine(Pn).length);var Qn=this.doc,Jn="";return Dn.walk(function(ti,vi,pi,si){if(!(vi<Nn)){if(vi==Nn){if(pi<zn)return;si=Math.max(zn,si)}ti!=null?Jn+=ti:Jn+=Qn.getLine(vi).substring(si,pi)}},Pn,Bn),Jn},this.getDisplayLine=function(Dn,Pn,Bn,Nn){var zn=this.getFoldLine(Dn);if(zn)return this.getFoldDisplayLine(zn,Dn,Pn,Bn,Nn);var Qn;return Qn=this.doc.getLine(Dn),Qn.substring(Nn||0,Pn||Qn.length)},this.$cloneFoldData=function(){var Dn=[];return Dn=this.$foldData.map(function(Pn){var Bn=Pn.folds.map(function(Nn){return Nn.clone()});return new Kn(Dn,Bn)}),Dn},this.toggleFold=function(Dn){var Pn=this.selection,Bn=Pn.getRange(),Nn,zn;if(Bn.isEmpty()){var Qn=Bn.start;if(Nn=this.getFoldAt(Qn.row,Qn.column),Nn){this.expandFold(Nn);return}else(zn=this.findMatchingBracket(Qn))?Bn.comparePoint(zn)==1?Bn.end=zn:(Bn.start=zn,Bn.start.column++,Bn.end.column--):(zn=this.findMatchingBracket({row:Qn.row,column:Qn.column+1}))?(Bn.comparePoint(zn)==1?Bn.end=zn:Bn.start=zn,Bn.start.column++):Bn=this.getCommentFoldRange(Qn.row,Qn.column)||Bn}else{var Jn=this.getFoldsInRange(Bn);if(Dn&&Jn.length){this.expandFolds(Jn);return}else Jn.length==1&&(Nn=Jn[0])}if(Nn||(Nn=this.getFoldAt(Bn.start.row,Bn.start.column)),Nn&&Nn.range.toString()==Bn.toString()){this.expandFold(Nn);return}var ti="...";if(!Bn.isMultiLine()){if(ti=this.getTextRange(Bn),ti.length<4)return;ti=ti.trim().substring(0,2)+".."}this.addFold(ti,Bn)},this.getCommentFoldRange=function(Dn,Pn,Bn){var Nn=new Hn(this,Dn,Pn),zn=Nn.getCurrentToken(),Qn=zn&&zn.type;if(zn&&/^comment|string/.test(Qn)){Qn=Qn.match(/comment|string/)[0],Qn=="comment"&&(Qn+="|doc-start|\\.doc");var Jn=new RegExp(Qn),ti=new Wn;if(Bn!=1){do zn=Nn.stepBackward();while(zn&&Jn.test(zn.type));zn=Nn.stepForward()}ti.start.row=Nn.getCurrentTokenRow(),ti.start.column=Nn.getCurrentTokenColumn()+zn.value.length,Nn=new Hn(this,Dn,Pn);var vi=this.getState(Nn.$row);if(Bn!=-1){var pi=-1;do if(zn=Nn.stepForward(),pi==-1){var si=this.getState(Nn.$row);vi.toString()!==si.toString()&&(pi=Nn.$row)}else if(Nn.$row>pi)break;while(zn&&Jn.test(zn.type));zn=Nn.stepBackward()}else zn=Nn.getCurrentToken();return ti.end.row=Nn.getCurrentTokenRow(),ti.end.column=Nn.getCurrentTokenColumn(),ti}},this.foldAll=function(Dn,Pn,Bn,Nn){Bn==null&&(Bn=1e5);var zn=this.foldWidgets;if(zn){Pn=Pn||this.getLength(),Dn=Dn||0;for(var Qn=Dn;Qn<Pn;Qn++)if(zn[Qn]==null&&(zn[Qn]=this.getFoldWidget(Qn)),zn[Qn]=="start"&&!(Nn&&!Nn(Qn))){var Jn=this.getFoldWidgetRange(Qn);Jn&&Jn.isMultiLine()&&Jn.end.row<=Pn&&Jn.start.row>=Dn&&(Qn=Jn.end.row,Jn.collapseChildren=Bn,this.addFold("...",Jn))}}},this.foldToLevel=function(Dn){for(this.foldAll();Dn-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var Dn=this;this.foldAll(null,null,null,function(Pn){for(var Bn=Dn.getTokens(Pn),Nn=0;Nn<Bn.length;Nn++){var zn=Bn[Nn];if(!(zn.type=="text"&&/^\s+$/.test(zn.value)))return!!/comment/.test(zn.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(Dn){if(!this.$foldStyles[Dn])throw new Error("invalid fold style: "+Dn+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=Dn){this.$foldStyle=Dn,Dn=="manual"&&this.unfold();var Pn=this.$foldMode;this.$setFolding(null),this.$setFolding(Pn)}},this.$setFolding=function(Dn){if(this.$foldMode!=Dn){if(this.$foldMode=Dn,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!Dn||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=Dn.getFoldWidget.bind(Dn,this,this.$foldStyle),this.getFoldWidgetRange=Dn.getFoldWidgetRange.bind(Dn,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(Dn,Pn){var Bn=this.foldWidgets;if(!Bn||Pn&&Bn[Dn])return{};for(var Nn=Dn-1,zn;Nn>=0;){var Qn=Bn[Nn];if(Qn==null&&(Qn=Bn[Nn]=this.getFoldWidget(Nn)),Qn=="start"){var Jn=this.getFoldWidgetRange(Nn);if(zn||(zn=Jn),Jn&&Jn.end.row>=Dn)break}Nn--}return{range:Nn!==-1&&Jn,firstRange:zn}},this.onFoldWidgetClick=function(Dn,Pn){Pn instanceof qn&&(Pn=Pn.domEvent);var Bn={children:Pn.shiftKey,all:Pn.ctrlKey||Pn.metaKey,siblings:Pn.altKey},Nn=this.$toggleFoldWidget(Dn,Bn);if(!Nn){var zn=Pn.target||Pn.srcElement;zn&&/ace_fold-widget/.test(zn.className)&&(zn.className+=" ace_invalid")}},this.$toggleFoldWidget=function(Dn,Pn){if(this.getFoldWidget){var Bn=this.getFoldWidget(Dn),Nn=this.getLine(Dn),zn=Bn==="end"?-1:1,Qn=this.getFoldAt(Dn,zn===-1?0:Nn.length,zn);if(Qn)return Pn.children||Pn.all?this.removeFold(Qn):this.expandFold(Qn),Qn;var Jn=this.getFoldWidgetRange(Dn,!0);if(Jn&&!Jn.isMultiLine()&&(Qn=this.getFoldAt(Jn.start.row,Jn.start.column,1),Qn&&Jn.isEqual(Qn.range)))return this.removeFold(Qn),Qn;if(Pn.siblings){var ti=this.getParentFoldRangeData(Dn);if(ti.range)var vi=ti.range.start.row+1,pi=ti.range.end.row;this.foldAll(vi,pi,Pn.all?1e4:0)}else Pn.children?(pi=Jn?Jn.end.row:this.getLength(),this.foldAll(Dn+1,pi,Pn.all?1e4:0)):Jn&&(Pn.all&&(Jn.collapseChildren=1e4),this.addFold("...",Jn));return Jn}},this.toggleFoldWidget=function(Dn){var Pn=this.selection.getCursor().row;Pn=this.getRowFoldStart(Pn);var Bn=this.$toggleFoldWidget(Pn,{});if(!Bn){var Nn=this.getParentFoldRangeData(Pn,!0);if(Bn=Nn.range||Nn.firstRange,Bn){Pn=Bn.start.row;var zn=this.getFoldAt(Pn,this.getLine(Pn).length,1);zn?this.removeFold(zn):this.addFold("...",Bn)}}},this.updateFoldWidgets=function(Dn){var Pn=Dn.start.row,Bn=Dn.end.row-Pn;if(Bn===0)this.foldWidgets[Pn]=null;else if(Dn.action=="remove")this.foldWidgets.splice(Pn,Bn+1,null);else{var Nn=Array(Bn+1);Nn.unshift(Pn,1),this.foldWidgets.splice.apply(this.foldWidgets,Nn)}},this.tokenizerUpdateFoldWidgets=function(Dn){var Pn=Dn.data;Pn.first!=Pn.last&&this.foldWidgets.length>Pn.first&&this.foldWidgets.splice(Pn.first,this.foldWidgets.length)}}Mn.Folding=In}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(kn,Mn,Yn){var Wn=kn("../token_iterator").TokenIterator,Kn=kn("../range").Range;function Xn(){this.findMatchingBracket=function(Hn,qn){if(Hn.column==0)return null;var In=qn||this.getLine(Hn.row).charAt(Hn.column-1);if(In=="")return null;var Dn=In.match(/([\(\[\{])|([\)\]\}])/);return Dn?Dn[1]?this.$findClosingBracket(Dn[1],Hn):this.$findOpeningBracket(Dn[2],Hn):null},this.getBracketRange=function(Hn){var qn=this.getLine(Hn.row),In=!0,Dn,Pn=qn.charAt(Hn.column-1),Bn=Pn&&Pn.match(/([\(\[\{])|([\)\]\}])/);if(Bn||(Pn=qn.charAt(Hn.column),Hn={row:Hn.row,column:Hn.column+1},Bn=Pn&&Pn.match(/([\(\[\{])|([\)\]\}])/),In=!1),!Bn)return null;if(Bn[1]){var Nn=this.$findClosingBracket(Bn[1],Hn);if(!Nn)return null;Dn=Kn.fromPoints(Hn,Nn),In||(Dn.end.column++,Dn.start.column--),Dn.cursor=Dn.end}else{var Nn=this.$findOpeningBracket(Bn[2],Hn);if(!Nn)return null;Dn=Kn.fromPoints(Nn,Hn),In||(Dn.start.column++,Dn.end.column--),Dn.cursor=Dn.start}return Dn},this.getMatchingBracketRanges=function(Hn,qn){var In=this.getLine(Hn.row),Dn=/([\(\[\{])|([\)\]\}])/,Pn=!qn&&In.charAt(Hn.column-1),Bn=Pn&&Pn.match(Dn);if(Bn||(Pn=(qn===void 0||qn)&&In.charAt(Hn.column),Hn={row:Hn.row,column:Hn.column+1},Bn=Pn&&Pn.match(Dn)),!Bn)return null;var Nn=new Kn(Hn.row,Hn.column-1,Hn.row,Hn.column),zn=Bn[1]?this.$findClosingBracket(Bn[1],Hn):this.$findOpeningBracket(Bn[2],Hn);if(!zn)return[Nn];var Qn=new Kn(zn.row,zn.column,zn.row,zn.column+1);return[Nn,Qn]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(Hn,qn,In){var Dn=this.$brackets[Hn],Pn=1,Bn=new Wn(this,qn.row,qn.column),Nn=Bn.getCurrentToken();if(Nn||(Nn=Bn.stepForward()),!!Nn){In||(In=new RegExp("(\\.?"+Nn.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var zn=qn.column-Bn.getCurrentTokenColumn()-2,Qn=Nn.value;;){for(;zn>=0;){var Jn=Qn.charAt(zn);if(Jn==Dn){if(Pn-=1,Pn==0)return{row:Bn.getCurrentTokenRow(),column:zn+Bn.getCurrentTokenColumn()}}else Jn==Hn&&(Pn+=1);zn-=1}do Nn=Bn.stepBackward();while(Nn&&!In.test(Nn.type));if(Nn==null)break;Qn=Nn.value,zn=Qn.length-1}return null}},this.$findClosingBracket=function(Hn,qn,In){var Dn=this.$brackets[Hn],Pn=1,Bn=new Wn(this,qn.row,qn.column),Nn=Bn.getCurrentToken();if(Nn||(Nn=Bn.stepForward()),!!Nn){In||(In=new RegExp("(\\.?"+Nn.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var zn=qn.column-Bn.getCurrentTokenColumn();;){for(var Qn=Nn.value,Jn=Qn.length;zn<Jn;){var ti=Qn.charAt(zn);if(ti==Dn){if(Pn-=1,Pn==0)return{row:Bn.getCurrentTokenRow(),column:zn+Bn.getCurrentTokenColumn()}}else ti==Hn&&(Pn+=1);zn+=1}do Nn=Bn.stepForward();while(Nn&&!In.test(Nn.type));if(Nn==null)break;zn=0}return null}},this.getMatchingTags=function(Hn){var qn=new Wn(this,Hn.row,Hn.column),In=this.$findTagName(qn);if(In){var Dn=qn.stepBackward();return Dn.value==="<"?this.$findClosingTag(qn,In):this.$findOpeningTag(qn,In)}},this.$findTagName=function(Hn){var qn=Hn.getCurrentToken(),In=!1,Dn=!1;if(qn&&qn.type.indexOf("tag-name")===-1)do Dn?qn=Hn.stepBackward():qn=Hn.stepForward(),qn&&(qn.value==="/>"?Dn=!0:qn.type.indexOf("tag-name")!==-1&&(In=!0));while(qn&&!In);return qn},this.$findClosingTag=function(Hn,qn){var In,Dn=qn.value,Pn=qn.value,Bn=0,Nn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);qn=Hn.stepForward();var zn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+qn.value.length),Qn=!1;do{if(In=qn,In.type.indexOf("tag-close")!==-1&&!Qn){var Jn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);Qn=!0}if(qn=Hn.stepForward(),qn){if(qn.value===">"&&!Qn){var Jn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);Qn=!0}if(qn.type.indexOf("tag-name")!==-1){if(Dn=qn.value,Pn===Dn){if(In.value==="<")Bn++;else if(In.value==="</"&&(Bn--,Bn<0)){Hn.stepBackward();var ti=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+2);qn=Hn.stepForward();var vi=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+qn.value.length);if(qn.type.indexOf("tag-close")===-1&&(qn=Hn.stepForward()),qn&&qn.value===">")var pi=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);else return}}}else if(Pn===Dn&&qn.value==="/>"&&(Bn--,Bn<0))var ti=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+2),vi=ti,pi=vi,Jn=new Kn(zn.end.row,zn.end.column,zn.end.row,zn.end.column+1)}}while(qn&&Bn>=0);if(Nn&&Jn&&ti&&pi&&zn&&vi)return{openTag:new Kn(Nn.start.row,Nn.start.column,Jn.end.row,Jn.end.column),closeTag:new Kn(ti.start.row,ti.start.column,pi.end.row,pi.end.column),openTagName:zn,closeTagName:vi}},this.$findOpeningTag=function(Hn,qn){var In=Hn.getCurrentToken(),Dn=qn.value,Pn=0,Bn=Hn.getCurrentTokenRow(),Nn=Hn.getCurrentTokenColumn(),zn=Nn+2,Qn=new Kn(Bn,Nn,Bn,zn);Hn.stepForward();var Jn=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+qn.value.length);if(qn.type.indexOf("tag-close")===-1&&(qn=Hn.stepForward()),!(!qn||qn.value!==">")){var ti=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);Hn.stepBackward(),Hn.stepBackward();do if(qn=In,Bn=Hn.getCurrentTokenRow(),Nn=Hn.getCurrentTokenColumn(),zn=Nn+qn.value.length,In=Hn.stepBackward(),qn){if(qn.type.indexOf("tag-name")!==-1){if(Dn===qn.value)if(In.value==="<"){if(Pn++,Pn>0){var vi=new Kn(Bn,Nn,Bn,zn),pi=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1);do qn=Hn.stepForward();while(qn&&qn.value!==">");var si=new Kn(Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn(),Hn.getCurrentTokenRow(),Hn.getCurrentTokenColumn()+1)}}else In.value==="</"&&Pn--}else if(qn.value==="/>"){for(var ei=0,mi=In;mi;){if(mi.type.indexOf("tag-name")!==-1&&mi.value===Dn){Pn--;break}else if(mi.value==="<")break;mi=Hn.stepBackward(),ei++}for(var fi=0;fi<ei;fi++)Hn.stepForward()}}while(In&&Pn<=0);if(pi&&si&&Qn&&ti&&vi&&Jn)return{openTag:new Kn(pi.start.row,pi.start.column,si.end.row,si.end.column),closeTag:new Kn(Qn.start.row,Qn.start.column,ti.end.row,ti.end.column),openTagName:vi,closeTagName:Jn}}}}Mn.BracketMatch=Xn}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(kn,Mn,Yn){var Wn=kn("./lib/oop"),Kn=kn("./lib/lang"),Xn=kn("./bidihandler").BidiHandler,Hn=kn("./config"),qn=kn("./lib/event_emitter").EventEmitter,In=kn("./selection").Selection,Dn=kn("./mode/text").Mode,Pn=kn("./range").Range,Bn=kn("./line_widgets").LineWidgets,Nn=kn("./document").Document,zn=kn("./background_tokenizer").BackgroundTokenizer,Qn=kn("./search_highlight").SearchHighlight,Jn=kn("./undomanager").UndoManager,ti=function(){function ai(oi,li){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++ai.$uid,this.$foldData.toString=function(){return this.join(`
197
+ `)},this.bgTokenizer=new zn(new Dn().getTokenizer(),this);var wi=this;this.bgTokenizer.on("update",function(bi){wi._signal("tokenizerUpdate",bi)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof oi!="object"||!oi.getLine)&&(oi=new Nn(oi)),this.setDocument(oi),this.selection=new In(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new Xn(this),Hn.resetOptions(this),this.setMode(li),Hn._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return ai.prototype.$initOperationListeners=function(){var oi=this;this.curOp=null,this.on("change",function(){oi.curOp||(oi.startOperation(),oi.curOp.selectionBefore=oi.$lastSel),oi.curOp.docChanged=!0},!0),this.on("changeSelection",function(){oi.curOp||(oi.startOperation(),oi.curOp.selectionBefore=oi.$lastSel),oi.curOp.selectionChanged=!0},!0),this.$operationResetTimer=Kn.delayedCall(this.endOperation.bind(this,!0))},ai.prototype.startOperation=function(oi){if(this.curOp){if(!oi||this.curOp.command)return;this.prevOp=this.curOp}oi||(oi={}),this.$operationResetTimer.schedule(),this.curOp={command:oi.command||{},args:oi.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",oi)},ai.prototype.endOperation=function(oi){if(this.curOp){if(oi&&oi.returnValue===!1){this.curOp=null,this._signal("endOperation",oi);return}if(oi==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var li=this.selection.toJSON();this.curOp.selectionAfter=li,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(li),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",oi)}},ai.prototype.setDocument=function(oi){this.doc&&this.doc.off("change",this.$onChange),this.doc=oi,oi.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},ai.prototype.getDocument=function(){return this.doc},Object.defineProperty(ai.prototype,"widgetManager",{get:function(){var oi=new Bn(this);return this.widgetManager=oi,this.$editor&&oi.attach(this.$editor),oi},set:function(oi){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:oi})},enumerable:!1,configurable:!0}),ai.prototype.$resetRowCache=function(oi){if(!oi){this.$docRowCache=[],this.$screenRowCache=[];return}var li=this.$docRowCache.length,wi=this.$getRowCacheIndex(this.$docRowCache,oi)+1;li>wi&&(this.$docRowCache.splice(wi,li),this.$screenRowCache.splice(wi,li))},ai.prototype.$getRowCacheIndex=function(oi,li){for(var wi=0,bi=oi.length-1;wi<=bi;){var _i=wi+bi>>1,Ti=oi[_i];if(li>Ti)wi=_i+1;else if(li<Ti)bi=_i-1;else return _i}return wi-1},ai.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},ai.prototype.onChangeFold=function(oi){var li=oi.data;this.$resetRowCache(li.start.row)},ai.prototype.onChange=function(oi){this.$modified=!0,this.$bidiHandler.onChange(oi),this.$resetRowCache(oi.start.row);var li=this.$updateInternalDataOnChange(oi);!this.$fromUndo&&this.$undoManager&&(li&&li.length&&(this.$undoManager.add({action:"removeFolds",folds:li},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(oi,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(oi),this._signal("change",oi)},ai.prototype.onSelectionChange=function(){this._signal("changeSelection")},ai.prototype.setValue=function(oi){this.doc.setValue(oi),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},ai.fromJSON=function(oi){typeof oi=="string"&&(oi=JSON.parse(oi));var li=new Jn;li.$undoStack=oi.history.undo,li.$redoStack=oi.history.redo,li.mark=oi.history.mark,li.$rev=oi.history.rev;var wi=new ai(oi.value);return oi.folds.forEach(function(bi){wi.addFold("...",Pn.fromPoints(bi.start,bi.end))}),wi.setAnnotations(oi.annotations),wi.setBreakpoints(oi.breakpoints),wi.setMode(oi.mode),wi.setScrollLeft(oi.scrollLeft),wi.setScrollTop(oi.scrollTop),wi.setUndoManager(li),wi.selection.fromJSON(oi.selection),wi},ai.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(oi){return oi.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},ai.prototype.toString=function(){return this.doc.getValue()},ai.prototype.getSelection=function(){return this.selection},ai.prototype.getState=function(oi){return this.bgTokenizer.getState(oi)},ai.prototype.getTokens=function(oi){return this.bgTokenizer.getTokens(oi)},ai.prototype.getTokenAt=function(oi,li){var wi=this.bgTokenizer.getTokens(oi),bi,_i=0;if(li==null){var Ti=wi.length-1;_i=this.getLine(oi).length}else for(var Ti=0;Ti<wi.length&&(_i+=wi[Ti].value.length,!(_i>=li));Ti++);return bi=wi[Ti],bi?(bi.index=Ti,bi.start=_i-bi.value.length,bi):null},ai.prototype.setUndoManager=function(oi){if(this.$undoManager=oi,this.$informUndoManager&&this.$informUndoManager.cancel(),oi){var li=this;oi.addSession(this),this.$syncInformUndoManager=function(){li.$informUndoManager.cancel(),li.mergeUndoDeltas=!1},this.$informUndoManager=Kn.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},ai.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},ai.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},ai.prototype.getTabString=function(){return this.getUseSoftTabs()?Kn.stringRepeat(" ",this.getTabSize()):" "},ai.prototype.setUseSoftTabs=function(oi){this.setOption("useSoftTabs",oi)},ai.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},ai.prototype.setTabSize=function(oi){this.setOption("tabSize",oi)},ai.prototype.getTabSize=function(){return this.$tabSize},ai.prototype.isTabStop=function(oi){return this.$useSoftTabs&&oi.column%this.$tabSize===0},ai.prototype.setNavigateWithinSoftTabs=function(oi){this.setOption("navigateWithinSoftTabs",oi)},ai.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},ai.prototype.setOverwrite=function(oi){this.setOption("overwrite",oi)},ai.prototype.getOverwrite=function(){return this.$overwrite},ai.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},ai.prototype.addGutterDecoration=function(oi,li){this.$decorations[oi]||(this.$decorations[oi]=""),this.$decorations[oi]+=" "+li,this._signal("changeBreakpoint",{})},ai.prototype.removeGutterDecoration=function(oi,li){this.$decorations[oi]=(this.$decorations[oi]||"").replace(" "+li,""),this._signal("changeBreakpoint",{})},ai.prototype.getBreakpoints=function(){return this.$breakpoints},ai.prototype.setBreakpoints=function(oi){this.$breakpoints=[];for(var li=0;li<oi.length;li++)this.$breakpoints[oi[li]]="ace_breakpoint";this._signal("changeBreakpoint",{})},ai.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},ai.prototype.setBreakpoint=function(oi,li){li===void 0&&(li="ace_breakpoint"),li?this.$breakpoints[oi]=li:delete this.$breakpoints[oi],this._signal("changeBreakpoint",{})},ai.prototype.clearBreakpoint=function(oi){delete this.$breakpoints[oi],this._signal("changeBreakpoint",{})},ai.prototype.addMarker=function(oi,li,wi,bi){var _i=this.$markerId++,Ti={range:oi,type:wi||"line",renderer:typeof wi=="function"?wi:null,clazz:li,inFront:!!bi,id:_i};return bi?(this.$frontMarkers[_i]=Ti,this._signal("changeFrontMarker")):(this.$backMarkers[_i]=Ti,this._signal("changeBackMarker")),_i},ai.prototype.addDynamicMarker=function(oi,li){if(oi.update){var wi=this.$markerId++;return oi.id=wi,oi.inFront=!!li,li?(this.$frontMarkers[wi]=oi,this._signal("changeFrontMarker")):(this.$backMarkers[wi]=oi,this._signal("changeBackMarker")),oi}},ai.prototype.removeMarker=function(oi){var li=this.$frontMarkers[oi]||this.$backMarkers[oi];if(li){var wi=li.inFront?this.$frontMarkers:this.$backMarkers;delete wi[oi],this._signal(li.inFront?"changeFrontMarker":"changeBackMarker")}},ai.prototype.getMarkers=function(oi){return oi?this.$frontMarkers:this.$backMarkers},ai.prototype.highlight=function(oi){if(!this.$searchHighlight){var li=new Qn(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(li)}this.$searchHighlight.setRegexp(oi)},ai.prototype.highlightLines=function(oi,li,wi,bi){typeof li!="number"&&(wi=li,li=oi),wi||(wi="ace_step");var _i=new Pn(oi,0,li,1/0);return _i.id=this.addMarker(_i,wi,"fullLine",bi),_i},ai.prototype.setAnnotations=function(oi){this.$annotations=oi,this._signal("changeAnnotation",{})},ai.prototype.getAnnotations=function(){return this.$annotations||[]},ai.prototype.clearAnnotations=function(){this.setAnnotations([])},ai.prototype.$detectNewLine=function(oi){var li=oi.match(/^.*?(\r?\n)/m);li?this.$autoNewLine=li[1]:this.$autoNewLine=`
198
+ `},ai.prototype.getWordRange=function(oi,li){var wi=this.getLine(oi),bi=!1;if(li>0&&(bi=!!wi.charAt(li-1).match(this.tokenRe)),bi||(bi=!!wi.charAt(li).match(this.tokenRe)),bi)var _i=this.tokenRe;else if(/^\s+$/.test(wi.slice(li-1,li+1)))var _i=/\s/;else var _i=this.nonTokenRe;var Ti=li;if(Ti>0){do Ti--;while(Ti>=0&&wi.charAt(Ti).match(_i));Ti++}for(var Li=li;Li<wi.length&&wi.charAt(Li).match(_i);)Li++;return new Pn(oi,Ti,oi,Li)},ai.prototype.getAWordRange=function(oi,li){for(var wi=this.getWordRange(oi,li),bi=this.getLine(wi.end.row);bi.charAt(wi.end.column).match(/[ \t]/);)wi.end.column+=1;return wi},ai.prototype.setNewLineMode=function(oi){this.doc.setNewLineMode(oi)},ai.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},ai.prototype.setUseWorker=function(oi){this.setOption("useWorker",oi)},ai.prototype.getUseWorker=function(){return this.$useWorker},ai.prototype.onReloadTokenizer=function(oi){var li=oi.data;this.bgTokenizer.start(li.first),this._signal("tokenizerUpdate",oi)},ai.prototype.setMode=function(oi,li){if(oi&&typeof oi=="object"){if(oi.getTokenizer)return this.$onChangeMode(oi);var wi=oi,bi=wi.path}else bi=oi||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new Dn),this.$modes[bi]&&!wi){this.$onChangeMode(this.$modes[bi]),li&&li();return}this.$modeId=bi,Hn.loadModule(["mode",bi],(function(_i){if(this.$modeId!==bi)return li&&li();this.$modes[bi]&&!wi?this.$onChangeMode(this.$modes[bi]):_i&&_i.Mode&&(_i=new _i.Mode(wi),wi||(this.$modes[bi]=_i,_i.$id=bi),this.$onChangeMode(_i)),li&&li()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},ai.prototype.$onChangeMode=function(oi,li){if(li||(this.$modeId=oi.$id),this.$mode!==oi){var wi=this.$mode;this.$mode=oi,this.$stopWorker(),this.$useWorker&&this.$startWorker();var bi=oi.getTokenizer();if(bi.on!==void 0){var _i=this.onReloadTokenizer.bind(this);bi.on("update",_i)}this.bgTokenizer.setTokenizer(bi),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=oi.tokenRe,this.nonTokenRe=oi.nonTokenRe,li||(oi.attachToSession&&oi.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(oi.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:wi,mode:oi}))}},ai.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},ai.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(oi){Hn.warn("Could not load worker",oi),this.$worker=null}},ai.prototype.getMode=function(){return this.$mode},ai.prototype.setScrollTop=function(oi){this.$scrollTop===oi||isNaN(oi)||(this.$scrollTop=oi,this._signal("changeScrollTop",oi))},ai.prototype.getScrollTop=function(){return this.$scrollTop},ai.prototype.setScrollLeft=function(oi){this.$scrollLeft===oi||isNaN(oi)||(this.$scrollLeft=oi,this._signal("changeScrollLeft",oi))},ai.prototype.getScrollLeft=function(){return this.$scrollLeft},ai.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},ai.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var oi=0;return this.lineWidgets.forEach(function(li){li&&li.screenWidth>oi&&(oi=li.screenWidth)}),this.lineWidgetWidth=oi},ai.prototype.$computeWidth=function(oi){if(this.$modified||oi){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var li=this.doc.getAllLines(),wi=this.$rowLengthCache,bi=0,_i=0,Ti=this.$foldData[_i],Li=Ti?Ti.start.row:1/0,Ri=li.length,Ii=0;Ii<Ri;Ii++){if(Ii>Li){if(Ii=Ti.end.row+1,Ii>=Ri)break;Ti=this.$foldData[_i++],Li=Ti?Ti.start.row:1/0}wi[Ii]==null&&(wi[Ii]=this.$getStringScreenWidth(li[Ii])[0]),wi[Ii]>bi&&(bi=wi[Ii])}this.screenWidth=bi}},ai.prototype.getLine=function(oi){return this.doc.getLine(oi)},ai.prototype.getLines=function(oi,li){return this.doc.getLines(oi,li)},ai.prototype.getLength=function(){return this.doc.getLength()},ai.prototype.getTextRange=function(oi){return this.doc.getTextRange(oi||this.selection.getRange())},ai.prototype.insert=function(oi,li){return this.doc.insert(oi,li)},ai.prototype.remove=function(oi){return this.doc.remove(oi)},ai.prototype.removeFullLines=function(oi,li){return this.doc.removeFullLines(oi,li)},ai.prototype.undoChanges=function(oi,li){if(oi.length){this.$fromUndo=!0;for(var wi=oi.length-1;wi!=-1;wi--){var bi=oi[wi];bi.action=="insert"||bi.action=="remove"?this.doc.revertDelta(bi):bi.folds&&this.addFolds(bi.folds)}!li&&this.$undoSelect&&(oi.selectionBefore?this.selection.fromJSON(oi.selectionBefore):this.selection.setRange(this.$getUndoSelection(oi,!0))),this.$fromUndo=!1}},ai.prototype.redoChanges=function(oi,li){if(oi.length){this.$fromUndo=!0;for(var wi=0;wi<oi.length;wi++){var bi=oi[wi];(bi.action=="insert"||bi.action=="remove")&&this.doc.$safeApplyDelta(bi)}!li&&this.$undoSelect&&(oi.selectionAfter?this.selection.fromJSON(oi.selectionAfter):this.selection.setRange(this.$getUndoSelection(oi,!1))),this.$fromUndo=!1}},ai.prototype.setUndoSelect=function(oi){this.$undoSelect=oi},ai.prototype.$getUndoSelection=function(oi,li){function wi(Ri){return li?Ri.action!=="insert":Ri.action==="insert"}for(var bi,_i,Ti=0;Ti<oi.length;Ti++){var Li=oi[Ti];if(Li.start){if(!bi){wi(Li)?bi=Pn.fromPoints(Li.start,Li.end):bi=Pn.fromPoints(Li.start,Li.start);continue}wi(Li)?(_i=Li.start,bi.compare(_i.row,_i.column)==-1&&bi.setStart(_i),_i=Li.end,bi.compare(_i.row,_i.column)==1&&bi.setEnd(_i)):(_i=Li.start,bi.compare(_i.row,_i.column)==-1&&(bi=Pn.fromPoints(Li.start,Li.start)))}}return bi},ai.prototype.replace=function(oi,li){return this.doc.replace(oi,li)},ai.prototype.moveText=function(oi,li,wi){var bi=this.getTextRange(oi),_i=this.getFoldsInRange(oi),Ti=Pn.fromPoints(li,li);if(!wi){this.remove(oi);var Li=oi.start.row-oi.end.row,Ri=Li?-oi.end.column:oi.start.column-oi.end.column;Ri&&(Ti.start.row==oi.end.row&&Ti.start.column>oi.end.column&&(Ti.start.column+=Ri),Ti.end.row==oi.end.row&&Ti.end.column>oi.end.column&&(Ti.end.column+=Ri)),Li&&Ti.start.row>=oi.end.row&&(Ti.start.row+=Li,Ti.end.row+=Li)}if(Ti.end=this.insert(Ti.start,bi),_i.length){var Ii=oi.start,zi=Ti.start,Li=zi.row-Ii.row,Ri=zi.column-Ii.column;this.addFolds(_i.map(function(Yi){return Yi=Yi.clone(),Yi.start.row==Ii.row&&(Yi.start.column+=Ri),Yi.end.row==Ii.row&&(Yi.end.column+=Ri),Yi.start.row+=Li,Yi.end.row+=Li,Yi}))}return Ti},ai.prototype.indentRows=function(oi,li,wi){wi=wi.replace(/\t/g,this.getTabString());for(var bi=oi;bi<=li;bi++)this.doc.insertInLine({row:bi,column:0},wi)},ai.prototype.outdentRows=function(oi){for(var li=oi.collapseRows(),wi=new Pn(0,0,0,0),bi=this.getTabSize(),_i=li.start.row;_i<=li.end.row;++_i){var Ti=this.getLine(_i);wi.start.row=_i,wi.end.row=_i;for(var Li=0;Li<bi&&Ti.charAt(Li)==" ";++Li);Li<bi&&Ti.charAt(Li)==" "?(wi.start.column=Li,wi.end.column=Li+1):(wi.start.column=0,wi.end.column=Li),this.remove(wi)}},ai.prototype.$moveLines=function(oi,li,wi){if(oi=this.getRowFoldStart(oi),li=this.getRowFoldEnd(li),wi<0){var bi=this.getRowFoldStart(oi+wi);if(bi<0)return 0;var _i=bi-oi}else if(wi>0){var bi=this.getRowFoldEnd(li+wi);if(bi>this.doc.getLength()-1)return 0;var _i=bi-li}else{oi=this.$clipRowToDocument(oi),li=this.$clipRowToDocument(li);var _i=li-oi+1}var Ti=new Pn(oi,0,li,Number.MAX_VALUE),Li=this.getFoldsInRange(Ti).map(function(Ii){return Ii=Ii.clone(),Ii.start.row+=_i,Ii.end.row+=_i,Ii}),Ri=wi==0?this.doc.getLines(oi,li):this.doc.removeFullLines(oi,li);return this.doc.insertFullLines(oi+_i,Ri),Li.length&&this.addFolds(Li),_i},ai.prototype.moveLinesUp=function(oi,li){return this.$moveLines(oi,li,-1)},ai.prototype.moveLinesDown=function(oi,li){return this.$moveLines(oi,li,1)},ai.prototype.duplicateLines=function(oi,li){return this.$moveLines(oi,li,0)},ai.prototype.$clipRowToDocument=function(oi){return Math.max(0,Math.min(oi,this.doc.getLength()-1))},ai.prototype.$clipColumnToRow=function(oi,li){return li<0?0:Math.min(this.doc.getLine(oi).length,li)},ai.prototype.$clipPositionToDocument=function(oi,li){if(li=Math.max(0,li),oi<0)oi=0,li=0;else{var wi=this.doc.getLength();oi>=wi?(oi=wi-1,li=this.doc.getLine(wi-1).length):li=Math.min(this.doc.getLine(oi).length,li)}return{row:oi,column:li}},ai.prototype.$clipRangeToDocument=function(oi){oi.start.row<0?(oi.start.row=0,oi.start.column=0):oi.start.column=this.$clipColumnToRow(oi.start.row,oi.start.column);var li=this.doc.getLength()-1;return oi.end.row>li?(oi.end.row=li,oi.end.column=this.doc.getLine(li).length):oi.end.column=this.$clipColumnToRow(oi.end.row,oi.end.column),oi},ai.prototype.setUseWrapMode=function(oi){if(oi!=this.$useWrapMode){if(this.$useWrapMode=oi,this.$modified=!0,this.$resetRowCache(0),oi){var li=this.getLength();this.$wrapData=Array(li),this.$updateWrapData(0,li-1)}this._signal("changeWrapMode")}},ai.prototype.getUseWrapMode=function(){return this.$useWrapMode},ai.prototype.setWrapLimitRange=function(oi,li){(this.$wrapLimitRange.min!==oi||this.$wrapLimitRange.max!==li)&&(this.$wrapLimitRange={min:oi,max:li},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},ai.prototype.adjustWrapLimit=function(oi,li){var wi=this.$wrapLimitRange;wi.max<0&&(wi={min:li,max:li});var bi=this.$constrainWrapLimit(oi,wi.min,wi.max);return bi!=this.$wrapLimit&&bi>1?(this.$wrapLimit=bi,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},ai.prototype.$constrainWrapLimit=function(oi,li,wi){return li&&(oi=Math.max(li,oi)),wi&&(oi=Math.min(wi,oi)),oi},ai.prototype.getWrapLimit=function(){return this.$wrapLimit},ai.prototype.setWrapLimit=function(oi){this.setWrapLimitRange(oi,oi)},ai.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},ai.prototype.$updateInternalDataOnChange=function(oi){var li=this.$useWrapMode,wi=oi.action,bi=oi.start,_i=oi.end,Ti=bi.row,Li=_i.row,Ri=Li-Ti,Ii=null;if(this.$updating=!0,Ri!=0)if(wi==="remove"){this[li?"$wrapData":"$rowLengthCache"].splice(Ti,Ri);var zi=this.$foldData;Ii=this.getFoldsInRange(oi),this.removeFolds(Ii);var Oi=this.getFoldLine(_i.row),Bi=0;if(Oi){Oi.addRemoveChars(_i.row,_i.column,bi.column-_i.column),Oi.shiftRow(-Ri);var Yi=this.getFoldLine(Ti);Yi&&Yi!==Oi&&(Yi.merge(Oi),Oi=Yi),Bi=zi.indexOf(Oi)+1}for(Bi;Bi<zi.length;Bi++){var Oi=zi[Bi];Oi.start.row>=_i.row&&Oi.shiftRow(-Ri)}Li=Ti}else{var Fi=Array(Ri);Fi.unshift(Ti,0);var Qi=li?this.$wrapData:this.$rowLengthCache;Qi.splice.apply(Qi,Fi);var zi=this.$foldData,Oi=this.getFoldLine(Ti),Bi=0;if(Oi){var pr=Oi.range.compareInside(bi.row,bi.column);pr==0?(Oi=Oi.split(bi.row,bi.column),Oi&&(Oi.shiftRow(Ri),Oi.addRemoveChars(Li,0,_i.column-bi.column))):pr==-1&&(Oi.addRemoveChars(Ti,0,_i.column-bi.column),Oi.shiftRow(Ri)),Bi=zi.indexOf(Oi)+1}for(Bi;Bi<zi.length;Bi++){var Oi=zi[Bi];Oi.start.row>=Ti&&Oi.shiftRow(Ri)}}else{Ri=Math.abs(oi.start.column-oi.end.column),wi==="remove"&&(Ii=this.getFoldsInRange(oi),this.removeFolds(Ii),Ri=-Ri);var Oi=this.getFoldLine(Ti);Oi&&Oi.addRemoveChars(Ti,bi.column,Ri)}return li&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,li?this.$updateWrapData(Ti,Li):this.$updateRowLengthCache(Ti,Li),Ii},ai.prototype.$updateRowLengthCache=function(oi,li){this.$rowLengthCache[oi]=null,this.$rowLengthCache[li]=null},ai.prototype.$updateWrapData=function(oi,li){var wi=this.doc.getAllLines(),bi=this.getTabSize(),_i=this.$wrapData,Ti=this.$wrapLimit,Li,Ri,Ii=oi;for(li=Math.min(li,wi.length-1);Ii<=li;)Ri=this.getFoldLine(Ii,Ri),Ri?(Li=[],Ri.walk((function(zi,Oi,Bi,Yi){var Fi;if(zi!=null){Fi=this.$getDisplayTokens(zi,Li.length),Fi[0]=si;for(var Qi=1;Qi<Fi.length;Qi++)Fi[Qi]=ei}else Fi=this.$getDisplayTokens(wi[Oi].substring(Yi,Bi),Li.length);Li=Li.concat(Fi)}).bind(this),Ri.end.row,wi[Ri.end.row].length+1),_i[Ri.start.row]=this.$computeWrapSplits(Li,Ti,bi),Ii=Ri.end.row+1):(Li=this.$getDisplayTokens(wi[Ii]),_i[Ii]=this.$computeWrapSplits(Li,Ti,bi),Ii++)},ai.prototype.$computeWrapSplits=function(oi,li,wi){if(oi.length==0)return[];var bi=[],_i=oi.length,Ti=0,Li=0,Ri=this.$wrapAsCode,Ii=this.$indentedSoftWrap,zi=li<=Math.max(2*wi,8)||Ii===!1?0:Math.floor(li/2);function Oi(){var pr=0;if(zi===0)return pr;if(Ii)for(var fr=0;fr<oi.length;fr++){var ar=oi[fr];if(ar==fi)pr+=1;else if(ar==yi)pr+=wi;else{if(ar==gi)continue;break}}return Ri&&Ii!==!1&&(pr+=wi),Math.min(pr,zi)}function Bi(pr){for(var fr=pr-Ti,ar=Ti;ar<pr;ar++){var yr=oi[ar];(yr===12||yr===2)&&(fr-=1)}bi.length||(Yi=Oi(),bi.indent=Yi),Li+=fr,bi.push(Li),Ti=pr}for(var Yi=0;_i-Ti>li-Yi;){var Fi=Ti+li-Yi;if(oi[Fi-1]>=fi&&oi[Fi]>=fi){Bi(Fi);continue}if(oi[Fi]==si||oi[Fi]==ei){for(Fi;Fi!=Ti-1&&oi[Fi]!=si;Fi--);if(Fi>Ti){Bi(Fi);continue}for(Fi=Ti+li,Fi;Fi<oi.length&&oi[Fi]==ei;Fi++);if(Fi==oi.length)break;Bi(Fi);continue}for(var Qi=Math.max(Fi-(li-(li>>2)),Ti-1);Fi>Qi&&oi[Fi]<si;)Fi--;if(Ri){for(;Fi>Qi&&oi[Fi]<si;)Fi--;for(;Fi>Qi&&oi[Fi]==mi;)Fi--}else for(;Fi>Qi&&oi[Fi]<fi;)Fi--;if(Fi>Qi){Bi(++Fi);continue}Fi=Ti+li,oi[Fi]==pi&&Fi--,Bi(Fi-Yi)}return bi},ai.prototype.$getDisplayTokens=function(oi,li){var wi=[],bi;li=li||0;for(var _i=0;_i<oi.length;_i++){var Ti=oi.charCodeAt(_i);if(Ti==9){bi=this.getScreenTabSize(wi.length+li),wi.push(yi);for(var Li=1;Li<bi;Li++)wi.push(gi)}else Ti==32?wi.push(fi):Ti>39&&Ti<48||Ti>57&&Ti<64?wi.push(mi):Ti>=4352&&xi(Ti)?wi.push(vi,pi):wi.push(vi)}return wi},ai.prototype.$getStringScreenWidth=function(oi,li,wi){if(li==0)return[0,0];li==null&&(li=1/0),wi=wi||0;var bi,_i;for(_i=0;_i<oi.length&&(bi=oi.charCodeAt(_i),bi==9?wi+=this.getScreenTabSize(wi):bi>=4352&&xi(bi)?wi+=2:wi+=1,!(wi>li));_i++);return[wi,_i]},ai.prototype.getRowLength=function(oi){var li=1;return this.lineWidgets&&(li+=this.lineWidgets[oi]&&this.lineWidgets[oi].rowCount||0),!this.$useWrapMode||!this.$wrapData[oi]?li:this.$wrapData[oi].length+li},ai.prototype.getRowLineCount=function(oi){return!this.$useWrapMode||!this.$wrapData[oi]?1:this.$wrapData[oi].length+1},ai.prototype.getRowWrapIndent=function(oi){if(this.$useWrapMode){var li=this.screenToDocumentPosition(oi,Number.MAX_VALUE),wi=this.$wrapData[li.row];return wi.length&&wi[0]<li.column?wi.indent:0}else return 0},ai.prototype.getScreenLastRowColumn=function(oi){var li=this.screenToDocumentPosition(oi,Number.MAX_VALUE);return this.documentToScreenColumn(li.row,li.column)},ai.prototype.getDocumentLastRowColumn=function(oi,li){var wi=this.documentToScreenRow(oi,li);return this.getScreenLastRowColumn(wi)},ai.prototype.getDocumentLastRowColumnPosition=function(oi,li){var wi=this.documentToScreenRow(oi,li);return this.screenToDocumentPosition(wi,Number.MAX_VALUE/10)},ai.prototype.getRowSplitData=function(oi){if(this.$useWrapMode)return this.$wrapData[oi]},ai.prototype.getScreenTabSize=function(oi){return this.$tabSize-(oi%this.$tabSize|0)},ai.prototype.screenToDocumentRow=function(oi,li){return this.screenToDocumentPosition(oi,li).row},ai.prototype.screenToDocumentColumn=function(oi,li){return this.screenToDocumentPosition(oi,li).column},ai.prototype.screenToDocumentPosition=function(oi,li,wi){if(oi<0)return{row:0,column:0};var bi,Bi=0,_i=0,Ti,Oi=0,Li=0,Ri=this.$screenRowCache,Ii=this.$getRowCacheIndex(Ri,oi),zi=Ri.length;if(zi&&Ii>=0)var Oi=Ri[Ii],Bi=this.$docRowCache[Ii],Yi=oi>Ri[zi-1];else var Yi=!zi;for(var Fi=this.getLength()-1,Qi=this.getNextFoldLine(Bi),pr=Qi?Qi.start.row:1/0;Oi<=oi&&(Li=this.getRowLength(Bi),!(Oi+Li>oi||Bi>=Fi));)Oi+=Li,Bi++,Bi>pr&&(Bi=Qi.end.row+1,Qi=this.getNextFoldLine(Bi,Qi),pr=Qi?Qi.start.row:1/0),Yi&&(this.$docRowCache.push(Bi),this.$screenRowCache.push(Oi));if(Qi&&Qi.start.row<=Bi)bi=this.getFoldDisplayLine(Qi),Bi=Qi.start.row;else{if(Oi+Li<=oi||Bi>Fi)return{row:Fi,column:this.getLine(Fi).length};bi=this.getLine(Bi),Qi=null}var fr=0,ar=Math.floor(oi-Oi);if(this.$useWrapMode){var yr=this.$wrapData[Bi];yr&&(Ti=yr[ar],ar>0&&yr.length&&(fr=yr.indent,_i=yr[ar-1]||yr[yr.length-1],bi=bi.substring(_i)))}return wi!==void 0&&this.$bidiHandler.isBidiRow(Oi+ar,Bi,ar)&&(li=this.$bidiHandler.offsetToCol(wi)),_i+=this.$getStringScreenWidth(bi,li-fr)[1],this.$useWrapMode&&_i>=Ti&&(_i=Ti-1),Qi?Qi.idxToPosition(_i):{row:Bi,column:_i}},ai.prototype.documentToScreenPosition=function(oi,li){if(typeof li>"u")var wi=this.$clipPositionToDocument(oi.row,oi.column);else wi=this.$clipPositionToDocument(oi,li);oi=wi.row,li=wi.column;var Oi=0,bi=null,_i=null;_i=this.getFoldAt(oi,li,1),_i&&(oi=_i.start.row,li=_i.start.column);var Ti,zi=0,Li=this.$docRowCache,Ri=this.$getRowCacheIndex(Li,oi),Ii=Li.length;if(Ii&&Ri>=0)var zi=Li[Ri],Oi=this.$screenRowCache[Ri],Bi=oi>Li[Ii-1];else var Bi=!Ii;for(var Yi=this.getNextFoldLine(zi),Fi=Yi?Yi.start.row:1/0;zi<oi;){if(zi>=Fi){if(Ti=Yi.end.row+1,Ti>oi)break;Yi=this.getNextFoldLine(Ti,Yi),Fi=Yi?Yi.start.row:1/0}else Ti=zi+1;Oi+=this.getRowLength(zi),zi=Ti,Bi&&(this.$docRowCache.push(zi),this.$screenRowCache.push(Oi))}var Qi="";Yi&&zi>=Fi?(Qi=this.getFoldDisplayLine(Yi,oi,li),bi=Yi.start.row):(Qi=this.getLine(oi).substring(0,li),bi=oi);var pr=0;if(this.$useWrapMode){var fr=this.$wrapData[bi];if(fr){for(var ar=0;Qi.length>=fr[ar];)Oi++,ar++;Qi=Qi.substring(fr[ar-1]||0,Qi.length),pr=ar>0?fr.indent:0}}return this.lineWidgets&&this.lineWidgets[zi]&&this.lineWidgets[zi].rowsAbove&&(Oi+=this.lineWidgets[zi].rowsAbove),{row:Oi,column:pr+this.$getStringScreenWidth(Qi)[0]}},ai.prototype.documentToScreenColumn=function(oi,li){return this.documentToScreenPosition(oi,li).column},ai.prototype.documentToScreenRow=function(oi,li){return this.documentToScreenPosition(oi,li).row},ai.prototype.getScreenLength=function(){var oi=0,li=null;if(this.$useWrapMode)for(var wi=this.$wrapData.length,bi=0,_i=0,li=this.$foldData[_i++],Ti=li?li.start.row:1/0;bi<wi;){var Li=this.$wrapData[bi];oi+=Li?Li.length+1:1,bi++,bi>Ti&&(bi=li.end.row+1,li=this.$foldData[_i++],Ti=li?li.start.row:1/0)}else{oi=this.getLength();for(var Ri=this.$foldData,_i=0;_i<Ri.length;_i++)li=Ri[_i],oi-=li.end.row-li.start.row}return this.lineWidgets&&(oi+=this.$getWidgetScreenLength()),oi},ai.prototype.$setFontMetrics=function(oi){this.$enableVarChar&&(this.$getStringScreenWidth=function(li,wi,bi){if(wi===0)return[0,0];wi||(wi=1/0),bi=bi||0;var _i,Ti;for(Ti=0;Ti<li.length&&(_i=li.charAt(Ti),_i===" "?bi+=this.getScreenTabSize(bi):bi+=oi.getCharacterWidth(_i),!(bi>wi));Ti++);return[bi,Ti]})},ai.prototype.getPrecedingCharacter=function(){var oi=this.selection.getCursor();if(oi.column===0)return oi.row===0?"":this.doc.getNewLineCharacter();var li=this.getLine(oi.row);return li[oi.column-1]},ai.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},ai}();ti.$uid=0,ti.prototype.$modes=Hn.$modes,ti.prototype.getValue=ti.prototype.toString,ti.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},ti.prototype.$overwrite=!1,ti.prototype.$mode=null,ti.prototype.$modeId=null,ti.prototype.$scrollTop=0,ti.prototype.$scrollLeft=0,ti.prototype.$wrapLimit=80,ti.prototype.$useWrapMode=!1,ti.prototype.$wrapLimitRange={min:null,max:null},ti.prototype.lineWidgets=null,ti.prototype.isFullWidth=xi,Wn.implement(ti.prototype,qn);var vi=1,pi=2,si=3,ei=4,mi=9,fi=10,yi=11,gi=12;function xi(ai){return ai<4352?!1:ai>=4352&&ai<=4447||ai>=4515&&ai<=4519||ai>=4602&&ai<=4607||ai>=9001&&ai<=9002||ai>=11904&&ai<=11929||ai>=11931&&ai<=12019||ai>=12032&&ai<=12245||ai>=12272&&ai<=12283||ai>=12288&&ai<=12350||ai>=12353&&ai<=12438||ai>=12441&&ai<=12543||ai>=12549&&ai<=12589||ai>=12593&&ai<=12686||ai>=12688&&ai<=12730||ai>=12736&&ai<=12771||ai>=12784&&ai<=12830||ai>=12832&&ai<=12871||ai>=12880&&ai<=13054||ai>=13056&&ai<=19903||ai>=19968&&ai<=42124||ai>=42128&&ai<=42182||ai>=43360&&ai<=43388||ai>=44032&&ai<=55203||ai>=55216&&ai<=55238||ai>=55243&&ai<=55291||ai>=63744&&ai<=64255||ai>=65040&&ai<=65049||ai>=65072&&ai<=65106||ai>=65108&&ai<=65126||ai>=65128&&ai<=65131||ai>=65281&&ai<=65376||ai>=65504&&ai<=65510}kn("./edit_session/folding").Folding.call(ti.prototype),kn("./edit_session/bracket_match").BracketMatch.call(ti.prototype),Hn.defineOptions(ti.prototype,"session",{wrap:{set:function(ai){if(!ai||ai=="off"?ai=!1:ai=="free"?ai=!0:ai=="printMargin"?ai=-1:typeof ai=="string"&&(ai=parseInt(ai,10)||!1),this.$wrap!=ai)if(this.$wrap=ai,!ai)this.setUseWrapMode(!1);else{var oi=typeof ai=="number"?ai:null;this.setWrapLimitRange(oi,oi),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(ai){ai=ai=="auto"?this.$mode.type!="text":ai!="text",ai!=this.$wrapAsCode&&(this.$wrapAsCode=ai,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(ai){this.$useWorker=ai,this.$stopWorker(),ai&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(ai){ai=parseInt(ai),ai>0&&this.$tabSize!==ai&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=ai,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(ai){this.setFoldStyle(ai)},handlesSet:!0},overwrite:{set:function(ai){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(ai){this.doc.setNewLineMode(ai)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(ai){this.setMode(ai)},get:function(){return this.$modeId},handlesSet:!0}}),Mn.EditSession=ti}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(kn,Mn,Yn){var Wn=kn("./lib/lang"),Kn=kn("./lib/oop"),Xn=kn("./range").Range,Hn=function(){function In(){this.$options={}}return In.prototype.set=function(Dn){return Kn.mixin(this.$options,Dn),this},In.prototype.getOptions=function(){return Wn.copyObject(this.$options)},In.prototype.setOptions=function(Dn){this.$options=Dn},In.prototype.find=function(Dn){var Pn=this.$options,Bn=this.$matchIterator(Dn,Pn);if(!Bn)return!1;var Nn=null;return Bn.forEach(function(zn,Qn,Jn,ti){return Nn=new Xn(zn,Qn,Jn,ti),Qn==ti&&Pn.start&&Pn.start.start&&Pn.skipCurrent!=!1&&Nn.isEqual(Pn.start)?(Nn=null,!1):!0}),Nn},In.prototype.findAll=function(Dn){var Pn=this.$options;if(!Pn.needle)return[];this.$assembleRegExp(Pn);var Bn=Pn.range,Nn=Bn?Dn.getLines(Bn.start.row,Bn.end.row):Dn.doc.getAllLines(),zn=[],Qn=Pn.re;if(Pn.$isMultiLine){var Jn=Qn.length,ti=Nn.length-Jn,vi;e:for(var pi=Qn.offset||0;pi<=ti;pi++){for(var si=0;si<Jn;si++)if(Nn[pi+si].search(Qn[si])==-1)continue e;var ei=Nn[pi],mi=Nn[pi+Jn-1],fi=ei.length-ei.match(Qn[0])[0].length,yi=mi.match(Qn[Jn-1])[0].length;vi&&vi.end.row===pi&&vi.end.column>fi||(zn.push(vi=new Xn(pi,fi,pi+Jn-1,yi)),Jn>2&&(pi=pi+Jn-2))}}else for(var gi=0;gi<Nn.length;gi++)for(var xi=Wn.getMatchOffsets(Nn[gi],Qn),si=0;si<xi.length;si++){var ai=xi[si];zn.push(new Xn(gi,ai.offset,gi,ai.offset+ai.length))}if(Bn){for(var oi=Bn.start.column,li=Bn.end.column,gi=0,si=zn.length-1;gi<si&&zn[gi].start.column<oi&&zn[gi].start.row==0;)gi++;for(var wi=Bn.end.row-Bn.start.row;gi<si&&zn[si].end.column>li&&zn[si].end.row==wi;)si--;for(zn=zn.slice(gi,si+1),gi=0,si=zn.length;gi<si;gi++)zn[gi].start.row+=Bn.start.row,zn[gi].end.row+=Bn.start.row}return zn},In.prototype.replace=function(Dn,Pn){var Bn=this.$options,Nn=this.$assembleRegExp(Bn);if(Bn.$isMultiLine)return Pn;if(Nn){var zn=Nn.exec(Dn);if(!zn||zn[0].length!=Dn.length)return null;if(Bn.regExp||(Pn=Pn.replace(/\$/g,"$$$$")),Pn=Dn.replace(Nn,Pn),Bn.preserveCase){Pn=Pn.split("");for(var Qn=Math.min(Dn.length,Dn.length);Qn--;){var Jn=Dn[Qn];Jn&&Jn.toLowerCase()!=Jn?Pn[Qn]=Pn[Qn].toUpperCase():Pn[Qn]=Pn[Qn].toLowerCase()}Pn=Pn.join("")}return Pn}},In.prototype.$assembleRegExp=function(Dn,Pn){if(Dn.needle instanceof RegExp)return Dn.re=Dn.needle;var Bn=Dn.needle;if(!Dn.needle)return Dn.re=!1;Dn.regExp||(Bn=Wn.escapeRegExp(Bn));var Nn=Dn.caseSensitive?"gm":"gmi";try{new RegExp(Bn,"u"),Dn.$supportsUnicodeFlag=!0,Nn+="u"}catch{Dn.$supportsUnicodeFlag=!1}if(Dn.wholeWord&&(Bn=qn(Bn,Dn)),Dn.$isMultiLine=!Pn&&/[\n\r]/.test(Bn),Dn.$isMultiLine)return Dn.re=this.$assembleMultilineRegExp(Bn,Nn);try{var zn=new RegExp(Bn,Nn)}catch{zn=!1}return Dn.re=zn},In.prototype.$assembleMultilineRegExp=function(Dn,Pn){for(var Bn=Dn.replace(/\r\n|\r|\n/g,`$
199
+ ^`).split(`
200
+ `),Nn=[],zn=0;zn<Bn.length;zn++)try{Nn.push(new RegExp(Bn[zn],Pn))}catch{return!1}return Nn},In.prototype.$matchIterator=function(Dn,Pn){var Bn=this.$assembleRegExp(Pn);if(!Bn)return!1;var Nn=Pn.backwards==!0,zn=Pn.skipCurrent!=!1,Qn=Bn.unicode,Jn=Pn.range,ti=Pn.start;ti||(ti=Jn?Jn[Nn?"end":"start"]:Dn.selection.getRange()),ti.start&&(ti=ti[zn!=Nn?"end":"start"]);var vi=Jn?Jn.start.row:0,pi=Jn?Jn.end.row:Dn.getLength()-1;if(Nn)var si=function(fi){var yi=ti.row;if(!mi(yi,ti.column,fi)){for(yi--;yi>=vi;yi--)if(mi(yi,Number.MAX_VALUE,fi))return;if(Pn.wrap!=!1){for(yi=pi,vi=ti.row;yi>=vi;yi--)if(mi(yi,Number.MAX_VALUE,fi))return}}};else var si=function(fi){var yi=ti.row;if(!mi(yi,ti.column,fi)){for(yi=yi+1;yi<=pi;yi++)if(mi(yi,0,fi))return;if(Pn.wrap!=!1){for(yi=vi,pi=ti.row;yi<=pi;yi++)if(mi(yi,0,fi))return}}};if(Pn.$isMultiLine)var ei=Bn.length,mi=function(fi,yi,gi){var xi=Nn?fi-ei+1:fi;if(!(xi<0||xi+ei>Dn.getLength())){var ai=Dn.getLine(xi),oi=ai.search(Bn[0]);if(!(!Nn&&oi<yi||oi===-1)){for(var li=1;li<ei;li++)if(ai=Dn.getLine(xi+li),ai.search(Bn[li])==-1)return;var wi=ai.match(Bn[ei-1])[0].length;if(!(Nn&&wi>yi)&&gi(xi,oi,xi+ei-1,wi))return!0}}};else if(Nn)var mi=function(fi,yi,gi){var xi=Dn.getLine(fi),ai=[],oi,li=0;for(Bn.lastIndex=0;oi=Bn.exec(xi);){var wi=oi[0].length;if(li=oi.index,!wi){if(li>=xi.length)break;Bn.lastIndex=li+=Wn.skipEmptyMatch(xi,li,Qn)}if(oi.index+wi>yi)break;ai.push(oi.index,wi)}for(var bi=ai.length-1;bi>=0;bi-=2){var _i=ai[bi-1],wi=ai[bi];if(gi(fi,_i,fi,_i+wi))return!0}};else var mi=function(fi,yi,gi){var xi=Dn.getLine(fi),ai,oi;for(Bn.lastIndex=yi;oi=Bn.exec(xi);){var li=oi[0].length;if(ai=oi.index,gi(fi,ai,fi,ai+li))return!0;if(!li&&(Bn.lastIndex=ai+=Wn.skipEmptyMatch(xi,ai,Qn),ai>=xi.length))return!1}};return{forEach:si}},In}();function qn(In,Dn){var Pn=Wn.supportsLookbehind();function Bn(Jn,ti){ti===void 0&&(ti=!0);var vi=Pn&&Dn.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return vi.test(Jn)||Dn.regExp?Pn&&Dn.$supportsUnicodeFlag?ti?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var Nn=Array.from(In),zn=Nn[0],Qn=Nn[Nn.length-1];return Bn(zn)+In+Bn(Qn,!1)}Mn.Search=Hn}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(kn,Mn,Yn){var Wn=this&&this.__extends||function(){var Pn=function(Bn,Nn){return Pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(zn,Qn){zn.__proto__=Qn}||function(zn,Qn){for(var Jn in Qn)Object.prototype.hasOwnProperty.call(Qn,Jn)&&(zn[Jn]=Qn[Jn])},Pn(Bn,Nn)};return function(Bn,Nn){if(typeof Nn!="function"&&Nn!==null)throw new TypeError("Class extends value "+String(Nn)+" is not a constructor or null");Pn(Bn,Nn);function zn(){this.constructor=Bn}Bn.prototype=Nn===null?Object.create(Nn):(zn.prototype=Nn.prototype,new zn)}}(),Kn=kn("../lib/keys"),Xn=kn("../lib/useragent"),Hn=Kn.KEY_MODS,qn=function(){function Pn(Bn,Nn){this.$init(Bn,Nn,!1)}return Pn.prototype.$init=function(Bn,Nn,zn){this.platform=Nn||(Xn.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(Bn),this.$singleCommand=zn},Pn.prototype.addCommand=function(Bn){this.commands[Bn.name]&&this.removeCommand(Bn),this.commands[Bn.name]=Bn,Bn.bindKey&&this._buildKeyHash(Bn)},Pn.prototype.removeCommand=function(Bn,Nn){var zn=Bn&&(typeof Bn=="string"?Bn:Bn.name);Bn=this.commands[zn],Nn||delete this.commands[zn];var Qn=this.commandKeyBinding;for(var Jn in Qn){var ti=Qn[Jn];if(ti==Bn)delete Qn[Jn];else if(Array.isArray(ti)){var vi=ti.indexOf(Bn);vi!=-1&&(ti.splice(vi,1),ti.length==1&&(Qn[Jn]=ti[0]))}}},Pn.prototype.bindKey=function(Bn,Nn,zn){if(typeof Bn=="object"&&Bn&&(zn==null&&(zn=Bn.position),Bn=Bn[this.platform]),!!Bn){if(typeof Nn=="function")return this.addCommand({exec:Nn,bindKey:Bn,name:Nn.name||Bn});Bn.split("|").forEach(function(Qn){var Jn="";if(Qn.indexOf(" ")!=-1){var ti=Qn.split(/\s+/);Qn=ti.pop(),ti.forEach(function(si){var ei=this.parseKeys(si),mi=Hn[ei.hashId]+ei.key;Jn+=(Jn?" ":"")+mi,this._addCommandToBinding(Jn,"chainKeys")},this),Jn+=" "}var vi=this.parseKeys(Qn),pi=Hn[vi.hashId]+vi.key;this._addCommandToBinding(Jn+pi,Nn,zn)},this)}},Pn.prototype._addCommandToBinding=function(Bn,Nn,zn){var Qn=this.commandKeyBinding,Jn;if(!Nn)delete Qn[Bn];else if(!Qn[Bn]||this.$singleCommand)Qn[Bn]=Nn;else{Array.isArray(Qn[Bn])?(Jn=Qn[Bn].indexOf(Nn))!=-1&&Qn[Bn].splice(Jn,1):Qn[Bn]=[Qn[Bn]],typeof zn!="number"&&(zn=In(Nn));var ti=Qn[Bn];for(Jn=0;Jn<ti.length;Jn++){var vi=ti[Jn],pi=In(vi);if(pi>zn)break}ti.splice(Jn,0,Nn)}},Pn.prototype.addCommands=function(Bn){Bn&&Object.keys(Bn).forEach(function(Nn){var zn=Bn[Nn];if(zn){if(typeof zn=="string")return this.bindKey(zn,Nn);typeof zn=="function"&&(zn={exec:zn}),typeof zn=="object"&&(zn.name||(zn.name=Nn),this.addCommand(zn))}},this)},Pn.prototype.removeCommands=function(Bn){Object.keys(Bn).forEach(function(Nn){this.removeCommand(Bn[Nn])},this)},Pn.prototype.bindKeys=function(Bn){Object.keys(Bn).forEach(function(Nn){this.bindKey(Nn,Bn[Nn])},this)},Pn.prototype._buildKeyHash=function(Bn){this.bindKey(Bn.bindKey,Bn)},Pn.prototype.parseKeys=function(Bn){var Nn=Bn.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(pi){return pi}),zn=Nn.pop(),Qn=Kn[zn];if(Kn.FUNCTION_KEYS[Qn])zn=Kn.FUNCTION_KEYS[Qn].toLowerCase();else if(Nn.length){if(Nn.length==1&&Nn[0]=="shift")return{key:zn.toUpperCase(),hashId:-1}}else return{key:zn,hashId:-1};for(var Jn=0,ti=Nn.length;ti--;){var vi=Kn.KEY_MODS[Nn[ti]];if(vi==null)return typeof console<"u"&&console.error("invalid modifier "+Nn[ti]+" in "+Bn),!1;Jn|=vi}return{key:zn,hashId:Jn}},Pn.prototype.findKeyCommand=function(Bn,Nn){var zn=Hn[Bn]+Nn;return this.commandKeyBinding[zn]},Pn.prototype.handleKeyboard=function(Bn,Nn,zn,Qn){if(!(Qn<0)){var Jn=Hn[Nn]+zn,ti=this.commandKeyBinding[Jn];return Bn.$keyChain&&(Bn.$keyChain+=" "+Jn,ti=this.commandKeyBinding[Bn.$keyChain]||ti),ti&&(ti=="chainKeys"||ti[ti.length-1]=="chainKeys")?(Bn.$keyChain=Bn.$keyChain||Jn,{command:"null"}):(Bn.$keyChain&&((!Nn||Nn==4)&&zn.length==1?Bn.$keyChain=Bn.$keyChain.slice(0,-Jn.length-1):(Nn==-1||Qn>0)&&(Bn.$keyChain="")),{command:ti})}},Pn.prototype.getStatusText=function(Bn,Nn){return Nn.$keyChain||""},Pn}();function In(Pn){return typeof Pn=="object"&&Pn.bindKey&&Pn.bindKey.position||(Pn.isDefault?-100:0)}var Dn=function(Pn){Wn(Bn,Pn);function Bn(Nn,zn){var Qn=Pn.call(this,Nn,zn)||this;return Qn.$singleCommand=!0,Qn}return Bn}(qn);Dn.call=function(Pn,Bn,Nn){qn.prototype.$init.call(Pn,Bn,Nn,!0)},qn.call=function(Pn,Bn,Nn){qn.prototype.$init.call(Pn,Bn,Nn,!1)},Mn.HashHandler=Dn,Mn.MultiHashHandler=qn}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(kn,Mn,Yn){var Wn=this&&this.__extends||function(){var In=function(Dn,Pn){return In=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bn,Nn){Bn.__proto__=Nn}||function(Bn,Nn){for(var zn in Nn)Object.prototype.hasOwnProperty.call(Nn,zn)&&(Bn[zn]=Nn[zn])},In(Dn,Pn)};return function(Dn,Pn){if(typeof Pn!="function"&&Pn!==null)throw new TypeError("Class extends value "+String(Pn)+" is not a constructor or null");In(Dn,Pn);function Bn(){this.constructor=Dn}Dn.prototype=Pn===null?Object.create(Pn):(Bn.prototype=Pn.prototype,new Bn)}}(),Kn=kn("../lib/oop"),Xn=kn("../keyboard/hash_handler").MultiHashHandler,Hn=kn("../lib/event_emitter").EventEmitter,qn=function(In){Wn(Dn,In);function Dn(Pn,Bn){var Nn=In.call(this,Bn,Pn)||this;return Nn.byName=Nn.commands,Nn.setDefaultHandler("exec",function(zn){return zn.args?zn.command.exec(zn.editor,zn.args,zn.event,!1):zn.command.exec(zn.editor,{},zn.event,!0)}),Nn}return Dn.prototype.exec=function(Pn,Bn,Nn){if(Array.isArray(Pn)){for(var zn=Pn.length;zn--;)if(this.exec(Pn[zn],Bn,Nn))return!0;return!1}if(typeof Pn=="string"&&(Pn=this.commands[Pn]),!this.canExecute(Pn,Bn))return!1;var Qn={editor:Bn,command:Pn,args:Nn};return Qn.returnValue=this._emit("exec",Qn),this._signal("afterExec",Qn),Qn.returnValue!==!1},Dn.prototype.canExecute=function(Pn,Bn){return typeof Pn=="string"&&(Pn=this.commands[Pn]),!(!Pn||Bn&&Bn.$readOnly&&!Pn.readOnly||this.$checkCommandState!=!1&&Pn.isAvailable&&!Pn.isAvailable(Bn))},Dn.prototype.toggleRecording=function(Pn){if(!this.$inReplay)return Pn&&Pn._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(Bn){this.macro.push([Bn.command,Bn.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},Dn.prototype.replay=function(Pn){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(Pn);try{this.$inReplay=!0,this.macro.forEach(function(Bn){typeof Bn=="string"?this.exec(Bn,Pn):this.exec(Bn[0],Pn,Bn[1])},this)}finally{this.$inReplay=!1}}},Dn.prototype.trimMacro=function(Pn){return Pn.map(function(Bn){return typeof Bn[0]!="string"&&(Bn[0]=Bn[0].name),Bn[1]||(Bn=Bn[0]),Bn})},Dn}(Xn);Kn.implement(qn.prototype,Hn),Mn.CommandManager=qn}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(kn,Mn,Yn){var Wn=kn("../lib/lang"),Kn=kn("../config"),Xn=kn("../range").Range;function Hn(In,Dn){return{win:In,mac:Dn}}Mn.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:Hn("Ctrl-,","Command-,"),exec:function(In){Kn.loadModule("ace/ext/settings_menu",function(Dn){Dn.init(In),In.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:Hn("Alt-E","F4"),exec:function(In){Kn.loadModule("ace/ext/error_marker",function(Dn){Dn.showErrorMarker(In,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:Hn("Alt-Shift-E","Shift-F4"),exec:function(In){Kn.loadModule("ace/ext/error_marker",function(Dn){Dn.showErrorMarker(In,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:Hn("Ctrl-A","Command-A"),exec:function(In){In.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:Hn(null,"Ctrl-L"),exec:function(In){In.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:Hn("Ctrl-L","Command-L"),exec:function(In,Dn){typeof Dn=="number"&&!isNaN(Dn)&&In.gotoLine(Dn),In.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:Hn("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(In){In.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:Hn("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(In){In.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:Hn("F2","F2"),exec:function(In){In.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:Hn("Alt-F2","Alt-F2"),exec:function(In){In.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:Hn(null,"Ctrl-Command-Option-0"),exec:function(In){In.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:Hn(null,"Ctrl-Command-Option-0"),exec:function(In){In.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:Hn("Alt-0","Command-Option-0"),exec:function(In){In.session.foldAll(),In.session.unfold(In.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:Hn("Alt-Shift-0","Command-Option-Shift-0"),exec:function(In){In.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:Hn("Ctrl-K","Command-G"),exec:function(In){In.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:Hn("Ctrl-Shift-K","Command-Shift-G"),exec:function(In){In.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:Hn("Alt-K","Ctrl-G"),exec:function(In){In.selection.isEmpty()?In.selection.selectWord():In.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:Hn("Alt-Shift-K","Ctrl-Shift-G"),exec:function(In){In.selection.isEmpty()?In.selection.selectWord():In.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:Hn("Ctrl-F","Command-F"),exec:function(In){Kn.loadModule("ace/ext/searchbox",function(Dn){Dn.Search(In)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(In){In.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:Hn("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(In){In.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:Hn("Ctrl-Home","Command-Home|Command-Up"),exec:function(In){In.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:Hn("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(In){In.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:Hn("Up","Up|Ctrl-P"),exec:function(In,Dn){In.navigateUp(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:Hn("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(In){In.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:Hn("Ctrl-End","Command-End|Command-Down"),exec:function(In){In.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:Hn("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(In){In.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:Hn("Down","Down|Ctrl-N"),exec:function(In,Dn){In.navigateDown(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:Hn("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(In){In.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:Hn("Ctrl-Left","Option-Left"),exec:function(In){In.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:Hn("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(In){In.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:Hn("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(In){In.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:Hn("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(In){In.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:Hn("Left","Left|Ctrl-B"),exec:function(In,Dn){In.navigateLeft(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:Hn("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(In){In.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:Hn("Ctrl-Right","Option-Right"),exec:function(In){In.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:Hn("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(In){In.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:Hn("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(In){In.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:Hn("Shift-Right","Shift-Right"),exec:function(In){In.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:Hn("Right","Right|Ctrl-F"),exec:function(In,Dn){In.navigateRight(Dn.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(In){In.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:Hn(null,"Option-PageDown"),exec:function(In){In.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:Hn("PageDown","PageDown|Ctrl-V"),exec:function(In){In.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(In){In.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:Hn(null,"Option-PageUp"),exec:function(In){In.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(In){In.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:Hn("Ctrl-Up",null),exec:function(In){In.renderer.scrollBy(0,-2*In.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:Hn("Ctrl-Down",null),exec:function(In){In.renderer.scrollBy(0,2*In.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(In){In.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(In){In.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:Hn("Ctrl-Alt-E","Command-Option-E"),exec:function(In){In.commands.toggleRecording(In)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:Hn("Ctrl-Shift-E","Command-Shift-E"),exec:function(In){In.commands.replay(In)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:Hn("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(In){In.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:Hn("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(In){In.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:Hn("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(In){In.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:Hn(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(In){},readOnly:!0},{name:"cut",description:"Cut",exec:function(In){var Dn=In.$copyWithEmptySelection&&In.selection.isEmpty(),Pn=Dn?In.selection.getLineRange():In.selection.getRange();In._emit("cut",Pn),Pn.isEmpty()||In.session.remove(Pn),In.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(In,Dn){In.$handlePaste(Dn)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:Hn("Ctrl-D","Command-D"),exec:function(In){In.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:Hn("Ctrl-Shift-D","Command-Shift-D"),exec:function(In){In.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:Hn("Ctrl-Alt-S","Command-Alt-S"),exec:function(In){In.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:Hn("Ctrl-/","Command-/"),exec:function(In){In.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:Hn("Ctrl-Shift-/","Command-Shift-/"),exec:function(In){In.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:Hn("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(In){In.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:Hn("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(In){In.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:Hn("Ctrl-H","Command-Option-F"),exec:function(In){Kn.loadModule("ace/ext/searchbox",function(Dn){Dn.Search(In,!0)})}},{name:"undo",description:"Undo",bindKey:Hn("Ctrl-Z","Command-Z"),exec:function(In){In.undo()}},{name:"redo",description:"Redo",bindKey:Hn("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(In){In.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:Hn("Alt-Shift-Up","Command-Option-Up"),exec:function(In){In.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:Hn("Alt-Up","Option-Up"),exec:function(In){In.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:Hn("Alt-Shift-Down","Command-Option-Down"),exec:function(In){In.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:Hn("Alt-Down","Option-Down"),exec:function(In){In.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:Hn("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(In){In.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:Hn("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(In){In.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:Hn("Shift-Delete",null),exec:function(In){if(In.selection.isEmpty())In.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:Hn("Alt-Backspace","Command-Backspace"),exec:function(In){In.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:Hn("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(In){In.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:Hn("Ctrl-Shift-Backspace",null),exec:function(In){var Dn=In.selection.getRange();Dn.start.column=0,In.session.remove(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:Hn("Ctrl-Shift-Delete",null),exec:function(In){var Dn=In.selection.getRange();Dn.end.column=Number.MAX_VALUE,In.session.remove(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:Hn("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(In){In.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:Hn("Ctrl-Delete","Alt-Delete"),exec:function(In){In.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:Hn("Shift-Tab","Shift-Tab"),exec:function(In){In.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:Hn("Tab","Tab"),exec:function(In){In.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:Hn("Ctrl-[","Ctrl-["),exec:function(In){In.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:Hn("Ctrl-]","Ctrl-]"),exec:function(In){In.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(In,Dn){In.insert(Dn)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(In,Dn){In.insert(Wn.stringRepeat(Dn.text||"",Dn.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:Hn(null,"Ctrl-O"),exec:function(In){In.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:Hn("Alt-Shift-X","Ctrl-T"),exec:function(In){In.transposeLetters()},multiSelectAction:function(In){In.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:Hn("Ctrl-U","Ctrl-U"),exec:function(In){In.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:Hn("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(In){In.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:Hn(null,null),exec:function(In){In.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:Hn("Ctrl-Shift-L","Command-Shift-L"),exec:function(In){var Dn=In.selection.getRange();Dn.start.column=Dn.end.column=0,Dn.end.row++,In.selection.setRange(Dn,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:Hn("Ctrl+F3","F3"),exec:function(In){In.openLink()}},{name:"joinlines",description:"Join lines",bindKey:Hn(null,null),exec:function(In){for(var Dn=In.selection.isBackwards(),Pn=Dn?In.selection.getSelectionLead():In.selection.getSelectionAnchor(),Bn=Dn?In.selection.getSelectionAnchor():In.selection.getSelectionLead(),Nn=In.session.doc.getLine(Pn.row).length,zn=In.session.doc.getTextRange(In.selection.getRange()),Qn=zn.replace(/\n\s*/," ").length,Jn=In.session.doc.getLine(Pn.row),ti=Pn.row+1;ti<=Bn.row+1;ti++){var vi=Wn.stringTrimLeft(Wn.stringTrimRight(In.session.doc.getLine(ti)));vi.length!==0&&(vi=" "+vi),Jn+=vi}Bn.row+1<In.session.doc.getLength()-1&&(Jn+=In.session.doc.getNewLineCharacter()),In.clearSelection(),In.session.doc.replace(new Xn(Pn.row,0,Bn.row+2,0),Jn),Qn>0?(In.selection.moveCursorTo(Pn.row,Pn.column),In.selection.selectTo(Pn.row,Pn.column+Qn)):(Nn=In.session.doc.getLine(Pn.row).length>Nn?Nn+1:Nn,In.selection.moveCursorTo(Pn.row,Nn))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:Hn(null,null),exec:function(In){var Dn=In.session.doc.getLength()-1,Pn=In.session.doc.getLine(Dn).length,Bn=In.selection.rangeList.ranges,Nn=[];Bn.length<1&&(Bn=[In.selection.getRange()]);for(var zn=0;zn<Bn.length;zn++)zn==Bn.length-1&&(Bn[zn].end.row===Dn&&Bn[zn].end.column===Pn||Nn.push(new Xn(Bn[zn].end.row,Bn[zn].end.column,Dn,Pn))),zn===0?Bn[zn].start.row===0&&Bn[zn].start.column===0||Nn.push(new Xn(0,0,Bn[zn].start.row,Bn[zn].start.column)):Nn.push(new Xn(Bn[zn-1].end.row,Bn[zn-1].end.column,Bn[zn].start.row,Bn[zn].start.column));In.exitMultiSelectMode(),In.clearSelection();for(var zn=0;zn<Nn.length;zn++)In.selection.addRange(Nn[zn],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(In){In.selection.clearSelection(),In.navigateLineEnd(),In.insert(`
201
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(In){In.selection.clearSelection();var Dn=In.getCursorPosition();In.selection.moveTo(Dn.row-1,Number.MAX_VALUE),In.insert(`
202
+ `),Dn.row===0&&In.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(In){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),In.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:Hn("F1","F1"),exec:function(In){In.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:Hn(null,null),exec:function(In){In.prompt({$type:"modes"})},readOnly:!0}];for(var qn=1;qn<9;qn++)Mn.commands.push({name:"foldToLevel"+qn,description:"Fold To Level "+qn,level:qn,exec:function(In){In.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(kn,Mn,Yn){var Wn=kn("../lib/keys"),Kn=kn("../mouse/default_gutter_handler").GutterTooltip,Xn=function(){function qn(In){this.editor=In,this.gutterLayer=In.renderer.$gutterLayer,this.element=In.renderer.$gutter,this.lines=In.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new Kn(this.editor)}return qn.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},qn.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},qn.prototype.$onGutterKeyDown=function(In){if(this.annotationTooltip.isOpen){In.preventDefault(),In.keyCode===Wn.escape&&this.annotationTooltip.hideTooltip();return}if(In.target===this.element){if(In.keyCode!=Wn.enter)return;In.preventDefault();var Dn=this.editor.getCursorPosition().row;this.editor.isRowVisible(Dn)||this.editor.scrollToLine(Dn,!0,!0),setTimeout((function(){var Pn=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),Bn=this.$findNearestFoldWidget(Pn),Nn=this.$findNearestAnnotation(Pn);if(!(Bn===null&&Nn===null)){if(Bn===null&&Nn!==null){this.activeRowIndex=Nn,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(Bn!==null&&Nn===null){this.activeRowIndex=Bn,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(Nn-Pn)<Math.abs(Bn-Pn)){this.activeRowIndex=Nn,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=Bn,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(In),setTimeout((function(){this.editor._signal("gutterkeydown",new Hn(In,this))}).bind(this),10)},qn.prototype.$handleGutterKeyboardInteraction=function(In){if(In.keyCode===Wn.tab){In.preventDefault();return}if(In.keyCode===Wn.escape){In.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(In.keyCode===Wn.up){switch(In.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(In.keyCode===Wn.down){switch(In.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(In.keyCode===Wn.left){In.preventDefault(),this.$switchLane("annotation");return}if(In.keyCode===Wn.right){In.preventDefault(),this.$switchLane("fold");return}if(In.keyCode===Wn.enter||In.keyCode===Wn.space){switch(In.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var Dn=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),In),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==Dn&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(Dn),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var Pn=this.lines.cells[this.activeRowIndex].element.childNodes[2],Bn=Pn.getBoundingClientRect(),Nn=this.annotationTooltip.getElement().style;Nn.left=Bn.right+"px",Nn.top=Bn.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},qn.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},qn.prototype.$isFoldWidgetVisible=function(In){var Dn=this.editor.isRowFullyVisible(this.$rowIndexToRow(In)),Pn=this.$getFoldWidget(In).style.display!=="none";return Dn&&Pn},qn.prototype.$isAnnotationVisible=function(In){var Dn=this.editor.isRowFullyVisible(this.$rowIndexToRow(In)),Pn=this.$getAnnotation(In).style.display!=="none";return Dn&&Pn},qn.prototype.$getFoldWidget=function(In){var Dn=this.lines.get(In),Pn=Dn.element;return Pn.childNodes[1]},qn.prototype.$getAnnotation=function(In){var Dn=this.lines.get(In),Pn=Dn.element;return Pn.childNodes[2]},qn.prototype.$findNearestFoldWidget=function(In){if(this.$isFoldWidgetVisible(In))return In;for(var Dn=0;In-Dn>0||In+Dn<this.lines.getLength()-1;){if(Dn++,In-Dn>=0&&this.$isFoldWidgetVisible(In-Dn))return In-Dn;if(In+Dn<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(In+Dn))return In+Dn}return null},qn.prototype.$findNearestAnnotation=function(In){if(this.$isAnnotationVisible(In))return In;for(var Dn=0;In-Dn>0||In+Dn<this.lines.getLength()-1;){if(Dn++,In-Dn>=0&&this.$isAnnotationVisible(In-Dn))return In-Dn;if(In+Dn<=this.lines.getLength()-1&&this.$isAnnotationVisible(In+Dn))return In+Dn}return null},qn.prototype.$focusFoldWidget=function(In){if(In!=null){var Dn=this.$getFoldWidget(In);Dn.classList.add(this.editor.renderer.keyboardFocusClassName),Dn.focus()}},qn.prototype.$focusAnnotation=function(In){if(In!=null){var Dn=this.$getAnnotation(In);Dn.classList.add(this.editor.renderer.keyboardFocusClassName),Dn.focus()}},qn.prototype.$blurFoldWidget=function(In){var Dn=this.$getFoldWidget(In);Dn.classList.remove(this.editor.renderer.keyboardFocusClassName),Dn.blur()},qn.prototype.$blurAnnotation=function(In){var Dn=this.$getAnnotation(In);Dn.classList.remove(this.editor.renderer.keyboardFocusClassName),Dn.blur()},qn.prototype.$moveFoldWidgetUp=function(){for(var In=this.activeRowIndex;In>0;)if(In--,this.$isFoldWidgetVisible(In)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=In,this.$focusFoldWidget(this.activeRowIndex);return}},qn.prototype.$moveFoldWidgetDown=function(){for(var In=this.activeRowIndex;In<this.lines.getLength()-1;)if(In++,this.$isFoldWidgetVisible(In)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=In,this.$focusFoldWidget(this.activeRowIndex);return}},qn.prototype.$moveAnnotationUp=function(){for(var In=this.activeRowIndex;In>0;)if(In--,this.$isAnnotationVisible(In)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=In,this.$focusAnnotation(this.activeRowIndex);return}},qn.prototype.$moveAnnotationDown=function(){for(var In=this.activeRowIndex;In<this.lines.getLength()-1;)if(In++,this.$isAnnotationVisible(In)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=In,this.$focusAnnotation(this.activeRowIndex);return}},qn.prototype.$switchLane=function(In){switch(In){case"annotation":if(this.activeLane==="annotation")break;var Dn=this.$findNearestAnnotation(this.activeRowIndex);if(Dn==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=Dn,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var Pn=this.$findNearestFoldWidget(this.activeRowIndex);if(Pn==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=Pn,this.$focusFoldWidget(this.activeRowIndex);break}},qn.prototype.$rowIndexToRow=function(In){var Dn=this.lines.get(In);return Dn?Dn.row:null},qn.prototype.$rowToRowIndex=function(In){for(var Dn=0;Dn<this.lines.getLength();Dn++){var Pn=this.lines.get(Dn);if(Pn.row==In)return Dn}return null},qn}();Mn.GutterKeyboardHandler=Xn;var Hn=function(){function qn(In,Dn){this.gutterKeyboardHandler=Dn,this.domEvent=In}return qn.prototype.getKey=function(){return Wn.keyCodeToString(this.domEvent.keyCode)},qn.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},qn.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},qn.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},qn}();Mn.GutterKeyboardEvent=Hn}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(kn,Mn,Yn){var Wn=this&&this.__values||function(ai){var oi=typeof Symbol=="function"&&Symbol.iterator,li=oi&&ai[oi],wi=0;if(li)return li.call(ai);if(ai&&typeof ai.length=="number")return{next:function(){return ai&&wi>=ai.length&&(ai=void 0),{value:ai&&ai[wi++],done:!ai}}};throw new TypeError(oi?"Object is not iterable.":"Symbol.iterator is not defined.")},Kn=kn("./lib/oop"),Xn=kn("./lib/dom"),Hn=kn("./lib/lang"),qn=kn("./lib/useragent"),In=kn("./keyboard/textinput").TextInput,Dn=kn("./mouse/mouse_handler").MouseHandler,Pn=kn("./mouse/fold_handler").FoldHandler,Bn=kn("./keyboard/keybinding").KeyBinding,Nn=kn("./edit_session").EditSession,zn=kn("./search").Search,Qn=kn("./range").Range,Jn=kn("./lib/event_emitter").EventEmitter,ti=kn("./commands/command_manager").CommandManager,vi=kn("./commands/default_commands").commands,pi=kn("./config"),si=kn("./token_iterator").TokenIterator,ei=kn("./keyboard/gutter_handler").GutterKeyboardHandler,mi=kn("./config").nls,fi=kn("./clipboard"),yi=kn("./lib/keys"),gi=function(){function ai(oi,li,wi){this.session,this.$toDestroy=[];var bi=oi.getContainerElement();this.container=bi,this.renderer=oi,this.id="editor"+ ++ai.$uid,this.commands=new ti(qn.isMac?"mac":"win",vi),typeof document=="object"&&(this.textInput=new In(oi.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new Dn(this),new Pn(this)),this.keyBinding=new Bn(this),this.$search=new zn().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=Hn.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(_i,Ti){Ti._$emitInputEvent.schedule(31)}),this.setSession(li||wi&&wi.session||new Nn("")),pi.resetOptions(this),wi&&this.setOptions(wi),pi._signal("editor",this)}return ai.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},ai.prototype.startOperation=function(oi){this.session.startOperation(oi)},ai.prototype.endOperation=function(oi){this.session.endOperation(oi)},ai.prototype.onStartOperation=function(oi){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,oi||(this.previousCommand=null)},ai.prototype.onEndOperation=function(oi){if(this.curOp&&this.session){if(oi&&oi.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var li=this.curOp.command,wi=li&&li.scrollIntoView;if(wi){switch(wi){case"center-animate":wi="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var bi=this.selection.getRange(),_i=this.renderer.layerConfig;(bi.start.row>=_i.lastRow||bi.end.row<=_i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}wi=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},ai.prototype.$historyTracker=function(oi){if(this.$mergeUndoDeltas){var li=this.prevOp,wi=this.$mergeableCommands,bi=li.command&&oi.command.name==li.command.name;if(oi.command.name=="insertstring"){var _i=oi.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),bi=bi&&this.mergeNextCommand&&(!/\s/.test(_i)||/\s/.test(li.args)),this.mergeNextCommand=!0}else bi=bi&&wi.indexOf(oi.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(bi=!1),bi?this.session.mergeUndoDeltas=!0:wi.indexOf(oi.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},ai.prototype.setKeyboardHandler=function(oi,li){if(oi&&typeof oi=="string"&&oi!="ace"){this.$keybindingId=oi;var wi=this;pi.loadModule(["keybinding",oi],function(bi){wi.$keybindingId==oi&&wi.keyBinding.setKeyboardHandler(bi&&bi.handler),li&&li()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(oi),li&&li()},ai.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},ai.prototype.setSession=function(oi){if(this.session!=oi){this.curOp&&this.endOperation(),this.curOp={};var li=this.session;if(li){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var wi=this.session.getSelection();wi.off("changeCursor",this.$onCursorChange),wi.off("changeSelection",this.$onSelectionChange)}this.session=oi,oi?(this.$onDocumentChange=this.onDocumentChange.bind(this),oi.on("change",this.$onDocumentChange),this.renderer.setSession(oi),this.$onChangeMode=this.onChangeMode.bind(this),oi.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),oi.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),oi.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),oi.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),oi.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),oi.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=oi.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(oi)),this._signal("changeSession",{session:oi,oldSession:li}),this.curOp=null,li&&li._signal("changeEditor",{oldEditor:this}),li&&(li.$editor=null),oi&&oi._signal("changeEditor",{editor:this}),oi&&(oi.$editor=this),oi&&!oi.destroyed&&oi.bgTokenizer.scheduleStart()}},ai.prototype.getSession=function(){return this.session},ai.prototype.setValue=function(oi,li){return this.session.doc.setValue(oi),li?li==1?this.navigateFileEnd():li==-1&&this.navigateFileStart():this.selectAll(),oi},ai.prototype.getValue=function(){return this.session.getValue()},ai.prototype.getSelection=function(){return this.selection},ai.prototype.resize=function(oi){this.renderer.onResize(oi)},ai.prototype.setTheme=function(oi,li){this.renderer.setTheme(oi,li)},ai.prototype.getTheme=function(){return this.renderer.getTheme()},ai.prototype.setStyle=function(oi){this.renderer.setStyle(oi)},ai.prototype.unsetStyle=function(oi){this.renderer.unsetStyle(oi)},ai.prototype.getFontSize=function(){return this.getOption("fontSize")||Xn.computedStyle(this.container).fontSize},ai.prototype.setFontSize=function(oi){this.setOption("fontSize",oi)},ai.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var oi=this;this.$highlightPending=!0,setTimeout(function(){oi.$highlightPending=!1;var li=oi.session;if(!(!li||li.destroyed)){li.$bracketHighlight&&(li.$bracketHighlight.markerIds.forEach(function(Oi){li.removeMarker(Oi)}),li.$bracketHighlight=null);var wi=oi.getCursorPosition(),bi=oi.getKeyboardHandler(),_i=bi&&bi.$getDirectionForHighlight&&bi.$getDirectionForHighlight(oi),Ti=li.getMatchingBracketRanges(wi,_i);if(!Ti){var Li=new si(li,wi.row,wi.column),Ri=Li.getCurrentToken();if(Ri&&/\b(?:tag-open|tag-name)/.test(Ri.type)){var Ii=li.getMatchingTags(wi);Ii&&(Ti=[Ii.openTagName.isEmpty()?Ii.openTag:Ii.openTagName,Ii.closeTagName.isEmpty()?Ii.closeTag:Ii.closeTagName])}}if(!Ti&&li.$mode.getMatching&&(Ti=li.$mode.getMatching(oi.session)),!Ti){oi.getHighlightIndentGuides()&&oi.renderer.$textLayer.$highlightIndentGuide();return}var zi="ace_bracket";Array.isArray(Ti)?Ti.length==1&&(zi="ace_error_bracket"):Ti=[Ti],Ti.length==2&&(Qn.comparePoints(Ti[0].end,Ti[1].start)==0?Ti=[Qn.fromPoints(Ti[0].start,Ti[1].end)]:Qn.comparePoints(Ti[0].start,Ti[1].end)==0&&(Ti=[Qn.fromPoints(Ti[1].start,Ti[0].end)])),li.$bracketHighlight={ranges:Ti,markerIds:Ti.map(function(Oi){return li.addMarker(Oi,zi,"text")})},oi.getHighlightIndentGuides()&&oi.renderer.$textLayer.$highlightIndentGuide()}},50)}},ai.prototype.focus=function(){this.textInput.focus()},ai.prototype.isFocused=function(){return this.textInput.isFocused()},ai.prototype.blur=function(){this.textInput.blur()},ai.prototype.onFocus=function(oi){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",oi))},ai.prototype.onBlur=function(oi){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",oi))},ai.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},ai.prototype.onDocumentChange=function(oi){var li=this.session.$useWrapMode,wi=oi.start.row==oi.end.row?oi.end.row:1/0;this.renderer.updateLines(oi.start.row,wi,li),this._signal("change",oi),this.$cursorChange()},ai.prototype.onTokenizerUpdate=function(oi){var li=oi.data;this.renderer.updateLines(li.first,li.last)},ai.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},ai.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},ai.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},ai.prototype.$updateHighlightActiveLine=function(){var oi=this.getSession(),li;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(li=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(li=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(li=!1)),oi.$highlightLineMarker&&!li)oi.removeMarker(oi.$highlightLineMarker.id),oi.$highlightLineMarker=null;else if(!oi.$highlightLineMarker&&li){var wi=new Qn(li.row,li.column,li.row,1/0);wi.id=oi.addMarker(wi,"ace_active-line","screenLine"),oi.$highlightLineMarker=wi}else li&&(oi.$highlightLineMarker.start.row=li.row,oi.$highlightLineMarker.end.row=li.row,oi.$highlightLineMarker.start.column=li.column,oi._signal("changeBackMarker"))},ai.prototype.onSelectionChange=function(oi){var li=this.session;if(li.$selectionMarker&&li.removeMarker(li.$selectionMarker),li.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var wi=this.selection.getRange(),bi=this.getSelectionStyle();li.$selectionMarker=li.addMarker(wi,"ace_selection",bi)}var _i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(_i),this._signal("changeSelection")},ai.prototype.$getSelectionHighLightRegexp=function(){var oi=this.session,li=this.getSelectionRange();if(!(li.isEmpty()||li.isMultiLine())){var wi=li.start.column,bi=li.end.column,_i=oi.getLine(li.start.row),Ti=_i.substring(wi,bi);if(!(Ti.length>5e3||!/[\w\d]/.test(Ti))){var Li=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:Ti}),Ri=_i.substring(wi-1,bi+1);if(Li.test(Ri))return Li}}},ai.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},ai.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},ai.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},ai.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},ai.prototype.onChangeMode=function(oi){this.renderer.updateText(),this._emit("changeMode",oi)},ai.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},ai.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},ai.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},ai.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},ai.prototype.getCopyText=function(){var oi=this.getSelectedText(),li=this.session.doc.getNewLineCharacter(),wi=!1;if(!oi&&this.$copyWithEmptySelection){wi=!0;for(var bi=this.selection.getAllRanges(),_i=0;_i<bi.length;_i++){var Ti=bi[_i];_i&&bi[_i-1].start.row==Ti.start.row||(oi+=this.session.getLine(Ti.start.row)+li)}}var Li={text:oi};return this._signal("copy",Li),fi.lineMode=wi?Li.text:!1,Li.text},ai.prototype.onCopy=function(){this.commands.exec("copy",this)},ai.prototype.onCut=function(){this.commands.exec("cut",this)},ai.prototype.onPaste=function(oi,li){var wi={text:oi,event:li};this.commands.exec("paste",this,wi)},ai.prototype.$handlePaste=function(oi){typeof oi=="string"&&(oi={text:oi}),this._signal("paste",oi);var li=oi.text,wi=li===fi.lineMode,bi=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)wi?bi.insert({row:this.selection.lead.row,column:0},li):this.insert(li);else if(wi)this.selection.rangeList.ranges.forEach(function(zi){bi.insert({row:zi.start.row,column:0},li)});else{var _i=li.split(/\r\n|\r|\n/),Ti=this.selection.rangeList.ranges,Li=_i.length==2&&(!_i[0]||!_i[1]);if(_i.length!=Ti.length||Li)return this.commands.exec("insertstring",this,li);for(var Ri=Ti.length;Ri--;){var Ii=Ti[Ri];Ii.isEmpty()||bi.remove(Ii),bi.insert(Ii.start,_i[Ri])}}},ai.prototype.execCommand=function(oi,li){return this.commands.exec(oi,this,li)},ai.prototype.insert=function(oi,li){var wi=this.session,bi=wi.getMode(),_i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!li){var Ti=bi.transformAction(wi.getState(_i.row),"insertion",this,wi,oi);Ti&&(oi!==Ti.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),oi=Ti.text)}if(oi==" "&&(oi=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&oi.indexOf(`
203
+ `)==-1){var Li=Qn.fromPoints(_i,_i);Li.end.column+=oi.length,this.session.remove(Li)}}else{var Li=this.getSelectionRange();_i=this.session.remove(Li),this.clearSelection()}if(oi==`
204
+ `||oi==`\r
205
+ `){var Oi=wi.getLine(_i.row);if(_i.column>Oi.search(/\S|$/)){var Ri=Oi.substr(_i.column).search(/\S|$/);wi.doc.removeInLine(_i.row,_i.column,_i.column+Ri)}}this.clearSelection();var Ii=_i.column,zi=wi.getState(_i.row),Oi=wi.getLine(_i.row),Bi=bi.checkOutdent(zi,Oi,oi);if(wi.insert(_i,oi),Ti&&Ti.selection&&(Ti.selection.length==2?this.selection.setSelectionRange(new Qn(_i.row,Ii+Ti.selection[0],_i.row,Ii+Ti.selection[1])):this.selection.setSelectionRange(new Qn(_i.row+Ti.selection[0],Ti.selection[1],_i.row+Ti.selection[2],Ti.selection[3]))),this.$enableAutoIndent){if(wi.getDocument().isNewLine(oi)){var Yi=bi.getNextLineIndent(zi,Oi.slice(0,_i.column),wi.getTabString());wi.insert({row:_i.row+1,column:0},Yi)}Bi&&bi.autoOutdent(zi,wi,_i.row)}},ai.prototype.autoIndent=function(){for(var oi=this.session,li=oi.getMode(),wi=this.selection.isEmpty()?[new Qn(0,0,oi.doc.getLength()-1,0)]:this.selection.getAllRanges(),bi="",_i="",Ti="",Li=oi.getTabString(),Ri=0;Ri<wi.length;Ri++)for(var Ii=wi[Ri].start.row,zi=wi[Ri].end.row,Oi=Ii;Oi<=zi;Oi++){Oi>0&&(bi=oi.getState(Oi-1),_i=oi.getLine(Oi-1),Ti=li.getNextLineIndent(bi,_i,Li));var Bi=oi.getLine(Oi),Yi=li.$getIndent(Bi);if(Ti!==Yi){if(Yi.length>0){var Fi=new Qn(Oi,0,Oi,Yi.length);oi.remove(Fi)}Ti.length>0&&oi.insert({row:Oi,column:0},Ti)}li.autoOutdent(bi,oi,Oi)}},ai.prototype.onTextInput=function(oi,li){if(!li)return this.keyBinding.onTextInput(oi);this.startOperation({command:{name:"insertstring"}});var wi=this.applyComposition.bind(this,oi,li);this.selection.rangeCount?this.forEachSelection(wi):wi(),this.endOperation()},ai.prototype.applyComposition=function(oi,li){if(li.extendLeft||li.extendRight){var wi=this.selection.getRange();wi.start.column-=li.extendLeft,wi.end.column+=li.extendRight,wi.start.column<0&&(wi.start.row--,wi.start.column+=this.session.getLine(wi.start.row).length+1),this.selection.setRange(wi),!oi&&!wi.isEmpty()&&this.remove()}if((oi||!this.selection.isEmpty())&&this.insert(oi,!0),li.restoreStart||li.restoreEnd){var wi=this.selection.getRange();wi.start.column-=li.restoreStart,wi.end.column-=li.restoreEnd,this.selection.setRange(wi)}},ai.prototype.onCommandKey=function(oi,li,wi){return this.keyBinding.onCommandKey(oi,li,wi)},ai.prototype.setOverwrite=function(oi){this.session.setOverwrite(oi)},ai.prototype.getOverwrite=function(){return this.session.getOverwrite()},ai.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},ai.prototype.setScrollSpeed=function(oi){this.setOption("scrollSpeed",oi)},ai.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},ai.prototype.setDragDelay=function(oi){this.setOption("dragDelay",oi)},ai.prototype.getDragDelay=function(){return this.getOption("dragDelay")},ai.prototype.setSelectionStyle=function(oi){this.setOption("selectionStyle",oi)},ai.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},ai.prototype.setHighlightActiveLine=function(oi){this.setOption("highlightActiveLine",oi)},ai.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},ai.prototype.setHighlightGutterLine=function(oi){this.setOption("highlightGutterLine",oi)},ai.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},ai.prototype.setHighlightSelectedWord=function(oi){this.setOption("highlightSelectedWord",oi)},ai.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},ai.prototype.setAnimatedScroll=function(oi){this.renderer.setAnimatedScroll(oi)},ai.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},ai.prototype.setShowInvisibles=function(oi){this.renderer.setShowInvisibles(oi)},ai.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},ai.prototype.setDisplayIndentGuides=function(oi){this.renderer.setDisplayIndentGuides(oi)},ai.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},ai.prototype.setHighlightIndentGuides=function(oi){this.renderer.setHighlightIndentGuides(oi)},ai.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},ai.prototype.setShowPrintMargin=function(oi){this.renderer.setShowPrintMargin(oi)},ai.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},ai.prototype.setPrintMarginColumn=function(oi){this.renderer.setPrintMarginColumn(oi)},ai.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},ai.prototype.setReadOnly=function(oi){this.setOption("readOnly",oi)},ai.prototype.getReadOnly=function(){return this.getOption("readOnly")},ai.prototype.setBehavioursEnabled=function(oi){this.setOption("behavioursEnabled",oi)},ai.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},ai.prototype.setWrapBehavioursEnabled=function(oi){this.setOption("wrapBehavioursEnabled",oi)},ai.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},ai.prototype.setShowFoldWidgets=function(oi){this.setOption("showFoldWidgets",oi)},ai.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},ai.prototype.setFadeFoldWidgets=function(oi){this.setOption("fadeFoldWidgets",oi)},ai.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},ai.prototype.remove=function(oi){this.selection.isEmpty()&&(oi=="left"?this.selection.selectLeft():this.selection.selectRight());var li=this.getSelectionRange();if(this.getBehavioursEnabled()){var wi=this.session,bi=wi.getState(li.start.row),_i=wi.getMode().transformAction(bi,"deletion",this,wi,li);if(li.end.column===0){var Ti=wi.getTextRange(li);if(Ti[Ti.length-1]==`
206
+ `){var Li=wi.getLine(li.end.row);/^\s+$/.test(Li)&&(li.end.column=Li.length)}}_i&&(li=_i)}this.session.remove(li),this.clearSelection()},ai.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},ai.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},ai.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},ai.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var oi=this.getSelectionRange();oi.start.column==oi.end.column&&oi.start.row==oi.end.row&&(oi.end.column=0,oi.end.row++),this.session.remove(oi),this.clearSelection()},ai.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var oi=this.getCursorPosition();this.insert(`
207
+ `),this.moveCursorToPosition(oi)},ai.prototype.setGhostText=function(oi,li){this.renderer.setGhostText(oi,li)},ai.prototype.removeGhostText=function(){this.renderer.removeGhostText()},ai.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var oi=this.getCursorPosition(),li=oi.column;if(li!==0){var wi=this.session.getLine(oi.row),bi,_i;li<wi.length?(bi=wi.charAt(li)+wi.charAt(li-1),_i=new Qn(oi.row,li-1,oi.row,li+1)):(bi=wi.charAt(li-1)+wi.charAt(li-2),_i=new Qn(oi.row,li-2,oi.row,li)),this.session.replace(_i,bi),this.session.selection.moveToPosition(_i.end)}}},ai.prototype.toLowerCase=function(){var oi=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var li=this.getSelectionRange(),wi=this.session.getTextRange(li);this.session.replace(li,wi.toLowerCase()),this.selection.setSelectionRange(oi)},ai.prototype.toUpperCase=function(){var oi=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var li=this.getSelectionRange(),wi=this.session.getTextRange(li);this.session.replace(li,wi.toUpperCase()),this.selection.setSelectionRange(oi)},ai.prototype.indent=function(){var oi=this.session,li=this.getSelectionRange();if(li.start.row<li.end.row){var wi=this.$getSelectedRows();oi.indentRows(wi.first,wi.last," ");return}else if(li.start.column<li.end.column){var bi=oi.getTextRange(li);if(!/^\s+$/.test(bi)){var wi=this.$getSelectedRows();oi.indentRows(wi.first,wi.last," ");return}}var _i=oi.getLine(li.start.row),Ti=li.start,Li=oi.getTabSize(),Ri=oi.documentToScreenColumn(Ti.row,Ti.column);if(this.session.getUseSoftTabs())var Ii=Li-Ri%Li,zi=Hn.stringRepeat(" ",Ii);else{for(var Ii=Ri%Li;_i[li.start.column-1]==" "&&Ii;)li.start.column--,Ii--;this.selection.setSelectionRange(li),zi=" "}return this.insert(zi)},ai.prototype.blockIndent=function(){var oi=this.$getSelectedRows();this.session.indentRows(oi.first,oi.last," ")},ai.prototype.blockOutdent=function(){var oi=this.session.getSelection();this.session.outdentRows(oi.getRange())},ai.prototype.sortLines=function(){for(var oi=this.$getSelectedRows(),li=this.session,wi=[],bi=oi.first;bi<=oi.last;bi++)wi.push(li.getLine(bi));wi.sort(function(Li,Ri){return Li.toLowerCase()<Ri.toLowerCase()?-1:Li.toLowerCase()>Ri.toLowerCase()?1:0});for(var _i=new Qn(0,0,0,0),bi=oi.first;bi<=oi.last;bi++){var Ti=li.getLine(bi);_i.start.row=bi,_i.end.row=bi,_i.end.column=Ti.length,li.replace(_i,wi[bi-oi.first])}},ai.prototype.toggleCommentLines=function(){var oi=this.session.getState(this.getCursorPosition().row),li=this.$getSelectedRows();this.session.getMode().toggleCommentLines(oi,this.session,li.first,li.last)},ai.prototype.toggleBlockComment=function(){var oi=this.getCursorPosition(),li=this.session.getState(oi.row),wi=this.getSelectionRange();this.session.getMode().toggleBlockComment(li,this.session,wi,oi)},ai.prototype.getNumberAt=function(oi,li){var wi=/[\-]?[0-9]+(?:\.[0-9]+)?/g;wi.lastIndex=0;for(var bi=this.session.getLine(oi);wi.lastIndex<li;){var _i=wi.exec(bi);if(_i.index<=li&&_i.index+_i[0].length>=li){var Ti={value:_i[0],start:_i.index,end:_i.index+_i[0].length};return Ti}}return null},ai.prototype.modifyNumber=function(oi){var li=this.selection.getCursor().row,wi=this.selection.getCursor().column,bi=new Qn(li,wi-1,li,wi),_i=this.session.getTextRange(bi);if(!isNaN(parseFloat(_i))&&isFinite(_i)){var Ti=this.getNumberAt(li,wi);if(Ti){var Li=Ti.value.indexOf(".")>=0?Ti.start+Ti.value.indexOf(".")+1:Ti.end,Ri=Ti.start+Ti.value.length-Li,Ii=parseFloat(Ti.value);Ii*=Math.pow(10,Ri),Li!==Ti.end&&wi<Li?oi*=Math.pow(10,Ti.end-wi-1):oi*=Math.pow(10,Ti.end-wi),Ii+=oi,Ii/=Math.pow(10,Ri);var zi=Ii.toFixed(Ri),Oi=new Qn(li,Ti.start,li,Ti.end);this.session.replace(Oi,zi),this.moveCursorTo(li,Math.max(Ti.start+1,wi+zi.length-Ti.value.length))}}else this.toggleWord()},ai.prototype.toggleWord=function(){var oi=this.selection.getCursor().row,li=this.selection.getCursor().column;this.selection.selectWord();var wi=this.getSelectedText(),bi=this.selection.getWordRange().start.column,_i=wi.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),Ti=li-bi-1;Ti<0&&(Ti=0);var Li=0,Ri=0,Ii=this;wi.match(/[A-Za-z0-9_]+/)&&_i.forEach(function(ar,yr){Ri=Li+ar.length,Ti>=Li&&Ti<=Ri&&(wi=ar,Ii.selection.clearSelection(),Ii.moveCursorTo(oi,Li+bi),Ii.selection.selectTo(oi,Ri+bi)),Li=Ri});for(var zi=this.$toggleWordPairs,Oi,Bi=0;Bi<zi.length;Bi++)for(var Yi=zi[Bi],Fi=0;Fi<=1;Fi++){var Qi=+!Fi,pr=wi.match(new RegExp("^\\s?_?("+Hn.escapeRegExp(Yi[Fi])+")\\s?$","i"));if(pr){var fr=wi.match(new RegExp("([_]|^|\\s)("+Hn.escapeRegExp(pr[1])+")($|\\s)","g"));fr&&(Oi=wi.replace(new RegExp(Hn.escapeRegExp(Yi[Fi]),"i"),function(ar){var yr=Yi[Qi];return ar.toUpperCase()==ar?yr=yr.toUpperCase():ar.charAt(0).toUpperCase()==ar.charAt(0)&&(yr=yr.substr(0,0)+Yi[Qi].charAt(0).toUpperCase()+yr.substr(1)),yr}),this.insert(Oi),Oi="")}}},ai.prototype.findLinkAt=function(oi,li){var wi,bi,_i=this.session.getLine(oi),Ti=_i.split(/((?:https?|ftp):\/\/[\S]+)/),Li=li;Li<0&&(Li=0);var Ri=0,Ii=0,zi;try{for(var Oi=Wn(Ti),Bi=Oi.next();!Bi.done;Bi=Oi.next()){var Yi=Bi.value;if(Ii=Ri+Yi.length,Li>=Ri&&Li<=Ii&&Yi.match(/((?:https?|ftp):\/\/[\S]+)/)){zi=Yi.replace(/[\s:.,'";}\]]+$/,"");break}Ri=Ii}}catch(Fi){wi={error:Fi}}finally{try{Bi&&!Bi.done&&(bi=Oi.return)&&bi.call(Oi)}finally{if(wi)throw wi.error}}return zi},ai.prototype.openLink=function(){var oi=this.selection.getCursor(),li=this.findLinkAt(oi.row,oi.column);return li&&window.open(li,"_blank"),li!=null},ai.prototype.removeLines=function(){var oi=this.$getSelectedRows();this.session.removeFullLines(oi.first,oi.last),this.clearSelection()},ai.prototype.duplicateSelection=function(){var oi=this.selection,li=this.session,wi=oi.getRange(),bi=oi.isBackwards();if(wi.isEmpty()){var _i=wi.start.row;li.duplicateLines(_i,_i)}else{var Ti=bi?wi.start:wi.end,Li=li.insert(Ti,li.getTextRange(wi));wi.start=Ti,wi.end=Li,oi.setSelectionRange(wi,bi)}},ai.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},ai.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},ai.prototype.moveText=function(oi,li,wi){return this.session.moveText(oi,li,wi)},ai.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},ai.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},ai.prototype.$moveLines=function(oi,li){var wi,bi,_i=this.selection;if(!_i.inMultiSelectMode||this.inVirtualSelectionMode){var Ti=_i.toOrientedRange();wi=this.$getSelectedRows(Ti),bi=this.session.$moveLines(wi.first,wi.last,li?0:oi),li&&oi==-1&&(bi=0),Ti.moveBy(bi,0),_i.fromOrientedRange(Ti)}else{var Li=_i.rangeList.ranges;_i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var Ri=0,Ii=0,zi=Li.length,Oi=0;Oi<zi;Oi++){var Bi=Oi;Li[Oi].moveBy(Ri,0),wi=this.$getSelectedRows(Li[Oi]);for(var Yi=wi.first,Fi=wi.last;++Oi<zi;){Ii&&Li[Oi].moveBy(Ii,0);var Qi=this.$getSelectedRows(Li[Oi]);if(li&&Qi.first!=Fi||!li&&Qi.first>Fi+1)break;Fi=Qi.last}for(Oi--,Ri=this.session.$moveLines(Yi,Fi,li?0:oi),li&&oi==-1&&(Bi=Oi+1);Bi<=Oi;)Li[Bi].moveBy(Ri,0),Bi++;li||(Ri=0),Ii+=Ri}_i.fromOrientedRange(_i.ranges[0]),_i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},ai.prototype.$getSelectedRows=function(oi){return oi=(oi||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(oi.start.row),last:this.session.getRowFoldEnd(oi.end.row)}},ai.prototype.onCompositionStart=function(oi){this.renderer.showComposition(oi)},ai.prototype.onCompositionUpdate=function(oi){this.renderer.setCompositionText(oi)},ai.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},ai.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},ai.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},ai.prototype.isRowVisible=function(oi){return oi>=this.getFirstVisibleRow()&&oi<=this.getLastVisibleRow()},ai.prototype.isRowFullyVisible=function(oi){return oi>=this.renderer.getFirstFullyVisibleRow()&&oi<=this.renderer.getLastFullyVisibleRow()},ai.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},ai.prototype.$moveByPage=function(oi,li){var wi=this.renderer,bi=this.renderer.layerConfig,_i=oi*Math.floor(bi.height/bi.lineHeight);li===!0?this.selection.$moveSelection(function(){this.moveCursorBy(_i,0)}):li===!1&&(this.selection.moveCursorBy(_i,0),this.selection.clearSelection());var Ti=wi.scrollTop;wi.scrollBy(0,_i*bi.lineHeight),li!=null&&wi.scrollCursorIntoView(null,.5),wi.animateScrolling(Ti)},ai.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},ai.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},ai.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},ai.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},ai.prototype.scrollPageDown=function(){this.$moveByPage(1)},ai.prototype.scrollPageUp=function(){this.$moveByPage(-1)},ai.prototype.scrollToRow=function(oi){this.renderer.scrollToRow(oi)},ai.prototype.scrollToLine=function(oi,li,wi,bi){this.renderer.scrollToLine(oi,li,wi,bi)},ai.prototype.centerSelection=function(){var oi=this.getSelectionRange(),li={row:Math.floor(oi.start.row+(oi.end.row-oi.start.row)/2),column:Math.floor(oi.start.column+(oi.end.column-oi.start.column)/2)};this.renderer.alignCursor(li,.5)},ai.prototype.getCursorPosition=function(){return this.selection.getCursor()},ai.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},ai.prototype.getSelectionRange=function(){return this.selection.getRange()},ai.prototype.selectAll=function(){this.selection.selectAll()},ai.prototype.clearSelection=function(){this.selection.clearSelection()},ai.prototype.moveCursorTo=function(oi,li){this.selection.moveCursorTo(oi,li)},ai.prototype.moveCursorToPosition=function(oi){this.selection.moveCursorToPosition(oi)},ai.prototype.jumpToMatching=function(oi,li){var wi=this.getCursorPosition(),bi=new si(this.session,wi.row,wi.column),_i=bi.getCurrentToken(),Ti=0;_i&&_i.type.indexOf("tag-name")!==-1&&(_i=bi.stepBackward());var Li=_i||bi.stepForward();if(Li){var Ri,Ii=!1,zi={},Oi=wi.column-Li.start,Bi,Yi={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Li.value.match(/[{}()\[\]]/g)){for(;Oi<Li.value.length&&!Ii;Oi++)if(Yi[Li.value[Oi]])switch(Bi=Yi[Li.value[Oi]]+"."+Li.type.replace("rparen","lparen"),isNaN(zi[Bi])&&(zi[Bi]=0),Li.value[Oi]){case"(":case"[":case"{":zi[Bi]++;break;case")":case"]":case"}":zi[Bi]--,zi[Bi]===-1&&(Ri="bracket",Ii=!0);break}}else Li.type.indexOf("tag-name")!==-1&&(isNaN(zi[Li.value])&&(zi[Li.value]=0),_i.value==="<"&&Ti>1?zi[Li.value]++:_i.value==="</"&&zi[Li.value]--,zi[Li.value]===-1&&(Ri="tag",Ii=!0));Ii||(_i=Li,Ti++,Li=bi.stepForward(),Oi=0)}while(Li&&!Ii);if(Ri){var Fi,Qi;if(Ri==="bracket")Fi=this.session.getBracketRange(wi),Fi||(Fi=new Qn(bi.getCurrentTokenRow(),bi.getCurrentTokenColumn()+Oi-1,bi.getCurrentTokenRow(),bi.getCurrentTokenColumn()+Oi-1),Qi=Fi.start,(li||Qi.row===wi.row&&Math.abs(Qi.column-wi.column)<2)&&(Fi=this.session.getBracketRange(Qi)));else if(Ri==="tag"){if(!Li||Li.type.indexOf("tag-name")===-1)return;if(Fi=new Qn(bi.getCurrentTokenRow(),bi.getCurrentTokenColumn()-2,bi.getCurrentTokenRow(),bi.getCurrentTokenColumn()-2),Fi.compare(wi.row,wi.column)===0){var pr=this.session.getMatchingTags(wi);pr&&(pr.openTag.contains(wi.row,wi.column)?(Fi=pr.closeTag,Qi=Fi.start):(Fi=pr.openTag,pr.closeTag.start.row===wi.row&&pr.closeTag.start.column===wi.column?Qi=Fi.end:Qi=Fi.start))}Qi=Qi||Fi.start}Qi=Fi&&Fi.cursor||Qi,Qi&&(oi?Fi&&li?this.selection.setRange(Fi):Fi&&Fi.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(Qi.row,Qi.column):this.selection.moveTo(Qi.row,Qi.column))}}},ai.prototype.gotoLine=function(oi,li,wi){this.selection.clearSelection(),this.session.unfold({row:oi-1,column:li||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(oi-1,li||0),this.isRowFullyVisible(oi-1)||this.scrollToLine(oi-1,!0,wi)},ai.prototype.navigateTo=function(oi,li){this.selection.moveTo(oi,li)},ai.prototype.navigateUp=function(oi){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var li=this.selection.anchor.getPosition();return this.moveCursorToPosition(li)}this.selection.clearSelection(),this.selection.moveCursorBy(-oi||-1,0)},ai.prototype.navigateDown=function(oi){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var li=this.selection.anchor.getPosition();return this.moveCursorToPosition(li)}this.selection.clearSelection(),this.selection.moveCursorBy(oi||1,0)},ai.prototype.navigateLeft=function(oi){if(this.selection.isEmpty())for(oi=oi||1;oi--;)this.selection.moveCursorLeft();else{var li=this.getSelectionRange().start;this.moveCursorToPosition(li)}this.clearSelection()},ai.prototype.navigateRight=function(oi){if(this.selection.isEmpty())for(oi=oi||1;oi--;)this.selection.moveCursorRight();else{var li=this.getSelectionRange().end;this.moveCursorToPosition(li)}this.clearSelection()},ai.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},ai.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},ai.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},ai.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},ai.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},ai.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},ai.prototype.replace=function(oi,li){li&&this.$search.set(li);var wi=this.$search.find(this.session),bi=0;return wi&&(this.$tryReplace(wi,oi)&&(bi=1),this.selection.setSelectionRange(wi),this.renderer.scrollSelectionIntoView(wi.start,wi.end)),bi},ai.prototype.replaceAll=function(oi,li){li&&this.$search.set(li);var wi=this.$search.findAll(this.session),bi=0;if(!wi.length)return bi;var _i=this.getSelectionRange();this.selection.moveTo(0,0);for(var Ti=wi.length-1;Ti>=0;--Ti)this.$tryReplace(wi[Ti],oi)&&bi++;return this.selection.setSelectionRange(_i),bi},ai.prototype.$tryReplace=function(oi,li){var wi=this.session.getTextRange(oi);return li=this.$search.replace(wi,li),li!==null?(oi.end=this.session.replace(oi,li),oi):null},ai.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},ai.prototype.find=function(oi,li,wi){li||(li={}),typeof oi=="string"||oi instanceof RegExp?li.needle=oi:typeof oi=="object"&&Kn.mixin(li,oi);var bi=this.selection.getRange();li.needle==null&&(oi=this.session.getTextRange(bi)||this.$search.$options.needle,oi||(bi=this.session.getWordRange(bi.start.row,bi.start.column),oi=this.session.getTextRange(bi)),this.$search.set({needle:oi})),this.$search.set(li),li.start||this.$search.set({start:bi});var _i=this.$search.find(this.session);if(li.preventScroll)return _i;if(_i)return this.revealRange(_i,wi),_i;li.backwards?bi.start=bi.end:bi.end=bi.start,this.selection.setRange(bi)},ai.prototype.findNext=function(oi,li){this.find({skipCurrent:!0,backwards:!1},oi,li)},ai.prototype.findPrevious=function(oi,li){this.find(oi,{skipCurrent:!0,backwards:!0},li)},ai.prototype.revealRange=function(oi,li){this.session.unfold(oi),this.selection.setSelectionRange(oi);var wi=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(oi.start,oi.end,.5),li!==!1&&this.renderer.animateScrolling(wi)},ai.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},ai.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},ai.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(oi){oi.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},ai.prototype.setAutoScrollEditorIntoView=function(oi){if(oi){var li,wi=this,bi=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var _i=this.$scrollAnchor;_i.style.cssText="position:absolute",this.container.insertBefore(_i,this.container.firstChild);var Ti=this.on("changeSelection",function(){bi=!0}),Li=this.renderer.on("beforeRender",function(){bi&&(li=wi.renderer.container.getBoundingClientRect())}),Ri=this.renderer.on("afterRender",function(){if(bi&&li&&(wi.isFocused()||wi.searchBox&&wi.searchBox.isFocused())){var Ii=wi.renderer,zi=Ii.$cursorLayer.$pixelPos,Oi=Ii.layerConfig,Bi=zi.top-Oi.offset;zi.top>=0&&Bi+li.top<0?bi=!0:zi.top<Oi.height&&zi.top+li.top+Oi.lineHeight>window.innerHeight?bi=!1:bi=null,bi!=null&&(_i.style.top=Bi+"px",_i.style.left=zi.left+"px",_i.style.height=Oi.lineHeight+"px",_i.scrollIntoView(bi)),bi=li=null}});this.setAutoScrollEditorIntoView=function(Ii){Ii||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Ti),this.renderer.off("afterRender",Ri),this.renderer.off("beforeRender",Li))}}},ai.prototype.$resetCursorStyle=function(){var oi=this.$cursorStyle||"ace",li=this.renderer.$cursorLayer;li&&(li.setSmoothBlinking(/smooth/.test(oi)),li.isBlinking=!this.$readOnly&&oi!="wide",Xn.setCssClass(li.element,"ace_slim-cursors",/slim/.test(oi)))},ai.prototype.prompt=function(oi,li,wi){var bi=this;pi.loadModule("ace/ext/prompt",function(_i){_i.prompt(bi,oi,li,wi)})},ai}();gi.$uid=0,gi.prototype.curOp=null,gi.prototype.prevOp={},gi.prototype.$mergeableCommands=["backspace","del","insertstring"],gi.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],Kn.implement(gi.prototype,Jn),pi.defineOptions(gi.prototype,"editor",{selectionStyle:{set:function(ai){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:ai})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(ai){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(ai){this.textInput.setReadOnly(ai),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(ai){this.textInput.setCopyWithEmptySelection(ai)},initialValue:!1},cursorStyle:{set:function(ai){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(ai){this.setAutoScrollEditorIntoView(ai)}},keyboardHandler:{set:function(ai){this.setKeyboardHandler(ai)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(ai){this.session.setValue(ai)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(ai){this.setSession(ai)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(ai){this.renderer.$gutterLayer.setShowLineNumbers(ai),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),ai&&this.$relativeLineNumbers?xi.attach(this):xi.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(ai){this.$showLineNumbers&&ai?xi.attach(this):xi.detach(this)}},placeholder:{set:function(ai){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var oi=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(oi&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),Xn.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!oi&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),Xn.addCssClass(this.container,"ace_hasPlaceholder");var li=Xn.createElement("div");li.className="ace_placeholder",li.textContent=this.$placeholder||"",this.renderer.placeholderNode=li,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!oi&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(ai){var oi={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(bi){bi.blur(),bi.renderer.scroller.focus()},readOnly:!0},li=function(bi){if(bi.target==this.renderer.scroller&&bi.keyCode===yi.enter){bi.preventDefault();var _i=this.getCursorPosition().row;this.isRowVisible(_i)||this.scrollToLine(_i,!0,!0),this.focus()}},wi;ai?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(qn.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",mi("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",mi("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",li.bind(this)),this.commands.addCommand(oi),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",mi("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",mi("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),wi||(wi=new ei(this)),wi.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",li.bind(this)),this.commands.removeCommand(oi),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),wi&&wi.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(ai){this.$textInputAriaLabel=ai},initialValue:""},enableMobileMenu:{set:function(ai){this.$enableMobileMenu=ai},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var xi={getText:function(ai,oi){return(Math.abs(ai.selection.lead.row-oi)||oi+1+(oi<9?"·":""))+""},getWidth:function(ai,oi,li){return Math.max(oi.toString().length,(li.lastRow+1).toString().length,2)*li.characterWidth},update:function(ai,oi){oi.renderer.$loop.schedule(oi.renderer.CHANGE_GUTTER)},attach:function(ai){ai.renderer.$gutterLayer.$renderer=this,ai.on("changeSelection",this.update),this.update(null,ai)},detach:function(ai){ai.renderer.$gutterLayer.$renderer==this&&(ai.renderer.$gutterLayer.$renderer=null),ai.off("changeSelection",this.update),this.update(null,ai)}};Mn.Editor=gi}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(kn,Mn,Yn){var Wn=kn("../lib/dom"),Kn=function(){function Xn(Hn,qn){this.element=Hn,this.canvasHeight=qn||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return Xn.prototype.moveContainer=function(Hn){Wn.translate(this.element,0,-(Hn.firstRowScreen*Hn.lineHeight%this.canvasHeight)-Hn.offset*this.$offsetCoefficient)},Xn.prototype.pageChanged=function(Hn,qn){return Math.floor(Hn.firstRowScreen*Hn.lineHeight/this.canvasHeight)!==Math.floor(qn.firstRowScreen*qn.lineHeight/this.canvasHeight)},Xn.prototype.computeLineTop=function(Hn,qn,In){var Dn=qn.firstRowScreen*qn.lineHeight,Pn=Math.floor(Dn/this.canvasHeight),Bn=In.documentToScreenRow(Hn,0)*qn.lineHeight;return Bn-Pn*this.canvasHeight},Xn.prototype.computeLineHeight=function(Hn,qn,In){return qn.lineHeight*In.getRowLineCount(Hn)},Xn.prototype.getLength=function(){return this.cells.length},Xn.prototype.get=function(Hn){return this.cells[Hn]},Xn.prototype.shift=function(){this.$cacheCell(this.cells.shift())},Xn.prototype.pop=function(){this.$cacheCell(this.cells.pop())},Xn.prototype.push=function(Hn){if(Array.isArray(Hn)){this.cells.push.apply(this.cells,Hn);for(var qn=Wn.createFragment(this.element),In=0;In<Hn.length;In++)qn.appendChild(Hn[In].element);this.element.appendChild(qn)}else this.cells.push(Hn),this.element.appendChild(Hn.element)},Xn.prototype.unshift=function(Hn){if(Array.isArray(Hn)){this.cells.unshift.apply(this.cells,Hn);for(var qn=Wn.createFragment(this.element),In=0;In<Hn.length;In++)qn.appendChild(Hn[In].element);this.element.firstChild?this.element.insertBefore(qn,this.element.firstChild):this.element.appendChild(qn)}else this.cells.unshift(Hn),this.element.insertAdjacentElement("afterbegin",Hn.element)},Xn.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},Xn.prototype.$cacheCell=function(Hn){Hn&&(Hn.element.remove(),this.cellCache.push(Hn))},Xn.prototype.createCell=function(Hn,qn,In,Dn){var Pn=this.cellCache.pop();if(!Pn){var Bn=Wn.createElement("div");Dn&&Dn(Bn),this.element.appendChild(Bn),Pn={element:Bn,text:"",row:Hn}}return Pn.row=Hn,Pn},Xn}();Mn.Lines=Kn}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(kn,Mn,Yn){var Wn=kn("../lib/dom"),Kn=kn("../lib/oop"),Xn=kn("../lib/lang"),Hn=kn("../lib/event_emitter").EventEmitter,qn=kn("./lines").Lines,In=kn("../config").nls,Dn=function(){function Bn(Nn){this.element=Wn.createElement("div"),this.element.className="ace_layer ace_gutter-layer",Nn.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new qn(this.element),this.$lines.$offsetCoefficient=1}return Bn.prototype.setSession=function(Nn){this.session&&this.session.off("change",this.$updateAnnotations),this.session=Nn,Nn&&Nn.on("change",this.$updateAnnotations)},Bn.prototype.addGutterDecoration=function(Nn,zn){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(Nn,zn)},Bn.prototype.removeGutterDecoration=function(Nn,zn){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(Nn,zn)},Bn.prototype.setAnnotations=function(Nn){this.$annotations=[];for(var zn=0;zn<Nn.length;zn++){var Qn=Nn[zn],Jn=Qn.row,ti=this.$annotations[Jn];ti||(ti=this.$annotations[Jn]={text:[],type:[],displayText:[]});var vi=Qn.text,pi=Qn.text,si=Qn.type;vi=vi?Xn.escapeHTML(vi):Qn.html||"",pi=pi||Qn.html||"",ti.text.indexOf(vi)===-1&&(ti.text.push(vi),ti.type.push(si),ti.displayText.push(pi));var ei=Qn.className;ei?ti.className=ei:si==="error"?ti.className=" ace_error":si==="security"&&!/\bace_error\b/.test(ti.className)?ti.className=" ace_security":si==="warning"&&!/\bace_(error|security)\b/.test(ti.className)?ti.className=" ace_warning":si==="info"&&!ti.className?ti.className=" ace_info":si==="hint"&&!ti.className&&(ti.className=" ace_hint")}},Bn.prototype.$updateAnnotations=function(Nn){if(this.$annotations.length){var zn=Nn.start.row,Qn=Nn.end.row-zn;if(Qn!==0)if(Nn.action=="remove")this.$annotations.splice(zn,Qn+1,null);else{var Jn=new Array(Qn+1);Jn.unshift(zn,1),this.$annotations.splice.apply(this.$annotations,Jn)}}},Bn.prototype.update=function(Nn){this.config=Nn;var zn=this.session,Qn=Nn.firstRow,Jn=Math.min(Nn.lastRow+Nn.gutterOffset,zn.getLength()-1);this.oldLastRow=Jn,this.config=Nn,this.$lines.moveContainer(Nn),this.$updateCursorRow();for(var ti=zn.getNextFoldLine(Qn),vi=ti?ti.start.row:1/0,pi=null,si=-1,ei=Qn;;){if(ei>vi&&(ei=ti.end.row+1,ti=zn.getNextFoldLine(ei,ti),vi=ti?ti.start.row:1/0),ei>Jn){for(;this.$lines.getLength()>si+1;)this.$lines.pop();break}pi=this.$lines.get(++si),pi?pi.row=ei:(pi=this.$lines.createCell(ei,Nn,this.session,Pn),this.$lines.push(pi)),this.$renderCell(pi,Nn,ti,ei),ei++}this._signal("afterRender"),this.$updateGutterWidth(Nn)},Bn.prototype.$updateGutterWidth=function(Nn){var zn=this.session,Qn=zn.gutterRenderer||this.$renderer,Jn=zn.$firstLineNumber,ti=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||zn.$useWrapMode)&&(ti=zn.getLength()+Jn-1);var vi=Qn?Qn.getWidth(zn,ti,Nn):ti.toString().length*Nn.characterWidth,pi=this.$padding||this.$computePadding();vi+=pi.left+pi.right,vi!==this.gutterWidth&&!isNaN(vi)&&(this.gutterWidth=vi,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",vi))},Bn.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var Nn=this.session.selection.getCursor();this.$cursorRow!==Nn.row&&(this.$cursorRow=Nn.row)}},Bn.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var Nn=this.session.selection.cursor.row;if(this.$cursorRow=Nn,!(this.$cursorCell&&this.$cursorCell.row==Nn)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var zn=this.$lines.cells;this.$cursorCell=null;for(var Qn=0;Qn<zn.length;Qn++){var Jn=zn[Qn];if(Jn.row>=this.$cursorRow){if(Jn.row>this.$cursorRow){var ti=this.session.getFoldLine(this.$cursorRow);if(Qn>0&&ti&&ti.start.row==zn[Qn-1].row)Jn=zn[Qn-1];else break}Jn.element.className="ace_gutter-active-line "+Jn.element.className,this.$cursorCell=Jn;break}}}}},Bn.prototype.scrollLines=function(Nn){var zn=this.config;if(this.config=Nn,this.$updateCursorRow(),this.$lines.pageChanged(zn,Nn))return this.update(Nn);this.$lines.moveContainer(Nn);var Qn=Math.min(Nn.lastRow+Nn.gutterOffset,this.session.getLength()-1),Jn=this.oldLastRow;if(this.oldLastRow=Qn,!zn||Jn<Nn.firstRow)return this.update(Nn);if(Qn<zn.firstRow)return this.update(Nn);if(zn.firstRow<Nn.firstRow)for(var ti=this.session.getFoldedRowCount(zn.firstRow,Nn.firstRow-1);ti>0;ti--)this.$lines.shift();if(Jn>Qn)for(var ti=this.session.getFoldedRowCount(Qn+1,Jn);ti>0;ti--)this.$lines.pop();Nn.firstRow<zn.firstRow&&this.$lines.unshift(this.$renderLines(Nn,Nn.firstRow,zn.firstRow-1)),Qn>Jn&&this.$lines.push(this.$renderLines(Nn,Jn+1,Qn)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(Nn)},Bn.prototype.$renderLines=function(Nn,zn,Qn){for(var Jn=[],ti=zn,vi=this.session.getNextFoldLine(ti),pi=vi?vi.start.row:1/0;ti>pi&&(ti=vi.end.row+1,vi=this.session.getNextFoldLine(ti,vi),pi=vi?vi.start.row:1/0),!(ti>Qn);){var si=this.$lines.createCell(ti,Nn,this.session,Pn);this.$renderCell(si,Nn,vi,ti),Jn.push(si),ti++}return Jn},Bn.prototype.$renderCell=function(Nn,zn,Qn,Jn){var ti=Nn.element,vi=this.session,pi=ti.childNodes[0],si=ti.childNodes[1],ei=ti.childNodes[2],mi=ei.firstChild,fi=vi.$firstLineNumber,yi=vi.$breakpoints,gi=vi.$decorations,xi=vi.gutterRenderer||this.$renderer,ai=this.$showFoldWidgets&&vi.foldWidgets,oi=Qn?Qn.start.row:Number.MAX_VALUE,li=zn.lineHeight+"px",wi=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",bi=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",_i=(xi?xi.getText(vi,Jn):Jn+fi).toString();if(this.$highlightGutterLine&&(Jn==this.$cursorRow||Qn&&Jn<this.$cursorRow&&Jn>=oi&&this.$cursorRow<=Qn.end.row)&&(wi+="ace_gutter-active-line ",this.$cursorCell!=Nn&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=Nn)),yi[Jn]&&(wi+=yi[Jn]),gi[Jn]&&(wi+=gi[Jn]),this.$annotations[Jn]&&Jn!==oi&&(wi+=this.$annotations[Jn].className),ai){var Ti=ai[Jn];Ti==null&&(Ti=ai[Jn]=vi.getFoldWidget(Jn))}if(Ti){var Li="ace_fold-widget ace_"+Ti,Ri=Ti=="start"&&Jn==oi&&Jn<Qn.end.row;if(Ri){Li+=" ace_closed";for(var Ii="",zi=!1,Oi=Jn+1;Oi<=Qn.end.row;Oi++)if(this.$annotations[Oi]){if(this.$annotations[Oi].className===" ace_error"){zi=!0,Ii=" ace_error_fold";break}this.$annotations[Oi].className===" ace_security"?(zi=!0,Ii=" ace_security_fold"):this.$annotations[Oi].className===" ace_warning"&&Ii!==" ace_security_fold"&&(zi=!0,Ii=" ace_warning_fold")}wi+=Ii}else Li+=" ace_open";si.className!=Li&&(si.className=Li),Wn.setStyle(si.style,"height",li),Wn.setStyle(si.style,"display","inline-block"),si.setAttribute("role","button"),si.setAttribute("tabindex","-1");var Bi=vi.getFoldWidgetRange(Jn);Bi?si.setAttribute("aria-label",In("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Bi.start.row+1,Bi.end.row+1])):Qn?si.setAttribute("aria-label",In("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[Qn.start.row+1,Qn.end.row+1])):si.setAttribute("aria-label",In("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[Jn+1])),Ri?(si.setAttribute("aria-expanded","false"),si.setAttribute("title",In("gutter.code-folding.closed.title","Unfold code"))):(si.setAttribute("aria-expanded","true"),si.setAttribute("title",In("gutter.code-folding.open.title","Fold code")))}else si&&(Wn.setStyle(si.style,"display","none"),si.setAttribute("tabindex","0"),si.removeAttribute("role"),si.removeAttribute("aria-label"));if(zi&&this.$showFoldedAnnotations){ei.className="ace_gutter_annotation",mi.className=bi,mi.className+=Ii,Wn.setStyle(mi.style,"height",li),Wn.setStyle(ei.style,"display","block"),Wn.setStyle(ei.style,"height",li);var Yi;switch(Ii){case" ace_error_fold":Yi=In("gutter.annotation.aria-label.error","Error, read annotations row $0",[_i]);break;case" ace_security_fold":Yi=In("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[_i]);break;case" ace_warning_fold":Yi=In("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[_i]);break}ei.setAttribute("aria-label",Yi),ei.setAttribute("tabindex","-1"),ei.setAttribute("role","button")}else if(this.$annotations[Jn]){ei.className="ace_gutter_annotation",mi.className=bi,this.$useSvgGutterIcons?mi.className+=this.$annotations[Jn].className:ti.classList.add(this.$annotations[Jn].className.replace(" ","")),Wn.setStyle(mi.style,"height",li),Wn.setStyle(ei.style,"display","block"),Wn.setStyle(ei.style,"height",li);var Yi;switch(this.$annotations[Jn].className){case" ace_error":Yi=In("gutter.annotation.aria-label.error","Error, read annotations row $0",[_i]);break;case" ace_security":Yi=In("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[_i]);break;case" ace_warning":Yi=In("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[_i]);break;case" ace_info":Yi=In("gutter.annotation.aria-label.info","Info, read annotations row $0",[_i]);break;case" ace_hint":Yi=In("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[_i]);break}ei.setAttribute("aria-label",Yi),ei.setAttribute("tabindex","-1"),ei.setAttribute("role","button")}else Wn.setStyle(ei.style,"display","none"),ei.removeAttribute("aria-label"),ei.removeAttribute("role"),ei.setAttribute("tabindex","0");return _i!==pi.data&&(pi.data=_i),ti.className!=wi&&(ti.className=wi),Wn.setStyle(Nn.element.style,"height",this.$lines.computeLineHeight(Jn,zn,vi)+"px"),Wn.setStyle(Nn.element.style,"top",this.$lines.computeLineTop(Jn,zn,vi)+"px"),Nn.text=_i,ei.style.display==="none"&&si.style.display==="none"?Nn.element.setAttribute("aria-hidden",!0):Nn.element.setAttribute("aria-hidden",!1),Nn},Bn.prototype.setHighlightGutterLine=function(Nn){this.$highlightGutterLine=Nn},Bn.prototype.setShowLineNumbers=function(Nn){this.$renderer=!Nn&&{getWidth:function(){return 0},getText:function(){return""}}},Bn.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},Bn.prototype.setShowFoldWidgets=function(Nn){Nn?Wn.addCssClass(this.element,"ace_folding-enabled"):Wn.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=Nn,this.$padding=null},Bn.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},Bn.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var Nn=Wn.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(Nn.borderLeftWidth)||0)+(parseInt(Nn.paddingLeft)||0)+1,this.$padding.right=(parseInt(Nn.borderRightWidth)||0)+(parseInt(Nn.paddingRight)||0),this.$padding},Bn.prototype.getRegion=function(Nn){var zn=this.$padding||this.$computePadding(),Qn=this.element.getBoundingClientRect();if(Nn.x<zn.left+Qn.left)return"markers";if(this.$showFoldWidgets&&Nn.x>Qn.right-zn.right)return"foldWidgets"},Bn}();Dn.prototype.$fixedWidth=!1,Dn.prototype.$highlightGutterLine=!0,Dn.prototype.$renderer="",Dn.prototype.$showLineNumbers=!0,Dn.prototype.$showFoldWidgets=!0,Kn.implement(Dn.prototype,Hn);function Pn(Bn){var Nn=document.createTextNode("");Bn.appendChild(Nn);var zn=Wn.createElement("span");Bn.appendChild(zn);var Qn=Wn.createElement("span");Bn.appendChild(Qn);var Jn=Wn.createElement("span");return Qn.appendChild(Jn),Bn}Mn.Gutter=Dn}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(kn,Mn,Yn){var Wn=kn("../range").Range,Kn=kn("../lib/dom"),Xn=function(){function qn(In){this.element=Kn.createElement("div"),this.element.className="ace_layer ace_marker-layer",In.appendChild(this.element)}return qn.prototype.setPadding=function(In){this.$padding=In},qn.prototype.setSession=function(In){this.session=In},qn.prototype.setMarkers=function(In){this.markers=In},qn.prototype.elt=function(In,Dn){var Pn=this.i!=-1&&this.element.childNodes[this.i];Pn?this.i++:(Pn=document.createElement("div"),this.element.appendChild(Pn),this.i=-1),Pn.style.cssText=Dn,Pn.className=In},qn.prototype.update=function(In){if(In){this.config=In,this.i=0;var Dn;for(var Pn in this.markers){var Bn=this.markers[Pn];if(!Bn.range){Bn.update(Dn,this,this.session,In);continue}var Nn=Bn.range.clipRows(In.firstRow,In.lastRow);if(!Nn.isEmpty())if(Nn=Nn.toScreenRange(this.session),Bn.renderer){var zn=this.$getTop(Nn.start.row,In),Qn=this.$padding+Nn.start.column*In.characterWidth;Bn.renderer(Dn,Nn,Qn,zn,In)}else Bn.type=="fullLine"?this.drawFullLineMarker(Dn,Nn,Bn.clazz,In):Bn.type=="screenLine"?this.drawScreenLineMarker(Dn,Nn,Bn.clazz,In):Nn.isMultiLine()?Bn.type=="text"?this.drawTextMarker(Dn,Nn,Bn.clazz,In):this.drawMultiLineMarker(Dn,Nn,Bn.clazz,In):this.drawSingleLineMarker(Dn,Nn,Bn.clazz+" ace_start ace_br15",In)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},qn.prototype.$getTop=function(In,Dn){return(In-Dn.firstRowScreen)*Dn.lineHeight},qn.prototype.drawTextMarker=function(In,Dn,Pn,Bn,Nn){for(var zn=this.session,Qn=Dn.start.row,Jn=Dn.end.row,ti=Qn,vi=0,pi=0,si=zn.getScreenLastRowColumn(ti),ei=new Wn(ti,Dn.start.column,ti,pi);ti<=Jn;ti++)ei.start.row=ei.end.row=ti,ei.start.column=ti==Qn?Dn.start.column:zn.getRowWrapIndent(ti),ei.end.column=si,vi=pi,pi=si,si=ti+1<Jn?zn.getScreenLastRowColumn(ti+1):ti==Jn?0:Dn.end.column,this.drawSingleLineMarker(In,ei,Pn+(ti==Qn?" ace_start":"")+" ace_br"+Hn(ti==Qn||ti==Qn+1&&Dn.start.column,vi<pi,pi>si,ti==Jn),Bn,ti==Jn?0:1,Nn)},qn.prototype.drawMultiLineMarker=function(In,Dn,Pn,Bn,Nn){var zn=this.$padding,Qn=Bn.lineHeight,Jn=this.$getTop(Dn.start.row,Bn),ti=zn+Dn.start.column*Bn.characterWidth;if(Nn=Nn||"",this.session.$bidiHandler.isBidiRow(Dn.start.row)){var vi=Dn.clone();vi.end.row=vi.start.row,vi.end.column=this.session.getLine(vi.start.row).length,this.drawBidiSingleLineMarker(In,vi,Pn+" ace_br1 ace_start",Bn,null,Nn)}else this.elt(Pn+" ace_br1 ace_start","height:"+Qn+"px;right:"+zn+"px;top:"+Jn+"px;left:"+ti+"px;"+(Nn||""));if(this.session.$bidiHandler.isBidiRow(Dn.end.row)){var vi=Dn.clone();vi.start.row=vi.end.row,vi.start.column=0,this.drawBidiSingleLineMarker(In,vi,Pn+" ace_br12",Bn,null,Nn)}else{Jn=this.$getTop(Dn.end.row,Bn);var pi=Dn.end.column*Bn.characterWidth;this.elt(Pn+" ace_br12","height:"+Qn+"px;width:"+pi+"px;top:"+Jn+"px;left:"+zn+"px;"+(Nn||""))}if(Qn=(Dn.end.row-Dn.start.row-1)*Bn.lineHeight,!(Qn<=0)){Jn=this.$getTop(Dn.start.row+1,Bn);var si=(Dn.start.column?1:0)|(Dn.end.column?0:8);this.elt(Pn+(si?" ace_br"+si:""),"height:"+Qn+"px;right:"+zn+"px;top:"+Jn+"px;left:"+zn+"px;"+(Nn||""))}},qn.prototype.drawSingleLineMarker=function(In,Dn,Pn,Bn,Nn,zn){if(this.session.$bidiHandler.isBidiRow(Dn.start.row))return this.drawBidiSingleLineMarker(In,Dn,Pn,Bn,Nn,zn);var Qn=Bn.lineHeight,Jn=(Dn.end.column+(Nn||0)-Dn.start.column)*Bn.characterWidth,ti=this.$getTop(Dn.start.row,Bn),vi=this.$padding+Dn.start.column*Bn.characterWidth;this.elt(Pn,"height:"+Qn+"px;width:"+Jn+"px;top:"+ti+"px;left:"+vi+"px;"+(zn||""))},qn.prototype.drawBidiSingleLineMarker=function(In,Dn,Pn,Bn,Nn,zn){var Qn=Bn.lineHeight,Jn=this.$getTop(Dn.start.row,Bn),ti=this.$padding,vi=this.session.$bidiHandler.getSelections(Dn.start.column,Dn.end.column);vi.forEach(function(pi){this.elt(Pn,"height:"+Qn+"px;width:"+(pi.width+(Nn||0))+"px;top:"+Jn+"px;left:"+(ti+pi.left)+"px;"+(zn||""))},this)},qn.prototype.drawFullLineMarker=function(In,Dn,Pn,Bn,Nn){var zn=this.$getTop(Dn.start.row,Bn),Qn=Bn.lineHeight;Dn.start.row!=Dn.end.row&&(Qn+=this.$getTop(Dn.end.row,Bn)-zn),this.elt(Pn,"height:"+Qn+"px;top:"+zn+"px;left:0;right:0;"+(Nn||""))},qn.prototype.drawScreenLineMarker=function(In,Dn,Pn,Bn,Nn){var zn=this.$getTop(Dn.start.row,Bn),Qn=Bn.lineHeight;this.elt(Pn,"height:"+Qn+"px;top:"+zn+"px;left:0;right:0;"+(Nn||""))},qn}();Xn.prototype.$padding=0;function Hn(qn,In,Dn,Pn){return(qn?1:0)|(In?2:0)|(Dn?4:0)|(Pn?8:0)}Mn.Marker=Xn}),ace.define("ace/layer/text_util",["require","exports","module"],function(kn,Mn,Yn){var Wn=new Set(["text","rparen","lparen"]);Mn.isTextToken=function(Kn){return Wn.has(Kn)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("../lib/dom"),Xn=kn("../lib/lang"),Hn=kn("./lines").Lines,qn=kn("../lib/event_emitter").EventEmitter,In=kn("../config").nls,Dn=kn("./text_util").isTextToken,Pn=function(){function Bn(Nn){this.dom=Kn,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",Nn.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new Hn(this.element)}return Bn.prototype.$updateEolChar=function(){var Nn=this.session.doc,zn=Nn.getNewLineCharacter()==`
208
+ `&&Nn.getNewLineMode()!="windows",Qn=zn?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=Qn)return this.EOL_CHAR=Qn,!0},Bn.prototype.setPadding=function(Nn){this.$padding=Nn,this.element.style.margin="0 "+Nn+"px"},Bn.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},Bn.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},Bn.prototype.$setFontMetrics=function(Nn){this.$fontMetrics=Nn,this.$fontMetrics.on("changeCharacterSize",(function(zn){this._signal("changeCharacterSize",zn)}).bind(this)),this.$pollSizeChanges()},Bn.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},Bn.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},Bn.prototype.setSession=function(Nn){this.session=Nn,Nn&&this.$computeTabString()},Bn.prototype.setShowInvisibles=function(Nn){return this.showInvisibles==Nn?!1:(this.showInvisibles=Nn,typeof Nn=="string"?(this.showSpaces=/tab/i.test(Nn),this.showTabs=/space/i.test(Nn),this.showEOL=/eol/i.test(Nn)):this.showSpaces=this.showTabs=this.showEOL=Nn,this.$computeTabString(),!0)},Bn.prototype.setDisplayIndentGuides=function(Nn){return this.displayIndentGuides==Nn?!1:(this.displayIndentGuides=Nn,this.$computeTabString(),!0)},Bn.prototype.setHighlightIndentGuides=function(Nn){return this.$highlightIndentGuides===Nn?!1:(this.$highlightIndentGuides=Nn,Nn)},Bn.prototype.$computeTabString=function(){var Nn=this.session.getTabSize();this.tabSize=Nn;for(var zn=this.$tabStrings=[0],Qn=1;Qn<Nn+1;Qn++)if(this.showTabs){var Jn=this.dom.createElement("span");Jn.className="ace_invisible ace_invisible_tab",Jn.textContent=Xn.stringRepeat(this.TAB_CHAR,Qn),zn.push(Jn)}else zn.push(this.dom.createTextNode(Xn.stringRepeat(" ",Qn),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var ti="ace_indent-guide",vi=this.showSpaces?" ace_invisible ace_invisible_space":"",pi=this.showSpaces?Xn.stringRepeat(this.SPACE_CHAR,this.tabSize):Xn.stringRepeat(" ",this.tabSize),si=this.showTabs?" ace_invisible ace_invisible_tab":"",ei=this.showTabs?Xn.stringRepeat(this.TAB_CHAR,this.tabSize):pi,Jn=this.dom.createElement("span");Jn.className=ti+vi,Jn.textContent=pi,this.$tabStrings[" "]=Jn;var Jn=this.dom.createElement("span");Jn.className=ti+si,Jn.textContent=ei,this.$tabStrings[" "]=Jn}},Bn.prototype.updateLines=function(Nn,zn,Qn){if(this.config.lastRow!=Nn.lastRow||this.config.firstRow!=Nn.firstRow)return this.update(Nn);this.config=Nn;for(var Jn=Math.max(zn,Nn.firstRow),ti=Math.min(Qn,Nn.lastRow),vi=this.element.childNodes,pi=0,si=Nn.firstRow;si<Jn;si++){var ei=this.session.getFoldLine(si);if(ei)if(ei.containsRow(Jn)){Jn=ei.start.row;break}else si=ei.end.row;pi++}for(var mi=!1,si=Jn,ei=this.session.getNextFoldLine(si),fi=ei?ei.start.row:1/0;si>fi&&(si=ei.end.row+1,ei=this.session.getNextFoldLine(si,ei),fi=ei?ei.start.row:1/0),!(si>ti);){var yi=vi[pi++];if(yi){this.dom.removeChildren(yi),this.$renderLine(yi,si,si==fi?ei:!1),mi&&(yi.style.top=this.$lines.computeLineTop(si,Nn,this.session)+"px");var gi=Nn.lineHeight*this.session.getRowLength(si)+"px";yi.style.height!=gi&&(mi=!0,yi.style.height=gi)}si++}if(mi)for(;pi<this.$lines.cells.length;){var xi=this.$lines.cells[pi++];xi.element.style.top=this.$lines.computeLineTop(xi.row,Nn,this.session)+"px"}},Bn.prototype.scrollLines=function(Nn){var zn=this.config;if(this.config=Nn,this.$lines.pageChanged(zn,Nn))return this.update(Nn);this.$lines.moveContainer(Nn);var Qn=Nn.lastRow,Jn=zn?zn.lastRow:-1;if(!zn||Jn<Nn.firstRow)return this.update(Nn);if(Qn<zn.firstRow)return this.update(Nn);if(!zn||zn.lastRow<Nn.firstRow)return this.update(Nn);if(Nn.lastRow<zn.firstRow)return this.update(Nn);if(zn.firstRow<Nn.firstRow)for(var ti=this.session.getFoldedRowCount(zn.firstRow,Nn.firstRow-1);ti>0;ti--)this.$lines.shift();if(zn.lastRow>Nn.lastRow)for(var ti=this.session.getFoldedRowCount(Nn.lastRow+1,zn.lastRow);ti>0;ti--)this.$lines.pop();Nn.firstRow<zn.firstRow&&this.$lines.unshift(this.$renderLinesFragment(Nn,Nn.firstRow,zn.firstRow-1)),Nn.lastRow>zn.lastRow&&this.$lines.push(this.$renderLinesFragment(Nn,zn.lastRow+1,Nn.lastRow)),this.$highlightIndentGuide()},Bn.prototype.$renderLinesFragment=function(Nn,zn,Qn){for(var Jn=[],ti=zn,vi=this.session.getNextFoldLine(ti),pi=vi?vi.start.row:1/0;ti>pi&&(ti=vi.end.row+1,vi=this.session.getNextFoldLine(ti,vi),pi=vi?vi.start.row:1/0),!(ti>Qn);){var si=this.$lines.createCell(ti,Nn,this.session),ei=si.element;this.dom.removeChildren(ei),Kn.setStyle(ei.style,"height",this.$lines.computeLineHeight(ti,Nn,this.session)+"px"),Kn.setStyle(ei.style,"top",this.$lines.computeLineTop(ti,Nn,this.session)+"px"),this.$renderLine(ei,ti,ti==pi?vi:!1),this.$useLineGroups()?ei.className="ace_line_group":ei.className="ace_line",Jn.push(si),ti++}return Jn},Bn.prototype.update=function(Nn){this.$lines.moveContainer(Nn),this.config=Nn;for(var zn=Nn.firstRow,Qn=Nn.lastRow,Jn=this.$lines;Jn.getLength();)Jn.pop();Jn.push(this.$renderLinesFragment(Nn,zn,Qn))},Bn.prototype.$renderToken=function(Nn,zn,Qn,Jn){for(var ti=this,vi=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,pi=this.dom.createFragment(this.element),si,ei=0;si=vi.exec(Jn);){var mi=si[1],fi=si[2],yi=si[3],gi=si[4],xi=si[5];if(!(!ti.showSpaces&&fi)){var ai=ei!=si.index?Jn.slice(ei,si.index):"";if(ei=si.index+si[0].length,ai&&pi.appendChild(this.dom.createTextNode(ai,this.element)),mi){var oi=ti.session.getScreenTabSize(zn+si.index);pi.appendChild(ti.$tabStrings[oi].cloneNode(!0)),zn+=oi-1}else if(fi)if(ti.showSpaces){var li=this.dom.createElement("span");li.className="ace_invisible ace_invisible_space",li.textContent=Xn.stringRepeat(ti.SPACE_CHAR,fi.length),pi.appendChild(li)}else pi.appendChild(this.dom.createTextNode(fi,this.element));else if(yi){var li=this.dom.createElement("span");li.className="ace_invisible ace_invisible_space ace_invalid",li.textContent=Xn.stringRepeat(ti.SPACE_CHAR,yi.length),pi.appendChild(li)}else if(gi){zn+=1;var li=this.dom.createElement("span");li.style.width=ti.config.characterWidth*2+"px",li.className=ti.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",li.textContent=ti.showSpaces?ti.SPACE_CHAR:gi,pi.appendChild(li)}else if(xi){zn+=1;var li=this.dom.createElement("span");li.style.width=ti.config.characterWidth*2+"px",li.className="ace_cjk",li.textContent=xi,pi.appendChild(li)}}}if(pi.appendChild(this.dom.createTextNode(ei?Jn.slice(ei):Jn,this.element)),Dn(Qn.type))Nn.appendChild(pi);else{var wi="ace_"+Qn.type.replace(/\./g," ace_"),li=this.dom.createElement("span");Qn.type=="fold"&&(li.style.width=Qn.value.length*this.config.characterWidth+"px",li.setAttribute("title",In("inline-fold.closed.title","Unfold code"))),li.className=wi,li.appendChild(pi),Nn.appendChild(li)}return zn+Jn.length},Bn.prototype.renderIndentGuide=function(Nn,zn,Qn){var Jn=zn.search(this.$indentGuideRe);if(Jn<=0||Jn>=Qn)return zn;if(zn[0]==" "){Jn-=Jn%this.tabSize;for(var ti=Jn/this.tabSize,vi=0;vi<ti;vi++)Nn.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),zn.substr(Jn)}else if(zn[0]==" "){for(var vi=0;vi<Jn;vi++)Nn.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),zn.substr(Jn)}return this.$highlightIndentGuide(),zn},Bn.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var Nn=this.session.doc.$lines;if(Nn){var zn=this.session.selection.getCursor(),Qn=/^\s*/.exec(this.session.doc.getLine(zn.row))[0].length,Jn=Math.floor(Qn/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:Jn,start:zn.row};var ti=this.session.$bracketHighlight;if(ti){for(var vi=this.session.$bracketHighlight.ranges,pi=0;pi<vi.length;pi++)if(zn.row!==vi[pi].start.row){this.$highlightIndentGuideMarker.end=vi[pi].start.row,zn.row>vi[pi].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&Nn[zn.row]!==""&&zn.column===Nn[zn.row].length){this.$highlightIndentGuideMarker.dir=1;for(var pi=zn.row+1;pi<Nn.length;pi++){var si=Nn[pi],ei=/^\s*/.exec(si)[0].length;if(si!==""&&(this.$highlightIndentGuideMarker.end=pi,ei<=Qn))break}}this.$renderHighlightIndentGuide()}}},Bn.prototype.$clearActiveIndentGuide=function(){for(var Nn=this.$lines.cells,zn=0;zn<Nn.length;zn++){var Qn=Nn[zn],Jn=Qn.element.childNodes;if(Jn.length>0){for(var ti=0;ti<Jn.length;ti++)if(Jn[ti].classList&&Jn[ti].classList.contains("ace_indent-guide-active")){Jn[ti].classList.remove("ace_indent-guide-active");break}}}},Bn.prototype.$setIndentGuideActive=function(Nn,zn){var Qn=this.session.doc.getLine(Nn.row);if(Qn!==""){var Jn=Nn.element.childNodes;if(Jn){var ti=Jn[zn-1];ti&&ti.classList&&ti.classList.contains("ace_indent-guide")&&ti.classList.add("ace_indent-guide-active")}}},Bn.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var Nn=this.$lines.cells;this.$clearActiveIndentGuide();var zn=this.$highlightIndentGuideMarker.indentLevel;if(zn!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var Qn=0;Qn<Nn.length;Qn++){var Jn=Nn[Qn];if(this.$highlightIndentGuideMarker.end&&Jn.row>=this.$highlightIndentGuideMarker.start+1){if(Jn.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Jn,zn)}}else for(var Qn=Nn.length-1;Qn>=0;Qn--){var Jn=Nn[Qn];if(this.$highlightIndentGuideMarker.end&&Jn.row<this.$highlightIndentGuideMarker.start){if(Jn.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(Jn,zn)}}}},Bn.prototype.$createLineElement=function(Nn){var zn=this.dom.createElement("div");return zn.className="ace_line",zn.style.height=this.config.lineHeight+"px",zn},Bn.prototype.$renderWrappedLine=function(Nn,zn,Qn){var Jn=0,ti=0,vi=Qn[0],pi=0,si=this.$createLineElement();Nn.appendChild(si);for(var ei=0;ei<zn.length;ei++){var mi=zn[ei],fi=mi.value;if(ei==0&&this.displayIndentGuides){if(Jn=fi.length,fi=this.renderIndentGuide(si,fi,vi),!fi)continue;Jn-=fi.length}if(Jn+fi.length<vi)pi=this.$renderToken(si,pi,mi,fi),Jn+=fi.length;else{for(;Jn+fi.length>=vi;)pi=this.$renderToken(si,pi,mi,fi.substring(0,vi-Jn)),fi=fi.substring(vi-Jn),Jn=vi,si=this.$createLineElement(),Nn.appendChild(si),si.appendChild(this.dom.createTextNode(Xn.stringRepeat(" ",Qn.indent),this.element)),ti++,pi=0,vi=Qn[ti]||Number.MAX_VALUE;fi.length!=0&&(Jn+=fi.length,pi=this.$renderToken(si,pi,mi,fi))}}Qn[Qn.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(si,pi,null,"",!0)},Bn.prototype.$renderSimpleLine=function(Nn,zn){for(var Qn=0,Jn=0;Jn<zn.length;Jn++){var ti=zn[Jn],vi=ti.value;if(!(Jn==0&&this.displayIndentGuides&&(vi=this.renderIndentGuide(Nn,vi),!vi))){if(Qn+vi.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(Nn,Qn,ti,vi);Qn=this.$renderToken(Nn,Qn,ti,vi)}}},Bn.prototype.$renderOverflowMessage=function(Nn,zn,Qn,Jn,ti){Qn&&this.$renderToken(Nn,zn,Qn,Jn.slice(0,this.MAX_LINE_LENGTH-zn));var vi=this.dom.createElement("span");vi.className="ace_inline_button ace_keyword ace_toggle_wrap",vi.textContent=ti?"<hide>":"<click to see more...>",Nn.appendChild(vi)},Bn.prototype.$renderLine=function(Nn,zn,Qn){if(!Qn&&Qn!=!1&&(Qn=this.session.getFoldLine(zn)),Qn)var Jn=this.$getFoldLineTokens(zn,Qn);else var Jn=this.session.getTokens(zn);var ti=Nn;if(Jn.length){var vi=this.session.getRowSplitData(zn);if(vi&&vi.length){this.$renderWrappedLine(Nn,Jn,vi);var ti=Nn.lastChild}else{var ti=Nn;this.$useLineGroups()&&(ti=this.$createLineElement(),Nn.appendChild(ti)),this.$renderSimpleLine(ti,Jn)}}else this.$useLineGroups()&&(ti=this.$createLineElement(),Nn.appendChild(ti));if(this.showEOL&&ti){Qn&&(zn=Qn.end.row);var pi=this.dom.createElement("span");pi.className="ace_invisible ace_invisible_eol",pi.textContent=zn==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,ti.appendChild(pi)}},Bn.prototype.$getFoldLineTokens=function(Nn,zn){var Qn=this.session,Jn=[];function ti(pi,si,ei){for(var mi=0,fi=0;fi+pi[mi].value.length<si;)if(fi+=pi[mi].value.length,mi++,mi==pi.length)return;if(fi!=si){var yi=pi[mi].value.substring(si-fi);yi.length>ei-si&&(yi=yi.substring(0,ei-si)),Jn.push({type:pi[mi].type,value:yi}),fi=si+yi.length,mi+=1}for(;fi<ei&&mi<pi.length;){var yi=pi[mi].value;yi.length+fi>ei?Jn.push({type:pi[mi].type,value:yi.substring(0,ei-fi)}):Jn.push(pi[mi]),fi+=yi.length,mi+=1}}var vi=Qn.getTokens(Nn);return zn.walk(function(pi,si,ei,mi,fi){pi!=null?Jn.push({type:"fold",value:pi}):(fi&&(vi=Qn.getTokens(si)),vi.length&&ti(vi,mi,ei))},zn.end.row,this.session.getLine(zn.end.row).length),Jn},Bn.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},Bn}();Pn.prototype.EOF_CHAR="¶",Pn.prototype.EOL_CHAR_LF="¬",Pn.prototype.EOL_CHAR_CRLF="¤",Pn.prototype.EOL_CHAR=Pn.prototype.EOL_CHAR_LF,Pn.prototype.TAB_CHAR="—",Pn.prototype.SPACE_CHAR="·",Pn.prototype.$padding=0,Pn.prototype.MAX_LINE_LENGTH=1e4,Pn.prototype.showInvisibles=!1,Pn.prototype.showSpaces=!1,Pn.prototype.showTabs=!1,Pn.prototype.showEOL=!1,Pn.prototype.displayIndentGuides=!0,Pn.prototype.$highlightIndentGuides=!0,Pn.prototype.$tabStrings=[],Pn.prototype.destroy={},Pn.prototype.onChangeTabSize=Pn.prototype.$computeTabString,Wn.implement(Pn.prototype,qn),Mn.Text=Pn}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(kn,Mn,Yn){var Wn=kn("../lib/dom"),Kn=function(){function Xn(Hn){this.element=Wn.createElement("div"),this.element.className="ace_layer ace_cursor-layer",Hn.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),Wn.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return Xn.prototype.$updateOpacity=function(Hn){for(var qn=this.cursors,In=qn.length;In--;)Wn.setStyle(qn[In].style,"opacity",Hn?"":"0")},Xn.prototype.$startCssAnimation=function(){for(var Hn=this.cursors,qn=Hn.length;qn--;)Hn[qn].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&Wn.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},Xn.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,Wn.removeCssClass(this.element,"ace_animate-blinking")},Xn.prototype.setPadding=function(Hn){this.$padding=Hn},Xn.prototype.setSession=function(Hn){this.session=Hn},Xn.prototype.setBlinking=function(Hn){Hn!=this.isBlinking&&(this.isBlinking=Hn,this.restartTimer())},Xn.prototype.setBlinkInterval=function(Hn){Hn!=this.blinkInterval&&(this.blinkInterval=Hn,this.restartTimer())},Xn.prototype.setSmoothBlinking=function(Hn){Hn!=this.smoothBlinking&&(this.smoothBlinking=Hn,Wn.setCssClass(this.element,"ace_smooth-blinking",Hn),this.$updateCursors(!0),this.restartTimer())},Xn.prototype.addCursor=function(){var Hn=Wn.createElement("div");return Hn.className="ace_cursor",this.element.appendChild(Hn),this.cursors.push(Hn),Hn},Xn.prototype.removeCursor=function(){if(this.cursors.length>1){var Hn=this.cursors.pop();return Hn.parentNode.removeChild(Hn),Hn}},Xn.prototype.hideCursor=function(){this.isVisible=!1,Wn.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},Xn.prototype.showCursor=function(){this.isVisible=!0,Wn.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},Xn.prototype.restartTimer=function(){var Hn=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,Wn.removeCssClass(this.element,"ace_smooth-blinking")),Hn(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&Wn.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),Wn.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var qn=(function(){this.timeoutId=setTimeout(function(){Hn(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){Hn(!0),qn()},this.blinkInterval),qn()}},Xn.prototype.getPixelPosition=function(Hn,qn){if(!this.config||!this.session)return{left:0,top:0};Hn||(Hn=this.session.selection.getCursor());var In=this.session.documentToScreenPosition(Hn),Dn=this.$padding+(this.session.$bidiHandler.isBidiRow(In.row,Hn.row)?this.session.$bidiHandler.getPosLeft(In.column):In.column*this.config.characterWidth),Pn=(In.row-(qn?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:Dn,top:Pn}},Xn.prototype.isCursorInView=function(Hn,qn){return Hn.top>=0&&Hn.top<qn.maxHeight},Xn.prototype.update=function(Hn){this.config=Hn;var qn=this.session.$selectionMarkers,In=0,Dn=0;(qn===void 0||qn.length===0)&&(qn=[{cursor:null}]);for(var In=0,Pn=qn.length;In<Pn;In++){var Bn=this.getPixelPosition(qn[In].cursor,!0);if(!((Bn.top>Hn.height+Hn.offset||Bn.top<0)&&In>1)){var Nn=this.cursors[Dn++]||this.addCursor(),zn=Nn.style;this.drawCursor?this.drawCursor(Nn,Bn,Hn,qn[In],this.session):this.isCursorInView(Bn,Hn)?(Wn.setStyle(zn,"display","block"),Wn.translate(Nn,Bn.left,Bn.top),Wn.setStyle(zn,"width",Math.round(Hn.characterWidth)+"px"),Wn.setStyle(zn,"height",Hn.lineHeight+"px")):Wn.setStyle(zn,"display","none")}}for(;this.cursors.length>Dn;)this.removeCursor();var Qn=this.session.getOverwrite();this.$setOverwrite(Qn),this.$pixelPos=Bn,this.restartTimer()},Xn.prototype.$setOverwrite=function(Hn){Hn!=this.overwrite&&(this.overwrite=Hn,Hn?Wn.addCssClass(this.element,"ace_overwrite-cursors"):Wn.removeCssClass(this.element,"ace_overwrite-cursors"))},Xn.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},Xn}();Kn.prototype.$padding=0,Kn.prototype.drawCursor=null,Mn.Cursor=Kn}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(kn,Mn,Yn){var Wn=this&&this.__extends||function(){var Nn=function(zn,Qn){return Nn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Jn,ti){Jn.__proto__=ti}||function(Jn,ti){for(var vi in ti)Object.prototype.hasOwnProperty.call(ti,vi)&&(Jn[vi]=ti[vi])},Nn(zn,Qn)};return function(zn,Qn){if(typeof Qn!="function"&&Qn!==null)throw new TypeError("Class extends value "+String(Qn)+" is not a constructor or null");Nn(zn,Qn);function Jn(){this.constructor=zn}zn.prototype=Qn===null?Object.create(Qn):(Jn.prototype=Qn.prototype,new Jn)}}(),Kn=kn("./lib/oop"),Xn=kn("./lib/dom"),Hn=kn("./lib/event"),qn=kn("./lib/event_emitter").EventEmitter,In=32768,Dn=function(){function Nn(zn,Qn){this.element=Xn.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+Qn,this.inner=Xn.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),zn.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,Hn.addListener(this.element,"scroll",this.onScroll.bind(this)),Hn.addListener(this.element,"mousedown",Hn.preventDefault)}return Nn.prototype.setVisible=function(zn){this.element.style.display=zn?"":"none",this.isVisible=zn,this.coeff=1},Nn}();Kn.implement(Dn.prototype,qn);var Pn=function(Nn){Wn(zn,Nn);function zn(Qn,Jn){var ti=Nn.call(this,Qn,"-v")||this;return ti.scrollTop=0,ti.scrollHeight=0,Jn.$scrollbarWidth=ti.width=Xn.scrollbarWidth(Qn.ownerDocument),ti.inner.style.width=ti.element.style.width=(ti.width||15)+5+"px",ti.$minWidth=0,ti}return zn.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var Qn=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-Qn)/(this.coeff-Qn)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},zn.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},zn.prototype.setHeight=function(Qn){this.element.style.height=Qn+"px"},zn.prototype.setScrollHeight=function(Qn){this.scrollHeight=Qn,Qn>In?(this.coeff=In/Qn,Qn=In):this.coeff!=1&&(this.coeff=1),this.inner.style.height=Qn+"px"},zn.prototype.setScrollTop=function(Qn){this.scrollTop!=Qn&&(this.skipEvent=!0,this.scrollTop=Qn,this.element.scrollTop=Qn*this.coeff)},zn}(Dn);Pn.prototype.setInnerHeight=Pn.prototype.setScrollHeight;var Bn=function(Nn){Wn(zn,Nn);function zn(Qn,Jn){var ti=Nn.call(this,Qn,"-h")||this;return ti.scrollLeft=0,ti.height=Jn.$scrollbarWidth,ti.inner.style.height=ti.element.style.height=(ti.height||15)+5+"px",ti}return zn.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},zn.prototype.getHeight=function(){return this.isVisible?this.height:0},zn.prototype.setWidth=function(Qn){this.element.style.width=Qn+"px"},zn.prototype.setInnerWidth=function(Qn){this.inner.style.width=Qn+"px"},zn.prototype.setScrollWidth=function(Qn){this.inner.style.width=Qn+"px"},zn.prototype.setScrollLeft=function(Qn){this.scrollLeft!=Qn&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=Qn)},zn}(Dn);Mn.ScrollBar=Pn,Mn.ScrollBarV=Pn,Mn.ScrollBarH=Bn,Mn.VScrollBar=Pn,Mn.HScrollBar=Bn}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(kn,Mn,Yn){var Wn=this&&this.__extends||function(){var Bn=function(Nn,zn){return Bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qn,Jn){Qn.__proto__=Jn}||function(Qn,Jn){for(var ti in Jn)Object.prototype.hasOwnProperty.call(Jn,ti)&&(Qn[ti]=Jn[ti])},Bn(Nn,zn)};return function(Nn,zn){if(typeof zn!="function"&&zn!==null)throw new TypeError("Class extends value "+String(zn)+" is not a constructor or null");Bn(Nn,zn);function Qn(){this.constructor=Nn}Nn.prototype=zn===null?Object.create(zn):(Qn.prototype=zn.prototype,new Qn)}}(),Kn=kn("./lib/oop"),Xn=kn("./lib/dom"),Hn=kn("./lib/event"),qn=kn("./lib/event_emitter").EventEmitter;Xn.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
209
+ position: absolute;
210
+ background: rgba(128, 128, 128, 0.6);
211
+ -moz-box-sizing: border-box;
212
+ box-sizing: border-box;
213
+ border: 1px solid #bbb;
214
+ border-radius: 2px;
215
+ z-index: 8;
216
+ }
217
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
218
+ position: absolute;
219
+ z-index: 6;
220
+ background: none;
221
+ overflow: hidden!important;
222
+ }
223
+ .ace_editor>.ace_sb-v {
224
+ z-index: 6;
225
+ right: 0;
226
+ top: 0;
227
+ width: 12px;
228
+ }
229
+ .ace_editor>.ace_sb-v div {
230
+ z-index: 8;
231
+ right: 0;
232
+ width: 100%;
233
+ }
234
+ .ace_editor>.ace_sb-h {
235
+ bottom: 0;
236
+ left: 0;
237
+ height: 12px;
238
+ }
239
+ .ace_editor>.ace_sb-h div {
240
+ bottom: 0;
241
+ height: 100%;
242
+ }
243
+ .ace_editor>.ace_sb_grabbed {
244
+ z-index: 8;
245
+ background: #000;
246
+ }`,"ace_scrollbar.css",!1);var In=function(){function Bn(Nn,zn){this.element=Xn.createElement("div"),this.element.className="ace_sb"+zn,this.inner=Xn.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,Nn.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,Hn.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return Bn.prototype.setVisible=function(Nn){this.element.style.display=Nn?"":"none",this.isVisible=Nn,this.coeff=1},Bn}();Kn.implement(In.prototype,qn);var Dn=function(Bn){Wn(Nn,Bn);function Nn(zn,Qn){var Jn=Bn.call(this,zn,"-v")||this;return Jn.scrollTop=0,Jn.scrollHeight=0,Jn.parent=zn,Jn.width=Jn.VScrollWidth,Jn.renderer=Qn,Jn.inner.style.width=Jn.element.style.width=(Jn.width||15)+"px",Jn.$minWidth=0,Jn}return Nn.prototype.onMouseDown=function(zn,Qn){if(zn==="mousedown"&&!(Hn.getButton(Qn)!==0||Qn.detail===2)){if(Qn.target===this.inner){var Jn=this,ti=Qn.clientY,vi=function(gi){ti=gi.clientY},pi=function(){clearInterval(fi)},si=Qn.clientY,ei=this.thumbTop,mi=function(){if(ti!==void 0){var gi=Jn.scrollTopFromThumbTop(ei+ti-si);gi!==Jn.scrollTop&&Jn._emit("scroll",{data:gi})}};Hn.capture(this.inner,vi,pi);var fi=setInterval(mi,20);return Hn.preventDefault(Qn)}var yi=Qn.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(yi)}),Hn.preventDefault(Qn)}},Nn.prototype.getHeight=function(){return this.height},Nn.prototype.scrollTopFromThumbTop=function(zn){var Qn=zn*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return Qn=Qn>>0,Qn<0?Qn=0:Qn>this.pageHeight-this.viewHeight&&(Qn=this.pageHeight-this.viewHeight),Qn},Nn.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},Nn.prototype.setHeight=function(zn){this.height=Math.max(0,zn),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},Nn.prototype.setScrollHeight=function(zn,Qn){this.pageHeight===zn&&!Qn||(this.pageHeight=zn,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},Nn.prototype.setScrollTop=function(zn){this.scrollTop=zn,zn<0&&(zn=0),this.thumbTop=zn*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},Nn}(In);Dn.prototype.setInnerHeight=Dn.prototype.setScrollHeight;var Pn=function(Bn){Wn(Nn,Bn);function Nn(zn,Qn){var Jn=Bn.call(this,zn,"-h")||this;return Jn.scrollLeft=0,Jn.scrollWidth=0,Jn.height=Jn.HScrollHeight,Jn.inner.style.height=Jn.element.style.height=(Jn.height||12)+"px",Jn.renderer=Qn,Jn}return Nn.prototype.onMouseDown=function(zn,Qn){if(zn==="mousedown"&&!(Hn.getButton(Qn)!==0||Qn.detail===2)){if(Qn.target===this.inner){var Jn=this,ti=Qn.clientX,vi=function(gi){ti=gi.clientX},pi=function(){clearInterval(fi)},si=Qn.clientX,ei=this.thumbLeft,mi=function(){if(ti!==void 0){var gi=Jn.scrollLeftFromThumbLeft(ei+ti-si);gi!==Jn.scrollLeft&&Jn._emit("scroll",{data:gi})}};Hn.capture(this.inner,vi,pi);var fi=setInterval(mi,20);return Hn.preventDefault(Qn)}var yi=Qn.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(yi)}),Hn.preventDefault(Qn)}},Nn.prototype.getHeight=function(){return this.isVisible?this.height:0},Nn.prototype.scrollLeftFromThumbLeft=function(zn){var Qn=zn*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return Qn=Qn>>0,Qn<0?Qn=0:Qn>this.pageWidth-this.viewWidth&&(Qn=this.pageWidth-this.viewWidth),Qn},Nn.prototype.setWidth=function(zn){this.width=Math.max(0,zn),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},Nn.prototype.setScrollWidth=function(zn,Qn){this.pageWidth===zn&&!Qn||(this.pageWidth=zn,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},Nn.prototype.setScrollLeft=function(zn){this.scrollLeft=zn,zn<0&&(zn=0),this.thumbLeft=zn*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},Nn}(In);Pn.prototype.setInnerWidth=Pn.prototype.setScrollWidth,Mn.ScrollBar=Dn,Mn.ScrollBarV=Dn,Mn.ScrollBarH=Pn,Mn.VScrollBar=Dn,Mn.HScrollBar=Pn}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(kn,Mn,Yn){var Wn=kn("./lib/event"),Kn=function(){function Xn(Hn,qn){this.onRender=Hn,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=qn||window;var In=this;this._flush=function(Dn){In.pending=!1;var Pn=In.changes;if(Pn&&(Wn.blockIdle(100),In.changes=0,In.onRender(Pn)),In.changes){if(In.$recursionLimit--<0)return;In.schedule()}else In.$recursionLimit=2}}return Xn.prototype.schedule=function(Hn){this.changes=this.changes|Hn,this.changes&&!this.pending&&(Wn.nextFrame(this._flush),this.pending=!0)},Xn.prototype.clear=function(Hn){var qn=this.changes;return this.changes=0,qn},Xn}();Mn.RenderLoop=Kn}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("../lib/dom"),Xn=kn("../lib/lang"),Hn=kn("../lib/event"),qn=kn("../lib/useragent"),In=kn("../lib/event_emitter").EventEmitter,Dn=512,Pn=typeof ResizeObserver=="function",Bn=200,Nn=function(){function zn(Qn){this.el=Kn.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=Kn.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=Kn.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),Qn.appendChild(this.el),this.$measureNode.textContent=Xn.stringRepeat("X",Dn),this.$characterSize={width:0,height:0},Pn?this.$addObserver():this.checkForSizeChanges()}return zn.prototype.$setMeasureNodeStyles=function(Qn,Jn){Qn.width=Qn.height="auto",Qn.left=Qn.top="0px",Qn.visibility="hidden",Qn.position="absolute",Qn.whiteSpace="pre",qn.isIE<8?Qn["font-family"]="inherit":Qn.font="inherit",Qn.overflow=Jn?"hidden":"visible"},zn.prototype.checkForSizeChanges=function(Qn){if(Qn===void 0&&(Qn=this.$measureSizes()),Qn&&(this.$characterSize.width!==Qn.width||this.$characterSize.height!==Qn.height)){this.$measureNode.style.fontWeight="bold";var Jn=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=Qn,this.charSizes=Object.create(null),this.allowBoldFonts=Jn&&Jn.width===Qn.width&&Jn.height===Qn.height,this._emit("changeCharacterSize",{data:Qn})}},zn.prototype.$addObserver=function(){var Qn=this;this.$observer=new window.ResizeObserver(function(Jn){Qn.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},zn.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var Qn=this;return this.$pollSizeChangesTimer=Hn.onIdle(function Jn(){Qn.checkForSizeChanges(),Hn.onIdle(Jn,500)},500)},zn.prototype.setPolling=function(Qn){Qn?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},zn.prototype.$measureSizes=function(Qn){var Jn={height:(Qn||this.$measureNode).clientHeight,width:(Qn||this.$measureNode).clientWidth/Dn};return Jn.width===0||Jn.height===0?null:Jn},zn.prototype.$measureCharWidth=function(Qn){this.$main.textContent=Xn.stringRepeat(Qn,Dn);var Jn=this.$main.getBoundingClientRect();return Jn.width/Dn},zn.prototype.getCharacterWidth=function(Qn){var Jn=this.charSizes[Qn];return Jn===void 0&&(Jn=this.charSizes[Qn]=this.$measureCharWidth(Qn)/this.$characterSize.width),Jn},zn.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},zn.prototype.$getZoom=function(Qn){return!Qn||!Qn.parentElement?1:(Number(window.getComputedStyle(Qn).zoom)||1)*this.$getZoom(Qn.parentElement)},zn.prototype.$initTransformMeasureNodes=function(){var Qn=function(Jn,ti){return["div",{style:"position: absolute;top:"+Jn+"px;left:"+ti+"px;"}]};this.els=Kn.buildDom([Qn(0,0),Qn(Bn,0),Qn(0,Bn),Qn(Bn,Bn)],this.el)},zn.prototype.transformCoordinates=function(Qn,Jn){if(Qn){var ti=this.$getZoom(this.el);Qn=ei(1/ti,Qn)}function vi(Ri,Ii,zi){var Oi=Ri[1]*Ii[0]-Ri[0]*Ii[1];return[(-Ii[1]*zi[0]+Ii[0]*zi[1])/Oi,(+Ri[1]*zi[0]-Ri[0]*zi[1])/Oi]}function pi(Ri,Ii){return[Ri[0]-Ii[0],Ri[1]-Ii[1]]}function si(Ri,Ii){return[Ri[0]+Ii[0],Ri[1]+Ii[1]]}function ei(Ri,Ii){return[Ri*Ii[0],Ri*Ii[1]]}this.els||this.$initTransformMeasureNodes();function mi(Ri){var Ii=Ri.getBoundingClientRect();return[Ii.left,Ii.top]}var fi=mi(this.els[0]),yi=mi(this.els[1]),gi=mi(this.els[2]),xi=mi(this.els[3]),ai=vi(pi(xi,yi),pi(xi,gi),pi(si(yi,gi),si(xi,fi))),oi=ei(1+ai[0],pi(yi,fi)),li=ei(1+ai[1],pi(gi,fi));if(Jn){var wi=Jn,bi=ai[0]*wi[0]/Bn+ai[1]*wi[1]/Bn+1,_i=si(ei(wi[0],oi),ei(wi[1],li));return si(ei(1/bi/Bn,_i),fi)}var Ti=pi(Qn,fi),Li=vi(pi(oi,ei(ai[0],Ti)),pi(li,ei(ai[1],Ti)),Ti);return ei(Bn,Li)},zn}();Nn.prototype.$characterSize={width:0,height:0},Wn.implement(Nn.prototype,In),Mn.FontMetrics=Nn}),ace.define("ace/css/editor-css",["require","exports","module"],function(kn,Mn,Yn){Yn.exports=`
247
+ .ace_br1 {border-top-left-radius : 3px;}
248
+ .ace_br2 {border-top-right-radius : 3px;}
249
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
250
+ .ace_br4 {border-bottom-right-radius: 3px;}
251
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
252
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
253
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
254
+ .ace_br8 {border-bottom-left-radius : 3px;}
255
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
256
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
257
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
258
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
259
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
260
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
261
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
262
+
263
+
264
+ .ace_editor {
265
+ position: relative;
266
+ overflow: hidden;
267
+ padding: 0;
268
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
269
+ direction: ltr;
270
+ text-align: left;
271
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
272
+ forced-color-adjust: none;
273
+ }
274
+
275
+ .ace_scroller {
276
+ position: absolute;
277
+ overflow: hidden;
278
+ top: 0;
279
+ bottom: 0;
280
+ background-color: inherit;
281
+ -ms-user-select: none;
282
+ -moz-user-select: none;
283
+ -webkit-user-select: none;
284
+ user-select: none;
285
+ cursor: text;
286
+ }
287
+
288
+ .ace_content {
289
+ position: absolute;
290
+ box-sizing: border-box;
291
+ min-width: 100%;
292
+ contain: style size layout;
293
+ font-variant-ligatures: no-common-ligatures;
294
+ }
295
+
296
+ .ace_keyboard-focus:focus {
297
+ box-shadow: inset 0 0 0 2px #5E9ED6;
298
+ outline: none;
299
+ }
300
+
301
+ .ace_dragging .ace_scroller:before{
302
+ position: absolute;
303
+ top: 0;
304
+ left: 0;
305
+ right: 0;
306
+ bottom: 0;
307
+ content: '';
308
+ background: rgba(250, 250, 250, 0.01);
309
+ z-index: 1000;
310
+ }
311
+ .ace_dragging.ace_dark .ace_scroller:before{
312
+ background: rgba(0, 0, 0, 0.01);
313
+ }
314
+
315
+ .ace_gutter {
316
+ position: absolute;
317
+ overflow : hidden;
318
+ width: auto;
319
+ top: 0;
320
+ bottom: 0;
321
+ left: 0;
322
+ cursor: default;
323
+ z-index: 4;
324
+ -ms-user-select: none;
325
+ -moz-user-select: none;
326
+ -webkit-user-select: none;
327
+ user-select: none;
328
+ contain: style size layout;
329
+ }
330
+
331
+ .ace_gutter-active-line {
332
+ position: absolute;
333
+ left: 0;
334
+ right: 0;
335
+ }
336
+
337
+ .ace_scroller.ace_scroll-left:after {
338
+ content: "";
339
+ position: absolute;
340
+ top: 0;
341
+ right: 0;
342
+ bottom: 0;
343
+ left: 0;
344
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
345
+ pointer-events: none;
346
+ }
347
+
348
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
349
+ position: absolute;
350
+ top: 0;
351
+ left: 0;
352
+ right: 0;
353
+ padding-left: 19px;
354
+ padding-right: 6px;
355
+ background-repeat: no-repeat;
356
+ }
357
+
358
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
359
+ margin-left: -14px;
360
+ float: left;
361
+ }
362
+
363
+ .ace_gutter-cell .ace_gutter_annotation {
364
+ margin-left: -19px;
365
+ float: left;
366
+ }
367
+
368
+ .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
369
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
370
+ background-repeat: no-repeat;
371
+ background-position: 2px center;
372
+ }
373
+
374
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
375
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
376
+ background-repeat: no-repeat;
377
+ background-position: 2px center;
378
+ }
379
+
380
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
381
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
382
+ background-repeat: no-repeat;
383
+ background-position: 2px center;
384
+ }
385
+
386
+ .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
387
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
388
+ }
389
+
390
+ .ace_icon_svg.ace_error {
391
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
392
+ background-color: crimson;
393
+ }
394
+ .ace_icon_svg.ace_security {
395
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
396
+ background-color: crimson;
397
+ }
398
+ .ace_icon_svg.ace_warning {
399
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
400
+ background-color: darkorange;
401
+ }
402
+ .ace_icon_svg.ace_info {
403
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
404
+ background-color: royalblue;
405
+ }
406
+ .ace_icon_svg.ace_hint {
407
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
408
+ background-color: silver;
409
+ }
410
+
411
+ .ace_icon_svg.ace_error_fold {
412
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
413
+ background-color: crimson;
414
+ }
415
+ .ace_icon_svg.ace_security_fold {
416
+ -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
417
+ background-color: crimson;
418
+ }
419
+ .ace_icon_svg.ace_warning_fold {
420
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
421
+ background-color: darkorange;
422
+ }
423
+
424
+ .ace_scrollbar {
425
+ contain: strict;
426
+ position: absolute;
427
+ right: 0;
428
+ bottom: 0;
429
+ z-index: 6;
430
+ }
431
+
432
+ .ace_scrollbar-inner {
433
+ position: absolute;
434
+ cursor: text;
435
+ left: 0;
436
+ top: 0;
437
+ }
438
+
439
+ .ace_scrollbar-v{
440
+ overflow-x: hidden;
441
+ overflow-y: scroll;
442
+ top: 0;
443
+ }
444
+
445
+ .ace_scrollbar-h {
446
+ overflow-x: scroll;
447
+ overflow-y: hidden;
448
+ left: 0;
449
+ }
450
+
451
+ .ace_print-margin {
452
+ position: absolute;
453
+ height: 100%;
454
+ }
455
+
456
+ .ace_text-input {
457
+ position: absolute;
458
+ z-index: 0;
459
+ width: 0.5em;
460
+ height: 1em;
461
+ opacity: 0;
462
+ background: transparent;
463
+ -moz-appearance: none;
464
+ appearance: none;
465
+ border: none;
466
+ resize: none;
467
+ outline: none;
468
+ overflow: hidden;
469
+ font: inherit;
470
+ padding: 0 1px;
471
+ margin: 0 -1px;
472
+ contain: strict;
473
+ -ms-user-select: text;
474
+ -moz-user-select: text;
475
+ -webkit-user-select: text;
476
+ user-select: text;
477
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
478
+ white-space: pre!important;
479
+ }
480
+ .ace_text-input.ace_composition {
481
+ background: transparent;
482
+ color: inherit;
483
+ z-index: 1000;
484
+ opacity: 1;
485
+ }
486
+ .ace_composition_placeholder { color: transparent }
487
+ .ace_composition_marker {
488
+ border-bottom: 1px solid;
489
+ position: absolute;
490
+ border-radius: 0;
491
+ margin-top: 1px;
492
+ }
493
+
494
+ [ace_nocontext=true] {
495
+ transform: none!important;
496
+ filter: none!important;
497
+ clip-path: none!important;
498
+ mask : none!important;
499
+ contain: none!important;
500
+ perspective: none!important;
501
+ mix-blend-mode: initial!important;
502
+ z-index: auto;
503
+ }
504
+
505
+ .ace_layer {
506
+ z-index: 1;
507
+ position: absolute;
508
+ overflow: hidden;
509
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
510
+ word-wrap: normal;
511
+ white-space: pre;
512
+ height: 100%;
513
+ width: 100%;
514
+ box-sizing: border-box;
515
+ /* setting pointer-events: auto; on node under the mouse, which changes
516
+ during scroll, will break mouse wheel scrolling in Safari */
517
+ pointer-events: none;
518
+ }
519
+
520
+ .ace_gutter-layer {
521
+ position: relative;
522
+ width: auto;
523
+ text-align: right;
524
+ pointer-events: auto;
525
+ height: 1000000px;
526
+ contain: style size layout;
527
+ }
528
+
529
+ .ace_text-layer {
530
+ font: inherit !important;
531
+ position: absolute;
532
+ height: 1000000px;
533
+ width: 1000000px;
534
+ contain: style size layout;
535
+ }
536
+
537
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
538
+ contain: style size layout;
539
+ position: absolute;
540
+ top: 0;
541
+ left: 0;
542
+ right: 0;
543
+ }
544
+
545
+ .ace_hidpi .ace_text-layer,
546
+ .ace_hidpi .ace_gutter-layer,
547
+ .ace_hidpi .ace_content,
548
+ .ace_hidpi .ace_gutter {
549
+ contain: strict;
550
+ }
551
+ .ace_hidpi .ace_text-layer > .ace_line,
552
+ .ace_hidpi .ace_text-layer > .ace_line_group {
553
+ contain: strict;
554
+ }
555
+
556
+ .ace_cjk {
557
+ display: inline-block;
558
+ text-align: center;
559
+ }
560
+
561
+ .ace_cursor-layer {
562
+ z-index: 4;
563
+ }
564
+
565
+ .ace_cursor {
566
+ z-index: 4;
567
+ position: absolute;
568
+ box-sizing: border-box;
569
+ border-left: 2px solid;
570
+ /* workaround for smooth cursor repaintng whole screen in chrome */
571
+ transform: translatez(0);
572
+ }
573
+
574
+ .ace_multiselect .ace_cursor {
575
+ border-left-width: 1px;
576
+ }
577
+
578
+ .ace_slim-cursors .ace_cursor {
579
+ border-left-width: 1px;
580
+ }
581
+
582
+ .ace_overwrite-cursors .ace_cursor {
583
+ border-left-width: 0;
584
+ border-bottom: 1px solid;
585
+ }
586
+
587
+ .ace_hidden-cursors .ace_cursor {
588
+ opacity: 0.2;
589
+ }
590
+
591
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
592
+ opacity: 0;
593
+ }
594
+
595
+ .ace_smooth-blinking .ace_cursor {
596
+ transition: opacity 0.18s;
597
+ }
598
+
599
+ .ace_animate-blinking .ace_cursor {
600
+ animation-duration: 1000ms;
601
+ animation-timing-function: step-end;
602
+ animation-name: blink-ace-animate;
603
+ animation-iteration-count: infinite;
604
+ }
605
+
606
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
607
+ animation-duration: 1000ms;
608
+ animation-timing-function: ease-in-out;
609
+ animation-name: blink-ace-animate-smooth;
610
+ }
611
+
612
+ @keyframes blink-ace-animate {
613
+ from, to { opacity: 1; }
614
+ 60% { opacity: 0; }
615
+ }
616
+
617
+ @keyframes blink-ace-animate-smooth {
618
+ from, to { opacity: 1; }
619
+ 45% { opacity: 1; }
620
+ 60% { opacity: 0; }
621
+ 85% { opacity: 0; }
622
+ }
623
+
624
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
625
+ position: absolute;
626
+ z-index: 3;
627
+ }
628
+
629
+ .ace_marker-layer .ace_selection {
630
+ position: absolute;
631
+ z-index: 5;
632
+ }
633
+
634
+ .ace_marker-layer .ace_bracket {
635
+ position: absolute;
636
+ z-index: 6;
637
+ }
638
+
639
+ .ace_marker-layer .ace_error_bracket {
640
+ position: absolute;
641
+ border-bottom: 1px solid #DE5555;
642
+ border-radius: 0;
643
+ }
644
+
645
+ .ace_marker-layer .ace_active-line {
646
+ position: absolute;
647
+ z-index: 2;
648
+ }
649
+
650
+ .ace_marker-layer .ace_selected-word {
651
+ position: absolute;
652
+ z-index: 4;
653
+ box-sizing: border-box;
654
+ }
655
+
656
+ .ace_line .ace_fold {
657
+ box-sizing: border-box;
658
+
659
+ display: inline-block;
660
+ height: 11px;
661
+ margin-top: -2px;
662
+ vertical-align: middle;
663
+
664
+ background-image:
665
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
666
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
667
+ background-repeat: no-repeat, repeat-x;
668
+ background-position: center center, top left;
669
+ color: transparent;
670
+
671
+ border: 1px solid black;
672
+ border-radius: 2px;
673
+
674
+ cursor: pointer;
675
+ pointer-events: auto;
676
+ }
677
+
678
+ .ace_dark .ace_fold {
679
+ }
680
+
681
+ .ace_fold:hover{
682
+ background-image:
683
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
684
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
685
+ }
686
+
687
+ .ace_tooltip {
688
+ background-color: #f5f5f5;
689
+ border: 1px solid gray;
690
+ border-radius: 1px;
691
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
692
+ color: black;
693
+ max-width: 100%;
694
+ padding: 3px 4px;
695
+ position: fixed;
696
+ z-index: 999999;
697
+ box-sizing: border-box;
698
+ cursor: default;
699
+ white-space: pre-wrap;
700
+ word-wrap: break-word;
701
+ line-height: normal;
702
+ font-style: normal;
703
+ font-weight: normal;
704
+ letter-spacing: normal;
705
+ pointer-events: none;
706
+ overflow: auto;
707
+ max-width: min(60em, 66vw);
708
+ overscroll-behavior: contain;
709
+ }
710
+ .ace_tooltip pre {
711
+ white-space: pre-wrap;
712
+ }
713
+
714
+ .ace_tooltip.ace_dark {
715
+ background-color: #636363;
716
+ color: #fff;
717
+ }
718
+
719
+ .ace_tooltip:focus {
720
+ outline: 1px solid #5E9ED6;
721
+ }
722
+
723
+ .ace_icon {
724
+ display: inline-block;
725
+ width: 18px;
726
+ vertical-align: top;
727
+ }
728
+
729
+ .ace_icon_svg {
730
+ display: inline-block;
731
+ width: 12px;
732
+ vertical-align: top;
733
+ -webkit-mask-repeat: no-repeat;
734
+ -webkit-mask-size: 12px;
735
+ -webkit-mask-position: center;
736
+ }
737
+
738
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
739
+ padding-right: 13px;
740
+ }
741
+
742
+ .ace_fold-widget {
743
+ box-sizing: border-box;
744
+
745
+ margin: 0 -12px 0 1px;
746
+ display: none;
747
+ width: 11px;
748
+ vertical-align: top;
749
+
750
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
751
+ background-repeat: no-repeat;
752
+ background-position: center;
753
+
754
+ border-radius: 3px;
755
+
756
+ border: 1px solid transparent;
757
+ cursor: pointer;
758
+ }
759
+
760
+ .ace_folding-enabled .ace_fold-widget {
761
+ display: inline-block;
762
+ }
763
+
764
+ .ace_fold-widget.ace_end {
765
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
766
+ }
767
+
768
+ .ace_fold-widget.ace_closed {
769
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
770
+ }
771
+
772
+ .ace_fold-widget:hover {
773
+ border: 1px solid rgba(0, 0, 0, 0.3);
774
+ background-color: rgba(255, 255, 255, 0.2);
775
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
776
+ }
777
+
778
+ .ace_fold-widget:active {
779
+ border: 1px solid rgba(0, 0, 0, 0.4);
780
+ background-color: rgba(0, 0, 0, 0.05);
781
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
782
+ }
783
+ /**
784
+ * Dark version for fold widgets
785
+ */
786
+ .ace_dark .ace_fold-widget {
787
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
788
+ }
789
+ .ace_dark .ace_fold-widget.ace_end {
790
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
791
+ }
792
+ .ace_dark .ace_fold-widget.ace_closed {
793
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
794
+ }
795
+ .ace_dark .ace_fold-widget:hover {
796
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
797
+ background-color: rgba(255, 255, 255, 0.1);
798
+ }
799
+ .ace_dark .ace_fold-widget:active {
800
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
801
+ }
802
+
803
+ .ace_inline_button {
804
+ border: 1px solid lightgray;
805
+ display: inline-block;
806
+ margin: -1px 8px;
807
+ padding: 0 5px;
808
+ pointer-events: auto;
809
+ cursor: pointer;
810
+ }
811
+ .ace_inline_button:hover {
812
+ border-color: gray;
813
+ background: rgba(200,200,200,0.2);
814
+ display: inline-block;
815
+ pointer-events: auto;
816
+ }
817
+
818
+ .ace_fold-widget.ace_invalid {
819
+ background-color: #FFB4B4;
820
+ border-color: #DE5555;
821
+ }
822
+
823
+ .ace_fade-fold-widgets .ace_fold-widget {
824
+ transition: opacity 0.4s ease 0.05s;
825
+ opacity: 0;
826
+ }
827
+
828
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
829
+ transition: opacity 0.05s ease 0.05s;
830
+ opacity:1;
831
+ }
832
+
833
+ .ace_underline {
834
+ text-decoration: underline;
835
+ }
836
+
837
+ .ace_bold {
838
+ font-weight: bold;
839
+ }
840
+
841
+ .ace_nobold .ace_bold {
842
+ font-weight: normal;
843
+ }
844
+
845
+ .ace_italic {
846
+ font-style: italic;
847
+ }
848
+
849
+
850
+ .ace_error-marker {
851
+ background-color: rgba(255, 0, 0,0.2);
852
+ position: absolute;
853
+ z-index: 9;
854
+ }
855
+
856
+ .ace_highlight-marker {
857
+ background-color: rgba(255, 255, 0,0.2);
858
+ position: absolute;
859
+ z-index: 8;
860
+ }
861
+
862
+ .ace_mobile-menu {
863
+ position: absolute;
864
+ line-height: 1.5;
865
+ border-radius: 4px;
866
+ -ms-user-select: none;
867
+ -moz-user-select: none;
868
+ -webkit-user-select: none;
869
+ user-select: none;
870
+ background: white;
871
+ box-shadow: 1px 3px 2px grey;
872
+ border: 1px solid #dcdcdc;
873
+ color: black;
874
+ }
875
+ .ace_dark > .ace_mobile-menu {
876
+ background: #333;
877
+ color: #ccc;
878
+ box-shadow: 1px 3px 2px grey;
879
+ border: 1px solid #444;
880
+
881
+ }
882
+ .ace_mobile-button {
883
+ padding: 2px;
884
+ cursor: pointer;
885
+ overflow: hidden;
886
+ }
887
+ .ace_mobile-button:hover {
888
+ background-color: #eee;
889
+ opacity:1;
890
+ }
891
+ .ace_mobile-button:active {
892
+ background-color: #ddd;
893
+ }
894
+
895
+ .ace_placeholder {
896
+ position: relative;
897
+ font-family: arial;
898
+ transform: scale(0.9);
899
+ transform-origin: left;
900
+ white-space: pre;
901
+ opacity: 0.7;
902
+ margin: 0 10px;
903
+ z-index: 1;
904
+ }
905
+
906
+ .ace_ghost_text {
907
+ opacity: 0.5;
908
+ font-style: italic;
909
+ }
910
+
911
+ .ace_ghost_text_container > div {
912
+ white-space: pre;
913
+ }
914
+
915
+ .ghost_text_line_wrapped::after {
916
+ content: "↩";
917
+ position: absolute;
918
+ }
919
+
920
+ .ace_lineWidgetContainer.ace_ghost_text {
921
+ margin: 0px 4px
922
+ }
923
+
924
+ .ace_screenreader-only {
925
+ position:absolute;
926
+ left:-10000px;
927
+ top:auto;
928
+ width:1px;
929
+ height:1px;
930
+ overflow:hidden;
931
+ }
932
+
933
+ .ace_hidden_token {
934
+ display: none;
935
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(kn,Mn,Yn){var Wn=kn("../lib/dom"),Kn=kn("../lib/oop"),Xn=kn("../lib/event_emitter").EventEmitter,Hn=function(){function qn(In,Dn){this.canvas=Wn.createElement("canvas"),this.renderer=Dn,this.pixelRatio=1,this.maxHeight=Dn.layerConfig.maxHeight,this.lineHeight=Dn.layerConfig.lineHeight,this.canvasHeight=In.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=In.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},In.element.appendChild(this.canvas)}return qn.prototype.$updateDecorators=function(In){var Dn=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(In){this.maxHeight=In.maxHeight,this.lineHeight=In.lineHeight,this.canvasHeight=In.height;var Pn=(In.lastRow+1)*this.lineHeight;Pn<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var Bn=this.canvas.getContext("2d");function Nn(xi,ai){return xi.priority<ai.priority?-1:xi.priority>ai.priority?1:0}var zn=this.renderer.session.$annotations;if(Bn.clearRect(0,0,this.canvas.width,this.canvas.height),zn){var Qn={info:1,warning:2,error:3};zn.forEach(function(xi){xi.priority=Qn[xi.type]||null}),zn=zn.sort(Nn);for(var Jn=this.renderer.session.$foldData,ti=0;ti<zn.length;ti++){var vi=zn[ti].row,pi=this.compensateFoldRows(vi,Jn),si=Math.round((vi-pi)*this.lineHeight*this.heightRatio),ei=Math.round((vi-pi)*this.lineHeight*this.heightRatio),mi=Math.round(((vi-pi)*this.lineHeight+this.lineHeight)*this.heightRatio),fi=mi-ei;if(fi<this.minDecorationHeight){var yi=(ei+mi)/2|0;yi<this.halfMinDecorationHeight?yi=this.halfMinDecorationHeight:yi+this.halfMinDecorationHeight>this.canvasHeight&&(yi=this.canvasHeight-this.halfMinDecorationHeight),ei=Math.round(yi-this.halfMinDecorationHeight),mi=Math.round(yi+this.halfMinDecorationHeight)}Bn.fillStyle=Dn[zn[ti].type]||null,Bn.fillRect(0,si,this.canvasWidth,mi-ei)}}var gi=this.renderer.session.selection.getCursor();if(gi){var pi=this.compensateFoldRows(gi.row,Jn),si=Math.round((gi.row-pi)*this.lineHeight*this.heightRatio);Bn.fillStyle="rgba(0, 0, 0, 0.5)",Bn.fillRect(0,si,this.canvasWidth,2)}},qn.prototype.compensateFoldRows=function(In,Dn){var Pn=0;if(Dn&&Dn.length>0)for(var Bn=0;Bn<Dn.length;Bn++)In>Dn[Bn].start.row&&In<Dn[Bn].end.row?Pn+=In-Dn[Bn].start.row:In>=Dn[Bn].end.row&&(Pn+=Dn[Bn].end.row-Dn[Bn].start.row);return Pn},qn}();Kn.implement(Hn.prototype,Xn),Mn.Decorator=Hn}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(kn,Mn,Yn){var Wn=kn("./lib/oop"),Kn=kn("./lib/dom"),Xn=kn("./lib/lang"),Hn=kn("./config"),qn=kn("./layer/gutter").Gutter,In=kn("./layer/marker").Marker,Dn=kn("./layer/text").Text,Pn=kn("./layer/cursor").Cursor,Bn=kn("./scrollbar").HScrollBar,Nn=kn("./scrollbar").VScrollBar,zn=kn("./scrollbar_custom").HScrollBar,Qn=kn("./scrollbar_custom").VScrollBar,Jn=kn("./renderloop").RenderLoop,ti=kn("./layer/font_metrics").FontMetrics,vi=kn("./lib/event_emitter").EventEmitter,pi=kn("./css/editor-css"),si=kn("./layer/decorators").Decorator,ei=kn("./lib/useragent"),mi=kn("./layer/text_util").isTextToken;Kn.importCssString(pi,"ace_editor.css",!1);var fi=function(){function yi(gi,xi){var ai=this;this.container=gi||Kn.createElement("div"),Kn.addCssClass(this.container,"ace_editor"),Kn.HI_DPI&&Kn.addCssClass(this.container,"ace_hidpi"),this.setTheme(xi),Hn.get("useStrictCSP")==null&&Hn.set("useStrictCSP",!1),this.$gutter=Kn.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=Kn.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=Kn.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new qn(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new In(this.content);var oi=this.$textLayer=new Dn(this.content);this.canvas=oi.element,this.$markerFront=new In(this.content),this.$cursorLayer=new Pn(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new Nn(this.container,this),this.scrollBarH=new Bn(this.container,this),this.scrollBarV.on("scroll",function(li){ai.$scrollAnimation||ai.session.setScrollTop(li.data-ai.scrollMargin.top)}),this.scrollBarH.on("scroll",function(li){ai.$scrollAnimation||ai.session.setScrollLeft(li.data-ai.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new ti(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(li){ai.updateCharacterSize(),ai.onResize(!0,ai.gutterWidth,ai.$size.width,ai.$size.height),ai._signal("changeCharacterSize",li)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!ei.isIOS,this.$loop=new Jn(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),Hn.resetOptions(this),Hn._signal("renderer",this)}return yi.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),Kn.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},yi.prototype.setSession=function(gi){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=gi,gi&&this.scrollMargin.top&&gi.getScrollTop()<=0&&gi.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(gi),this.$markerBack.setSession(gi),this.$markerFront.setSession(gi),this.$gutterLayer.setSession(gi),this.$textLayer.setSession(gi),gi&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},yi.prototype.updateLines=function(gi,xi,ai){if(xi===void 0&&(xi=1/0),this.$changedLines?(this.$changedLines.firstRow>gi&&(this.$changedLines.firstRow=gi),this.$changedLines.lastRow<xi&&(this.$changedLines.lastRow=xi)):this.$changedLines={firstRow:gi,lastRow:xi},this.$changedLines.lastRow<this.layerConfig.firstRow)if(ai)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},yi.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},yi.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},yi.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},yi.prototype.updateFull=function(gi){gi?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},yi.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},yi.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},yi.prototype.onResize=function(gi,xi,ai,oi){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=gi?1:0;var li=this.container;oi||(oi=li.clientHeight||li.scrollHeight),!oi&&this.$maxLines&&this.lineHeight>1&&(!li.style.height||li.style.height=="0px")&&(li.style.height="1px",oi=li.clientHeight||li.scrollHeight),ai||(ai=li.clientWidth||li.scrollWidth);var wi=this.$updateCachedSize(gi,xi,ai,oi);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!ai&&!oi)return this.resizing=0;gi&&(this.$gutterLayer.$padding=null),gi?this.$renderChanges(wi|this.$changes,!0):this.$loop.schedule(wi|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},yi.prototype.$updateCachedSize=function(gi,xi,ai,oi){oi-=this.$extraHeight||0;var li=0,wi=this.$size,bi={width:wi.width,height:wi.height,scrollerHeight:wi.scrollerHeight,scrollerWidth:wi.scrollerWidth};if(oi&&(gi||wi.height!=oi)&&(wi.height=oi,li|=this.CHANGE_SIZE,wi.scrollerHeight=wi.height,this.$horizScroll&&(wi.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(wi.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",li=li|this.CHANGE_SCROLL),ai&&(gi||wi.width!=ai)){li|=this.CHANGE_SIZE,wi.width=ai,xi==null&&(xi=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=xi,Kn.setStyle(this.scrollBarH.element.style,"left",xi+"px"),Kn.setStyle(this.scroller.style,"left",xi+this.margin.left+"px"),wi.scrollerWidth=Math.max(0,ai-xi-this.scrollBarV.getWidth()-this.margin.h),Kn.setStyle(this.$gutter.style,"left",this.margin.left+"px");var _i=this.scrollBarV.getWidth()+"px";Kn.setStyle(this.scrollBarH.element.style,"right",_i),Kn.setStyle(this.scroller.style,"right",_i),Kn.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(wi.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||gi)&&(li|=this.CHANGE_FULL)}return wi.$dirty=!ai||!oi,li&&this._signal("resize",bi),li},yi.prototype.onGutterResize=function(gi){var xi=this.$showGutter?gi:0;xi!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,xi,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},yi.prototype.adjustWrapLimit=function(){var gi=this.$size.scrollerWidth-this.$padding*2,xi=Math.floor(gi/this.characterWidth);return this.session.adjustWrapLimit(xi,this.$showPrintMargin&&this.$printMarginColumn)},yi.prototype.setAnimatedScroll=function(gi){this.setOption("animatedScroll",gi)},yi.prototype.getAnimatedScroll=function(){return this.$animatedScroll},yi.prototype.setShowInvisibles=function(gi){this.setOption("showInvisibles",gi),this.session.$bidiHandler.setShowInvisibles(gi)},yi.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},yi.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},yi.prototype.setDisplayIndentGuides=function(gi){this.setOption("displayIndentGuides",gi)},yi.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},yi.prototype.setHighlightIndentGuides=function(gi){this.setOption("highlightIndentGuides",gi)},yi.prototype.setShowPrintMargin=function(gi){this.setOption("showPrintMargin",gi)},yi.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},yi.prototype.setPrintMarginColumn=function(gi){this.setOption("printMarginColumn",gi)},yi.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},yi.prototype.getShowGutter=function(){return this.getOption("showGutter")},yi.prototype.setShowGutter=function(gi){return this.setOption("showGutter",gi)},yi.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},yi.prototype.setFadeFoldWidgets=function(gi){this.setOption("fadeFoldWidgets",gi)},yi.prototype.setHighlightGutterLine=function(gi){this.setOption("highlightGutterLine",gi)},yi.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},yi.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var gi=Kn.createElement("div");gi.className="ace_layer ace_print-margin-layer",this.$printMarginEl=Kn.createElement("div"),this.$printMarginEl.className="ace_print-margin",gi.appendChild(this.$printMarginEl),this.content.insertBefore(gi,this.content.firstChild)}var xi=this.$printMarginEl.style;xi.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",xi.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},yi.prototype.getContainerElement=function(){return this.container},yi.prototype.getMouseEventTarget=function(){return this.scroller},yi.prototype.getTextAreaContainer=function(){return this.container},yi.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var gi=this.textarea.style,xi=this.$composition;if(!this.$keepTextAreaAtCursor&&!xi){Kn.translate(this.textarea,-100,0);return}var ai=this.$cursorLayer.$pixelPos;if(ai){xi&&xi.markerRange&&(ai=this.$cursorLayer.getPixelPosition(xi.markerRange.start,!0));var oi=this.layerConfig,li=ai.top,wi=ai.left;li-=oi.offset;var bi=xi&&xi.useTextareaForIME||ei.isMobile?this.lineHeight:1;if(li<0||li>oi.height-bi){Kn.translate(this.textarea,0,0);return}var _i=1,Ti=this.$size.height-bi;if(!xi)li+=this.lineHeight;else if(xi.useTextareaForIME){var Li=this.textarea.value;_i=this.characterWidth*this.session.$getStringScreenWidth(Li)[0]}else li+=this.lineHeight+2;wi-=this.scrollLeft,wi>this.$size.scrollerWidth-_i&&(wi=this.$size.scrollerWidth-_i),wi+=this.gutterWidth+this.margin.left,Kn.setStyle(gi,"height",bi+"px"),Kn.setStyle(gi,"width",_i+"px"),Kn.translate(this.textarea,Math.min(wi,this.$size.scrollerWidth-_i),Math.min(li,Ti))}}},yi.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},yi.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},yi.prototype.getLastFullyVisibleRow=function(){var gi=this.layerConfig,xi=gi.lastRow,ai=this.session.documentToScreenRow(xi,0)*gi.lineHeight;return ai-this.session.getScrollTop()>gi.height-gi.lineHeight?xi-1:xi},yi.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},yi.prototype.setPadding=function(gi){this.$padding=gi,this.$textLayer.setPadding(gi),this.$cursorLayer.setPadding(gi),this.$markerFront.setPadding(gi),this.$markerBack.setPadding(gi),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},yi.prototype.setScrollMargin=function(gi,xi,ai,oi){var li=this.scrollMargin;li.top=gi|0,li.bottom=xi|0,li.right=oi|0,li.left=ai|0,li.v=li.top+li.bottom,li.h=li.left+li.right,li.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-li.top),this.updateFull()},yi.prototype.setMargin=function(gi,xi,ai,oi){var li=this.margin;li.top=gi|0,li.bottom=xi|0,li.right=oi|0,li.left=ai|0,li.v=li.top+li.bottom,li.h=li.left+li.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},yi.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},yi.prototype.setHScrollBarAlwaysVisible=function(gi){this.setOption("hScrollBarAlwaysVisible",gi)},yi.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},yi.prototype.setVScrollBarAlwaysVisible=function(gi){this.setOption("vScrollBarAlwaysVisible",gi)},yi.prototype.$updateScrollBarV=function(){var gi=this.layerConfig.maxHeight,xi=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(gi-=(xi-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>gi-xi&&(gi=this.scrollTop+xi,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(gi+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},yi.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},yi.prototype.freeze=function(){this.$frozen=!0},yi.prototype.unfreeze=function(){this.$frozen=!1},yi.prototype.$renderChanges=function(gi,xi){if(this.$changes&&(gi|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!gi&&!xi){this.$changes|=gi;return}if(this.$size.$dirty)return this.$changes|=gi,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",gi),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var ai=this.layerConfig;if(gi&this.CHANGE_FULL||gi&this.CHANGE_SIZE||gi&this.CHANGE_TEXT||gi&this.CHANGE_LINES||gi&this.CHANGE_SCROLL||gi&this.CHANGE_H_SCROLL){if(gi|=this.$computeLayerConfig()|this.$loop.clear(),ai.firstRow!=this.layerConfig.firstRow&&ai.firstRowScreen==this.layerConfig.firstRowScreen){var oi=this.scrollTop+(ai.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;oi>0&&(this.scrollTop=oi,gi=gi|this.CHANGE_SCROLL,gi|=this.$computeLayerConfig()|this.$loop.clear())}ai=this.layerConfig,this.$updateScrollBarV(),gi&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),Kn.translate(this.content,-this.scrollLeft,-ai.offset);var li=ai.width+2*this.$padding+"px",wi=ai.minHeight+"px";Kn.setStyle(this.content.style,"width",li),Kn.setStyle(this.content.style,"height",wi)}if(gi&this.CHANGE_H_SCROLL&&(Kn.translate(this.content,-this.scrollLeft,-ai.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),gi&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(ai),this.$showGutter&&this.$gutterLayer.update(ai),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ai),this.$markerBack.update(ai),this.$markerFront.update(ai),this.$cursorLayer.update(ai),this.$moveTextAreaToCursor(),this._signal("afterRender",gi);return}if(gi&this.CHANGE_SCROLL){this.$changedLines=null,gi&this.CHANGE_TEXT||gi&this.CHANGE_LINES?this.$textLayer.update(ai):this.$textLayer.scrollLines(ai),this.$showGutter&&(gi&this.CHANGE_GUTTER||gi&this.CHANGE_LINES?this.$gutterLayer.update(ai):this.$gutterLayer.scrollLines(ai)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ai),this.$markerBack.update(ai),this.$markerFront.update(ai),this.$cursorLayer.update(ai),this.$moveTextAreaToCursor(),this._signal("afterRender",gi);return}gi&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(ai),this.$showGutter&&this.$gutterLayer.update(ai),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ai)):gi&this.CHANGE_LINES?((this.$updateLines()||gi&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(ai),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ai)):gi&this.CHANGE_TEXT||gi&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(ai),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ai)):gi&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(ai),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ai)),gi&this.CHANGE_CURSOR&&(this.$cursorLayer.update(ai),this.$moveTextAreaToCursor()),gi&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(ai),gi&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(ai),this._signal("afterRender",gi)},yi.prototype.$autosize=function(){var gi=this.session.getScreenLength()*this.lineHeight,xi=this.$maxLines*this.lineHeight,ai=Math.min(xi,Math.max((this.$minLines||1)*this.lineHeight,gi))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(ai+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&ai>this.$maxPixelHeight&&(ai=this.$maxPixelHeight);var oi=ai<=2*this.lineHeight,li=!oi&&gi>xi;if(ai!=this.desiredHeight||this.$size.height!=this.desiredHeight||li!=this.$vScroll){li!=this.$vScroll&&(this.$vScroll=li,this.scrollBarV.setVisible(li));var wi=this.container.clientWidth;this.container.style.height=ai+"px",this.$updateCachedSize(!0,this.$gutterWidth,wi,ai),this.desiredHeight=ai,this._signal("autosize")}},yi.prototype.$computeLayerConfig=function(){var gi=this.session,xi=this.$size,ai=xi.height<=2*this.lineHeight,oi=this.session.getScreenLength(),li=oi*this.lineHeight,wi=this.$getLongestLine(),bi=!ai&&(this.$hScrollBarAlwaysVisible||xi.scrollerWidth-wi-2*this.$padding<0),_i=this.$horizScroll!==bi;_i&&(this.$horizScroll=bi,this.scrollBarH.setVisible(bi));var Ti=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Li=xi.scrollerHeight+this.lineHeight,Ri=!this.$maxLines&&this.$scrollPastEnd?(xi.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;li+=Ri;var Ii=this.scrollMargin;this.session.setScrollTop(Math.max(-Ii.top,Math.min(this.scrollTop,li-xi.scrollerHeight+Ii.bottom))),this.session.setScrollLeft(Math.max(-Ii.left,Math.min(this.scrollLeft,wi+2*this.$padding-xi.scrollerWidth+Ii.right)));var zi=!ai&&(this.$vScrollBarAlwaysVisible||xi.scrollerHeight-li+Ri<0||this.scrollTop>Ii.top),Oi=Ti!==zi;Oi&&(this.$vScroll=zi,this.scrollBarV.setVisible(zi));var Bi=this.scrollTop%this.lineHeight,Yi=Math.ceil(Li/this.lineHeight)-1,Fi=Math.max(0,Math.round((this.scrollTop-Bi)/this.lineHeight)),Qi=Fi+Yi,pr,fr,ar=this.lineHeight;Fi=gi.screenToDocumentRow(Fi,0);var yr=gi.getFoldLine(Fi);yr&&(Fi=yr.start.row),pr=gi.documentToScreenRow(Fi,0),fr=gi.getRowLength(Fi)*ar,Qi=Math.min(gi.screenToDocumentRow(Qi,0),gi.getLength()-1),Li=xi.scrollerHeight+gi.getRowLength(Qi)*ar+fr,Bi=this.scrollTop-pr*ar;var ro=0;return(this.layerConfig.width!=wi||_i)&&(ro=this.CHANGE_H_SCROLL),(_i||Oi)&&(ro|=this.$updateCachedSize(!0,this.gutterWidth,xi.width,xi.height),this._signal("scrollbarVisibilityChanged"),Oi&&(wi=this.$getLongestLine())),this.layerConfig={width:wi,padding:this.$padding,firstRow:Fi,firstRowScreen:pr,lastRow:Qi,lineHeight:ar,characterWidth:this.characterWidth,minHeight:Li,maxHeight:li,offset:Bi,gutterOffset:ar?Math.max(0,Math.ceil((Bi+xi.height-xi.scrollerHeight)/ar)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(wi-this.$padding),ro},yi.prototype.$updateLines=function(){if(this.$changedLines){var gi=this.$changedLines.firstRow,xi=this.$changedLines.lastRow;this.$changedLines=null;var ai=this.layerConfig;if(!(gi>ai.lastRow+1)&&!(xi<ai.firstRow)){if(xi===1/0){this.$showGutter&&this.$gutterLayer.update(ai),this.$textLayer.update(ai);return}return this.$textLayer.updateLines(ai,gi,xi),!0}}},yi.prototype.$getLongestLine=function(){var gi=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(gi+=1),this.$textLayer&&gi>this.$textLayer.MAX_LINE_LENGTH&&(gi=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(gi*this.characterWidth))},yi.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},yi.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},yi.prototype.addGutterDecoration=function(gi,xi){this.$gutterLayer.addGutterDecoration(gi,xi)},yi.prototype.removeGutterDecoration=function(gi,xi){this.$gutterLayer.removeGutterDecoration(gi,xi)},yi.prototype.updateBreakpoints=function(gi){this._rows=gi,this.$loop.schedule(this.CHANGE_GUTTER)},yi.prototype.setAnnotations=function(gi){this.$gutterLayer.setAnnotations(gi),this.$loop.schedule(this.CHANGE_GUTTER)},yi.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},yi.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},yi.prototype.showCursor=function(){this.$cursorLayer.showCursor()},yi.prototype.scrollSelectionIntoView=function(gi,xi,ai){this.scrollCursorIntoView(gi,ai),this.scrollCursorIntoView(xi,ai)},yi.prototype.scrollCursorIntoView=function(gi,xi,ai){if(this.$size.scrollerHeight!==0){var oi=this.$cursorLayer.getPixelPosition(gi),li=oi.left,wi=oi.top,bi=ai&&ai.top||0,_i=ai&&ai.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var Ti=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;Ti+bi>wi?(xi&&Ti+bi>wi+this.lineHeight&&(wi-=xi*this.$size.scrollerHeight),wi===0&&(wi=-this.scrollMargin.top),this.session.setScrollTop(wi)):Ti+this.$size.scrollerHeight-_i<wi+this.lineHeight&&(xi&&Ti+this.$size.scrollerHeight-_i<wi-this.lineHeight&&(wi+=xi*this.$size.scrollerHeight),this.session.setScrollTop(wi+this.lineHeight+_i-this.$size.scrollerHeight));var Li=this.scrollLeft,Ri=2*this.layerConfig.characterWidth;li-Ri<Li?(li-=Ri,li<this.$padding+Ri&&(li=-this.scrollMargin.left),this.session.setScrollLeft(li)):(li+=Ri,Li+this.$size.scrollerWidth<li+this.characterWidth?this.session.setScrollLeft(Math.round(li+this.characterWidth-this.$size.scrollerWidth)):Li<=this.$padding&&li-Li<this.characterWidth&&this.session.setScrollLeft(0))}},yi.prototype.getScrollTop=function(){return this.session.getScrollTop()},yi.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},yi.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},yi.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},yi.prototype.scrollToRow=function(gi){this.session.setScrollTop(gi*this.lineHeight)},yi.prototype.alignCursor=function(gi,xi){typeof gi=="number"&&(gi={row:gi,column:0});var ai=this.$cursorLayer.getPixelPosition(gi),oi=this.$size.scrollerHeight-this.lineHeight,li=ai.top-oi*(xi||0);return this.session.setScrollTop(li),li},yi.prototype.$calcSteps=function(gi,xi){var ai=0,oi=this.STEPS,li=[],wi=function(bi,_i,Ti){return Ti*(Math.pow(bi-1,3)+1)+_i};for(ai=0;ai<oi;++ai)li.push(wi(ai/this.STEPS,gi,xi-gi));return li},yi.prototype.scrollToLine=function(gi,xi,ai,oi){var li=this.$cursorLayer.getPixelPosition({row:gi,column:0}),wi=li.top;xi&&(wi-=this.$size.scrollerHeight/2);var bi=this.scrollTop;this.session.setScrollTop(wi),ai!==!1&&this.animateScrolling(bi,oi)},yi.prototype.animateScrolling=function(gi,xi){var ai=this.scrollTop;if(!this.$animatedScroll)return;var oi=this;if(gi==ai)return;if(this.$scrollAnimation){var li=this.$scrollAnimation.steps;if(li.length&&(gi=li[0],gi==ai))return}var wi=oi.$calcSteps(gi,ai);this.$scrollAnimation={from:gi,to:ai,steps:wi},clearInterval(this.$timer),oi.session.setScrollTop(wi.shift()),oi.session.$scrollTop=ai;function bi(){oi.$timer=clearInterval(oi.$timer),oi.$scrollAnimation=null,oi.$stopAnimation=!1,xi&&xi()}this.$timer=setInterval(function(){if(oi.$stopAnimation){bi();return}if(!oi.session)return clearInterval(oi.$timer);wi.length?(oi.session.setScrollTop(wi.shift()),oi.session.$scrollTop=ai):ai!=null?(oi.session.$scrollTop=-1,oi.session.setScrollTop(ai),ai=null):bi()},10)},yi.prototype.scrollToY=function(gi){this.scrollTop!==gi&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=gi)},yi.prototype.scrollToX=function(gi){this.scrollLeft!==gi&&(this.scrollLeft=gi),this.$loop.schedule(this.CHANGE_H_SCROLL)},yi.prototype.scrollTo=function(gi,xi){this.session.setScrollTop(xi),this.session.setScrollLeft(gi)},yi.prototype.scrollBy=function(gi,xi){xi&&this.session.setScrollTop(this.session.getScrollTop()+xi),gi&&this.session.setScrollLeft(this.session.getScrollLeft()+gi)},yi.prototype.isScrollableBy=function(gi,xi){if(xi<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||xi>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||gi<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||gi>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},yi.prototype.pixelToScreenCoordinates=function(gi,xi){var ai;if(this.$hasCssTransforms){ai={top:0,left:0};var oi=this.$fontMetrics.transformCoordinates([gi,xi]);gi=oi[1]-this.gutterWidth-this.margin.left,xi=oi[0]}else ai=this.scroller.getBoundingClientRect();var li=gi+this.scrollLeft-ai.left-this.$padding,wi=li/this.characterWidth,bi=Math.floor((xi+this.scrollTop-ai.top)/this.lineHeight),_i=this.$blockCursor?Math.floor(wi):Math.round(wi);return{row:bi,column:_i,side:wi-_i>0?1:-1,offsetX:li}},yi.prototype.screenToTextCoordinates=function(gi,xi){var ai;if(this.$hasCssTransforms){ai={top:0,left:0};var oi=this.$fontMetrics.transformCoordinates([gi,xi]);gi=oi[1]-this.gutterWidth-this.margin.left,xi=oi[0]}else ai=this.scroller.getBoundingClientRect();var li=gi+this.scrollLeft-ai.left-this.$padding,wi=li/this.characterWidth,bi=this.$blockCursor?Math.floor(wi):Math.round(wi),_i=Math.floor((xi+this.scrollTop-ai.top)/this.lineHeight);return this.session.screenToDocumentPosition(_i,Math.max(bi,0),li)},yi.prototype.textToScreenCoordinates=function(gi,xi){var ai=this.scroller.getBoundingClientRect(),oi=this.session.documentToScreenPosition(gi,xi),li=this.$padding+(this.session.$bidiHandler.isBidiRow(oi.row,gi)?this.session.$bidiHandler.getPosLeft(oi.column):Math.round(oi.column*this.characterWidth)),wi=oi.row*this.lineHeight;return{pageX:ai.left+li-this.scrollLeft,pageY:ai.top+wi-this.scrollTop}},yi.prototype.visualizeFocus=function(){Kn.addCssClass(this.container,"ace_focus")},yi.prototype.visualizeBlur=function(){Kn.removeCssClass(this.container,"ace_focus")},yi.prototype.showComposition=function(gi){this.$composition=gi,gi.cssText||(gi.cssText=this.textarea.style.cssText),gi.useTextareaForIME==null&&(gi.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(Kn.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):gi.markerId=this.session.addMarker(gi.markerRange,"ace_composition_marker","text")},yi.prototype.setCompositionText=function(gi){var xi=this.session.selection.cursor;this.addToken(gi,"composition_placeholder",xi.row,xi.column),this.$moveTextAreaToCursor()},yi.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),Kn.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var gi=this.session.selection.cursor;this.removeExtraToken(gi.row,gi.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},yi.prototype.setGhostText=function(gi,xi){var ai=this.session.selection.cursor,oi=xi||{row:ai.row,column:ai.column};this.removeGhostText();var li=this.$calculateWrappedTextChunks(gi,oi);this.addToken(li[0].text,"ghost_text",oi.row,oi.column),this.$ghostText={text:gi,position:{row:oi.row,column:oi.column}};var wi=Kn.createElement("div");if(li.length>1){var bi=this.hideTokensAfterPosition(oi.row,oi.column),_i;li.slice(1).forEach(function(Oi){var Bi=Kn.createElement("div"),Yi=Kn.createElement("span");Yi.className="ace_ghost_text",Oi.wrapped&&(Bi.className="ghost_text_line_wrapped"),Oi.text.length===0&&(Oi.text=" "),Yi.appendChild(Kn.createTextNode(Oi.text)),Bi.appendChild(Yi),wi.appendChild(Bi),_i=Bi}),bi.forEach(function(Oi){var Bi=Kn.createElement("span");mi(Oi.type)||(Bi.className="ace_"+Oi.type.replace(/\./g," ace_")),Bi.appendChild(Kn.createTextNode(Oi.value)),_i.appendChild(Bi)}),this.$ghostTextWidget={el:wi,row:oi.row,column:oi.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var Ti=this.$cursorLayer.getPixelPosition(oi,!0),Li=this.container,Ri=Li.getBoundingClientRect().height,Ii=li.length*this.lineHeight,zi=Ii<Ri-Ti.top;if(zi)return;Ii<Ri?this.scrollBy(0,(li.length-1)*this.lineHeight):this.scrollToRow(oi.row)}},yi.prototype.$calculateWrappedTextChunks=function(gi,xi){var ai=this.$size.scrollerWidth-this.$padding*2,oi=Math.floor(ai/this.characterWidth)-2;oi=oi<=0?60:oi;for(var li=gi.split(/\r?\n/),wi=[],bi=0;bi<li.length;bi++){var _i=this.session.$getDisplayTokens(li[bi],xi.column),Ti=this.session.$computeWrapSplits(_i,oi,this.session.$tabSize);if(Ti.length>0){var Li=0;Ti.push(li[bi].length);for(var Ri=0;Ri<Ti.length;Ri++){var Ii=li[bi].slice(Li,Ti[Ri]);wi.push({text:Ii,wrapped:!0}),Li=Ti[Ri]}}else wi.push({text:li[bi],wrapped:!1})}return wi},yi.prototype.removeGhostText=function(){if(this.$ghostText){var gi=this.$ghostText.position;this.removeExtraToken(gi.row,gi.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},yi.prototype.addToken=function(gi,xi,ai,oi){var li=this.session;li.bgTokenizer.lines[ai]=null;var wi={type:xi,value:gi},bi=li.getTokens(ai);if(oi==null||!bi.length)bi.push(wi);else for(var _i=0,Ti=0;Ti<bi.length;Ti++){var Li=bi[Ti];if(_i+=Li.value.length,oi<=_i){var Ri=Li.value.length-(_i-oi),Ii=Li.value.slice(0,Ri),zi=Li.value.slice(Ri);bi.splice(Ti,1,{type:Li.type,value:Ii},wi,{type:Li.type,value:zi});break}}this.updateLines(ai,ai)},yi.prototype.hideTokensAfterPosition=function(gi,xi){for(var ai=this.session.getTokens(gi),oi=0,li=!1,wi=[],bi=0;bi<ai.length;bi++){var _i=ai[bi];if(oi+=_i.value.length,_i.type!=="ghost_text"){if(li){wi.push({type:_i.type,value:_i.value}),_i.type="hidden_token";continue}oi===xi&&(li=!0)}}return this.updateLines(gi,gi),wi},yi.prototype.removeExtraToken=function(gi,xi){this.session.bgTokenizer.lines[gi]=null,this.updateLines(gi,gi)},yi.prototype.setTheme=function(gi,xi){var ai=this;if(this.$themeId=gi,ai._dispatchEvent("themeChange",{theme:gi}),!gi||typeof gi=="string"){var oi=gi||this.$options.theme.initialValue;Hn.loadModule(["theme",oi],li)}else li(gi);function li(wi){if(ai.$themeId!=gi)return xi&&xi();if(!wi||!wi.cssClass)throw new Error("couldn't load module "+gi+" or it didn't call define");wi.$id&&(ai.$themeId=wi.$id),Kn.importCssString(wi.cssText,wi.cssClass,ai.container),ai.theme&&Kn.removeCssClass(ai.container,ai.theme.cssClass);var bi="padding"in wi?wi.padding:"padding"in(ai.theme||{})?4:ai.$padding;ai.$padding&&bi!=ai.$padding&&ai.setPadding(bi),ai.$theme=wi.cssClass,ai.theme=wi,Kn.addCssClass(ai.container,wi.cssClass),Kn.setCssClass(ai.container,"ace_dark",wi.isDark),ai.$size&&(ai.$size.width=0,ai.$updateSizeAsync()),ai._dispatchEvent("themeLoaded",{theme:wi}),xi&&xi(),ei.isSafari&&ai.scroller&&(ai.scroller.style.background="red",ai.scroller.style.background="")}},yi.prototype.getTheme=function(){return this.$themeId},yi.prototype.setStyle=function(gi,xi){Kn.setCssClass(this.container,gi,xi!==!1)},yi.prototype.unsetStyle=function(gi){Kn.removeCssClass(this.container,gi)},yi.prototype.setCursorStyle=function(gi){Kn.setStyle(this.scroller.style,"cursor",gi)},yi.prototype.setMouseCursor=function(gi){Kn.setStyle(this.scroller.style,"cursor",gi)},yi.prototype.attachToShadowRoot=function(){Kn.importCssString(pi,"ace_editor.css",this.container)},yi.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},yi.prototype.$updateCustomScrollbar=function(gi){var xi=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,gi===!0?(this.scrollBarV=new Qn(this.container,this),this.scrollBarH=new zn(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(ai){xi.$scrollAnimation||xi.session.setScrollTop(ai.data-xi.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(ai){xi.$scrollAnimation||xi.session.setScrollLeft(ai.data-xi.scrollMargin.left)}),this.$scrollDecorator=new si(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new Nn(this.container,this),this.scrollBarH=new Bn(this.container,this),this.scrollBarV.addEventListener("scroll",function(ai){xi.$scrollAnimation||xi.session.setScrollTop(ai.data-xi.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(ai){xi.$scrollAnimation||xi.session.setScrollLeft(ai.data-xi.scrollMargin.left)}))},yi.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var gi=this;this.$resizeTimer=Xn.delayedCall(function(){gi.destroyed||gi.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(xi){var ai=xi[0].contentRect.width,oi=xi[0].contentRect.height;Math.abs(gi.$size.width-ai)>1||Math.abs(gi.$size.height-oi)>1?gi.$resizeTimer.delay():gi.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},yi}();fi.prototype.CHANGE_CURSOR=1,fi.prototype.CHANGE_MARKER=2,fi.prototype.CHANGE_GUTTER=4,fi.prototype.CHANGE_SCROLL=8,fi.prototype.CHANGE_LINES=16,fi.prototype.CHANGE_TEXT=32,fi.prototype.CHANGE_SIZE=64,fi.prototype.CHANGE_MARKER_BACK=128,fi.prototype.CHANGE_MARKER_FRONT=256,fi.prototype.CHANGE_FULL=512,fi.prototype.CHANGE_H_SCROLL=1024,fi.prototype.$changes=0,fi.prototype.$padding=null,fi.prototype.$frozen=!1,fi.prototype.STEPS=8,Wn.implement(fi.prototype,vi),Hn.defineOptions(fi.prototype,"renderer",{useResizeObserver:{set:function(yi){!yi&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):yi&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(yi){this.$textLayer.setShowInvisibles(yi)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(yi){typeof yi=="number"&&(this.$printMarginColumn=yi),this.$showPrintMargin=!!yi,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(yi){this.$gutter.style.display=yi?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(yi){this.$gutterLayer.$useSvgGutterIcons=yi},initialValue:!1},showFoldedAnnotations:{set:function(yi){this.$gutterLayer.$showFoldedAnnotations=yi},initialValue:!1},fadeFoldWidgets:{set:function(yi){Kn.setCssClass(this.$gutter,"ace_fade-fold-widgets",yi)},initialValue:!1},showFoldWidgets:{set:function(yi){this.$gutterLayer.setShowFoldWidgets(yi),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(yi){this.$textLayer.setDisplayIndentGuides(yi)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(yi){this.$textLayer.setHighlightIndentGuides(yi)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(yi){this.$gutterLayer.setHighlightGutterLine(yi),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(yi){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(yi){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(yi){typeof yi=="number"&&(yi=yi+"px"),this.container.style.fontSize=yi,this.updateFontSize()},initialValue:12},fontFamily:{set:function(yi){this.container.style.fontFamily=yi,this.updateFontSize()}},maxLines:{set:function(yi){this.updateFull()}},minLines:{set:function(yi){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(yi){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(yi){yi=+yi||0,this.$scrollPastEnd!=yi&&(this.$scrollPastEnd=yi,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(yi){this.$gutterLayer.$fixedWidth=!!yi,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(yi){this.$updateCustomScrollbar(yi)},initialValue:!1},theme:{set:function(yi){this.setTheme(yi)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!ei.isMobile&&!ei.isIE}}),Mn.VirtualRenderer=fi}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("../lib/net"),Xn=kn("../lib/event_emitter").EventEmitter,Hn=kn("../config");function qn(Bn){var Nn="importScripts('"+Kn.qualifyURL(Bn)+"');";try{return new Blob([Nn],{type:"application/javascript"})}catch{var zn=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,Qn=new zn;return Qn.append(Nn),Qn.getBlob("application/javascript")}}function In(Bn){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(Hn.get("loadWorkerFromBlob")){var Nn=qn(Bn),zn=window.URL||window.webkitURL,Qn=zn.createObjectURL(Nn);return new Worker(Qn)}return new Worker(Bn)}var Dn=function(Bn){Bn.postMessage||(Bn=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=Bn,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){Wn.implement(this,Xn),this.$createWorkerFromOldConfig=function(Bn,Nn,zn,Qn,Jn){if(kn.nameToUrl&&!kn.toUrl&&(kn.toUrl=kn.nameToUrl),Hn.get("packaged")||!kn.toUrl)Qn=Qn||Hn.moduleUrl(Nn,"worker");else{var ti=this.$normalizePath;Qn=Qn||ti(kn.toUrl("ace/worker/worker.js",null,"_"));var vi={};Bn.forEach(function(pi){vi[pi]=ti(kn.toUrl(pi,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=In(Qn),Jn&&this.send("importScripts",Jn),this.$worker.postMessage({init:!0,tlns:vi,module:Nn,classname:zn}),this.$worker},this.onMessage=function(Bn){var Nn=Bn.data;switch(Nn.type){case"event":this._signal(Nn.name,{data:Nn.data});break;case"call":var zn=this.callbacks[Nn.id];zn&&(zn(Nn.data),delete this.callbacks[Nn.id]);break;case"error":this.reportError(Nn.data);break;case"log":window.console&&console.log&&console.log.apply(console,Nn.data);break}},this.reportError=function(Bn){window.console&&console.error&&console.error(Bn)},this.$normalizePath=function(Bn){return Kn.qualifyURL(Bn)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(Bn){Bn.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(Bn,Nn){this.$worker.postMessage({command:Bn,args:Nn})},this.call=function(Bn,Nn,zn){if(zn){var Qn=this.callbackId++;this.callbacks[Qn]=zn,Nn.push(Qn)}this.send(Bn,Nn)},this.emit=function(Bn,Nn){try{Nn.data&&Nn.data.err&&(Nn.data.err={message:Nn.data.err.message,stack:Nn.data.err.stack,code:Nn.data.err.code}),this.$worker&&this.$worker.postMessage({event:Bn,data:{data:Nn.data}})}catch(zn){console.error(zn.stack)}},this.attachToDocument=function(Bn){this.$doc&&this.terminate(),this.$doc=Bn,this.call("setValue",[Bn.getValue()]),Bn.on("change",this.changeListener,!0)},this.changeListener=function(Bn){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),Bn.action=="insert"?this.deltaQueue.push(Bn.start,Bn.lines):this.deltaQueue.push(Bn.start,Bn.end)},this.$sendDeltaQueue=function(){var Bn=this.deltaQueue;Bn&&(this.deltaQueue=null,Bn.length>50&&Bn.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:Bn}))}}).call(Dn.prototype);var Pn=function(Bn,Nn,zn){var Qn=null,Jn=!1,ti=Object.create(Xn),vi=[],pi=new Dn({messageBuffer:vi,terminate:function(){},postMessage:function(ei){vi.push(ei),Qn&&(Jn?setTimeout(si):si())}});pi.setEmitSync=function(ei){Jn=ei};var si=function(){var ei=vi.shift();ei.command?Qn[ei.command].apply(Qn,ei.args):ei.event&&ti._signal(ei.event,ei.data)};return ti.postMessage=function(ei){pi.onMessage({data:ei})},ti.callback=function(ei,mi){this.postMessage({type:"call",id:mi,data:ei})},ti.emit=function(ei,mi){this.postMessage({type:"event",name:ei,data:mi})},Hn.loadModule(["worker",Nn],function(ei){for(Qn=new ei[zn](ti);vi.length;)si()}),pi};Mn.UIWorkerClient=Pn,Mn.WorkerClient=Dn,Mn.createWorker=In}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(kn,Mn,Yn){var Wn=kn("./range").Range,Kn=kn("./lib/event_emitter").EventEmitter,Xn=kn("./lib/oop"),Hn=function(){function qn(In,Dn,Pn,Bn,Nn,zn){var Qn=this;this.length=Dn,this.session=In,this.doc=In.getDocument(),this.mainClass=Nn,this.othersClass=zn,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=Bn,this.$onCursorChange=function(){setTimeout(function(){Qn.onCursorChange()})},this.$pos=Pn;var Jn=In.getUndoManager().$undoStack||In.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=Jn.length,this.setup(),In.selection.on("changeCursor",this.$onCursorChange)}return qn.prototype.setup=function(){var In=this,Dn=this.doc,Pn=this.session;this.selectionBefore=Pn.selection.toJSON(),Pn.selection.inMultiSelectMode&&Pn.selection.toSingleRange(),this.pos=Dn.createAnchor(this.$pos.row,this.$pos.column);var Bn=this.pos;Bn.$insertRight=!0,Bn.detach(),Bn.markerId=Pn.addMarker(new Wn(Bn.row,Bn.column,Bn.row,Bn.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(Nn){var zn=Dn.createAnchor(Nn.row,Nn.column);zn.$insertRight=!0,zn.detach(),In.others.push(zn)}),Pn.setUndoSelect(!1)},qn.prototype.showOtherMarkers=function(){if(!this.othersActive){var In=this.session,Dn=this;this.othersActive=!0,this.others.forEach(function(Pn){Pn.markerId=In.addMarker(new Wn(Pn.row,Pn.column,Pn.row,Pn.column+Dn.length),Dn.othersClass,null,!1)})}},qn.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var In=0;In<this.others.length;In++)this.session.removeMarker(this.others[In].markerId)}},qn.prototype.onUpdate=function(In){if(this.$updating)return this.updateAnchors(In);var Dn=In;if(Dn.start.row===Dn.end.row&&Dn.start.row===this.pos.row){this.$updating=!0;var Pn=In.action==="insert"?Dn.end.column-Dn.start.column:Dn.start.column-Dn.end.column,Bn=Dn.start.column>=this.pos.column&&Dn.start.column<=this.pos.column+this.length+1,Nn=Dn.start.column-this.pos.column;if(this.updateAnchors(In),Bn&&(this.length+=Pn),Bn&&!this.session.$fromUndo){if(In.action==="insert")for(var zn=this.others.length-1;zn>=0;zn--){var Qn=this.others[zn],Jn={row:Qn.row,column:Qn.column+Nn};this.doc.insertMergedLines(Jn,In.lines)}else if(In.action==="remove")for(var zn=this.others.length-1;zn>=0;zn--){var Qn=this.others[zn],Jn={row:Qn.row,column:Qn.column+Nn};this.doc.remove(new Wn(Jn.row,Jn.column,Jn.row,Jn.column-Pn))}}this.$updating=!1,this.updateMarkers()}},qn.prototype.updateAnchors=function(In){this.pos.onChange(In);for(var Dn=this.others.length;Dn--;)this.others[Dn].onChange(In);this.updateMarkers()},qn.prototype.updateMarkers=function(){if(!this.$updating){var In=this,Dn=this.session,Pn=function(Nn,zn){Dn.removeMarker(Nn.markerId),Nn.markerId=Dn.addMarker(new Wn(Nn.row,Nn.column,Nn.row,Nn.column+In.length),zn,null,!1)};Pn(this.pos,this.mainClass);for(var Bn=this.others.length;Bn--;)Pn(this.others[Bn],this.othersClass)}},qn.prototype.onCursorChange=function(In){if(!(this.$updating||!this.session)){var Dn=this.session.selection.getCursor();Dn.row===this.pos.row&&Dn.column>=this.pos.column&&Dn.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",In)):(this.hideOtherMarkers(),this._emit("cursorLeave",In))}},qn.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},qn.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var In=this.session.getUndoManager(),Dn=(In.$undoStack||In.$undostack).length-this.$undoStackDepth,Pn=0;Pn<Dn;Pn++)In.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},qn}();Xn.implement(Hn.prototype,Kn),Mn.PlaceHolder=Hn}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(kn,Mn,Yn){var Wn=kn("../lib/event"),Kn=kn("../lib/useragent");function Xn(qn,In){return qn.row==In.row&&qn.column==In.column}function Hn(qn){var In=qn.domEvent,Dn=In.altKey,Pn=In.shiftKey,Bn=In.ctrlKey,Nn=qn.getAccelKey(),zn=qn.getButton();if(Bn&&Kn.isMac&&(zn=In.button),qn.editor.inMultiSelectMode&&zn==2){qn.editor.textInput.onContextMenu(qn.domEvent);return}if(!Bn&&!Dn&&!Nn){zn===0&&qn.editor.inMultiSelectMode&&qn.editor.exitMultiSelectMode();return}if(zn===0){var Qn=qn.editor,Jn=Qn.selection,ti=Qn.inMultiSelectMode,vi=qn.getDocumentPosition(),pi=Jn.getCursor(),si=qn.inSelection()||Jn.isEmpty()&&Xn(vi,pi),ei=qn.x,mi=qn.y,fi=function(Ii){ei=Ii.clientX,mi=Ii.clientY},yi=Qn.session,gi=Qn.renderer.pixelToScreenCoordinates(ei,mi),xi=gi,ai;if(Qn.$mouseHandler.$enableJumpToDef)Bn&&Dn||Nn&&Dn?ai=Pn?"block":"add":Dn&&Qn.$blockSelectEnabled&&(ai="block");else if(Nn&&!Dn){if(ai="add",!ti&&Pn)return}else Dn&&Qn.$blockSelectEnabled&&(ai="block");if(ai&&Kn.isMac&&In.ctrlKey&&Qn.$mouseHandler.cancelContextMenu(),ai=="add"){if(!ti&&si)return;if(!ti){var oi=Jn.toOrientedRange();Qn.addSelectionMarker(oi)}var li=Jn.rangeList.rangeAtPoint(vi);Qn.inVirtualSelectionMode=!0,Pn&&(li=null,oi=Jn.ranges[0]||oi,Qn.removeSelectionMarker(oi)),Qn.once("mouseup",function(){var Ii=Jn.toOrientedRange();li&&Ii.isEmpty()&&Xn(li.cursor,Ii.cursor)?Jn.substractPoint(Ii.cursor):(Pn?Jn.substractPoint(oi.cursor):oi&&(Qn.removeSelectionMarker(oi),Jn.addRange(oi)),Jn.addRange(Ii)),Qn.inVirtualSelectionMode=!1})}else if(ai=="block"){qn.stop(),Qn.inVirtualSelectionMode=!0;var wi,bi=[],_i=function(){var Ii=Qn.renderer.pixelToScreenCoordinates(ei,mi),zi=yi.screenToDocumentPosition(Ii.row,Ii.column,Ii.offsetX);Xn(xi,Ii)&&Xn(zi,Jn.lead)||(xi=Ii,Qn.selection.moveToPosition(zi),Qn.renderer.scrollCursorIntoView(),Qn.removeSelectionMarkers(bi),bi=Jn.rectangularRangeBlock(xi,gi),Qn.$mouseHandler.$clickSelection&&bi.length==1&&bi[0].isEmpty()&&(bi[0]=Qn.$mouseHandler.$clickSelection.clone()),bi.forEach(Qn.addSelectionMarker,Qn),Qn.updateSelectionMarkers())};ti&&!Nn?Jn.toSingleRange():!ti&&Nn&&(wi=Jn.toOrientedRange(),Qn.addSelectionMarker(wi)),Pn?gi=yi.documentToScreenPosition(Jn.lead):Jn.moveToPosition(vi),xi={row:-1,column:-1};var Ti=function(Ii){_i(),clearInterval(Ri),Qn.removeSelectionMarkers(bi),bi.length||(bi=[Jn.toOrientedRange()]),wi&&(Qn.removeSelectionMarker(wi),Jn.toSingleRange(wi));for(var zi=0;zi<bi.length;zi++)Jn.addRange(bi[zi]);Qn.inVirtualSelectionMode=!1,Qn.$mouseHandler.$clickSelection=null},Li=_i;Wn.capture(Qn.container,fi,Ti);var Ri=setInterval(function(){Li()},20);return qn.preventDefault()}}}Mn.onMouseDown=Hn}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(kn,Mn,Yn){Mn.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(Kn){Kn.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(Kn){Kn.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(Kn){Kn.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(Kn){Kn.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(Kn){Kn.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(Kn){Kn.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(Kn){Kn.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(Kn){Kn.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(Kn){Kn.multiSelect.rangeCount>1?Kn.multiSelect.joinSelections():Kn.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(Kn){Kn.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(Kn){Kn.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(Kn){Kn.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],Mn.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(Kn){Kn.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(Kn){return Kn&&Kn.inMultiSelectMode}}];var Wn=kn("../keyboard/hash_handler").HashHandler;Mn.keyboardHandler=new Wn(Mn.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(kn,Mn,Yn){var Wn=kn("./range_list").RangeList,Kn=kn("./range").Range,Xn=kn("./selection").Selection,Hn=kn("./mouse/multi_select_handler").onMouseDown,qn=kn("./lib/event"),In=kn("./lib/lang"),Dn=kn("./commands/multi_select_commands");Mn.commands=Dn.defaultCommands.concat(Dn.multiSelectCommands);var Pn=kn("./search").Search,Bn=new Pn;function Nn(pi,si,ei){return Bn.$options.wrap=!0,Bn.$options.needle=si,Bn.$options.backwards=ei==-1,Bn.find(pi)}var zn=kn("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(zn.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(pi,si){if(pi){if(!this.inMultiSelectMode&&this.rangeCount===0){var ei=this.toOrientedRange();if(this.rangeList.add(ei),this.rangeList.add(pi),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),si||this.fromOrientedRange(pi);this.rangeList.removeAll(),this.rangeList.add(ei),this.$onAddRange(ei)}pi.cursor||(pi.cursor=pi.end);var mi=this.rangeList.add(pi);return this.$onAddRange(pi),mi.length&&this.$onRemoveRange(mi),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),si||this.fromOrientedRange(pi)}},this.toSingleRange=function(pi){pi=pi||this.ranges[0];var si=this.rangeList.removeAll();si.length&&this.$onRemoveRange(si),pi&&this.fromOrientedRange(pi)},this.substractPoint=function(pi){var si=this.rangeList.substractPoint(pi);if(si)return this.$onRemoveRange(si),si[0]},this.mergeOverlappingRanges=function(){var pi=this.rangeList.merge();pi.length&&this.$onRemoveRange(pi)},this.$onAddRange=function(pi){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(pi),this._signal("addRange",{range:pi})},this.$onRemoveRange=function(pi){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var si=this.rangeList.ranges.pop();pi.push(si),this.rangeCount=0}for(var ei=pi.length;ei--;){var mi=this.ranges.indexOf(pi[ei]);this.ranges.splice(mi,1)}this._signal("removeRange",{ranges:pi}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),si=si||this.ranges[0],si&&!si.isEqual(this.getRange())&&this.fromOrientedRange(si)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new Wn,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var pi=this.ranges.length?this.ranges:[this.getRange()],si=[],ei=0;ei<pi.length;ei++){var mi=pi[ei],fi=mi.start.row,yi=mi.end.row;if(fi===yi)si.push(mi.clone());else{for(si.push(new Kn(fi,mi.start.column,fi,this.session.getLine(fi).length));++fi<yi;)si.push(this.getLineRange(fi,!0));si.push(new Kn(yi,0,yi,mi.end.column))}ei==0&&!this.isBackwards()&&(si=si.reverse())}this.toSingleRange();for(var ei=si.length;ei--;)this.addRange(si[ei])},this.joinSelections=function(){var pi=this.rangeList.ranges,si=pi[pi.length-1],ei=Kn.fromPoints(pi[0].start,si.end);this.toSingleRange(),this.setSelectionRange(ei,si.cursor==si.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var pi=this.rangeList.ranges,si=pi[pi.length-1],ei=Kn.fromPoints(pi[0].start,si.end);this.toSingleRange(),this.setSelectionRange(ei,si.cursor==si.start)}else{var mi=this.session.documentToScreenPosition(this.cursor),fi=this.session.documentToScreenPosition(this.anchor),yi=this.rectangularRangeBlock(mi,fi);yi.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(pi,si,ei){var mi=[],fi=pi.column<si.column;if(fi)var yi=pi.column,gi=si.column,xi=pi.offsetX,ai=si.offsetX;else var yi=si.column,gi=pi.column,xi=si.offsetX,ai=pi.offsetX;var oi=pi.row<si.row;if(oi)var li=pi.row,wi=si.row;else var li=si.row,wi=pi.row;yi<0&&(yi=0),li<0&&(li=0),li==wi&&(ei=!0);for(var bi,_i=li;_i<=wi;_i++){var Ti=Kn.fromPoints(this.session.screenToDocumentPosition(_i,yi,xi),this.session.screenToDocumentPosition(_i,gi,ai));if(Ti.isEmpty()){if(bi&&Jn(Ti.end,bi))break;bi=Ti.end}Ti.cursor=fi?Ti.start:Ti.end,mi.push(Ti)}if(oi&&mi.reverse(),!ei){for(var Li=mi.length-1;mi[Li].isEmpty()&&Li>0;)Li--;if(Li>0)for(var Ri=0;mi[Ri].isEmpty();)Ri++;for(var Ii=Li;Ii>=Ri;Ii--)mi[Ii].isEmpty()&&mi.splice(Ii,1)}return mi}}).call(Xn.prototype);var Qn=kn("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(pi){pi.cursor||(pi.cursor=pi.end);var si=this.getSelectionStyle();return pi.marker=this.session.addMarker(pi,"ace_selection",si),this.session.$selectionMarkers.push(pi),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,pi},this.removeSelectionMarker=function(pi){if(pi.marker){this.session.removeMarker(pi.marker);var si=this.session.$selectionMarkers.indexOf(pi);si!=-1&&this.session.$selectionMarkers.splice(si,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(pi){for(var si=this.session.$selectionMarkers,ei=pi.length;ei--;){var mi=pi[ei];if(mi.marker){this.session.removeMarker(mi.marker);var fi=si.indexOf(mi);fi!=-1&&si.splice(fi,1)}}this.session.selectionMarkerCount=si.length},this.$onAddRange=function(pi){this.addSelectionMarker(pi.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(pi){this.removeSelectionMarkers(pi.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(pi){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(Dn.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(pi){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(Dn.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(pi){var si=pi.command,ei=pi.editor;if(ei.multiSelect){if(si.multiSelectAction)si.multiSelectAction=="forEach"?mi=ei.forEachSelection(si,pi.args):si.multiSelectAction=="forEachLine"?mi=ei.forEachSelection(si,pi.args,!0):si.multiSelectAction=="single"?(ei.exitMultiSelectMode(),mi=si.exec(ei,pi.args||{})):mi=si.multiSelectAction(ei,pi.args||{});else{var mi=si.exec(ei,pi.args||{});ei.multiSelect.addRange(ei.multiSelect.toOrientedRange()),ei.multiSelect.mergeOverlappingRanges()}return mi}},this.forEachSelection=function(pi,si,ei){if(!this.inVirtualSelectionMode){var mi=ei&&ei.keepOrder,fi=ei==!0||ei&&ei.$byLines,yi=this.session,gi=this.selection,xi=gi.rangeList,ai=(mi?gi:xi).ranges,oi;if(!ai.length)return pi.exec?pi.exec(this,si||{}):pi(this,si||{});var li=gi._eventRegistry;gi._eventRegistry={};var wi=new Xn(yi);this.inVirtualSelectionMode=!0;for(var bi=ai.length;bi--;){if(fi)for(;bi>0&&ai[bi].start.row==ai[bi-1].end.row;)bi--;wi.fromOrientedRange(ai[bi]),wi.index=bi,this.selection=yi.selection=wi;var _i=pi.exec?pi.exec(this,si||{}):pi(this,si||{});!oi&&_i!==void 0&&(oi=_i),wi.toOrientedRange(ai[bi])}wi.detach(),this.selection=yi.selection=gi,this.inVirtualSelectionMode=!1,gi._eventRegistry=li,gi.mergeOverlappingRanges(),gi.ranges[0]&&gi.fromOrientedRange(gi.ranges[0]);var Ti=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),Ti&&Ti.from==Ti.to&&this.renderer.animateScrolling(Ti.from),oi}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var pi="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var si=this.multiSelect.rangeList.ranges,ei=[],mi=0;mi<si.length;mi++)ei.push(this.session.getTextRange(si[mi]));var fi=this.session.getDocument().getNewLineCharacter();pi=ei.join(fi),pi.length==(ei.length-1)*fi.length&&(pi="")}else this.selection.isEmpty()||(pi=this.session.getTextRange(this.getSelectionRange()));return pi},this.$checkMultiselectChange=function(pi,si){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var ei=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&si==this.multiSelect.anchor)return;var mi=si==this.multiSelect.anchor?ei.cursor==ei.start?ei.end:ei.start:ei.cursor;mi.row!=si.row||this.session.$clipPositionToDocument(mi.row,mi.column).column!=si.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(pi,si,ei){if(si=si||{},si.needle=pi||si.needle,si.needle==null){var mi=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();si.needle=this.session.getTextRange(mi)}this.$search.set(si);var fi=this.$search.findAll(this.session);if(!fi.length)return 0;var yi=this.multiSelect;ei||yi.toSingleRange(fi[0]);for(var gi=fi.length;gi--;)yi.addRange(fi[gi],!0);return mi&&yi.rangeList.rangeAtPoint(mi.start)&&yi.addRange(mi,!0),fi.length},this.selectMoreLines=function(pi,si){var ei=this.selection.toOrientedRange(),mi=ei.cursor==ei.end,fi=this.session.documentToScreenPosition(ei.cursor);this.selection.$desiredColumn&&(fi.column=this.selection.$desiredColumn);var yi=this.session.screenToDocumentPosition(fi.row+pi,fi.column);if(ei.isEmpty())var xi=yi;else var gi=this.session.documentToScreenPosition(mi?ei.end:ei.start),xi=this.session.screenToDocumentPosition(gi.row+pi,gi.column);if(mi){var ai=Kn.fromPoints(yi,xi);ai.cursor=ai.start}else{var ai=Kn.fromPoints(xi,yi);ai.cursor=ai.end}if(ai.desiredColumn=fi.column,!this.selection.inMultiSelectMode)this.selection.addRange(ei);else if(si)var oi=ei.cursor;this.selection.addRange(ai),oi&&this.selection.substractPoint(oi)},this.transposeSelections=function(pi){for(var si=this.session,ei=si.multiSelect,mi=ei.ranges,fi=mi.length;fi--;){var yi=mi[fi];if(yi.isEmpty()){var gi=si.getWordRange(yi.start.row,yi.start.column);yi.start.row=gi.start.row,yi.start.column=gi.start.column,yi.end.row=gi.end.row,yi.end.column=gi.end.column}}ei.mergeOverlappingRanges();for(var xi=[],fi=mi.length;fi--;){var yi=mi[fi];xi.unshift(si.getTextRange(yi))}pi<0?xi.unshift(xi.pop()):xi.push(xi.shift());for(var fi=mi.length;fi--;){var yi=mi[fi],ai=yi.clone();si.replace(yi,xi[fi]),yi.start.row=ai.start.row,yi.start.column=ai.start.column}ei.fromOrientedRange(ei.ranges[0])},this.selectMore=function(pi,si,ei){var mi=this.session,fi=mi.multiSelect,yi=fi.toOrientedRange();if(!(yi.isEmpty()&&(yi=mi.getWordRange(yi.start.row,yi.start.column),yi.cursor=pi==-1?yi.start:yi.end,this.multiSelect.addRange(yi),ei))){var gi=mi.getTextRange(yi),xi=Nn(mi,gi,pi);xi&&(xi.cursor=pi==-1?xi.start:xi.end,this.session.unfold(xi),this.multiSelect.addRange(xi),this.renderer.scrollCursorIntoView(null,.5)),si&&this.multiSelect.substractPoint(yi.cursor)}},this.alignCursors=function(){var pi=this.session,si=pi.multiSelect,ei=si.ranges,mi=-1,fi=ei.filter(function(Li){if(Li.cursor.row==mi)return!0;mi=Li.cursor.row});if(!ei.length||fi.length==ei.length-1){var yi=this.selection.getRange(),gi=yi.start.row,xi=yi.end.row,ai=gi==xi;if(ai){var oi=this.session.getLength(),li;do li=this.session.getLine(xi);while(/[=:]/.test(li)&&++xi<oi);do li=this.session.getLine(gi);while(/[=:]/.test(li)&&--gi>0);gi<0&&(gi=0),xi>=oi&&(xi=oi-1)}var wi=this.session.removeFullLines(gi,xi);wi=this.$reAlignText(wi,ai),this.session.insert({row:gi,column:0},wi.join(`
936
+ `)+`
937
+ `),ai||(yi.start.column=0,yi.end.column=wi[wi.length-1].length),this.selection.setRange(yi)}else{fi.forEach(function(Li){si.substractPoint(Li.cursor)});var bi=0,_i=1/0,Ti=ei.map(function(Li){var Ri=Li.cursor,Ii=pi.getLine(Ri.row),zi=Ii.substr(Ri.column).search(/\S/g);return zi==-1&&(zi=0),Ri.column>bi&&(bi=Ri.column),zi<_i&&(_i=zi),zi});ei.forEach(function(Li,Ri){var Ii=Li.cursor,zi=bi-Ii.column,Oi=Ti[Ri]-_i;zi>Oi?pi.insert(Ii,In.stringRepeat(" ",zi-Oi)):pi.remove(new Kn(Ii.row,Ii.column,Ii.row,Ii.column-zi+Oi)),Li.start.column=Li.end.column=bi,Li.start.row=Li.end.row=Ii.row,Li.cursor=Li.end}),si.fromOrientedRange(ei[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(pi,si){var ei=!0,mi=!0,fi,yi,gi;return pi.map(function(wi){var bi=wi.match(/(\s*)(.*?)(\s*)([=:].*)/);return bi?fi==null?(fi=bi[1].length,yi=bi[2].length,gi=bi[3].length,bi):(fi+yi+gi!=bi[1].length+bi[2].length+bi[3].length&&(mi=!1),fi!=bi[1].length&&(ei=!1),fi>bi[1].length&&(fi=bi[1].length),yi<bi[2].length&&(yi=bi[2].length),gi>bi[3].length&&(gi=bi[3].length),bi):[wi]}).map(si?ai:ei?mi?oi:ai:li);function xi(wi){return In.stringRepeat(" ",wi)}function ai(wi){return wi[2]?xi(fi)+wi[2]+xi(yi-wi[2].length+gi)+wi[4].replace(/^([=:])\s+/,"$1 "):wi[0]}function oi(wi){return wi[2]?xi(fi+yi-wi[2].length)+wi[2]+xi(gi)+wi[4].replace(/^([=:])\s+/,"$1 "):wi[0]}function li(wi){return wi[2]?xi(fi)+wi[2]+xi(gi)+wi[4].replace(/^([=:])\s+/,"$1 "):wi[0]}}}).call(Qn.prototype);function Jn(pi,si){return pi.row==si.row&&pi.column==si.column}Mn.onSessionChange=function(pi){var si=pi.session;si&&!si.multiSelect&&(si.$selectionMarkers=[],si.selection.$initRangeList(),si.multiSelect=si.selection),this.multiSelect=si&&si.multiSelect;var ei=pi.oldSession;ei&&(ei.multiSelect.off("addRange",this.$onAddRange),ei.multiSelect.off("removeRange",this.$onRemoveRange),ei.multiSelect.off("multiSelect",this.$onMultiSelect),ei.multiSelect.off("singleSelect",this.$onSingleSelect),ei.multiSelect.lead.off("change",this.$checkMultiselectChange),ei.multiSelect.anchor.off("change",this.$checkMultiselectChange)),si&&(si.multiSelect.on("addRange",this.$onAddRange),si.multiSelect.on("removeRange",this.$onRemoveRange),si.multiSelect.on("multiSelect",this.$onMultiSelect),si.multiSelect.on("singleSelect",this.$onSingleSelect),si.multiSelect.lead.on("change",this.$checkMultiselectChange),si.multiSelect.anchor.on("change",this.$checkMultiselectChange)),si&&this.inMultiSelectMode!=si.selection.inMultiSelectMode&&(si.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function ti(pi){pi.$multiselectOnSessionChange||(pi.$onAddRange=pi.$onAddRange.bind(pi),pi.$onRemoveRange=pi.$onRemoveRange.bind(pi),pi.$onMultiSelect=pi.$onMultiSelect.bind(pi),pi.$onSingleSelect=pi.$onSingleSelect.bind(pi),pi.$multiselectOnSessionChange=Mn.onSessionChange.bind(pi),pi.$checkMultiselectChange=pi.$checkMultiselectChange.bind(pi),pi.$multiselectOnSessionChange(pi),pi.on("changeSession",pi.$multiselectOnSessionChange),pi.on("mousedown",Hn),pi.commands.addCommands(Dn.defaultCommands),vi(pi))}function vi(pi){if(!pi.textInput)return;var si=pi.textInput.getElement(),ei=!1;qn.addListener(si,"keydown",function(fi){var yi=fi.keyCode==18&&!(fi.ctrlKey||fi.shiftKey||fi.metaKey);pi.$blockSelectEnabled&&yi?ei||(pi.renderer.setMouseCursor("crosshair"),ei=!0):ei&&mi()},pi),qn.addListener(si,"keyup",mi,pi),qn.addListener(si,"blur",mi,pi);function mi(fi){ei&&(pi.renderer.setMouseCursor(""),ei=!1)}}Mn.MultiSelect=ti,kn("./config").defineOptions(Qn.prototype,"editor",{enableMultiselect:{set:function(pi){ti(this),pi?this.on("mousedown",Hn):this.off("mousedown",Hn)},value:!0},enableBlockSelect:{set:function(pi){this.$blockSelectEnabled=pi},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(kn,Mn,Yn){var Wn=kn("../../range").Range,Kn=Mn.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(Xn,Hn,qn){var In=Xn.getLine(qn);return this.foldingStartMarker.test(In)?"start":Hn=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(In)?"end":""},this.getFoldWidgetRange=function(Xn,Hn,qn){return null},this.indentationBlock=function(Xn,Hn,qn){var In=/\S/,Dn=Xn.getLine(Hn),Pn=Dn.search(In);if(Pn!=-1){for(var Bn=qn||Dn.length,Nn=Xn.getLength(),zn=Hn,Qn=Hn;++Hn<Nn;){var Jn=Xn.getLine(Hn).search(In);if(Jn!=-1){if(Jn<=Pn){var ti=Xn.getTokenAt(Hn,0);if(!ti||ti.type!=="string")break}Qn=Hn}}if(Qn>zn){var vi=Xn.getLine(Qn).length;return new Wn(zn,Bn,Qn,vi)}}},this.openingBracketBlock=function(Xn,Hn,qn,In,Dn){var Pn={row:qn,column:In+1},Bn=Xn.$findClosingBracket(Hn,Pn,Dn);if(Bn){var Nn=Xn.foldWidgets[Bn.row];return Nn==null&&(Nn=Xn.getFoldWidget(Bn.row)),Nn=="start"&&Bn.row>Pn.row&&(Bn.row--,Bn.column=Xn.getLine(Bn.row).length),Wn.fromPoints(Pn,Bn)}},this.closingBracketBlock=function(Xn,Hn,qn,In,Dn){var Pn={row:qn,column:In},Bn=Xn.$findOpeningBracket(Hn,Pn);if(Bn)return Bn.column++,Pn.column--,Wn.fromPoints(Bn,Pn)}}).call(Kn.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(kn,Mn,Yn){var Wn=kn("../lib/dom"),Kn=kn("../range").Range,Xn=kn("../config").nls;function Hn(In,Dn,Pn){for(var Bn=0,Nn=In.length-1;Bn<=Nn;){var zn=Bn+Nn>>1,Qn=Pn(Dn,In[zn]);if(Qn>0)Bn=zn+1;else if(Qn<0)Nn=zn-1;else return zn}return-(Bn+1)}function qn(In,Dn,Pn){var Bn=In.getAnnotations().sort(Kn.comparePoints);if(Bn.length){var Nn=Hn(Bn,{row:Dn,column:-1},Kn.comparePoints);Nn<0&&(Nn=-Nn-1),Nn>=Bn.length?Nn=Pn>0?0:Bn.length-1:Nn===0&&Pn<0&&(Nn=Bn.length-1);var zn=Bn[Nn];if(!(!zn||!Pn)){if(zn.row===Dn){do zn=Bn[Nn+=Pn];while(zn&&zn.row===Dn);if(!zn)return Bn.slice()}var Qn=[];Dn=zn.row;do Qn[Pn<0?"unshift":"push"](zn),zn=Bn[Nn+=Pn];while(zn&&zn.row==Dn);return Qn.length&&Qn}}}Mn.showErrorMarker=function(In,Dn){var Pn=In.session,Bn=In.getCursorPosition(),Nn=Bn.row,zn=Pn.widgetManager.getWidgetsAtRow(Nn).filter(function(fi){return fi.type=="errorMarker"})[0];zn?zn.destroy():Nn-=Dn;var Qn=qn(Pn,Nn,Dn),Jn;if(Qn){var ti=Qn[0];Bn.column=(ti.pos&&typeof ti.column!="number"?ti.pos.sc:ti.column)||0,Bn.row=ti.row,Jn=In.renderer.$gutterLayer.$annotations[Bn.row]}else{if(zn)return;Jn={displayText:[Xn("error-marker.good-state","Looks good!")],className:"ace_ok"}}In.session.unfold(Bn.row),In.selection.moveToPosition(Bn);var vi={row:Bn.row,fixedWidth:!0,coverGutter:!0,el:Wn.createElement("div"),type:"errorMarker"},pi=vi.el.appendChild(Wn.createElement("div")),si=vi.el.appendChild(Wn.createElement("div"));si.className="error_widget_arrow "+Jn.className;var ei=In.renderer.$cursorLayer.getPixelPosition(Bn).left;si.style.left=ei+In.renderer.gutterWidth-5+"px",vi.el.className="error_widget_wrapper",pi.className="error_widget "+Jn.className,Jn.displayText.forEach(function(fi,yi){pi.appendChild(Wn.createTextNode(fi)),yi<Jn.displayText.length-1&&pi.appendChild(Wn.createElement("br"))}),pi.appendChild(Wn.createElement("div"));var mi=function(fi,yi,gi){if(yi===0&&(gi==="esc"||gi==="return"))return vi.destroy(),{command:"null"}};vi.destroy=function(){In.$mouseHandler.isMousePressed||(In.keyBinding.removeKeyboardHandler(mi),Pn.widgetManager.removeLineWidget(vi),In.off("changeSelection",vi.destroy),In.off("changeSession",vi.destroy),In.off("mouseup",vi.destroy),In.off("change",vi.destroy))},In.keyBinding.addKeyboardHandler(mi),In.on("changeSelection",vi.destroy),In.on("changeSession",vi.destroy),In.on("mouseup",vi.destroy),In.on("change",vi.destroy),In.session.widgetManager.addLineWidget(vi),vi.el.onmousedown=In.focus.bind(In),In.renderer.scrollCursorIntoView(null,.5,{bottom:vi.el.offsetHeight})},Wn.importCssString(`
938
+ .error_widget_wrapper {
939
+ background: inherit;
940
+ color: inherit;
941
+ border:none
942
+ }
943
+ .error_widget {
944
+ border-top: solid 2px;
945
+ border-bottom: solid 2px;
946
+ margin: 5px 0;
947
+ padding: 10px 40px;
948
+ white-space: pre-wrap;
949
+ }
950
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
951
+ border-color: #ff5a5a
952
+ }
953
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
954
+ border-color: #F1D817
955
+ }
956
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
957
+ border-color: #5a5a5a
958
+ }
959
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
960
+ border-color: #5aaa5a
961
+ }
962
+ .error_widget_arrow {
963
+ position: absolute;
964
+ border: solid 5px;
965
+ border-top-color: transparent!important;
966
+ border-right-color: transparent!important;
967
+ border-left-color: transparent!important;
968
+ top: -5px;
969
+ }
970
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(kn,Mn,Yn){kn("./loader_build")(Mn);var Wn=kn("./lib/dom"),Kn=kn("./range").Range,Xn=kn("./editor").Editor,Hn=kn("./edit_session").EditSession,qn=kn("./undomanager").UndoManager,In=kn("./virtual_renderer").VirtualRenderer;kn("./worker/worker_client"),kn("./keyboard/hash_handler"),kn("./placeholder"),kn("./multi_select"),kn("./mode/folding/fold_mode"),kn("./theme/textmate"),kn("./ext/error_marker"),Mn.config=kn("./config"),Mn.edit=function(Pn,Bn){if(typeof Pn=="string"){var Nn=Pn;if(Pn=document.getElementById(Nn),!Pn)throw new Error("ace.edit can't find div #"+Nn)}if(Pn&&Pn.env&&Pn.env.editor instanceof Xn)return Pn.env.editor;var zn="";if(Pn&&/input|textarea/i.test(Pn.tagName)){var Qn=Pn;zn=Qn.value,Pn=Wn.createElement("pre"),Qn.parentNode.replaceChild(Pn,Qn)}else Pn&&(zn=Pn.textContent,Pn.innerHTML="");var Jn=Mn.createEditSession(zn),ti=new Xn(new In(Pn),Jn,Bn),vi={document:Jn,editor:ti,onResize:ti.resize.bind(ti,null)};return Qn&&(vi.textarea=Qn),ti.on("destroy",function(){vi.editor.container.env=null}),ti.container.env=ti.env=vi,ti},Mn.createEditSession=function(Pn,Bn){var Nn=new Hn(Pn,Bn);return Nn.setUndoManager(new qn),Nn},Mn.Range=Kn,Mn.Editor=Xn,Mn.EditSession=Hn,Mn.UndoManager=qn,Mn.VirtualRenderer=In;var Dn=Mn.config.version;Mn.version=Dn}),function(){ace.require(["ace/ace"],function(kn){kn&&(kn.config.init(!0),kn.define=ace.define);var Mn=function(){return this}();!Mn&&typeof window<"u"&&(Mn=window),!Mn&&typeof self<"u"&&(Mn=self),Mn.ace||(Mn.ace=kn);for(var Yn in kn)kn.hasOwnProperty(Yn)&&(Mn.ace[Yn]=kn[Yn]);Mn.ace.default=Mn.ace,vn.exports=Mn.ace})}()}(uc)),uc.exports}Yb();var hc={exports:{}},Fd;function Zb(){return Fd||(Fd=1,function(vn,_n){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text_highlight_rules").TextHighlightRules,Xn=Mn.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};Mn.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},Mn.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},Mn.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var Hn=Mn.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},qn=Mn.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},In=Mn.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},Dn=Mn.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},Pn=Mn.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},Bn=Mn.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},Nn=Mn.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},zn=Mn.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},Qn=function(){var Jn="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",ti="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",vi="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",pi="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",si=this.$keywords=this.createKeywordMapper({keyword:ti,"constant.language":vi,"variable.language":pi,"support.function":Jn,"invalid.deprecated":"debugger"},"identifier"),ei=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,mi={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:ei},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:ei},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(fi,yi,gi){gi.length&&(gi=[]);var xi=fi[fi.length-1];return gi.unshift(xi,yi),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(fi,yi,gi){gi.length&&(gi=[]);var xi=fi[fi.length-1];return gi.unshift(xi,yi),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(fi,yi,gi){gi.length&&(gi=[]);var xi=fi[fi.length-1];return gi.unshift(xi,yi),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(fi,yi,gi){gi.length&&(gi=[]);var xi=fi[fi.length-1];return gi.unshift(xi,yi),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(fi,yi,gi){gi.length&&(gi=[]);var xi=fi[fi.length-1];return gi.unshift(xi,yi),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},zn,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+ei+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},Pn,Bn,Xn,Hn,Nn,qn,In,Dn,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:si,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(fi,yi,gi){var xi=fi[2]=="-"||fi[2]=="~"?"indentedHeredoc":"heredoc",ai=fi.split(this.splitRegex);return gi.push(xi,ai[3]),[{type:"constant",value:ai[1]},{type:"string",value:ai[2]},{type:"support.class",value:ai[3]},{type:"string",value:ai[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(fi,yi,gi){return fi===gi[1]?(gi.shift(),gi.shift(),this.next=gi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(fi,yi,gi){return fi===gi[1]?(gi.shift(),gi.shift(),this.next=gi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(fi,yi){return yi[0]==="heredoc"||yi[0]==="indentedHeredoc"?yi[0]:fi}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(fi,yi,gi){return this.next="",fi=="}"&&gi.length>1&&gi[1]!="start"&&(gi.shift(),this.next=gi.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(fi,yi,gi){return gi.length&&fi===gi[0]?(gi.unshift(fi,yi),this.token):"string"}},{token:"constant.language.escape",regex:ei},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(fi,yi,gi){return gi.length&&fi===mi[gi[0]]?(gi.shift(),this.next=gi.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(fi,yi,gi){return gi.length&&fi===gi[0]?(gi.unshift(fi,yi),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(fi,yi,gi){return gi.length&&fi===mi[gi[0]]?(gi.shift(),this.next=gi.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(fi,yi,gi){return gi.length&&fi===gi[0]?(gi.unshift(fi,yi),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(fi,yi,gi){return gi.length&&fi===mi[gi[0]]?(gi.shift(),this.next=gi.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(fi,yi,gi){return gi.length&&fi===gi[0]?(gi.unshift(fi,yi),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:ei},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(fi,yi,gi){return gi.length&&fi===mi[gi[0]]?(gi.shift(),this.next=gi.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(fi,yi,gi){return gi.length&&fi===gi[0]?(gi.unshift(fi,yi),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(fi,yi,gi){return gi.length&&fi[0]===mi[gi[0]]?(gi.shift(),this.next=gi.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};Wn.inherits(Qn,Kn),Mn.RubyHighlightRules=Qn}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(kn,Mn,Yn){var Wn=kn("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Xn,Hn){return/^\s+$/.test(Xn)?/^\s*\}/.test(Hn):!1},this.autoOutdent=function(Xn,Hn){var qn=Xn.getLine(Hn),In=qn.match(/^(\s*\})/);if(!In)return 0;var Dn=In[1].length,Pn=Xn.findMatchingBracket({row:Hn,column:Dn});if(!Pn||Pn.row==Hn)return 0;var Bn=this.$getIndent(Xn.getLine(Pn.row));Xn.replace(new Wn(Hn,0,Hn,Dn-1),Bn)},this.$getIndent=function(Xn){return Xn.match(/^\s*/)[0]}}).call(Kn.prototype),Mn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("./fold_mode").FoldMode,Xn=kn("../../range").Range,Hn=kn("../../token_iterator").TokenIterator,qn=Mn.FoldMode=function(){};Wn.inherits(qn,Kn),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(In,Dn,Pn){var Bn=In.getLine(Pn),Nn=this.foldingStartMarker.test(Bn),zn=this.foldingStopMarker.test(Bn);if(Nn&&!zn){var Qn=Bn.match(this.foldingStartMarker);if(Qn[1]){if((Qn[1]=="if"||Qn[1]=="else"||Qn[1]=="while"||Qn[1]=="until"||Qn[1]=="unless")&&(Qn[1]=="else"&&/^\s*else\s*$/.test(Bn)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(Bn)===!1)||Qn[1]=="when"&&/\sthen\s/.test(Bn)===!0)return;if(In.getTokenAt(Pn,Qn.index+2).type==="keyword")return"start"}else if(!Qn[3]||In.getTokenAt(Pn,Qn.index+1).type==="comment.multiline")return"start"}if(Dn!="markbeginend"||!zn||Nn&&zn)return"";var Qn=Bn.match(this.foldingStopMarker);if(Qn[3]==="end"){if(In.getTokenAt(Pn,Qn.index+1).type==="keyword")return"end"}else if(!Qn[1]||In.getTokenAt(Pn,Qn.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(In,Dn,Pn){var Bn=In.doc.getLine(Pn),Nn=this.foldingStartMarker.exec(Bn);if(Nn)return Nn[1]||Nn[3]?this.rubyBlock(In,Pn,Nn.index+2):this.openingBracketBlock(In,"{",Pn,Nn.index);var Nn=this.foldingStopMarker.exec(Bn);if(Nn)return Nn[3]==="end"&&In.getTokenAt(Pn,Nn.index+1).type==="keyword"?this.rubyBlock(In,Pn,Nn.index+1):Nn[1]==="=end"&&In.getTokenAt(Pn,Nn.index+1).type==="comment.multiline"?this.rubyBlock(In,Pn,Nn.index+1):this.closingBracketBlock(In,"}",Pn,Nn.index+Nn[0].length)},this.rubyBlock=function(In,Dn,Pn,Bn){var Nn=new Hn(In,Dn,Pn),zn=Nn.getCurrentToken();if(!(!zn||zn.type!="keyword"&&zn.type!="comment.multiline")){var Qn=zn.value,Jn=In.getLine(Dn);switch(zn.value){case"if":case"unless":case"while":case"until":var ti=new RegExp("^\\s*"+zn.value);if(!ti.test(Jn))return;var vi=this.indentKeywords[Qn];break;case"when":if(/\sthen\s/.test(Jn))return;case"elsif":case"rescue":case"ensure":var vi=1;break;case"else":var ti=new RegExp("^\\s*"+zn.value+"\\s*$");if(!ti.test(Jn))return;var vi=1;break;default:var vi=this.indentKeywords[Qn]}var pi=[Qn];if(vi){var si=vi===-1?In.getLine(Dn-1).length:In.getLine(Dn).length,ei=Dn,mi=[];if(mi.push(Nn.getCurrentTokenRange()),Nn.step=vi===-1?Nn.stepBackward:Nn.stepForward,zn.type=="comment.multiline"){for(;zn=Nn.step();)if(zn.type==="comment.multiline"){if(vi==1){if(si=6,zn.value=="=end")break}else if(zn.value=="=begin")break}}else for(;zn=Nn.step();){var fi=!1;if(zn.type==="keyword"){var yi=vi*this.indentKeywords[zn.value];switch(Jn=In.getLine(Nn.getCurrentTokenRow()),zn.value){case"do":for(var gi=Nn.$tokenIndex-1;gi>=0;gi--){var xi=Nn.$rowTokens[gi];if(xi&&(xi.value=="while"||xi.value=="until"||xi.value=="for")){yi=0;break}}break;case"else":var ti=new RegExp("^\\s*"+zn.value+"\\s*$");(!ti.test(Jn)||Qn=="case")&&(yi=0,fi=!0);break;case"if":case"unless":case"while":case"until":var ti=new RegExp("^\\s*"+zn.value);ti.test(Jn)||(yi=0,fi=!0);break;case"when":(/\sthen\s/.test(Jn)||Qn=="case")&&(yi=0,fi=!0)}if(yi>0)pi.unshift(zn.value);else if(yi<=0&&fi===!1){if(pi.shift(),!pi.length&&((Qn=="while"||Qn=="until"||Qn=="for")&&zn.value!="do"||zn.value=="do"&&vi==-1&&yi!=0||zn.value!="do"))break;yi===0&&pi.unshift(zn.value)}}}if(!zn)return null;if(Bn)return mi.push(Nn.getCurrentTokenRange()),mi;var Dn=Nn.getCurrentTokenRow();if(vi===-1){if(zn.type==="comment.multiline")var ai=6;else var ai=In.getLine(Dn).length;return new Xn(Dn,ai,ei-1,si)}return new Xn(ei,si,Dn-1,In.getLine(Dn-1).length)}}}}).call(qn.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text").Mode,Xn=kn("./ruby_highlight_rules").RubyHighlightRules,Hn=kn("./matching_brace_outdent").MatchingBraceOutdent,qn=kn("../range").Range,In=kn("./folding/ruby").FoldMode,Dn=function(){this.HighlightRules=Xn,this.$outdent=new Hn,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new In,this.indentKeywords=this.foldingRules.indentKeywords};Wn.inherits(Dn,Kn),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(Pn,Bn,Nn){var zn=this.$getIndent(Bn),Qn=this.getTokenizer().getLineTokens(Bn,Pn),Jn=Qn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return zn;if(Pn=="start"){var ti=Bn.match(/^.*[\{\(\[]\s*$/),vi=Bn.match(/^\s*(class|def|module)\s.*$/),pi=Bn.match(/.*do(\s*|\s+\|.*\|\s*)$/),si=Bn.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(ti||vi||pi||si)&&(zn+=Nn)}return zn},this.checkOutdent=function(Pn,Bn,Nn){return/^\s+(end|else|rescue|ensure)$/.test(Bn+Nn)||this.$outdent.checkOutdent(Bn,Nn)},this.autoOutdent=function(Pn,Bn,Nn){var zn=Bn.getLine(Nn);if(/}/.test(zn))return this.$outdent.autoOutdent(Bn,Nn);var Qn=this.$getIndent(zn),Jn=Bn.getLine(Nn-1),ti=this.$getIndent(Jn),vi=Bn.getTabString();ti.length<=Qn.length&&Qn.slice(-vi.length)==vi&&Bn.remove(new qn(Nn,Qn.length-vi.length,Nn,Qn.length))},this.getMatching=function(Pn,Bn,Nn){if(Bn==null){var zn=Pn.selection.lead;Nn=zn.column,Bn=zn.row}var Qn=Pn.getTokenAt(Bn,Nn);if(Qn&&Qn.value in this.indentKeywords)return this.foldingRules.rubyBlock(Pn,Bn,Nn,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(Dn.prototype),Mn.Mode=Dn}),function(){ace.require(["ace/mode/ruby"],function(kn){vn.exports=kn})}()}(hc)),hc.exports}Zb();var dc={exports:{}},Wd;function Qb(){return Wd||(Wd=1,function(vn,_n){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text_highlight_rules").TextHighlightRules,Xn=function(){var Hn="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",qn="True|False|None|NotImplemented|Ellipsis|__debug__",In="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",Dn=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":In,"variable.language":"self|cls","constant.language":qn,keyword:Hn},"identifier"),Pn="[uU]?",Bn="[rR]",Nn="[fF]",zn="(?:[rR][fF]|[fF][rR])",Qn="(?:(?:[1-9]\\d*)|(?:0))",Jn="(?:0[oO]?[0-7]+)",ti="(?:0[xX][\\dA-Fa-f]+)",vi="(?:0[bB][01]+)",pi="(?:"+Qn+"|"+Jn+"|"+ti+"|"+vi+")",si="(?:[eE][+-]?\\d+)",ei="(?:\\.\\d+)",mi="(?:\\d+)",fi="(?:(?:"+mi+"?"+ei+")|(?:"+mi+"\\.))",yi="(?:(?:"+fi+"|"+mi+")"+si+")",gi="(?:"+yi+"|"+fi+")",xi=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:Pn+'"{3}',next:"qqstring3"},{token:"string",regex:Pn+'"(?=.)',next:"qqstring"},{token:"string",regex:Pn+"'{3}",next:"qstring3"},{token:"string",regex:Pn+"'(?=.)",next:"qstring"},{token:"string",regex:Bn+'"{3}',next:"rawqqstring3"},{token:"string",regex:Bn+'"(?=.)',next:"rawqqstring"},{token:"string",regex:Bn+"'{3}",next:"rawqstring3"},{token:"string",regex:Bn+"'(?=.)",next:"rawqstring"},{token:"string",regex:Nn+'"{3}',next:"fqqstring3"},{token:"string",regex:Nn+'"(?=.)',next:"fqqstring"},{token:"string",regex:Nn+"'{3}",next:"fqstring3"},{token:"string",regex:Nn+"'(?=.)",next:"fqstring"},{token:"string",regex:zn+'"{3}',next:"rfqqstring3"},{token:"string",regex:zn+'"(?=.)',next:"rfqqstring"},{token:"string",regex:zn+"'{3}",next:"rfqstring3"},{token:"string",regex:zn+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:xi},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:xi},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:xi},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:xi},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:xi},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:xi},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:xi},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:xi},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+gi+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:gi},{token:"constant.numeric",regex:pi+"[lL]\\b"},{token:"constant.numeric",regex:pi+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:Dn,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};Wn.inherits(Xn,Kn),Mn.PythonHighlightRules=Xn}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("./fold_mode").FoldMode,Xn=Mn.FoldMode=function(Hn){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+Hn+")(?:\\s*)(?:#.*)?$")};Wn.inherits(Xn,Kn),(function(){this.getFoldWidgetRange=function(Hn,qn,In){var Dn=Hn.getLine(In),Pn=Dn.match(this.foldingStartMarker);if(Pn)return Pn[1]?this.openingBracketBlock(Hn,Pn[1],In,Pn.index):Pn[2]?this.indentationBlock(Hn,In,Pn.index+Pn[2].length):this.indentationBlock(Hn,In)}}).call(Xn.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text").Mode,Xn=kn("./python_highlight_rules").PythonHighlightRules,Hn=kn("./folding/pythonic").FoldMode,qn=kn("../range").Range,In=function(){this.HighlightRules=Xn,this.foldingRules=new Hn("\\:"),this.$behaviour=this.$defaultBehaviour};Wn.inherits(In,Kn),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(Pn,Bn,Nn){var zn=this.$getIndent(Bn),Qn=this.getTokenizer().getLineTokens(Bn,Pn),Jn=Qn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return zn;if(Pn=="start"){var ti=Bn.match(/^.*[\{\(\[:]\s*$/);ti&&(zn+=Nn)}return zn};var Dn={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(Pn,Bn,Nn){if(Nn!==`\r
971
+ `&&Nn!=="\r"&&Nn!==`
972
+ `)return!1;var zn=this.getTokenizer().getLineTokens(Bn.trim(),Pn).tokens;if(!zn)return!1;do var Qn=zn.pop();while(Qn&&(Qn.type=="comment"||Qn.type=="text"&&Qn.value.match(/^\s+$/)));return Qn?Qn.type=="keyword"&&Dn[Qn.value]:!1},this.autoOutdent=function(Pn,Bn,Nn){Nn+=1;var zn=this.$getIndent(Bn.getLine(Nn)),Qn=Bn.getTabString();zn.slice(-Qn.length)==Qn&&Bn.remove(new qn(Nn,zn.length-Qn.length,Nn,zn.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(In.prototype),Mn.Mode=In}),function(){ace.require(["ace/mode/python"],function(kn){vn.exports=kn})}()}(dc)),dc.exports}Qb();var fc={exports:{}},Pd;function Xb(){return Pd||(Pd=1,function(vn,_n){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text_highlight_rules").TextHighlightRules,Xn=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};Wn.inherits(Xn,Kn),Mn.JsonHighlightRules=Xn}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(kn,Mn,Yn){var Wn=kn("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Xn,Hn){return/^\s+$/.test(Xn)?/^\s*\}/.test(Hn):!1},this.autoOutdent=function(Xn,Hn){var qn=Xn.getLine(Hn),In=qn.match(/^(\s*\})/);if(!In)return 0;var Dn=In[1].length,Pn=Xn.findMatchingBracket({row:Hn,column:Dn});if(!Pn||Pn.row==Hn)return 0;var Bn=this.$getIndent(Xn.getLine(Pn.row));Xn.replace(new Wn(Hn,0,Hn,Dn-1),Bn)},this.$getIndent=function(Xn){return Xn.match(/^\s*/)[0]}}).call(Kn.prototype),Mn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("../../range").Range,Xn=kn("./fold_mode").FoldMode,Hn=Mn.FoldMode=function(qn){qn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+qn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+qn.end)))};Wn.inherits(Hn,Xn),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(qn,In,Dn){var Pn=qn.getLine(Dn);if(this.singleLineBlockCommentRe.test(Pn)&&!this.startRegionRe.test(Pn)&&!this.tripleStarBlockCommentRe.test(Pn))return"";var Bn=this._getFoldWidgetBase(qn,In,Dn);return!Bn&&this.startRegionRe.test(Pn)?"start":Bn},this.getFoldWidgetRange=function(qn,In,Dn,Pn){var Bn=qn.getLine(Dn);if(this.startRegionRe.test(Bn))return this.getCommentRegionBlock(qn,Bn,Dn);var Nn=Bn.match(this.foldingStartMarker);if(Nn){var zn=Nn.index;if(Nn[1])return this.openingBracketBlock(qn,Nn[1],Dn,zn);var Qn=qn.getCommentFoldRange(Dn,zn+Nn[0].length,1);return Qn&&!Qn.isMultiLine()&&(Pn?Qn=this.getSectionRange(qn,Dn):In!="all"&&(Qn=null)),Qn}if(In!=="markbegin"){var Nn=Bn.match(this.foldingStopMarker);if(Nn){var zn=Nn.index+Nn[0].length;return Nn[1]?this.closingBracketBlock(qn,Nn[1],Dn,zn):qn.getCommentFoldRange(Dn,zn,-1)}}},this.getSectionRange=function(qn,In){var Dn=qn.getLine(In),Pn=Dn.search(/\S/),Bn=In,Nn=Dn.length;In+=1;for(var zn=In,Qn=qn.getLength();++In<Qn;){Dn=qn.getLine(In);var Jn=Dn.search(/\S/);if(Jn!==-1){if(Pn>Jn)break;var ti=this.getFoldWidgetRange(qn,"all",In);if(ti){if(ti.start.row<=Bn)break;if(ti.isMultiLine())In=ti.end.row;else if(Pn==Jn)break}zn=In}}return new Kn(Bn,Nn,zn,qn.getLine(zn).length)},this.getCommentRegionBlock=function(qn,In,Dn){for(var Pn=In.search(/\s*$/),Bn=qn.getLength(),Nn=Dn,zn=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Qn=1;++Dn<Bn;){In=qn.getLine(Dn);var Jn=zn.exec(In);if(Jn&&(Jn[1]?Qn--:Qn++,!Qn))break}var ti=Dn;if(ti>Nn)return new Kn(Nn,Pn,ti,In.length)}}).call(Hn.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text").Mode,Xn=kn("./json_highlight_rules").JsonHighlightRules,Hn=kn("./matching_brace_outdent").MatchingBraceOutdent,qn=kn("./folding/cstyle").FoldMode,In=kn("../worker/worker_client").WorkerClient,Dn=function(){this.HighlightRules=Xn,this.$outdent=new Hn,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new qn};Wn.inherits(Dn,Kn),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(Pn,Bn,Nn){var zn=this.$getIndent(Bn);if(Pn=="start"){var Qn=Bn.match(/^.*[\{\(\[]\s*$/);Qn&&(zn+=Nn)}return zn},this.checkOutdent=function(Pn,Bn,Nn){return this.$outdent.checkOutdent(Bn,Nn)},this.autoOutdent=function(Pn,Bn,Nn){this.$outdent.autoOutdent(Bn,Nn)},this.createWorker=function(Pn){var Bn=new In(["ace"],"ace/mode/json_worker","JsonWorker");return Bn.attachToDocument(Pn.getDocument()),Bn.on("annotate",function(Nn){Pn.setAnnotations(Nn.data)}),Bn.on("terminate",function(){Pn.clearAnnotations()}),Bn},this.$id="ace/mode/json"}).call(Dn.prototype),Mn.Mode=Dn}),function(){ace.require(["ace/mode/json"],function(kn){vn.exports=kn})}()}(fc)),fc.exports}Xb();var pc={exports:{}},Bd;function Jb(){return Bd||(Bd=1,function(vn,_n){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../lib/oop");kn("../lib/lang");var Kn=kn("./text_highlight_rules").TextHighlightRules,Xn=Mn.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",Hn=Mn.supportFunction="rgb|rgba|url|attr|counter|counters",qn=Mn.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",In=Mn.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",Dn=Mn.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",Pn=Mn.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",Bn=Mn.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",Nn=Mn.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",zn=function(){var Qn=this.createKeywordMapper({"support.function":Hn,"support.constant":qn,"support.type":Xn,"support.constant.color":In,"support.constant.fonts":Dn},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:Pn},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+Pn+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:Pn},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:Bn},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:Nn},{include:"url"},{token:Qn,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};Wn.inherits(zn,Kn),Mn.CssHighlightRules=zn}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text_highlight_rules").TextHighlightRules,Xn=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},Xn.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};Wn.inherits(Xn,Kn),Xn.getTagRule=function(Hn){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},Xn.getStartRule=function(Hn){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:Hn}},Xn.getEndRule=function(Hn){return{token:"comment.doc",regex:"\\*\\/",next:Hn}},Mn.JsDocCommentHighlightRules=Xn}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(kn,Mn,Yn){function Wn(){var Pn=In.replace("\\d","\\d\\-"),Bn={onMatch:function(zn,Qn,Jn){var ti=zn.charAt(1)=="/"?2:1;return ti==1?(Qn!=this.nextState?Jn.unshift(this.next,this.nextState,0):Jn.unshift(this.next),Jn[2]++):ti==2&&Qn==this.nextState&&(Jn[1]--,(!Jn[1]||Jn[1]<0)&&(Jn.shift(),Jn.shift())),[{type:"meta.tag.punctuation."+(ti==1?"":"end-")+"tag-open.xml",value:zn.slice(0,ti)},{type:"meta.tag.tag-name.xml",value:zn.substr(ti)}]},regex:"</?(?:"+Pn+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(Bn);var Nn={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[Nn,Bn,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(zn,Qn,Jn){return Qn==Jn[0]&&Jn.shift(),zn.length==2&&(Jn[0]==this.nextState&&Jn[1]--,(!Jn[1]||Jn[1]<0)&&Jn.splice(0,2)),this.next=Jn[0]||"start",[{type:this.token,value:zn}]},nextState:"jsx"},Nn,Kn("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:Pn},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},Bn],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function Kn(Pn){return[{token:"comment",regex:/\/\*/,next:[Hn.getTagRule(),{token:"comment",regex:"\\*\\/",next:Pn||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[Hn.getTagRule(),{token:"comment",regex:"$|^",next:Pn||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var Xn=kn("../lib/oop"),Hn=kn("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,qn=kn("./text_highlight_rules").TextHighlightRules,In="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",Dn=function(Pn){var Bn={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},Nn=this.createKeywordMapper(Bn,"identifier"),zn="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",Qn="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",Jn="(function)(\\s*)(\\*?)",ti={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(Bn).join("|")+"\\b)"+In+")(\\s*)(\\()"};this.$rules={no_regex:[Hn.getStartRule("doc-start"),Kn("no_regex"),ti,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+In+")(\\s*)(=)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+In+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+In+")(\\s*)(:)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+Jn+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+zn+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:Nn,regex:In},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:Jn+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:In},{regex:"",token:"empty",next:"no_regex"}],start:[Hn.getStartRule("doc-start"),Kn("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[Kn("function_arguments"),{token:"variable.parameter",regex:In},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:Qn},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:Qn},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!Pn||!Pn.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(vi,pi,si){if(this.next=vi=="{"?this.nextState:"",vi=="{"&&si.length)si.unshift("start",pi);else if(vi=="}"&&si.length&&(si.shift(),this.next=si.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return vi=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:Qn},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+In+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!Pn||Pn.jsx!=0)&&Wn.call(this)),this.embedRules(Hn,"doc-",[Hn.getEndRule("no_regex")]),this.normalizeRules()};Xn.inherits(Dn,qn),Mn.JavaScriptHighlightRules=Dn}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text_highlight_rules").TextHighlightRules,Xn=function(Hn){var qn="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+qn+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:qn},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+qn+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+qn+":)?"+qn+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:qn},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===Xn&&this.normalizeRules()};(function(){this.embedTagRules=function(Hn,qn,In){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+In+".tag-name.xml"],regex:"(<)("+In+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:qn+"start"}]}),this.$rules[In+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(Dn,Pn,Bn){return Bn.splice(0),this.token}}],this.embedRules(Hn,qn,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+In+".tag-name.xml"],regex:"(</)("+In+"(?=\\s|>|$))",next:In+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(Kn.prototype),Wn.inherits(Xn,Kn),Mn.XmlHighlightRules=Xn}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("../lib/lang"),Xn=kn("./css_highlight_rules").CssHighlightRules,Hn=kn("./javascript_highlight_rules").JavaScriptHighlightRules,qn=kn("./xml_highlight_rules").XmlHighlightRules,In=Kn.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),Dn=function(){qn.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(Pn,Bn){var Nn=In[Bn];return["meta.tag.punctuation."+(Pn=="<"?"":"end-")+"tag-open.xml","meta.tag"+(Nn?"."+Nn:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(Xn,"css-","style"),this.embedTagRules(new Hn({jsx:!1}).getRules(),"js-","script"),this.constructor===Dn&&this.normalizeRules()};Wn.inherits(Dn,qn),Mn.HtmlHighlightRules=Dn}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../config").$modes,Kn=kn("../lib/oop"),Xn=kn("../lib/lang"),Hn=kn("./text_highlight_rules").TextHighlightRules,qn=kn("./html_highlight_rules").HtmlHighlightRules,In=function(Pn){return"(?:[^"+Xn.escapeRegExp(Pn)+"\\\\]|\\\\.)*"},Dn=function(){qn.call(this);var Pn={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(Nn,zn,Qn,Jn){var ti=Nn.match(/^(\s*)([`~]+)(.*)/),vi=/[\w-]+|$/.exec(ti[3])[0];return Wn[vi]||(vi=""),Qn.unshift("githubblock",[],[ti[1],ti[2],vi],zn),this.token},next:"githubblock"},Bn=[{token:"support.function",regex:".*",onMatch:function(Nn,zn,Qn,Jn){var ti=Qn[1],vi=Qn[2][0],pi=Qn[2][1],si=Qn[2][2],ei=/^(\s*)(`+|~+)\s*$/.exec(Nn);if(ei&&ei[1].length<vi.length+3&&ei[2].length>=pi.length&&ei[2][0]==pi[0])return Qn.splice(0,3),this.next=Qn.shift(),this.token;if(this.next="",si&&Wn[si]){var mi=Wn[si].getTokenizer().getLineTokens(Nn,ti.slice(0));return Qn[1]=mi.state,mi.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(Nn){return"markup.heading."+Nn.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},Pn,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+In("]")+")(\\]\\s*\\[)("+In("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+In("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+In('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},Pn,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:Bn}),this.normalizeRules()};Kn.inherits(Dn,Hn),Mn.MarkdownHighlightRules=Dn}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("./fold_mode").FoldMode,Xn=kn("../../range").Range,Hn=Mn.FoldMode=function(){};Wn.inherits(Hn,Kn),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(qn,In,Dn){var Pn=qn.getLine(Dn);return this.foldingStartMarker.test(Pn)?Pn[0]=="`"&&qn.bgTokenizer.getState(Dn)=="start"?"end":"start":""},this.getFoldWidgetRange=function(qn,In,Dn){function Pn(fi){return vi=qn.getTokens(fi)[0],vi&&vi.type.lastIndexOf(pi,0)===0}function Bn(){var fi=vi.value[0];return fi=="="?6:fi=="-"?5:7-vi.value.search(/[^#]|$/)}var Nn=qn.getLine(Dn),zn=Nn.length,Qn=qn.getLength(),Jn=Dn,ti=Dn;if(Nn.match(this.foldingStartMarker)){if(Nn[0]=="`"){if(qn.bgTokenizer.getState(Dn)!=="start"){for(;++Dn<Qn&&(Nn=qn.getLine(Dn),!(Nn[0]=="`"&Nn.substring(0,3)=="```")););return new Xn(Jn,zn,Dn,0)}for(;Dn-- >0&&(Nn=qn.getLine(Dn),!(Nn[0]=="`"&Nn.substring(0,3)=="```")););return new Xn(Dn,Nn.length,Jn,0)}var vi,pi="markup.heading";if(Pn(Dn)){for(var si=Bn();++Dn<Qn;)if(Pn(Dn)){var ei=Bn();if(ei>=si)break}if(ti=Dn-(!vi||["=","-"].indexOf(vi.value[0])==-1?1:2),ti>Jn)for(;ti>Jn&&/^\s*$/.test(qn.getLine(ti));)ti--;if(ti>Jn){var mi=qn.getLine(ti).length;return new Xn(Jn,zn,ti,mi)}}}}}).call(Hn.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(kn,Mn,Yn){var Wn=kn("../range").Range,Kn=function(){};(function(){this.checkOutdent=function(Xn,Hn){return/^\s+$/.test(Xn)?/^\s*\}/.test(Hn):!1},this.autoOutdent=function(Xn,Hn){var qn=Xn.getLine(Hn),In=qn.match(/^(\s*\})/);if(!In)return 0;var Dn=In[1].length,Pn=Xn.findMatchingBracket({row:Hn,column:Dn});if(!Pn||Pn.row==Hn)return 0;var Bn=this.$getIndent(Xn.getLine(Pn.row));Xn.replace(new Wn(Hn,0,Hn,Dn-1),Bn)},this.$getIndent=function(Xn){return Xn.match(/^\s*/)[0]}}).call(Kn.prototype),Mn.MatchingBraceOutdent=Kn}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(kn,Mn,Yn){function Wn(In,Dn){return In&&In.type.lastIndexOf(Dn+".xml")>-1}var Kn=kn("../../lib/oop"),Xn=kn("../behaviour").Behaviour,Hn=kn("../../token_iterator").TokenIterator,qn=function(){this.add("string_dquotes","insertion",function(In,Dn,Pn,Bn,Nn){if(Nn=='"'||Nn=="'"){var zn=Nn,Qn=Bn.doc.getTextRange(Pn.getSelectionRange());if(Qn!==""&&Qn!=="'"&&Qn!='"'&&Pn.getWrapBehavioursEnabled())return{text:zn+Qn+zn,selection:!1};var Jn=Pn.getCursorPosition(),ti=Bn.doc.getLine(Jn.row),vi=ti.substring(Jn.column,Jn.column+1),pi=new Hn(Bn,Jn.row,Jn.column),si=pi.getCurrentToken();if(vi==zn&&(Wn(si,"attribute-value")||Wn(si,"string")))return{text:"",selection:[1,1]};if(si||(si=pi.stepBackward()),!si)return;for(;Wn(si,"tag-whitespace")||Wn(si,"whitespace");)si=pi.stepBackward();var ei=!vi||vi.match(/\s/);if(Wn(si,"attribute-equals")&&(ei||vi==">")||Wn(si,"decl-attribute-equals")&&(ei||vi=="?"))return{text:zn+zn,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(In,Dn,Pn,Bn,Nn){var zn=Bn.doc.getTextRange(Nn);if(!Nn.isMultiLine()&&(zn=='"'||zn=="'")){var Qn=Bn.doc.getLine(Nn.start.row),Jn=Qn.substring(Nn.start.column+1,Nn.start.column+2);if(Jn==zn)return Nn.end.column++,Nn}}),this.add("autoclosing","insertion",function(In,Dn,Pn,Bn,Nn){if(Nn==">"){var zn=Pn.getSelectionRange().start,Qn=new Hn(Bn,zn.row,zn.column),Jn=Qn.getCurrentToken()||Qn.stepBackward();if(!Jn||!(Wn(Jn,"tag-name")||Wn(Jn,"tag-whitespace")||Wn(Jn,"attribute-name")||Wn(Jn,"attribute-equals")||Wn(Jn,"attribute-value"))||Wn(Jn,"reference.attribute-value"))return;if(Wn(Jn,"attribute-value")){var ti=Qn.getCurrentTokenColumn()+Jn.value.length;if(zn.column<ti)return;if(zn.column==ti){var vi=Qn.stepForward();if(vi&&Wn(vi,"attribute-value"))return;Qn.stepBackward()}}if(/^\s*>/.test(Bn.getLine(zn.row).slice(zn.column)))return;for(;!Wn(Jn,"tag-name");)if(Jn=Qn.stepBackward(),Jn.value=="<"){Jn=Qn.stepForward();break}var pi=Qn.getCurrentTokenRow(),si=Qn.getCurrentTokenColumn();if(Wn(Qn.stepBackward(),"end-tag-open"))return;var ei=Jn.value;return pi==zn.row&&(ei=ei.substring(0,zn.column-si)),this.voidElements&&this.voidElements.hasOwnProperty(ei.toLowerCase())?void 0:{text:"></"+ei+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(In,Dn,Pn,Bn,Nn){if(Nn==`
973
+ `){var zn=Pn.getCursorPosition(),Qn=Bn.getLine(zn.row),Jn=new Hn(Bn,zn.row,zn.column),ti=Jn.getCurrentToken();if(Wn(ti,"")&&ti.type.indexOf("tag-close")!==-1){if(ti.value=="/>")return;for(;ti&&ti.type.indexOf("tag-name")===-1;)ti=Jn.stepBackward();if(!ti)return;var vi=ti.value,pi=Jn.getCurrentTokenRow();if(ti=Jn.stepBackward(),!ti||ti.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[vi]||!this.voidElements){var si=Bn.getTokenAt(zn.row,zn.column+1),Qn=Bn.getLine(pi),ei=this.$getIndent(Qn),mi=ei+Bn.getTabString();return si&&si.value==="</"?{text:`
974
+ `+mi+`
975
+ `+ei,selection:[1,mi.length,1,mi.length]}:{text:`
976
+ `+mi}}}}})};Kn.inherits(qn,Xn),Mn.XmlBehaviour=qn}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("../../token_iterator").TokenIterator,Xn=kn("../behaviour/cstyle").CstyleBehaviour,Hn=kn("../behaviour/xml").XmlBehaviour,qn=function(){var In=new Hn({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(In),this.inherit(Xn),this.add("autoclosing-fragment","insertion",function(Dn,Pn,Bn,Nn,zn){if(zn==">"){var Qn=Bn.getSelectionRange().start,Jn=new Kn(Nn,Qn.row,Qn.column),ti=Jn.getCurrentToken()||Jn.stepBackward();if(!ti)return;if(ti.value=="<")return{text:"></>",selection:[1,1]}}})};Wn.inherits(qn,Xn),Mn.JavaScriptBehaviour=qn}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(kn,Mn,Yn){function Wn(Dn,Pn){return Dn.type.lastIndexOf(Pn+".xml")>-1}var Kn=kn("../../lib/oop"),Xn=kn("../../range").Range,Hn=kn("./fold_mode").FoldMode,qn=Mn.FoldMode=function(Dn,Pn){Hn.call(this),this.voidElements=Dn||{},this.optionalEndTags=Kn.mixin({},this.voidElements),Pn&&Kn.mixin(this.optionalEndTags,Pn)};Kn.inherits(qn,Hn);var In=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(Dn,Pn,Bn){var Nn=this._getFirstTagInLine(Dn,Bn);return Nn?Nn.closing||!Nn.tagName&&Nn.selfClosing?Pn==="markbeginend"?"end":"":!Nn.tagName||Nn.selfClosing||this.voidElements.hasOwnProperty(Nn.tagName.toLowerCase())||this._findEndTagInLine(Dn,Bn,Nn.tagName,Nn.end.column)?"":"start":this.getCommentFoldWidget(Dn,Bn)},this.getCommentFoldWidget=function(Dn,Pn){return/comment/.test(Dn.getState(Pn))&&/<!-/.test(Dn.getLine(Pn))?"start":""},this._getFirstTagInLine=function(Dn,Pn){for(var Bn=Dn.getTokens(Pn),Nn=new In,zn=0;zn<Bn.length;zn++){var Qn=Bn[zn];if(Wn(Qn,"tag-open")){if(Nn.end.column=Nn.start.column+Qn.value.length,Nn.closing=Wn(Qn,"end-tag-open"),Qn=Bn[++zn],!Qn)return null;if(Nn.tagName=Qn.value,Qn.value===""){if(Qn=Bn[++zn],!Qn)return null;Nn.tagName=Qn.value}for(Nn.end.column+=Qn.value.length,zn++;zn<Bn.length;zn++)if(Qn=Bn[zn],Nn.end.column+=Qn.value.length,Wn(Qn,"tag-close")){Nn.selfClosing=Qn.value=="/>";break}return Nn}if(Wn(Qn,"tag-close"))return Nn.selfClosing=Qn.value=="/>",Nn;Nn.start.column+=Qn.value.length}return null},this._findEndTagInLine=function(Dn,Pn,Bn,Nn){for(var zn=Dn.getTokens(Pn),Qn=0,Jn=0;Jn<zn.length;Jn++){var ti=zn[Jn];if(Qn+=ti.value.length,!(Qn<Nn-1)&&Wn(ti,"end-tag-open")&&(ti=zn[Jn+1],Wn(ti,"tag-name")&&ti.value===""&&(ti=zn[Jn+2]),ti&&ti.value==Bn))return!0}return!1},this.getFoldWidgetRange=function(Dn,Pn,Bn){var Nn=this._getFirstTagInLine(Dn,Bn);if(!Nn)return this.getCommentFoldWidget(Dn,Bn)&&Dn.getCommentFoldRange(Bn,Dn.getLine(Bn).length);var zn=Dn.getMatchingTags({row:Bn,column:0});if(zn)return new Xn(zn.openTag.end.row,zn.openTag.end.column,zn.closeTag.start.row,zn.closeTag.start.column)}}).call(qn.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("../../range").Range,Xn=kn("./fold_mode").FoldMode,Hn=Mn.FoldMode=function(qn){qn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+qn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+qn.end)))};Wn.inherits(Hn,Xn),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(qn,In,Dn){var Pn=qn.getLine(Dn);if(this.singleLineBlockCommentRe.test(Pn)&&!this.startRegionRe.test(Pn)&&!this.tripleStarBlockCommentRe.test(Pn))return"";var Bn=this._getFoldWidgetBase(qn,In,Dn);return!Bn&&this.startRegionRe.test(Pn)?"start":Bn},this.getFoldWidgetRange=function(qn,In,Dn,Pn){var Bn=qn.getLine(Dn);if(this.startRegionRe.test(Bn))return this.getCommentRegionBlock(qn,Bn,Dn);var Nn=Bn.match(this.foldingStartMarker);if(Nn){var zn=Nn.index;if(Nn[1])return this.openingBracketBlock(qn,Nn[1],Dn,zn);var Qn=qn.getCommentFoldRange(Dn,zn+Nn[0].length,1);return Qn&&!Qn.isMultiLine()&&(Pn?Qn=this.getSectionRange(qn,Dn):In!="all"&&(Qn=null)),Qn}if(In!=="markbegin"){var Nn=Bn.match(this.foldingStopMarker);if(Nn){var zn=Nn.index+Nn[0].length;return Nn[1]?this.closingBracketBlock(qn,Nn[1],Dn,zn):qn.getCommentFoldRange(Dn,zn,-1)}}},this.getSectionRange=function(qn,In){var Dn=qn.getLine(In),Pn=Dn.search(/\S/),Bn=In,Nn=Dn.length;In+=1;for(var zn=In,Qn=qn.getLength();++In<Qn;){Dn=qn.getLine(In);var Jn=Dn.search(/\S/);if(Jn!==-1){if(Pn>Jn)break;var ti=this.getFoldWidgetRange(qn,"all",In);if(ti){if(ti.start.row<=Bn)break;if(ti.isMultiLine())In=ti.end.row;else if(Pn==Jn)break}zn=In}}return new Kn(Bn,Nn,zn,qn.getLine(zn).length)},this.getCommentRegionBlock=function(qn,In,Dn){for(var Pn=In.search(/\s*$/),Bn=qn.getLength(),Nn=Dn,zn=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Qn=1;++Dn<Bn;){In=qn.getLine(Dn);var Jn=zn.exec(In);if(Jn&&(Jn[1]?Qn--:Qn++,!Qn))break}var ti=Dn;if(ti>Nn)return new Kn(Nn,Pn,ti,In.length)}}).call(Hn.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("./xml").FoldMode,Xn=kn("./cstyle").FoldMode,Hn=Mn.FoldMode=function(qn){qn&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+qn.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+qn.end))),this.xmlFoldMode=new Kn};Wn.inherits(Hn,Xn),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(qn,In,Dn){var Pn=this.getFoldWidgetBase(qn,In,Dn);return Pn||this.xmlFoldMode.getFoldWidget(qn,In,Dn)},this.getFoldWidgetRange=function(qn,In,Dn,Pn){var Bn=this.getFoldWidgetRangeBase(qn,In,Dn,Pn);return Bn||this.xmlFoldMode.getFoldWidgetRange(qn,In,Dn)}}).call(Hn.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text").Mode,Xn=kn("./javascript_highlight_rules").JavaScriptHighlightRules,Hn=kn("./matching_brace_outdent").MatchingBraceOutdent,qn=kn("../worker/worker_client").WorkerClient,In=kn("./behaviour/javascript").JavaScriptBehaviour,Dn=kn("./folding/javascript").FoldMode,Pn=function(){this.HighlightRules=Xn,this.$outdent=new Hn,this.$behaviour=new In,this.foldingRules=new Dn};Wn.inherits(Pn,Kn),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(Bn,Nn,zn){var Qn=this.$getIndent(Nn),Jn=this.getTokenizer().getLineTokens(Nn,Bn),ti=Jn.tokens,vi=Jn.state;if(ti.length&&ti[ti.length-1].type=="comment")return Qn;if(Bn=="start"||Bn=="no_regex"){var pi=Nn.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);pi&&(Qn+=zn)}else if(Bn=="doc-start"&&(vi=="start"||vi=="no_regex"))return"";return Qn},this.checkOutdent=function(Bn,Nn,zn){return this.$outdent.checkOutdent(Nn,zn)},this.autoOutdent=function(Bn,Nn,zn){this.$outdent.autoOutdent(Nn,zn)},this.createWorker=function(Bn){var Nn=new qn(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return Nn.attachToDocument(Bn.getDocument()),Nn.on("annotate",function(zn){Bn.setAnnotations(zn.data)}),Nn.on("terminate",function(){Bn.clearAnnotations()}),Nn},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(Pn.prototype),Mn.Mode=Pn}),ace.define("ace/mode/css_completions",["require","exports","module"],function(kn,Mn,Yn){var Wn={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},Kn=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var Xn=document.createElement("c").style;for(var Hn in Xn)if(typeof Xn[Hn]=="string"){var qn=Hn.replace(/[A-Z]/g,function(In){return"-"+In.toLowerCase()});Wn.hasOwnProperty(qn)||(Wn[qn]=1)}}this.completionsDefined=!0},this.getCompletions=function(Xn,Hn,qn,In){if(this.completionsDefined||this.defineCompletions(),Xn==="ruleset"||Hn.$mode.$id=="ace/mode/scss"){var Dn=Hn.getLine(qn.row).substr(0,qn.column),Pn=/\([^)]*$/.test(Dn);return Pn&&(Dn=Dn.substr(Dn.lastIndexOf("(")+1)),/:[^;]+$/.test(Dn)?this.getPropertyValueCompletions(Xn,Hn,qn,In):this.getPropertyCompletions(Xn,Hn,qn,In,Pn)}return[]},this.getPropertyCompletions=function(Xn,Hn,qn,In,Dn){Dn=Dn||!1;var Pn=Object.keys(Wn);return Pn.map(function(Bn){return{caption:Bn,snippet:Bn+": $0"+(Dn?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(Xn,Hn,qn,In){var Dn=Hn.getLine(qn.row).substr(0,qn.column),Pn=(/([\w\-]+):[^:]*$/.exec(Dn)||{})[1];if(!Pn)return[];var Bn=[];return Pn in Wn&&typeof Wn[Pn]=="object"&&(Bn=Object.keys(Wn[Pn])),Bn.map(function(Nn){return{caption:Nn,snippet:Nn,meta:"property value",score:1e6}})}}).call(Kn.prototype),Mn.CssCompletions=Kn}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop");kn("../behaviour").Behaviour;var Kn=kn("./cstyle").CstyleBehaviour,Xn=kn("../../token_iterator").TokenIterator,Hn=function(){this.inherit(Kn),this.add("colon","insertion",function(qn,In,Dn,Pn,Bn){if(Bn===":"&&Dn.selection.isEmpty()){var Nn=Dn.getCursorPosition(),zn=new Xn(Pn,Nn.row,Nn.column),Qn=zn.getCurrentToken();if(Qn&&Qn.value.match(/\s+/)&&(Qn=zn.stepBackward()),Qn&&Qn.type==="support.type"){var Jn=Pn.doc.getLine(Nn.row),ti=Jn.substring(Nn.column,Nn.column+1);if(ti===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(Jn.substring(Nn.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(qn,In,Dn,Pn,Bn){var Nn=Pn.doc.getTextRange(Bn);if(!Bn.isMultiLine()&&Nn===":"){var zn=Dn.getCursorPosition(),Qn=new Xn(Pn,zn.row,zn.column),Jn=Qn.getCurrentToken();if(Jn&&Jn.value.match(/\s+/)&&(Jn=Qn.stepBackward()),Jn&&Jn.type==="support.type"){var ti=Pn.doc.getLine(Bn.start.row),vi=ti.substring(Bn.end.column,Bn.end.column+1);if(vi===";")return Bn.end.column++,Bn}}}),this.add("semicolon","insertion",function(qn,In,Dn,Pn,Bn){if(Bn===";"&&Dn.selection.isEmpty()){var Nn=Dn.getCursorPosition(),zn=Pn.doc.getLine(Nn.row),Qn=zn.substring(Nn.column,Nn.column+1);if(Qn===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(qn,In,Dn,Pn,Bn){if(Bn==="!"&&Dn.selection.isEmpty()){var Nn=Dn.getCursorPosition(),zn=Pn.doc.getLine(Nn.row);if(/^\s*(;|}|$)/.test(zn.substring(Nn.column)))return{text:"!important",selection:[10,10]}}})};Wn.inherits(Hn,Kn),Mn.CssBehaviour=Hn}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text").Mode,Xn=kn("./css_highlight_rules").CssHighlightRules,Hn=kn("./matching_brace_outdent").MatchingBraceOutdent,qn=kn("../worker/worker_client").WorkerClient,In=kn("./css_completions").CssCompletions,Dn=kn("./behaviour/css").CssBehaviour,Pn=kn("./folding/cstyle").FoldMode,Bn=function(){this.HighlightRules=Xn,this.$outdent=new Hn,this.$behaviour=new Dn,this.$completer=new In,this.foldingRules=new Pn};Wn.inherits(Bn,Kn),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(Nn,zn,Qn){var Jn=this.$getIndent(zn),ti=this.getTokenizer().getLineTokens(zn,Nn).tokens;if(ti.length&&ti[ti.length-1].type=="comment")return Jn;var vi=zn.match(/^.*\{\s*$/);return vi&&(Jn+=Qn),Jn},this.checkOutdent=function(Nn,zn,Qn){return this.$outdent.checkOutdent(zn,Qn)},this.autoOutdent=function(Nn,zn,Qn){this.$outdent.autoOutdent(zn,Qn)},this.getCompletions=function(Nn,zn,Qn,Jn){return this.$completer.getCompletions(Nn,zn,Qn,Jn)},this.createWorker=function(Nn){var zn=new qn(["ace"],"ace/mode/css_worker","Worker");return zn.attachToDocument(Nn.getDocument()),zn.on("annotate",function(Qn){Nn.setAnnotations(Qn.data)}),zn.on("terminate",function(){Nn.clearAnnotations()}),zn},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(Bn.prototype),Mn.Mode=Bn}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("./fold_mode").FoldMode,Xn=Mn.FoldMode=function(Hn,qn){this.defaultMode=Hn,this.subModes=qn};Wn.inherits(Xn,Kn),(function(){this.$getMode=function(Hn){typeof Hn!="string"&&(Hn=Hn[0]);for(var qn in this.subModes)if(Hn.indexOf(qn)===0)return this.subModes[qn];return null},this.$tryMode=function(Hn,qn,In,Dn){var Pn=this.$getMode(Hn);return Pn?Pn.getFoldWidget(qn,In,Dn):""},this.getFoldWidget=function(Hn,qn,In){return this.$tryMode(Hn.getState(In-1),Hn,qn,In)||this.$tryMode(Hn.getState(In),Hn,qn,In)||this.defaultMode.getFoldWidget(Hn,qn,In)},this.getFoldWidgetRange=function(Hn,qn,In){var Dn=this.$getMode(Hn.getState(In-1));return(!Dn||!Dn.getFoldWidget(Hn,qn,In))&&(Dn=this.$getMode(Hn.getState(In))),(!Dn||!Dn.getFoldWidget(Hn,qn,In))&&(Dn=this.defaultMode),Dn.getFoldWidgetRange(Hn,qn,In)}}).call(Xn.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(kn,Mn,Yn){var Wn=kn("../../lib/oop"),Kn=kn("./mixed").FoldMode,Xn=kn("./xml").FoldMode,Hn=kn("./cstyle").FoldMode,qn=Mn.FoldMode=function(In,Dn){Kn.call(this,new Xn(In,Dn),{"js-":new Hn,"css-":new Hn})};Wn.inherits(qn,Kn)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(kn,Mn,Yn){function Wn(zn,Qn){return zn.type.lastIndexOf(Qn+".xml")>-1}function Kn(zn,Qn){for(var Jn=new Hn(zn,Qn.row,Qn.column),ti=Jn.getCurrentToken();ti&&!Wn(ti,"tag-name");)ti=Jn.stepBackward();if(ti)return ti.value}function Xn(zn,Qn){for(var Jn=new Hn(zn,Qn.row,Qn.column),ti=Jn.getCurrentToken();ti&&!Wn(ti,"attribute-name");)ti=Jn.stepBackward();if(ti)return ti.value}var Hn=kn("../token_iterator").TokenIterator,qn=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],In=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],Dn=qn.concat(In),Pn={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},Bn=Object.keys(Pn),Nn=function(){};(function(){this.getCompletions=function(zn,Qn,Jn,ti){var vi=Qn.getTokenAt(Jn.row,Jn.column);if(!vi)return[];if(Wn(vi,"tag-name")||Wn(vi,"tag-open")||Wn(vi,"end-tag-open"))return this.getTagCompletions(zn,Qn,Jn,ti);if(Wn(vi,"tag-whitespace")||Wn(vi,"attribute-name"))return this.getAttributeCompletions(zn,Qn,Jn,ti);if(Wn(vi,"attribute-value"))return this.getAttributeValueCompletions(zn,Qn,Jn,ti);var pi=Qn.getLine(Jn.row).substr(0,Jn.column);return/&[a-z]*$/i.test(pi)?this.getHTMLEntityCompletions(zn,Qn,Jn,ti):[]},this.getTagCompletions=function(zn,Qn,Jn,ti){return Bn.map(function(vi){return{value:vi,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(zn,Qn,Jn,ti){var vi=Kn(Qn,Jn);if(!vi)return[];var pi=Dn;return vi in Pn&&(pi=pi.concat(Object.keys(Pn[vi]))),pi.map(function(si){return{caption:si,snippet:si+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(zn,Qn,Jn,ti){var vi=Kn(Qn,Jn),pi=Xn(Qn,Jn);if(!vi)return[];var si=[];return vi in Pn&&pi in Pn[vi]&&typeof Pn[vi][pi]=="object"&&(si=Object.keys(Pn[vi][pi])),si.map(function(ei){return{caption:ei,snippet:ei,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(zn,Qn,Jn,ti){var vi=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return vi.map(function(pi){return{caption:pi,snippet:pi,meta:"html entity",score:1e6}})}}).call(Nn.prototype),Mn.HtmlCompletions=Nn}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("../lib/lang"),Xn=kn("./text").Mode,Hn=kn("./javascript").Mode,qn=kn("./css").Mode,In=kn("./html_highlight_rules").HtmlHighlightRules,Dn=kn("./behaviour/xml").XmlBehaviour,Pn=kn("./folding/html").FoldMode,Bn=kn("./html_completions").HtmlCompletions,Nn=kn("../worker/worker_client").WorkerClient,zn=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],Qn=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],Jn=function(ti){this.fragmentContext=ti&&ti.fragmentContext,this.HighlightRules=In,this.$behaviour=new Dn,this.$completer=new Bn,this.createModeDelegates({"js-":Hn,"css-":qn}),this.foldingRules=new Pn(this.voidElements,Kn.arrayToMap(Qn))};Wn.inherits(Jn,Xn),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=Kn.arrayToMap(zn),this.getNextLineIndent=function(ti,vi,pi){return this.$getIndent(vi)},this.checkOutdent=function(ti,vi,pi){return!1},this.getCompletions=function(ti,vi,pi,si){return this.$completer.getCompletions(ti,vi,pi,si)},this.createWorker=function(ti){if(this.constructor==Jn){var vi=new Nn(["ace"],"ace/mode/html_worker","Worker");return vi.attachToDocument(ti.getDocument()),this.fragmentContext&&vi.call("setOptions",[{context:this.fragmentContext}]),vi.on("error",function(pi){ti.setAnnotations(pi.data)}),vi.on("terminate",function(){ti.clearAnnotations()}),vi}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(Jn.prototype),Mn.Mode=Jn}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text_highlight_rules").TextHighlightRules,Xn=Mn.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",Hn=Mn.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",qn=function(){var In=this.createKeywordMapper({keyword:Xn,"support.function.builtin":Hn,"invalid.deprecated":"debugger"},"identifier"),Dn="(?:(?:[1-9]\\d*)|(?:0))",Pn="(?:\\.\\d+)",Bn="(?:\\d+)",Nn="(?:(?:"+Bn+"?"+Pn+")|(?:"+Bn+"\\.))",zn="(?:(?:"+Nn+"|"+Bn+"))",Qn="(?:"+zn+"|"+Nn+")",Jn="(?:&"+Bn+")",ti="[a-zA-Z_][a-zA-Z0-9_]*",vi="(?:"+ti+"(?==))",pi="(?:\\$(?:SHLVL|\\$|\\!|\\?))",si="(?:"+ti+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(ei,mi,fi){var yi=ei[2]=="-"?"indentedHeredoc":"heredoc",gi=ei.split(this.splitRegex);return fi.push(yi,gi[4]),[{type:"constant",value:gi[1]},{type:"text",value:gi[2]},{type:"string",value:gi[3]},{type:"support.class",value:gi[4]},{type:"string",value:gi[5]}]},rules:{heredoc:[{onMatch:function(ei,mi,fi){return ei===fi[1]?(fi.shift(),fi.shift(),this.next=fi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(ei,mi,fi){return ei===fi[1]?(fi.shift(),fi.shift(),this.next=fi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(ei,mi){return mi[0]==="heredoc"||mi[0]==="indentedHeredoc"?mi[0]:ei}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:pi},{token:"variable",regex:vi},{include:"variables"},{token:"support.function",regex:si},{token:"support.function",regex:Jn},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:Qn},{token:"constant.numeric",regex:Dn+"\\b"},{token:In,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};Wn.inherits(qn,Kn),Mn.ShHighlightRules=qn}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./text").Mode,Xn=kn("./sh_highlight_rules").ShHighlightRules,Hn=kn("../range").Range,qn=kn("./folding/cstyle").FoldMode,In=function(){this.HighlightRules=Xn,this.foldingRules=new qn,this.$behaviour=this.$defaultBehaviour};Wn.inherits(In,Kn),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(Pn,Bn,Nn){var zn=this.$getIndent(Bn),Qn=this.getTokenizer().getLineTokens(Bn,Pn),Jn=Qn.tokens;if(Jn.length&&Jn[Jn.length-1].type=="comment")return zn;if(Pn=="start"){var ti=Bn.match(/^.*[\{\(\[:]\s*$/);ti&&(zn+=Nn)}return zn};var Dn={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(Pn,Bn,Nn){if(Nn!==`\r
977
+ `&&Nn!=="\r"&&Nn!==`
978
+ `)return!1;var zn=this.getTokenizer().getLineTokens(Bn.trim(),Pn).tokens;if(!zn)return!1;do var Qn=zn.pop();while(Qn&&(Qn.type=="comment"||Qn.type=="text"&&Qn.value.match(/^\s+$/)));return Qn?Qn.type=="keyword"&&Dn[Qn.value]:!1},this.autoOutdent=function(Pn,Bn,Nn){Nn+=1;var zn=this.$getIndent(Bn.getLine(Nn)),Qn=Bn.getTabString();zn.slice(-Qn.length)==Qn&&Bn.remove(new Hn(Nn,zn.length-Qn.length,Nn,zn.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(In.prototype),Mn.Mode=In}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("../lib/lang"),Xn=kn("./text").Mode,Hn=kn("./xml_highlight_rules").XmlHighlightRules,qn=kn("./behaviour/xml").XmlBehaviour,In=kn("./folding/xml").FoldMode,Dn=kn("../worker/worker_client").WorkerClient,Pn=function(){this.HighlightRules=Hn,this.$behaviour=new qn,this.foldingRules=new In};Wn.inherits(Pn,Xn),(function(){this.voidElements=Kn.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(Bn){var Nn=new Dn(["ace"],"ace/mode/xml_worker","Worker");return Nn.attachToDocument(Bn.getDocument()),Nn.on("error",function(zn){Bn.setAnnotations(zn.data)}),Nn.on("terminate",function(){Bn.clearAnnotations()}),Nn},this.$id="ace/mode/xml"}).call(Pn.prototype),Mn.Mode=Pn}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(kn,Mn,Yn){var Wn=kn("../lib/oop"),Kn=kn("./behaviour/cstyle").CstyleBehaviour,Xn=kn("./text").Mode,Hn=kn("./markdown_highlight_rules").MarkdownHighlightRules,qn=kn("./folding/markdown").FoldMode,In=function(){this.HighlightRules=Hn,this.createModeDelegates({javascript:kn("./javascript").Mode,html:kn("./html").Mode,bash:kn("./sh").Mode,sh:kn("./sh").Mode,xml:kn("./xml").Mode,css:kn("./css").Mode}),this.foldingRules=new qn,this.$behaviour=new Kn({braces:!0})};Wn.inherits(In,Xn),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(Dn,Pn,Bn){if(Dn=="listblock"){var Nn=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(Pn);if(!Nn)return"";var zn=Nn[2];return zn||(zn=parseInt(Nn[3],10)+1+"."),Nn[1]+zn+Nn[4]}return this.$getIndent(Pn)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(In.prototype),Mn.Mode=In}),function(){ace.require(["ace/mode/markdown"],function(kn){vn.exports=kn})}()}(pc)),pc.exports}Jb();var gc={exports:{}},zd;function ex(){return zd||(zd=1,function(vn,_n){ace.define("ace/theme/twilight-css",["require","exports","module"],function(kn,Mn,Yn){Yn.exports=`.ace-twilight .ace_gutter {
979
+ background: #232323;
980
+ color: #E2E2E2
981
+ }
982
+
983
+ .ace-twilight .ace_print-margin {
984
+ width: 1px;
985
+ background: #232323
986
+ }
987
+
988
+ .ace-twilight {
989
+ background-color: #141414;
990
+ color: #F8F8F8
991
+ }
992
+
993
+ .ace-twilight .ace_cursor {
994
+ color: #A7A7A7
995
+ }
996
+
997
+ .ace-twilight .ace_marker-layer .ace_selection {
998
+ background: rgba(221, 240, 255, 0.20)
999
+ }
1000
+
1001
+ .ace-twilight.ace_multiselect .ace_selection.ace_start {
1002
+ box-shadow: 0 0 3px 0px #141414;
1003
+ }
1004
+
1005
+ .ace-twilight .ace_marker-layer .ace_step {
1006
+ background: rgb(102, 82, 0)
1007
+ }
1008
+
1009
+ .ace-twilight .ace_marker-layer .ace_bracket {
1010
+ margin: -1px 0 0 -1px;
1011
+ border: 1px solid rgba(255, 255, 255, 0.25)
1012
+ }
1013
+
1014
+ .ace-twilight .ace_marker-layer .ace_active-line {
1015
+ background: rgba(255, 255, 255, 0.031)
1016
+ }
1017
+
1018
+ .ace-twilight .ace_gutter-active-line {
1019
+ background-color: rgba(255, 255, 255, 0.031)
1020
+ }
1021
+
1022
+ .ace-twilight .ace_marker-layer .ace_selected-word {
1023
+ border: 1px solid rgba(221, 240, 255, 0.20)
1024
+ }
1025
+
1026
+ .ace-twilight .ace_invisible {
1027
+ color: rgba(255, 255, 255, 0.25)
1028
+ }
1029
+
1030
+ .ace-twilight .ace_keyword,
1031
+ .ace-twilight .ace_meta {
1032
+ color: #CDA869
1033
+ }
1034
+
1035
+ .ace-twilight .ace_constant,
1036
+ .ace-twilight .ace_constant.ace_character,
1037
+ .ace-twilight .ace_constant.ace_character.ace_escape,
1038
+ .ace-twilight .ace_constant.ace_other,
1039
+ .ace-twilight .ace_heading,
1040
+ .ace-twilight .ace_markup.ace_heading,
1041
+ .ace-twilight .ace_support.ace_constant {
1042
+ color: #CF6A4C
1043
+ }
1044
+
1045
+ .ace-twilight .ace_invalid.ace_illegal {
1046
+ color: #F8F8F8;
1047
+ background-color: rgba(86, 45, 86, 0.75)
1048
+ }
1049
+
1050
+ .ace-twilight .ace_invalid.ace_deprecated {
1051
+ text-decoration: underline;
1052
+ font-style: italic;
1053
+ color: #D2A8A1
1054
+ }
1055
+
1056
+ .ace-twilight .ace_support {
1057
+ color: #9B859D
1058
+ }
1059
+
1060
+ .ace-twilight .ace_fold {
1061
+ background-color: #AC885B;
1062
+ border-color: #F8F8F8
1063
+ }
1064
+
1065
+ .ace-twilight .ace_support.ace_function {
1066
+ color: #DAD085
1067
+ }
1068
+
1069
+ .ace-twilight .ace_list,
1070
+ .ace-twilight .ace_markup.ace_list,
1071
+ .ace-twilight .ace_storage {
1072
+ color: #F9EE98
1073
+ }
1074
+
1075
+ .ace-twilight .ace_entity.ace_name.ace_function,
1076
+ .ace-twilight .ace_meta.ace_tag {
1077
+ color: #AC885B
1078
+ }
1079
+
1080
+ .ace-twilight .ace_string {
1081
+ color: #8F9D6A
1082
+ }
1083
+
1084
+ .ace-twilight .ace_string.ace_regexp {
1085
+ color: #E9C062
1086
+ }
1087
+
1088
+ .ace-twilight .ace_comment {
1089
+ font-style: italic;
1090
+ color: #5F5A60
1091
+ }
1092
+
1093
+ .ace-twilight .ace_variable {
1094
+ color: #7587A6
1095
+ }
1096
+
1097
+ .ace-twilight .ace_xml-pe {
1098
+ color: #494949
1099
+ }
1100
+
1101
+ .ace-twilight .ace_indent-guide {
1102
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
1103
+ }
1104
+
1105
+ .ace-twilight .ace_indent-guide-active {
1106
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
1107
+ }
1108
+ `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(kn,Mn,Yn){Mn.isDark=!0,Mn.cssClass="ace-twilight",Mn.cssText=kn("./twilight-css");var Wn=kn("../lib/dom");Wn.importCssString(Mn.cssText,Mn.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(kn){vn.exports=kn})}()}(gc)),gc.exports}ex();var mc={exports:{}},Hd;function tx(){return Hd||(Hd=1,function(vn,_n){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(kn,Mn,Yn){function Wn(ei){var mi=new Date().toLocaleString("en-us",ei);return mi.length==1?"0"+mi:mi}var Kn=kn("./lib/dom"),Xn=kn("./lib/oop"),Hn=kn("./lib/event_emitter").EventEmitter,qn=kn("./lib/lang"),In=kn("./range").Range,Dn=kn("./range_list").RangeList,Pn=kn("./keyboard/hash_handler").HashHandler,Bn=kn("./tokenizer").Tokenizer,Nn=kn("./clipboard"),zn={CURRENT_WORD:function(ei){return ei.session.getTextRange(ei.session.getWordRange())},SELECTION:function(ei,mi,fi){var yi=ei.session.getTextRange();return fi?yi.replace(/\n\r?([ \t]*\S)/g,`
1109
+ `+fi+"$1"):yi},CURRENT_LINE:function(ei){return ei.session.getLine(ei.getCursorPosition().row)},PREV_LINE:function(ei){return ei.session.getLine(ei.getCursorPosition().row-1)},LINE_INDEX:function(ei){return ei.getCursorPosition().row},LINE_NUMBER:function(ei){return ei.getCursorPosition().row+1},SOFT_TABS:function(ei){return ei.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(ei){return ei.session.getTabSize()},CLIPBOARD:function(ei){return Nn.getText&&Nn.getText()},FILENAME:function(ei){return/[^/\\]*$/.exec(this.FILEPATH(ei))[0]},FILENAME_BASE:function(ei){return/[^/\\]*$/.exec(this.FILEPATH(ei))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(ei){return this.FILEPATH(ei).replace(/[^/\\]*$/,"")},FILEPATH:function(ei){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(ei){var mi=ei.session.$mode||{};return mi.blockComment&&mi.blockComment.start||""},BLOCK_COMMENT_END:function(ei){var mi=ei.session.$mode||{};return mi.blockComment&&mi.blockComment.end||""},LINE_COMMENT:function(ei){var mi=ei.session.$mode||{};return mi.lineCommentStart||""},CURRENT_YEAR:Wn.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:Wn.bind(null,{year:"2-digit"}),CURRENT_MONTH:Wn.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:Wn.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:Wn.bind(null,{month:"short"}),CURRENT_DATE:Wn.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:Wn.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:Wn.bind(null,{weekday:"short"}),CURRENT_HOUR:Wn.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:Wn.bind(null,{minute:"2-digit"}),CURRENT_SECOND:Wn.bind(null,{second:"2-digit"})};zn.SELECTED_TEXT=zn.SELECTION;var Qn=function(){function ei(){this.snippetMap={},this.snippetNameMap={},this.variables=zn}return ei.prototype.getTokenizer=function(){return ei.$tokenizer||this.createTokenizer()},ei.prototype.createTokenizer=function(){function mi(gi){return gi=gi.substr(1),/^\d+$/.test(gi)?[{tabstopId:parseInt(gi,10)}]:[{text:gi}]}function fi(gi){return"(?:[^\\\\"+gi+"]|\\\\.)"}var yi={regex:"/("+fi("/")+"+)/",onMatch:function(gi,xi,ai){var oi=ai[0];return oi.fmtString=!0,oi.guard=gi.slice(1,-1),oi.flag="",""},next:"formatString"};return ei.$tokenizer=new Bn({start:[{regex:/\\./,onMatch:function(gi,xi,ai){var oi=gi[1];return(oi=="}"&&ai.length||"`$\\".indexOf(oi)!=-1)&&(gi=oi),[gi]}},{regex:/}/,onMatch:function(gi,xi,ai){return[ai.length?ai.shift():gi]}},{regex:/\$(?:\d+|\w+)/,onMatch:mi},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(gi,xi,ai){var oi=mi(gi.substr(1));return ai.unshift(oi[0]),oi},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+fi("\\|")+"*\\|",onMatch:function(gi,xi,ai){var oi=gi.slice(1,-1).replace(/\\[,|\\]|,/g,function(li){return li.length==2?li[1]:"\0"}).split("\0").map(function(li){return{value:li}});return ai[0].choices=oi,[oi[0]]},next:"start"},yi,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(gi,xi,ai){return ai.length&&ai[0].expectElse?(ai[0].expectElse=!1,ai[0].ifEnd={elseEnd:ai[0]},[ai[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(gi,xi,ai){var oi=gi[1];return oi=="}"&&ai.length||"`$\\".indexOf(oi)!=-1?gi=oi:oi=="n"?gi=`
1110
+ `:oi=="t"?gi=" ":"ulULE".indexOf(oi)!=-1&&(gi={changeCase:oi,local:oi>"a"}),[gi]}},{regex:"/\\w*}",onMatch:function(gi,xi,ai){var oi=ai.shift();return oi&&(oi.flag=gi.slice(1,-1)),this.next=oi&&oi.tabstopId?"start":"",[oi||gi]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(gi,xi,ai){return[{text:gi.slice(1)}]}},{regex:/\${\w+/,onMatch:function(gi,xi,ai){var oi={text:gi.slice(2)};return ai.unshift(oi),[oi]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(gi,xi,ai){var oi=ai.shift();return this.next=oi&&oi.tabstopId?"start":"",[oi||gi]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(gi,xi,ai){var oi=ai[0];return oi.formatFunction=gi.slice(2,-1),[ai.shift()]},next:"formatString"},yi,{regex:/:[\?\-+]?/,onMatch:function(gi,xi,ai){gi[1]=="+"&&(ai[0].ifEnd=ai[0]),gi[1]=="?"&&(ai[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),ei.$tokenizer},ei.prototype.tokenizeTmSnippet=function(mi,fi){return this.getTokenizer().getLineTokens(mi,fi).tokens.map(function(yi){return yi.value||yi})},ei.prototype.getVariableValue=function(mi,fi,yi){if(/^\d+$/.test(fi))return(this.variables.__||{})[fi]||"";if(/^[A-Z]\d+$/.test(fi))return(this.variables[fi[0]+"__"]||{})[fi.substr(1)]||"";if(fi=fi.replace(/^TM_/,""),!this.variables.hasOwnProperty(fi))return"";var gi=this.variables[fi];return typeof gi=="function"&&(gi=this.variables[fi](mi,fi,yi)),gi??""},ei.prototype.tmStrFormat=function(mi,fi,yi){if(!fi.fmt)return mi;var gi=fi.flag||"",xi=fi.guard;xi=new RegExp(xi,gi.replace(/[^gim]/g,""));var ai=typeof fi.fmt=="string"?this.tokenizeTmSnippet(fi.fmt,"formatString"):fi.fmt,oi=this,li=mi.replace(xi,function(){var wi=oi.variables.__;oi.variables.__=[].slice.call(arguments);for(var bi=oi.resolveVariables(ai,yi),_i="E",Ti=0;Ti<bi.length;Ti++){var Li=bi[Ti];if(typeof Li=="object")if(bi[Ti]="",Li.changeCase&&Li.local){var Ri=bi[Ti+1];Ri&&typeof Ri=="string"&&(Li.changeCase=="u"?bi[Ti]=Ri[0].toUpperCase():bi[Ti]=Ri[0].toLowerCase(),bi[Ti+1]=Ri.substr(1))}else Li.changeCase&&(_i=Li.changeCase);else _i=="U"?bi[Ti]=Li.toUpperCase():_i=="L"&&(bi[Ti]=Li.toLowerCase())}return oi.variables.__=wi,bi.join("")});return li},ei.prototype.tmFormatFunction=function(mi,fi,yi){return fi.formatFunction=="upcase"?mi.toUpperCase():fi.formatFunction=="downcase"?mi.toLowerCase():mi},ei.prototype.resolveVariables=function(mi,fi){function yi(_i){var Ti=mi.indexOf(_i,oi+1);Ti!=-1&&(oi=Ti)}for(var gi=[],xi="",ai=!0,oi=0;oi<mi.length;oi++){var li=mi[oi];if(typeof li=="string"){gi.push(li),li==`
1111
+ `?(ai=!0,xi=""):ai&&(xi=/^\t*/.exec(li)[0],ai=/\S/.test(li));continue}if(li){if(ai=!1,li.fmtString){var wi=mi.indexOf(li,oi+1);wi==-1&&(wi=mi.length),li.fmt=mi.slice(oi+1,wi),oi=wi}if(li.text){var bi=this.getVariableValue(fi,li.text,xi)+"";li.fmtString&&(bi=this.tmStrFormat(bi,li,fi)),li.formatFunction&&(bi=this.tmFormatFunction(bi,li,fi)),bi&&!li.ifEnd?(gi.push(bi),yi(li)):!bi&&li.ifEnd&&yi(li.ifEnd)}else li.elseEnd?yi(li.elseEnd):(li.tabstopId!=null||li.changeCase!=null)&&gi.push(li)}}return gi},ei.prototype.getDisplayTextForSnippet=function(mi,fi){var yi=Jn.call(this,mi,fi);return yi.text},ei.prototype.insertSnippetForSelection=function(mi,fi,yi){yi===void 0&&(yi={});var gi=Jn.call(this,mi,fi,yi),xi=mi.getSelectionRange(),ai=mi.session.replace(xi,gi.text),oi=new ti(mi),li=mi.inVirtualSelectionMode&&mi.selection.index;oi.addTabstops(gi.tabstops,xi.start,ai,li)},ei.prototype.insertSnippet=function(mi,fi,yi){yi===void 0&&(yi={});var gi=this;if(mi.inVirtualSelectionMode)return gi.insertSnippetForSelection(mi,fi,yi);mi.forEachSelection(function(){gi.insertSnippetForSelection(mi,fi,yi)},null,{keepOrder:!0}),mi.tabstopManager&&mi.tabstopManager.tabNext()},ei.prototype.$getScope=function(mi){var fi=mi.session.$mode.$id||"";if(fi=fi.split("/").pop(),fi==="html"||fi==="php"){fi==="php"&&!mi.session.$mode.inlinePhp&&(fi="html");var yi=mi.getCursorPosition(),gi=mi.session.getState(yi.row);typeof gi=="object"&&(gi=gi[0]),gi.substring&&(gi.substring(0,3)=="js-"?fi="javascript":gi.substring(0,4)=="css-"?fi="css":gi.substring(0,4)=="php-"&&(fi="php"))}return fi},ei.prototype.getActiveScopes=function(mi){var fi=this.$getScope(mi),yi=[fi],gi=this.snippetMap;return gi[fi]&&gi[fi].includeScopes&&yi.push.apply(yi,gi[fi].includeScopes),yi.push("_"),yi},ei.prototype.expandWithTab=function(mi,fi){var yi=this,gi=mi.forEachSelection(function(){return yi.expandSnippetForSelection(mi,fi)},null,{keepOrder:!0});return gi&&mi.tabstopManager&&mi.tabstopManager.tabNext(),gi},ei.prototype.expandSnippetForSelection=function(mi,fi){var yi=mi.getCursorPosition(),gi=mi.session.getLine(yi.row),xi=gi.substring(0,yi.column),ai=gi.substr(yi.column),oi=this.snippetMap,li;return this.getActiveScopes(mi).some(function(wi){var bi=oi[wi];return bi&&(li=this.findMatchingSnippet(bi,xi,ai)),!!li},this),li?(fi&&fi.dryRun||(mi.session.doc.removeInLine(yi.row,yi.column-li.replaceBefore.length,yi.column+li.replaceAfter.length),this.variables.M__=li.matchBefore,this.variables.T__=li.matchAfter,this.insertSnippetForSelection(mi,li.content),this.variables.M__=this.variables.T__=null),!0):!1},ei.prototype.findMatchingSnippet=function(mi,fi,yi){for(var gi=mi.length;gi--;){var xi=mi[gi];if(!(xi.startRe&&!xi.startRe.test(fi))&&!(xi.endRe&&!xi.endRe.test(yi))&&!(!xi.startRe&&!xi.endRe))return xi.matchBefore=xi.startRe?xi.startRe.exec(fi):[""],xi.matchAfter=xi.endRe?xi.endRe.exec(yi):[""],xi.replaceBefore=xi.triggerRe?xi.triggerRe.exec(fi)[0]:"",xi.replaceAfter=xi.endTriggerRe?xi.endTriggerRe.exec(yi)[0]:"",xi}},ei.prototype.register=function(mi,fi){function yi(wi){return wi&&!/^\^?\(.*\)\$?$|^\\b$/.test(wi)&&(wi="(?:"+wi+")"),wi||""}function gi(wi,bi,_i){return wi=yi(wi),bi=yi(bi),wi=bi+wi,wi&&wi[wi.length-1]!="$"&&(wi+="$"),new RegExp(wi)}function xi(wi){wi.scope||(wi.scope=fi||"_"),fi=wi.scope,ai[fi]||(ai[fi]=[],oi[fi]={});var bi=oi[fi];if(wi.name){var _i=bi[wi.name];_i&&li.unregister(_i),bi[wi.name]=wi}ai[fi].push(wi),wi.prefix&&(wi.tabTrigger=wi.prefix),!wi.content&&wi.body&&(wi.content=Array.isArray(wi.body)?wi.body.join(`
1112
+ `):wi.body),wi.tabTrigger&&!wi.trigger&&(!wi.guard&&/^\w/.test(wi.tabTrigger)&&(wi.guard="\\b"),wi.trigger=qn.escapeRegExp(wi.tabTrigger)),!(!wi.trigger&&!wi.guard&&!wi.endTrigger&&!wi.endGuard)&&(wi.startRe=gi(wi.trigger,wi.guard),wi.triggerRe=new RegExp(wi.trigger),wi.endRe=gi(wi.endTrigger,wi.endGuard),wi.endTriggerRe=new RegExp(wi.endTrigger))}var ai=this.snippetMap,oi=this.snippetNameMap,li=this;mi||(mi=[]),Array.isArray(mi)?mi.forEach(xi):Object.keys(mi).forEach(function(wi){xi(mi[wi])}),this._signal("registerSnippets",{scope:fi})},ei.prototype.unregister=function(mi,fi){function yi(ai){var oi=xi[ai.scope||fi];if(oi&&oi[ai.name]){delete oi[ai.name];var li=gi[ai.scope||fi],wi=li&&li.indexOf(ai);wi>=0&&li.splice(wi,1)}}var gi=this.snippetMap,xi=this.snippetNameMap;mi.content?yi(mi):Array.isArray(mi)&&mi.forEach(yi)},ei.prototype.parseSnippetFile=function(mi){mi=mi.replace(/\r/g,"");for(var fi=[],yi={},gi=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,xi;xi=gi.exec(mi);){if(xi[1])try{yi=JSON.parse(xi[1]),fi.push(yi)}catch{}if(xi[4])yi.content=xi[4].replace(/^\t/gm,""),fi.push(yi),yi={};else{var ai=xi[2],oi=xi[3];if(ai=="regex"){var li=/\/((?:[^\/\\]|\\.)*)|$/g;yi.guard=li.exec(oi)[1],yi.trigger=li.exec(oi)[1],yi.endTrigger=li.exec(oi)[1],yi.endGuard=li.exec(oi)[1]}else ai=="snippet"?(yi.tabTrigger=oi.match(/^\S*/)[0],yi.name||(yi.name=oi)):ai&&(yi[ai]=oi)}}return fi},ei.prototype.getSnippetByName=function(mi,fi){var yi=this.snippetNameMap,gi;return this.getActiveScopes(fi).some(function(xi){var ai=yi[xi];return ai&&(gi=ai[mi]),!!gi},this),gi},ei}();Xn.implement(Qn.prototype,Hn);var Jn=function(ei,mi,fi){function yi(Fi){for(var Qi=[],pr=0;pr<Fi.length;pr++){var fr=Fi[pr];if(typeof fr=="object"){if(bi[fr.tabstopId])continue;var ar=Fi.lastIndexOf(fr,pr-1);fr=Qi[ar]||{tabstopId:fr.tabstopId}}Qi[pr]=fr}return Qi}fi===void 0&&(fi={});var gi=ei.getCursorPosition(),xi=ei.session.getLine(gi.row),ai=ei.session.getTabString(),oi=xi.match(/^\s*/)[0];gi.column<oi.length&&(oi=oi.slice(0,gi.column)),mi=mi.replace(/\r/g,"");var li=this.tokenizeTmSnippet(mi);li=this.resolveVariables(li,ei),li=li.map(function(Fi){return Fi==`
1113
+ `&&!fi.excludeExtraIndent?Fi+oi:typeof Fi=="string"?Fi.replace(/\t/g,ai):Fi});var wi=[];li.forEach(function(Fi,Qi){if(typeof Fi=="object"){var pr=Fi.tabstopId,fr=wi[pr];if(fr||(fr=wi[pr]=[],fr.index=pr,fr.value="",fr.parents={}),fr.indexOf(Fi)===-1){Fi.choices&&!fr.choices&&(fr.choices=Fi.choices),fr.push(Fi);var ar=li.indexOf(Fi,Qi+1);if(ar!==-1){var yr=li.slice(Qi+1,ar),ro=yr.some(function(Fo){return typeof Fo=="object"});ro&&!fr.value?fr.value=yr:yr.length&&(!fr.value||typeof fr.value!="string")&&(fr.value=yr.join(""))}}}}),wi.forEach(function(Fi){Fi.length=0});for(var bi={},_i=0;_i<li.length;_i++){var Ti=li[_i];if(typeof Ti=="object"){var Li=Ti.tabstopId,Ri=wi[Li],Ii=li.indexOf(Ti,_i+1);if(bi[Li]){bi[Li]===Ti&&(delete bi[Li],Object.keys(bi).forEach(function(Fi){Ri.parents[Fi]=!0}));continue}bi[Li]=Ti;var zi=Ri.value;typeof zi!="string"?zi=yi(zi):Ti.fmt&&(zi=this.tmStrFormat(zi,Ti,ei)),li.splice.apply(li,[_i+1,Math.max(0,Ii-_i)].concat(zi,Ti)),Ri.indexOf(Ti)===-1&&Ri.push(Ti)}}var Oi=0,Bi=0,Yi="";return li.forEach(function(Fi){if(typeof Fi=="string"){var Qi=Fi.split(`
1114
+ `);Qi.length>1?(Bi=Qi[Qi.length-1].length,Oi+=Qi.length-1):Bi+=Fi.length,Yi+=Fi}else Fi&&(Fi.start?Fi.end={row:Oi,column:Bi}:Fi.start={row:Oi,column:Bi})}),{text:Yi,tabstops:wi,tokens:li}},ti=function(){function ei(mi){if(this.index=0,this.ranges=[],this.tabstops=[],mi.tabstopManager)return mi.tabstopManager;mi.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=qn.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(mi)}return ei.prototype.attach=function(mi){this.$openTabstops=null,this.selectedTabstop=null,this.editor=mi,this.session=mi.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},ei.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},ei.prototype.onChange=function(mi){for(var fi=mi.action[0]=="r",yi=this.selectedTabstop||{},gi=yi.parents||{},xi=this.tabstops.slice(),ai=0;ai<xi.length;ai++){var oi=xi[ai],li=oi==yi||gi[oi.index];if(oi.rangeList.$bias=li?0:1,mi.action=="remove"&&oi!==yi){var wi=oi.parents&&oi.parents[yi.index],bi=oi.rangeList.pointIndex(mi.start,wi);bi=bi<0?-bi-1:bi+1;var _i=oi.rangeList.pointIndex(mi.end,wi);_i=_i<0?-_i-1:_i-1;for(var Ti=oi.rangeList.ranges.slice(bi,_i),Li=0;Li<Ti.length;Li++)this.removeRange(Ti[Li])}oi.rangeList.$onChange(mi)}var Ri=this.session;!this.$inChange&&fi&&Ri.getLength()==1&&!Ri.getValue()&&this.detach()},ei.prototype.updateLinkedFields=function(){var mi=this.selectedTabstop;if(!(!mi||!mi.hasLinkedRanges||!mi.firstNonLinked)){this.$inChange=!0;for(var fi=this.session,yi=fi.getTextRange(mi.firstNonLinked),gi=0;gi<mi.length;gi++){var xi=mi[gi];if(xi.linked){var ai=xi.original,oi=Mn.snippetManager.tmStrFormat(yi,ai,this.editor);fi.replace(xi,oi)}}this.$inChange=!1}},ei.prototype.onAfterExec=function(mi){mi.command&&!mi.command.readOnly&&this.updateLinkedFields()},ei.prototype.onChangeSelection=function(){if(this.editor){for(var mi=this.editor.selection.lead,fi=this.editor.selection.anchor,yi=this.editor.selection.isEmpty(),gi=0;gi<this.ranges.length;gi++)if(!this.ranges[gi].linked){var xi=this.ranges[gi].contains(mi.row,mi.column),ai=yi||this.ranges[gi].contains(fi.row,fi.column);if(xi&&ai)return}this.detach()}},ei.prototype.onChangeSession=function(){this.detach()},ei.prototype.tabNext=function(mi){var fi=this.tabstops.length,yi=this.index+(mi||1);yi=Math.min(Math.max(yi,1),fi),yi==fi&&(yi=0),this.selectTabstop(yi),this.updateTabstopMarkers(),yi===0&&this.detach()},ei.prototype.selectTabstop=function(mi){this.$openTabstops=null;var fi=this.tabstops[this.index];if(fi&&this.addTabstopMarkers(fi),this.index=mi,fi=this.tabstops[this.index],!(!fi||!fi.length)){this.selectedTabstop=fi;var yi=fi.firstNonLinked||fi;if(fi.choices&&(yi.cursor=yi.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(yi);else{var gi=this.editor.multiSelect;gi.toSingleRange(yi);for(var xi=0;xi<fi.length;xi++)fi.hasLinkedRanges&&fi[xi].linked||gi.addRange(fi[xi].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},ei.prototype.addTabstops=function(mi,fi,yi){var gi=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!mi[0]){var xi=In.fromPoints(yi,yi);pi(xi.start,fi),pi(xi.end,fi),mi[0]=[xi],mi[0].index=0}var ai=this.index,oi=[ai+1,0],li=this.ranges,wi=this.snippetId=(this.snippetId||0)+1;mi.forEach(function(bi,_i){var Ti=this.$openTabstops[_i]||bi;Ti.snippetId=wi;for(var Li=0;Li<bi.length;Li++){var Ri=bi[Li],Ii=In.fromPoints(Ri.start,Ri.end||Ri.start);vi(Ii.start,fi),vi(Ii.end,fi),Ii.original=Ri,Ii.tabstop=Ti,li.push(Ii),Ti!=bi?Ti.unshift(Ii):Ti[Li]=Ii,Ri.fmtString||Ti.firstNonLinked&&gi?(Ii.linked=!0,Ti.hasLinkedRanges=!0):Ti.firstNonLinked||(Ti.firstNonLinked=Ii)}Ti.firstNonLinked||(Ti.hasLinkedRanges=!1),Ti===bi&&(oi.push(Ti),this.$openTabstops[_i]=Ti),this.addTabstopMarkers(Ti),Ti.rangeList=Ti.rangeList||new Dn,Ti.rangeList.$bias=0,Ti.rangeList.addList(Ti)},this),oi.length>2&&(this.tabstops.length&&oi.push(oi.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,oi))},ei.prototype.addTabstopMarkers=function(mi){var fi=this.session;mi.forEach(function(yi){yi.markerId||(yi.markerId=fi.addMarker(yi,"ace_snippet-marker","text"))})},ei.prototype.removeTabstopMarkers=function(mi){var fi=this.session;mi.forEach(function(yi){fi.removeMarker(yi.markerId),yi.markerId=null})},ei.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var mi=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&mi--,this.tabstops.forEach(function(fi){fi.snippetId===mi?this.addTabstopMarkers(fi):this.removeTabstopMarkers(fi)},this)}},ei.prototype.removeRange=function(mi){var fi=mi.tabstop.indexOf(mi);fi!=-1&&mi.tabstop.splice(fi,1),fi=this.ranges.indexOf(mi),fi!=-1&&this.ranges.splice(fi,1),fi=mi.tabstop.rangeList.ranges.indexOf(mi),fi!=-1&&mi.tabstop.splice(fi,1),this.session.removeMarker(mi.markerId),mi.tabstop.length||(fi=this.tabstops.indexOf(mi.tabstop),fi!=-1&&this.tabstops.splice(fi,1),this.tabstops.length||this.detach())},ei}();ti.prototype.keyboardHandler=new Pn,ti.prototype.keyboardHandler.bindKeys({Tab:function(ei){Mn.snippetManager&&Mn.snippetManager.expandWithTab(ei)||(ei.tabstopManager.tabNext(1),ei.renderer.scrollCursorIntoView())},"Shift-Tab":function(ei){ei.tabstopManager.tabNext(-1),ei.renderer.scrollCursorIntoView()},Esc:function(ei){ei.tabstopManager.detach()}});var vi=function(ei,mi){ei.row==0&&(ei.column+=mi.column),ei.row+=mi.row},pi=function(ei,mi){ei.row==mi.row&&(ei.column-=mi.column),ei.row-=mi.row};Kn.importCssString(`
1115
+ .ace_snippet-marker {
1116
+ -moz-box-sizing: border-box;
1117
+ box-sizing: border-box;
1118
+ background: rgba(194, 193, 208, 0.09);
1119
+ border: 1px dotted rgba(211, 208, 235, 0.62);
1120
+ position: absolute;
1121
+ }`,"snippets.css",!1),Mn.snippetManager=new Qn;var si=kn("./editor").Editor;(function(){this.insertSnippet=function(ei,mi){return Mn.snippetManager.insertSnippet(this,ei,mi)},this.expandSnippet=function(ei){return Mn.snippetManager.expandWithTab(this,ei)}}).call(si.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(kn,Mn,Yn){var Wn=kn("../virtual_renderer").VirtualRenderer,Kn=kn("../editor").Editor,Xn=kn("../range").Range,Hn=kn("../lib/event"),qn=kn("../lib/lang"),In=kn("../lib/dom"),Dn=kn("../config").nls,Pn=kn("./../lib/useragent"),Bn=function(vi){return"suggest-aria-id:".concat(vi)},Nn=Pn.isSafari?"menu":"listbox",zn=Pn.isSafari?"menuitem":"option",Qn=Pn.isSafari?"aria-current":"aria-selected",Jn=function(vi){var pi=new Wn(vi);pi.$maxLines=4;var si=new Kn(pi);return si.setHighlightActiveLine(!1),si.setShowPrintMargin(!1),si.renderer.setShowGutter(!1),si.renderer.setHighlightGutterLine(!1),si.$mouseHandler.$focusTimeout=0,si.$highlightTagPending=!0,si},ti=function(){function vi(pi){var si=In.createElement("div"),ei=Jn(si);pi&&pi.appendChild(si),si.style.display="none",ei.renderer.content.style.cursor="default",ei.renderer.setStyle("ace_autocomplete"),ei.renderer.$textLayer.element.setAttribute("role",Nn),ei.renderer.$textLayer.element.setAttribute("aria-roledescription",Dn("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),ei.renderer.$textLayer.element.setAttribute("aria-label",Dn("autocomplete.popup.aria-label","Autocomplete suggestions")),ei.renderer.textarea.setAttribute("aria-hidden","true"),ei.setOption("displayIndentGuides",!1),ei.setOption("dragDelay",150);var mi=function(){};ei.focus=mi,ei.$isFocused=!0,ei.renderer.$cursorLayer.restartTimer=mi,ei.renderer.$cursorLayer.element.style.opacity="0",ei.renderer.$maxLines=8,ei.renderer.$keepTextAreaAtCursor=!1,ei.setHighlightActiveLine(!1),ei.session.highlight(""),ei.session.$searchHighlight.clazz="ace_highlight-marker",ei.on("mousedown",function(li){var wi=li.getDocumentPosition();ei.selection.moveToPosition(wi),gi.start.row=gi.end.row=wi.row,li.stop()});var fi,yi=new Xn(-1,0,-1,1/0),gi=new Xn(-1,0,-1,1/0);gi.id=ei.session.addMarker(gi,"ace_active-line","fullLine"),ei.setSelectOnHover=function(li){li?yi.id&&(ei.session.removeMarker(yi.id),yi.id=null):yi.id=ei.session.addMarker(yi,"ace_line-hover","fullLine")},ei.setSelectOnHover(!1),ei.on("mousemove",function(li){if(!fi){fi=li;return}if(!(fi.x==li.x&&fi.y==li.y)){fi=li,fi.scrollTop=ei.renderer.scrollTop,ei.isMouseOver=!0;var wi=fi.getDocumentPosition().row;yi.start.row!=wi&&(yi.id||ei.setRow(wi),ai(wi))}}),ei.renderer.on("beforeRender",function(){if(fi&&yi.start.row!=-1){fi.$pos=null;var li=fi.getDocumentPosition().row;yi.id||ei.setRow(li),ai(li,!0)}}),ei.renderer.on("afterRender",function(){var li=ei.getRow(),wi=ei.renderer.$textLayer,bi=wi.element.childNodes[li-wi.config.firstRow],_i=document.activeElement;if(bi!==ei.selectedNode&&ei.selectedNode&&(In.removeCssClass(ei.selectedNode,"ace_selected"),_i.removeAttribute("aria-activedescendant"),ei.selectedNode.removeAttribute(Qn),ei.selectedNode.removeAttribute("id")),ei.selectedNode=bi,bi){In.addCssClass(bi,"ace_selected");var Ti=Bn(li);bi.id=Ti,wi.element.setAttribute("aria-activedescendant",Ti),_i.setAttribute("aria-activedescendant",Ti),bi.setAttribute("role",zn),bi.setAttribute("aria-roledescription",Dn("autocomplete.popup.item.aria-roledescription","item")),bi.setAttribute("aria-label",ei.getData(li).caption||ei.getData(li).value),bi.setAttribute("aria-setsize",ei.data.length),bi.setAttribute("aria-posinset",li+1),bi.setAttribute("aria-describedby","doc-tooltip"),bi.setAttribute(Qn,"true")}});var xi=function(){ai(-1)},ai=function(li,wi){li!==yi.start.row&&(yi.start.row=yi.end.row=li,wi||ei.session._emit("changeBackMarker"),ei._emit("changeHoverMarker"))};ei.getHoveredRow=function(){return yi.start.row},Hn.addListener(ei.container,"mouseout",function(){ei.isMouseOver=!1,xi()}),ei.on("hide",xi),ei.on("changeSelection",xi),ei.session.doc.getLength=function(){return ei.data.length},ei.session.doc.getLine=function(li){var wi=ei.data[li];return typeof wi=="string"?wi:wi&&wi.value||""};var oi=ei.session.bgTokenizer;return oi.$tokenizeRow=function(li){function wi(Fi,Qi){Fi&&_i.push({type:(bi.className||"")+(Qi||""),value:Fi})}var bi=ei.data[li],_i=[];if(!bi)return _i;typeof bi=="string"&&(bi={value:bi});for(var Ti=bi.caption||bi.value||bi.name,Li=Ti.toLowerCase(),Ri=(ei.filterText||"").toLowerCase(),Ii=0,zi=0,Oi=0;Oi<=Ri.length;Oi++)if(Oi!=zi&&(bi.matchMask&1<<Oi||Oi==Ri.length)){var Bi=Ri.slice(zi,Oi);zi=Oi;var Yi=Li.indexOf(Bi,Ii);if(Yi==-1)continue;wi(Ti.slice(Ii,Yi),""),Ii=Yi+Bi.length,wi(Ti.slice(Yi,Ii),"completion-highlight")}return wi(Ti.slice(Ii,Ti.length),""),_i.push({type:"completion-spacer",value:" "}),bi.meta&&_i.push({type:"completion-meta",value:bi.meta}),bi.message&&_i.push({type:"completion-message",value:bi.message}),_i},oi.$updateOnChange=mi,oi.start=mi,ei.session.$computeWidth=function(){return this.screenWidth=0},ei.isOpen=!1,ei.isTopdown=!1,ei.autoSelect=!0,ei.filterText="",ei.isMouseOver=!1,ei.data=[],ei.setData=function(li,wi){ei.filterText=wi||"",ei.setValue(qn.stringRepeat(`
1122
+ `,li.length),-1),ei.data=li||[],ei.setRow(0)},ei.getData=function(li){return ei.data[li]},ei.getRow=function(){return gi.start.row},ei.setRow=function(li){li=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,li)),gi.start.row!=li&&(ei.selection.clearSelection(),gi.start.row=gi.end.row=li||0,ei.session._emit("changeBackMarker"),ei.moveCursorTo(li||0,0),ei.isOpen&&ei._signal("select"))},ei.on("changeSelection",function(){ei.isOpen&&ei.setRow(ei.selection.lead.row),ei.renderer.scrollCursorIntoView()}),ei.hide=function(){this.container.style.display="none",ei.anchorPos=null,ei.anchor=null,ei.isOpen&&(ei.isOpen=!1,this._signal("hide"))},ei.tryShow=function(li,wi,bi,_i){if(!_i&&ei.isOpen&&ei.anchorPos&&ei.anchor&&ei.anchorPos.top===li.top&&ei.anchorPos.left===li.left&&ei.anchor===bi)return!0;var Ti=this.container,Li=window.innerHeight,Ri=window.innerWidth,Ii=this.renderer,zi=Ii.$maxLines*wi*1.4,Oi={top:0,bottom:0,left:0},Bi=Li-li.top-3*this.$borderSize-wi,Yi=li.top-3*this.$borderSize;bi||(Yi<=Bi||Bi>=zi?bi="bottom":bi="top"),bi==="top"?(Oi.bottom=li.top-this.$borderSize,Oi.top=Oi.bottom-zi):bi==="bottom"&&(Oi.top=li.top+wi+this.$borderSize,Oi.bottom=Oi.top+zi);var Fi=Oi.top>=0&&Oi.bottom<=Li;if(!_i&&!Fi)return!1;Fi?Ii.$maxPixelHeight=null:bi==="top"?Ii.$maxPixelHeight=Yi:Ii.$maxPixelHeight=Bi,bi==="top"?(Ti.style.top="",Ti.style.bottom=Li-Oi.bottom+"px",ei.isTopdown=!1):(Ti.style.top=Oi.top+"px",Ti.style.bottom="",ei.isTopdown=!0),Ti.style.display="";var Qi=li.left;return Qi+Ti.offsetWidth>Ri&&(Qi=Ri-Ti.offsetWidth),Ti.style.left=Qi+"px",Ti.style.right="",ei.isOpen||(ei.isOpen=!0,this._signal("show"),fi=null),ei.anchorPos=li,ei.anchor=bi,!0},ei.show=function(li,wi,bi){this.tryShow(li,wi,bi?"bottom":void 0,!0)},ei.goTo=function(li){var wi=this.getRow(),bi=this.session.getLength()-1;switch(li){case"up":wi=wi<=0?bi:wi-1;break;case"down":wi=wi>=bi?-1:wi+1;break;case"start":wi=0;break;case"end":wi=bi}this.setRow(wi)},ei.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},ei.$imageSize=0,ei.$borderSize=1,ei}return vi}();In.importCssString(`
1123
+ .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1124
+ background-color: #CAD6FA;
1125
+ z-index: 1;
1126
+ }
1127
+ .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1128
+ background-color: #3a674e;
1129
+ }
1130
+ .ace_editor.ace_autocomplete .ace_line-hover {
1131
+ border: 1px solid #abbffe;
1132
+ margin-top: -1px;
1133
+ background: rgba(233,233,253,0.4);
1134
+ position: absolute;
1135
+ z-index: 2;
1136
+ }
1137
+ .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
1138
+ border: 1px solid rgba(109, 150, 13, 0.8);
1139
+ background: rgba(58, 103, 78, 0.62);
1140
+ }
1141
+ .ace_completion-meta {
1142
+ opacity: 0.5;
1143
+ margin-left: 0.9em;
1144
+ }
1145
+ .ace_completion-message {
1146
+ margin-left: 0.9em;
1147
+ color: blue;
1148
+ }
1149
+ .ace_editor.ace_autocomplete .ace_completion-highlight{
1150
+ color: #2d69c7;
1151
+ }
1152
+ .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
1153
+ color: #93ca12;
1154
+ }
1155
+ .ace_editor.ace_autocomplete {
1156
+ width: 300px;
1157
+ z-index: 200000;
1158
+ border: 1px lightgray solid;
1159
+ position: fixed;
1160
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
1161
+ line-height: 1.4;
1162
+ background: #fefefe;
1163
+ color: #111;
1164
+ }
1165
+ .ace_dark.ace_editor.ace_autocomplete {
1166
+ border: 1px #484747 solid;
1167
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
1168
+ line-height: 1.4;
1169
+ background: #25282c;
1170
+ color: #c1c1c1;
1171
+ }
1172
+ .ace_autocomplete .ace_text-layer {
1173
+ width: calc(100% - 8px);
1174
+ }
1175
+ .ace_autocomplete .ace_line {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ }
1179
+ .ace_autocomplete .ace_line > * {
1180
+ min-width: 0;
1181
+ flex: 0 0 auto;
1182
+ }
1183
+ .ace_autocomplete .ace_line .ace_ {
1184
+ flex: 0 1 auto;
1185
+ overflow: hidden;
1186
+ text-overflow: ellipsis;
1187
+ }
1188
+ .ace_autocomplete .ace_completion-spacer {
1189
+ flex: 1;
1190
+ }
1191
+ .ace_autocomplete.ace_loading:after {
1192
+ content: "";
1193
+ position: absolute;
1194
+ top: 0px;
1195
+ height: 2px;
1196
+ width: 8%;
1197
+ background: blue;
1198
+ z-index: 100;
1199
+ animation: ace_progress 3s infinite linear;
1200
+ animation-delay: 300ms;
1201
+ transform: translateX(-100%) scaleX(1);
1202
+ }
1203
+ @keyframes ace_progress {
1204
+ 0% { transform: translateX(-100%) scaleX(1) }
1205
+ 50% { transform: translateX(625%) scaleX(2) }
1206
+ 100% { transform: translateX(1500%) scaleX(3) }
1207
+ }
1208
+ @media (prefers-reduced-motion) {
1209
+ .ace_autocomplete.ace_loading:after {
1210
+ transform: translateX(625%) scaleX(2);
1211
+ animation: none;
1212
+ }
1213
+ }
1214
+ `,"autocompletion.css",!1),Mn.AcePopup=ti,Mn.$singleLineEditor=Jn,Mn.getAriaId=Bn}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(kn,Mn,Yn){var Wn=function(){function Kn(Xn){this.editor=Xn,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return Kn.prototype.setScreenReaderContent=function(Xn){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var qn=this.popup.getRow(),In=this.popup.renderer.$textLayer,Dn=In.element.childNodes[qn-In.config.firstRow];if(Dn){for(var Pn="doc-tooltip ",Bn=0;Bn<this._lines.length;Bn++)Pn+="ace-inline-screenreader-line-".concat(Bn," ");Dn.setAttribute("aria-describedby",Pn)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=Xn.split(/\r\n|\r|\n/);var Hn=this.createCodeBlock();this.screenReaderDiv.appendChild(Hn)},Kn.prototype.destroy=function(){this.screenReaderDiv.remove()},Kn.prototype.createCodeBlock=function(){var Xn=document.createElement("pre");Xn.setAttribute("id","ace-inline-screenreader");for(var Hn=0;Hn<this._lines.length;Hn++){var qn=document.createElement("code");qn.setAttribute("id","ace-inline-screenreader-line-".concat(Hn));var In=document.createTextNode(this._lines[Hn]);qn.appendChild(In),Xn.appendChild(qn)}return Xn},Kn}();Mn.AceInlineScreenReader=Wn}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(kn,Mn,Yn){var Wn=kn("../snippets").snippetManager,Kn=kn("./inline_screenreader").AceInlineScreenReader,Xn=function(){function Hn(){this.editor=null}return Hn.prototype.show=function(qn,In,Dn){if(Dn=Dn||"",qn&&this.editor&&this.editor!==qn&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!qn||!In)return!1;this.inlineScreenReader||(this.inlineScreenReader=new Kn(qn));var Pn=In.snippet?Wn.getDisplayTextForSnippet(qn,In.snippet):In.value;return In.hideInlinePreview||!Pn||!Pn.startsWith(Dn)?!1:(this.editor=qn,this.inlineScreenReader.setScreenReaderContent(Pn),Pn=Pn.slice(Dn.length),Pn===""?qn.removeGhostText():qn.setGhostText(Pn),!0)},Hn.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},Hn.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},Hn.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},Hn}();Mn.AceInline=Xn}),ace.define("ace/autocomplete/util",["require","exports","module"],function(kn,Mn,Yn){Mn.parForEach=function(Kn,Xn,Hn){var qn=0,In=Kn.length;In===0&&Hn();for(var Dn=0;Dn<In;Dn++)Xn(Kn[Dn],function(Pn,Bn){qn++,qn===In&&Hn(Pn,Bn)})};var Wn=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;Mn.retrievePrecedingIdentifier=function(Kn,Xn,Hn){Hn=Hn||Wn;for(var qn=[],In=Xn-1;In>=0&&Hn.test(Kn[In]);In--)qn.push(Kn[In]);return qn.reverse().join("")},Mn.retrieveFollowingIdentifier=function(Kn,Xn,Hn){Hn=Hn||Wn;for(var qn=[],In=Xn;In<Kn.length&&Hn.test(Kn[In]);In++)qn.push(Kn[In]);return qn},Mn.getCompletionPrefix=function(Kn){var Xn=Kn.getCursorPosition(),Hn=Kn.session.getLine(Xn.row),qn;return Kn.completers.forEach((function(In){In.identifierRegexps&&In.identifierRegexps.forEach((function(Dn){!qn&&Dn&&(qn=this.retrievePrecedingIdentifier(Hn,Xn.column,Dn))}).bind(this))}).bind(this)),qn||this.retrievePrecedingIdentifier(Hn,Xn.column)},Mn.triggerAutocomplete=function(Kn,Hn){var Hn=Hn??Kn.session.getPrecedingCharacter();return Kn.completers.some(function(qn){if(qn.triggerCharacters&&Array.isArray(qn.triggerCharacters))return qn.triggerCharacters.includes(Hn)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(kn,Mn,Yn){var Wn=kn("./keyboard/hash_handler").HashHandler,Kn=kn("./autocomplete/popup").AcePopup,Xn=kn("./autocomplete/inline").AceInline,Hn=kn("./autocomplete/popup").getAriaId,qn=kn("./autocomplete/util"),In=kn("./lib/lang"),Dn=kn("./lib/dom"),Pn=kn("./snippets").snippetManager,Bn=kn("./config"),Nn=kn("./lib/event"),zn=kn("./lib/scroll").preventParentScroll,Qn=function(pi,si){si.completer&&si.completer.destroy()},Jn=function(){function pi(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new Wn,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=In.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=In.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=In.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=In.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=In.delayedCall((function(){var si=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!si||this.editor.completers.length===0||(this.completions=new vi(pi.completionsForLoading),this.openPopup(this.editor,si.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(pi,"completionsForLoading",{get:function(){return[{caption:Bn.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),pi.prototype.$init=function(){return this.popup=new Kn(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(si){this.insertMatch(),si.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),Nn.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},pi.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new Xn,this.inlineRenderer},pi.prototype.getPopup=function(){return this.popup||this.$init()},pi.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},pi.prototype.$seen=function(si){!this.hasSeen.has(si)&&si&&si.completer&&si.completer.onSeen&&typeof si.completer.onSeen=="function"&&(si.completer.onSeen(this.editor,si),this.hasSeen.add(si))},pi.prototype.$onPopupChange=function(si){if(this.inlineRenderer&&this.inlineEnabled){var ei=si?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(ei),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},pi.prototype.$updateGhostText=function(si){var ei=this.base.row,mi=this.base.column,fi=this.editor.getCursorPosition().column,yi=this.editor.session.getLine(ei).slice(mi,fi);this.inlineRenderer.show(this.editor,si,yi)?this.$seen(si):this.inlineRenderer.hide()},pi.prototype.$onPopupRender=function(){var si=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var ei=this.popup.getFirstVisibleRow();ei<=this.popup.getLastVisibleRow();ei++){var mi=this.popup.getData(ei);mi&&(!si||mi.hideInlinePreview)&&this.$seen(mi)}},pi.prototype.$onPopupShow=function(si){this.$onPopupChange(si),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},pi.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var si=this.editor.container.parentNode,ei=[];si;)ei.push(si),si.addEventListener("scroll",this.onLayoutChange,{passive:!0}),si=si.parentNode;this.$elements=ei}},pi.prototype.unObserveLayoutChanges=function(){var si=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(ei){ei.removeEventListener("scroll",si.onLayoutChange,{passive:!0})}),this.$elements=null},pi.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},pi.prototype.$updatePopupPosition=function(){var si=this.editor,ei=si.renderer,mi=ei.layerConfig.lineHeight,fi=ei.$cursorLayer.getPixelPosition(this.base,!0);fi.left-=this.popup.getTextLeftOffset();var yi=si.container.getBoundingClientRect();fi.top+=yi.top-ei.layerConfig.offset,fi.left+=yi.left-si.renderer.scrollLeft,fi.left+=ei.gutterWidth;var gi={top:fi.top,left:fi.left};ei.$ghostText&&ei.$ghostTextWidget&&this.base.row===ei.$ghostText.position.row&&(gi.top+=ei.$ghostTextWidget.el.offsetHeight);var xi=si.container.getBoundingClientRect().bottom-mi,ai=xi<gi.top?{top:xi,left:gi.left}:gi;this.popup.tryShow(ai,mi,"bottom")||this.popup.tryShow(fi,mi,"top")||this.popup.show(fi,mi)},pi.prototype.openPopup=function(si,ei,mi){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var fi=this.popup.getRow(),yi=this.popup.data[fi];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:Hn(this.popup.getRow()),inline:this.inlineEnabled}),si.keyBinding.addKeyboardHandler(this.keyboardHandler);var gi;this.stickySelection&&(gi=this.popup.data.indexOf(yi)),(!gi||gi===-1)&&(gi=0),this.popup.setRow(this.autoSelect?gi:-1),gi===fi&&yi!==this.completions.filtered[gi]&&this.$onPopupChange();var xi=this.inlineRenderer&&this.inlineEnabled;if(gi===fi&&xi){var ai=this.popup.getData(this.popup.getRow());this.$updateGhostText(ai)}mi||(this.popup.setTheme(si.getTheme()),this.popup.setFontSize(si.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},pi.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},pi.prototype.changeListener=function(si){var ei=this.editor.selection.lead;(ei.row!=this.base.row||ei.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},pi.prototype.blurListener=function(si){var ei=document.activeElement,mi=this.editor.textInput.getElement(),fi=si.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(si.relatedTarget),yi=this.popup&&this.popup.container;ei!=mi&&ei.parentNode!=yi&&!fi&&ei!=this.tooltipNode&&si.relatedTarget!=mi&&this.detach()},pi.prototype.mousedownListener=function(si){this.detach()},pi.prototype.mousewheelListener=function(si){this.popup&&!this.popup.isMouseOver&&this.detach()},pi.prototype.mouseOutListener=function(si){this.popup.isOpen&&this.$updatePopupPosition()},pi.prototype.goTo=function(si){this.popup.goTo(si)},pi.prototype.insertMatch=function(si,ei){if(si||(si=this.popup.getData(this.popup.getRow())),!si)return!1;if(si.value==="")return this.detach();var mi=this.completions,fi=this.getCompletionProvider().insertMatch(this.editor,si,mi.filterText,ei);return this.completions==mi&&this.detach(),fi},pi.prototype.showPopup=function(si,ei){this.editor&&this.detach(),this.activated=!0,this.editor=si,si.completer!=this&&(si.completer&&si.completer.detach(),si.completer=this),si.on("changeSelection",this.changeListener),si.on("blur",this.blurListener),si.on("mousedown",this.mousedownListener),si.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,ei)},pi.prototype.getCompletionProvider=function(si){return this.completionProvider||(this.completionProvider=new ti(si)),this.completionProvider},pi.prototype.gatherCompletions=function(si,ei){return this.getCompletionProvider().gatherCompletions(si,ei)},pi.prototype.updateCompletions=function(si,ei){if(si&&this.base&&this.completions){var fi=this.editor.getCursorPosition(),yi=this.editor.session.getTextRange({start:this.base,end:fi});if(yi==this.completions.filterText)return;if(this.completions.setFilter(yi),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==yi&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,yi,si);return}if(ei&&ei.matches){var fi=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(fi.row,fi.column),this.base.$insertRight=!0,this.completions=new vi(ei.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",si)}var mi=this.editor.getSession(),fi=this.editor.getCursorPosition(),yi=qn.getCompletionPrefix(this.editor);this.base=mi.doc.createAnchor(fi.row,fi.column-yi.length),this.base.$insertRight=!0;var gi={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:yi,pos:fi}).provideCompletions(this.editor,gi,(function(xi,ai,oi){var li=ai.filtered,wi=qn.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),oi){if(!li.length){var bi=!this.autoShown&&this.emptyMessage;if(typeof bi=="function"&&(bi=this.emptyMessage(wi)),bi){var _i=[{caption:bi,value:""}];this.completions=new vi(_i),this.openPopup(this.editor,wi,si),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(li.length==1&&li[0].value==wi&&!li[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&li.length==1)return this.insertMatch(li[0])}this.completions=!oi&&this.showLoadingState?new vi(pi.completionsForLoading.concat(li),ai.filterText):ai,this.openPopup(this.editor,wi,si),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!oi)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},pi.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},pi.prototype.updateDocTooltip=function(){var si=this.popup,ei=this.completions.filtered,mi=ei&&(ei[si.getHoveredRow()]||ei[si.getRow()]),fi=null;if(!mi||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var yi=this.editor.completers.length,gi=0;gi<yi;gi++){var xi=this.editor.completers[gi];if(xi.getDocTooltip&&mi.completerId===xi.id){fi=xi.getDocTooltip(mi);break}}if(!fi&&typeof mi!="string"&&(fi=mi),typeof fi=="string"&&(fi={docText:fi}),!fi||!fi.docHTML&&!fi.docText)return this.hideDocTooltip();this.showDocTooltip(fi)},pi.prototype.showDocTooltip=function(si){this.tooltipNode||(this.tooltipNode=Dn.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",zn));var ei=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(ei.isDark?"ace_dark ":"")+(ei.cssClass||"");var mi=this.tooltipNode;si.docHTML?mi.innerHTML=si.docHTML:si.docText&&(mi.textContent=si.docText),mi.parentNode||this.popup.container.appendChild(this.tooltipNode);var fi=this.popup,yi=fi.container.getBoundingClientRect();mi.style.top=fi.container.style.top,mi.style.bottom=fi.container.style.bottom,mi.style.display="block",window.innerWidth-yi.right<320?yi.left<320?fi.isTopdown?(mi.style.top=yi.bottom+"px",mi.style.left=yi.left+"px",mi.style.right="",mi.style.bottom=""):(mi.style.top=fi.container.offsetTop-mi.offsetHeight+"px",mi.style.left=yi.left+"px",mi.style.right="",mi.style.bottom=""):(mi.style.right=window.innerWidth-yi.left+"px",mi.style.left=""):(mi.style.left=yi.right+1+"px",mi.style.right="")},pi.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var si=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==si&&this.editor.focus(),this.tooltipNode=null,si.parentNode&&si.parentNode.removeChild(si)}},pi.prototype.onTooltipClick=function(si){for(var ei=si.target;ei&&ei!=this.tooltipNode;){if(ei.nodeName=="A"&&ei.href){ei.rel="noreferrer",ei.target="_blank";break}ei=ei.parentNode}},pi.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var si=this.popup.container;si&&si.parentNode&&si.parentNode.removeChild(si)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",Qn),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},pi.for=function(si){return si.completer instanceof pi||(si.completer&&(si.completer.destroy(),si.completer=null),Bn.get("sharedPopups")?(pi.$sharedInstance||(pi.$sharedInstance=new pi),si.completer=pi.$sharedInstance):(si.completer=new pi,si.once("destroy",Qn))),si.completer},pi}();Jn.prototype.commands={Up:function(pi){pi.completer.goTo("up")},Down:function(pi){pi.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(pi){pi.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(pi){pi.completer.goTo("end")},Esc:function(pi){pi.completer.detach()},Return:function(pi){return pi.completer.insertMatch()},"Shift-Return":function(pi){pi.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(pi){var si=pi.completer.insertMatch();if(si||pi.tabstopManager)return si;pi.completer.goTo("down")},Backspace:function(pi){pi.execCommand("backspace");var si=qn.getCompletionPrefix(pi);!si&&pi.completer&&pi.completer.detach()},PageUp:function(pi){pi.completer.popup.gotoPageUp()},PageDown:function(pi){pi.completer.popup.gotoPageDown()}},Jn.startCommand={name:"startAutocomplete",exec:function(pi,si){var ei=Jn.for(pi);ei.autoInsert=!1,ei.autoSelect=!0,ei.autoShown=!1,ei.showPopup(pi,si),ei.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var ti=function(){function pi(si){this.initialPosition=si,this.active=!0}return pi.prototype.insertByIndex=function(si,ei,mi){return!this.completions||!this.completions.filtered?!1:this.insertMatch(si,this.completions.filtered[ei],mi)},pi.prototype.insertMatch=function(si,ei,mi){if(!ei)return!1;if(si.startOperation({command:{name:"insertMatch"}}),ei.completer&&ei.completer.insertMatch)ei.completer.insertMatch(si,ei);else{if(!this.completions)return!1;var fi=this.completions.filterText.length,yi=0;if(ei.range&&ei.range.start.row===ei.range.end.row&&(fi-=this.initialPosition.prefix.length,fi+=this.initialPosition.pos.column-ei.range.start.column,yi+=ei.range.end.column-this.initialPosition.pos.column),fi||yi){var gi;si.selection.getAllRanges?gi=si.selection.getAllRanges():gi=[si.getSelectionRange()];for(var xi=0,ai;ai=gi[xi];xi++)ai.start.column-=fi,ai.end.column+=yi,si.session.remove(ai)}ei.snippet?Pn.insertSnippet(si,ei.snippet):this.$insertString(si,ei),ei.completer&&ei.completer.onInsert&&typeof ei.completer.onInsert=="function"&&ei.completer.onInsert(si,ei),ei.command&&ei.command==="startAutocomplete"&&si.execCommand(ei.command)}return si.endOperation(),!0},pi.prototype.$insertString=function(si,ei){var mi=ei.value||ei;si.execCommand("insertstring",mi)},pi.prototype.gatherCompletions=function(si,ei){var mi=si.getSession(),fi=si.getCursorPosition(),yi=qn.getCompletionPrefix(si),gi=[];this.completers=si.completers;var xi=si.completers.length;return si.completers.forEach(function(ai,oi){ai.getCompletions(si,mi,fi,yi,function(li,wi){ai.hideInlinePreview&&(wi=wi.map(function(bi){return Object.assign(bi,{hideInlinePreview:ai.hideInlinePreview})})),!li&&wi&&(gi=gi.concat(wi)),ei(null,{prefix:qn.getCompletionPrefix(si),matches:gi,finished:--xi===0})})}),!0},pi.prototype.provideCompletions=function(si,ei,mi){var fi=(function(ai){var oi=ai.prefix,li=ai.matches;this.completions=new vi(li),ei.exactMatch&&(this.completions.exactMatch=!0),ei.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(oi),(ai.finished||this.completions.filtered.length)&&mi(null,this.completions,ai.finished)}).bind(this),yi=!0,gi=null;if(this.gatherCompletions(si,(function(ai,oi){if(this.active){ai&&(mi(ai,[],!0),this.detach());var li=oi.prefix;if(li.indexOf(oi.prefix)===0){if(yi){gi=oi;return}fi(oi)}}}).bind(this)),yi=!1,gi){var xi=gi;gi=null,fi(xi)}},pi.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(si){typeof si.cancel=="function"&&si.cancel()})},pi}(),vi=function(){function pi(si,ei){this.all=si,this.filtered=si,this.filterText=ei||"",this.exactMatch=!1,this.ignoreCaption=!1}return pi.prototype.setFilter=function(si){if(si.length>this.filterText&&si.lastIndexOf(this.filterText,0)===0)var ei=this.filtered;else var ei=this.all;this.filterText=si,ei=this.filterCompletions(ei,this.filterText),ei=ei.sort(function(fi,yi){return yi.exactMatch-fi.exactMatch||yi.$score-fi.$score||(fi.caption||fi.value).localeCompare(yi.caption||yi.value)});var mi=null;ei=ei.filter(function(fi){var yi=fi.snippet||fi.caption||fi.value;return yi===mi?!1:(mi=yi,!0)}),this.filtered=ei},pi.prototype.filterCompletions=function(si,ei){var mi=[],fi=ei.toUpperCase(),yi=ei.toLowerCase();e:for(var gi=0,xi;xi=si[gi];gi++){var ai=!this.ignoreCaption&&xi.caption||xi.value||xi.snippet;if(ai){var oi=-1,li=0,wi=0,bi,_i;if(this.exactMatch){if(ei!==ai.substr(0,ei.length))continue e}else{var Ti=ai.toLowerCase().indexOf(yi);if(Ti>-1)wi=Ti;else for(var Li=0;Li<ei.length;Li++){var Ri=ai.indexOf(yi[Li],oi+1),Ii=ai.indexOf(fi[Li],oi+1);if(bi=Ri>=0&&(Ii<0||Ri<Ii)?Ri:Ii,bi<0)continue e;_i=bi-oi-1,_i>0&&(oi===-1&&(wi+=10),wi+=_i,li|=1<<Li),oi=bi}}xi.matchMask=li,xi.exactMatch=wi?0:1,xi.$score=(xi.score||0)-wi,mi.push(xi)}}return mi},pi}();Mn.Autocomplete=Jn,Mn.CompletionProvider=ti,Mn.FilteredList=vi}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(kn,Mn,Yn){function Wn(qn,In){var Dn=qn.getTextRange(Xn.fromPoints({row:0,column:0},In));return Dn.split(Hn).length-1}function Kn(qn,In){var Dn=Wn(qn,In),Pn=qn.getValue().split(Hn),Bn=Object.create(null),Nn=Pn[Dn];return Pn.forEach(function(zn,Qn){if(!(!zn||zn===Nn)){var Jn=Math.abs(Dn-Qn),ti=Pn.length-Jn;Bn[zn]?Bn[zn]=Math.max(ti,Bn[zn]):Bn[zn]=ti}}),Bn}var Xn=kn("../range").Range,Hn=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;Mn.getCompletions=function(qn,In,Dn,Pn,Bn){var Nn=Kn(In,Dn),zn=Object.keys(Nn);Bn(null,zn.map(function(Qn){return{caption:Qn,value:Qn,score:Nn[Qn],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(kn,Mn,Yn){var Wn=kn("../snippets").snippetManager,Kn=kn("../autocomplete").Autocomplete,Xn=kn("../config"),Hn=kn("../lib/lang"),qn=kn("../autocomplete/util"),In=kn("../autocomplete/text_completer"),Dn={getCompletions:function(fi,yi,gi,xi,ai){if(yi.$mode.completer)return yi.$mode.completer.getCompletions(fi,yi,gi,xi,ai);var oi=fi.session.getState(gi.row),li=yi.$mode.getCompletions(oi,yi,gi,xi);li=li.map(function(wi){return wi.completerId=Dn.id,wi}),ai(null,li)},id:"keywordCompleter"},Pn=function(fi){var yi={};return fi.replace(/\${(\d+)(:(.*?))?}/g,function(gi,xi,ai,oi){return yi[xi]=oi||""}).replace(/\$(\d+?)/g,function(gi,xi){return yi[xi]})},Bn={getCompletions:function(fi,yi,gi,xi,ai){var oi=[],li=yi.getTokenAt(gi.row,gi.column);li&&li.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?oi.push("html-tag"):oi=Wn.getActiveScopes(fi);var wi=Wn.snippetMap,bi=[];oi.forEach(function(_i){for(var Ti=wi[_i]||[],Li=Ti.length;Li--;){var Ri=Ti[Li],Ii=Ri.name||Ri.tabTrigger;Ii&&bi.push({caption:Ii,snippet:Ri.content,meta:Ri.tabTrigger&&!Ri.name?Ri.tabTrigger+"⇥ ":"snippet",completerId:Bn.id})}},this),ai(null,bi)},getDocTooltip:function(fi){fi.snippet&&!fi.docHTML&&(fi.docHTML=["<b>",Hn.escapeHTML(fi.caption),"</b>","<hr></hr>",Hn.escapeHTML(Pn(fi.snippet))].join(""))},id:"snippetCompleter"},Nn=[Bn,In,Dn];Mn.setCompleters=function(fi){Nn.length=0,fi&&Nn.push.apply(Nn,fi)},Mn.addCompleter=function(fi){Nn.push(fi)},Mn.textCompleter=In,Mn.keyWordCompleter=Dn,Mn.snippetCompleter=Bn;var zn={name:"expandSnippet",exec:function(fi){return Wn.expandWithTab(fi)},bindKey:"Tab"},Qn=function(fi,yi){Jn(yi.session.$mode)},Jn=function(fi){typeof fi=="string"&&(fi=Xn.$modes[fi]),fi&&(Wn.files||(Wn.files={}),ti(fi.$id,fi.snippetFileId),fi.modes&&fi.modes.forEach(Jn))},ti=function(fi,yi){!yi||!fi||Wn.files[fi]||(Wn.files[fi]={},Xn.loadModule(yi,function(gi){gi&&(Wn.files[fi]=gi,!gi.snippets&&gi.snippetText&&(gi.snippets=Wn.parseSnippetFile(gi.snippetText)),Wn.register(gi.snippets||[],gi.scope),gi.includeScopes&&(Wn.snippetMap[gi.scope].includeScopes=gi.includeScopes,gi.includeScopes.forEach(function(xi){Jn("ace/mode/"+xi)})))}))},vi=function(fi){var yi=fi.editor,gi=yi.completer&&yi.completer.activated;if(fi.command.name==="backspace")gi&&!qn.getCompletionPrefix(yi)&&yi.completer.detach();else if(fi.command.name==="insertstring"&&!gi){pi=fi;var xi=fi.editor.$liveAutocompletionDelay;xi?si.delay(xi):ei(fi)}},pi,si=Hn.delayedCall(function(){ei(pi)},0),ei=function(fi){var yi=fi.editor,gi=qn.getCompletionPrefix(yi),xi=fi.args,ai=qn.triggerAutocomplete(yi,xi);if(gi&&gi.length>=yi.$liveAutocompletionThreshold||ai){var oi=Kn.for(yi);oi.autoShown=!0,oi.showPopup(yi)}},mi=kn("../editor").Editor;kn("../config").defineOptions(mi.prototype,"editor",{enableBasicAutocompletion:{set:function(fi){fi?(this.completers||(this.completers=Array.isArray(fi)?fi:Nn),this.commands.addCommand(Kn.startCommand)):this.commands.removeCommand(Kn.startCommand)},value:!1},enableLiveAutocompletion:{set:function(fi){fi?(this.completers||(this.completers=Array.isArray(fi)?fi:Nn),this.commands.on("afterExec",vi)):this.commands.off("afterExec",vi)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(fi){fi?(this.commands.addCommand(zn),this.on("changeMode",Qn),Qn(null,this)):(this.commands.removeCommand(zn),this.off("changeMode",Qn))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(kn){vn.exports=kn})}()}(mc)),mc.exports}tx();var vc={exports:{}},Ud;function nx(){return Ud||(Ud=1,function(vn,_n){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(kn,Mn,Yn){Yn.exports=`
1215
+
1216
+ /* ------------------------------------------------------------------------------------------
1217
+ * Editor Search Form
1218
+ * --------------------------------------------------------------------------------------- */
1219
+ .ace_search {
1220
+ background-color: #ddd;
1221
+ color: #666;
1222
+ border: 1px solid #cbcbcb;
1223
+ border-top: 0 none;
1224
+ overflow: hidden;
1225
+ margin: 0;
1226
+ padding: 4px 6px 0 4px;
1227
+ position: absolute;
1228
+ top: 0;
1229
+ z-index: 99;
1230
+ white-space: normal;
1231
+ }
1232
+ .ace_search.left {
1233
+ border-left: 0 none;
1234
+ border-radius: 0px 0px 5px 0px;
1235
+ left: 0;
1236
+ }
1237
+ .ace_search.right {
1238
+ border-radius: 0px 0px 0px 5px;
1239
+ border-right: 0 none;
1240
+ right: 0;
1241
+ }
1242
+
1243
+ .ace_search_form, .ace_replace_form {
1244
+ margin: 0 20px 4px 0;
1245
+ overflow: hidden;
1246
+ line-height: 1.9;
1247
+ }
1248
+ .ace_replace_form {
1249
+ margin-right: 0;
1250
+ }
1251
+ .ace_search_form.ace_nomatch {
1252
+ outline: 1px solid red;
1253
+ }
1254
+
1255
+ .ace_search_field {
1256
+ border-radius: 3px 0 0 3px;
1257
+ background-color: white;
1258
+ color: black;
1259
+ border: 1px solid #cbcbcb;
1260
+ border-right: 0 none;
1261
+ outline: 0;
1262
+ padding: 0;
1263
+ font-size: inherit;
1264
+ margin: 0;
1265
+ line-height: inherit;
1266
+ padding: 0 6px;
1267
+ min-width: 17em;
1268
+ vertical-align: top;
1269
+ min-height: 1.8em;
1270
+ box-sizing: content-box;
1271
+ }
1272
+ .ace_searchbtn {
1273
+ border: 1px solid #cbcbcb;
1274
+ line-height: inherit;
1275
+ display: inline-block;
1276
+ padding: 0 6px;
1277
+ background: #fff;
1278
+ border-right: 0 none;
1279
+ border-left: 1px solid #dcdcdc;
1280
+ cursor: pointer;
1281
+ margin: 0;
1282
+ position: relative;
1283
+ color: #666;
1284
+ }
1285
+ .ace_searchbtn:last-child {
1286
+ border-radius: 0 3px 3px 0;
1287
+ border-right: 1px solid #cbcbcb;
1288
+ }
1289
+ .ace_searchbtn:disabled {
1290
+ background: none;
1291
+ cursor: default;
1292
+ }
1293
+ .ace_searchbtn:hover {
1294
+ background-color: #eef1f6;
1295
+ }
1296
+ .ace_searchbtn.prev, .ace_searchbtn.next {
1297
+ padding: 0px 0.7em
1298
+ }
1299
+ .ace_searchbtn.prev:after, .ace_searchbtn.next:after {
1300
+ content: "";
1301
+ border: solid 2px #888;
1302
+ width: 0.5em;
1303
+ height: 0.5em;
1304
+ border-width: 2px 0 0 2px;
1305
+ display:inline-block;
1306
+ transform: rotate(-45deg);
1307
+ }
1308
+ .ace_searchbtn.next:after {
1309
+ border-width: 0 2px 2px 0 ;
1310
+ }
1311
+ .ace_searchbtn_close {
1312
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
1313
+ border-radius: 50%;
1314
+ border: 0 none;
1315
+ color: #656565;
1316
+ cursor: pointer;
1317
+ font: 16px/16px Arial;
1318
+ padding: 0;
1319
+ height: 14px;
1320
+ width: 14px;
1321
+ top: 9px;
1322
+ right: 7px;
1323
+ position: absolute;
1324
+ }
1325
+ .ace_searchbtn_close:hover {
1326
+ background-color: #656565;
1327
+ background-position: 50% 100%;
1328
+ color: white;
1329
+ }
1330
+
1331
+ .ace_button {
1332
+ margin-left: 2px;
1333
+ cursor: pointer;
1334
+ -webkit-user-select: none;
1335
+ -moz-user-select: none;
1336
+ -o-user-select: none;
1337
+ -ms-user-select: none;
1338
+ user-select: none;
1339
+ overflow: hidden;
1340
+ opacity: 0.7;
1341
+ border: 1px solid rgba(100,100,100,0.23);
1342
+ padding: 1px;
1343
+ box-sizing: border-box!important;
1344
+ color: black;
1345
+ }
1346
+
1347
+ .ace_button:hover {
1348
+ background-color: #eee;
1349
+ opacity:1;
1350
+ }
1351
+ .ace_button:active {
1352
+ background-color: #ddd;
1353
+ }
1354
+
1355
+ .ace_button.checked {
1356
+ border-color: #3399ff;
1357
+ opacity:1;
1358
+ }
1359
+
1360
+ .ace_search_options{
1361
+ margin-bottom: 3px;
1362
+ text-align: right;
1363
+ -webkit-user-select: none;
1364
+ -moz-user-select: none;
1365
+ -o-user-select: none;
1366
+ -ms-user-select: none;
1367
+ user-select: none;
1368
+ clear: both;
1369
+ }
1370
+
1371
+ .ace_search_counter {
1372
+ float: left;
1373
+ font-family: arial;
1374
+ padding: 0 8px;
1375
+ }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(kn,Mn,Yn){var Wn=kn("../lib/dom"),Kn=kn("../lib/lang"),Xn=kn("../lib/event"),Hn=kn("./searchbox-css"),qn=kn("../keyboard/hash_handler").HashHandler,In=kn("../lib/keys"),Dn=kn("../config").nls,Pn=999;Wn.importCssString(Hn,"ace_searchbox",!1);var Bn=function(){function Qn(Jn,ti,vi){this.activeInput;var pi=Wn.createElement("div");Wn.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:Dn("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},Dn("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:Dn("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},Dn("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},Dn("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:Dn("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:Dn("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:Dn("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:Dn("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:Dn("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],pi),this.element=pi.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(Jn),Wn.importCssString(Hn,"ace_searchbox",Jn.container)}return Qn.prototype.setEditor=function(Jn){Jn.searchBox=this,Jn.renderer.scroller.appendChild(this.element),this.editor=Jn},Qn.prototype.setSession=function(Jn){this.searchRange=null,this.$syncOptions(!0)},Qn.prototype.$initElements=function(Jn){this.searchBox=Jn.querySelector(".ace_search_form"),this.replaceBox=Jn.querySelector(".ace_replace_form"),this.searchOption=Jn.querySelector("[action=searchInSelection]"),this.replaceOption=Jn.querySelector("[action=toggleReplace]"),this.regExpOption=Jn.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=Jn.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=Jn.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=Jn.querySelector(".ace_search_counter")},Qn.prototype.$init=function(){var Jn=this.element;this.$initElements(Jn);var ti=this;Xn.addListener(Jn,"mousedown",function(vi){setTimeout(function(){ti.activeInput.focus()},0),Xn.stopPropagation(vi)}),Xn.addListener(Jn,"click",function(vi){var pi=vi.target||vi.srcElement,si=pi.getAttribute("action");si&&ti[si]?ti[si]():ti.$searchBarKb.commands[si]&&ti.$searchBarKb.commands[si].exec(ti),Xn.stopPropagation(vi)}),Xn.addCommandKeyListener(Jn,function(vi,pi,si){var ei=In.keyCodeToString(si),mi=ti.$searchBarKb.findKeyCommand(pi,ei);mi&&mi.exec&&(mi.exec(ti),Xn.stopEvent(vi))}),this.$onChange=Kn.delayedCall(function(){ti.find(!1,!1)}),Xn.addListener(this.searchInput,"input",function(){ti.$onChange.schedule(20)}),Xn.addListener(this.searchInput,"focus",function(){ti.activeInput=ti.searchInput,ti.searchInput.value&&ti.highlight()}),Xn.addListener(this.replaceInput,"focus",function(){ti.activeInput=ti.replaceInput,ti.searchInput.value&&ti.highlight()})},Qn.prototype.setSearchRange=function(Jn){this.searchRange=Jn,Jn?this.searchRangeMarker=this.editor.session.addMarker(Jn,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},Qn.prototype.$syncOptions=function(Jn){Wn.setCssClass(this.replaceOption,"checked",this.searchRange),Wn.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",Wn.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),Wn.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),Wn.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var ti=this.editor.getReadOnly();this.replaceOption.style.display=ti?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!ti?"":"none",this.find(!1,!1,Jn)},Qn.prototype.highlight=function(Jn){this.editor.session.highlight(Jn||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},Qn.prototype.find=function(Jn,ti,vi){var pi=this.editor.find(this.searchInput.value,{skipCurrent:Jn,backwards:ti,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:vi,range:this.searchRange}),si=!pi&&this.searchInput.value;Wn.setCssClass(this.searchBox,"ace_nomatch",si),this.editor._emit("findSearchBox",{match:!si}),this.highlight(),this.updateCounter()},Qn.prototype.updateCounter=function(){var Jn=this.editor,ti=Jn.$search.$options.re,vi=ti.unicode,pi=0,si=0;if(ti){var ei=this.searchRange?Jn.session.getTextRange(this.searchRange):Jn.getValue(),mi=Jn.session.doc.positionToIndex(Jn.selection.anchor);this.searchRange&&(mi-=Jn.session.doc.positionToIndex(this.searchRange.start));for(var fi=ti.lastIndex=0,yi;(yi=ti.exec(ei))&&(pi++,fi=yi.index,fi<=mi&&si++,!(pi>Pn||!yi[0]&&(ti.lastIndex=fi+=Kn.skipEmptyMatch(ei,fi,vi),fi>=ei.length))););}this.searchCounter.textContent=Dn("search-box.search-counter","$0 of $1",[si,pi>Pn?Pn+"+":pi])},Qn.prototype.findNext=function(){this.find(!0,!1)},Qn.prototype.findPrev=function(){this.find(!0,!0)},Qn.prototype.findAll=function(){var Jn=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),ti=!Jn&&this.searchInput.value;Wn.setCssClass(this.searchBox,"ace_nomatch",ti),this.editor._emit("findSearchBox",{match:!ti}),this.highlight(),this.hide()},Qn.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},Qn.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},Qn.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},Qn.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},Qn.prototype.show=function(Jn,ti){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=ti,Jn&&(this.searchInput.value=Jn),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},Qn.prototype.isFocused=function(){var Jn=document.activeElement;return Jn==this.searchInput||Jn==this.replaceInput},Qn}(),Nn=new qn;Nn.bindKeys({"Ctrl-f|Command-f":function(Qn){var Jn=Qn.isReplace=!Qn.isReplace;Qn.replaceBox.style.display=Jn?"":"none",Qn.replaceOption.checked=!1,Qn.$syncOptions(),Qn.searchInput.focus()},"Ctrl-H|Command-Option-F":function(Qn){Qn.editor.getReadOnly()||(Qn.replaceOption.checked=!0,Qn.$syncOptions(),Qn.replaceInput.focus())},"Ctrl-G|Command-G":function(Qn){Qn.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(Qn){Qn.findPrev()},esc:function(Qn){setTimeout(function(){Qn.hide()})},Return:function(Qn){Qn.activeInput==Qn.replaceInput&&Qn.replace(),Qn.findNext()},"Shift-Return":function(Qn){Qn.activeInput==Qn.replaceInput&&Qn.replace(),Qn.findPrev()},"Alt-Return":function(Qn){Qn.activeInput==Qn.replaceInput&&Qn.replaceAll(),Qn.findAll()},Tab:function(Qn){(Qn.activeInput==Qn.replaceInput?Qn.searchInput:Qn.replaceInput).focus()}}),Nn.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(Qn){Qn.regExpOption.checked=!Qn.regExpOption.checked,Qn.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(Qn){Qn.caseSensitiveOption.checked=!Qn.caseSensitiveOption.checked,Qn.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(Qn){Qn.wholeWordOption.checked=!Qn.wholeWordOption.checked,Qn.$syncOptions()}},{name:"toggleReplace",exec:function(Qn){Qn.replaceOption.checked=!Qn.replaceOption.checked,Qn.$syncOptions()}},{name:"searchInSelection",exec:function(Qn){Qn.searchOption.checked=!Qn.searchRange,Qn.setSearchRange(Qn.searchOption.checked&&Qn.editor.getSelectionRange()),Qn.$syncOptions()}}]);var zn=new qn([{bindKey:"Esc",name:"closeSearchBar",exec:function(Qn){Qn.searchBox.hide()}}]);Bn.prototype.$searchBarKb=Nn,Bn.prototype.$closeSearchBarKb=zn,Mn.SearchBox=Bn,Mn.Search=function(Qn,Jn){var ti=Qn.searchBox||new Bn(Qn);ti.show(Qn.session.getTextRange(),Jn)}}),function(){ace.require(["ace/ext/searchbox"],function(kn){vn.exports=kn})}()}(vc)),vc.exports}nx();var ix=Object.defineProperty,rx=(vn,_n,kn)=>_n in vn?ix(vn,_n,{enumerable:!0,configurable:!0,writable:!0,value:kn}):vn[_n]=kn,Lr=(vn,_n,kn)=>rx(vn,_n+"",kn);function Mp(vn,_n){return function(){return vn.apply(_n,arguments)}}const{toString:ox}=Object.prototype,{getPrototypeOf:Cu}=Object,Va=(vn=>_n=>{const kn=ox.call(_n);return vn[kn]||(vn[kn]=kn.slice(8,-1).toLowerCase())})(Object.create(null)),di=vn=>(vn=vn.toLowerCase(),_n=>Va(_n)===vn),ja=vn=>_n=>typeof _n===vn,{isArray:yo}=Array,xs=ja("undefined");function sx(vn){return vn!==null&&!xs(vn)&&vn.constructor!==null&&!xs(vn.constructor)&&Vn(vn.constructor.isBuffer)&&vn.constructor.isBuffer(vn)}const Lp=di("ArrayBuffer");function ax(vn){let _n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?_n=ArrayBuffer.isView(vn):_n=vn&&vn.buffer&&Lp(vn.buffer),_n}const lx=ja("string"),Vn=ja("function"),Rp=ja("number"),Ga=vn=>vn!==null&&typeof vn=="object",cx=vn=>vn===!0||vn===!1,Ia=vn=>{if(Va(vn)!=="object")return!1;const _n=Cu(vn);return(_n===null||_n===Object.prototype||Object.getPrototypeOf(_n)===null)&&!(Symbol.toStringTag in vn)&&!(Symbol.iterator in vn)},ux=di("Date"),hx=di("File"),dx=di("Blob"),fx=di("FileList"),px=vn=>Ga(vn)&&Vn(vn.pipe),gx=vn=>{let _n;return vn&&(typeof FormData=="function"&&vn instanceof FormData||Vn(vn.append)&&((_n=Va(vn))==="formdata"||_n==="object"&&Vn(vn.toString)&&vn.toString()==="[object FormData]"))},mx=di("URLSearchParams"),[vx,yx,wx,bx]=["ReadableStream","Request","Response","Headers"].map(di),xx=vn=>vn.trim?vn.trim():vn.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ss(vn,_n,{allOwnKeys:kn=!1}={}){if(vn===null||typeof vn>"u")return;let Mn,Yn;if(typeof vn!="object"&&(vn=[vn]),yo(vn))for(Mn=0,Yn=vn.length;Mn<Yn;Mn++)_n.call(null,vn[Mn],Mn,vn);else{const Wn=kn?Object.getOwnPropertyNames(vn):Object.keys(vn),Kn=Wn.length;let Xn;for(Mn=0;Mn<Kn;Mn++)Xn=Wn[Mn],_n.call(null,vn[Xn],Xn,vn)}}function Ep(vn,_n){_n=_n.toLowerCase();const kn=Object.keys(vn);let Mn=kn.length,Yn;for(;Mn-- >0;)if(Yn=kn[Mn],_n===Yn.toLowerCase())return Yn;return null}const Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ip=vn=>!xs(vn)&&vn!==Or;function au(){const{caseless:vn}=Ip(this)&&this||{},_n={},kn=(Mn,Yn)=>{const Wn=vn&&Ep(_n,Yn)||Yn;Ia(_n[Wn])&&Ia(Mn)?_n[Wn]=au(_n[Wn],Mn):Ia(Mn)?_n[Wn]=au({},Mn):yo(Mn)?_n[Wn]=Mn.slice():_n[Wn]=Mn};for(let Mn=0,Yn=arguments.length;Mn<Yn;Mn++)arguments[Mn]&&Ss(arguments[Mn],kn);return _n}const _x=(vn,_n,kn,{allOwnKeys:Mn}={})=>(Ss(_n,(Yn,Wn)=>{kn&&Vn(Yn)?vn[Wn]=Mp(Yn,kn):vn[Wn]=Yn},{allOwnKeys:Mn}),vn),Sx=vn=>(vn.charCodeAt(0)===65279&&(vn=vn.slice(1)),vn),kx=(vn,_n,kn,Mn)=>{vn.prototype=Object.create(_n.prototype,Mn),vn.prototype.constructor=vn,Object.defineProperty(vn,"super",{value:_n.prototype}),kn&&Object.assign(vn.prototype,kn)},Cx=(vn,_n,kn,Mn)=>{let Yn,Wn,Kn;const Xn={};if(_n=_n||{},vn==null)return _n;do{for(Yn=Object.getOwnPropertyNames(vn),Wn=Yn.length;Wn-- >0;)Kn=Yn[Wn],(!Mn||Mn(Kn,vn,_n))&&!Xn[Kn]&&(_n[Kn]=vn[Kn],Xn[Kn]=!0);vn=kn!==!1&&Cu(vn)}while(vn&&(!kn||kn(vn,_n))&&vn!==Object.prototype);return _n},Ax=(vn,_n,kn)=>{vn=String(vn),(kn===void 0||kn>vn.length)&&(kn=vn.length),kn-=_n.length;const Mn=vn.indexOf(_n,kn);return Mn!==-1&&Mn===kn},$x=vn=>{if(!vn)return null;if(yo(vn))return vn;let _n=vn.length;if(!Rp(_n))return null;const kn=new Array(_n);for(;_n-- >0;)kn[_n]=vn[_n];return kn},Tx=(vn=>_n=>vn&&_n instanceof vn)(typeof Uint8Array<"u"&&Cu(Uint8Array)),Mx=(vn,_n)=>{const kn=(vn&&vn[Symbol.iterator]).call(vn);let Mn;for(;(Mn=kn.next())&&!Mn.done;){const Yn=Mn.value;_n.call(vn,Yn[0],Yn[1])}},Lx=(vn,_n)=>{let kn;const Mn=[];for(;(kn=vn.exec(_n))!==null;)Mn.push(kn);return Mn},Rx=di("HTMLFormElement"),Ex=vn=>vn.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(_n,kn,Mn){return kn.toUpperCase()+Mn}),Vd=(({hasOwnProperty:vn})=>(_n,kn)=>vn.call(_n,kn))(Object.prototype),Ix=di("RegExp"),Op=(vn,_n)=>{const kn=Object.getOwnPropertyDescriptors(vn),Mn={};Ss(kn,(Yn,Wn)=>{let Kn;(Kn=_n(Yn,Wn,vn))!==!1&&(Mn[Wn]=Kn||Yn)}),Object.defineProperties(vn,Mn)},Ox=vn=>{Op(vn,(_n,kn)=>{if(Vn(vn)&&["arguments","caller","callee"].indexOf(kn)!==-1)return!1;const Mn=vn[kn];if(Vn(Mn)){if(_n.enumerable=!1,"writable"in _n){_n.writable=!1;return}_n.set||(_n.set=()=>{throw Error("Can not rewrite read-only method '"+kn+"'")})}})},Dx=(vn,_n)=>{const kn={},Mn=Yn=>{Yn.forEach(Wn=>{kn[Wn]=!0})};return yo(vn)?Mn(vn):Mn(String(vn).split(_n)),kn},Nx=()=>{},Fx=(vn,_n)=>vn!=null&&Number.isFinite(vn=+vn)?vn:_n,yc="abcdefghijklmnopqrstuvwxyz",jd="0123456789",Dp={DIGIT:jd,ALPHA:yc,ALPHA_DIGIT:yc+yc.toUpperCase()+jd},Wx=(vn=16,_n=Dp.ALPHA_DIGIT)=>{let kn="";const{length:Mn}=_n;for(;vn--;)kn+=_n[Math.random()*Mn|0];return kn};function Px(vn){return!!(vn&&Vn(vn.append)&&vn[Symbol.toStringTag]==="FormData"&&vn[Symbol.iterator])}const Bx=vn=>{const _n=new Array(10),kn=(Mn,Yn)=>{if(Ga(Mn)){if(_n.indexOf(Mn)>=0)return;if(!("toJSON"in Mn)){_n[Yn]=Mn;const Wn=yo(Mn)?[]:{};return Ss(Mn,(Kn,Xn)=>{const Hn=kn(Kn,Yn+1);!xs(Hn)&&(Wn[Xn]=Hn)}),_n[Yn]=void 0,Wn}}return Mn};return kn(vn,0)},zx=di("AsyncFunction"),Hx=vn=>vn&&(Ga(vn)||Vn(vn))&&Vn(vn.then)&&Vn(vn.catch),Np=((vn,_n)=>vn?setImmediate:_n?((kn,Mn)=>(Or.addEventListener("message",({source:Yn,data:Wn})=>{Yn===Or&&Wn===kn&&Mn.length&&Mn.shift()()},!1),Yn=>{Mn.push(Yn),Or.postMessage(kn,"*")}))(`axios@${Math.random()}`,[]):kn=>setTimeout(kn))(typeof setImmediate=="function",Vn(Or.postMessage)),Ux=typeof queueMicrotask<"u"?queueMicrotask.bind(Or):typeof process<"u"&&process.nextTick||Np,ue$4={isArray:yo,isArrayBuffer:Lp,isBuffer:sx,isFormData:gx,isArrayBufferView:ax,isString:lx,isNumber:Rp,isBoolean:cx,isObject:Ga,isPlainObject:Ia,isReadableStream:vx,isRequest:yx,isResponse:wx,isHeaders:bx,isUndefined:xs,isDate:ux,isFile:hx,isBlob:dx,isRegExp:Ix,isFunction:Vn,isStream:px,isURLSearchParams:mx,isTypedArray:Tx,isFileList:fx,forEach:Ss,merge:au,extend:_x,trim:xx,stripBOM:Sx,inherits:kx,toFlatObject:Cx,kindOf:Va,kindOfTest:di,endsWith:Ax,toArray:$x,forEachEntry:Mx,matchAll:Lx,isHTMLForm:Rx,hasOwnProperty:Vd,hasOwnProp:Vd,reduceDescriptors:Op,freezeMethods:Ox,toObjectSet:Dx,toCamelCase:Ex,noop:Nx,toFiniteNumber:Fx,findKey:Ep,global:Or,isContextDefined:Ip,ALPHABET:Dp,generateString:Wx,isSpecCompliantForm:Px,toJSONObject:Bx,isAsyncFn:zx,isThenable:Hx,setImmediate:Np,asap:Ux};function Ye$3(vn,_n,kn,Mn,Yn){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=vn,this.name="AxiosError",_n&&(this.code=_n),kn&&(this.config=kn),Mn&&(this.request=Mn),Yn&&(this.response=Yn,this.status=Yn.status?Yn.status:null)}ue$4.inherits(Ye$3,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:ue$4.toJSONObject(this.config),code:this.code,status:this.status}}});const Fp=Ye$3.prototype,Wp={};["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(vn=>{Wp[vn]={value:vn}}),Object.defineProperties(Ye$3,Wp),Object.defineProperty(Fp,"isAxiosError",{value:!0}),Ye$3.from=(vn,_n,kn,Mn,Yn,Wn)=>{const Kn=Object.create(Fp);return ue$4.toFlatObject(vn,Kn,function(Xn){return Xn!==Error.prototype},Xn=>Xn!=="isAxiosError"),Ye$3.call(Kn,vn.message,_n,kn,Mn,Yn),Kn.cause=vn,Kn.name=vn.name,Wn&&Object.assign(Kn,Wn),Kn};const Vx=null;function lu(vn){return ue$4.isPlainObject(vn)||ue$4.isArray(vn)}function Pp(vn){return ue$4.endsWith(vn,"[]")?vn.slice(0,-2):vn}function Gd(vn,_n,kn){return vn?vn.concat(_n).map(function(Mn,Yn){return Mn=Pp(Mn),!kn&&Yn?"["+Mn+"]":Mn}).join(kn?".":""):_n}function jx(vn){return ue$4.isArray(vn)&&!vn.some(lu)}const Gx=ue$4.toFlatObject(ue$4,{},null,function(vn){return/^is[A-Z]/.test(vn)});function Ka(vn,_n,kn){if(!ue$4.isObject(vn))throw new TypeError("target must be an object");_n=_n||new FormData,kn=ue$4.toFlatObject(kn,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Bn,Nn){return!ue$4.isUndefined(Nn[Bn])});const Mn=kn.metaTokens,Yn=kn.visitor||qn,Wn=kn.dots,Kn=kn.indexes,Xn=(kn.Blob||typeof Blob<"u"&&Blob)&&ue$4.isSpecCompliantForm(_n);if(!ue$4.isFunction(Yn))throw new TypeError("visitor must be a function");function Hn(Bn){if(Bn===null)return"";if(ue$4.isDate(Bn))return Bn.toISOString();if(!Xn&&ue$4.isBlob(Bn))throw new Ye$3("Blob is not supported. Use a Buffer instead.");return ue$4.isArrayBuffer(Bn)||ue$4.isTypedArray(Bn)?Xn&&typeof Blob=="function"?new Blob([Bn]):Buffer.from(Bn):Bn}function qn(Bn,Nn,zn){let Qn=Bn;if(Bn&&!zn&&typeof Bn=="object"){if(ue$4.endsWith(Nn,"{}"))Nn=Mn?Nn:Nn.slice(0,-2),Bn=JSON.stringify(Bn);else if(ue$4.isArray(Bn)&&jx(Bn)||(ue$4.isFileList(Bn)||ue$4.endsWith(Nn,"[]"))&&(Qn=ue$4.toArray(Bn)))return Nn=Pp(Nn),Qn.forEach(function(Jn,ti){!(ue$4.isUndefined(Jn)||Jn===null)&&_n.append(Kn===!0?Gd([Nn],ti,Wn):Kn===null?Nn:Nn+"[]",Hn(Jn))}),!1}return lu(Bn)?!0:(_n.append(Gd(zn,Nn,Wn),Hn(Bn)),!1)}const In=[],Dn=Object.assign(Gx,{defaultVisitor:qn,convertValue:Hn,isVisitable:lu});function Pn(Bn,Nn){if(!ue$4.isUndefined(Bn)){if(In.indexOf(Bn)!==-1)throw Error("Circular reference detected in "+Nn.join("."));In.push(Bn),ue$4.forEach(Bn,function(zn,Qn){(!(ue$4.isUndefined(zn)||zn===null)&&Yn.call(_n,zn,ue$4.isString(Qn)?Qn.trim():Qn,Nn,Dn))===!0&&Pn(zn,Nn?Nn.concat(Qn):[Qn])}),In.pop()}}if(!ue$4.isObject(vn))throw new TypeError("data must be an object");return Pn(vn),_n}function Kd(vn){const _n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(vn).replace(/[!'()~]|%20|%00/g,function(kn){return _n[kn]})}function Au(vn,_n){this._pairs=[],vn&&Ka(vn,this,_n)}const Bp=Au.prototype;Bp.append=function(vn,_n){this._pairs.push([vn,_n])},Bp.toString=function(vn){const _n=vn?function(kn){return vn.call(this,kn,Kd)}:Kd;return this._pairs.map(function(kn){return _n(kn[0])+"="+_n(kn[1])},"").join("&")};function Kx(vn){return encodeURIComponent(vn).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zp(vn,_n,kn){if(!_n)return vn;const Mn=kn&&kn.encode||Kx;ue$4.isFunction(kn)&&(kn={serialize:kn});const Yn=kn&&kn.serialize;let Wn;if(Yn?Wn=Yn(_n,kn):Wn=ue$4.isURLSearchParams(_n)?_n.toString():new Au(_n,kn).toString(Mn),Wn){const Kn=vn.indexOf("#");Kn!==-1&&(vn=vn.slice(0,Kn)),vn+=(vn.indexOf("?")===-1?"?":"&")+Wn}return vn}class qd{constructor(){this.handlers=[]}use(_n,kn,Mn){return this.handlers.push({fulfilled:_n,rejected:kn,synchronous:Mn?Mn.synchronous:!1,runWhen:Mn?Mn.runWhen:null}),this.handlers.length-1}eject(_n){this.handlers[_n]&&(this.handlers[_n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(_n){ue$4.forEach(this.handlers,function(kn){kn!==null&&_n(kn)})}}const Hp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qx=typeof URLSearchParams<"u"?URLSearchParams:Au,Yx=typeof FormData<"u"?FormData:null,Zx=typeof Blob<"u"?Blob:null,Qx={isBrowser:!0,classes:{URLSearchParams:qx,FormData:Yx,Blob:Zx},protocols:["http","https","file","blob","url","data"]},$u=typeof window<"u"&&typeof document<"u",cu=typeof navigator=="object"&&navigator||void 0,Xx=$u&&(!cu||["ReactNative","NativeScript","NS"].indexOf(cu.product)<0),Jx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",e1=$u&&window.location.href||"http://localhost",t1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$u,hasStandardBrowserEnv:Xx,hasStandardBrowserWebWorkerEnv:Jx,navigator:cu,origin:e1},Symbol.toStringTag,{value:"Module"})),bn$1={...t1,...Qx};function n1(vn,_n){return Ka(vn,new bn$1.classes.URLSearchParams,Object.assign({visitor:function(kn,Mn,Yn,Wn){return bn$1.isNode&&ue$4.isBuffer(kn)?(this.append(Mn,kn.toString("base64")),!1):Wn.defaultVisitor.apply(this,arguments)}},_n))}function i1(vn){return ue$4.matchAll(/\w+|\[(\w*)]/g,vn).map(_n=>_n[0]==="[]"?"":_n[1]||_n[0])}function r1(vn){const _n={},kn=Object.keys(vn);let Mn;const Yn=kn.length;let Wn;for(Mn=0;Mn<Yn;Mn++)Wn=kn[Mn],_n[Wn]=vn[Wn];return _n}function Up(vn){function _n(kn,Mn,Yn,Wn){let Kn=kn[Wn++];if(Kn==="__proto__")return!0;const Xn=Number.isFinite(+Kn),Hn=Wn>=kn.length;return Kn=!Kn&&ue$4.isArray(Yn)?Yn.length:Kn,Hn?(ue$4.hasOwnProp(Yn,Kn)?Yn[Kn]=[Yn[Kn],Mn]:Yn[Kn]=Mn,!Xn):((!Yn[Kn]||!ue$4.isObject(Yn[Kn]))&&(Yn[Kn]=[]),_n(kn,Mn,Yn[Kn],Wn)&&ue$4.isArray(Yn[Kn])&&(Yn[Kn]=r1(Yn[Kn])),!Xn)}if(ue$4.isFormData(vn)&&ue$4.isFunction(vn.entries)){const kn={};return ue$4.forEachEntry(vn,(Mn,Yn)=>{_n(i1(Mn),Yn,kn,0)}),kn}return null}function o1(vn,_n,kn){if(ue$4.isString(vn))try{return(_n||JSON.parse)(vn),ue$4.trim(vn)}catch(Mn){if(Mn.name!=="SyntaxError")throw Mn}return(0,JSON.stringify)(vn)}const ks={transitional:Hp,adapter:["xhr","http","fetch"],transformRequest:[function(vn,_n){const kn=_n.getContentType()||"",Mn=kn.indexOf("application/json")>-1,Yn=ue$4.isObject(vn);if(Yn&&ue$4.isHTMLForm(vn)&&(vn=new FormData(vn)),ue$4.isFormData(vn))return Mn?JSON.stringify(Up(vn)):vn;if(ue$4.isArrayBuffer(vn)||ue$4.isBuffer(vn)||ue$4.isStream(vn)||ue$4.isFile(vn)||ue$4.isBlob(vn)||ue$4.isReadableStream(vn))return vn;if(ue$4.isArrayBufferView(vn))return vn.buffer;if(ue$4.isURLSearchParams(vn))return _n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),vn.toString();let Wn;if(Yn){if(kn.indexOf("application/x-www-form-urlencoded")>-1)return n1(vn,this.formSerializer).toString();if((Wn=ue$4.isFileList(vn))||kn.indexOf("multipart/form-data")>-1){const Kn=this.env&&this.env.FormData;return Ka(Wn?{"files[]":vn}:vn,Kn&&new Kn,this.formSerializer)}}return Yn||Mn?(_n.setContentType("application/json",!1),o1(vn)):vn}],transformResponse:[function(vn){const _n=this.transitional||ks.transitional,kn=_n&&_n.forcedJSONParsing,Mn=this.responseType==="json";if(ue$4.isResponse(vn)||ue$4.isReadableStream(vn))return vn;if(vn&&ue$4.isString(vn)&&(kn&&!this.responseType||Mn)){const Yn=!(_n&&_n.silentJSONParsing)&&Mn;try{return JSON.parse(vn)}catch(Wn){if(Yn)throw Wn.name==="SyntaxError"?Ye$3.from(Wn,Ye$3.ERR_BAD_RESPONSE,this,null,this.response):Wn}}return vn}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bn$1.classes.FormData,Blob:bn$1.classes.Blob},validateStatus:function(vn){return vn>=200&&vn<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue$4.forEach(["delete","get","head","post","put","patch"],vn=>{ks.headers[vn]={}});const s1=ue$4.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"]),a1=vn=>{const _n={};let kn,Mn,Yn;return vn&&vn.split(`
1376
+ `).forEach(function(Wn){Yn=Wn.indexOf(":"),kn=Wn.substring(0,Yn).trim().toLowerCase(),Mn=Wn.substring(Yn+1).trim(),!(!kn||_n[kn]&&s1[kn])&&(kn==="set-cookie"?_n[kn]?_n[kn].push(Mn):_n[kn]=[Mn]:_n[kn]=_n[kn]?_n[kn]+", "+Mn:Mn)}),_n},Yd=Symbol("internals");function us(vn){return vn&&String(vn).trim().toLowerCase()}function Oa(vn){return vn===!1||vn==null?vn:ue$4.isArray(vn)?vn.map(Oa):String(vn)}function l1(vn){const _n=Object.create(null),kn=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let Mn;for(;Mn=kn.exec(vn);)_n[Mn[1]]=Mn[2];return _n}const c1=vn=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(vn.trim());function wc(vn,_n,kn,Mn,Yn){if(ue$4.isFunction(Mn))return Mn.call(this,_n,kn);if(Yn&&(_n=kn),!!ue$4.isString(_n)){if(ue$4.isString(Mn))return _n.indexOf(Mn)!==-1;if(ue$4.isRegExp(Mn))return Mn.test(_n)}}function u1(vn){return vn.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(_n,kn,Mn)=>kn.toUpperCase()+Mn)}function h1(vn,_n){const kn=ue$4.toCamelCase(" "+_n);["get","set","has"].forEach(Mn=>{Object.defineProperty(vn,Mn+kn,{value:function(Yn,Wn,Kn){return this[Mn].call(this,_n,Yn,Wn,Kn)},configurable:!0})})}class Fn{constructor(_n){_n&&this.set(_n)}set(_n,kn,Mn){const Yn=this;function Wn(Xn,Hn,qn){const In=us(Hn);if(!In)throw new Error("header name must be a non-empty string");const Dn=ue$4.findKey(Yn,In);(!Dn||Yn[Dn]===void 0||qn===!0||qn===void 0&&Yn[Dn]!==!1)&&(Yn[Dn||Hn]=Oa(Xn))}const Kn=(Xn,Hn)=>ue$4.forEach(Xn,(qn,In)=>Wn(qn,In,Hn));if(ue$4.isPlainObject(_n)||_n instanceof this.constructor)Kn(_n,kn);else if(ue$4.isString(_n)&&(_n=_n.trim())&&!c1(_n))Kn(a1(_n),kn);else if(ue$4.isHeaders(_n))for(const[Xn,Hn]of _n.entries())Wn(Hn,Xn,Mn);else _n!=null&&Wn(kn,_n,Mn);return this}get(_n,kn){if(_n=us(_n),_n){const Mn=ue$4.findKey(this,_n);if(Mn){const Yn=this[Mn];if(!kn)return Yn;if(kn===!0)return l1(Yn);if(ue$4.isFunction(kn))return kn.call(this,Yn,Mn);if(ue$4.isRegExp(kn))return kn.exec(Yn);throw new TypeError("parser must be boolean|regexp|function")}}}has(_n,kn){if(_n=us(_n),_n){const Mn=ue$4.findKey(this,_n);return!!(Mn&&this[Mn]!==void 0&&(!kn||wc(this,this[Mn],Mn,kn)))}return!1}delete(_n,kn){const Mn=this;let Yn=!1;function Wn(Kn){if(Kn=us(Kn),Kn){const Xn=ue$4.findKey(Mn,Kn);Xn&&(!kn||wc(Mn,Mn[Xn],Xn,kn))&&(delete Mn[Xn],Yn=!0)}}return ue$4.isArray(_n)?_n.forEach(Wn):Wn(_n),Yn}clear(_n){const kn=Object.keys(this);let Mn=kn.length,Yn=!1;for(;Mn--;){const Wn=kn[Mn];(!_n||wc(this,this[Wn],Wn,_n,!0))&&(delete this[Wn],Yn=!0)}return Yn}normalize(_n){const kn=this,Mn={};return ue$4.forEach(this,(Yn,Wn)=>{const Kn=ue$4.findKey(Mn,Wn);if(Kn){kn[Kn]=Oa(Yn),delete kn[Wn];return}const Xn=_n?u1(Wn):String(Wn).trim();Xn!==Wn&&delete kn[Wn],kn[Xn]=Oa(Yn),Mn[Xn]=!0}),this}concat(..._n){return this.constructor.concat(this,..._n)}toJSON(_n){const kn=Object.create(null);return ue$4.forEach(this,(Mn,Yn)=>{Mn!=null&&Mn!==!1&&(kn[Yn]=_n&&ue$4.isArray(Mn)?Mn.join(", "):Mn)}),kn}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([_n,kn])=>_n+": "+kn).join(`
1377
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(_n){return _n instanceof this?_n:new this(_n)}static concat(_n,...kn){const Mn=new this(_n);return kn.forEach(Yn=>Mn.set(Yn)),Mn}static accessor(_n){const kn=(this[Yd]=this[Yd]={accessors:{}}).accessors,Mn=this.prototype;function Yn(Wn){const Kn=us(Wn);kn[Kn]||(h1(Mn,Wn),kn[Kn]=!0)}return ue$4.isArray(_n)?_n.forEach(Yn):Yn(_n),this}}Fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue$4.reduceDescriptors(Fn.prototype,({value:vn},_n)=>{let kn=_n[0].toUpperCase()+_n.slice(1);return{get:()=>vn,set(Mn){this[kn]=Mn}}}),ue$4.freezeMethods(Fn);function bc(vn,_n){const kn=this||ks,Mn=_n||kn,Yn=Fn.from(Mn.headers);let Wn=Mn.data;return ue$4.forEach(vn,function(Kn){Wn=Kn.call(kn,Wn,Yn.normalize(),_n?_n.status:void 0)}),Yn.normalize(),Wn}function Vp(vn){return!!(vn&&vn.__CANCEL__)}function wo(vn,_n,kn){Ye$3.call(this,vn??"canceled",Ye$3.ERR_CANCELED,_n,kn),this.name="CanceledError"}ue$4.inherits(wo,Ye$3,{__CANCEL__:!0});function jp(vn,_n,kn){const Mn=kn.config.validateStatus;!kn.status||!Mn||Mn(kn.status)?vn(kn):_n(new Ye$3("Request failed with status code "+kn.status,[Ye$3.ERR_BAD_REQUEST,Ye$3.ERR_BAD_RESPONSE][Math.floor(kn.status/100)-4],kn.config,kn.request,kn))}function d1(vn){const _n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(vn);return _n&&_n[1]||""}function f1(vn,_n){vn=vn||10;const kn=new Array(vn),Mn=new Array(vn);let Yn=0,Wn=0,Kn;return _n=_n!==void 0?_n:1e3,function(Xn){const Hn=Date.now(),qn=Mn[Wn];Kn||(Kn=Hn),kn[Yn]=Xn,Mn[Yn]=Hn;let In=Wn,Dn=0;for(;In!==Yn;)Dn+=kn[In++],In=In%vn;if(Yn=(Yn+1)%vn,Yn===Wn&&(Wn=(Wn+1)%vn),Hn-Kn<_n)return;const Pn=qn&&Hn-qn;return Pn?Math.round(Dn*1e3/Pn):void 0}}function p1(vn,_n){let kn=0,Mn=1e3/_n,Yn,Wn;const Kn=(Xn,Hn=Date.now())=>{kn=Hn,Yn=null,Wn&&(clearTimeout(Wn),Wn=null),vn.apply(null,Xn)};return[(...Xn)=>{const Hn=Date.now(),qn=Hn-kn;qn>=Mn?Kn(Xn,Hn):(Yn=Xn,Wn||(Wn=setTimeout(()=>{Wn=null,Kn(Yn)},Mn-qn)))},()=>Yn&&Kn(Yn)]}const Wa=(vn,_n,kn=3)=>{let Mn=0;const Yn=f1(50,250);return p1(Wn=>{const Kn=Wn.loaded,Xn=Wn.lengthComputable?Wn.total:void 0,Hn=Kn-Mn,qn=Yn(Hn),In=Kn<=Xn;Mn=Kn;const Dn={loaded:Kn,total:Xn,progress:Xn?Kn/Xn:void 0,bytes:Hn,rate:qn||void 0,estimated:qn&&Xn&&In?(Xn-Kn)/qn:void 0,event:Wn,lengthComputable:Xn!=null,[_n?"download":"upload"]:!0};vn(Dn)},kn)},Zd=(vn,_n)=>{const kn=vn!=null;return[Mn=>_n[0]({lengthComputable:kn,total:vn,loaded:Mn}),_n[1]]},Qd=vn=>(..._n)=>ue$4.asap(()=>vn(..._n)),g1=bn$1.hasStandardBrowserEnv?((vn,_n)=>kn=>(kn=new URL(kn,bn$1.origin),vn.protocol===kn.protocol&&vn.host===kn.host&&(_n||vn.port===kn.port)))(new URL(bn$1.origin),bn$1.navigator&&/(msie|trident)/i.test(bn$1.navigator.userAgent)):()=>!0,m1=bn$1.hasStandardBrowserEnv?{write(vn,_n,kn,Mn,Yn,Wn){const Kn=[vn+"="+encodeURIComponent(_n)];ue$4.isNumber(kn)&&Kn.push("expires="+new Date(kn).toGMTString()),ue$4.isString(Mn)&&Kn.push("path="+Mn),ue$4.isString(Yn)&&Kn.push("domain="+Yn),Wn===!0&&Kn.push("secure"),document.cookie=Kn.join("; ")},read(vn){const _n=document.cookie.match(new RegExp("(^|;\\s*)("+vn+")=([^;]*)"));return _n?decodeURIComponent(_n[3]):null},remove(vn){this.write(vn,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function v1(vn){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(vn)}function y1(vn,_n){return _n?vn.replace(/\/?\/$/,"")+"/"+_n.replace(/^\/+/,""):vn}function Gp(vn,_n){return vn&&!v1(_n)?y1(vn,_n):_n}const Xd=vn=>vn instanceof Fn?{...vn}:vn;function Fr(vn,_n){_n=_n||{};const kn={};function Mn(qn,In,Dn,Pn){return ue$4.isPlainObject(qn)&&ue$4.isPlainObject(In)?ue$4.merge.call({caseless:Pn},qn,In):ue$4.isPlainObject(In)?ue$4.merge({},In):ue$4.isArray(In)?In.slice():In}function Yn(qn,In,Dn,Pn){if(ue$4.isUndefined(In)){if(!ue$4.isUndefined(qn))return Mn(void 0,qn,Dn,Pn)}else return Mn(qn,In,Dn,Pn)}function Wn(qn,In){if(!ue$4.isUndefined(In))return Mn(void 0,In)}function Kn(qn,In){if(ue$4.isUndefined(In)){if(!ue$4.isUndefined(qn))return Mn(void 0,qn)}else return Mn(void 0,In)}function Xn(qn,In,Dn){if(Dn in _n)return Mn(qn,In);if(Dn in vn)return Mn(void 0,qn)}const Hn={url:Wn,method:Wn,data:Wn,baseURL:Kn,transformRequest:Kn,transformResponse:Kn,paramsSerializer:Kn,timeout:Kn,timeoutMessage:Kn,withCredentials:Kn,withXSRFToken:Kn,adapter:Kn,responseType:Kn,xsrfCookieName:Kn,xsrfHeaderName:Kn,onUploadProgress:Kn,onDownloadProgress:Kn,decompress:Kn,maxContentLength:Kn,maxBodyLength:Kn,beforeRedirect:Kn,transport:Kn,httpAgent:Kn,httpsAgent:Kn,cancelToken:Kn,socketPath:Kn,responseEncoding:Kn,validateStatus:Xn,headers:(qn,In,Dn)=>Yn(Xd(qn),Xd(In),Dn,!0)};return ue$4.forEach(Object.keys(Object.assign({},vn,_n)),function(qn){const In=Hn[qn]||Yn,Dn=In(vn[qn],_n[qn],qn);ue$4.isUndefined(Dn)&&In!==Xn||(kn[qn]=Dn)}),kn}const Kp=vn=>{const _n=Fr({},vn);let{data:kn,withXSRFToken:Mn,xsrfHeaderName:Yn,xsrfCookieName:Wn,headers:Kn,auth:Xn}=_n;_n.headers=Kn=Fn.from(Kn),_n.url=zp(Gp(_n.baseURL,_n.url),vn.params,vn.paramsSerializer),Xn&&Kn.set("Authorization","Basic "+btoa((Xn.username||"")+":"+(Xn.password?unescape(encodeURIComponent(Xn.password)):"")));let Hn;if(ue$4.isFormData(kn)){if(bn$1.hasStandardBrowserEnv||bn$1.hasStandardBrowserWebWorkerEnv)Kn.setContentType(void 0);else if((Hn=Kn.getContentType())!==!1){const[qn,...In]=Hn?Hn.split(";").map(Dn=>Dn.trim()).filter(Boolean):[];Kn.setContentType([qn||"multipart/form-data",...In].join("; "))}}if(bn$1.hasStandardBrowserEnv&&(Mn&&ue$4.isFunction(Mn)&&(Mn=Mn(_n)),Mn||Mn!==!1&&g1(_n.url))){const qn=Yn&&Wn&&m1.read(Wn);qn&&Kn.set(Yn,qn)}return _n},w1=typeof XMLHttpRequest<"u",b1=w1&&function(vn){return new Promise(function(_n,kn){const Mn=Kp(vn);let Yn=Mn.data;const Wn=Fn.from(Mn.headers).normalize();let{responseType:Kn,onUploadProgress:Xn,onDownloadProgress:Hn}=Mn,qn,In,Dn,Pn,Bn;function Nn(){Pn&&Pn(),Bn&&Bn(),Mn.cancelToken&&Mn.cancelToken.unsubscribe(qn),Mn.signal&&Mn.signal.removeEventListener("abort",qn)}let zn=new XMLHttpRequest;zn.open(Mn.method.toUpperCase(),Mn.url,!0),zn.timeout=Mn.timeout;function Qn(){if(!zn)return;const ti=Fn.from("getAllResponseHeaders"in zn&&zn.getAllResponseHeaders()),vi={data:!Kn||Kn==="text"||Kn==="json"?zn.responseText:zn.response,status:zn.status,statusText:zn.statusText,headers:ti,config:vn,request:zn};jp(function(pi){_n(pi),Nn()},function(pi){kn(pi),Nn()},vi),zn=null}"onloadend"in zn?zn.onloadend=Qn:zn.onreadystatechange=function(){!zn||zn.readyState!==4||zn.status===0&&!(zn.responseURL&&zn.responseURL.indexOf("file:")===0)||setTimeout(Qn)},zn.onabort=function(){zn&&(kn(new Ye$3("Request aborted",Ye$3.ECONNABORTED,vn,zn)),zn=null)},zn.onerror=function(){kn(new Ye$3("Network Error",Ye$3.ERR_NETWORK,vn,zn)),zn=null},zn.ontimeout=function(){let ti=Mn.timeout?"timeout of "+Mn.timeout+"ms exceeded":"timeout exceeded";const vi=Mn.transitional||Hp;Mn.timeoutErrorMessage&&(ti=Mn.timeoutErrorMessage),kn(new Ye$3(ti,vi.clarifyTimeoutError?Ye$3.ETIMEDOUT:Ye$3.ECONNABORTED,vn,zn)),zn=null},Yn===void 0&&Wn.setContentType(null),"setRequestHeader"in zn&&ue$4.forEach(Wn.toJSON(),function(ti,vi){zn.setRequestHeader(vi,ti)}),ue$4.isUndefined(Mn.withCredentials)||(zn.withCredentials=!!Mn.withCredentials),Kn&&Kn!=="json"&&(zn.responseType=Mn.responseType),Hn&&([Dn,Bn]=Wa(Hn,!0),zn.addEventListener("progress",Dn)),Xn&&zn.upload&&([In,Pn]=Wa(Xn),zn.upload.addEventListener("progress",In),zn.upload.addEventListener("loadend",Pn)),(Mn.cancelToken||Mn.signal)&&(qn=ti=>{zn&&(kn(!ti||ti.type?new wo(null,vn,zn):ti),zn.abort(),zn=null)},Mn.cancelToken&&Mn.cancelToken.subscribe(qn),Mn.signal&&(Mn.signal.aborted?qn():Mn.signal.addEventListener("abort",qn)));const Jn=d1(Mn.url);if(Jn&&bn$1.protocols.indexOf(Jn)===-1){kn(new Ye$3("Unsupported protocol "+Jn+":",Ye$3.ERR_BAD_REQUEST,vn));return}zn.send(Yn||null)})},x1=(vn,_n)=>{const{length:kn}=vn=vn?vn.filter(Boolean):[];if(_n||kn){let Mn=new AbortController,Yn;const Wn=function(qn){if(!Yn){Yn=!0,Xn();const In=qn instanceof Error?qn:this.reason;Mn.abort(In instanceof Ye$3?In:new wo(In instanceof Error?In.message:In))}};let Kn=_n&&setTimeout(()=>{Kn=null,Wn(new Ye$3(`timeout ${_n} of ms exceeded`,Ye$3.ETIMEDOUT))},_n);const Xn=()=>{vn&&(Kn&&clearTimeout(Kn),Kn=null,vn.forEach(qn=>{qn.unsubscribe?qn.unsubscribe(Wn):qn.removeEventListener("abort",Wn)}),vn=null)};vn.forEach(qn=>qn.addEventListener("abort",Wn));const{signal:Hn}=Mn;return Hn.unsubscribe=()=>ue$4.asap(Xn),Hn}},_1=function*(vn,_n){let kn=vn.byteLength;if(kn<_n){yield vn;return}let Mn=0,Yn;for(;Mn<kn;)Yn=Mn+_n,yield vn.slice(Mn,Yn),Mn=Yn},S1=async function*(vn,_n){for await(const kn of k1(vn))yield*_1(kn,_n)},k1=async function*(vn){if(vn[Symbol.asyncIterator]){yield*vn;return}const _n=vn.getReader();try{for(;;){const{done:kn,value:Mn}=await _n.read();if(kn)break;yield Mn}}finally{await _n.cancel()}},Jd=(vn,_n,kn,Mn)=>{const Yn=S1(vn,_n);let Wn=0,Kn,Xn=Hn=>{Kn||(Kn=!0,Mn&&Mn(Hn))};return new ReadableStream({async pull(Hn){try{const{done:qn,value:In}=await Yn.next();if(qn){Xn(),Hn.close();return}let Dn=In.byteLength;if(kn){let Pn=Wn+=Dn;kn(Pn)}Hn.enqueue(new Uint8Array(In))}catch(qn){throw Xn(qn),qn}},cancel(Hn){return Xn(Hn),Yn.return()}},{highWaterMark:2})},qa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qp=qa&&typeof ReadableStream=="function",C1=qa&&(typeof TextEncoder=="function"?(vn=>_n=>vn.encode(_n))(new TextEncoder):async vn=>new Uint8Array(await new Response(vn).arrayBuffer())),Yp=(vn,..._n)=>{try{return!!vn(..._n)}catch{return!1}},A1=qp&&Yp(()=>{let vn=!1;const _n=new Request(bn$1.origin,{body:new ReadableStream,method:"POST",get duplex(){return vn=!0,"half"}}).headers.has("Content-Type");return vn&&!_n}),ef=64*1024,uu=qp&&Yp(()=>ue$4.isReadableStream(new Response("").body)),Pa={stream:uu&&(vn=>vn.body)};qa&&(vn=>{["text","arrayBuffer","blob","formData","stream"].forEach(_n=>{!Pa[_n]&&(Pa[_n]=ue$4.isFunction(vn[_n])?kn=>kn[_n]():(kn,Mn)=>{throw new Ye$3(`Response type '${_n}' is not supported`,Ye$3.ERR_NOT_SUPPORT,Mn)})})})(new Response);const $1=async vn=>{if(vn==null)return 0;if(ue$4.isBlob(vn))return vn.size;if(ue$4.isSpecCompliantForm(vn))return(await new Request(bn$1.origin,{method:"POST",body:vn}).arrayBuffer()).byteLength;if(ue$4.isArrayBufferView(vn)||ue$4.isArrayBuffer(vn))return vn.byteLength;if(ue$4.isURLSearchParams(vn)&&(vn=vn+""),ue$4.isString(vn))return(await C1(vn)).byteLength},T1=async(vn,_n)=>ue$4.toFiniteNumber(vn.getContentLength())??$1(_n),M1=qa&&(async vn=>{let{url:_n,method:kn,data:Mn,signal:Yn,cancelToken:Wn,timeout:Kn,onDownloadProgress:Xn,onUploadProgress:Hn,responseType:qn,headers:In,withCredentials:Dn="same-origin",fetchOptions:Pn}=Kp(vn);qn=qn?(qn+"").toLowerCase():"text";let Bn=x1([Yn,Wn&&Wn.toAbortSignal()],Kn),Nn;const zn=Bn&&Bn.unsubscribe&&(()=>{Bn.unsubscribe()});let Qn;try{if(Hn&&A1&&kn!=="get"&&kn!=="head"&&(Qn=await T1(In,Mn))!==0){let si=new Request(_n,{method:"POST",body:Mn,duplex:"half"}),ei;if(ue$4.isFormData(Mn)&&(ei=si.headers.get("content-type"))&&In.setContentType(ei),si.body){const[mi,fi]=Zd(Qn,Wa(Qd(Hn)));Mn=Jd(si.body,ef,mi,fi)}}ue$4.isString(Dn)||(Dn=Dn?"include":"omit");const Jn="credentials"in Request.prototype;Nn=new Request(_n,{...Pn,signal:Bn,method:kn.toUpperCase(),headers:In.normalize().toJSON(),body:Mn,duplex:"half",credentials:Jn?Dn:void 0});let ti=await fetch(Nn);const vi=uu&&(qn==="stream"||qn==="response");if(uu&&(Xn||vi&&zn)){const si={};["status","statusText","headers"].forEach(yi=>{si[yi]=ti[yi]});const ei=ue$4.toFiniteNumber(ti.headers.get("content-length")),[mi,fi]=Xn&&Zd(ei,Wa(Qd(Xn),!0))||[];ti=new Response(Jd(ti.body,ef,mi,()=>{fi&&fi(),zn&&zn()}),si)}qn=qn||"text";let pi=await Pa[ue$4.findKey(Pa,qn)||"text"](ti,vn);return!vi&&zn&&zn(),await new Promise((si,ei)=>{jp(si,ei,{data:pi,headers:Fn.from(ti.headers),status:ti.status,statusText:ti.statusText,config:vn,request:Nn})})}catch(Jn){throw zn&&zn(),Jn&&Jn.name==="TypeError"&&/fetch/i.test(Jn.message)?Object.assign(new Ye$3("Network Error",Ye$3.ERR_NETWORK,vn,Nn),{cause:Jn.cause||Jn}):Ye$3.from(Jn,Jn&&Jn.code,vn,Nn)}}),hu={http:Vx,xhr:b1,fetch:M1};ue$4.forEach(hu,(vn,_n)=>{if(vn){try{Object.defineProperty(vn,"name",{value:_n})}catch{}Object.defineProperty(vn,"adapterName",{value:_n})}});const tf=vn=>`- ${vn}`,L1=vn=>ue$4.isFunction(vn)||vn===null||vn===!1,Zp={getAdapter:vn=>{vn=ue$4.isArray(vn)?vn:[vn];const{length:_n}=vn;let kn,Mn;const Yn={};for(let Wn=0;Wn<_n;Wn++){kn=vn[Wn];let Kn;if(Mn=kn,!L1(kn)&&(Mn=hu[(Kn=String(kn)).toLowerCase()],Mn===void 0))throw new Ye$3(`Unknown adapter '${Kn}'`);if(Mn)break;Yn[Kn||"#"+Wn]=Mn}if(!Mn){const Wn=Object.entries(Yn).map(([Xn,Hn])=>`adapter ${Xn} `+(Hn===!1?"is not supported by the environment":"is not available in the build"));let Kn=_n?Wn.length>1?`since :
1378
+ `+Wn.map(tf).join(`
1379
+ `):" "+tf(Wn[0]):"as no adapter specified";throw new Ye$3("There is no suitable adapter to dispatch the request "+Kn,"ERR_NOT_SUPPORT")}return Mn},adapters:hu};function xc(vn){if(vn.cancelToken&&vn.cancelToken.throwIfRequested(),vn.signal&&vn.signal.aborted)throw new wo(null,vn)}function nf(vn){return xc(vn),vn.headers=Fn.from(vn.headers),vn.data=bc.call(vn,vn.transformRequest),["post","put","patch"].indexOf(vn.method)!==-1&&vn.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(vn.adapter||ks.adapter)(vn).then(function(_n){return xc(vn),_n.data=bc.call(vn,vn.transformResponse,_n),_n.headers=Fn.from(_n.headers),_n},function(_n){return Vp(_n)||(xc(vn),_n&&_n.response&&(_n.response.data=bc.call(vn,vn.transformResponse,_n.response),_n.response.headers=Fn.from(_n.response.headers))),Promise.reject(_n)})}const Qp="1.7.9",Ya={};["object","boolean","number","function","string","symbol"].forEach((vn,_n)=>{Ya[vn]=function(kn){return typeof kn===vn||"a"+(_n<1?"n ":" ")+vn}});const rf={};Ya.transitional=function(vn,_n,kn){function Mn(Yn,Wn){return"[Axios v"+Qp+"] Transitional option '"+Yn+"'"+Wn+(kn?". "+kn:"")}return(Yn,Wn,Kn)=>{if(vn===!1)throw new Ye$3(Mn(Wn," has been removed"+(_n?" in "+_n:"")),Ye$3.ERR_DEPRECATED);return _n&&!rf[Wn]&&(rf[Wn]=!0,console.warn(Mn(Wn," has been deprecated since v"+_n+" and will be removed in the near future"))),vn?vn(Yn,Wn,Kn):!0}},Ya.spelling=function(vn){return(_n,kn)=>(console.warn(`${kn} is likely a misspelling of ${vn}`),!0)};function R1(vn,_n,kn){if(typeof vn!="object")throw new Ye$3("options must be an object",Ye$3.ERR_BAD_OPTION_VALUE);const Mn=Object.keys(vn);let Yn=Mn.length;for(;Yn-- >0;){const Wn=Mn[Yn],Kn=_n[Wn];if(Kn){const Xn=vn[Wn],Hn=Xn===void 0||Kn(Xn,Wn,vn);if(Hn!==!0)throw new Ye$3("option "+Wn+" must be "+Hn,Ye$3.ERR_BAD_OPTION_VALUE);continue}if(kn!==!0)throw new Ye$3("Unknown option "+Wn,Ye$3.ERR_BAD_OPTION)}}const Da={assertOptions:R1,validators:Ya},ki=Da.validators;class Dr{constructor(_n){this.defaults=_n,this.interceptors={request:new qd,response:new qd}}async request(_n,kn){try{return await this._request(_n,kn)}catch(Mn){if(Mn instanceof Error){let Yn={};Error.captureStackTrace?Error.captureStackTrace(Yn):Yn=new Error;const Wn=Yn.stack?Yn.stack.replace(/^.+\n/,""):"";try{Mn.stack?Wn&&!String(Mn.stack).endsWith(Wn.replace(/^.+\n.+\n/,""))&&(Mn.stack+=`
1380
+ `+Wn):Mn.stack=Wn}catch{}}throw Mn}}_request(_n,kn){typeof _n=="string"?(kn=kn||{},kn.url=_n):kn=_n||{},kn=Fr(this.defaults,kn);const{transitional:Mn,paramsSerializer:Yn,headers:Wn}=kn;Mn!==void 0&&Da.assertOptions(Mn,{silentJSONParsing:ki.transitional(ki.boolean),forcedJSONParsing:ki.transitional(ki.boolean),clarifyTimeoutError:ki.transitional(ki.boolean)},!1),Yn!=null&&(ue$4.isFunction(Yn)?kn.paramsSerializer={serialize:Yn}:Da.assertOptions(Yn,{encode:ki.function,serialize:ki.function},!0)),Da.assertOptions(kn,{baseUrl:ki.spelling("baseURL"),withXsrfToken:ki.spelling("withXSRFToken")},!0),kn.method=(kn.method||this.defaults.method||"get").toLowerCase();let Kn=Wn&&ue$4.merge(Wn.common,Wn[kn.method]);Wn&&ue$4.forEach(["delete","get","head","post","put","patch","common"],Nn=>{delete Wn[Nn]}),kn.headers=Fn.concat(Kn,Wn);const Xn=[];let Hn=!0;this.interceptors.request.forEach(function(Nn){typeof Nn.runWhen=="function"&&Nn.runWhen(kn)===!1||(Hn=Hn&&Nn.synchronous,Xn.unshift(Nn.fulfilled,Nn.rejected))});const qn=[];this.interceptors.response.forEach(function(Nn){qn.push(Nn.fulfilled,Nn.rejected)});let In,Dn=0,Pn;if(!Hn){const Nn=[nf.bind(this),void 0];for(Nn.unshift.apply(Nn,Xn),Nn.push.apply(Nn,qn),Pn=Nn.length,In=Promise.resolve(kn);Dn<Pn;)In=In.then(Nn[Dn++],Nn[Dn++]);return In}Pn=Xn.length;let Bn=kn;for(Dn=0;Dn<Pn;){const Nn=Xn[Dn++],zn=Xn[Dn++];try{Bn=Nn(Bn)}catch(Qn){zn.call(this,Qn);break}}try{In=nf.call(this,Bn)}catch(Nn){return Promise.reject(Nn)}for(Dn=0,Pn=qn.length;Dn<Pn;)In=In.then(qn[Dn++],qn[Dn++]);return In}getUri(_n){_n=Fr(this.defaults,_n);const kn=Gp(_n.baseURL,_n.url);return zp(kn,_n.params,_n.paramsSerializer)}}ue$4.forEach(["delete","get","head","options"],function(vn){Dr.prototype[vn]=function(_n,kn){return this.request(Fr(kn||{},{method:vn,url:_n,data:(kn||{}).data}))}}),ue$4.forEach(["post","put","patch"],function(vn){function _n(kn){return function(Mn,Yn,Wn){return this.request(Fr(Wn||{},{method:vn,headers:kn?{"Content-Type":"multipart/form-data"}:{},url:Mn,data:Yn}))}}Dr.prototype[vn]=_n(),Dr.prototype[vn+"Form"]=_n(!0)});class Tu{constructor(_n){if(typeof _n!="function")throw new TypeError("executor must be a function.");let kn;this.promise=new Promise(function(Yn){kn=Yn});const Mn=this;this.promise.then(Yn=>{if(!Mn._listeners)return;let Wn=Mn._listeners.length;for(;Wn-- >0;)Mn._listeners[Wn](Yn);Mn._listeners=null}),this.promise.then=Yn=>{let Wn;const Kn=new Promise(Xn=>{Mn.subscribe(Xn),Wn=Xn}).then(Yn);return Kn.cancel=function(){Mn.unsubscribe(Wn)},Kn},_n(function(Yn,Wn,Kn){Mn.reason||(Mn.reason=new wo(Yn,Wn,Kn),kn(Mn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(_n){if(this.reason){_n(this.reason);return}this._listeners?this._listeners.push(_n):this._listeners=[_n]}unsubscribe(_n){if(!this._listeners)return;const kn=this._listeners.indexOf(_n);kn!==-1&&this._listeners.splice(kn,1)}toAbortSignal(){const _n=new AbortController,kn=Mn=>{_n.abort(Mn)};return this.subscribe(kn),_n.signal.unsubscribe=()=>this.unsubscribe(kn),_n.signal}static source(){let _n;return{token:new Tu(function(kn){_n=kn}),cancel:_n}}}function E1(vn){return function(_n){return vn.apply(null,_n)}}function I1(vn){return ue$4.isObject(vn)&&vn.isAxiosError===!0}const du={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(du).forEach(([vn,_n])=>{du[_n]=vn});function Xp(vn){const _n=new Dr(vn),kn=Mp(Dr.prototype.request,_n);return ue$4.extend(kn,Dr.prototype,_n,{allOwnKeys:!0}),ue$4.extend(kn,_n,null,{allOwnKeys:!0}),kn.create=function(Mn){return Xp(Fr(vn,Mn))},kn}const Qt$1=Xp(ks);Qt$1.Axios=Dr,Qt$1.CanceledError=wo,Qt$1.CancelToken=Tu,Qt$1.isCancel=Vp,Qt$1.VERSION=Qp,Qt$1.toFormData=Ka,Qt$1.AxiosError=Ye$3,Qt$1.Cancel=Qt$1.CanceledError,Qt$1.all=function(vn){return Promise.all(vn)},Qt$1.spread=E1,Qt$1.isAxiosError=I1,Qt$1.mergeConfig=Fr,Qt$1.AxiosHeaders=Fn,Qt$1.formToJSON=vn=>Up(ue$4.isHTMLForm(vn)?new FormData(vn):vn),Qt$1.getAdapter=Zp.getAdapter,Qt$1.HttpStatusCode=du,Qt$1.default=Qt$1;const Mu=Qt$1.create({baseURL:location.origin,timeout:6e4,params:{}});Mu.interceptors.response.use(vn=>vn,vn=>{var _n,kn,Mn,Yn,Wn,Kn,Xn,Hn,qn,In,Dn;if(vn.response){if(vn.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(Nn){Nn&&OpenC3Auth.setTokens()}),vn.response.config.headers["Ignore-Errors"]&&vn.response.config.headers["Ignore-Errors"].includes(vn.response.status.toString()))return Promise.reject(vn);let Pn=`HTTP ${vn.response.status} - `;(_n=vn.response)!=null&&_n.statusText&&(Pn+=`${vn.response.statusText} `),(Mn=(kn=vn.response)==null?void 0:kn.config)!=null&&Mn.data&&(Pn+=`${vn.response.config.data} `),(Wn=(Yn=vn.response)==null?void 0:Yn.data)!=null&&Wn.message?Pn+=`${vn.response.data.message}`:(Xn=(Kn=vn.response)==null?void 0:Kn.data)!=null&&Xn.exception?Pn+=`${vn.response.data.exception}`:(In=(qn=(Hn=vn.response)==null?void 0:Hn.data)==null?void 0:qn.error)!=null&&In.message?(vn.response.data.error.class&&(Pn+=`${vn.response.data.error.class} `),Pn+=`${vn.response.data.error.message}`):Pn+=`${(Dn=vn.response)==null?void 0:Dn.data}`;const{$cosmosNotify:Bn}=window;throw Bn&&Bn.serious({title:"Network error",body:Pn}),vn}else throw vn});const Ta=async function(vn,_n,{data:kn,params:Mn={},headers:Yn,noAuth:Wn=!1,noScope:Kn=!1,onUploadProgress:Xn=!1}={}){if(!Wn){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}Yn.Authorization=localStorage.openc3Token}return Yn.manual=!0,!Kn&&!Mn.scope&&(Mn.scope=window.openc3Scope),Mu({method:vn,url:_n,data:kn,params:Mn,headers:Yn,onUploadProgress:Xn})},fu={Accept:"application/json"},of={...fu,"Content-Type":"application/json"},Ik={get:function(vn,{params:_n,headers:kn=fu,noScope:Mn,noAuth:Yn,onUploadProgress:Wn}={}){return Ta("get",vn,{params:_n,headers:kn,noScope:Mn,noAuth:Yn,onUploadProgress:Wn})},put:function(vn,{data:_n,params:kn,headers:Mn=of,noScope:Yn,noAuth:Wn,onUploadProgress:Kn}={}){return Ta("put",vn,{data:_n,params:kn,headers:Mn,noScope:Yn,noAuth:Wn,onUploadProgress:Kn})},post:function(vn,{data:_n,params:kn,headers:Mn=of,noScope:Yn,noAuth:Wn,onUploadProgress:Kn}={}){return Ta("post",vn,{data:_n,params:kn,headers:Mn,noScope:Yn,noAuth:Wn,onUploadProgress:Kn})},delete:function(vn,{params:_n,headers:kn=fu,noScope:Mn,noAuth:Yn,onUploadProgress:Wn}={}){return Ta("delete",vn,{params:_n,headers:kn,noScope:Mn,noAuth:Yn,onUploadProgress:Wn})}};var Na={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Ft$1={log(...vn){this.enabled&&(vn.push(Date.now()),Na.logger.log("[ActionCable]",...vn))}};const ps=()=>new Date().getTime(),Ma=vn=>(ps()-vn)/1e3;class Za{constructor(_n){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=_n,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=ps(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Ft$1.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=ps(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Ft$1.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=ps()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Ft$1.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=ps(),Ft$1.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:_n,reconnectionBackoffRate:kn}=this.constructor,Mn=Math.pow(1+kn,Math.min(this.reconnectAttempts,10)),Yn=(this.reconnectAttempts===0?1:kn)*Math.random();return _n*1e3*Mn*(1+Yn)}reconnectIfStale(){this.connectionIsStale()&&(Ft$1.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Ma(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Ft$1.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Ma(this.disconnectedAt)} s`):(Ft$1.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Ma(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Ma(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Ft$1.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Za.staleThreshold=6,Za.reconnectionBackoffRate=.15;var Jp={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:hs,protocols:pu}=Jp,O1=pu.slice(0,pu.length-1),sf=[].indexOf;class Lu{constructor(_n){this.open=this.open.bind(this),this.consumer=_n,this.subscriptions=this.consumer.subscriptions,this.monitor=new Za(this),this.disconnected=!0}send(_n){return this.isOpen()?(this.webSocket.send(JSON.stringify(_n)),!0):!1}open(){if(this.isActive())return Ft$1.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const _n=[...pu,...this.consumer.subprotocols||[]];return Ft$1.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${_n}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Na.WebSocket(this.consumer.url,_n),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:_n}={allowReconnect:!0}){if(_n||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Ft$1.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(_n){Ft$1.log("Failed to reopen WebSocket",_n)}finally{Ft$1.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return sf.call(O1,this.getProtocol())>=0}isState(..._n){return sf.call(_n,this.getState())>=0}getState(){if(this.webSocket){for(let _n in Na.WebSocket)if(Na.WebSocket[_n]===this.webSocket.readyState)return _n.toLowerCase()}return null}installEventHandlers(){for(let _n in this.events){const kn=this.events[_n].bind(this);this.webSocket[`on${_n}`]=kn}}uninstallEventHandlers(){for(let _n in this.events)this.webSocket[`on${_n}`]=function(){}}}Lu.reopenDelay=500,Lu.prototype.events={message(vn){if(!this.isProtocolSupported())return;const{identifier:_n,message:kn,reason:Mn,reconnect:Yn,type:Wn}=JSON.parse(vn.data);switch(Wn){case hs.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case hs.disconnect:return Ft$1.log(`Disconnecting. Reason: ${Mn}`),this.close({allowReconnect:Yn});case hs.ping:return this.monitor.recordPing();case hs.confirmation:return this.subscriptions.confirmSubscription(_n),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(_n,"connected",{reconnected:!0})):this.subscriptions.notify(_n,"connected",{reconnected:!1});case hs.rejection:return this.subscriptions.reject(_n);default:return this.subscriptions.notify(_n,"received",kn)}},open(){if(Ft$1.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Ft$1.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(vn){if(Ft$1.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Ft$1.log("WebSocket onerror event")}};const D1=function(vn,_n){if(_n!=null)for(let kn in _n){const Mn=_n[kn];vn[kn]=Mn}return vn};class N1{constructor(_n,kn={},Mn){this.consumer=_n,this.identifier=JSON.stringify(kn),D1(this,Mn)}perform(_n,kn={}){return kn.action=_n,this.send(kn)}send(_n){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(_n)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class F1{constructor(_n){this.subscriptions=_n,this.pendingSubscriptions=[]}guarantee(_n){this.pendingSubscriptions.indexOf(_n)==-1?(Ft$1.log(`SubscriptionGuarantor guaranteeing ${_n.identifier}`),this.pendingSubscriptions.push(_n)):Ft$1.log(`SubscriptionGuarantor already guaranteeing ${_n.identifier}`),this.startGuaranteeing()}forget(_n){Ft$1.log(`SubscriptionGuarantor forgetting ${_n.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(kn=>kn!==_n)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(_n=>{Ft$1.log(`SubscriptionGuarantor resubscribing ${_n.identifier}`),this.subscriptions.subscribe(_n)})},500)}}class W1{constructor(_n){this.consumer=_n,this.guarantor=new F1(this),this.subscriptions=[]}create(_n,kn){const Mn=_n,Yn=typeof Mn=="object"?Mn:{channel:Mn},Wn=new N1(this.consumer,Yn,kn);return this.add(Wn)}add(_n){return this.subscriptions.push(_n),this.consumer.ensureActiveConnection(),this.notify(_n,"initialized"),this.subscribe(_n),_n}remove(_n){return this.forget(_n),this.findAll(_n.identifier).length||this.sendCommand(_n,"unsubscribe"),_n}reject(_n){return this.findAll(_n).map(kn=>(this.forget(kn),this.notify(kn,"rejected"),kn))}forget(_n){return this.guarantor.forget(_n),this.subscriptions=this.subscriptions.filter(kn=>kn!==_n),_n}findAll(_n){return this.subscriptions.filter(kn=>kn.identifier===_n)}reload(){return this.subscriptions.map(_n=>this.subscribe(_n))}notifyAll(_n,...kn){return this.subscriptions.map(Mn=>this.notify(Mn,_n,...kn))}notify(_n,kn,...Mn){let Yn;return typeof _n=="string"?Yn=this.findAll(_n):Yn=[_n],Yn.map(Wn=>typeof Wn[kn]=="function"?Wn[kn](...Mn):void 0)}subscribe(_n){this.sendCommand(_n,"subscribe")&&this.guarantor.guarantee(_n)}confirmSubscription(_n){Ft$1.log(`Subscription confirmed ${_n}`),this.findAll(_n).map(kn=>this.guarantor.forget(kn))}sendCommand(_n,kn){const{identifier:Mn}=_n;return this.consumer.send({command:kn,identifier:Mn})}}class P1{constructor(_n){this._url=_n,this.subscriptions=new W1(this),this.connection=new Lu(this),this.subprotocols=[]}get url(){return B1(this._url)}send(_n){return this.connection.send(_n)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(_n){this.subprotocols=[...this.subprotocols,_n]}}function B1(vn){if(typeof vn=="function"&&(vn=vn()),vn&&!/^wss?:/i.test(vn)){const _n=document.createElement("a");return _n.href=vn,_n.href=_n.href,_n.protocol=_n.protocol.replace("http","ws"),_n.href}else return vn}function z1(vn=H1("url")||Jp.default_mount_path){return new P1(vn)}function H1(vn){const _n=document.head.querySelector(`meta[name='action-cable-${vn}']`);if(_n)return _n.getAttribute("content")}Za.staleThreshold=10;let Ok=class{constructor(vn="/openc3-api/cable"){this._cable=null,this._url=vn}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(vn,_n,kn={},Mn={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(Yn=>{if(Yn&&OpenC3Auth.setTokens(),this._cable==null){let Wn=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=z1(Wn)}return this._cable.subscriptions.create({channel:vn,...Mn},kn)})}recordPing(){this._cable.connection.monitor.recordPing()}};class af{constructor(_n,kn,Mn="",Yn=""){this.keyword=_n.keyword,this.parameters=_n.parameters,this.filename=_n.filename,this.line=_n.line,this.lineNumber=_n.lineNumber,this.message=kn,this.usage=Mn,this.url=Yn}}class Fk{constructor(){Lr(this,"id",1)}async exec(_n,kn,Mn={},Yn={},Wn=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return Mn.scope=window.openc3Scope,Yn.manual=!0,(await Mu.post("/openc3-api/api",{jsonrpc:"2.0",method:_n,params:kn,id:this.id,keyword_params:Mn},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...Yn},timeout:Wn})).data.result}catch(Kn){let Xn=new Error;throw Kn.response?(Xn.name=Kn.response.data.error.data.class,Xn.message=Kn.response.data.error.data.message,Xn.object=Kn.response.data.error):Kn.request?(Xn.name="Request error",Xn.message="Request error, no response received"):Xn.name="Unknown error",Xn}}decode_openc3_type(_n){if(_n!==null&&typeof _n=="object"&&_n.json_class=="Float"&&_n.raw){if(_n.raw=="NaN")return NaN;if(_n.raw=="Infinity")return 1/0;if(_n.raw=="-Infinity")return-1/0}return null}encode_openc3_type(_n){return Number.isNaN(_n)?{json_class:"Float",raw:"NaN"}:_n==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:_n==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(_n=>{_n&&(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(_n){return this.exec("set_offline_access",[_n])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(_n,kn){return this.exec("map_target_to_interface",[_n,kn])}connect_interface(_n,...kn){return kn.length>0?this.exec("connect_interface",[_n,...kn]):this.exec("connect_interface",[_n])}disconnect_interface(_n){return this.exec("disconnect_interface",[_n])}interface_cmd(_n,kn,...Mn){return this.exec("interface_cmd",[_n,kn,...Mn])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(_n){return this.exec("connect_router",[_n])}disconnect_router(_n){return this.exec("disconnect_router",[_n])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(_n){return this.exec("get_tlm_cnts",[_n])}get_item(_n,kn,Mn){return this.exec("get_item",[_n,kn,Mn])}get_param(_n,kn,Mn){return this.exec("get_param",[_n,kn,Mn])}get_parameter(_n,kn,Mn){return this.exec("get_param",[_n,kn,Mn])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(_n){return this.exec("set_limits_set",[_n])}get_target(_n){return this.exec("get_target",[_n])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(_n,kn){return this.exec("get_tlm",[_n,kn])}get_telemetry(_n,kn){return this.exec("get_tlm",[_n,kn])}get_all_tlm(_n){return this.exec("get_all_tlm",[_n])}get_all_telemetry(_n){return this.exec("get_all_tlm",[_n])}get_all_tlm_names(_n,kn=!1){return this.exec("get_all_tlm_names",[_n],{hidden:kn})}get_all_telemetry_names(_n){return this.exec("get_all_tlm_names",[_n])}async get_tlm_packet(_n,kn,Mn,Yn=30){const Wn=await this.exec("get_tlm_packet",[_n,kn],{type:Mn,stale_time:Yn});if(Wn!=null){let Kn=Wn.length,Xn=null;for(let Hn=0;Hn<Kn;Hn++)Xn=this.decode_openc3_type(Wn[Hn][1]),Xn!==null&&(Wn[Hn][1]=Xn)}return Wn}get_packet_derived_items(_n,kn){return this.exec("get_packet_derived_items",[_n,kn])}get_tlm_buffer(_n,kn){return this.exec("get_tlm_buffer",[_n,kn])}async get_tlm_values(_n,kn=30,Mn=null){let Yn={stale_time:kn};Mn!==null&&(Yn.cache_timeout=Mn);const Wn=await this.exec("get_tlm_values",[_n],Yn,{},1e4);let Kn=Wn[0].length,Xn=null;for(let Hn=0;Hn<Kn;Hn++)Xn=this.decode_openc3_type(Wn[0][Hn]),Xn!==null&&(Wn[0][Hn]=Xn);return Wn}get_limits(_n,kn,Mn){return this.exec("get_limits",[_n,kn,Mn])}async tlm(_n,kn,Mn,Yn="CONVERTED"){let Wn=null;if(kn===void 0)Wn=await this.exec("tlm",[_n]);else if(Mn===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(kn))Wn=await this.exec("tlm",[_n],{type:kn});else{let Xn=new Error;throw Xn.name="TypeError",Xn.message=`Invalid data type ${kn}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,Xn}else Wn=await this.exec("tlm",[_n,kn,Mn],{type:Yn});let Kn=this.decode_openc3_type(Wn);return Kn!==null&&(Wn=Kn),Wn}async inject_tlm(_n,kn,Mn=null,Yn="CONVERTED"){data=await this.exec("inject_tlm",[_n,kn,Mn],{type:Yn})}set_tlm(_n,kn,Mn,Yn){return this.exec("set_tlm",[_n,kn,Mn],{type:Yn})}override_tlm(_n,kn,Mn,Yn){return this.exec("override_tlm",[_n,kn,Mn],{type:Yn})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(_n,kn,Mn,Yn){return this.exec("normalize_tlm",[_n,kn,Mn],{type:Yn})}get_all_cmds(_n){return this.exec("get_all_cmds",[_n])}get_all_commands(_n){return this.exec("get_all_cmds",[_n])}get_all_cmd_names(_n,kn=!1){return this.exec("get_all_cmd_names",[_n],{hidden:kn})}get_all_command_names(_n){return this.exec("get_all_cmd_names",[_n])}get_cmd(_n,kn){return this.exec("get_cmd",[_n,kn])}get_command(_n,kn){return this.exec("get_cmd",[_n,kn])}get_cmd_cnts(_n){return this.exec("get_cmd_cnts",[_n])}get_cmd_value(_n,kn,Mn,Yn="CONVERTED"){return this.exec("get_cmd_value",[_n,kn,Mn,Yn])}get_cmd_buffer(_n,kn){return this.exec("get_cmd_buffer",[_n,kn])}_cmd(_n,kn,Mn,Yn,Wn){let Kn=null;for(let Xn in Yn)Object.prototype.hasOwnProperty.call(Yn,Xn)&&(Kn=this.encode_openc3_type(Yn[Xn]),Kn!==null&&(Yn[Xn]=Kn));return this.exec(_n,[kn,Mn,Yn],{},Wn)}get_cmd_hazardous(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("get_cmd_hazardous",_n,{},Yn):this._cmd("get_cmd_hazardous",_n,kn,Mn,Yn)}cmd(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("cmd",_n,{},Yn):this._cmd("cmd",_n,kn,Mn,Yn)}cmd_no_range_check(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("cmd_no_range_check",_n,{},Yn):this._cmd("cmd_no_range_check",_n,kn,Mn,Yn)}cmd_raw(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("cmd_raw",_n,{},Yn):this._cmd("cmd_raw",_n,kn,Mn,Yn)}cmd_raw_no_range_check(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("cmd_raw_no_range_check",_n,{},Yn):this._cmd("cmd_raw_no_range_check",_n,kn,Mn,Yn)}cmd_no_hazardous_check(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("cmd_no_hazardous_check",_n,{},Yn):this._cmd("cmd_no_hazardous_check",_n,kn,Mn,Yn)}cmd_no_checks(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("cmd_no_checks",_n,{},Yn):this._cmd("cmd_no_checks",_n,kn,Mn,Yn)}cmd_raw_no_hazardous_check(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("cmd_raw_no_hazardous_check",_n,{},Yn):this._cmd("cmd_raw_no_hazardous_check",_n,kn,Mn,Yn)}cmd_raw_no_checks(_n,kn,Mn,Yn={}){return kn===void 0?this.exec("cmd_raw_no_checks",_n,{},Yn):this._cmd("cmd_raw_no_checks",_n,kn,Mn,Yn)}build_cmd(_n,kn,Mn){return kn===void 0?this.exec("build_cmd",_n):this._cmd("build_cmd",_n,kn,Mn)}build_command(_n,kn,Mn){return kn===void 0?this.exec("build_cmd",_n):this._cmd("build_cmd",_n,kn,Mn)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(_n,kn){return this.exec("send_raw",[_n,kn])}list_configs(_n){return this.exec("list_configs",[_n])}load_config(_n,kn){return this.exec("load_config",[_n,kn])}save_config(_n,kn,Mn){return this.exec("save_config",[_n,kn,Mn])}delete_config(_n,kn){return this.exec("delete_config",[_n,kn])}enable_limits(_n,kn,Mn){return this.exec("enable_limits",[_n,kn,Mn])}disable_limits(_n,kn,Mn){return this.exec("disable_limits",[_n,kn,Mn])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(_n){return this.exec("get_overall_limits_state",[_n])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(_n){return this.exec("get_setting",[_n])}get_settings(_n){return this.exec("get_settings",_n)}set_setting(_n,kn){return this.exec("set_setting",[_n,kn])}save_setting(_n,kn){return this.exec("set_setting",[_n,kn])}get_metrics(){return this.exec("get_metrics",[])}async hashString(_n){if(window.isSecureContext){const kn=new TextEncoder().encode(_n),Mn=await crypto.subtle.digest("SHA-256",kn),Yn=new Uint8Array(Mn);return Array.from(Yn).map(Wn=>Wn.toString(16).padStart(2,"0")).join("")}}}const U1={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let vn=0;vn<this.currentPackets.length;vn++)if(this.currentPackets[vn].mode==="RAW")return!0;return!1},hasDecom:function(){for(let vn=0;vn<this.currentPackets.length;vn++)if(this.currentPackets[vn].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(vn){this.$emit("config",vn)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(vn){this.latestData=vn}}};var gs={exports:{}};/**
1381
+ * @license
1382
+ * Lodash <https://lodash.com/>
1383
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1384
+ * Released under MIT license <https://lodash.com/license>
1385
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1386
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1387
+ */var V1=gs.exports,lf;function j1(){return lf||(lf=1,function(vn,_n){(function(){var kn,Mn="4.17.21",Yn=200,Wn="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",Kn="Expected a function",Xn="Invalid `variable` option passed into `_.template`",Hn="__lodash_hash_undefined__",qn=500,In="__lodash_placeholder__",Dn=1,Pn=2,Bn=4,Nn=1,zn=2,Qn=1,Jn=2,ti=4,vi=8,pi=16,si=32,ei=64,mi=128,fi=256,yi=512,gi=30,xi="...",ai=800,oi=16,li=1,wi=2,bi=3,_i=1/0,Ti=9007199254740991,Li=17976931348623157e292,Ri=NaN,Ii=4294967295,zi=Ii-1,Oi=Ii>>>1,Bi=[["ary",mi],["bind",Qn],["bindKey",Jn],["curry",vi],["curryRight",pi],["flip",yi],["partial",si],["partialRight",ei],["rearg",fi]],Yi="[object Arguments]",Fi="[object Array]",Qi="[object AsyncFunction]",pr="[object Boolean]",fr="[object Date]",ar="[object DOMException]",yr="[object Error]",ro="[object Function]",Fo="[object GeneratorFunction]",$o="[object Map]",Co="[object Number]",es="[object Null]",Do="[object Object]",Go="[object Promise]",wa="[object Proxy]",as="[object RegExp]",Zo="[object Set]",Ar="[object String]",zr="[object Symbol]",Qo="[object Undefined]",jr="[object WeakMap]",Ji="[object WeakSet]",_r="[object ArrayBuffer]",Sr="[object DataView]",Yr="[object Float32Array]",Kr="[object Float64Array]",ko="[object Int8Array]",So="[object Int16Array]",so="[object Int32Array]",ao="[object Uint8Array]",to="[object Uint8ClampedArray]",Ho="[object Uint16Array]",Rs="[object Uint32Array]",sl=/\b__p \+= '';/g,Us=/\b(__p \+=) '' \+/g,ch=/(__e\(.*?\)|\b__t\)) \+\n'';/g,uh=/&(?:amp|lt|gt|quot|#39);/g,qh=/[&<>"']/g,Jg=RegExp(uh.source),em=RegExp(qh.source),tm=/<%-([\s\S]+?)%>/g,nm=/<%([\s\S]+?)%>/g,Vr=/<%=([\s\S]+?)%>/g,al=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,As=/^\w*$/,ya=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ba=/[\\^$.*+?()[\]{}|]/g,xl=RegExp(ba.source),Is=/^\s+/,_l=/\s/,kl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kh=/\{\n\/\* \[wrapped with (.+)\] \*/,Zh=/,? & /,im=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rm=/[()=,{}\[\]\/\s]/,ll=/\\(\\)?/g,om=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sl=/\w*$/,Qh=/^[-+]0x[0-9a-f]+$/i,$a=/^0b[01]+$/i,ls=/^\[object .+?Constructor\]$/,is=/^0o[0-7]+$/i,rs=/^(?:0|[1-9]\d*)$/,oc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Os=/($^)/,Wl=/['\n\r\u2028\u2029\\]/g,Hl="\\ud800-\\udfff",hh="\\u0300-\\u036f",sc="\\ufe20-\\ufe2f",Cl="\\u20d0-\\u20ff",ac=hh+sc+Cl,lc="\\u2700-\\u27bf",cc="a-z\\xdf-\\xf6\\xf8-\\xff",dh="\\xac\\xb1\\xd7\\xf7",ph="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gh="\\u2000-\\u206f",fh=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ra="A-Z\\xc0-\\xd6\\xd8-\\xde",mh="\\ufe0e\\ufe0f",vh=dh+ph+gh+fh,jl="['’]",Xh="["+Hl+"]",Jh="["+vh+"]",Gu="["+ac+"]",ed="\\d+",td="["+lc+"]",wh="["+cc+"]",nd="[^"+Hl+vh+ed+lc+cc+ra+"]",Yu="\\ud83c[\\udffb-\\udfff]",yh="(?:"+Gu+"|"+Yu+")",Ul="[^"+Hl+"]",Tl="(?:\\ud83c[\\udde6-\\uddff]){2}",bh="[\\ud800-\\udbff][\\udc00-\\udfff]",xa="["+ra+"]",id="\\u200d",rd="(?:"+wh+"|"+nd+")",sm="(?:"+xa+"|"+nd+")",cl="(?:"+jl+"(?:d|ll|m|re|s|t|ve))?",Gl="(?:"+jl+"(?:D|LL|M|RE|S|T|VE))?",qu=yh+"?",Ml="["+mh+"]?",am="(?:"+id+"(?:"+[Ul,Tl,bh].join("|")+")"+Ml+qu+")*",Al="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$h=Ml+qu+am,xh="(?:"+[td,Tl,bh].join("|")+")"+$h,_h="(?:"+[Ul+Gu+"?",Gu,Tl,bh,Xh].join("|")+")",kh=RegExp(jl,"g"),El=RegExp(Gu,"g"),_a=RegExp(Yu+"(?="+Yu+")|"+_h+$h,"g"),od=RegExp([xa+"?"+wh+"+"+cl+"(?="+[Jh,xa,"$"].join("|")+")",sm+"+"+Gl+"(?="+[Jh,xa+rd,"$"].join("|")+")",xa+"?"+rd+"+"+cl,xa+"+"+Gl,lm,Al,ed,xh].join("|"),"g"),sd=RegExp("["+id+Hl+ac+mh+"]"),Ll=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ad=-1,Oo={};Oo[Yr]=Oo[Kr]=Oo[ko]=Oo[So]=Oo[so]=Oo[ao]=Oo[to]=Oo[Ho]=Oo[Rs]=!0,Oo[Yi]=Oo[Fi]=Oo[_r]=Oo[pr]=Oo[Sr]=Oo[fr]=Oo[yr]=Oo[ro]=Oo[$o]=Oo[Co]=Oo[Do]=Oo[as]=Oo[Zo]=Oo[Ar]=Oo[jr]=!1;var Br={};Br[Yi]=Br[Fi]=Br[_r]=Br[Sr]=Br[pr]=Br[fr]=Br[Yr]=Br[Kr]=Br[ko]=Br[So]=Br[so]=Br[$o]=Br[Co]=Br[Do]=Br[as]=Br[Zo]=Br[Ar]=Br[zr]=Br[ao]=Br[to]=Br[Ho]=Br[Rs]=!0,Br[yr]=Br[ro]=Br[jr]=!1;var zo={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ka={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},os={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ss=parseFloat,Po=parseInt,ul=typeof hr=="object"&&hr&&hr.Object===Object&&hr,Ku=typeof self=="object"&&self&&self.Object===Object&&self,$s=ul||Ku||Function("return this")(),oa=_n&&!_n.nodeType&&_n,Es=oa&&!0&&vn&&!vn.nodeType&&vn,ld=Es&&Es.exports===oa,Sh=ld&&ul.process,Gs=function(){try{var Gi=Es&&Es.require&&Es.require("util").types;return Gi||Sh&&Sh.binding&&Sh.binding("util")}catch{}}(),cd=Gs&&Gs.isArrayBuffer,sa=Gs&&Gs.isDate,pa=Gs&&Gs.isMap,Sa=Gs&&Gs.isRegExp,hl=Gs&&Gs.isSet,ud=Gs&&Gs.isTypedArray;function jo(Gi,Xi,Zi){switch(Zi.length){case 0:return Gi.call(Xi);case 1:return Gi.call(Xi,Zi[0]);case 2:return Gi.call(Xi,Zi[0],Zi[1]);case 3:return Gi.call(Xi,Zi[0],Zi[1],Zi[2])}return Gi.apply(Xi,Zi)}function cm(Gi,Xi,Zi,br){for(var Mr=-1,Qr=Gi==null?0:Gi.length;++Mr<Qr;){var Lo=Gi[Mr];Xi(br,Lo,Zi(Lo),Gi)}return br}function Fs(Gi,Xi){for(var Zi=-1,br=Gi==null?0:Gi.length;++Zi<br&&Xi(Gi[Zi],Zi,Gi)!==!1;);return Gi}function hd(Gi,Xi){for(var Zi=Gi==null?0:Gi.length;Zi--&&Xi(Gi[Zi],Zi,Gi)!==!1;);return Gi}function Rl(Gi,Xi){for(var Zi=-1,br=Gi==null?0:Gi.length;++Zi<br;)if(!Xi(Gi[Zi],Zi,Gi))return!1;return!0}function Ys(Gi,Xi){for(var Zi=-1,br=Gi==null?0:Gi.length,Mr=0,Qr=[];++Zi<br;){var Lo=Gi[Zi];Xi(Lo,Zi,Gi)&&(Qr[Mr++]=Lo)}return Qr}function Zu(Gi,Xi){var Zi=Gi==null?0:Gi.length;return!!Zi&&dl(Gi,Xi,0)>-1}function Yl(Gi,Xi,Zi){for(var br=-1,Mr=Gi==null?0:Gi.length;++br<Mr;)if(Zi(Xi,Gi[br]))return!0;return!1}function Wo(Gi,Xi){for(var Zi=-1,br=Gi==null?0:Gi.length,Mr=Array(br);++Zi<br;)Mr[Zi]=Xi(Gi[Zi],Zi,Gi);return Mr}function Ds(Gi,Xi){for(var Zi=-1,br=Xi.length,Mr=Gi.length;++Zi<br;)Gi[Mr+Zi]=Xi[Zi];return Gi}function aa(Gi,Xi,Zi,br){var Mr=-1,Qr=Gi==null?0:Gi.length;for(br&&Qr&&(Zi=Gi[++Mr]);++Mr<Qr;)Zi=Xi(Zi,Gi[Mr],Mr,Gi);return Zi}function ql(Gi,Xi,Zi,br){var Mr=Gi==null?0:Gi.length;for(br&&Mr&&(Zi=Gi[--Mr]);Mr--;)Zi=Xi(Zi,Gi[Mr],Mr,Gi);return Zi}function Qu(Gi,Xi){for(var Zi=-1,br=Gi==null?0:Gi.length;++Zi<br;)if(Xi(Gi[Zi],Zi,Gi))return!0;return!1}var Ch=Lh("length");function Th(Gi){return Gi.split("")}function Xu(Gi){return Gi.match(im)||[]}function Mh(Gi,Xi,Zi){var br;return Zi(Gi,function(Mr,Qr,Lo){if(Xi(Mr,Qr,Lo))return br=Qr,!1}),br}function Kl(Gi,Xi,Zi,br){for(var Mr=Gi.length,Qr=Zi+(br?1:-1);br?Qr--:++Qr<Mr;)if(Xi(Gi[Qr],Qr,Gi))return Qr;return-1}function dl(Gi,Xi,Zi){return Xi===Xi?Zr(Gi,Xi,Zi):Kl(Gi,Ah,Zi)}function dd(Gi,Xi,Zi,br){for(var Mr=Zi-1,Qr=Gi.length;++Mr<Qr;)if(br(Gi[Mr],Xi))return Mr;return-1}function Ah(Gi){return Gi!==Gi}function Eh(Gi,Xi){var Zi=Gi==null?0:Gi.length;return Zi?Ol(Gi,Xi)/Zi:Ri}function Lh(Gi){return function(Xi){return Xi==null?kn:Xi[Gi]}}function Ju(Gi){return function(Xi){return Gi==null?kn:Gi[Xi]}}function Nh(Gi,Xi,Zi,br,Mr){return Mr(Gi,function(Qr,Lo,Jr){Zi=br?(br=!1,Qr):Xi(Zi,Qr,Lo,Jr)}),Zi}function Il(Gi,Xi){var Zi=Gi.length;for(Gi.sort(Xi);Zi--;)Gi[Zi]=Gi[Zi].value;return Gi}function Ol(Gi,Xi){for(var Zi,br=-1,Mr=Gi.length;++br<Mr;){var Qr=Xi(Gi[br]);Qr!==kn&&(Zi=Zi===kn?Qr:Zi+Qr)}return Zi}function Xo(Gi,Xi){for(var Zi=-1,br=Array(Gi);++Zi<Gi;)br[Zi]=Xi(Zi);return br}function pd(Gi,Xi){return Wo(Xi,function(Zi){return[Zi,Gi[Zi]]})}function Yo(Gi){return Gi&&Gi.slice(0,Xr(Gi)+1).replace(Is,"")}function Ps(Gi){return function(Xi){return Gi(Xi)}}function Zl(Gi,Xi){return Wo(Xi,function(Zi){return Gi[Zi]})}function ga(Gi,Xi){return Gi.has(Xi)}function gd(Gi,Xi){for(var Zi=-1,br=Gi.length;++Zi<br&&dl(Xi,Gi[Zi],0)>-1;);return Zi}function fd(Gi,Xi){for(var Zi=Gi.length;Zi--&&dl(Xi,Gi[Zi],0)>-1;);return Zi}function Rh(Gi,Xi){for(var Zi=Gi.length,br=0;Zi--;)Gi[Zi]===Xi&&++br;return br}var Si=Ju(zo),Ai=Ju(ka);function Di(Gi){return"\\"+os[Gi]}function Pi(Gi,Xi){return Gi==null?kn:Gi[Xi]}function ji(Gi){return sd.test(Gi)}function Ki(Gi){return Ll.test(Gi)}function ir(Gi){for(var Xi,Zi=[];!(Xi=Gi.next()).done;)Zi.push(Xi.value);return Zi}function mr(Gi){var Xi=-1,Zi=Array(Gi.size);return Gi.forEach(function(br,Mr){Zi[++Xi]=[Mr,br]}),Zi}function vr(Gi,Xi){return function(Zi){return Gi(Xi(Zi))}}function wr(Gi,Xi){for(var Zi=-1,br=Gi.length,Mr=0,Qr=[];++Zi<br;){var Lo=Gi[Zi];(Lo===Xi||Lo===In)&&(Gi[Zi]=In,Qr[Mr++]=Zi)}return Qr}function $r(Gi){var Xi=-1,Zi=Array(Gi.size);return Gi.forEach(function(br){Zi[++Xi]=br}),Zi}function kr(Gi){var Xi=-1,Zi=Array(Gi.size);return Gi.forEach(function(br){Zi[++Xi]=[br,br]}),Zi}function Zr(Gi,Xi,Zi){for(var br=Zi-1,Mr=Gi.length;++br<Mr;)if(Gi[br]===Xi)return br;return-1}function Ro(Gi,Xi,Zi){for(var br=Zi+1;br--;)if(Gi[br]===Xi)return br;return br}function no(Gi){return ji(Gi)?Eo(Gi):Ch(Gi)}function qr(Gi){return ji(Gi)?qo(Gi):Th(Gi)}function Xr(Gi){for(var Xi=Gi.length;Xi--&&_l.test(Gi.charAt(Xi)););return Xi}var Cr=Ju(cs);function Eo(Gi){for(var Xi=_a.lastIndex=0;_a.test(Gi);)++Xi;return Xi}function qo(Gi){return Gi.match(_a)||[]}function Uo(Gi){return Gi.match(od)||[]}var Vo=function Gi(Xi){Xi=Xi==null?$s:Bo.defaults($s.Object(),Xi,Bo.pick($s,Nl));var Zi=Xi.Array,br=Xi.Date,Mr=Xi.Error,Qr=Xi.Function,Lo=Xi.Math,Jr=Xi.Object,Cs=Xi.RegExp,zs=Xi.String,Ts=Xi.TypeError,Js=Zi.prototype,qs=Qr.prototype,eh=Jr.prototype,md=Xi["__core-js_shared__"],vd=qs.toString,Io=eh.hasOwnProperty,Yw=0,iv=function(){var Ln=/[^.]+$/.exec(md&&md.keys&&md.keys.IE_PROTO||"");return Ln?"Symbol(src)_1."+Ln:""}(),wd=eh.toString,qw=vd.call(Jr),Kw=$s._,Zw=Cs("^"+vd.call(Io).replace(ba,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yd=ld?Xi.Buffer:kn,Dl=Xi.Symbol,bd=Xi.Uint8Array,rv=yd?yd.allocUnsafe:kn,$d=vr(Jr.getPrototypeOf,Jr),ov=Jr.create,sv=eh.propertyIsEnumerable,xd=Js.splice,av=Dl?Dl.isConcatSpreadable:kn,Ih=Dl?Dl.iterator:kn,Ql=Dl?Dl.toStringTag:kn,_d=function(){try{var Ln=nc(Jr,"defineProperty");return Ln({},"",{}),Ln}catch{}}(),Qw=Xi.clearTimeout!==$s.clearTimeout&&Xi.clearTimeout,Xw=br&&br.now!==$s.Date.now&&br.now,Jw=Xi.setTimeout!==$s.setTimeout&&Xi.setTimeout,kd=Lo.ceil,Sd=Lo.floor,um=Jr.getOwnPropertySymbols,ey=yd?yd.isBuffer:kn,lv=Xi.isFinite,ty=Js.join,ny=vr(Jr.keys,Jr),Ms=Lo.max,Vs=Lo.min,iy=br.now,ry=Xi.parseInt,cv=Lo.random,oy=Js.reverse,hm=nc(Xi,"DataView"),Oh=nc(Xi,"Map"),dm=nc(Xi,"Promise"),th=nc(Xi,"Set"),Dh=nc(Xi,"WeakMap"),Ph=nc(Jr,"create"),Cd=Dh&&new Dh,nh={},sy=ic(hm),ay=ic(Oh),ly=ic(dm),cy=ic(th),uy=ic(Dh),Td=Dl?Dl.prototype:kn,Vh=Td?Td.valueOf:kn,uv=Td?Td.toString:kn;function Ei(Ln){if(Jo(Ln)&&!eo(Ln)&&!(Ln instanceof Mo)){if(Ln instanceof la)return Ln;if(Io.call(Ln,"__wrapped__"))return hw(Ln)}return new la(Ln)}var ih=function(){function Ln(){}return function(Zn){if(!Ko(Zn))return{};if(ov)return ov(Zn);Ln.prototype=Zn;var ci=new Ln;return Ln.prototype=kn,ci}}();function Md(){}function la(Ln,Zn){this.__wrapped__=Ln,this.__actions__=[],this.__chain__=!!Zn,this.__index__=0,this.__values__=kn}Ei.templateSettings={escape:tm,evaluate:nm,interpolate:Vr,variable:"",imports:{_:Ei}},Ei.prototype=Md.prototype,Ei.prototype.constructor=Ei,la.prototype=ih(Md.prototype),la.prototype.constructor=la;function Mo(Ln){this.__wrapped__=Ln,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ii,this.__views__=[]}function hy(){var Ln=new Mo(this.__wrapped__);return Ln.__actions__=Ks(this.__actions__),Ln.__dir__=this.__dir__,Ln.__filtered__=this.__filtered__,Ln.__iteratees__=Ks(this.__iteratees__),Ln.__takeCount__=this.__takeCount__,Ln.__views__=Ks(this.__views__),Ln}function dy(){if(this.__filtered__){var Ln=new Mo(this);Ln.__dir__=-1,Ln.__filtered__=!0}else Ln=this.clone(),Ln.__dir__*=-1;return Ln}function py(){var Ln=this.__wrapped__.value(),Zn=this.__dir__,ci=eo(Ln),$i=Zn<0,Mi=ci?Ln.length:0,Ni=Sb(0,Mi,this.__views__),Vi=Ni.start,Wi=Ni.end,qi=Wi-Vi,or=$i?Wi:Vi-1,lr=this.__iteratees__,gr=lr.length,xr=0,Tr=Vs(qi,this.__takeCount__);if(!ci||!$i&&Mi==qi&&Tr==qi)return Iv(Ln,this.__actions__);var Ur=[];e:for(;qi--&&xr<Tr;){or+=Zn;for(var oo=-1,Gr=Ln[or];++oo<gr;){var To=lr[oo],Ao=To.iteratee,na=To.type,js=Ao(Gr);if(na==wi)Gr=js;else if(!js){if(na==li)continue e;break e}}Ur[xr++]=Gr}return Ur}Mo.prototype=ih(Md.prototype),Mo.prototype.constructor=Mo;function Xl(Ln){var Zn=-1,ci=Ln==null?0:Ln.length;for(this.clear();++Zn<ci;){var $i=Ln[Zn];this.set($i[0],$i[1])}}function gy(){this.__data__=Ph?Ph(null):{},this.size=0}function fy(Ln){var Zn=this.has(Ln)&&delete this.__data__[Ln];return this.size-=Zn?1:0,Zn}function my(Ln){var Zn=this.__data__;if(Ph){var ci=Zn[Ln];return ci===Hn?kn:ci}return Io.call(Zn,Ln)?Zn[Ln]:kn}function vy(Ln){var Zn=this.__data__;return Ph?Zn[Ln]!==kn:Io.call(Zn,Ln)}function wy(Ln,Zn){var ci=this.__data__;return this.size+=this.has(Ln)?0:1,ci[Ln]=Ph&&Zn===kn?Hn:Zn,this}Xl.prototype.clear=gy,Xl.prototype.delete=fy,Xl.prototype.get=my,Xl.prototype.has=vy,Xl.prototype.set=wy;function pl(Ln){var Zn=-1,ci=Ln==null?0:Ln.length;for(this.clear();++Zn<ci;){var $i=Ln[Zn];this.set($i[0],$i[1])}}function yy(){this.__data__=[],this.size=0}function by(Ln){var Zn=this.__data__,ci=Ad(Zn,Ln);if(ci<0)return!1;var $i=Zn.length-1;return ci==$i?Zn.pop():xd.call(Zn,ci,1),--this.size,!0}function $y(Ln){var Zn=this.__data__,ci=Ad(Zn,Ln);return ci<0?kn:Zn[ci][1]}function xy(Ln){return Ad(this.__data__,Ln)>-1}function _y(Ln,Zn){var ci=this.__data__,$i=Ad(ci,Ln);return $i<0?(++this.size,ci.push([Ln,Zn])):ci[$i][1]=Zn,this}pl.prototype.clear=yy,pl.prototype.delete=by,pl.prototype.get=$y,pl.prototype.has=xy,pl.prototype.set=_y;function gl(Ln){var Zn=-1,ci=Ln==null?0:Ln.length;for(this.clear();++Zn<ci;){var $i=Ln[Zn];this.set($i[0],$i[1])}}function ky(){this.size=0,this.__data__={hash:new Xl,map:new(Oh||pl),string:new Xl}}function Sy(Ln){var Zn=Hg(this,Ln).delete(Ln);return this.size-=Zn?1:0,Zn}function Cy(Ln){return Hg(this,Ln).get(Ln)}function Ty(Ln){return Hg(this,Ln).has(Ln)}function My(Ln,Zn){var ci=Hg(this,Ln),$i=ci.size;return ci.set(Ln,Zn),this.size+=ci.size==$i?0:1,this}gl.prototype.clear=ky,gl.prototype.delete=Sy,gl.prototype.get=Cy,gl.prototype.has=Ty,gl.prototype.set=My;function Jl(Ln){var Zn=-1,ci=Ln==null?0:Ln.length;for(this.__data__=new gl;++Zn<ci;)this.add(Ln[Zn])}function Ay(Ln){return this.__data__.set(Ln,Hn),this}function Ey(Ln){return this.__data__.has(Ln)}Jl.prototype.add=Jl.prototype.push=Ay,Jl.prototype.has=Ey;function fa(Ln){var Zn=this.__data__=new pl(Ln);this.size=Zn.size}function Ly(){this.__data__=new pl,this.size=0}function Ny(Ln){var Zn=this.__data__,ci=Zn.delete(Ln);return this.size=Zn.size,ci}function Ry(Ln){return this.__data__.get(Ln)}function Iy(Ln){return this.__data__.has(Ln)}function Oy(Ln,Zn){var ci=this.__data__;if(ci instanceof pl){var $i=ci.__data__;if(!Oh||$i.length<Yn-1)return $i.push([Ln,Zn]),this.size=++ci.size,this;ci=this.__data__=new gl($i)}return ci.set(Ln,Zn),this.size=ci.size,this}fa.prototype.clear=Ly,fa.prototype.delete=Ny,fa.prototype.get=Ry,fa.prototype.has=Iy,fa.prototype.set=Oy;function hv(Ln,Zn){var ci=eo(Ln),$i=!ci&&rc(Ln),Mi=!ci&&!$i&&zl(Ln),Ni=!ci&&!$i&&!Mi&&ah(Ln),Vi=ci||$i||Mi||Ni,Wi=Vi?Xo(Ln.length,zs):[],qi=Wi.length;for(var or in Ln)(Zn||Io.call(Ln,or))&&!(Vi&&(or=="length"||Mi&&(or=="offset"||or=="parent")||Ni&&(or=="buffer"||or=="byteLength"||or=="byteOffset")||wl(or,qi)))&&Wi.push(or);return Wi}function dv(Ln){var Zn=Ln.length;return Zn?Ln[_m(0,Zn-1)]:kn}function Dy(Ln,Zn){return jg(Ks(Ln),ec(Zn,0,Ln.length))}function Py(Ln){return jg(Ks(Ln))}function pm(Ln,Zn,ci){(ci!==kn&&!ma(Ln[Zn],ci)||ci===kn&&!(Zn in Ln))&&fl(Ln,Zn,ci)}function Bh(Ln,Zn,ci){var $i=Ln[Zn];(!(Io.call(Ln,Zn)&&ma($i,ci))||ci===kn&&!(Zn in Ln))&&fl(Ln,Zn,ci)}function Ad(Ln,Zn){for(var ci=Ln.length;ci--;)if(ma(Ln[ci][0],Zn))return ci;return-1}function Vy(Ln,Zn,ci,$i){return Pl(Ln,function(Mi,Ni,Vi){Zn($i,Mi,ci(Mi),Vi)}),$i}function pv(Ln,Zn){return Ln&&Aa(Zn,Ls(Zn),Ln)}function By(Ln,Zn){return Ln&&Aa(Zn,Qs(Zn),Ln)}function fl(Ln,Zn,ci){Zn=="__proto__"&&_d?_d(Ln,Zn,{configurable:!0,enumerable:!0,value:ci,writable:!0}):Ln[Zn]=ci}function gm(Ln,Zn){for(var ci=-1,$i=Zn.length,Mi=Zi($i),Ni=Ln==null;++ci<$i;)Mi[ci]=Ni?kn:qm(Ln,Zn[ci]);return Mi}function ec(Ln,Zn,ci){return Ln===Ln&&(ci!==kn&&(Ln=Ln<=ci?Ln:ci),Zn!==kn&&(Ln=Ln>=Zn?Ln:Zn)),Ln}function ca(Ln,Zn,ci,$i,Mi,Ni){var Vi,Wi=Zn&Dn,qi=Zn&Pn,or=Zn&Bn;if(ci&&(Vi=Mi?ci(Ln,$i,Mi,Ni):ci(Ln)),Vi!==kn)return Vi;if(!Ko(Ln))return Ln;var lr=eo(Ln);if(lr){if(Vi=Tb(Ln),!Wi)return Ks(Ln,Vi)}else{var gr=Bs(Ln),xr=gr==ro||gr==Fo;if(zl(Ln))return Pv(Ln,Wi);if(gr==Do||gr==Yi||xr&&!Mi){if(Vi=qi||xr?{}:nw(Ln),!Wi)return qi?mb(Ln,By(Vi,Ln)):fb(Ln,pv(Vi,Ln))}else{if(!Br[gr])return Mi?Ln:{};Vi=Mb(Ln,gr,Wi)}}Ni||(Ni=new fa);var Tr=Ni.get(Ln);if(Tr)return Tr;Ni.set(Ln,Vi),Lw(Ln)?Ln.forEach(function(Gr){Vi.add(ca(Gr,Zn,ci,Gr,Ln,Ni))}):Aw(Ln)&&Ln.forEach(function(Gr,To){Vi.set(To,ca(Gr,Zn,ci,To,Ln,Ni))});var Ur=or?qi?Im:Rm:qi?Qs:Ls,oo=lr?kn:Ur(Ln);return Fs(oo||Ln,function(Gr,To){oo&&(To=Gr,Gr=Ln[To]),Bh(Vi,To,ca(Gr,Zn,ci,To,Ln,Ni))}),Vi}function Fy(Ln){var Zn=Ls(Ln);return function(ci){return gv(ci,Ln,Zn)}}function gv(Ln,Zn,ci){var $i=ci.length;if(Ln==null)return!$i;for(Ln=Jr(Ln);$i--;){var Mi=ci[$i],Ni=Zn[Mi],Vi=Ln[Mi];if(Vi===kn&&!(Mi in Ln)||!Ni(Vi))return!1}return!0}function fv(Ln,Zn,ci){if(typeof Ln!="function")throw new Ts(Kn);return Gh(function(){Ln.apply(kn,ci)},Zn)}function Fh(Ln,Zn,ci,$i){var Mi=-1,Ni=Zu,Vi=!0,Wi=Ln.length,qi=[],or=Zn.length;if(!Wi)return qi;ci&&(Zn=Wo(Zn,Ps(ci))),$i?(Ni=Yl,Vi=!1):Zn.length>=Yn&&(Ni=ga,Vi=!1,Zn=new Jl(Zn));e:for(;++Mi<Wi;){var lr=Ln[Mi],gr=ci==null?lr:ci(lr);if(lr=$i||lr!==0?lr:0,Vi&&gr===gr){for(var xr=or;xr--;)if(Zn[xr]===gr)continue e;qi.push(lr)}else Ni(Zn,gr,$i)||qi.push(lr)}return qi}var Pl=Wv(Ca),mv=Wv(mm,!0);function zy(Ln,Zn){var ci=!0;return Pl(Ln,function($i,Mi,Ni){return ci=!!Zn($i,Mi,Ni),ci}),ci}function Ed(Ln,Zn,ci){for(var $i=-1,Mi=Ln.length;++$i<Mi;){var Ni=Ln[$i],Vi=Zn(Ni);if(Vi!=null&&(Wi===kn?Vi===Vi&&!ta(Vi):ci(Vi,Wi)))var Wi=Vi,qi=Ni}return qi}function Wy(Ln,Zn,ci,$i){var Mi=Ln.length;for(ci=io(ci),ci<0&&(ci=-ci>Mi?0:Mi+ci),$i=$i===kn||$i>Mi?Mi:io($i),$i<0&&($i+=Mi),$i=ci>$i?0:Rw($i);ci<$i;)Ln[ci++]=Zn;return Ln}function vv(Ln,Zn){var ci=[];return Pl(Ln,function($i,Mi,Ni){Zn($i,Mi,Ni)&&ci.push($i)}),ci}function Ns(Ln,Zn,ci,$i,Mi){var Ni=-1,Vi=Ln.length;for(ci||(ci=Eb),Mi||(Mi=[]);++Ni<Vi;){var Wi=Ln[Ni];Zn>0&&ci(Wi)?Zn>1?Ns(Wi,Zn-1,ci,$i,Mi):Ds(Mi,Wi):$i||(Mi[Mi.length]=Wi)}return Mi}var fm=Hv(),wv=Hv(!0);function Ca(Ln,Zn){return Ln&&fm(Ln,Zn,Ls)}function mm(Ln,Zn){return Ln&&wv(Ln,Zn,Ls)}function Ld(Ln,Zn){return Ys(Zn,function(ci){return yl(Ln[ci])})}function tc(Ln,Zn){Zn=Bl(Zn,Ln);for(var ci=0,$i=Zn.length;Ln!=null&&ci<$i;)Ln=Ln[ol(Zn[ci++])];return ci&&ci==$i?Ln:kn}function yv(Ln,Zn,ci){var $i=Zn(Ln);return eo(Ln)?$i:Ds($i,ci(Ln))}function Ws(Ln){return Ln==null?Ln===kn?Qo:es:Ql&&Ql in Jr(Ln)?kb(Ln):Pb(Ln)}function vm(Ln,Zn){return Ln>Zn}function Hy(Ln,Zn){return Ln!=null&&Io.call(Ln,Zn)}function jy(Ln,Zn){return Ln!=null&&Zn in Jr(Ln)}function Uy(Ln,Zn,ci){return Ln>=Vs(Zn,ci)&&Ln<Ms(Zn,ci)}function wm(Ln,Zn,ci){for(var $i=ci?Yl:Zu,Mi=Ln[0].length,Ni=Ln.length,Vi=Ni,Wi=Zi(Ni),qi=1/0,or=[];Vi--;){var lr=Ln[Vi];Vi&&Zn&&(lr=Wo(lr,Ps(Zn))),qi=Vs(lr.length,qi),Wi[Vi]=!ci&&(Zn||Mi>=120&&lr.length>=120)?new Jl(Vi&&lr):kn}lr=Ln[0];var gr=-1,xr=Wi[0];e:for(;++gr<Mi&&or.length<qi;){var Tr=lr[gr],Ur=Zn?Zn(Tr):Tr;if(Tr=ci||Tr!==0?Tr:0,!(xr?ga(xr,Ur):$i(or,Ur,ci))){for(Vi=Ni;--Vi;){var oo=Wi[Vi];if(!(oo?ga(oo,Ur):$i(Ln[Vi],Ur,ci)))continue e}xr&&xr.push(Ur),or.push(Tr)}}return or}function Gy(Ln,Zn,ci,$i){return Ca(Ln,function(Mi,Ni,Vi){Zn($i,ci(Mi),Ni,Vi)}),$i}function zh(Ln,Zn,ci){Zn=Bl(Zn,Ln),Ln=sw(Ln,Zn);var $i=Ln==null?Ln:Ln[ol(ha(Zn))];return $i==null?kn:jo($i,Ln,ci)}function bv(Ln){return Jo(Ln)&&Ws(Ln)==Yi}function Yy(Ln){return Jo(Ln)&&Ws(Ln)==_r}function qy(Ln){return Jo(Ln)&&Ws(Ln)==fr}function Wh(Ln,Zn,ci,$i,Mi){return Ln===Zn?!0:Ln==null||Zn==null||!Jo(Ln)&&!Jo(Zn)?Ln!==Ln&&Zn!==Zn:Ky(Ln,Zn,ci,$i,Wh,Mi)}function Ky(Ln,Zn,ci,$i,Mi,Ni){var Vi=eo(Ln),Wi=eo(Zn),qi=Vi?Fi:Bs(Ln),or=Wi?Fi:Bs(Zn);qi=qi==Yi?Do:qi,or=or==Yi?Do:or;var lr=qi==Do,gr=or==Do,xr=qi==or;if(xr&&zl(Ln)){if(!zl(Zn))return!1;Vi=!0,lr=!1}if(xr&&!lr)return Ni||(Ni=new fa),Vi||ah(Ln)?Jv(Ln,Zn,ci,$i,Mi,Ni):xb(Ln,Zn,qi,ci,$i,Mi,Ni);if(!(ci&Nn)){var Tr=lr&&Io.call(Ln,"__wrapped__"),Ur=gr&&Io.call(Zn,"__wrapped__");if(Tr||Ur){var oo=Tr?Ln.value():Ln,Gr=Ur?Zn.value():Zn;return Ni||(Ni=new fa),Mi(oo,Gr,ci,$i,Ni)}}return xr?(Ni||(Ni=new fa),_b(Ln,Zn,ci,$i,Mi,Ni)):!1}function Zy(Ln){return Jo(Ln)&&Bs(Ln)==$o}function ym(Ln,Zn,ci,$i){var Mi=ci.length,Ni=Mi,Vi=!$i;if(Ln==null)return!Ni;for(Ln=Jr(Ln);Mi--;){var Wi=ci[Mi];if(Vi&&Wi[2]?Wi[1]!==Ln[Wi[0]]:!(Wi[0]in Ln))return!1}for(;++Mi<Ni;){Wi=ci[Mi];var qi=Wi[0],or=Ln[qi],lr=Wi[1];if(Vi&&Wi[2]){if(or===kn&&!(qi in Ln))return!1}else{var gr=new fa;if($i)var xr=$i(or,lr,qi,Ln,Zn,gr);if(!(xr===kn?Wh(lr,or,Nn|zn,$i,gr):xr))return!1}}return!0}function $v(Ln){if(!Ko(Ln)||Nb(Ln))return!1;var Zn=yl(Ln)?Zw:ls;return Zn.test(ic(Ln))}function Qy(Ln){return Jo(Ln)&&Ws(Ln)==as}function Xy(Ln){return Jo(Ln)&&Bs(Ln)==Zo}function Jy(Ln){return Jo(Ln)&&Zg(Ln.length)&&!!Oo[Ws(Ln)]}function xv(Ln){return typeof Ln=="function"?Ln:Ln==null?Xs:typeof Ln=="object"?eo(Ln)?Sv(Ln[0],Ln[1]):kv(Ln):jw(Ln)}function bm(Ln){if(!Uh(Ln))return ny(Ln);var Zn=[];for(var ci in Jr(Ln))Io.call(Ln,ci)&&ci!="constructor"&&Zn.push(ci);return Zn}function eb(Ln){if(!Ko(Ln))return Db(Ln);var Zn=Uh(Ln),ci=[];for(var $i in Ln)$i=="constructor"&&(Zn||!Io.call(Ln,$i))||ci.push($i);return ci}function $m(Ln,Zn){return Ln<Zn}function _v(Ln,Zn){var ci=-1,$i=Zs(Ln)?Zi(Ln.length):[];return Pl(Ln,function(Mi,Ni,Vi){$i[++ci]=Zn(Mi,Ni,Vi)}),$i}function kv(Ln){var Zn=Dm(Ln);return Zn.length==1&&Zn[0][2]?rw(Zn[0][0],Zn[0][1]):function(ci){return ci===Ln||ym(ci,Ln,Zn)}}function Sv(Ln,Zn){return Vm(Ln)&&iw(Zn)?rw(ol(Ln),Zn):function(ci){var $i=qm(ci,Ln);return $i===kn&&$i===Zn?Km(ci,Ln):Wh(Zn,$i,Nn|zn)}}function Rd(Ln,Zn,ci,$i,Mi){Ln!==Zn&&fm(Zn,function(Ni,Vi){if(Mi||(Mi=new fa),Ko(Ni))tb(Ln,Zn,Vi,ci,Rd,$i,Mi);else{var Wi=$i?$i(Fm(Ln,Vi),Ni,Vi+"",Ln,Zn,Mi):kn;Wi===kn&&(Wi=Ni),pm(Ln,Vi,Wi)}},Qs)}function tb(Ln,Zn,ci,$i,Mi,Ni,Vi){var Wi=Fm(Ln,ci),qi=Fm(Zn,ci),or=Vi.get(qi);if(or){pm(Ln,ci,or);return}var lr=Ni?Ni(Wi,qi,ci+"",Ln,Zn,Vi):kn,gr=lr===kn;if(gr){var xr=eo(qi),Tr=!xr&&zl(qi),Ur=!xr&&!Tr&&ah(qi);lr=qi,xr||Tr||Ur?eo(Wi)?lr=Wi:ts(Wi)?lr=Ks(Wi):Tr?(gr=!1,lr=Pv(qi,!0)):Ur?(gr=!1,lr=Vv(qi,!0)):lr=[]:Yh(qi)||rc(qi)?(lr=Wi,rc(Wi)?lr=Iw(Wi):(!Ko(Wi)||yl(Wi))&&(lr=nw(qi))):gr=!1}gr&&(Vi.set(qi,lr),Mi(lr,qi,$i,Ni,Vi),Vi.delete(qi)),pm(Ln,ci,lr)}function Cv(Ln,Zn){var ci=Ln.length;if(ci)return Zn+=Zn<0?ci:0,wl(Zn,ci)?Ln[Zn]:kn}function Tv(Ln,Zn,ci){Zn.length?Zn=Wo(Zn,function(Ni){return eo(Ni)?function(Vi){return tc(Vi,Ni.length===1?Ni[0]:Ni)}:Ni}):Zn=[Xs];var $i=-1;Zn=Wo(Zn,Ps(Hr()));var Mi=_v(Ln,function(Ni,Vi,Wi){var qi=Wo(Zn,function(or){return or(Ni)});return{criteria:qi,index:++$i,value:Ni}});return Il(Mi,function(Ni,Vi){return gb(Ni,Vi,ci)})}function nb(Ln,Zn){return Mv(Ln,Zn,function(ci,$i){return Km(Ln,$i)})}function Mv(Ln,Zn,ci){for(var $i=-1,Mi=Zn.length,Ni={};++$i<Mi;){var Vi=Zn[$i],Wi=tc(Ln,Vi);ci(Wi,Vi)&&Hh(Ni,Bl(Vi,Ln),Wi)}return Ni}function ib(Ln){return function(Zn){return tc(Zn,Ln)}}function xm(Ln,Zn,ci,$i){var Mi=$i?dd:dl,Ni=-1,Vi=Zn.length,Wi=Ln;for(Ln===Zn&&(Zn=Ks(Zn)),ci&&(Wi=Wo(Ln,Ps(ci)));++Ni<Vi;)for(var qi=0,or=Zn[Ni],lr=ci?ci(or):or;(qi=Mi(Wi,lr,qi,$i))>-1;)Wi!==Ln&&xd.call(Wi,qi,1),xd.call(Ln,qi,1);return Ln}function Av(Ln,Zn){for(var ci=Ln?Zn.length:0,$i=ci-1;ci--;){var Mi=Zn[ci];if(ci==$i||Mi!==Ni){var Ni=Mi;wl(Mi)?xd.call(Ln,Mi,1):Cm(Ln,Mi)}}return Ln}function _m(Ln,Zn){return Ln+Sd(cv()*(Zn-Ln+1))}function rb(Ln,Zn,ci,$i){for(var Mi=-1,Ni=Ms(kd((Zn-Ln)/(ci||1)),0),Vi=Zi(Ni);Ni--;)Vi[$i?Ni:++Mi]=Ln,Ln+=ci;return Vi}function km(Ln,Zn){var ci="";if(!Ln||Zn<1||Zn>Ti)return ci;do Zn%2&&(ci+=Ln),Zn=Sd(Zn/2),Zn&&(Ln+=Ln);while(Zn);return ci}function lo(Ln,Zn){return zm(ow(Ln,Zn,Xs),Ln+"")}function ob(Ln){return dv(lh(Ln))}function sb(Ln,Zn){var ci=lh(Ln);return jg(ci,ec(Zn,0,ci.length))}function Hh(Ln,Zn,ci,$i){if(!Ko(Ln))return Ln;Zn=Bl(Zn,Ln);for(var Mi=-1,Ni=Zn.length,Vi=Ni-1,Wi=Ln;Wi!=null&&++Mi<Ni;){var qi=ol(Zn[Mi]),or=ci;if(qi==="__proto__"||qi==="constructor"||qi==="prototype")return Ln;if(Mi!=Vi){var lr=Wi[qi];or=$i?$i(lr,qi,Wi):kn,or===kn&&(or=Ko(lr)?lr:wl(Zn[Mi+1])?[]:{})}Bh(Wi,qi,or),Wi=Wi[qi]}return Ln}var Ev=Cd?function(Ln,Zn){return Cd.set(Ln,Zn),Ln}:Xs,ab=_d?function(Ln,Zn){return _d(Ln,"toString",{configurable:!0,enumerable:!1,value:Qm(Zn),writable:!0})}:Xs;function lb(Ln){return jg(lh(Ln))}function ua(Ln,Zn,ci){var $i=-1,Mi=Ln.length;Zn<0&&(Zn=-Zn>Mi?0:Mi+Zn),ci=ci>Mi?Mi:ci,ci<0&&(ci+=Mi),Mi=Zn>ci?0:ci-Zn>>>0,Zn>>>=0;for(var Ni=Zi(Mi);++$i<Mi;)Ni[$i]=Ln[$i+Zn];return Ni}function cb(Ln,Zn){var ci;return Pl(Ln,function($i,Mi,Ni){return ci=Zn($i,Mi,Ni),!ci}),!!ci}function Id(Ln,Zn,ci){var $i=0,Mi=Ln==null?$i:Ln.length;if(typeof Zn=="number"&&Zn===Zn&&Mi<=Oi){for(;$i<Mi;){var Ni=$i+Mi>>>1,Vi=Ln[Ni];Vi!==null&&!ta(Vi)&&(ci?Vi<=Zn:Vi<Zn)?$i=Ni+1:Mi=Ni}return Mi}return Sm(Ln,Zn,Xs,ci)}function Sm(Ln,Zn,ci,$i){var Mi=0,Ni=Ln==null?0:Ln.length;if(Ni===0)return 0;Zn=ci(Zn);for(var Vi=Zn!==Zn,Wi=Zn===null,qi=ta(Zn),or=Zn===kn;Mi<Ni;){var lr=Sd((Mi+Ni)/2),gr=ci(Ln[lr]),xr=gr!==kn,Tr=gr===null,Ur=gr===gr,oo=ta(gr);if(Vi)var Gr=$i||Ur;else or?Gr=Ur&&($i||xr):Wi?Gr=Ur&&xr&&($i||!Tr):qi?Gr=Ur&&xr&&!Tr&&($i||!oo):Tr||oo?Gr=!1:Gr=$i?gr<=Zn:gr<Zn;Gr?Mi=lr+1:Ni=lr}return Vs(Ni,zi)}function Lv(Ln,Zn){for(var ci=-1,$i=Ln.length,Mi=0,Ni=[];++ci<$i;){var Vi=Ln[ci],Wi=Zn?Zn(Vi):Vi;if(!ci||!ma(Wi,qi)){var qi=Wi;Ni[Mi++]=Vi===0?0:Vi}}return Ni}function Nv(Ln){return typeof Ln=="number"?Ln:ta(Ln)?Ri:+Ln}function ea(Ln){if(typeof Ln=="string")return Ln;if(eo(Ln))return Wo(Ln,ea)+"";if(ta(Ln))return uv?uv.call(Ln):"";var Zn=Ln+"";return Zn=="0"&&1/Ln==-_i?"-0":Zn}function Vl(Ln,Zn,ci){var $i=-1,Mi=Zu,Ni=Ln.length,Vi=!0,Wi=[],qi=Wi;if(ci)Vi=!1,Mi=Yl;else if(Ni>=Yn){var or=Zn?null:bb(Ln);if(or)return $r(or);Vi=!1,Mi=ga,qi=new Jl}else qi=Zn?[]:Wi;e:for(;++$i<Ni;){var lr=Ln[$i],gr=Zn?Zn(lr):lr;if(lr=ci||lr!==0?lr:0,Vi&&gr===gr){for(var xr=qi.length;xr--;)if(qi[xr]===gr)continue e;Zn&&qi.push(gr),Wi.push(lr)}else Mi(qi,gr,ci)||(qi!==Wi&&qi.push(gr),Wi.push(lr))}return Wi}function Cm(Ln,Zn){return Zn=Bl(Zn,Ln),Ln=sw(Ln,Zn),Ln==null||delete Ln[ol(ha(Zn))]}function Rv(Ln,Zn,ci,$i){return Hh(Ln,Zn,ci(tc(Ln,Zn)),$i)}function Od(Ln,Zn,ci,$i){for(var Mi=Ln.length,Ni=$i?Mi:-1;($i?Ni--:++Ni<Mi)&&Zn(Ln[Ni],Ni,Ln););return ci?ua(Ln,$i?0:Ni,$i?Ni+1:Mi):ua(Ln,$i?Ni+1:0,$i?Mi:Ni)}function Iv(Ln,Zn){var ci=Ln;return ci instanceof Mo&&(ci=ci.value()),aa(Zn,function($i,Mi){return Mi.func.apply(Mi.thisArg,Ds([$i],Mi.args))},ci)}function Tm(Ln,Zn,ci){var $i=Ln.length;if($i<2)return $i?Vl(Ln[0]):[];for(var Mi=-1,Ni=Zi($i);++Mi<$i;)for(var Vi=Ln[Mi],Wi=-1;++Wi<$i;)Wi!=Mi&&(Ni[Mi]=Fh(Ni[Mi]||Vi,Ln[Wi],Zn,ci));return Vl(Ns(Ni,1),Zn,ci)}function Ov(Ln,Zn,ci){for(var $i=-1,Mi=Ln.length,Ni=Zn.length,Vi={};++$i<Mi;){var Wi=$i<Ni?Zn[$i]:kn;ci(Vi,Ln[$i],Wi)}return Vi}function Mm(Ln){return ts(Ln)?Ln:[]}function Am(Ln){return typeof Ln=="function"?Ln:Xs}function Bl(Ln,Zn){return eo(Ln)?Ln:Vm(Ln,Zn)?[Ln]:uw(No(Ln))}var ub=lo;function Fl(Ln,Zn,ci){var $i=Ln.length;return ci=ci===kn?$i:ci,!Zn&&ci>=$i?Ln:ua(Ln,Zn,ci)}var Dv=Qw||function(Ln){return $s.clearTimeout(Ln)};function Pv(Ln,Zn){if(Zn)return Ln.slice();var ci=Ln.length,$i=rv?rv(ci):new Ln.constructor(ci);return Ln.copy($i),$i}function Em(Ln){var Zn=new Ln.constructor(Ln.byteLength);return new bd(Zn).set(new bd(Ln)),Zn}function hb(Ln,Zn){var ci=Zn?Em(Ln.buffer):Ln.buffer;return new Ln.constructor(ci,Ln.byteOffset,Ln.byteLength)}function db(Ln){var Zn=new Ln.constructor(Ln.source,Sl.exec(Ln));return Zn.lastIndex=Ln.lastIndex,Zn}function pb(Ln){return Vh?Jr(Vh.call(Ln)):{}}function Vv(Ln,Zn){var ci=Zn?Em(Ln.buffer):Ln.buffer;return new Ln.constructor(ci,Ln.byteOffset,Ln.length)}function Bv(Ln,Zn){if(Ln!==Zn){var ci=Ln!==kn,$i=Ln===null,Mi=Ln===Ln,Ni=ta(Ln),Vi=Zn!==kn,Wi=Zn===null,qi=Zn===Zn,or=ta(Zn);if(!Wi&&!or&&!Ni&&Ln>Zn||Ni&&Vi&&qi&&!Wi&&!or||$i&&Vi&&qi||!ci&&qi||!Mi)return 1;if(!$i&&!Ni&&!or&&Ln<Zn||or&&ci&&Mi&&!$i&&!Ni||Wi&&ci&&Mi||!Vi&&Mi||!qi)return-1}return 0}function gb(Ln,Zn,ci){for(var $i=-1,Mi=Ln.criteria,Ni=Zn.criteria,Vi=Mi.length,Wi=ci.length;++$i<Vi;){var qi=Bv(Mi[$i],Ni[$i]);if(qi){if($i>=Wi)return qi;var or=ci[$i];return qi*(or=="desc"?-1:1)}}return Ln.index-Zn.index}function Fv(Ln,Zn,ci,$i){for(var Mi=-1,Ni=Ln.length,Vi=ci.length,Wi=-1,qi=Zn.length,or=Ms(Ni-Vi,0),lr=Zi(qi+or),gr=!$i;++Wi<qi;)lr[Wi]=Zn[Wi];for(;++Mi<Vi;)(gr||Mi<Ni)&&(lr[ci[Mi]]=Ln[Mi]);for(;or--;)lr[Wi++]=Ln[Mi++];return lr}function zv(Ln,Zn,ci,$i){for(var Mi=-1,Ni=Ln.length,Vi=-1,Wi=ci.length,qi=-1,or=Zn.length,lr=Ms(Ni-Wi,0),gr=Zi(lr+or),xr=!$i;++Mi<lr;)gr[Mi]=Ln[Mi];for(var Tr=Mi;++qi<or;)gr[Tr+qi]=Zn[qi];for(;++Vi<Wi;)(xr||Mi<Ni)&&(gr[Tr+ci[Vi]]=Ln[Mi++]);return gr}function Ks(Ln,Zn){var ci=-1,$i=Ln.length;for(Zn||(Zn=Zi($i));++ci<$i;)Zn[ci]=Ln[ci];return Zn}function Aa(Ln,Zn,ci,$i){var Mi=!ci;ci||(ci={});for(var Ni=-1,Vi=Zn.length;++Ni<Vi;){var Wi=Zn[Ni],qi=$i?$i(ci[Wi],Ln[Wi],Wi,ci,Ln):kn;qi===kn&&(qi=Ln[Wi]),Mi?fl(ci,Wi,qi):Bh(ci,Wi,qi)}return ci}function fb(Ln,Zn){return Aa(Ln,Pm(Ln),Zn)}function mb(Ln,Zn){return Aa(Ln,ew(Ln),Zn)}function Dd(Ln,Zn){return function(ci,$i){var Mi=eo(ci)?cm:Vy,Ni=Zn?Zn():{};return Mi(ci,Ln,Hr($i,2),Ni)}}function rh(Ln){return lo(function(Zn,ci){var $i=-1,Mi=ci.length,Ni=Mi>1?ci[Mi-1]:kn,Vi=Mi>2?ci[2]:kn;for(Ni=Ln.length>3&&typeof Ni=="function"?(Mi--,Ni):kn,Vi&&Hs(ci[0],ci[1],Vi)&&(Ni=Mi<3?kn:Ni,Mi=1),Zn=Jr(Zn);++$i<Mi;){var Wi=ci[$i];Wi&&Ln(Zn,Wi,$i,Ni)}return Zn})}function Wv(Ln,Zn){return function(ci,$i){if(ci==null)return ci;if(!Zs(ci))return Ln(ci,$i);for(var Mi=ci.length,Ni=Zn?Mi:-1,Vi=Jr(ci);(Zn?Ni--:++Ni<Mi)&&$i(Vi[Ni],Ni,Vi)!==!1;);return ci}}function Hv(Ln){return function(Zn,ci,$i){for(var Mi=-1,Ni=Jr(Zn),Vi=$i(Zn),Wi=Vi.length;Wi--;){var qi=Vi[Ln?Wi:++Mi];if(ci(Ni[qi],qi,Ni)===!1)break}return Zn}}function vb(Ln,Zn,ci){var $i=Zn&Qn,Mi=jh(Ln);function Ni(){var Vi=this&&this!==$s&&this instanceof Ni?Mi:Ln;return Vi.apply($i?ci:this,arguments)}return Ni}function jv(Ln){return function(Zn){Zn=No(Zn);var ci=ji(Zn)?qr(Zn):kn,$i=ci?ci[0]:Zn.charAt(0),Mi=ci?Fl(ci,1).join(""):Zn.slice(1);return $i[Ln]()+Mi}}function oh(Ln){return function(Zn){return aa(Ww(zw(Zn).replace(kh,"")),Ln,"")}}function jh(Ln){return function(){var Zn=arguments;switch(Zn.length){case 0:return new Ln;case 1:return new Ln(Zn[0]);case 2:return new Ln(Zn[0],Zn[1]);case 3:return new Ln(Zn[0],Zn[1],Zn[2]);case 4:return new Ln(Zn[0],Zn[1],Zn[2],Zn[3]);case 5:return new Ln(Zn[0],Zn[1],Zn[2],Zn[3],Zn[4]);case 6:return new Ln(Zn[0],Zn[1],Zn[2],Zn[3],Zn[4],Zn[5]);case 7:return new Ln(Zn[0],Zn[1],Zn[2],Zn[3],Zn[4],Zn[5],Zn[6])}var ci=ih(Ln.prototype),$i=Ln.apply(ci,Zn);return Ko($i)?$i:ci}}function wb(Ln,Zn,ci){var $i=jh(Ln);function Mi(){for(var Ni=arguments.length,Vi=Zi(Ni),Wi=Ni,qi=sh(Mi);Wi--;)Vi[Wi]=arguments[Wi];var or=Ni<3&&Vi[0]!==qi&&Vi[Ni-1]!==qi?[]:wr(Vi,qi);if(Ni-=or.length,Ni<ci)return Kv(Ln,Zn,Pg,Mi.placeholder,kn,Vi,or,kn,kn,ci-Ni);var lr=this&&this!==$s&&this instanceof Mi?$i:Ln;return jo(lr,this,Vi)}return Mi}function Uv(Ln){return function(Zn,ci,$i){var Mi=Jr(Zn);if(!Zs(Zn)){var Ni=Hr(ci,3);Zn=Ls(Zn),ci=function(Wi){return Ni(Mi[Wi],Wi,Mi)}}var Vi=Ln(Zn,ci,$i);return Vi>-1?Mi[Ni?Zn[Vi]:Vi]:kn}}function Gv(Ln){return vl(function(Zn){var ci=Zn.length,$i=ci,Mi=la.prototype.thru;for(Ln&&Zn.reverse();$i--;){var Ni=Zn[$i];if(typeof Ni!="function")throw new Ts(Kn);if(Mi&&!Vi&&Wg(Ni)=="wrapper")var Vi=new la([],!0)}for($i=Vi?$i:ci;++$i<ci;){Ni=Zn[$i];var Wi=Wg(Ni),qi=Wi=="wrapper"?Om(Ni):kn;qi&&Bm(qi[0])&&qi[1]==(mi|vi|si|fi)&&!qi[4].length&&qi[9]==1?Vi=Vi[Wg(qi[0])].apply(Vi,qi[3]):Vi=Ni.length==1&&Bm(Ni)?Vi[Wi]():Vi.thru(Ni)}return function(){var or=arguments,lr=or[0];if(Vi&&or.length==1&&eo(lr))return Vi.plant(lr).value();for(var gr=0,xr=ci?Zn[gr].apply(this,or):lr;++gr<ci;)xr=Zn[gr].call(this,xr);return xr}})}function Pg(Ln,Zn,ci,$i,Mi,Ni,Vi,Wi,qi,or){var lr=Zn&mi,gr=Zn&Qn,xr=Zn&Jn,Tr=Zn&(vi|pi),Ur=Zn&yi,oo=xr?kn:jh(Ln);function Gr(){for(var To=arguments.length,Ao=Zi(To),na=To;na--;)Ao[na]=arguments[na];if(Tr)var js=sh(Gr),ia=Rh(Ao,js);if($i&&(Ao=Fv(Ao,$i,Mi,Tr)),Ni&&(Ao=zv(Ao,Ni,Vi,Tr)),To-=ia,Tr&&To<or){var ns=wr(Ao,js);return Kv(Ln,Zn,Pg,Gr.placeholder,ci,Ao,ns,Wi,qi,or-To)}var va=gr?ci:this,$l=xr?va[Ln]:Ln;return To=Ao.length,Wi?Ao=Vb(Ao,Wi):Ur&&To>1&&Ao.reverse(),lr&&qi<To&&(Ao.length=qi),this&&this!==$s&&this instanceof Gr&&($l=oo||jh($l)),$l.apply(va,Ao)}return Gr}function Yv(Ln,Zn){return function(ci,$i){return Gy(ci,Ln,Zn($i),{})}}function Vg(Ln,Zn){return function(ci,$i){var Mi;if(ci===kn&&$i===kn)return Zn;if(ci!==kn&&(Mi=ci),$i!==kn){if(Mi===kn)return $i;typeof ci=="string"||typeof $i=="string"?(ci=ea(ci),$i=ea($i)):(ci=Nv(ci),$i=Nv($i)),Mi=Ln(ci,$i)}return Mi}}function Lm(Ln){return vl(function(Zn){return Zn=Wo(Zn,Ps(Hr())),lo(function(ci){var $i=this;return Ln(Zn,function(Mi){return jo(Mi,$i,ci)})})})}function Bg(Ln,Zn){Zn=Zn===kn?" ":ea(Zn);var ci=Zn.length;if(ci<2)return ci?km(Zn,Ln):Zn;var $i=km(Zn,kd(Ln/no(Zn)));return ji(Zn)?Fl(qr($i),0,Ln).join(""):$i.slice(0,Ln)}function yb(Ln,Zn,ci,$i){var Mi=Zn&Qn,Ni=jh(Ln);function Vi(){for(var Wi=-1,qi=arguments.length,or=-1,lr=$i.length,gr=Zi(lr+qi),xr=this&&this!==$s&&this instanceof Vi?Ni:Ln;++or<lr;)gr[or]=$i[or];for(;qi--;)gr[or++]=arguments[++Wi];return jo(xr,Mi?ci:this,gr)}return Vi}function qv(Ln){return function(Zn,ci,$i){return $i&&typeof $i!="number"&&Hs(Zn,ci,$i)&&(ci=$i=kn),Zn=bl(Zn),ci===kn?(ci=Zn,Zn=0):ci=bl(ci),$i=$i===kn?Zn<ci?1:-1:bl($i),rb(Zn,ci,$i,Ln)}}function zg(Ln){return function(Zn,ci){return typeof Zn=="string"&&typeof ci=="string"||(Zn=da(Zn),ci=da(ci)),Ln(Zn,ci)}}function Kv(Ln,Zn,ci,$i,Mi,Ni,Vi,Wi,qi,or){var lr=Zn&vi,gr=lr?Vi:kn,xr=lr?kn:Vi,Tr=lr?Ni:kn,Ur=lr?kn:Ni;Zn|=lr?si:ei,Zn&=~(lr?ei:si),Zn&ti||(Zn&=~(Qn|Jn));var oo=[Ln,Zn,Mi,Tr,gr,Ur,xr,Wi,qi,or],Gr=ci.apply(kn,oo);return Bm(Ln)&&aw(Gr,oo),Gr.placeholder=$i,lw(Gr,Ln,Zn)}function Nm(Ln){var Zn=Lo[Ln];return function(ci,$i){if(ci=da(ci),$i=$i==null?0:Vs(io($i),292),$i&&lv(ci)){var Mi=(No(ci)+"e").split("e"),Ni=Zn(Mi[0]+"e"+(+Mi[1]+$i));return Mi=(No(Ni)+"e").split("e"),+(Mi[0]+"e"+(+Mi[1]-$i))}return Zn(ci)}}var bb=th&&1/$r(new th([,-0]))[1]==_i?function(Ln){return new th(Ln)}:ev;function Zv(Ln){return function(Zn){var ci=Bs(Zn);return ci==$o?mr(Zn):ci==Zo?kr(Zn):pd(Zn,Ln(Zn))}}function ml(Ln,Zn,ci,$i,Mi,Ni,Vi,Wi){var qi=Zn&Jn;if(!qi&&typeof Ln!="function")throw new Ts(Kn);var or=$i?$i.length:0;if(or||(Zn&=~(si|ei),$i=Mi=kn),Vi=Vi===kn?Vi:Ms(io(Vi),0),Wi=Wi===kn?Wi:io(Wi),or-=Mi?Mi.length:0,Zn&ei){var lr=$i,gr=Mi;$i=Mi=kn}var xr=qi?kn:Om(Ln),Tr=[Ln,Zn,ci,$i,Mi,lr,gr,Ni,Vi,Wi];if(xr&&Ob(Tr,xr),Ln=Tr[0],Zn=Tr[1],ci=Tr[2],$i=Tr[3],Mi=Tr[4],Wi=Tr[9]=Tr[9]===kn?qi?0:Ln.length:Ms(Tr[9]-or,0),!Wi&&Zn&(vi|pi)&&(Zn&=~(vi|pi)),!Zn||Zn==Qn)var Ur=vb(Ln,Zn,ci);else Zn==vi||Zn==pi?Ur=wb(Ln,Zn,Wi):(Zn==si||Zn==(Qn|si))&&!Mi.length?Ur=yb(Ln,Zn,ci,$i):Ur=Pg.apply(kn,Tr);var oo=xr?Ev:aw;return lw(oo(Ur,Tr),Ln,Zn)}function Qv(Ln,Zn,ci,$i){return Ln===kn||ma(Ln,eh[ci])&&!Io.call($i,ci)?Zn:Ln}function Xv(Ln,Zn,ci,$i,Mi,Ni){return Ko(Ln)&&Ko(Zn)&&(Ni.set(Zn,Ln),Rd(Ln,Zn,kn,Xv,Ni),Ni.delete(Zn)),Ln}function $b(Ln){return Yh(Ln)?kn:Ln}function Jv(Ln,Zn,ci,$i,Mi,Ni){var Vi=ci&Nn,Wi=Ln.length,qi=Zn.length;if(Wi!=qi&&!(Vi&&qi>Wi))return!1;var or=Ni.get(Ln),lr=Ni.get(Zn);if(or&&lr)return or==Zn&&lr==Ln;var gr=-1,xr=!0,Tr=ci&zn?new Jl:kn;for(Ni.set(Ln,Zn),Ni.set(Zn,Ln);++gr<Wi;){var Ur=Ln[gr],oo=Zn[gr];if($i)var Gr=Vi?$i(oo,Ur,gr,Zn,Ln,Ni):$i(Ur,oo,gr,Ln,Zn,Ni);if(Gr!==kn){if(Gr)continue;xr=!1;break}if(Tr){if(!Qu(Zn,function(To,Ao){if(!ga(Tr,Ao)&&(Ur===To||Mi(Ur,To,ci,$i,Ni)))return Tr.push(Ao)})){xr=!1;break}}else if(!(Ur===oo||Mi(Ur,oo,ci,$i,Ni))){xr=!1;break}}return Ni.delete(Ln),Ni.delete(Zn),xr}function xb(Ln,Zn,ci,$i,Mi,Ni,Vi){switch(ci){case Sr:if(Ln.byteLength!=Zn.byteLength||Ln.byteOffset!=Zn.byteOffset)return!1;Ln=Ln.buffer,Zn=Zn.buffer;case _r:return!(Ln.byteLength!=Zn.byteLength||!Ni(new bd(Ln),new bd(Zn)));case pr:case fr:case Co:return ma(+Ln,+Zn);case yr:return Ln.name==Zn.name&&Ln.message==Zn.message;case as:case Ar:return Ln==Zn+"";case $o:var Wi=mr;case Zo:var qi=$i&Nn;if(Wi||(Wi=$r),Ln.size!=Zn.size&&!qi)return!1;var or=Vi.get(Ln);if(or)return or==Zn;$i|=zn,Vi.set(Ln,Zn);var lr=Jv(Wi(Ln),Wi(Zn),$i,Mi,Ni,Vi);return Vi.delete(Ln),lr;case zr:if(Vh)return Vh.call(Ln)==Vh.call(Zn)}return!1}function _b(Ln,Zn,ci,$i,Mi,Ni){var Vi=ci&Nn,Wi=Rm(Ln),qi=Wi.length,or=Rm(Zn),lr=or.length;if(qi!=lr&&!Vi)return!1;for(var gr=qi;gr--;){var xr=Wi[gr];if(!(Vi?xr in Zn:Io.call(Zn,xr)))return!1}var Tr=Ni.get(Ln),Ur=Ni.get(Zn);if(Tr&&Ur)return Tr==Zn&&Ur==Ln;var oo=!0;Ni.set(Ln,Zn),Ni.set(Zn,Ln);for(var Gr=Vi;++gr<qi;){xr=Wi[gr];var To=Ln[xr],Ao=Zn[xr];if($i)var na=Vi?$i(Ao,To,xr,Zn,Ln,Ni):$i(To,Ao,xr,Ln,Zn,Ni);if(!(na===kn?To===Ao||Mi(To,Ao,ci,$i,Ni):na)){oo=!1;break}Gr||(Gr=xr=="constructor")}if(oo&&!Gr){var js=Ln.constructor,ia=Zn.constructor;js!=ia&&"constructor"in Ln&&"constructor"in Zn&&!(typeof js=="function"&&js instanceof js&&typeof ia=="function"&&ia instanceof ia)&&(oo=!1)}return Ni.delete(Ln),Ni.delete(Zn),oo}function vl(Ln){return zm(ow(Ln,kn,gw),Ln+"")}function Rm(Ln){return yv(Ln,Ls,Pm)}function Im(Ln){return yv(Ln,Qs,ew)}var Om=Cd?function(Ln){return Cd.get(Ln)}:ev;function Wg(Ln){for(var Zn=Ln.name+"",ci=nh[Zn],$i=Io.call(nh,Zn)?ci.length:0;$i--;){var Mi=ci[$i],Ni=Mi.func;if(Ni==null||Ni==Ln)return Mi.name}return Zn}function sh(Ln){var Zn=Io.call(Ei,"placeholder")?Ei:Ln;return Zn.placeholder}function Hr(){var Ln=Ei.iteratee||Xm;return Ln=Ln===Xm?xv:Ln,arguments.length?Ln(arguments[0],arguments[1]):Ln}function Hg(Ln,Zn){var ci=Ln.__data__;return Lb(Zn)?ci[typeof Zn=="string"?"string":"hash"]:ci.map}function Dm(Ln){for(var Zn=Ls(Ln),ci=Zn.length;ci--;){var $i=Zn[ci],Mi=Ln[$i];Zn[ci]=[$i,Mi,iw(Mi)]}return Zn}function nc(Ln,Zn){var ci=Pi(Ln,Zn);return $v(ci)?ci:kn}function kb(Ln){var Zn=Io.call(Ln,Ql),ci=Ln[Ql];try{Ln[Ql]=kn;var $i=!0}catch{}var Mi=wd.call(Ln);return $i&&(Zn?Ln[Ql]=ci:delete Ln[Ql]),Mi}var Pm=um?function(Ln){return Ln==null?[]:(Ln=Jr(Ln),Ys(um(Ln),function(Zn){return sv.call(Ln,Zn)}))}:tv,ew=um?function(Ln){for(var Zn=[];Ln;)Ds(Zn,Pm(Ln)),Ln=$d(Ln);return Zn}:tv,Bs=Ws;(hm&&Bs(new hm(new ArrayBuffer(1)))!=Sr||Oh&&Bs(new Oh)!=$o||dm&&Bs(dm.resolve())!=Go||th&&Bs(new th)!=Zo||Dh&&Bs(new Dh)!=jr)&&(Bs=function(Ln){var Zn=Ws(Ln),ci=Zn==Do?Ln.constructor:kn,$i=ci?ic(ci):"";if($i)switch($i){case sy:return Sr;case ay:return $o;case ly:return Go;case cy:return Zo;case uy:return jr}return Zn});function Sb(Ln,Zn,ci){for(var $i=-1,Mi=ci.length;++$i<Mi;){var Ni=ci[$i],Vi=Ni.size;switch(Ni.type){case"drop":Ln+=Vi;break;case"dropRight":Zn-=Vi;break;case"take":Zn=Vs(Zn,Ln+Vi);break;case"takeRight":Ln=Ms(Ln,Zn-Vi);break}}return{start:Ln,end:Zn}}function Cb(Ln){var Zn=Ln.match(Kh);return Zn?Zn[1].split(Zh):[]}function tw(Ln,Zn,ci){Zn=Bl(Zn,Ln);for(var $i=-1,Mi=Zn.length,Ni=!1;++$i<Mi;){var Vi=ol(Zn[$i]);if(!(Ni=Ln!=null&&ci(Ln,Vi)))break;Ln=Ln[Vi]}return Ni||++$i!=Mi?Ni:(Mi=Ln==null?0:Ln.length,!!Mi&&Zg(Mi)&&wl(Vi,Mi)&&(eo(Ln)||rc(Ln)))}function Tb(Ln){var Zn=Ln.length,ci=new Ln.constructor(Zn);return Zn&&typeof Ln[0]=="string"&&Io.call(Ln,"index")&&(ci.index=Ln.index,ci.input=Ln.input),ci}function nw(Ln){return typeof Ln.constructor=="function"&&!Uh(Ln)?ih($d(Ln)):{}}function Mb(Ln,Zn,ci){var $i=Ln.constructor;switch(Zn){case _r:return Em(Ln);case pr:case fr:return new $i(+Ln);case Sr:return hb(Ln,ci);case Yr:case Kr:case ko:case So:case so:case ao:case to:case Ho:case Rs:return Vv(Ln,ci);case $o:return new $i;case Co:case Ar:return new $i(Ln);case as:return db(Ln);case Zo:return new $i;case zr:return pb(Ln)}}function Ab(Ln,Zn){var ci=Zn.length;if(!ci)return Ln;var $i=ci-1;return Zn[$i]=(ci>1?"& ":"")+Zn[$i],Zn=Zn.join(ci>2?", ":" "),Ln.replace(kl,`{
1388
+ /* [wrapped with `+Zn+`] */
1389
+ `)}function Eb(Ln){return eo(Ln)||rc(Ln)||!!(av&&Ln&&Ln[av])}function wl(Ln,Zn){var ci=typeof Ln;return Zn=Zn??Ti,!!Zn&&(ci=="number"||ci!="symbol"&&rs.test(Ln))&&Ln>-1&&Ln%1==0&&Ln<Zn}function Hs(Ln,Zn,ci){if(!Ko(ci))return!1;var $i=typeof Zn;return($i=="number"?Zs(ci)&&wl(Zn,ci.length):$i=="string"&&Zn in ci)?ma(ci[Zn],Ln):!1}function Vm(Ln,Zn){if(eo(Ln))return!1;var ci=typeof Ln;return ci=="number"||ci=="symbol"||ci=="boolean"||Ln==null||ta(Ln)?!0:As.test(Ln)||!al.test(Ln)||Zn!=null&&Ln in Jr(Zn)}function Lb(Ln){var Zn=typeof Ln;return Zn=="string"||Zn=="number"||Zn=="symbol"||Zn=="boolean"?Ln!=="__proto__":Ln===null}function Bm(Ln){var Zn=Wg(Ln),ci=Ei[Zn];if(typeof ci!="function"||!(Zn in Mo.prototype))return!1;if(Ln===ci)return!0;var $i=Om(ci);return!!$i&&Ln===$i[0]}function Nb(Ln){return!!iv&&iv in Ln}var Rb=md?yl:nv;function Uh(Ln){var Zn=Ln&&Ln.constructor,ci=typeof Zn=="function"&&Zn.prototype||eh;return Ln===ci}function iw(Ln){return Ln===Ln&&!Ko(Ln)}function rw(Ln,Zn){return function(ci){return ci==null?!1:ci[Ln]===Zn&&(Zn!==kn||Ln in Jr(ci))}}function Ib(Ln){var Zn=qg(Ln,function($i){return ci.size===qn&&ci.clear(),$i}),ci=Zn.cache;return Zn}function Ob(Ln,Zn){var ci=Ln[1],$i=Zn[1],Mi=ci|$i,Ni=Mi<(Qn|Jn|mi),Vi=$i==mi&&ci==vi||$i==mi&&ci==fi&&Ln[7].length<=Zn[8]||$i==(mi|fi)&&Zn[7].length<=Zn[8]&&ci==vi;if(!(Ni||Vi))return Ln;$i&Qn&&(Ln[2]=Zn[2],Mi|=ci&Qn?0:ti);var Wi=Zn[3];if(Wi){var qi=Ln[3];Ln[3]=qi?Fv(qi,Wi,Zn[4]):Wi,Ln[4]=qi?wr(Ln[3],In):Zn[4]}return Wi=Zn[5],Wi&&(qi=Ln[5],Ln[5]=qi?zv(qi,Wi,Zn[6]):Wi,Ln[6]=qi?wr(Ln[5],In):Zn[6]),Wi=Zn[7],Wi&&(Ln[7]=Wi),$i&mi&&(Ln[8]=Ln[8]==null?Zn[8]:Vs(Ln[8],Zn[8])),Ln[9]==null&&(Ln[9]=Zn[9]),Ln[0]=Zn[0],Ln[1]=Mi,Ln}function Db(Ln){var Zn=[];if(Ln!=null)for(var ci in Jr(Ln))Zn.push(ci);return Zn}function Pb(Ln){return wd.call(Ln)}function ow(Ln,Zn,ci){return Zn=Ms(Zn===kn?Ln.length-1:Zn,0),function(){for(var $i=arguments,Mi=-1,Ni=Ms($i.length-Zn,0),Vi=Zi(Ni);++Mi<Ni;)Vi[Mi]=$i[Zn+Mi];Mi=-1;for(var Wi=Zi(Zn+1);++Mi<Zn;)Wi[Mi]=$i[Mi];return Wi[Zn]=ci(Vi),jo(Ln,this,Wi)}}function sw(Ln,Zn){return Zn.length<2?Ln:tc(Ln,ua(Zn,0,-1))}function Vb(Ln,Zn){for(var ci=Ln.length,$i=Vs(Zn.length,ci),Mi=Ks(Ln);$i--;){var Ni=Zn[$i];Ln[$i]=wl(Ni,ci)?Mi[Ni]:kn}return Ln}function Fm(Ln,Zn){if(!(Zn==="constructor"&&typeof Ln[Zn]=="function")&&Zn!="__proto__")return Ln[Zn]}var aw=cw(Ev),Gh=Jw||function(Ln,Zn){return $s.setTimeout(Ln,Zn)},zm=cw(ab);function lw(Ln,Zn,ci){var $i=Zn+"";return zm(Ln,Ab($i,Bb(Cb($i),ci)))}function cw(Ln){var Zn=0,ci=0;return function(){var $i=iy(),Mi=oi-($i-ci);if(ci=$i,Mi>0){if(++Zn>=ai)return arguments[0]}else Zn=0;return Ln.apply(kn,arguments)}}function jg(Ln,Zn){var ci=-1,$i=Ln.length,Mi=$i-1;for(Zn=Zn===kn?$i:Zn;++ci<Zn;){var Ni=_m(ci,Mi),Vi=Ln[Ni];Ln[Ni]=Ln[ci],Ln[ci]=Vi}return Ln.length=Zn,Ln}var uw=Ib(function(Ln){var Zn=[];return Ln.charCodeAt(0)===46&&Zn.push(""),Ln.replace(ya,function(ci,$i,Mi,Ni){Zn.push(Mi?Ni.replace(ll,"$1"):$i||ci)}),Zn});function ol(Ln){if(typeof Ln=="string"||ta(Ln))return Ln;var Zn=Ln+"";return Zn=="0"&&1/Ln==-_i?"-0":Zn}function ic(Ln){if(Ln!=null){try{return vd.call(Ln)}catch{}try{return Ln+""}catch{}}return""}function Bb(Ln,Zn){return Fs(Bi,function(ci){var $i="_."+ci[0];Zn&ci[1]&&!Zu(Ln,$i)&&Ln.push($i)}),Ln.sort()}function hw(Ln){if(Ln instanceof Mo)return Ln.clone();var Zn=new la(Ln.__wrapped__,Ln.__chain__);return Zn.__actions__=Ks(Ln.__actions__),Zn.__index__=Ln.__index__,Zn.__values__=Ln.__values__,Zn}function Fb(Ln,Zn,ci){(ci?Hs(Ln,Zn,ci):Zn===kn)?Zn=1:Zn=Ms(io(Zn),0);var $i=Ln==null?0:Ln.length;if(!$i||Zn<1)return[];for(var Mi=0,Ni=0,Vi=Zi(kd($i/Zn));Mi<$i;)Vi[Ni++]=ua(Ln,Mi,Mi+=Zn);return Vi}function zb(Ln){for(var Zn=-1,ci=Ln==null?0:Ln.length,$i=0,Mi=[];++Zn<ci;){var Ni=Ln[Zn];Ni&&(Mi[$i++]=Ni)}return Mi}function Wb(){var Ln=arguments.length;if(!Ln)return[];for(var Zn=Zi(Ln-1),ci=arguments[0],$i=Ln;$i--;)Zn[$i-1]=arguments[$i];return Ds(eo(ci)?Ks(ci):[ci],Ns(Zn,1))}var Hb=lo(function(Ln,Zn){return ts(Ln)?Fh(Ln,Ns(Zn,1,ts,!0)):[]}),jb=lo(function(Ln,Zn){var ci=ha(Zn);return ts(ci)&&(ci=kn),ts(Ln)?Fh(Ln,Ns(Zn,1,ts,!0),Hr(ci,2)):[]}),Ub=lo(function(Ln,Zn){var ci=ha(Zn);return ts(ci)&&(ci=kn),ts(Ln)?Fh(Ln,Ns(Zn,1,ts,!0),kn,ci):[]});function Gb(Ln,Zn,ci){var $i=Ln==null?0:Ln.length;return $i?(Zn=ci||Zn===kn?1:io(Zn),ua(Ln,Zn<0?0:Zn,$i)):[]}function qb(Ln,Zn,ci){var $i=Ln==null?0:Ln.length;return $i?(Zn=ci||Zn===kn?1:io(Zn),Zn=$i-Zn,ua(Ln,0,Zn<0?0:Zn)):[]}function Kb(Ln,Zn){return Ln&&Ln.length?Od(Ln,Hr(Zn,3),!0,!0):[]}function e0(Ln,Zn){return Ln&&Ln.length?Od(Ln,Hr(Zn,3),!0):[]}function t0(Ln,Zn,ci,$i){var Mi=Ln==null?0:Ln.length;return Mi?(ci&&typeof ci!="number"&&Hs(Ln,Zn,ci)&&(ci=0,$i=Mi),Wy(Ln,Zn,ci,$i)):[]}function dw(Ln,Zn,ci){var $i=Ln==null?0:Ln.length;if(!$i)return-1;var Mi=ci==null?0:io(ci);return Mi<0&&(Mi=Ms($i+Mi,0)),Kl(Ln,Hr(Zn,3),Mi)}function pw(Ln,Zn,ci){var $i=Ln==null?0:Ln.length;if(!$i)return-1;var Mi=$i-1;return ci!==kn&&(Mi=io(ci),Mi=ci<0?Ms($i+Mi,0):Vs(Mi,$i-1)),Kl(Ln,Hr(Zn,3),Mi,!0)}function gw(Ln){var Zn=Ln==null?0:Ln.length;return Zn?Ns(Ln,1):[]}function n0(Ln){var Zn=Ln==null?0:Ln.length;return Zn?Ns(Ln,_i):[]}function i0(Ln,Zn){var ci=Ln==null?0:Ln.length;return ci?(Zn=Zn===kn?1:io(Zn),Ns(Ln,Zn)):[]}function r0(Ln){for(var Zn=-1,ci=Ln==null?0:Ln.length,$i={};++Zn<ci;){var Mi=Ln[Zn];$i[Mi[0]]=Mi[1]}return $i}function fw(Ln){return Ln&&Ln.length?Ln[0]:kn}function o0(Ln,Zn,ci){var $i=Ln==null?0:Ln.length;if(!$i)return-1;var Mi=ci==null?0:io(ci);return Mi<0&&(Mi=Ms($i+Mi,0)),dl(Ln,Zn,Mi)}function s0(Ln){var Zn=Ln==null?0:Ln.length;return Zn?ua(Ln,0,-1):[]}var a0=lo(function(Ln){var Zn=Wo(Ln,Mm);return Zn.length&&Zn[0]===Ln[0]?wm(Zn):[]}),l0=lo(function(Ln){var Zn=ha(Ln),ci=Wo(Ln,Mm);return Zn===ha(ci)?Zn=kn:ci.pop(),ci.length&&ci[0]===Ln[0]?wm(ci,Hr(Zn,2)):[]}),c0=lo(function(Ln){var Zn=ha(Ln),ci=Wo(Ln,Mm);return Zn=typeof Zn=="function"?Zn:kn,Zn&&ci.pop(),ci.length&&ci[0]===Ln[0]?wm(ci,kn,Zn):[]});function u0(Ln,Zn){return Ln==null?"":ty.call(Ln,Zn)}function ha(Ln){var Zn=Ln==null?0:Ln.length;return Zn?Ln[Zn-1]:kn}function h0(Ln,Zn,ci){var $i=Ln==null?0:Ln.length;if(!$i)return-1;var Mi=$i;return ci!==kn&&(Mi=io(ci),Mi=Mi<0?Ms($i+Mi,0):Vs(Mi,$i-1)),Zn===Zn?Ro(Ln,Zn,Mi):Kl(Ln,Ah,Mi,!0)}function d0(Ln,Zn){return Ln&&Ln.length?Cv(Ln,io(Zn)):kn}var p0=lo(mw);function mw(Ln,Zn){return Ln&&Ln.length&&Zn&&Zn.length?xm(Ln,Zn):Ln}function g0(Ln,Zn,ci){return Ln&&Ln.length&&Zn&&Zn.length?xm(Ln,Zn,Hr(ci,2)):Ln}function f0(Ln,Zn,ci){return Ln&&Ln.length&&Zn&&Zn.length?xm(Ln,Zn,kn,ci):Ln}var m0=vl(function(Ln,Zn){var ci=Ln==null?0:Ln.length,$i=gm(Ln,Zn);return Av(Ln,Wo(Zn,function(Mi){return wl(Mi,ci)?+Mi:Mi}).sort(Bv)),$i});function v0(Ln,Zn){var ci=[];if(!(Ln&&Ln.length))return ci;var $i=-1,Mi=[],Ni=Ln.length;for(Zn=Hr(Zn,3);++$i<Ni;){var Vi=Ln[$i];Zn(Vi,$i,Ln)&&(ci.push(Vi),Mi.push($i))}return Av(Ln,Mi),ci}function Wm(Ln){return Ln==null?Ln:oy.call(Ln)}function w0(Ln,Zn,ci){var $i=Ln==null?0:Ln.length;return $i?(ci&&typeof ci!="number"&&Hs(Ln,Zn,ci)?(Zn=0,ci=$i):(Zn=Zn==null?0:io(Zn),ci=ci===kn?$i:io(ci)),ua(Ln,Zn,ci)):[]}function y0(Ln,Zn){return Id(Ln,Zn)}function b0(Ln,Zn,ci){return Sm(Ln,Zn,Hr(ci,2))}function $0(Ln,Zn){var ci=Ln==null?0:Ln.length;if(ci){var $i=Id(Ln,Zn);if($i<ci&&ma(Ln[$i],Zn))return $i}return-1}function x0(Ln,Zn){return Id(Ln,Zn,!0)}function _0(Ln,Zn,ci){return Sm(Ln,Zn,Hr(ci,2),!0)}function k0(Ln,Zn){var ci=Ln==null?0:Ln.length;if(ci){var $i=Id(Ln,Zn,!0)-1;if(ma(Ln[$i],Zn))return $i}return-1}function S0(Ln){return Ln&&Ln.length?Lv(Ln):[]}function C0(Ln,Zn){return Ln&&Ln.length?Lv(Ln,Hr(Zn,2)):[]}function T0(Ln){var Zn=Ln==null?0:Ln.length;return Zn?ua(Ln,1,Zn):[]}function M0(Ln,Zn,ci){return Ln&&Ln.length?(Zn=ci||Zn===kn?1:io(Zn),ua(Ln,0,Zn<0?0:Zn)):[]}function A0(Ln,Zn,ci){var $i=Ln==null?0:Ln.length;return $i?(Zn=ci||Zn===kn?1:io(Zn),Zn=$i-Zn,ua(Ln,Zn<0?0:Zn,$i)):[]}function E0(Ln,Zn){return Ln&&Ln.length?Od(Ln,Hr(Zn,3),!1,!0):[]}function L0(Ln,Zn){return Ln&&Ln.length?Od(Ln,Hr(Zn,3)):[]}var N0=lo(function(Ln){return Vl(Ns(Ln,1,ts,!0))}),R0=lo(function(Ln){var Zn=ha(Ln);return ts(Zn)&&(Zn=kn),Vl(Ns(Ln,1,ts,!0),Hr(Zn,2))}),I0=lo(function(Ln){var Zn=ha(Ln);return Zn=typeof Zn=="function"?Zn:kn,Vl(Ns(Ln,1,ts,!0),kn,Zn)});function O0(Ln){return Ln&&Ln.length?Vl(Ln):[]}function D0(Ln,Zn){return Ln&&Ln.length?Vl(Ln,Hr(Zn,2)):[]}function P0(Ln,Zn){return Zn=typeof Zn=="function"?Zn:kn,Ln&&Ln.length?Vl(Ln,kn,Zn):[]}function Hm(Ln){if(!(Ln&&Ln.length))return[];var Zn=0;return Ln=Ys(Ln,function(ci){if(ts(ci))return Zn=Ms(ci.length,Zn),!0}),Xo(Zn,function(ci){return Wo(Ln,Lh(ci))})}function vw(Ln,Zn){if(!(Ln&&Ln.length))return[];var ci=Hm(Ln);return Zn==null?ci:Wo(ci,function($i){return jo(Zn,kn,$i)})}var V0=lo(function(Ln,Zn){return ts(Ln)?Fh(Ln,Zn):[]}),B0=lo(function(Ln){return Tm(Ys(Ln,ts))}),F0=lo(function(Ln){var Zn=ha(Ln);return ts(Zn)&&(Zn=kn),Tm(Ys(Ln,ts),Hr(Zn,2))}),z0=lo(function(Ln){var Zn=ha(Ln);return Zn=typeof Zn=="function"?Zn:kn,Tm(Ys(Ln,ts),kn,Zn)}),W0=lo(Hm);function H0(Ln,Zn){return Ov(Ln||[],Zn||[],Bh)}function j0(Ln,Zn){return Ov(Ln||[],Zn||[],Hh)}var U0=lo(function(Ln){var Zn=Ln.length,ci=Zn>1?Ln[Zn-1]:kn;return ci=typeof ci=="function"?(Ln.pop(),ci):kn,vw(Ln,ci)});function ww(Ln){var Zn=Ei(Ln);return Zn.__chain__=!0,Zn}function G0(Ln,Zn){return Zn(Ln),Ln}function Ug(Ln,Zn){return Zn(Ln)}var Y0=vl(function(Ln){var Zn=Ln.length,ci=Zn?Ln[0]:0,$i=this.__wrapped__,Mi=function(Ni){return gm(Ni,Ln)};return Zn>1||this.__actions__.length||!($i instanceof Mo)||!wl(ci)?this.thru(Mi):($i=$i.slice(ci,+ci+(Zn?1:0)),$i.__actions__.push({func:Ug,args:[Mi],thisArg:kn}),new la($i,this.__chain__).thru(function(Ni){return Zn&&!Ni.length&&Ni.push(kn),Ni}))});function q0(){return ww(this)}function K0(){return new la(this.value(),this.__chain__)}function Z0(){this.__values__===kn&&(this.__values__=Nw(this.value()));var Ln=this.__index__>=this.__values__.length,Zn=Ln?kn:this.__values__[this.__index__++];return{done:Ln,value:Zn}}function Q0(){return this}function X0(Ln){for(var Zn,ci=this;ci instanceof Md;){var $i=hw(ci);$i.__index__=0,$i.__values__=kn,Zn?Mi.__wrapped__=$i:Zn=$i;var Mi=$i;ci=ci.__wrapped__}return Mi.__wrapped__=Ln,Zn}function J0(){var Ln=this.__wrapped__;if(Ln instanceof Mo){var Zn=Ln;return this.__actions__.length&&(Zn=new Mo(this)),Zn=Zn.reverse(),Zn.__actions__.push({func:Ug,args:[Wm],thisArg:kn}),new la(Zn,this.__chain__)}return this.thru(Wm)}function Y1(){return Iv(this.__wrapped__,this.__actions__)}var q1=Dd(function(Ln,Zn,ci){Io.call(Ln,ci)?++Ln[ci]:fl(Ln,ci,1)});function Z1(Ln,Zn,ci){var $i=eo(Ln)?Rl:zy;return ci&&Hs(Ln,Zn,ci)&&(Zn=kn),$i(Ln,Hr(Zn,3))}function Q1(Ln,Zn){var ci=eo(Ln)?Ys:vv;return ci(Ln,Hr(Zn,3))}var X1=Uv(dw),e$=Uv(pw);function t$(Ln,Zn){return Ns(Gg(Ln,Zn),1)}function n$(Ln,Zn){return Ns(Gg(Ln,Zn),_i)}function i$(Ln,Zn,ci){return ci=ci===kn?1:io(ci),Ns(Gg(Ln,Zn),ci)}function yw(Ln,Zn){var ci=eo(Ln)?Fs:Pl;return ci(Ln,Hr(Zn,3))}function bw(Ln,Zn){var ci=eo(Ln)?hd:mv;return ci(Ln,Hr(Zn,3))}var r$=Dd(function(Ln,Zn,ci){Io.call(Ln,ci)?Ln[ci].push(Zn):fl(Ln,ci,[Zn])});function o$(Ln,Zn,ci,$i){Ln=Zs(Ln)?Ln:lh(Ln),ci=ci&&!$i?io(ci):0;var Mi=Ln.length;return ci<0&&(ci=Ms(Mi+ci,0)),Qg(Ln)?ci<=Mi&&Ln.indexOf(Zn,ci)>-1:!!Mi&&dl(Ln,Zn,ci)>-1}var s$=lo(function(Ln,Zn,ci){var $i=-1,Mi=typeof Zn=="function",Ni=Zs(Ln)?Zi(Ln.length):[];return Pl(Ln,function(Vi){Ni[++$i]=Mi?jo(Zn,Vi,ci):zh(Vi,Zn,ci)}),Ni}),a$=Dd(function(Ln,Zn,ci){fl(Ln,ci,Zn)});function Gg(Ln,Zn){var ci=eo(Ln)?Wo:_v;return ci(Ln,Hr(Zn,3))}function l$(Ln,Zn,ci,$i){return Ln==null?[]:(eo(Zn)||(Zn=Zn==null?[]:[Zn]),ci=$i?kn:ci,eo(ci)||(ci=ci==null?[]:[ci]),Tv(Ln,Zn,ci))}var c$=Dd(function(Ln,Zn,ci){Ln[ci?0:1].push(Zn)},function(){return[[],[]]});function u$(Ln,Zn,ci){var $i=eo(Ln)?aa:Nh,Mi=arguments.length<3;return $i(Ln,Hr(Zn,4),ci,Mi,Pl)}function h$(Ln,Zn,ci){var $i=eo(Ln)?ql:Nh,Mi=arguments.length<3;return $i(Ln,Hr(Zn,4),ci,Mi,mv)}function d$(Ln,Zn){var ci=eo(Ln)?Ys:vv;return ci(Ln,Kg(Hr(Zn,3)))}function p$(Ln){var Zn=eo(Ln)?dv:ob;return Zn(Ln)}function g$(Ln,Zn,ci){(ci?Hs(Ln,Zn,ci):Zn===kn)?Zn=1:Zn=io(Zn);var $i=eo(Ln)?Dy:sb;return $i(Ln,Zn)}function f$(Ln){var Zn=eo(Ln)?Py:lb;return Zn(Ln)}function m$(Ln){if(Ln==null)return 0;if(Zs(Ln))return Qg(Ln)?no(Ln):Ln.length;var Zn=Bs(Ln);return Zn==$o||Zn==Zo?Ln.size:bm(Ln).length}function v$(Ln,Zn,ci){var $i=eo(Ln)?Qu:cb;return ci&&Hs(Ln,Zn,ci)&&(Zn=kn),$i(Ln,Hr(Zn,3))}var w$=lo(function(Ln,Zn){if(Ln==null)return[];var ci=Zn.length;return ci>1&&Hs(Ln,Zn[0],Zn[1])?Zn=[]:ci>2&&Hs(Zn[0],Zn[1],Zn[2])&&(Zn=[Zn[0]]),Tv(Ln,Ns(Zn,1),[])}),Yg=Xw||function(){return $s.Date.now()};function y$(Ln,Zn){if(typeof Zn!="function")throw new Ts(Kn);return Ln=io(Ln),function(){if(--Ln<1)return Zn.apply(this,arguments)}}function $w(Ln,Zn,ci){return Zn=ci?kn:Zn,Zn=Ln&&Zn==null?Ln.length:Zn,ml(Ln,mi,kn,kn,kn,kn,Zn)}function xw(Ln,Zn){var ci;if(typeof Zn!="function")throw new Ts(Kn);return Ln=io(Ln),function(){return--Ln>0&&(ci=Zn.apply(this,arguments)),Ln<=1&&(Zn=kn),ci}}var jm=lo(function(Ln,Zn,ci){var $i=Qn;if(ci.length){var Mi=wr(ci,sh(jm));$i|=si}return ml(Ln,$i,Zn,ci,Mi)}),_w=lo(function(Ln,Zn,ci){var $i=Qn|Jn;if(ci.length){var Mi=wr(ci,sh(_w));$i|=si}return ml(Zn,$i,Ln,ci,Mi)});function kw(Ln,Zn,ci){Zn=ci?kn:Zn;var $i=ml(Ln,vi,kn,kn,kn,kn,kn,Zn);return $i.placeholder=kw.placeholder,$i}function Sw(Ln,Zn,ci){Zn=ci?kn:Zn;var $i=ml(Ln,pi,kn,kn,kn,kn,kn,Zn);return $i.placeholder=Sw.placeholder,$i}function Cw(Ln,Zn,ci){var $i,Mi,Ni,Vi,Wi,qi,or=0,lr=!1,gr=!1,xr=!0;if(typeof Ln!="function")throw new Ts(Kn);Zn=da(Zn)||0,Ko(ci)&&(lr=!!ci.leading,gr="maxWait"in ci,Ni=gr?Ms(da(ci.maxWait)||0,Zn):Ni,xr="trailing"in ci?!!ci.trailing:xr);function Tr(ns){var va=$i,$l=Mi;return $i=Mi=kn,or=ns,Vi=Ln.apply($l,va),Vi}function Ur(ns){return or=ns,Wi=Gh(To,Zn),lr?Tr(ns):Vi}function oo(ns){var va=ns-qi,$l=ns-or,Uw=Zn-va;return gr?Vs(Uw,Ni-$l):Uw}function Gr(ns){var va=ns-qi,$l=ns-or;return qi===kn||va>=Zn||va<0||gr&&$l>=Ni}function To(){var ns=Yg();if(Gr(ns))return Ao(ns);Wi=Gh(To,oo(ns))}function Ao(ns){return Wi=kn,xr&&$i?Tr(ns):($i=Mi=kn,Vi)}function na(){Wi!==kn&&Dv(Wi),or=0,$i=qi=Mi=Wi=kn}function js(){return Wi===kn?Vi:Ao(Yg())}function ia(){var ns=Yg(),va=Gr(ns);if($i=arguments,Mi=this,qi=ns,va){if(Wi===kn)return Ur(qi);if(gr)return Dv(Wi),Wi=Gh(To,Zn),Tr(qi)}return Wi===kn&&(Wi=Gh(To,Zn)),Vi}return ia.cancel=na,ia.flush=js,ia}var b$=lo(function(Ln,Zn){return fv(Ln,1,Zn)}),$$=lo(function(Ln,Zn,ci){return fv(Ln,da(Zn)||0,ci)});function x$(Ln){return ml(Ln,yi)}function qg(Ln,Zn){if(typeof Ln!="function"||Zn!=null&&typeof Zn!="function")throw new Ts(Kn);var ci=function(){var $i=arguments,Mi=Zn?Zn.apply(this,$i):$i[0],Ni=ci.cache;if(Ni.has(Mi))return Ni.get(Mi);var Vi=Ln.apply(this,$i);return ci.cache=Ni.set(Mi,Vi)||Ni,Vi};return ci.cache=new(qg.Cache||gl),ci}qg.Cache=gl;function Kg(Ln){if(typeof Ln!="function")throw new Ts(Kn);return function(){var Zn=arguments;switch(Zn.length){case 0:return!Ln.call(this);case 1:return!Ln.call(this,Zn[0]);case 2:return!Ln.call(this,Zn[0],Zn[1]);case 3:return!Ln.call(this,Zn[0],Zn[1],Zn[2])}return!Ln.apply(this,Zn)}}function _$(Ln){return xw(2,Ln)}var k$=ub(function(Ln,Zn){Zn=Zn.length==1&&eo(Zn[0])?Wo(Zn[0],Ps(Hr())):Wo(Ns(Zn,1),Ps(Hr()));var ci=Zn.length;return lo(function($i){for(var Mi=-1,Ni=Vs($i.length,ci);++Mi<Ni;)$i[Mi]=Zn[Mi].call(this,$i[Mi]);return jo(Ln,this,$i)})}),Um=lo(function(Ln,Zn){var ci=wr(Zn,sh(Um));return ml(Ln,si,kn,Zn,ci)}),Tw=lo(function(Ln,Zn){var ci=wr(Zn,sh(Tw));return ml(Ln,ei,kn,Zn,ci)}),S$=vl(function(Ln,Zn){return ml(Ln,fi,kn,kn,kn,Zn)});function C$(Ln,Zn){if(typeof Ln!="function")throw new Ts(Kn);return Zn=Zn===kn?Zn:io(Zn),lo(Ln,Zn)}function T$(Ln,Zn){if(typeof Ln!="function")throw new Ts(Kn);return Zn=Zn==null?0:Ms(io(Zn),0),lo(function(ci){var $i=ci[Zn],Mi=Fl(ci,0,Zn);return $i&&Ds(Mi,$i),jo(Ln,this,Mi)})}function M$(Ln,Zn,ci){var $i=!0,Mi=!0;if(typeof Ln!="function")throw new Ts(Kn);return Ko(ci)&&($i="leading"in ci?!!ci.leading:$i,Mi="trailing"in ci?!!ci.trailing:Mi),Cw(Ln,Zn,{leading:$i,maxWait:Zn,trailing:Mi})}function A$(Ln){return $w(Ln,1)}function E$(Ln,Zn){return Um(Am(Zn),Ln)}function L$(){if(!arguments.length)return[];var Ln=arguments[0];return eo(Ln)?Ln:[Ln]}function N$(Ln){return ca(Ln,Bn)}function R$(Ln,Zn){return Zn=typeof Zn=="function"?Zn:kn,ca(Ln,Bn,Zn)}function I$(Ln){return ca(Ln,Dn|Bn)}function O$(Ln,Zn){return Zn=typeof Zn=="function"?Zn:kn,ca(Ln,Dn|Bn,Zn)}function D$(Ln,Zn){return Zn==null||gv(Ln,Zn,Ls(Zn))}function ma(Ln,Zn){return Ln===Zn||Ln!==Ln&&Zn!==Zn}var P$=zg(vm),V$=zg(function(Ln,Zn){return Ln>=Zn}),rc=bv(function(){return arguments}())?bv:function(Ln){return Jo(Ln)&&Io.call(Ln,"callee")&&!sv.call(Ln,"callee")},eo=Zi.isArray,B$=cd?Ps(cd):Yy;function Zs(Ln){return Ln!=null&&Zg(Ln.length)&&!yl(Ln)}function ts(Ln){return Jo(Ln)&&Zs(Ln)}function F$(Ln){return Ln===!0||Ln===!1||Jo(Ln)&&Ws(Ln)==pr}var zl=ey||nv,z$=sa?Ps(sa):qy;function W$(Ln){return Jo(Ln)&&Ln.nodeType===1&&!Yh(Ln)}function H$(Ln){if(Ln==null)return!0;if(Zs(Ln)&&(eo(Ln)||typeof Ln=="string"||typeof Ln.splice=="function"||zl(Ln)||ah(Ln)||rc(Ln)))return!Ln.length;var Zn=Bs(Ln);if(Zn==$o||Zn==Zo)return!Ln.size;if(Uh(Ln))return!bm(Ln).length;for(var ci in Ln)if(Io.call(Ln,ci))return!1;return!0}function j$(Ln,Zn){return Wh(Ln,Zn)}function U$(Ln,Zn,ci){ci=typeof ci=="function"?ci:kn;var $i=ci?ci(Ln,Zn):kn;return $i===kn?Wh(Ln,Zn,kn,ci):!!$i}function Gm(Ln){if(!Jo(Ln))return!1;var Zn=Ws(Ln);return Zn==yr||Zn==ar||typeof Ln.message=="string"&&typeof Ln.name=="string"&&!Yh(Ln)}function G$(Ln){return typeof Ln=="number"&&lv(Ln)}function yl(Ln){if(!Ko(Ln))return!1;var Zn=Ws(Ln);return Zn==ro||Zn==Fo||Zn==Qi||Zn==wa}function Mw(Ln){return typeof Ln=="number"&&Ln==io(Ln)}function Zg(Ln){return typeof Ln=="number"&&Ln>-1&&Ln%1==0&&Ln<=Ti}function Ko(Ln){var Zn=typeof Ln;return Ln!=null&&(Zn=="object"||Zn=="function")}function Jo(Ln){return Ln!=null&&typeof Ln=="object"}var Aw=pa?Ps(pa):Zy;function Y$(Ln,Zn){return Ln===Zn||ym(Ln,Zn,Dm(Zn))}function q$(Ln,Zn,ci){return ci=typeof ci=="function"?ci:kn,ym(Ln,Zn,Dm(Zn),ci)}function K$(Ln){return Ew(Ln)&&Ln!=+Ln}function Z$(Ln){if(Rb(Ln))throw new Mr(Wn);return $v(Ln)}function Q$(Ln){return Ln===null}function X$(Ln){return Ln==null}function Ew(Ln){return typeof Ln=="number"||Jo(Ln)&&Ws(Ln)==Co}function Yh(Ln){if(!Jo(Ln)||Ws(Ln)!=Do)return!1;var Zn=$d(Ln);if(Zn===null)return!0;var ci=Io.call(Zn,"constructor")&&Zn.constructor;return typeof ci=="function"&&ci instanceof ci&&vd.call(ci)==qw}var Ym=Sa?Ps(Sa):Qy;function J$(Ln){return Mw(Ln)&&Ln>=-Ti&&Ln<=Ti}var Lw=hl?Ps(hl):Xy;function Qg(Ln){return typeof Ln=="string"||!eo(Ln)&&Jo(Ln)&&Ws(Ln)==Ar}function ta(Ln){return typeof Ln=="symbol"||Jo(Ln)&&Ws(Ln)==zr}var ah=ud?Ps(ud):Jy;function Mk(Ln){return Ln===kn}function Ek(Ln){return Jo(Ln)&&Bs(Ln)==jr}function Lk(Ln){return Jo(Ln)&&Ws(Ln)==Ji}var Nk=zg($m),Rk=zg(function(Ln,Zn){return Ln<=Zn});function Nw(Ln){if(!Ln)return[];if(Zs(Ln))return Qg(Ln)?qr(Ln):Ks(Ln);if(Ih&&Ln[Ih])return ir(Ln[Ih]());var Zn=Bs(Ln),ci=Zn==$o?mr:Zn==Zo?$r:lh;return ci(Ln)}function bl(Ln){if(!Ln)return Ln===0?Ln:0;if(Ln=da(Ln),Ln===_i||Ln===-_i){var Zn=Ln<0?-1:1;return Zn*Li}return Ln===Ln?Ln:0}function io(Ln){var Zn=bl(Ln),ci=Zn%1;return Zn===Zn?ci?Zn-ci:Zn:0}function Rw(Ln){return Ln?ec(io(Ln),0,Ii):0}function da(Ln){if(typeof Ln=="number")return Ln;if(ta(Ln))return Ri;if(Ko(Ln)){var Zn=typeof Ln.valueOf=="function"?Ln.valueOf():Ln;Ln=Ko(Zn)?Zn+"":Zn}if(typeof Ln!="string")return Ln===0?Ln:+Ln;Ln=Yo(Ln);var ci=$a.test(Ln);return ci||is.test(Ln)?Po(Ln.slice(2),ci?2:8):Qh.test(Ln)?Ri:+Ln}function Iw(Ln){return Aa(Ln,Qs(Ln))}function Dk(Ln){return Ln?ec(io(Ln),-Ti,Ti):Ln===0?Ln:0}function No(Ln){return Ln==null?"":ea(Ln)}var Vk=rh(function(Ln,Zn){if(Uh(Zn)||Zs(Zn)){Aa(Zn,Ls(Zn),Ln);return}for(var ci in Zn)Io.call(Zn,ci)&&Bh(Ln,ci,Zn[ci])}),Ow=rh(function(Ln,Zn){Aa(Zn,Qs(Zn),Ln)}),Xg=rh(function(Ln,Zn,ci,$i){Aa(Zn,Qs(Zn),Ln,$i)}),zk=rh(function(Ln,Zn,ci,$i){Aa(Zn,Ls(Zn),Ln,$i)}),Wk=vl(gm);function Hk(Ln,Zn){var ci=ih(Ln);return Zn==null?ci:pv(ci,Zn)}var jk=lo(function(Ln,Zn){Ln=Jr(Ln);var ci=-1,$i=Zn.length,Mi=$i>2?Zn[2]:kn;for(Mi&&Hs(Zn[0],Zn[1],Mi)&&($i=1);++ci<$i;)for(var Ni=Zn[ci],Vi=Qs(Ni),Wi=-1,qi=Vi.length;++Wi<qi;){var or=Vi[Wi],lr=Ln[or];(lr===kn||ma(lr,eh[or])&&!Io.call(Ln,or))&&(Ln[or]=Ni[or])}return Ln}),Uk=lo(function(Ln){return Ln.push(kn,Xv),jo(Dw,kn,Ln)});function Gk(Ln,Zn){return Mh(Ln,Hr(Zn,3),Ca)}function Yk(Ln,Zn){return Mh(Ln,Hr(Zn,3),mm)}function qk(Ln,Zn){return Ln==null?Ln:fm(Ln,Hr(Zn,3),Qs)}function Kk(Ln,Zn){return Ln==null?Ln:wv(Ln,Hr(Zn,3),Qs)}function Zk(Ln,Zn){return Ln&&Ca(Ln,Hr(Zn,3))}function Qk(Ln,Zn){return Ln&&mm(Ln,Hr(Zn,3))}function Xk(Ln){return Ln==null?[]:Ld(Ln,Ls(Ln))}function Jk(Ln){return Ln==null?[]:Ld(Ln,Qs(Ln))}function qm(Ln,Zn,ci){var $i=Ln==null?kn:tc(Ln,Zn);return $i===kn?ci:$i}function eC(Ln,Zn){return Ln!=null&&tw(Ln,Zn,Hy)}function Km(Ln,Zn){return Ln!=null&&tw(Ln,Zn,jy)}var tC=Yv(function(Ln,Zn,ci){Zn!=null&&typeof Zn.toString!="function"&&(Zn=wd.call(Zn)),Ln[Zn]=ci},Qm(Xs)),nC=Yv(function(Ln,Zn,ci){Zn!=null&&typeof Zn.toString!="function"&&(Zn=wd.call(Zn)),Io.call(Ln,Zn)?Ln[Zn].push(ci):Ln[Zn]=[ci]},Hr),iC=lo(zh);function Ls(Ln){return Zs(Ln)?hv(Ln):bm(Ln)}function Qs(Ln){return Zs(Ln)?hv(Ln,!0):eb(Ln)}function rC(Ln,Zn){var ci={};return Zn=Hr(Zn,3),Ca(Ln,function($i,Mi,Ni){fl(ci,Zn($i,Mi,Ni),$i)}),ci}function oC(Ln,Zn){var ci={};return Zn=Hr(Zn,3),Ca(Ln,function($i,Mi,Ni){fl(ci,Mi,Zn($i,Mi,Ni))}),ci}var sC=rh(function(Ln,Zn,ci){Rd(Ln,Zn,ci)}),Dw=rh(function(Ln,Zn,ci,$i){Rd(Ln,Zn,ci,$i)}),aC=vl(function(Ln,Zn){var ci={};if(Ln==null)return ci;var $i=!1;Zn=Wo(Zn,function(Ni){return Ni=Bl(Ni,Ln),$i||($i=Ni.length>1),Ni}),Aa(Ln,Im(Ln),ci),$i&&(ci=ca(ci,Dn|Pn|Bn,$b));for(var Mi=Zn.length;Mi--;)Cm(ci,Zn[Mi]);return ci});function lC(Ln,Zn){return Pw(Ln,Kg(Hr(Zn)))}var cC=vl(function(Ln,Zn){return Ln==null?{}:nb(Ln,Zn)});function Pw(Ln,Zn){if(Ln==null)return{};var ci=Wo(Im(Ln),function($i){return[$i]});return Zn=Hr(Zn),Mv(Ln,ci,function($i,Mi){return Zn($i,Mi[0])})}function uC(Ln,Zn,ci){Zn=Bl(Zn,Ln);var $i=-1,Mi=Zn.length;for(Mi||(Mi=1,Ln=kn);++$i<Mi;){var Ni=Ln==null?kn:Ln[ol(Zn[$i])];Ni===kn&&($i=Mi,Ni=ci),Ln=yl(Ni)?Ni.call(Ln):Ni}return Ln}function hC(Ln,Zn,ci){return Ln==null?Ln:Hh(Ln,Zn,ci)}function dC(Ln,Zn,ci,$i){return $i=typeof $i=="function"?$i:kn,Ln==null?Ln:Hh(Ln,Zn,ci,$i)}var Vw=Zv(Ls),Bw=Zv(Qs);function pC(Ln,Zn,ci){var $i=eo(Ln),Mi=$i||zl(Ln)||ah(Ln);if(Zn=Hr(Zn,4),ci==null){var Ni=Ln&&Ln.constructor;Mi?ci=$i?new Ni:[]:Ko(Ln)?ci=yl(Ni)?ih($d(Ln)):{}:ci={}}return(Mi?Fs:Ca)(Ln,function(Vi,Wi,qi){return Zn(ci,Vi,Wi,qi)}),ci}function gC(Ln,Zn){return Ln==null?!0:Cm(Ln,Zn)}function fC(Ln,Zn,ci){return Ln==null?Ln:Rv(Ln,Zn,Am(ci))}function mC(Ln,Zn,ci,$i){return $i=typeof $i=="function"?$i:kn,Ln==null?Ln:Rv(Ln,Zn,Am(ci),$i)}function lh(Ln){return Ln==null?[]:Zl(Ln,Ls(Ln))}function vC(Ln){return Ln==null?[]:Zl(Ln,Qs(Ln))}function wC(Ln,Zn,ci){return ci===kn&&(ci=Zn,Zn=kn),ci!==kn&&(ci=da(ci),ci=ci===ci?ci:0),Zn!==kn&&(Zn=da(Zn),Zn=Zn===Zn?Zn:0),ec(da(Ln),Zn,ci)}function yC(Ln,Zn,ci){return Zn=bl(Zn),ci===kn?(ci=Zn,Zn=0):ci=bl(ci),Ln=da(Ln),Uy(Ln,Zn,ci)}function bC(Ln,Zn,ci){if(ci&&typeof ci!="boolean"&&Hs(Ln,Zn,ci)&&(Zn=ci=kn),ci===kn&&(typeof Zn=="boolean"?(ci=Zn,Zn=kn):typeof Ln=="boolean"&&(ci=Ln,Ln=kn)),Ln===kn&&Zn===kn?(Ln=0,Zn=1):(Ln=bl(Ln),Zn===kn?(Zn=Ln,Ln=0):Zn=bl(Zn)),Ln>Zn){var $i=Ln;Ln=Zn,Zn=$i}if(ci||Ln%1||Zn%1){var Mi=cv();return Vs(Ln+Mi*(Zn-Ln+ss("1e-"+((Mi+"").length-1))),Zn)}return _m(Ln,Zn)}var $C=oh(function(Ln,Zn,ci){return Zn=Zn.toLowerCase(),Ln+(ci?Fw(Zn):Zn)});function Fw(Ln){return Zm(No(Ln).toLowerCase())}function zw(Ln){return Ln=No(Ln),Ln&&Ln.replace(oc,Si).replace(El,"")}function xC(Ln,Zn,ci){Ln=No(Ln),Zn=ea(Zn);var $i=Ln.length;ci=ci===kn?$i:ec(io(ci),0,$i);var Mi=ci;return ci-=Zn.length,ci>=0&&Ln.slice(ci,Mi)==Zn}function _C(Ln){return Ln=No(Ln),Ln&&em.test(Ln)?Ln.replace(qh,Ai):Ln}function kC(Ln){return Ln=No(Ln),Ln&&xl.test(Ln)?Ln.replace(ba,"\\$&"):Ln}var SC=oh(function(Ln,Zn,ci){return Ln+(ci?"-":"")+Zn.toLowerCase()}),CC=oh(function(Ln,Zn,ci){return Ln+(ci?" ":"")+Zn.toLowerCase()}),TC=jv("toLowerCase");function MC(Ln,Zn,ci){Ln=No(Ln),Zn=io(Zn);var $i=Zn?no(Ln):0;if(!Zn||$i>=Zn)return Ln;var Mi=(Zn-$i)/2;return Bg(Sd(Mi),ci)+Ln+Bg(kd(Mi),ci)}function AC(Ln,Zn,ci){Ln=No(Ln),Zn=io(Zn);var $i=Zn?no(Ln):0;return Zn&&$i<Zn?Ln+Bg(Zn-$i,ci):Ln}function EC(Ln,Zn,ci){Ln=No(Ln),Zn=io(Zn);var $i=Zn?no(Ln):0;return Zn&&$i<Zn?Bg(Zn-$i,ci)+Ln:Ln}function LC(Ln,Zn,ci){return ci||Zn==null?Zn=0:Zn&&(Zn=+Zn),ry(No(Ln).replace(Is,""),Zn||0)}function NC(Ln,Zn,ci){return(ci?Hs(Ln,Zn,ci):Zn===kn)?Zn=1:Zn=io(Zn),km(No(Ln),Zn)}function RC(){var Ln=arguments,Zn=No(Ln[0]);return Ln.length<3?Zn:Zn.replace(Ln[1],Ln[2])}var IC=oh(function(Ln,Zn,ci){return Ln+(ci?"_":"")+Zn.toLowerCase()});function OC(Ln,Zn,ci){return ci&&typeof ci!="number"&&Hs(Ln,Zn,ci)&&(Zn=ci=kn),ci=ci===kn?Ii:ci>>>0,ci?(Ln=No(Ln),Ln&&(typeof Zn=="string"||Zn!=null&&!Ym(Zn))&&(Zn=ea(Zn),!Zn&&ji(Ln))?Fl(qr(Ln),0,ci):Ln.split(Zn,ci)):[]}var DC=oh(function(Ln,Zn,ci){return Ln+(ci?" ":"")+Zm(Zn)});function PC(Ln,Zn,ci){return Ln=No(Ln),ci=ci==null?0:ec(io(ci),0,Ln.length),Zn=ea(Zn),Ln.slice(ci,ci+Zn.length)==Zn}function VC(Ln,Zn,ci){var $i=Ei.templateSettings;ci&&Hs(Ln,Zn,ci)&&(Zn=kn),Ln=No(Ln),Zn=Xg({},Zn,$i,Qv);var Mi=Xg({},Zn.imports,$i.imports,Qv),Ni=Ls(Mi),Vi=Zl(Mi,Ni),Wi,qi,or=0,lr=Zn.interpolate||Os,gr="__p += '",xr=Cs((Zn.escape||Os).source+"|"+lr.source+"|"+(lr===Vr?om:Os).source+"|"+(Zn.evaluate||Os).source+"|$","g"),Tr="//# sourceURL="+(Io.call(Zn,"sourceURL")?(Zn.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ad+"]")+`
1390
+ `;Ln.replace(xr,function(Gr,To,Ao,na,js,ia){return Ao||(Ao=na),gr+=Ln.slice(or,ia).replace(Wl,Di),To&&(Wi=!0,gr+=`' +
1391
+ __e(`+To+`) +
1392
+ '`),js&&(qi=!0,gr+=`';
1393
+ `+js+`;
1394
+ __p += '`),Ao&&(gr+=`' +
1395
+ ((__t = (`+Ao+`)) == null ? '' : __t) +
1396
+ '`),or=ia+Gr.length,Gr}),gr+=`';
1397
+ `;var Ur=Io.call(Zn,"variable")&&Zn.variable;if(!Ur)gr=`with (obj) {
1398
+ `+gr+`
1399
+ }
1400
+ `;else if(rm.test(Ur))throw new Mr(Xn);gr=(qi?gr.replace(sl,""):gr).replace(Us,"$1").replace(ch,"$1;"),gr="function("+(Ur||"obj")+`) {
1401
+ `+(Ur?"":`obj || (obj = {});
1402
+ `)+"var __t, __p = ''"+(Wi?", __e = _.escape":"")+(qi?`, __j = Array.prototype.join;
1403
+ function print() { __p += __j.call(arguments, '') }
1404
+ `:`;
1405
+ `)+gr+`return __p
1406
+ }`;var oo=Hw(function(){return Qr(Ni,Tr+"return "+gr).apply(kn,Vi)});if(oo.source=gr,Gm(oo))throw oo;return oo}function BC(Ln){return No(Ln).toLowerCase()}function FC(Ln){return No(Ln).toUpperCase()}function zC(Ln,Zn,ci){if(Ln=No(Ln),Ln&&(ci||Zn===kn))return Yo(Ln);if(!Ln||!(Zn=ea(Zn)))return Ln;var $i=qr(Ln),Mi=qr(Zn),Ni=gd($i,Mi),Vi=fd($i,Mi)+1;return Fl($i,Ni,Vi).join("")}function WC(Ln,Zn,ci){if(Ln=No(Ln),Ln&&(ci||Zn===kn))return Ln.slice(0,Xr(Ln)+1);if(!Ln||!(Zn=ea(Zn)))return Ln;var $i=qr(Ln),Mi=fd($i,qr(Zn))+1;return Fl($i,0,Mi).join("")}function HC(Ln,Zn,ci){if(Ln=No(Ln),Ln&&(ci||Zn===kn))return Ln.replace(Is,"");if(!Ln||!(Zn=ea(Zn)))return Ln;var $i=qr(Ln),Mi=gd($i,qr(Zn));return Fl($i,Mi).join("")}function jC(Ln,Zn){var ci=gi,$i=xi;if(Ko(Zn)){var Mi="separator"in Zn?Zn.separator:Mi;ci="length"in Zn?io(Zn.length):ci,$i="omission"in Zn?ea(Zn.omission):$i}Ln=No(Ln);var Ni=Ln.length;if(ji(Ln)){var Vi=qr(Ln);Ni=Vi.length}if(ci>=Ni)return Ln;var Wi=ci-no($i);if(Wi<1)return $i;var qi=Vi?Fl(Vi,0,Wi).join(""):Ln.slice(0,Wi);if(Mi===kn)return qi+$i;if(Vi&&(Wi+=qi.length-Wi),Ym(Mi)){if(Ln.slice(Wi).search(Mi)){var or,lr=qi;for(Mi.global||(Mi=Cs(Mi.source,No(Sl.exec(Mi))+"g")),Mi.lastIndex=0;or=Mi.exec(lr);)var gr=or.index;qi=qi.slice(0,gr===kn?Wi:gr)}}else if(Ln.indexOf(ea(Mi),Wi)!=Wi){var xr=qi.lastIndexOf(Mi);xr>-1&&(qi=qi.slice(0,xr))}return qi+$i}function UC(Ln){return Ln=No(Ln),Ln&&Jg.test(Ln)?Ln.replace(uh,Cr):Ln}var GC=oh(function(Ln,Zn,ci){return Ln+(ci?" ":"")+Zn.toUpperCase()}),Zm=jv("toUpperCase");function Ww(Ln,Zn,ci){return Ln=No(Ln),Zn=ci?kn:Zn,Zn===kn?Ki(Ln)?Uo(Ln):Xu(Ln):Ln.match(Zn)||[]}var Hw=lo(function(Ln,Zn){try{return jo(Ln,kn,Zn)}catch(ci){return Gm(ci)?ci:new Mr(ci)}}),YC=vl(function(Ln,Zn){return Fs(Zn,function(ci){ci=ol(ci),fl(Ln,ci,jm(Ln[ci],Ln))}),Ln});function qC(Ln){var Zn=Ln==null?0:Ln.length,ci=Hr();return Ln=Zn?Wo(Ln,function($i){if(typeof $i[1]!="function")throw new Ts(Kn);return[ci($i[0]),$i[1]]}):[],lo(function($i){for(var Mi=-1;++Mi<Zn;){var Ni=Ln[Mi];if(jo(Ni[0],this,$i))return jo(Ni[1],this,$i)}})}function KC(Ln){return Fy(ca(Ln,Dn))}function Qm(Ln){return function(){return Ln}}function ZC(Ln,Zn){return Ln==null||Ln!==Ln?Zn:Ln}var QC=Gv(),XC=Gv(!0);function Xs(Ln){return Ln}function Xm(Ln){return xv(typeof Ln=="function"?Ln:ca(Ln,Dn))}function JC(Ln){return kv(ca(Ln,Dn))}function eT(Ln,Zn){return Sv(Ln,ca(Zn,Dn))}var tT=lo(function(Ln,Zn){return function(ci){return zh(ci,Ln,Zn)}}),nT=lo(function(Ln,Zn){return function(ci){return zh(Ln,ci,Zn)}});function Jm(Ln,Zn,ci){var $i=Ls(Zn),Mi=Ld(Zn,$i);ci==null&&!(Ko(Zn)&&(Mi.length||!$i.length))&&(ci=Zn,Zn=Ln,Ln=this,Mi=Ld(Zn,Ls(Zn)));var Ni=!(Ko(ci)&&"chain"in ci)||!!ci.chain,Vi=yl(Ln);return Fs(Mi,function(Wi){var qi=Zn[Wi];Ln[Wi]=qi,Vi&&(Ln.prototype[Wi]=function(){var or=this.__chain__;if(Ni||or){var lr=Ln(this.__wrapped__),gr=lr.__actions__=Ks(this.__actions__);return gr.push({func:qi,args:arguments,thisArg:Ln}),lr.__chain__=or,lr}return qi.apply(Ln,Ds([this.value()],arguments))})}),Ln}function iT(){return $s._===this&&($s._=Kw),this}function ev(){}function rT(Ln){return Ln=io(Ln),lo(function(Zn){return Cv(Zn,Ln)})}var oT=Lm(Wo),sT=Lm(Rl),aT=Lm(Qu);function jw(Ln){return Vm(Ln)?Lh(ol(Ln)):ib(Ln)}function lT(Ln){return function(Zn){return Ln==null?kn:tc(Ln,Zn)}}var cT=qv(),uT=qv(!0);function tv(){return[]}function nv(){return!1}function hT(){return{}}function dT(){return""}function pT(){return!0}function gT(Ln,Zn){if(Ln=io(Ln),Ln<1||Ln>Ti)return[];var ci=Ii,$i=Vs(Ln,Ii);Zn=Hr(Zn),Ln-=Ii;for(var Mi=Xo($i,Zn);++ci<Ln;)Zn(ci);return Mi}function fT(Ln){return eo(Ln)?Wo(Ln,ol):ta(Ln)?[Ln]:Ks(uw(No(Ln)))}function mT(Ln){var Zn=++Yw;return No(Ln)+Zn}var vT=Vg(function(Ln,Zn){return Ln+Zn},0),wT=Nm("ceil"),yT=Vg(function(Ln,Zn){return Ln/Zn},1),bT=Nm("floor");function $T(Ln){return Ln&&Ln.length?Ed(Ln,Xs,vm):kn}function xT(Ln,Zn){return Ln&&Ln.length?Ed(Ln,Hr(Zn,2),vm):kn}function _T(Ln){return Eh(Ln,Xs)}function kT(Ln,Zn){return Eh(Ln,Hr(Zn,2))}function ST(Ln){return Ln&&Ln.length?Ed(Ln,Xs,$m):kn}function CT(Ln,Zn){return Ln&&Ln.length?Ed(Ln,Hr(Zn,2),$m):kn}var TT=Vg(function(Ln,Zn){return Ln*Zn},1),MT=Nm("round"),AT=Vg(function(Ln,Zn){return Ln-Zn},0);function ET(Ln){return Ln&&Ln.length?Ol(Ln,Xs):0}function LT(Ln,Zn){return Ln&&Ln.length?Ol(Ln,Hr(Zn,2)):0}return Ei.after=y$,Ei.ary=$w,Ei.assign=Vk,Ei.assignIn=Ow,Ei.assignInWith=Xg,Ei.assignWith=zk,Ei.at=Wk,Ei.before=xw,Ei.bind=jm,Ei.bindAll=YC,Ei.bindKey=_w,Ei.castArray=L$,Ei.chain=ww,Ei.chunk=Fb,Ei.compact=zb,Ei.concat=Wb,Ei.cond=qC,Ei.conforms=KC,Ei.constant=Qm,Ei.countBy=q1,Ei.create=Hk,Ei.curry=kw,Ei.curryRight=Sw,Ei.debounce=Cw,Ei.defaults=jk,Ei.defaultsDeep=Uk,Ei.defer=b$,Ei.delay=$$,Ei.difference=Hb,Ei.differenceBy=jb,Ei.differenceWith=Ub,Ei.drop=Gb,Ei.dropRight=qb,Ei.dropRightWhile=Kb,Ei.dropWhile=e0,Ei.fill=t0,Ei.filter=Q1,Ei.flatMap=t$,Ei.flatMapDeep=n$,Ei.flatMapDepth=i$,Ei.flatten=gw,Ei.flattenDeep=n0,Ei.flattenDepth=i0,Ei.flip=x$,Ei.flow=QC,Ei.flowRight=XC,Ei.fromPairs=r0,Ei.functions=Xk,Ei.functionsIn=Jk,Ei.groupBy=r$,Ei.initial=s0,Ei.intersection=a0,Ei.intersectionBy=l0,Ei.intersectionWith=c0,Ei.invert=tC,Ei.invertBy=nC,Ei.invokeMap=s$,Ei.iteratee=Xm,Ei.keyBy=a$,Ei.keys=Ls,Ei.keysIn=Qs,Ei.map=Gg,Ei.mapKeys=rC,Ei.mapValues=oC,Ei.matches=JC,Ei.matchesProperty=eT,Ei.memoize=qg,Ei.merge=sC,Ei.mergeWith=Dw,Ei.method=tT,Ei.methodOf=nT,Ei.mixin=Jm,Ei.negate=Kg,Ei.nthArg=rT,Ei.omit=aC,Ei.omitBy=lC,Ei.once=_$,Ei.orderBy=l$,Ei.over=oT,Ei.overArgs=k$,Ei.overEvery=sT,Ei.overSome=aT,Ei.partial=Um,Ei.partialRight=Tw,Ei.partition=c$,Ei.pick=cC,Ei.pickBy=Pw,Ei.property=jw,Ei.propertyOf=lT,Ei.pull=p0,Ei.pullAll=mw,Ei.pullAllBy=g0,Ei.pullAllWith=f0,Ei.pullAt=m0,Ei.range=cT,Ei.rangeRight=uT,Ei.rearg=S$,Ei.reject=d$,Ei.remove=v0,Ei.rest=C$,Ei.reverse=Wm,Ei.sampleSize=g$,Ei.set=hC,Ei.setWith=dC,Ei.shuffle=f$,Ei.slice=w0,Ei.sortBy=w$,Ei.sortedUniq=S0,Ei.sortedUniqBy=C0,Ei.split=OC,Ei.spread=T$,Ei.tail=T0,Ei.take=M0,Ei.takeRight=A0,Ei.takeRightWhile=E0,Ei.takeWhile=L0,Ei.tap=G0,Ei.throttle=M$,Ei.thru=Ug,Ei.toArray=Nw,Ei.toPairs=Vw,Ei.toPairsIn=Bw,Ei.toPath=fT,Ei.toPlainObject=Iw,Ei.transform=pC,Ei.unary=A$,Ei.union=N0,Ei.unionBy=R0,Ei.unionWith=I0,Ei.uniq=O0,Ei.uniqBy=D0,Ei.uniqWith=P0,Ei.unset=gC,Ei.unzip=Hm,Ei.unzipWith=vw,Ei.update=fC,Ei.updateWith=mC,Ei.values=lh,Ei.valuesIn=vC,Ei.without=V0,Ei.words=Ww,Ei.wrap=E$,Ei.xor=B0,Ei.xorBy=F0,Ei.xorWith=z0,Ei.zip=W0,Ei.zipObject=H0,Ei.zipObjectDeep=j0,Ei.zipWith=U0,Ei.entries=Vw,Ei.entriesIn=Bw,Ei.extend=Ow,Ei.extendWith=Xg,Jm(Ei,Ei),Ei.add=vT,Ei.attempt=Hw,Ei.camelCase=$C,Ei.capitalize=Fw,Ei.ceil=wT,Ei.clamp=wC,Ei.clone=N$,Ei.cloneDeep=I$,Ei.cloneDeepWith=O$,Ei.cloneWith=R$,Ei.conformsTo=D$,Ei.deburr=zw,Ei.defaultTo=ZC,Ei.divide=yT,Ei.endsWith=xC,Ei.eq=ma,Ei.escape=_C,Ei.escapeRegExp=kC,Ei.every=Z1,Ei.find=X1,Ei.findIndex=dw,Ei.findKey=Gk,Ei.findLast=e$,Ei.findLastIndex=pw,Ei.findLastKey=Yk,Ei.floor=bT,Ei.forEach=yw,Ei.forEachRight=bw,Ei.forIn=qk,Ei.forInRight=Kk,Ei.forOwn=Zk,Ei.forOwnRight=Qk,Ei.get=qm,Ei.gt=P$,Ei.gte=V$,Ei.has=eC,Ei.hasIn=Km,Ei.head=fw,Ei.identity=Xs,Ei.includes=o$,Ei.indexOf=o0,Ei.inRange=yC,Ei.invoke=iC,Ei.isArguments=rc,Ei.isArray=eo,Ei.isArrayBuffer=B$,Ei.isArrayLike=Zs,Ei.isArrayLikeObject=ts,Ei.isBoolean=F$,Ei.isBuffer=zl,Ei.isDate=z$,Ei.isElement=W$,Ei.isEmpty=H$,Ei.isEqual=j$,Ei.isEqualWith=U$,Ei.isError=Gm,Ei.isFinite=G$,Ei.isFunction=yl,Ei.isInteger=Mw,Ei.isLength=Zg,Ei.isMap=Aw,Ei.isMatch=Y$,Ei.isMatchWith=q$,Ei.isNaN=K$,Ei.isNative=Z$,Ei.isNil=X$,Ei.isNull=Q$,Ei.isNumber=Ew,Ei.isObject=Ko,Ei.isObjectLike=Jo,Ei.isPlainObject=Yh,Ei.isRegExp=Ym,Ei.isSafeInteger=J$,Ei.isSet=Lw,Ei.isString=Qg,Ei.isSymbol=ta,Ei.isTypedArray=ah,Ei.isUndefined=Mk,Ei.isWeakMap=Ek,Ei.isWeakSet=Lk,Ei.join=u0,Ei.kebabCase=SC,Ei.last=ha,Ei.lastIndexOf=h0,Ei.lowerCase=CC,Ei.lowerFirst=TC,Ei.lt=Nk,Ei.lte=Rk,Ei.max=$T,Ei.maxBy=xT,Ei.mean=_T,Ei.meanBy=kT,Ei.min=ST,Ei.minBy=CT,Ei.stubArray=tv,Ei.stubFalse=nv,Ei.stubObject=hT,Ei.stubString=dT,Ei.stubTrue=pT,Ei.multiply=TT,Ei.nth=d0,Ei.noConflict=iT,Ei.noop=ev,Ei.now=Yg,Ei.pad=MC,Ei.padEnd=AC,Ei.padStart=EC,Ei.parseInt=LC,Ei.random=bC,Ei.reduce=u$,Ei.reduceRight=h$,Ei.repeat=NC,Ei.replace=RC,Ei.result=uC,Ei.round=MT,Ei.runInContext=Gi,Ei.sample=p$,Ei.size=m$,Ei.snakeCase=IC,Ei.some=v$,Ei.sortedIndex=y0,Ei.sortedIndexBy=b0,Ei.sortedIndexOf=$0,Ei.sortedLastIndex=x0,Ei.sortedLastIndexBy=_0,Ei.sortedLastIndexOf=k0,Ei.startCase=DC,Ei.startsWith=PC,Ei.subtract=AT,Ei.sum=ET,Ei.sumBy=LT,Ei.template=VC,Ei.times=gT,Ei.toFinite=bl,Ei.toInteger=io,Ei.toLength=Rw,Ei.toLower=BC,Ei.toNumber=da,Ei.toSafeInteger=Dk,Ei.toString=No,Ei.toUpper=FC,Ei.trim=zC,Ei.trimEnd=WC,Ei.trimStart=HC,Ei.truncate=jC,Ei.unescape=UC,Ei.uniqueId=mT,Ei.upperCase=GC,Ei.upperFirst=Zm,Ei.each=yw,Ei.eachRight=bw,Ei.first=fw,Jm(Ei,function(){var Ln={};return Ca(Ei,function(Zn,ci){Io.call(Ei.prototype,ci)||(Ln[ci]=Zn)}),Ln}(),{chain:!1}),Ei.VERSION=Mn,Fs(["bind","bindKey","curry","curryRight","partial","partialRight"],function(Ln){Ei[Ln].placeholder=Ei}),Fs(["drop","take"],function(Ln,Zn){Mo.prototype[Ln]=function(ci){ci=ci===kn?1:Ms(io(ci),0);var $i=this.__filtered__&&!Zn?new Mo(this):this.clone();return $i.__filtered__?$i.__takeCount__=Vs(ci,$i.__takeCount__):$i.__views__.push({size:Vs(ci,Ii),type:Ln+($i.__dir__<0?"Right":"")}),$i},Mo.prototype[Ln+"Right"]=function(ci){return this.reverse()[Ln](ci).reverse()}}),Fs(["filter","map","takeWhile"],function(Ln,Zn){var ci=Zn+1,$i=ci==li||ci==bi;Mo.prototype[Ln]=function(Mi){var Ni=this.clone();return Ni.__iteratees__.push({iteratee:Hr(Mi,3),type:ci}),Ni.__filtered__=Ni.__filtered__||$i,Ni}}),Fs(["head","last"],function(Ln,Zn){var ci="take"+(Zn?"Right":"");Mo.prototype[Ln]=function(){return this[ci](1).value()[0]}}),Fs(["initial","tail"],function(Ln,Zn){var ci="drop"+(Zn?"":"Right");Mo.prototype[Ln]=function(){return this.__filtered__?new Mo(this):this[ci](1)}}),Mo.prototype.compact=function(){return this.filter(Xs)},Mo.prototype.find=function(Ln){return this.filter(Ln).head()},Mo.prototype.findLast=function(Ln){return this.reverse().find(Ln)},Mo.prototype.invokeMap=lo(function(Ln,Zn){return typeof Ln=="function"?new Mo(this):this.map(function(ci){return zh(ci,Ln,Zn)})}),Mo.prototype.reject=function(Ln){return this.filter(Kg(Hr(Ln)))},Mo.prototype.slice=function(Ln,Zn){Ln=io(Ln);var ci=this;return ci.__filtered__&&(Ln>0||Zn<0)?new Mo(ci):(Ln<0?ci=ci.takeRight(-Ln):Ln&&(ci=ci.drop(Ln)),Zn!==kn&&(Zn=io(Zn),ci=Zn<0?ci.dropRight(-Zn):ci.take(Zn-Ln)),ci)},Mo.prototype.takeRightWhile=function(Ln){return this.reverse().takeWhile(Ln).reverse()},Mo.prototype.toArray=function(){return this.take(Ii)},Ca(Mo.prototype,function(Ln,Zn){var ci=/^(?:filter|find|map|reject)|While$/.test(Zn),$i=/^(?:head|last)$/.test(Zn),Mi=Ei[$i?"take"+(Zn=="last"?"Right":""):Zn],Ni=$i||/^find/.test(Zn);Mi&&(Ei.prototype[Zn]=function(){var Vi=this.__wrapped__,Wi=$i?[1]:arguments,qi=Vi instanceof Mo,or=Wi[0],lr=qi||eo(Vi),gr=function(To){var Ao=Mi.apply(Ei,Ds([To],Wi));return $i&&xr?Ao[0]:Ao};lr&&ci&&typeof or=="function"&&or.length!=1&&(qi=lr=!1);var xr=this.__chain__,Tr=!!this.__actions__.length,Ur=Ni&&!xr,oo=qi&&!Tr;if(!Ni&&lr){Vi=oo?Vi:new Mo(this);var Gr=Ln.apply(Vi,Wi);return Gr.__actions__.push({func:Ug,args:[gr],thisArg:kn}),new la(Gr,xr)}return Ur&&oo?Ln.apply(this,Wi):(Gr=this.thru(gr),Ur?$i?Gr.value()[0]:Gr.value():Gr)})}),Fs(["pop","push","shift","sort","splice","unshift"],function(Ln){var Zn=Js[Ln],ci=/^(?:push|sort|unshift)$/.test(Ln)?"tap":"thru",$i=/^(?:pop|shift)$/.test(Ln);Ei.prototype[Ln]=function(){var Mi=arguments;if($i&&!this.__chain__){var Ni=this.value();return Zn.apply(eo(Ni)?Ni:[],Mi)}return this[ci](function(Vi){return Zn.apply(eo(Vi)?Vi:[],Mi)})}}),Ca(Mo.prototype,function(Ln,Zn){var ci=Ei[Zn];if(ci){var $i=ci.name+"";Io.call(nh,$i)||(nh[$i]=[]),nh[$i].push({name:Zn,func:ci})}}),nh[Pg(kn,Jn).name]=[{name:"wrapper",func:kn}],Mo.prototype.clone=hy,Mo.prototype.reverse=dy,Mo.prototype.value=py,Ei.prototype.at=Y0,Ei.prototype.chain=q0,Ei.prototype.commit=K0,Ei.prototype.next=Z0,Ei.prototype.plant=X0,Ei.prototype.reverse=J0,Ei.prototype.toJSON=Ei.prototype.valueOf=Ei.prototype.value=Y1,Ei.prototype.first=Ei.prototype.head,Ih&&(Ei.prototype[Ih]=Q0),Ei},Bo=Vo();Es?((Es.exports=Bo)._=Bo,oa._=Bo):$s._=Bo}).call(V1)}(gs,gs.exports)),gs.exports}var G1=j1();const K1=Ua(G1);K1.debounce(function(){this.rebuildDisplayText()},300);var _c={exports:{}},cf;function J1(){return cf||(cf=1,function(vn,_n){(function(){ace.require(["ace/mode/text"],function(kn){vn.exports=kn})})()}(_c)),_c.exports}J1();const e_=!0,ln$1="u-",t_="uplot",n_=ln$1+"hz",i_=ln$1+"vt",r_=ln$1+"title",o_=ln$1+"wrap",s_=ln$1+"under",a_=ln$1+"over",l_=ln$1+"axis",Ir=ln$1+"off",c_=ln$1+"select",u_=ln$1+"cursor-x",h_=ln$1+"cursor-y",d_=ln$1+"cursor-pt",f_=ln$1+"legend",p_=ln$1+"live",g_=ln$1+"inline",m_=ln$1+"series",v_=ln$1+"marker",uf=ln$1+"label",y_=ln$1+"value",ms="width",vs="height",ds="top",hf="bottom",co="left",Sc="right",Ru="#000",df=Ru+"0",ff="mousemove",pf="mousedown",kc="mouseup",gf="mouseenter",mf="mouseleave",vf="dblclick",w_="resize",b_="scroll",yf="change",Ba="dppxchange",Eu="--",bo=typeof window<"u",gu=bo?document:null,ho=bo?window:null,x_=bo?navigator:null;let dt$2,La;function mu(){let vn=devicePixelRatio;dt$2!=vn&&(dt$2=vn,La&&yu(yf,La,mu),La=matchMedia(`(min-resolution: ${dt$2-.001}dppx) and (max-resolution: ${dt$2+.001}dppx)`),Nr(yf,La,mu),ho.dispatchEvent(new CustomEvent(Ba)))}function Un(vn,_n){if(_n!=null){let kn=vn.classList;!kn.contains(_n)&&kn.add(_n)}}function vu(vn,_n){let kn=vn.classList;kn.contains(_n)&&kn.remove(_n)}function Lt$2(vn,_n,kn){vn.style[_n]=kn+"px"}function ui(vn,_n,kn,Mn){let Yn=gu.createElement(vn);return _n!=null&&Un(Yn,_n),kn!=null&&kn.insertBefore(Yn,Mn),Yn}function ni(vn,_n){return ui("div",vn,_n)}const wf=new WeakMap;function Ci(vn,_n,kn,Mn,Yn){let Wn="translate("+_n+"px,"+kn+"px)",Kn=wf.get(vn);Wn!=Kn&&(vn.style.transform=Wn,wf.set(vn,Wn),_n<0||kn<0||_n>Mn||kn>Yn?Un(vn,Ir):vu(vn,Ir))}const bf=new WeakMap;function xf(vn,_n,kn){let Mn=_n+kn,Yn=bf.get(vn);Mn!=Yn&&(bf.set(vn,Mn),vn.style.background=_n,vn.style.borderColor=kn)}const _f=new WeakMap;function Sf(vn,_n,kn,Mn){let Yn=_n+""+kn,Wn=_f.get(vn);Yn!=Wn&&(_f.set(vn,Yn),vn.style.height=kn+"px",vn.style.width=_n+"px",vn.style.marginLeft=Mn?-_n/2+"px":0,vn.style.marginTop=Mn?-kn/2+"px":0)}const Iu={passive:!0},__={...Iu,capture:!0};function Nr(vn,_n,kn,Mn){_n.addEventListener(vn,kn,Mn?__:Iu)}function yu(vn,_n,kn,Mn){_n.removeEventListener(vn,kn,Iu)}bo&&mu();function hi(vn,_n,kn,Mn){let Yn;kn=kn||0,Mn=Mn||_n.length-1;let Wn=Mn<=2147483647;for(;Mn-kn>1;)Yn=Wn?kn+Mn>>1:jn((kn+Mn)/2),_n[Yn]<vn?kn=Yn:Mn=Yn;return vn-_n[kn]<=_n[Mn]-vn?kn:Mn}function fo(vn,_n,kn,Mn){for(let Yn=Mn==1?_n:kn;Yn>=_n&&Yn<=kn;Yn+=Mn)if(vn[Yn]!=null)return Yn;return-1}function S_(vn,_n,kn,Mn){let Yn=ct$2,Wn=-ct$2;if(Mn==1)Yn=vn[_n],Wn=vn[kn];else if(Mn==-1)Yn=vn[kn],Wn=vn[_n];else for(let Kn=_n;Kn<=kn;Kn++){let Xn=vn[Kn];Xn!=null&&(Xn<Yn&&(Yn=Xn),Xn>Wn&&(Wn=Xn))}return[Yn,Wn]}function k_(vn,_n,kn){let Mn=ct$2,Yn=-ct$2;for(let Wn=_n;Wn<=kn;Wn++){let Kn=vn[Wn];Kn!=null&&Kn>0&&(Kn<Mn&&(Mn=Kn),Kn>Yn&&(Yn=Kn))}return[Mn,Yn]}function Qa(vn,_n,kn,Mn){let Yn=Af(vn),Wn=Af(_n);vn==_n&&(Yn==-1?(vn*=kn,_n/=kn):(vn/=kn,_n*=kn));let Kn=kn==10?Hi:eg,Xn=Yn==1?jn:ii,Hn=Wn==1?ii:jn,qn=Xn(Kn(an$1(vn))),In=Hn(Kn(an$1(_n))),Dn=po(kn,qn),Pn=po(kn,In);return kn==10&&(qn<0&&(Dn=Ct$1(Dn,-qn)),In<0&&(Pn=Ct$1(Pn,-In))),Mn||kn==2?(vn=Dn*Yn,_n=Pn*Wn):(vn=ig(vn,Dn),_n=Xa(_n,Pn)),[vn,_n]}function Ou(vn,_n,kn,Mn){let Yn=Qa(vn,_n,kn,Mn);return vn==0&&(Yn[0]=0),_n==0&&(Yn[1]=0),Yn}const Du=.1,kf={mode:3,pad:Du},ws={pad:0,soft:null,mode:0},C_={min:ws,max:ws};function za(vn,_n,kn,Mn){return Ja(kn)?Cf(vn,_n,kn):(ws.pad=kn,ws.soft=Mn?0:null,ws.mode=Mn?3:0,Cf(vn,_n,C_))}function ht$2(vn,_n){return vn??_n}function A_(vn,_n,kn){for(_n=ht$2(_n,0),kn=ht$2(kn,vn.length-1);_n<=kn;){if(vn[_n]!=null)return!0;_n++}return!1}function Cf(vn,_n,kn){let Mn=kn.min,Yn=kn.max,Wn=ht$2(Mn.pad,0),Kn=ht$2(Yn.pad,0),Xn=ht$2(Mn.hard,-ct$2),Hn=ht$2(Yn.hard,ct$2),qn=ht$2(Mn.soft,ct$2),In=ht$2(Yn.soft,-ct$2),Dn=ht$2(Mn.mode,0),Pn=ht$2(Yn.mode,0),Bn=_n-vn,Nn=Hi(Bn),zn=xn$1(an$1(vn),an$1(_n)),Qn=Hi(zn),Jn=an$1(Qn-Nn);(Bn<1e-24||Jn>10)&&(Bn=0,(vn==0||_n==0)&&(Bn=1e-24,Dn==2&&qn!=ct$2&&(Wn=0),Pn==2&&In!=-ct$2&&(Kn=0)));let ti=Bn||zn||1e3,vi=Hi(ti),pi=po(10,jn(vi)),si=ti*(Bn==0?vn==0?.1:1:Wn),ei=Ct$1(ig(vn-si,pi/10),24),mi=vn>=qn&&(Dn==1||Dn==3&&ei<=qn||Dn==2&&ei>=qn)?qn:ct$2,fi=xn$1(Xn,ei<mi&&vn>=mi?mi:ri(mi,ei)),yi=ti*(Bn==0?_n==0?.1:1:Kn),gi=Ct$1(Xa(_n+yi,pi/10),24),xi=_n<=In&&(Pn==1||Pn==3&&gi>=In||Pn==2&&gi<=In)?In:-ct$2,ai=ri(Hn,gi>xi&&_n<=xi?xi:xn$1(xi,gi));return fi==ai&&fi==0&&(ai=100),[fi,ai]}const $_=new Intl.NumberFormat(bo?x_.language:"en-US"),Nu=vn=>$_.format(vn),Gn=Math,Fa=Gn.PI,an$1=Gn.abs,jn=Gn.floor,sn$1=Gn.round,ii=Gn.ceil,ri=Gn.min,xn$1=Gn.max,po=Gn.pow,Af=Gn.sign,Hi=Gn.log10,eg=Gn.log2,T_=(vn,_n=1)=>Gn.sinh(vn)*_n,Cc=(vn,_n=1)=>Gn.asinh(vn/_n),ct$2=1/0;function $f(vn){return(Hi((vn^vn>>31)-(vn>>31))|0)+1}function wu(vn,_n,kn){return ri(xn$1(vn,_n),kn)}function lt$2(vn){return typeof vn=="function"?vn:()=>vn}const M_=()=>{},tg=vn=>vn,ng=(vn,_n)=>_n,Tf=vn=>!0,Mf=(vn,_n)=>vn==_n,L_=/\.\d*?(?=9{6,}|0{6,})/gm,Wr=vn=>{if(og(vn)||dr.has(vn))return vn;const _n=`${vn}`,kn=_n.match(L_);if(kn==null)return vn;let Mn=kn[0].length-1;if(_n.indexOf("e-")!=-1){let[Yn,Wn]=_n.split("e");return+`${Wr(Yn)}e${Wn}`}return Ct$1(vn,Mn)};function Rr(vn,_n){return Wr(Ct$1(Wr(vn/_n))*_n)}function Xa(vn,_n){return Wr(ii(Wr(vn/_n))*_n)}function ig(vn,_n){return Wr(jn(Wr(vn/_n))*_n)}function Ct$1(vn,_n=0){if(og(vn))return vn;let kn=10**_n,Mn=vn*kn*(1+Number.EPSILON);return sn$1(Mn)/kn}const dr=new Map;function rg(vn){return((""+vn).split(".")[1]||"").length}function _s(vn,_n,kn,Mn){let Yn=[],Wn=Mn.map(rg);for(let Kn=_n;Kn<kn;Kn++){let Xn=an$1(Kn),Hn=Ct$1(po(vn,Kn),Xn);for(let qn=0;qn<Mn.length;qn++){let In=vn==10?+`${Mn[qn]}e${Kn}`:Mn[qn]*Hn,Dn=(Kn>=0?0:Xn)+(Kn>=Wn[qn]?0:Wn[qn]),Pn=vn==10?In:Ct$1(In,Dn);Yn.push(Pn),dr.set(Pn,Dn)}}return Yn}const bs={},Fu=[],go=[null,null],ur=Array.isArray,og=Number.isInteger,R_=vn=>vn===void 0;function Lf(vn){return typeof vn=="string"}function Ja(vn){let _n=!1;if(vn!=null){let kn=vn.constructor;_n=kn==null||kn==Object}return _n}function E_(vn){return vn!=null&&typeof vn=="object"}const I_=Object.getPrototypeOf(Uint8Array),sg="__proto__";function mo(vn,_n=Ja){let kn;if(ur(vn)){let Mn=vn.find(Yn=>Yn!=null);if(ur(Mn)||_n(Mn)){kn=Array(vn.length);for(let Yn=0;Yn<vn.length;Yn++)kn[Yn]=mo(vn[Yn],_n)}else kn=vn.slice()}else if(vn instanceof I_)kn=vn.slice();else if(_n(vn)){kn={};for(let Mn in vn)Mn!=sg&&(kn[Mn]=mo(vn[Mn],_n))}else kn=vn;return kn}function Zt$1(vn){let _n=arguments;for(let kn=1;kn<_n.length;kn++){let Mn=_n[kn];for(let Yn in Mn)Yn!=sg&&(Ja(vn[Yn])?Zt$1(vn[Yn],mo(Mn[Yn])):vn[Yn]=mo(Mn[Yn]))}return vn}const O_=0,D_=1,N_=2;function F_(vn,_n,kn){for(let Mn=0,Yn,Wn=-1;Mn<_n.length;Mn++){let Kn=_n[Mn];if(Kn>Wn){for(Yn=Kn-1;Yn>=0&&vn[Yn]==null;)vn[Yn--]=null;for(Yn=Kn+1;Yn<kn&&vn[Yn]==null;)vn[Wn=Yn++]=null}}}function W_(vn,_n){if(z_(vn)){let Kn=vn[0].slice();for(let Xn=1;Xn<vn.length;Xn++)Kn.push(...vn[Xn].slice(1));return H_(Kn[0])||(Kn=B_(Kn)),Kn}let kn=new Set;for(let Kn=0;Kn<vn.length;Kn++){let Xn=vn[Kn][0],Hn=Xn.length;for(let qn=0;qn<Hn;qn++)kn.add(Xn[qn])}let Mn=[Array.from(kn).sort((Kn,Xn)=>Kn-Xn)],Yn=Mn[0].length,Wn=new Map;for(let Kn=0;Kn<Yn;Kn++)Wn.set(Mn[0][Kn],Kn);for(let Kn=0;Kn<vn.length;Kn++){let Xn=vn[Kn],Hn=Xn[0];for(let qn=1;qn<Xn.length;qn++){let In=Xn[qn],Dn=Array(Yn).fill(void 0),Pn=_n?_n[Kn][qn]:D_,Bn=[];for(let Nn=0;Nn<In.length;Nn++){let zn=In[Nn],Qn=Wn.get(Hn[Nn]);zn===null?Pn!=O_&&(Dn[Qn]=zn,Pn==N_&&Bn.push(Qn)):Dn[Qn]=zn}F_(Dn,Bn,Yn),Mn.push(Dn)}}return Mn}const P_=typeof queueMicrotask>"u"?vn=>Promise.resolve().then(vn):queueMicrotask;function B_(vn){let _n=vn[0],kn=_n.length,Mn=Array(kn);for(let Wn=0;Wn<Mn.length;Wn++)Mn[Wn]=Wn;Mn.sort((Wn,Kn)=>_n[Wn]-_n[Kn]);let Yn=[];for(let Wn=0;Wn<vn.length;Wn++){let Kn=vn[Wn],Xn=Array(kn);for(let Hn=0;Hn<kn;Hn++)Xn[Hn]=Kn[Mn[Hn]];Yn.push(Xn)}return Yn}function z_(vn){let _n=vn[0][0],kn=_n.length;for(let Mn=1;Mn<vn.length;Mn++){let Yn=vn[Mn][0];if(Yn.length!=kn)return!1;if(Yn!=_n){for(let Wn=0;Wn<kn;Wn++)if(Yn[Wn]!=_n[Wn])return!1}}return!0}function H_(vn,_n=100){const kn=vn.length;if(kn<=1)return!0;let Mn=0,Yn=kn-1;for(;Mn<=Yn&&vn[Mn]==null;)Mn++;for(;Yn>=Mn&&vn[Yn]==null;)Yn--;if(Yn<=Mn)return!0;const Wn=xn$1(1,jn((Yn-Mn+1)/_n));for(let Kn=vn[Mn],Xn=Mn+Wn;Xn<=Yn;Xn+=Wn){const Hn=vn[Xn];if(Hn!=null){if(Hn<=Kn)return!1;Kn=Hn}}return!0}const ag=["January","February","March","April","May","June","July","August","September","October","November","December"],lg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function cg(vn){return vn.slice(0,3)}const U_=lg.map(cg),V_=ag.map(cg),j_={MMMM:ag,MMM:V_,WWWW:lg,WWW:U_};function fs(vn){return(vn<10?"0":"")+vn}function G_(vn){return(vn<10?"00":vn<100?"0":"")+vn}const K_={YYYY:vn=>vn.getFullYear(),YY:vn=>(vn.getFullYear()+"").slice(2),MMMM:(vn,_n)=>_n.MMMM[vn.getMonth()],MMM:(vn,_n)=>_n.MMM[vn.getMonth()],MM:vn=>fs(vn.getMonth()+1),M:vn=>vn.getMonth()+1,DD:vn=>fs(vn.getDate()),D:vn=>vn.getDate(),WWWW:(vn,_n)=>_n.WWWW[vn.getDay()],WWW:(vn,_n)=>_n.WWW[vn.getDay()],HH:vn=>fs(vn.getHours()),H:vn=>vn.getHours(),h:vn=>{let _n=vn.getHours();return _n==0?12:_n>12?_n-12:_n},AA:vn=>vn.getHours()>=12?"PM":"AM",aa:vn=>vn.getHours()>=12?"pm":"am",a:vn=>vn.getHours()>=12?"p":"a",mm:vn=>fs(vn.getMinutes()),m:vn=>vn.getMinutes(),ss:vn=>fs(vn.getSeconds()),s:vn=>vn.getSeconds(),fff:vn=>G_(vn.getMilliseconds())};function Wu(vn,_n){_n=_n||j_;let kn=[],Mn=/\{([a-z]+)\}|[^{]+/gi,Yn;for(;Yn=Mn.exec(vn);)kn.push(Yn[0][0]=="{"?K_[Yn[1]]:Yn[0]);return Wn=>{let Kn="";for(let Xn=0;Xn<kn.length;Xn++)Kn+=typeof kn[Xn]=="string"?kn[Xn]:kn[Xn](Wn,_n);return Kn}}const q_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Y_(vn,_n){let kn;return _n=="UTC"||_n=="Etc/UTC"?kn=new Date(+vn+vn.getTimezoneOffset()*6e4):_n==q_?kn=vn:(kn=new Date(vn.toLocaleString("en-US",{timeZone:_n})),kn.setMilliseconds(vn.getMilliseconds())),kn}const ug=vn=>vn%1==0,Ha=[1,2,2.5,5],Z_=_s(10,-32,0,Ha),hg=_s(10,0,32,Ha),Q_=hg.filter(ug),Er=Z_.concat(hg),Pu=`
1407
+ `,dg="{YYYY}",Rf=Pu+dg,fg="{M}/{D}",ys=Pu+fg,Ra=ys+"/{YY}",pg="{aa}",X_="{h}:{mm}",uo=X_+pg,Ef=Pu+uo,If=":{ss}",mt$2=null;function gg(vn){let _n=vn*1e3,kn=_n*60,Mn=kn*60,Yn=Mn*24,Wn=Yn*30,Kn=Yn*365,Xn=(vn==1?_s(10,0,3,Ha).filter(ug):_s(10,-3,0,Ha)).concat([_n,_n*5,_n*10,_n*15,_n*30,kn,kn*5,kn*10,kn*15,kn*30,Mn,Mn*2,Mn*3,Mn*4,Mn*6,Mn*8,Mn*12,Yn,Yn*2,Yn*3,Yn*4,Yn*5,Yn*6,Yn*7,Yn*8,Yn*9,Yn*10,Yn*15,Wn,Wn*2,Wn*3,Wn*4,Wn*6,Kn,Kn*2,Kn*5,Kn*10,Kn*25,Kn*50,Kn*100]);const Hn=[[Kn,dg,mt$2,mt$2,mt$2,mt$2,mt$2,mt$2,1],[Yn*28,"{MMM}",Rf,mt$2,mt$2,mt$2,mt$2,mt$2,1],[Yn,fg,Rf,mt$2,mt$2,mt$2,mt$2,mt$2,1],[Mn,"{h}"+pg,Ra,mt$2,ys,mt$2,mt$2,mt$2,1],[kn,uo,Ra,mt$2,ys,mt$2,mt$2,mt$2,1],[_n,If,Ra+" "+uo,mt$2,ys+" "+uo,mt$2,Ef,mt$2,1],[vn,If+".{fff}",Ra+" "+uo,mt$2,ys+" "+uo,mt$2,Ef,mt$2,1]];function qn(In){return(Dn,Pn,Bn,Nn,zn,Qn)=>{let Jn=[],ti=zn>=Kn,vi=zn>=Wn&&zn<Kn,pi=In(Bn),si=Ct$1(pi*vn,3),ei=Ac(pi.getFullYear(),ti?0:pi.getMonth(),vi||ti?1:pi.getDate()),mi=Ct$1(ei*vn,3);if(vi||ti){let fi=vi?zn/Wn:0,yi=ti?zn/Kn:0,gi=si==mi?si:Ct$1(Ac(ei.getFullYear()+yi,ei.getMonth()+fi,1)*vn,3),xi=new Date(sn$1(gi/vn)),ai=xi.getFullYear(),oi=xi.getMonth();for(let li=0;gi<=Nn;li++){let wi=Ac(ai+yi*li,oi+fi*li,1),bi=wi-In(Ct$1(wi*vn,3));gi=Ct$1((+wi+bi)*vn,3),gi<=Nn&&Jn.push(gi)}}else{let fi=zn>=Yn?Yn:zn,yi=jn(Bn)-jn(si),gi=mi+yi+Xa(si-mi,fi);Jn.push(gi);let xi=In(gi),ai=xi.getHours()+xi.getMinutes()/kn+xi.getSeconds()/Mn,oi=zn/Mn,li=Dn.axes[Pn]._space,wi=Qn/li;for(;gi=Ct$1(gi+zn,vn==1?0:3),!(gi>Nn);)if(oi>1){let bi=jn(Ct$1(ai+oi,6))%24,_i=In(gi).getHours()-bi;_i>1&&(_i=-1),gi-=_i*Mn,ai=(ai+oi)%24;let Ti=Jn[Jn.length-1];Ct$1((gi-Ti)/zn,3)*wi>=.7&&Jn.push(gi)}else Jn.push(gi)}return Jn}}return[Xn,Hn,qn]}const[J_,eS,tS]=gg(1),[nS,iS,rS]=gg(.001);_s(2,-53,53,[1]);function Of(vn,_n){return vn.map(kn=>kn.map((Mn,Yn)=>Yn==0||Yn==8||Mn==null?Mn:_n(Yn==1||kn[8]==0?Mn:kn[1]+Mn)))}function Df(vn,_n){return(kn,Mn,Yn,Wn,Kn)=>{let Xn=_n.find(Nn=>Kn>=Nn[0])||_n[_n.length-1],Hn,qn,In,Dn,Pn,Bn;return Mn.map(Nn=>{let zn=vn(Nn),Qn=zn.getFullYear(),Jn=zn.getMonth(),ti=zn.getDate(),vi=zn.getHours(),pi=zn.getMinutes(),si=zn.getSeconds(),ei=Qn!=Hn&&Xn[2]||Jn!=qn&&Xn[3]||ti!=In&&Xn[4]||vi!=Dn&&Xn[5]||pi!=Pn&&Xn[6]||si!=Bn&&Xn[7]||Xn[1];return Hn=Qn,qn=Jn,In=ti,Dn=vi,Pn=pi,Bn=si,ei(zn)})}}function oS(vn,_n){let kn=Wu(_n);return(Mn,Yn,Wn,Kn,Xn)=>Yn.map(Hn=>kn(vn(Hn)))}function Ac(vn,_n,kn){return new Date(vn,_n,kn)}function Nf(vn,_n){return _n(vn)}const sS="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Ff(vn,_n){return(kn,Mn,Yn,Wn)=>Wn==null?Eu:_n(vn(Mn))}function aS(vn,_n){let kn=vn.series[_n];return kn.width?kn.stroke(vn,_n):kn.points.width?kn.points.stroke(vn,_n):null}function lS(vn,_n){return vn.series[_n].fill(vn,_n)}const cS={show:!0,live:!0,isolate:!1,mount:M_,markers:{show:!0,width:2,stroke:aS,fill:lS,dash:"solid"},idx:null,idxs:null,values:[]};function uS(vn,_n){let kn=vn.cursor.points,Mn=ni(),Yn=kn.size(vn,_n);Lt$2(Mn,ms,Yn),Lt$2(Mn,vs,Yn);let Wn=Yn/-2;Lt$2(Mn,"marginLeft",Wn),Lt$2(Mn,"marginTop",Wn);let Kn=kn.width(vn,_n,Yn);return Kn&&Lt$2(Mn,"borderWidth",Kn),Mn}function hS(vn,_n){let kn=vn.series[_n].points;return kn._fill||kn._stroke}function dS(vn,_n){let kn=vn.series[_n].points;return kn._stroke||kn._fill}function fS(vn,_n){return vn.series[_n].points.size}const $c=[0,0];function pS(vn,_n,kn){return $c[0]=_n,$c[1]=kn,$c}function Ea(vn,_n,kn,Mn=!0){return Yn=>{Yn.button==0&&(!Mn||Yn.target==_n)&&kn(Yn)}}function Tc(vn,_n,kn,Mn=!0){return Yn=>{(!Mn||Yn.target==_n)&&kn(Yn)}}const gS={show:!0,x:!0,y:!0,lock:!1,move:pS,points:{one:!1,show:uS,size:fS,width:0,stroke:dS,fill:hS},bind:{mousedown:Ea,mouseup:Ea,click:Ea,dblclick:Ea,mousemove:Tc,mouseleave:Tc,mouseenter:Tc},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(vn,_n)=>{_n.stopPropagation(),_n.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(vn,_n,kn,Mn,Yn)=>Mn-Yn,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},mg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Bu=Zt$1({},mg,{filter:ng}),vg=Zt$1({},Bu,{size:10}),yg=Zt$1({},mg,{show:!1}),zu='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',wg="bold "+zu,bg=1.5,Wf={show:!0,scale:"x",stroke:Ru,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:wg,side:2,grid:Bu,ticks:vg,border:yg,font:zu,lineGap:bg,rotate:0},mS="Value",vS="Time",Pf={show:!0,scale:"x",auto:!1,sorted:1,min:ct$2,max:-ct$2,idxs:[]};function yS(vn,_n,kn,Mn,Yn){return _n.map(Wn=>Wn==null?"":Nu(Wn))}function wS(vn,_n,kn,Mn,Yn,Wn,Kn){let Xn=[],Hn=dr.get(Yn)||0;kn=Kn?kn:Ct$1(Xa(kn,Yn),Hn);for(let qn=kn;qn<=Mn;qn=Ct$1(qn+Yn,Hn))Xn.push(Object.is(qn,-0)?0:qn);return Xn}function bu(vn,_n,kn,Mn,Yn,Wn,Kn){const Xn=[],Hn=vn.scales[vn.axes[_n].scale].log,qn=Hn==10?Hi:eg,In=jn(qn(kn));Yn=po(Hn,In),Hn==10&&(Yn=Er[hi(Yn,Er)]);let Dn=kn,Pn=Yn*Hn;Hn==10&&(Pn=Er[hi(Pn,Er)]);do Xn.push(Dn),Dn=Dn+Yn,Hn==10&&!dr.has(Dn)&&(Dn=Ct$1(Dn,dr.get(Yn))),Dn>=Pn&&(Yn=Dn,Pn=Yn*Hn,Hn==10&&(Pn=Er[hi(Pn,Er)]));while(Dn<=Mn);return Xn}function bS(vn,_n,kn,Mn,Yn,Wn,Kn){let Xn=vn.scales[vn.axes[_n].scale].asinh,Hn=Mn>Xn?bu(vn,_n,xn$1(Xn,kn),Mn,Yn):[Xn],qn=Mn>=0&&kn<=0?[0]:[];return(kn<-Xn?bu(vn,_n,xn$1(Xn,-Mn),-kn,Yn):[Xn]).reverse().map(In=>-In).concat(qn,Hn)}const xg=/./,xS=/[12357]/,_S=/[125]/,Bf=/1/,xu=(vn,_n,kn,Mn)=>vn.map((Yn,Wn)=>_n==4&&Yn==0||Wn%Mn==0&&kn.test(Yn.toExponential()[Yn<0?1:0])?Yn:null);function SS(vn,_n,kn,Mn,Yn){let Wn=vn.axes[kn],Kn=Wn.scale,Xn=vn.scales[Kn],Hn=vn.valToPos,qn=Wn._space,In=Hn(10,Kn),Dn=Hn(9,Kn)-In>=qn?xg:Hn(7,Kn)-In>=qn?xS:Hn(5,Kn)-In>=qn?_S:Bf;if(Dn==Bf){let Pn=an$1(Hn(1,Kn)-In);if(Pn<qn)return xu(_n.slice().reverse(),Xn.distr,Dn,ii(qn/Pn)).reverse()}return xu(_n,Xn.distr,Dn,1)}function kS(vn,_n,kn,Mn,Yn){let Wn=vn.axes[kn],Kn=Wn.scale,Xn=Wn._space,Hn=vn.valToPos,qn=an$1(Hn(1,Kn)-Hn(2,Kn));return qn<Xn?xu(_n.slice().reverse(),3,xg,ii(Xn/qn)).reverse():_n}function CS(vn,_n,kn,Mn){return Mn==null?Eu:_n==null?"":Nu(_n)}const zf={show:!0,scale:"y",stroke:Ru,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:wg,side:3,grid:Bu,ticks:vg,border:yg,font:zu,lineGap:bg,rotate:0};function AS(vn,_n){let kn=3+(vn||1)*2;return Ct$1(kn*_n,3)}function $S(vn,_n){let{scale:kn,idxs:Mn}=vn.series[0],Yn=vn._data[0],Wn=vn.valToPos(Yn[Mn[0]],kn,!0),Kn=vn.valToPos(Yn[Mn[1]],kn,!0),Xn=an$1(Kn-Wn),Hn=vn.series[_n],qn=Xn/(Hn.points.space*dt$2);return Mn[1]-Mn[0]<=qn}const Hf={scale:null,auto:!0,sorted:0,min:ct$2,max:-ct$2},_g=(vn,_n,kn,Mn,Yn)=>Yn,Uf={show:!0,auto:!0,sorted:0,gaps:_g,alpha:1,facets:[Zt$1({},Hf,{scale:"x"}),Zt$1({},Hf,{scale:"y"})]},Vf={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:_g,alpha:1,points:{show:$S,filter:null},values:null,min:ct$2,max:-ct$2,idxs:[],path:null,clip:null};function TS(vn,_n,kn,Mn,Yn){return kn/10}const Sg={time:e_,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},MS=Zt$1({},Sg,{time:!1,ori:1}),jf={};function kg(vn,_n){let kn=jf[vn];return kn||(kn={key:vn,plots:[],sub(Mn){kn.plots.push(Mn)},unsub(Mn){kn.plots=kn.plots.filter(Yn=>Yn!=Mn)},pub(Mn,Yn,Wn,Kn,Xn,Hn,qn){for(let In=0;In<kn.plots.length;In++)kn.plots[In]!=Yn&&kn.plots[In].pub(Mn,Yn,Wn,Kn,Xn,Hn,qn)}},vn!=null&&(jf[vn]=kn)),kn}const vo=1,_u=2;function Pr(vn,_n,kn){const Mn=vn.mode,Yn=vn.series[_n],Wn=Mn==2?vn._data[_n]:vn._data,Kn=vn.scales,Xn=vn.bbox;let Hn=Wn[0],qn=Mn==2?Wn[1]:Wn[_n],In=Mn==2?Kn[Yn.facets[0].scale]:Kn[vn.series[0].scale],Dn=Mn==2?Kn[Yn.facets[1].scale]:Kn[Yn.scale],Pn=Xn.left,Bn=Xn.top,Nn=Xn.width,zn=Xn.height,Qn=vn.valToPosH,Jn=vn.valToPosV;return In.ori==0?kn(Yn,Hn,qn,In,Dn,Qn,Jn,Pn,Bn,Nn,zn,tl,xo,il,Ag,Tg):kn(Yn,Hn,qn,In,Dn,Jn,Qn,Bn,Pn,zn,Nn,nl,_o,Vu,$g,Mg)}function Hu(vn,_n){let kn=0,Mn=0,Yn=ht$2(vn.bands,Fu);for(let Wn=0;Wn<Yn.length;Wn++){let Kn=Yn[Wn];Kn.series[0]==_n?kn=Kn.dir:Kn.series[1]==_n&&(Kn.dir==1?Mn|=1:Mn|=2)}return[kn,Mn==1?-1:Mn==2?1:Mn==3?2:0]}function LS(vn,_n,kn,Mn,Yn){let Wn=vn.mode,Kn=vn.series[_n],Xn=Wn==2?Kn.facets[1].scale:Kn.scale,Hn=vn.scales[Xn];return Yn==-1?Hn.min:Yn==1?Hn.max:Hn.distr==3?Hn.dir==1?Hn.min:Hn.max:0}function Ui(vn,_n,kn,Mn,Yn,Wn){return Pr(vn,_n,(Kn,Xn,Hn,qn,In,Dn,Pn,Bn,Nn,zn,Qn)=>{let Jn=Kn.pxRound;const ti=qn.dir*(qn.ori==0?1:-1),vi=qn.ori==0?xo:_o;let pi,si;ti==1?(pi=kn,si=Mn):(pi=Mn,si=kn);let ei=Jn(Dn(Xn[pi],qn,zn,Bn)),mi=Jn(Pn(Hn[pi],In,Qn,Nn)),fi=Jn(Dn(Xn[si],qn,zn,Bn)),yi=Jn(Pn(Wn==1?In.max:In.min,In,Qn,Nn)),gi=new Path2D(Yn);return vi(gi,fi,yi),vi(gi,ei,yi),vi(gi,ei,mi),gi})}function el(vn,_n,kn,Mn,Yn,Wn){let Kn=null;if(vn.length>0){Kn=new Path2D;const Xn=_n==0?il:Vu;let Hn=kn;for(let Dn=0;Dn<vn.length;Dn++){let Pn=vn[Dn];if(Pn[1]>Pn[0]){let Bn=Pn[0]-Hn;Bn>0&&Xn(Kn,Hn,Mn,Bn,Mn+Wn),Hn=Pn[1]}}let qn=kn+Yn-Hn,In=10;qn>0&&Xn(Kn,Hn,Mn-In/2,qn,Mn+Wn+In)}return Kn}function RS(vn,_n,kn){let Mn=vn[vn.length-1];Mn&&Mn[0]==_n?Mn[1]=kn:vn.push([_n,kn])}function Uu(vn,_n,kn,Mn,Yn,Wn,Kn){let Xn=[],Hn=vn.length;for(let qn=Yn==1?kn:Mn;qn>=kn&&qn<=Mn;qn+=Yn)if(_n[qn]===null){let In=qn,Dn=qn;if(Yn==1)for(;++qn<=Mn&&_n[qn]===null;)Dn=qn;else for(;--qn>=kn&&_n[qn]===null;)Dn=qn;let Pn=Wn(vn[In]),Bn=Dn==In?Pn:Wn(vn[Dn]),Nn=In-Yn;Pn=Kn<=0&&Nn>=0&&Nn<Hn?Wn(vn[Nn]):Pn;let zn=Dn+Yn;Bn=Kn>=0&&zn>=0&&zn<Hn?Wn(vn[zn]):Bn,Bn>=Pn&&Xn.push([Pn,Bn])}return Xn}function Gf(vn){return vn==0?tg:vn==1?sn$1:_n=>Rr(_n,vn)}function Cg(vn){let _n=vn==0?tl:nl,kn=vn==0?(Yn,Wn,Kn,Xn,Hn,qn)=>{Yn.arcTo(Wn,Kn,Xn,Hn,qn)}:(Yn,Wn,Kn,Xn,Hn,qn)=>{Yn.arcTo(Kn,Wn,Hn,Xn,qn)},Mn=vn==0?(Yn,Wn,Kn,Xn,Hn)=>{Yn.rect(Wn,Kn,Xn,Hn)}:(Yn,Wn,Kn,Xn,Hn)=>{Yn.rect(Kn,Wn,Hn,Xn)};return(Yn,Wn,Kn,Xn,Hn,qn=0,In=0)=>{qn==0&&In==0?Mn(Yn,Wn,Kn,Xn,Hn):(qn=ri(qn,Xn/2,Hn/2),In=ri(In,Xn/2,Hn/2),_n(Yn,Wn+qn,Kn),kn(Yn,Wn+Xn,Kn,Wn+Xn,Kn+Hn,qn),kn(Yn,Wn+Xn,Kn+Hn,Wn,Kn+Hn,In),kn(Yn,Wn,Kn+Hn,Wn,Kn,In),kn(Yn,Wn,Kn,Wn+Xn,Kn,qn),Yn.closePath())}}const tl=(vn,_n,kn)=>{vn.moveTo(_n,kn)},nl=(vn,_n,kn)=>{vn.moveTo(kn,_n)},xo=(vn,_n,kn)=>{vn.lineTo(_n,kn)},_o=(vn,_n,kn)=>{vn.lineTo(kn,_n)},il=Cg(0),Vu=Cg(1),Ag=(vn,_n,kn,Mn,Yn,Wn)=>{vn.arc(_n,kn,Mn,Yn,Wn)},$g=(vn,_n,kn,Mn,Yn,Wn)=>{vn.arc(kn,_n,Mn,Yn,Wn)},Tg=(vn,_n,kn,Mn,Yn,Wn,Kn)=>{vn.bezierCurveTo(_n,kn,Mn,Yn,Wn,Kn)},Mg=(vn,_n,kn,Mn,Yn,Wn,Kn)=>{vn.bezierCurveTo(kn,_n,Yn,Mn,Kn,Wn)};function Lg(vn){return(_n,kn,Mn,Yn,Wn)=>Pr(_n,kn,(Kn,Xn,Hn,qn,In,Dn,Pn,Bn,Nn,zn,Qn)=>{let{pxRound:Jn,points:ti}=Kn,vi,pi;qn.ori==0?(vi=tl,pi=Ag):(vi=nl,pi=$g);const si=Ct$1(ti.width*dt$2,3);let ei=(ti.size-ti.width)/2*dt$2,mi=Ct$1(ei*2,3),fi=new Path2D,yi=new Path2D,{left:gi,top:xi,width:ai,height:oi}=_n.bbox;il(yi,gi-mi,xi-mi,ai+mi*2,oi+mi*2);const li=wi=>{if(Hn[wi]!=null){let bi=Jn(Dn(Xn[wi],qn,zn,Bn)),_i=Jn(Pn(Hn[wi],In,Qn,Nn));vi(fi,bi+ei,_i),pi(fi,bi,_i,ei,0,Fa*2)}};if(Wn)Wn.forEach(li);else for(let wi=Mn;wi<=Yn;wi++)li(wi);return{stroke:si>0?fi:null,fill:fi,clip:yi,flags:vo|_u}})}function Rg(vn){return(_n,kn,Mn,Yn,Wn,Kn)=>{Mn!=Yn&&(Wn!=Mn&&Kn!=Mn&&vn(_n,kn,Mn),Wn!=Yn&&Kn!=Yn&&vn(_n,kn,Yn),vn(_n,kn,Kn))}}const ES=Rg(xo),IS=Rg(_o);function Eg(vn){const _n=ht$2(vn==null?void 0:vn.alignGaps,0);return(kn,Mn,Yn,Wn)=>Pr(kn,Mn,(Kn,Xn,Hn,qn,In,Dn,Pn,Bn,Nn,zn,Qn)=>{let Jn=Kn.pxRound,ti=zi=>Jn(Dn(zi,qn,zn,Bn)),vi=zi=>Jn(Pn(zi,In,Qn,Nn)),pi,si;qn.ori==0?(pi=xo,si=ES):(pi=_o,si=IS);const ei=qn.dir*(qn.ori==0?1:-1),mi={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:vo},fi=mi.stroke;let yi=ct$2,gi=-ct$2,xi,ai,oi,li=ti(Xn[ei==1?Yn:Wn]),wi=fo(Hn,Yn,Wn,1*ei),bi=fo(Hn,Yn,Wn,-1*ei),_i=ti(Xn[wi]),Ti=ti(Xn[bi]),Li=!1;for(let zi=ei==1?Yn:Wn;zi>=Yn&&zi<=Wn;zi+=ei){let Oi=ti(Xn[zi]),Bi=Hn[zi];Oi==li?Bi!=null?(ai=vi(Bi),yi==ct$2&&(pi(fi,Oi,ai),xi=ai),yi=ri(ai,yi),gi=xn$1(ai,gi)):Bi===null&&(Li=!0):(yi!=ct$2&&(si(fi,li,yi,gi,xi,ai),oi=li),Bi!=null?(ai=vi(Bi),pi(fi,Oi,ai),yi=gi=xi=ai):(yi=ct$2,gi=-ct$2,Bi===null&&(Li=!0)),li=Oi)}yi!=ct$2&&yi!=gi&&oi!=li&&si(fi,li,yi,gi,xi,ai);let[Ri,Ii]=Hu(kn,Mn);if(Kn.fill!=null||Ri!=0){let zi=mi.fill=new Path2D(fi),Oi=Kn.fillTo(kn,Mn,Kn.min,Kn.max,Ri),Bi=vi(Oi);pi(zi,Ti,Bi),pi(zi,_i,Bi)}if(!Kn.spanGaps){let zi=[];Li&&zi.push(...Uu(Xn,Hn,Yn,Wn,ei,ti,_n)),mi.gaps=zi=Kn.gaps(kn,Mn,Yn,Wn,zi),mi.clip=el(zi,qn.ori,Bn,Nn,zn,Qn)}return Ii!=0&&(mi.band=Ii==2?[Ui(kn,Mn,Yn,Wn,fi,-1),Ui(kn,Mn,Yn,Wn,fi,1)]:Ui(kn,Mn,Yn,Wn,fi,Ii)),mi})}function OS(vn){const _n=ht$2(vn.align,1),kn=ht$2(vn.ascDesc,!1),Mn=ht$2(vn.alignGaps,0),Yn=ht$2(vn.extend,!1);return(Wn,Kn,Xn,Hn)=>Pr(Wn,Kn,(qn,In,Dn,Pn,Bn,Nn,zn,Qn,Jn,ti,vi)=>{let pi=qn.pxRound,{left:si,width:ei}=Wn.bbox,mi=Ri=>pi(Nn(Ri,Pn,ti,Qn)),fi=Ri=>pi(zn(Ri,Bn,vi,Jn)),yi=Pn.ori==0?xo:_o;const gi={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:vo},xi=gi.stroke,ai=Pn.dir*(Pn.ori==0?1:-1);Xn=fo(Dn,Xn,Hn,1),Hn=fo(Dn,Xn,Hn,-1);let oi=fi(Dn[ai==1?Xn:Hn]),li=mi(In[ai==1?Xn:Hn]),wi=li,bi=li;Yn&&_n==-1&&(bi=si,yi(xi,bi,oi)),yi(xi,li,oi);for(let Ri=ai==1?Xn:Hn;Ri>=Xn&&Ri<=Hn;Ri+=ai){let Ii=Dn[Ri];if(Ii==null)continue;let zi=mi(In[Ri]),Oi=fi(Ii);_n==1?yi(xi,zi,oi):yi(xi,wi,Oi),yi(xi,zi,Oi),oi=Oi,wi=zi}let _i=wi;Yn&&_n==1&&(_i=si+ei,yi(xi,_i,oi));let[Ti,Li]=Hu(Wn,Kn);if(qn.fill!=null||Ti!=0){let Ri=gi.fill=new Path2D(xi),Ii=qn.fillTo(Wn,Kn,qn.min,qn.max,Ti),zi=fi(Ii);yi(Ri,_i,zi),yi(Ri,bi,zi)}if(!qn.spanGaps){let Ri=[];Ri.push(...Uu(In,Dn,Xn,Hn,ai,mi,Mn));let Ii=qn.width*dt$2/2,zi=kn||_n==1?Ii:-Ii,Oi=kn||_n==-1?-Ii:Ii;Ri.forEach(Bi=>{Bi[0]+=zi,Bi[1]+=Oi}),gi.gaps=Ri=qn.gaps(Wn,Kn,Xn,Hn,Ri),gi.clip=el(Ri,Pn.ori,Qn,Jn,ti,vi)}return Li!=0&&(gi.band=Li==2?[Ui(Wn,Kn,Xn,Hn,xi,-1),Ui(Wn,Kn,Xn,Hn,xi,1)]:Ui(Wn,Kn,Xn,Hn,xi,Li)),gi})}function Kf(vn,_n,kn,Mn,Yn,Wn,Kn=ct$2){if(vn.length>1){let Xn=null;for(let Hn=0,qn=1/0;Hn<vn.length;Hn++)if(_n[Hn]!==void 0){if(Xn!=null){let In=an$1(vn[Hn]-vn[Xn]);In<qn&&(qn=In,Kn=an$1(kn(vn[Hn],Mn,Yn,Wn)-kn(vn[Xn],Mn,Yn,Wn)))}Xn=Hn}}return Kn}function DS(vn){vn=vn||bs;const _n=ht$2(vn.size,[.6,ct$2,1]),kn=vn.align||0,Mn=vn.gap||0;let Yn=vn.radius;Yn=Yn==null?[0,0]:typeof Yn=="number"?[Yn,0]:Yn;const Wn=lt$2(Yn),Kn=1-_n[0],Xn=ht$2(_n[1],ct$2),Hn=ht$2(_n[2],1),qn=ht$2(vn.disp,bs),In=ht$2(vn.each,Bn=>{}),{fill:Dn,stroke:Pn}=qn;return(Bn,Nn,zn,Qn)=>Pr(Bn,Nn,(Jn,ti,vi,pi,si,ei,mi,fi,yi,gi,xi)=>{let ai=Jn.pxRound,oi=kn,li=Mn*dt$2,wi=Xn*dt$2,bi=Hn*dt$2,_i,Ti;pi.ori==0?[_i,Ti]=Wn(Bn,Nn):[Ti,_i]=Wn(Bn,Nn);const Li=pi.dir*(pi.ori==0?1:-1);let Ri=pi.ori==0?il:Vu,Ii=pi.ori==0?In:(jr,Ji,_r,Sr,Yr,Kr,ko)=>{In(jr,Ji,_r,Yr,Sr,ko,Kr)},zi=ht$2(Bn.bands,Fu).find(jr=>jr.series[0]==Nn),Oi=zi!=null?zi.dir:0,Bi=Jn.fillTo(Bn,Nn,Jn.min,Jn.max,Oi),Yi=ai(mi(Bi,si,xi,yi)),Fi,Qi,pr,fr=gi,ar=ai(Jn.width*dt$2),yr=!1,ro=null,Fo=null,$o=null,Co=null;Dn!=null&&(ar==0||Pn!=null)&&(yr=!0,ro=Dn.values(Bn,Nn,zn,Qn),Fo=new Map,new Set(ro).forEach(jr=>{jr!=null&&Fo.set(jr,new Path2D)}),ar>0&&($o=Pn.values(Bn,Nn,zn,Qn),Co=new Map,new Set($o).forEach(jr=>{jr!=null&&Co.set(jr,new Path2D)})));let{x0:es,size:Do}=qn;if(es!=null&&Do!=null){oi=1,ti=es.values(Bn,Nn,zn,Qn),es.unit==2&&(ti=ti.map(Ji=>Bn.posToVal(fi+Ji*gi,pi.key,!0)));let jr=Do.values(Bn,Nn,zn,Qn);Do.unit==2?Qi=jr[0]*gi:Qi=ei(jr[0],pi,gi,fi)-ei(0,pi,gi,fi),fr=Kf(ti,vi,ei,pi,gi,fi,fr),pr=fr-Qi+li}else fr=Kf(ti,vi,ei,pi,gi,fi,fr),pr=fr*Kn+li,Qi=fr-pr;pr<1&&(pr=0),ar>=Qi/2&&(ar=0),pr<5&&(ai=tg);let Go=pr>0,wa=fr-pr-(Go?ar:0);Qi=ai(wu(wa,bi,wi)),Fi=(oi==0?Qi/2:oi==Li?0:Qi)-oi*Li*((oi==0?li/2:0)+(Go?ar/2:0));const as={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Zo=yr?null:new Path2D;let Ar=null;if(zi!=null)Ar=Bn.data[zi.series[1]];else{let{y0:jr,y1:Ji}=qn;jr!=null&&Ji!=null&&(vi=Ji.values(Bn,Nn,zn,Qn),Ar=jr.values(Bn,Nn,zn,Qn))}let zr=_i*Qi,Qo=Ti*Qi;for(let jr=Li==1?zn:Qn;jr>=zn&&jr<=Qn;jr+=Li){let Ji=vi[jr];if(Ji==null)continue;if(Ar!=null){let ao=Ar[jr]??0;if(Ji-ao==0)continue;Yi=mi(ao,si,xi,yi)}let _r=pi.distr!=2||qn!=null?ti[jr]:jr,Sr=ei(_r,pi,gi,fi),Yr=mi(ht$2(Ji,Bi),si,xi,yi),Kr=ai(Sr-Fi),ko=ai(xn$1(Yr,Yi)),So=ai(ri(Yr,Yi)),so=ko-So;if(Ji!=null){let ao=Ji<0?Qo:zr,to=Ji<0?zr:Qo;yr?(ar>0&&$o[jr]!=null&&Ri(Co.get($o[jr]),Kr,So+jn(ar/2),Qi,xn$1(0,so-ar),ao,to),ro[jr]!=null&&Ri(Fo.get(ro[jr]),Kr,So+jn(ar/2),Qi,xn$1(0,so-ar),ao,to)):Ri(Zo,Kr,So+jn(ar/2),Qi,xn$1(0,so-ar),ao,to),Ii(Bn,Nn,jr,Kr-ar/2,So,Qi+ar,so)}}return ar>0?as.stroke=yr?Co:Zo:yr||(as._fill=Jn.width==0?Jn._fill:Jn._stroke??Jn._fill,as.width=0),as.fill=yr?Fo:Zo,as})}function NS(vn,_n){const kn=ht$2(_n==null?void 0:_n.alignGaps,0);return(Mn,Yn,Wn,Kn)=>Pr(Mn,Yn,(Xn,Hn,qn,In,Dn,Pn,Bn,Nn,zn,Qn,Jn)=>{let ti=Xn.pxRound,vi=_i=>ti(Pn(_i,In,Qn,Nn)),pi=_i=>ti(Bn(_i,Dn,Jn,zn)),si,ei,mi;In.ori==0?(si=tl,mi=xo,ei=Tg):(si=nl,mi=_o,ei=Mg);const fi=In.dir*(In.ori==0?1:-1);Wn=fo(qn,Wn,Kn,1),Kn=fo(qn,Wn,Kn,-1);let yi=vi(Hn[fi==1?Wn:Kn]),gi=yi,xi=[],ai=[];for(let _i=fi==1?Wn:Kn;_i>=Wn&&_i<=Kn;_i+=fi)if(qn[_i]!=null){let Ti=Hn[_i],Li=vi(Ti);xi.push(gi=Li),ai.push(pi(qn[_i]))}const oi={stroke:vn(xi,ai,si,mi,ei,ti),fill:null,clip:null,band:null,gaps:null,flags:vo},li=oi.stroke;let[wi,bi]=Hu(Mn,Yn);if(Xn.fill!=null||wi!=0){let _i=oi.fill=new Path2D(li),Ti=Xn.fillTo(Mn,Yn,Xn.min,Xn.max,wi),Li=pi(Ti);mi(_i,gi,Li),mi(_i,yi,Li)}if(!Xn.spanGaps){let _i=[];_i.push(...Uu(Hn,qn,Wn,Kn,fi,vi,kn)),oi.gaps=_i=Xn.gaps(Mn,Yn,Wn,Kn,_i),oi.clip=el(_i,In.ori,Nn,zn,Qn,Jn)}return bi!=0&&(oi.band=bi==2?[Ui(Mn,Yn,Wn,Kn,li,-1),Ui(Mn,Yn,Wn,Kn,li,1)]:Ui(Mn,Yn,Wn,Kn,li,bi)),oi})}function FS(vn){return NS(WS,vn)}function WS(vn,_n,kn,Mn,Yn,Wn){const Kn=vn.length;if(Kn<2)return null;const Xn=new Path2D;if(kn(Xn,vn[0],_n[0]),Kn==2)Mn(Xn,vn[1],_n[1]);else{let Hn=Array(Kn),qn=Array(Kn-1),In=Array(Kn-1),Dn=Array(Kn-1);for(let Pn=0;Pn<Kn-1;Pn++)In[Pn]=_n[Pn+1]-_n[Pn],Dn[Pn]=vn[Pn+1]-vn[Pn],qn[Pn]=In[Pn]/Dn[Pn];Hn[0]=qn[0];for(let Pn=1;Pn<Kn-1;Pn++)qn[Pn]===0||qn[Pn-1]===0||qn[Pn-1]>0!=qn[Pn]>0?Hn[Pn]=0:(Hn[Pn]=3*(Dn[Pn-1]+Dn[Pn])/((2*Dn[Pn]+Dn[Pn-1])/qn[Pn-1]+(Dn[Pn]+2*Dn[Pn-1])/qn[Pn]),isFinite(Hn[Pn])||(Hn[Pn]=0));Hn[Kn-1]=qn[Kn-2];for(let Pn=0;Pn<Kn-1;Pn++)Yn(Xn,vn[Pn]+Dn[Pn]/3,_n[Pn]+Hn[Pn]*Dn[Pn]/3,vn[Pn+1]-Dn[Pn]/3,_n[Pn+1]-Hn[Pn+1]*Dn[Pn]/3,vn[Pn+1],_n[Pn+1])}return Xn}const Su=new Set;function qf(){for(let vn of Su)vn.syncRect(!0)}bo&&(Nr(w_,ho,qf),Nr(b_,ho,qf,!0),Nr(Ba,ho,()=>{$n.pxRatio=dt$2}));const PS=Eg(),BS=Lg();function Yf(vn,_n,kn,Mn){return(Mn?[vn[0],vn[1]].concat(vn.slice(2)):[vn[0]].concat(vn.slice(1))).map((Yn,Wn)=>ku(Yn,Wn,_n,kn))}function zS(vn,_n){return vn.map((kn,Mn)=>Mn==0?{}:Zt$1({},_n,kn))}function ku(vn,_n,kn,Mn){return Zt$1({},_n==0?kn:Mn,vn)}function Ig(vn,_n,kn){return _n==null?go:[_n,kn]}const HS=Ig;function US(vn,_n,kn){return _n==null?go:za(_n,kn,Du,!0)}function Og(vn,_n,kn,Mn){return _n==null?go:Qa(_n,kn,vn.scales[Mn].log,!1)}const VS=Og;function Dg(vn,_n,kn,Mn){return _n==null?go:Ou(_n,kn,vn.scales[Mn].log,!1)}const jS=Dg;function GS(vn,_n,kn,Mn,Yn){let Wn=xn$1($f(vn),$f(_n)),Kn=_n-vn,Xn=hi(Yn/Mn*Kn,kn);do{let Hn=kn[Xn],qn=Mn*Hn/Kn;if(qn>=Yn&&Wn+(Hn<5?dr.get(Hn):0)<=17)return[Hn,qn]}while(++Xn<kn.length);return[0,0]}function Zf(vn){let _n,kn;return vn=vn.replace(/(\d+)px/,(Mn,Yn)=>(_n=sn$1((kn=+Yn)*dt$2))+"px"),[vn,_n,kn]}function KS(vn){vn.show&&[vn.font,vn.labelFont].forEach(_n=>{let kn=Ct$1(_n[2]*dt$2,1);_n[0]=_n[0].replace(/[0-9.]+px/,kn+"px"),_n[1]=kn})}function $n(vn,_n,kn){const Mn={mode:ht$2(vn.mode,1)},Yn=Mn.mode;function Wn(Si,Ai){return((Ai.distr==3?Hi(Si>0?Si:Ai.clamp(Mn,Si,Ai.min,Ai.max,Ai.key)):Ai.distr==4?Cc(Si,Ai.asinh):Ai.distr==100?Ai.fwd(Si):Si)-Ai._min)/(Ai._max-Ai._min)}function Kn(Si,Ai,Di,Pi){let ji=Wn(Si,Ai);return Pi+Di*(Ai.dir==-1?1-ji:ji)}function Xn(Si,Ai,Di,Pi){let ji=Wn(Si,Ai);return Pi+Di*(Ai.dir==-1?ji:1-ji)}function Hn(Si,Ai,Di,Pi){return Ai.ori==0?Kn(Si,Ai,Di,Pi):Xn(Si,Ai,Di,Pi)}Mn.valToPosH=Kn,Mn.valToPosV=Xn;let qn=!1;Mn.status=0;const In=Mn.root=ni(t_);if(vn.id!=null&&(In.id=vn.id),Un(In,vn.class),vn.title){let Si=ni(r_,In);Si.textContent=vn.title}const Dn=ui("canvas"),Pn=Mn.ctx=Dn.getContext("2d"),Bn=ni(o_,In);Nr("click",Bn,Si=>{Si.target===zn&&(Br!=Ll||zo!=Nl)&&cs.click(Mn,Si)},!0);const Nn=Mn.under=ni(s_,Bn);Bn.appendChild(Dn);const zn=Mn.over=ni(a_,Bn);vn=mo(vn);const Qn=+ht$2(vn.pxAlign,1),Jn=Gf(Qn);(vn.plugins||[]).forEach(Si=>{Si.opts&&(vn=Si.opts(Mn,vn)||vn)});const ti=vn.ms||.001,vi=Mn.series=Yn==1?Yf(vn.series||[],Pf,Vf,!1):zS(vn.series||[null],Uf),pi=Mn.axes=Yf(vn.axes||[],Wf,zf,!0),si=Mn.scales={},ei=Mn.bands=vn.bands||[];ei.forEach(Si=>{Si.fill=lt$2(Si.fill||null),Si.dir=ht$2(Si.dir,-1)});const mi=Yn==2?vi[1].facets[0].scale:vi[0].scale,fi={axes:sm,series:ed},yi=(vn.drawOrder||["axes","series"]).map(Si=>fi[Si]);function gi(Si){let Ai=si[Si];if(Ai==null){let Di=(vn.scales||bs)[Si]||bs;if(Di.from!=null)gi(Di.from),si[Si]=Zt$1({},si[Di.from],Di,{key:Si});else{Ai=si[Si]=Zt$1({},Si==mi?Sg:MS,Di),Ai.key=Si;let Pi=Ai.time,ji=Ai.range,Ki=ur(ji);if((Si!=mi||Yn==2&&!Pi)&&(Ki&&(ji[0]==null||ji[1]==null)&&(ji={min:ji[0]==null?kf:{mode:1,hard:ji[0],soft:ji[0]},max:ji[1]==null?kf:{mode:1,hard:ji[1],soft:ji[1]}},Ki=!1),!Ki&&Ja(ji))){let ir=ji;ji=(mr,vr,wr)=>vr==null?go:za(vr,wr,ir)}Ai.range=lt$2(ji||(Pi?HS:Si==mi?Ai.distr==3?VS:Ai.distr==4?jS:Ig:Ai.distr==3?Og:Ai.distr==4?Dg:US)),Ai.auto=lt$2(Ki?!1:Ai.auto),Ai.clamp=lt$2(Ai.clamp||TS),Ai._min=Ai._max=null}}}gi("x"),gi("y"),Yn==1&&vi.forEach(Si=>{gi(Si.scale)}),pi.forEach(Si=>{gi(Si.scale)});for(let Si in vn.scales)gi(Si);const xi=si[mi],ai=xi.distr;let oi,li;xi.ori==0?(Un(In,n_),oi=Kn,li=Xn):(Un(In,i_),oi=Xn,li=Kn);const wi={};for(let Si in si){let Ai=si[Si];(Ai.min!=null||Ai.max!=null)&&(wi[Si]={min:Ai.min,max:Ai.max},Ai.min=Ai.max=null)}const bi=vn.tzDate||(Si=>new Date(sn$1(Si/ti))),_i=vn.fmtDate||Wu,Ti=ti==1?tS(bi):rS(bi),Li=Df(bi,Of(ti==1?eS:iS,_i)),Ri=Ff(bi,Nf(sS,_i)),Ii=[],zi=Mn.legend=Zt$1({},cS,vn.legend),Oi=zi.show,Bi=zi.markers;zi.idxs=Ii,Bi.width=lt$2(Bi.width),Bi.dash=lt$2(Bi.dash),Bi.stroke=lt$2(Bi.stroke),Bi.fill=lt$2(Bi.fill);let Yi,Fi,Qi,pr=[],fr=[],ar,yr=!1,ro={};if(zi.live){const Si=vi[1]?vi[1].values:null;yr=Si!=null,ar=yr?Si(Mn,1,0):{_:0};for(let Ai in ar)ro[Ai]=Eu}if(Oi)if(Yi=ui("table",f_,In),Qi=ui("tbody",null,Yi),zi.mount(Mn,Yi),yr){Fi=ui("thead",null,Yi,Qi);let Si=ui("tr",null,Fi);ui("th",null,Si);for(var Fo in ar)ui("th",uf,Si).textContent=Fo}else Un(Yi,g_),zi.live&&Un(Yi,p_);const $o={show:!0},Co={show:!1};function es(Si,Ai){if(Ai==0&&(yr||!zi.live||Yn==2))return go;let Di=[],Pi=ui("tr",m_,Qi,Qi.childNodes[Ai]);Un(Pi,Si.class),Si.show||Un(Pi,Ir);let ji=ui("th",null,Pi);if(Bi.show){let mr=ni(v_,ji);if(Ai>0){let vr=Bi.width(Mn,Ai);vr&&(mr.style.border=vr+"px "+Bi.dash(Mn,Ai)+" "+Bi.stroke(Mn,Ai)),mr.style.background=Bi.fill(Mn,Ai)}}let Ki=ni(uf,ji);Ki.textContent=Si.label,Ai>0&&(Bi.show||(Ki.style.color=Si.width>0?Bi.stroke(Mn,Ai):Bi.fill(Mn,Ai)),Go("click",ji,mr=>{if(Vr._lock)return;al(mr);let vr=vi.indexOf(Si);if((mr.ctrlKey||mr.metaKey)!=zi.isolate){let wr=vi.some(($r,kr)=>kr>0&&kr!=vr&&$r.show);vi.forEach(($r,kr)=>{kr>0&&Es(kr,wr?kr==vr?$o:Co:$o,!0,Yo.setSeries)})}else Es(vr,{show:!Si.show},!0,Yo.setSeries)},!1),ba&&Go(gf,ji,mr=>{Vr._lock||(al(mr),Es(vi.indexOf(Si),hl,!0,Yo.setSeries))},!1));for(var ir in ar){let mr=ui("td",y_,Pi);mr.textContent="--",Di.push(mr)}return[Pi,Di]}const Do=new Map;function Go(Si,Ai,Di,Pi=!0){const ji=Do.get(Ai)||{},Ki=Vr.bind[Si](Mn,Ai,Di,Pi);Ki&&(Nr(Si,Ai,ji[Si]=Ki),Do.set(Ai,ji))}function wa(Si,Ai,Di){const Pi=Do.get(Ai)||{};for(let ji in Pi)(Si==null||ji==Si)&&(yu(ji,Ai,Pi[ji]),delete Pi[ji]);Si==null&&Do.delete(Ai)}let as=0,Zo=0,Ar=0,zr=0,Qo=0,jr=0,Ji=Qo,_r=jr,Sr=Ar,Yr=zr,Kr=0,ko=0,So=0,so=0;Mn.bbox={};let ao=!1,to=!1,Ho=!1,Rs=!1,sl=!1,Us=!1;function ch(Si,Ai,Di){(Di||Si!=Mn.width||Ai!=Mn.height)&&uh(Si,Ai),cl(!1),Ho=!0,to=!0,Al()}function uh(Si,Ai){Mn.width=as=Ar=Si,Mn.height=Zo=zr=Ai,Qo=jr=0,tm(),nm();let Di=Mn.bbox;Kr=Di.left=Rr(Qo*dt$2,.5),ko=Di.top=Rr(jr*dt$2,.5),So=Di.width=Rr(Ar*dt$2,.5),so=Di.height=Rr(zr*dt$2,.5)}const qh=3;function Jg(){let Si=!1,Ai=0;for(;!Si;){Ai++;let Di=id(Ai),Pi=rd(Ai);Si=Ai==qh||Di&&Pi,Si||(uh(Mn.width,Mn.height),to=!0)}}function em({width:Si,height:Ai}){ch(Si,Ai)}Mn.setSize=em;function tm(){let Si=!1,Ai=!1,Di=!1,Pi=!1;pi.forEach((ji,Ki)=>{if(ji.show&&ji._show){let{side:ir,_size:mr}=ji,vr=ir%2,wr=ji.label!=null?ji.labelSize:0,$r=mr+wr;$r>0&&(vr?(Ar-=$r,ir==3?(Qo+=$r,Pi=!0):Di=!0):(zr-=$r,ir==0?(jr+=$r,Si=!0):Ai=!0))}}),ll[0]=Si,ll[1]=Di,ll[2]=Ai,ll[3]=Pi,Ar-=$a[1]+$a[3],Qo+=$a[3],zr-=$a[2]+$a[0],jr+=$a[0]}function nm(){let Si=Qo+Ar,Ai=jr+zr,Di=Qo,Pi=jr;function ji(Ki,ir){switch(Ki){case 1:return Si+=ir,Si-ir;case 2:return Ai+=ir,Ai-ir;case 3:return Di-=ir,Di+ir;case 0:return Pi-=ir,Pi+ir}}pi.forEach((Ki,ir)=>{if(Ki.show&&Ki._show){let mr=Ki.side;Ki._pos=ji(mr,Ki._size),Ki.label!=null&&(Ki._lpos=ji(mr,Ki.labelSize))}})}const Vr=Mn.cursor=Zt$1({},gS,{drag:{y:Yn==2}},vn.cursor);if(Vr.dataIdx==null){let Si=Vr.hover,Ai=Si.skip=new Set(Si.skip??[]);Ai.add(void 0);let Di=Si.prox=lt$2(Si.prox),Pi=Si.bias??(Si.bias=0);Vr.dataIdx=(ji,Ki,ir,mr)=>{if(Ki==0)return ir;let vr=ir,wr=Di(ji,Ki,ir,mr)??ct$2,$r=wr>=0&&wr<ct$2,kr=xi.ori==0?Ar:zr,Zr=Vr.left,Ro=_n[0],no=_n[Ki];if(Ai.has(no[ir])){vr=null;let qr=null,Xr=null,Cr;if(Pi==0||Pi==-1)for(Cr=ir;qr==null&&Cr-- >0;)Ai.has(no[Cr])||(qr=Cr);if(Pi==0||Pi==1)for(Cr=ir;Xr==null&&Cr++<no.length;)Ai.has(no[Cr])||(Xr=Cr);if(qr!=null||Xr!=null)if($r){let Eo=qr==null?-1/0:oi(Ro[qr],xi,kr,0),qo=Xr==null?1/0:oi(Ro[Xr],xi,kr,0),Uo=Zr-Eo,Vo=qo-Zr;Uo<=Vo?Uo<=wr&&(vr=qr):Vo<=wr&&(vr=Xr)}else vr=Xr==null?qr:qr==null?Xr:ir-qr<=Xr-ir?qr:Xr}else $r&&an$1(Zr-oi(Ro[ir],xi,kr,0))>wr&&(vr=null);return vr}}const al=Si=>{Vr.event=Si};Vr.idxs=Ii,Vr._lock=!1;let As=Vr.points;As.show=lt$2(As.show),As.size=lt$2(As.size),As.stroke=lt$2(As.stroke),As.width=lt$2(As.width),As.fill=lt$2(As.fill);const ya=Mn.focus=Zt$1({},vn.focus||{alpha:.3},Vr.focus),ba=ya.prox>=0,xl=ba&&As.one;let Is=[],_l=[],kl=[];function Kh(Si,Ai){let Di=As.show(Mn,Ai);if(Di)return Un(Di,d_),Un(Di,Si.class),Ci(Di,-10,-10,Ar,zr),zn.insertBefore(Di,Is[Ai]),Di}function Zh(Si,Ai){if(Yn==1||Ai>0){let Di=Yn==1&&si[Si.scale].time,Pi=Si.value;Si.value=Di?Lf(Pi)?Ff(bi,Nf(Pi,_i)):Pi||Ri:Pi||CS,Si.label=Si.label||(Di?vS:mS)}if(xl||Ai>0){Si.width=Si.width==null?1:Si.width,Si.paths=Si.paths||PS,Si.fillTo=lt$2(Si.fillTo||LS),Si.pxAlign=+ht$2(Si.pxAlign,Qn),Si.pxRound=Gf(Si.pxAlign),Si.stroke=lt$2(Si.stroke||null),Si.fill=lt$2(Si.fill||null),Si._stroke=Si._fill=Si._paths=Si._focus=null;let Di=AS(xn$1(1,Si.width),1),Pi=Si.points=Zt$1({},{size:Di,width:xn$1(1,Di*.2),stroke:Si.stroke,space:Di*2,paths:BS,_stroke:null,_fill:null},Si.points);Pi.show=lt$2(Pi.show),Pi.filter=lt$2(Pi.filter),Pi.fill=lt$2(Pi.fill),Pi.stroke=lt$2(Pi.stroke),Pi.paths=lt$2(Pi.paths),Pi.pxAlign=Si.pxAlign}if(Oi){let Di=es(Si,Ai);pr.splice(Ai,0,Di[0]),fr.splice(Ai,0,Di[1]),zi.values.push(null)}if(Vr.show){Ii.splice(Ai,0,null);let Di=null;xl?Ai==0&&(Di=Kh(Si,Ai)):Ai>0&&(Di=Kh(Si,Ai)),Is.splice(Ai,0,Di),_l.splice(Ai,0,0),kl.splice(Ai,0,0)}Xo("addSeries",Ai)}function im(Si,Ai){Ai=Ai??vi.length,Si=Yn==1?ku(Si,Ai,Pf,Vf):ku(Si,Ai,{},Uf),vi.splice(Ai,0,Si),Zh(vi[Ai],Ai)}Mn.addSeries=im;function rm(Si){if(vi.splice(Si,1),Oi){zi.values.splice(Si,1),fr.splice(Si,1);let Ai=pr.splice(Si,1)[0];wa(null,Ai.firstChild),Ai.remove()}Vr.show&&(Ii.splice(Si,1),Is.splice(Si,1)[0].remove(),_l.splice(Si,1),kl.splice(Si,1)),Xo("delSeries",Si)}Mn.delSeries=rm;const ll=[!1,!1,!1,!1];function om(Si,Ai){if(Si._show=Si.show,Si.show){let Di=Si.side%2,Pi=si[Si.scale];Pi==null&&(Si.scale=Di?vi[1].scale:mi,Pi=si[Si.scale]);let ji=Pi.time;Si.size=lt$2(Si.size),Si.space=lt$2(Si.space),Si.rotate=lt$2(Si.rotate),ur(Si.incrs)&&Si.incrs.forEach(ir=>{!dr.has(ir)&&dr.set(ir,rg(ir))}),Si.incrs=lt$2(Si.incrs||(Pi.distr==2?Q_:ji?ti==1?J_:nS:Er)),Si.splits=lt$2(Si.splits||(ji&&Pi.distr==1?Ti:Pi.distr==3?bu:Pi.distr==4?bS:wS)),Si.stroke=lt$2(Si.stroke),Si.grid.stroke=lt$2(Si.grid.stroke),Si.ticks.stroke=lt$2(Si.ticks.stroke),Si.border.stroke=lt$2(Si.border.stroke);let Ki=Si.values;Si.values=ur(Ki)&&!ur(Ki[0])?lt$2(Ki):ji?ur(Ki)?Df(bi,Of(Ki,_i)):Lf(Ki)?oS(bi,Ki):Ki||Li:Ki||yS,Si.filter=lt$2(Si.filter||(Pi.distr>=3&&Pi.log==10?SS:Pi.distr==3&&Pi.log==2?kS:ng)),Si.font=Zf(Si.font),Si.labelFont=Zf(Si.labelFont),Si._size=Si.size(Mn,null,Ai,0),Si._space=Si._rotate=Si._incrs=Si._found=Si._splits=Si._values=null,Si._size>0&&(ll[Ai]=!0,Si._el=ni(l_,Bn))}}function Sl(Si,Ai,Di,Pi){let[ji,Ki,ir,mr]=Di,vr=Ai%2,wr=0;return vr==0&&(mr||Ki)&&(wr=Ai==0&&!ji||Ai==2&&!ir?sn$1(Wf.size/3):0),vr==1&&(ji||ir)&&(wr=Ai==1&&!Ki||Ai==3&&!mr?sn$1(zf.size/2):0),wr}const Qh=Mn.padding=(vn.padding||[Sl,Sl,Sl,Sl]).map(Si=>lt$2(ht$2(Si,Sl))),$a=Mn._padding=Qh.map((Si,Ai)=>Si(Mn,Ai,ll,0));let ls,is=null,rs=null;const oc=Yn==1?vi[0].idxs:null;let Os=null,Wl=!1;function Hl(Si,Ai){if(_n=Si??[],Mn.data=Mn._data=_n,Yn==2){ls=0;for(let Di=1;Di<vi.length;Di++)ls+=_n[Di][0].length}else{_n.length==0&&(Mn.data=Mn._data=_n=[[]]),Os=_n[0],ls=Os.length;let Di=_n;if(ai==2){Di=_n.slice();let Pi=Di[0]=Array(ls);for(let ji=0;ji<ls;ji++)Pi[ji]=ji}Mn._data=_n=Di}if(cl(!0),Xo("setData"),ai==2&&(Ho=!0),Ai!==!1){let Di=xi;Di.auto(Mn,Wl)?hh():oa(mi,Di.min,Di.max),Rs=Rs||Vr.left>=0,Us=!0,Al()}}Mn.setData=Hl;function hh(){Wl=!0;let Si,Ai;Yn==1&&(ls>0?(is=oc[0]=0,rs=oc[1]=ls-1,Si=_n[0][is],Ai=_n[0][rs],ai==2?(Si=is,Ai=rs):Si==Ai&&(ai==3?[Si,Ai]=Qa(Si,Si,xi.log,!1):ai==4?[Si,Ai]=Ou(Si,Si,xi.log,!1):xi.time?Ai=Si+sn$1(86400/ti):[Si,Ai]=za(Si,Ai,Du,!0))):(is=oc[0]=Si=null,rs=oc[1]=Ai=null)),oa(mi,Si,Ai)}let sc,Cl,ac,lc,cc,dh,ph,gh,fh,ra;function mh(Si,Ai,Di,Pi,ji,Ki){Si??(Si=df),Di??(Di=Fu),Pi??(Pi="butt"),ji??(ji=df),Ki??(Ki="round"),Si!=sc&&(Pn.strokeStyle=sc=Si),ji!=Cl&&(Pn.fillStyle=Cl=ji),Ai!=ac&&(Pn.lineWidth=ac=Ai),Ki!=cc&&(Pn.lineJoin=cc=Ki),Pi!=dh&&(Pn.lineCap=dh=Pi),Di!=lc&&Pn.setLineDash(lc=Di)}function vh(Si,Ai,Di,Pi){Ai!=Cl&&(Pn.fillStyle=Cl=Ai),Si!=ph&&(Pn.font=ph=Si),Di!=gh&&(Pn.textAlign=gh=Di),Pi!=fh&&(Pn.textBaseline=fh=Pi)}function jl(Si,Ai,Di,Pi,ji=0){if(Pi.length>0&&Si.auto(Mn,Wl)&&(Ai==null||Ai.min==null)){let Ki=ht$2(is,0),ir=ht$2(rs,Pi.length-1),mr=Di.min==null?Si.distr==3?k_(Pi,Ki,ir):S_(Pi,Ki,ir,ji):[Di.min,Di.max];Si.min=ri(Si.min,Di.min=mr[0]),Si.max=xn$1(Si.max,Di.max=mr[1])}}const Xh={min:null,max:null};function Jh(){for(let Pi in si){let ji=si[Pi];wi[Pi]==null&&(ji.min==null||wi[mi]!=null&&ji.auto(Mn,Wl))&&(wi[Pi]=Xh)}for(let Pi in si){let ji=si[Pi];wi[Pi]==null&&ji.from!=null&&wi[ji.from]!=null&&(wi[Pi]=Xh)}wi[mi]!=null&&cl(!0);let Si={};for(let Pi in wi){let ji=wi[Pi];if(ji!=null){let Ki=Si[Pi]=mo(si[Pi],E_);if(ji.min!=null)Zt$1(Ki,ji);else if(Pi!=mi||Yn==2)if(ls==0&&Ki.from==null){let ir=Ki.range(Mn,null,null,Pi);Ki.min=ir[0],Ki.max=ir[1]}else Ki.min=ct$2,Ki.max=-ct$2}}if(ls>0){vi.forEach((Pi,ji)=>{if(Yn==1){let Ki=Pi.scale,ir=wi[Ki];if(ir==null)return;let mr=Si[Ki];if(ji==0){let vr=mr.range(Mn,mr.min,mr.max,Ki);mr.min=vr[0],mr.max=vr[1],is=hi(mr.min,_n[0]),rs=hi(mr.max,_n[0]),rs-is>1&&(_n[0][is]<mr.min&&is++,_n[0][rs]>mr.max&&rs--),Pi.min=Os[is],Pi.max=Os[rs]}else Pi.show&&Pi.auto&&jl(mr,ir,Pi,_n[ji],Pi.sorted);Pi.idxs[0]=is,Pi.idxs[1]=rs}else if(ji>0&&Pi.show&&Pi.auto){let[Ki,ir]=Pi.facets,mr=Ki.scale,vr=ir.scale,[wr,$r]=_n[ji],kr=Si[mr],Zr=Si[vr];kr!=null&&jl(kr,wi[mr],Ki,wr,Ki.sorted),Zr!=null&&jl(Zr,wi[vr],ir,$r,ir.sorted),Pi.min=ir.min,Pi.max=ir.max}});for(let Pi in Si){let ji=Si[Pi],Ki=wi[Pi];if(ji.from==null&&(Ki==null||Ki.min==null)){let ir=ji.range(Mn,ji.min==ct$2?null:ji.min,ji.max==-ct$2?null:ji.max,Pi);ji.min=ir[0],ji.max=ir[1]}}}for(let Pi in Si){let ji=Si[Pi];if(ji.from!=null){let Ki=Si[ji.from];if(Ki.min==null)ji.min=ji.max=null;else{let ir=ji.range(Mn,Ki.min,Ki.max,Pi);ji.min=ir[0],ji.max=ir[1]}}}let Ai={},Di=!1;for(let Pi in Si){let ji=Si[Pi],Ki=si[Pi];if(Ki.min!=ji.min||Ki.max!=ji.max){Ki.min=ji.min,Ki.max=ji.max;let ir=Ki.distr;Ki._min=ir==3?Hi(Ki.min):ir==4?Cc(Ki.min,Ki.asinh):ir==100?Ki.fwd(Ki.min):Ki.min,Ki._max=ir==3?Hi(Ki.max):ir==4?Cc(Ki.max,Ki.asinh):ir==100?Ki.fwd(Ki.max):Ki.max,Ai[Pi]=Di=!0}}if(Di){vi.forEach((Pi,ji)=>{Yn==2?ji>0&&Ai.y&&(Pi._paths=null):Ai[Pi.scale]&&(Pi._paths=null)});for(let Pi in Ai)Ho=!0,Xo("setScale",Pi);Vr.show&&Vr.left>=0&&(Rs=Us=!0)}for(let Pi in wi)wi[Pi]=null}function Gu(Si){let Ai=wu(is-1,0,ls-1),Di=wu(rs+1,0,ls-1);for(;Si[Ai]==null&&Ai>0;)Ai--;for(;Si[Di]==null&&Di<ls-1;)Di++;return[Ai,Di]}function ed(){ls>0&&(vi.forEach((Si,Ai)=>{if(Ai>0&&Si.show&&(td(Ai,!1),td(Ai,!0),Si._paths==null)){ra!=Si.alpha&&(Pn.globalAlpha=ra=Si.alpha);let Di=Yn==2?[0,_n[Ai][0].length-1]:Gu(_n[Ai]);Si._paths=Si.paths(Mn,Ai,Di[0],Di[1]),ra!=1&&(Pn.globalAlpha=ra=1)}}),vi.forEach((Si,Ai)=>{if(Ai>0&&Si.show){ra!=Si.alpha&&(Pn.globalAlpha=ra=Si.alpha),Si._paths!=null&&wh(Ai,!1);{let Di=Si._paths!=null?Si._paths.gaps:null,Pi=Si.points.show(Mn,Ai,is,rs,Di),ji=Si.points.filter(Mn,Ai,Pi,Di);(Pi||ji)&&(Si.points._paths=Si.points.paths(Mn,Ai,is,rs,ji),wh(Ai,!0))}ra!=1&&(Pn.globalAlpha=ra=1),Xo("drawSeries",Ai)}}))}function td(Si,Ai){let Di=Ai?vi[Si].points:vi[Si];Di._stroke=Di.stroke(Mn,Si),Di._fill=Di.fill(Mn,Si)}function wh(Si,Ai){let Di=Ai?vi[Si].points:vi[Si],{stroke:Pi,fill:ji,clip:Ki,flags:ir,_stroke:mr=Di._stroke,_fill:vr=Di._fill,_width:wr=Di.width}=Di._paths;wr=Ct$1(wr*dt$2,3);let $r=null,kr=wr%2/2;Ai&&vr==null&&(vr=wr>0?"#fff":mr);let Zr=Di.pxAlign==1&&kr>0;if(Zr&&Pn.translate(kr,kr),!Ai){let Ro=Kr-wr/2,no=ko-wr/2,qr=So+wr,Xr=so+wr;$r=new Path2D,$r.rect(Ro,no,qr,Xr)}Ai?yh(mr,wr,Di.dash,Di.cap,vr,Pi,ji,ir,Ki):nd(Si,mr,wr,Di.dash,Di.cap,vr,Pi,ji,ir,$r,Ki),Zr&&Pn.translate(-kr,-kr)}function nd(Si,Ai,Di,Pi,ji,Ki,ir,mr,vr,wr,$r){let kr=!1;vr!=0&&ei.forEach((Zr,Ro)=>{if(Zr.series[0]==Si){let no=vi[Zr.series[1]],qr=_n[Zr.series[1]],Xr=(no._paths||bs).band;ur(Xr)&&(Xr=Zr.dir==1?Xr[0]:Xr[1]);let Cr,Eo=null;no.show&&Xr&&A_(qr,is,rs)?(Eo=Zr.fill(Mn,Ro)||Ki,Cr=no._paths.clip):Xr=null,yh(Ai,Di,Pi,ji,Eo,ir,mr,vr,wr,$r,Cr,Xr),kr=!0}}),kr||yh(Ai,Di,Pi,ji,Ki,ir,mr,vr,wr,$r)}const Yu=vo|_u;function yh(Si,Ai,Di,Pi,ji,Ki,ir,mr,vr,wr,$r,kr){mh(Si,Ai,Di,Pi,ji),(vr||wr||kr)&&(Pn.save(),vr&&Pn.clip(vr),wr&&Pn.clip(wr)),kr?(mr&Yu)==Yu?(Pn.clip(kr),$r&&Pn.clip($r),Tl(ji,ir),Ul(Si,Ki,Ai)):mr&_u?(Tl(ji,ir),Pn.clip(kr),Ul(Si,Ki,Ai)):mr&vo&&(Pn.save(),Pn.clip(kr),$r&&Pn.clip($r),Tl(ji,ir),Pn.restore(),Ul(Si,Ki,Ai)):(Tl(ji,ir),Ul(Si,Ki,Ai)),(vr||wr||kr)&&Pn.restore()}function Ul(Si,Ai,Di){Di>0&&(Ai instanceof Map?Ai.forEach((Pi,ji)=>{Pn.strokeStyle=sc=ji,Pn.stroke(Pi)}):Ai!=null&&Si&&Pn.stroke(Ai))}function Tl(Si,Ai){Ai instanceof Map?Ai.forEach((Di,Pi)=>{Pn.fillStyle=Cl=Pi,Pn.fill(Di)}):Ai!=null&&Si&&Pn.fill(Ai)}function bh(Si,Ai,Di,Pi){let ji=pi[Si],Ki;if(Pi<=0)Ki=[0,0];else{let ir=ji._space=ji.space(Mn,Si,Ai,Di,Pi),mr=ji._incrs=ji.incrs(Mn,Si,Ai,Di,Pi,ir);Ki=GS(Ai,Di,mr,Pi,ir)}return ji._found=Ki}function xa(Si,Ai,Di,Pi,ji,Ki,ir,mr,vr,wr){let $r=ir%2/2;Qn==1&&Pn.translate($r,$r),mh(mr,ir,vr,wr,mr),Pn.beginPath();let kr,Zr,Ro,no,qr=ji+(Pi==0||Pi==3?-Ki:Ki);Di==0?(Zr=ji,no=qr):(kr=ji,Ro=qr);for(let Xr=0;Xr<Si.length;Xr++)Ai[Xr]!=null&&(Di==0?kr=Ro=Si[Xr]:Zr=no=Si[Xr],Pn.moveTo(kr,Zr),Pn.lineTo(Ro,no));Pn.stroke(),Qn==1&&Pn.translate(-$r,-$r)}function id(Si){let Ai=!0;return pi.forEach((Di,Pi)=>{if(!Di.show)return;let ji=si[Di.scale];if(ji.min==null){Di._show&&(Ai=!1,Di._show=!1,cl(!1));return}else Di._show||(Ai=!1,Di._show=!0,cl(!1));let Ki=Di.side,ir=Ki%2,{min:mr,max:vr}=ji,[wr,$r]=bh(Pi,mr,vr,ir==0?Ar:zr);if($r==0)return;let kr=ji.distr==2,Zr=Di._splits=Di.splits(Mn,Pi,mr,vr,wr,$r,kr),Ro=ji.distr==2?Zr.map(Cr=>Os[Cr]):Zr,no=ji.distr==2?Os[Zr[1]]-Os[Zr[0]]:wr,qr=Di._values=Di.values(Mn,Di.filter(Mn,Ro,Pi,$r,no),Pi,$r,no);Di._rotate=Ki==2?Di.rotate(Mn,qr,Pi,$r):0;let Xr=Di._size;Di._size=ii(Di.size(Mn,qr,Pi,Si)),Xr!=null&&Di._size!=Xr&&(Ai=!1)}),Ai}function rd(Si){let Ai=!0;return Qh.forEach((Di,Pi)=>{let ji=Di(Mn,Pi,ll,Si);ji!=$a[Pi]&&(Ai=!1),$a[Pi]=ji}),Ai}function sm(){for(let Si=0;Si<pi.length;Si++){let Ai=pi[Si];if(!Ai.show||!Ai._show)continue;let Di=Ai.side,Pi=Di%2,ji,Ki,ir=Ai.stroke(Mn,Si),mr=Di==0||Di==3?-1:1;if(Ai.label){let Cs=Ai.labelGap*mr,zs=sn$1((Ai._lpos+Cs)*dt$2);vh(Ai.labelFont[0],ir,"center",Di==2?ds:hf),Pn.save(),Pi==1?(ji=Ki=0,Pn.translate(zs,sn$1(ko+so/2)),Pn.rotate((Di==3?-Fa:Fa)/2)):(ji=sn$1(Kr+So/2),Ki=zs),Pn.fillText(Ai.label,ji,Ki),Pn.restore()}let[vr,wr]=Ai._found;if(wr==0)continue;let $r=si[Ai.scale],kr=Pi==0?So:so,Zr=Pi==0?Kr:ko,Ro=sn$1(Ai.gap*dt$2),no=Ai._splits,qr=$r.distr==2?no.map(Cs=>Os[Cs]):no,Xr=$r.distr==2?Os[no[1]]-Os[no[0]]:vr,Cr=Ai.ticks,Eo=Ai.border,qo=Cr.show?sn$1(Cr.size*dt$2):0,Uo=Ai._rotate*-Fa/180,Vo=Jn(Ai._pos*dt$2),Bo=(qo+Ro)*mr,Gi=Vo+Bo;Ki=Pi==0?Gi:0,ji=Pi==1?Gi:0;let Xi=Ai.font[0],Zi=Ai.align==1?co:Ai.align==2?Sc:Uo>0?co:Uo<0?Sc:Pi==0?"center":Di==3?Sc:co,br=Uo||Pi==1?"middle":Di==2?ds:hf;vh(Xi,ir,Zi,br);let Mr=Ai.font[1]*Ai.lineGap,Qr=no.map(Cs=>Jn(Hn(Cs,$r,kr,Zr))),Lo=Ai._values;for(let Cs=0;Cs<Lo.length;Cs++){let zs=Lo[Cs];if(zs!=null){Pi==0?ji=Qr[Cs]:Ki=Qr[Cs],zs=""+zs;let Ts=zs.indexOf(`
1408
+ `)==-1?[zs]:zs.split(/\n/gm);for(let Js=0;Js<Ts.length;Js++){let qs=Ts[Js];Uo?(Pn.save(),Pn.translate(ji,Ki+Js*Mr),Pn.rotate(Uo),Pn.fillText(qs,0,0),Pn.restore()):Pn.fillText(qs,ji,Ki+Js*Mr)}}}Cr.show&&xa(Qr,Cr.filter(Mn,qr,Si,wr,Xr),Pi,Di,Vo,qo,Ct$1(Cr.width*dt$2,3),Cr.stroke(Mn,Si),Cr.dash,Cr.cap);let Jr=Ai.grid;Jr.show&&xa(Qr,Jr.filter(Mn,qr,Si,wr,Xr),Pi,Pi==0?2:1,Pi==0?ko:Kr,Pi==0?so:So,Ct$1(Jr.width*dt$2,3),Jr.stroke(Mn,Si),Jr.dash,Jr.cap),Eo.show&&xa([Vo],[1],Pi==0?1:0,Pi==0?1:2,Pi==1?ko:Kr,Pi==1?so:So,Ct$1(Eo.width*dt$2,3),Eo.stroke(Mn,Si),Eo.dash,Eo.cap)}Xo("drawAxes")}function cl(Si){vi.forEach((Ai,Di)=>{Di>0&&(Ai._paths=null,Si&&(Yn==1?(Ai.min=null,Ai.max=null):Ai.facets.forEach(Pi=>{Pi.min=null,Pi.max=null})))})}let Gl=!1,qu=!1,Ml=[];function am(){qu=!1;for(let Si=0;Si<Ml.length;Si++)Xo(...Ml[Si]);Ml.length=0}function Al(){Gl||(P_($h),Gl=!0)}function lm(Si,Ai=!1){Gl=!0,qu=Ai,Si(Mn),$h(),Ai&&Ml.length>0&&queueMicrotask(am)}Mn.batch=lm;function $h(){if(ao&&(Jh(),ao=!1),Ho&&(Jg(),Ho=!1),to){if(Lt$2(Nn,co,Qo),Lt$2(Nn,ds,jr),Lt$2(Nn,ms,Ar),Lt$2(Nn,vs,zr),Lt$2(zn,co,Qo),Lt$2(zn,ds,jr),Lt$2(zn,ms,Ar),Lt$2(zn,vs,zr),Lt$2(Bn,ms,as),Lt$2(Bn,vs,Zo),Dn.width=sn$1(as*dt$2),Dn.height=sn$1(Zo*dt$2),pi.forEach(({_el:Si,_show:Ai,_size:Di,_pos:Pi,side:ji})=>{if(Si!=null)if(Ai){let Ki=ji===3||ji===0?Di:0,ir=ji%2==1;Lt$2(Si,ir?"left":"top",Pi-Ki),Lt$2(Si,ir?"width":"height",Di),Lt$2(Si,ir?"top":"left",ir?jr:Qo),Lt$2(Si,ir?"height":"width",ir?zr:Ar),vu(Si,Ir)}else Un(Si,Ir)}),sc=Cl=ac=cc=dh=ph=gh=fh=lc=null,ra=1,ql(!0),Qo!=Ji||jr!=_r||Ar!=Sr||zr!=Yr){cl(!1);let Si=Ar/Sr,Ai=zr/Yr;if(Vr.show&&!Rs&&Vr.left>=0){Vr.left*=Si,Vr.top*=Ai,El&&Ci(El,sn$1(Vr.left),0,Ar,zr),_a&&Ci(_a,0,sn$1(Vr.top),Ar,zr);for(let Di=0;Di<Is.length;Di++){let Pi=Is[Di];Pi!=null&&(_l[Di]*=Si,kl[Di]*=Ai,Ci(Pi,ii(_l[Di]),ii(kl[Di]),Ar,zr))}}if(Po.show&&!sl&&Po.left>=0&&Po.width>0){Po.left*=Si,Po.width*=Si,Po.top*=Ai,Po.height*=Ai;for(let Di in Th)Lt$2(ul,Di,Po[Di])}Ji=Qo,_r=jr,Sr=Ar,Yr=zr}Xo("setSize"),to=!1}as>0&&Zo>0&&(Pn.clearRect(0,0,Dn.width,Dn.height),Xo("drawClear"),yi.forEach(Si=>Si()),Xo("draw")),Po.show&&sl&&(Ku(Po),sl=!1),Vr.show&&Rs&&(Ds(null,!0,!1),Rs=!1),zi.show&&zi.live&&Us&&(Yl(),Us=!1),qn||(qn=!0,Mn.status=1,Xo("ready")),Wl=!1,Gl=!1}Mn.redraw=(Si,Ai)=>{Ho=Ai||!1,Si!==!1?oa(mi,xi.min,xi.max):Al()};function xh(Si,Ai){let Di=si[Si];if(Di.from==null){if(ls==0){let Pi=Di.range(Mn,Ai.min,Ai.max,Si);Ai.min=Pi[0],Ai.max=Pi[1]}if(Ai.min>Ai.max){let Pi=Ai.min;Ai.min=Ai.max,Ai.max=Pi}if(ls>1&&Ai.min!=null&&Ai.max!=null&&Ai.max-Ai.min<1e-16)return;Si==mi&&Di.distr==2&&ls>0&&(Ai.min=hi(Ai.min,_n[0]),Ai.max=hi(Ai.max,_n[0]),Ai.min==Ai.max&&Ai.max++),wi[Si]=Ai,ao=!0,Al()}}Mn.setScale=xh;let _h,kh,El,_a,od,sd,Ll,Nl,ad,Oo,Br,zo,ka=!1;const cs=Vr.drag;let os=cs.x,ss=cs.y;Vr.show&&(Vr.x&&(_h=ni(u_,zn)),Vr.y&&(kh=ni(h_,zn)),xi.ori==0?(El=_h,_a=kh):(El=kh,_a=_h),Br=Vr.left,zo=Vr.top);const Po=Mn.select=Zt$1({show:!0,over:!0,left:0,width:0,top:0,height:0},vn.select),ul=Po.show?ni(c_,Po.over?zn:Nn):null;function Ku(Si,Ai){if(Po.show){for(let Di in Si)Po[Di]=Si[Di],Di in Th&&Lt$2(ul,Di,Si[Di]);Ai!==!1&&Xo("setSelect")}}Mn.setSelect=Ku;function $s(Si,Ai){let Di=vi[Si],Pi=Oi?pr[Si]:null;if(Di.show)Pi&&vu(Pi,Ir);else{Pi&&Un(Pi,Ir);let ji=xl?Is[0]:Is[Si];Ci(ji,-10,-10,Ar,zr)}}function oa(Si,Ai,Di){xh(Si,{min:Ai,max:Di})}function Es(Si,Ai,Di,Pi){Ai.focus!=null&&ud(Si),Ai.show!=null&&vi.forEach((ji,Ki)=>{Ki>0&&(Si==Ki||Si==null)&&(ji.show=Ai.show,$s(Ki,Ai.show),Yn==2?(oa(ji.facets[0].scale,null,null),oa(ji.facets[1].scale,null,null)):oa(ji.scale,null,null),Al())}),Di!==!1&&Xo("setSeries",Si,Ai),Pi&&ga("setSeries",Mn,Si,Ai)}Mn.setSeries=Es;function ld(Si,Ai){Zt$1(ei[Si],Ai)}function Sh(Si,Ai){Si.fill=lt$2(Si.fill||null),Si.dir=ht$2(Si.dir,-1),Ai=Ai??ei.length,ei.splice(Ai,0,Si)}function Gs(Si){Si==null?ei.length=0:ei.splice(Si,1)}Mn.addBand=Sh,Mn.setBand=ld,Mn.delBand=Gs;function cd(Si,Ai){vi[Si].alpha=Ai,Vr.show&&Is[Si]&&(Is[Si].style.opacity=Ai),Oi&&pr[Si]&&(pr[Si].style.opacity=Ai)}let sa,pa,Sa;const hl={focus:!0};function ud(Si){if(Si!=Sa){let Ai=Si==null,Di=ya.alpha!=1;vi.forEach((Pi,ji)=>{if(Yn==1||ji>0){let Ki=Ai||ji==0||ji==Si;Pi._focus=Ai?null:Ki,Di&&cd(ji,Ki?1:ya.alpha)}}),Sa=Si,Di&&Al()}}Oi&&ba&&Go(mf,Yi,Si=>{Vr._lock||(al(Si),Sa!=null&&Es(null,hl,!0,Yo.setSeries))});function jo(Si,Ai,Di){let Pi=si[Ai];Di&&(Si=Si/dt$2-(Pi.ori==1?jr:Qo));let ji=Ar;Pi.ori==1&&(ji=zr,Si=ji-Si),Pi.dir==-1&&(Si=ji-Si);let Ki=Pi._min,ir=Pi._max,mr=Si/ji,vr=Ki+(ir-Ki)*mr,wr=Pi.distr;return wr==3?po(10,vr):wr==4?T_(vr,Pi.asinh):wr==100?Pi.bwd(vr):vr}function cm(Si,Ai){let Di=jo(Si,mi,Ai);return hi(Di,_n[0],is,rs)}Mn.valToIdx=Si=>hi(Si,_n[0]),Mn.posToIdx=cm,Mn.posToVal=jo,Mn.valToPos=(Si,Ai,Di)=>si[Ai].ori==0?Kn(Si,si[Ai],Di?So:Ar,Di?Kr:0):Xn(Si,si[Ai],Di?so:zr,Di?ko:0),Mn.setCursor=(Si,Ai,Di)=>{Br=Si.left,zo=Si.top,Ds(null,Ai,Di)};function Fs(Si,Ai){Lt$2(ul,co,Po.left=Si),Lt$2(ul,ms,Po.width=Ai)}function hd(Si,Ai){Lt$2(ul,ds,Po.top=Si),Lt$2(ul,vs,Po.height=Ai)}let Rl=xi.ori==0?Fs:hd,Ys=xi.ori==1?Fs:hd;function Zu(){if(Oi&&zi.live)for(let Si=Yn==2?1:0;Si<vi.length;Si++){if(Si==0&&yr)continue;let Ai=zi.values[Si],Di=0;for(let Pi in Ai)fr[Si][Di++].firstChild.nodeValue=Ai[Pi]}}function Yl(Si,Ai){if(Si!=null&&(Si.idxs?Si.idxs.forEach((Di,Pi)=>{Ii[Pi]=Di}):R_(Si.idx)||Ii.fill(Si.idx),zi.idx=Ii[0]),Oi&&zi.live){for(let Di=0;Di<vi.length;Di++)(Di>0||Yn==1&&!yr)&&Wo(Di,Ii[Di]);Zu()}Us=!1,Ai!==!1&&Xo("setLegend")}Mn.setLegend=Yl;function Wo(Si,Ai){let Di=vi[Si],Pi=Si==0&&ai==2?Os:_n[Si],ji;yr?ji=Di.values(Mn,Si,Ai)??ro:(ji=Di.value(Mn,Ai==null?null:Pi[Ai],Si,Ai),ji=ji==null?ro:{_:ji}),zi.values[Si]=ji}function Ds(Si,Ai,Di){ad=Br,Oo=zo,[Br,zo]=Vr.move(Mn,Br,zo),Vr.left=Br,Vr.top=zo,Vr.show&&(El&&Ci(El,sn$1(Br),0,Ar,zr),_a&&Ci(_a,0,sn$1(zo),Ar,zr));let Pi,ji=is>rs;sa=ct$2,pa=null;let Ki=xi.ori==0?Ar:zr,ir=xi.ori==1?Ar:zr;if(Br<0||ls==0||ji){Pi=Vr.idx=null;for(let mr=0;mr<vi.length;mr++){let vr=Is[mr];vr!=null&&Ci(vr,-10,-10,Ar,zr)}ba&&Es(null,hl,!0,Si==null&&Yo.setSeries),zi.live&&(Ii.fill(Pi),Us=!0)}else{let mr,vr,wr;Yn==1&&(mr=xi.ori==0?Br:zo,vr=jo(mr,mi),Pi=Vr.idx=hi(vr,_n[0],is,rs),wr=oi(_n[0][Pi],xi,Ki,0));let $r=-10,kr=-10,Zr=0,Ro=0,no=!0,qr="",Xr="";for(let Cr=Yn==2?1:0;Cr<vi.length;Cr++){let Eo=vi[Cr],qo=Ii[Cr],Uo=qo==null?null:Yn==1?_n[Cr][qo]:_n[Cr][1][qo],Vo=Vr.dataIdx(Mn,Cr,Pi,vr),Bo=Vo==null?null:Yn==1?_n[Cr][Vo]:_n[Cr][1][Vo];Us=Us||Bo!=Uo||Vo!=qo,Ii[Cr]=Vo;let Gi=Vo==Pi?wr:oi(Yn==1?_n[0][Vo]:_n[Cr][0][Vo],xi,Ki,0);if(Cr>0&&Eo.show){let Xi=Bo==null?-10:li(Bo,Yn==1?si[Eo.scale]:si[Eo.facets[1].scale],ir,0);if(ba&&Bo!=null){let Zi=xi.ori==1?Br:zo,br=an$1(ya.dist(Mn,Cr,Vo,Xi,Zi));if(br<sa){let Mr=ya.bias;if(Mr!=0){let Qr=jo(Zi,Eo.scale),Lo=Bo>=0?1:-1,Jr=Qr>=0?1:-1;Jr==Lo&&(Jr==1?Mr==1?Bo>=Qr:Bo<=Qr:Mr==1?Bo<=Qr:Bo>=Qr)&&(sa=br,pa=Cr)}else sa=br,pa=Cr}}if(Us||xl){let Zi,br;xi.ori==0?(Zi=Gi,br=Xi):(Zi=Xi,br=Gi);let Mr,Qr,Lo,Jr,Cs,zs,Ts=!0,Js=As.bbox;if(Js!=null){Ts=!1;let qs=Js(Mn,Cr);Lo=qs.left,Jr=qs.top,Mr=qs.width,Qr=qs.height}else Lo=Zi,Jr=br,Mr=Qr=As.size(Mn,Cr);if(zs=As.fill(Mn,Cr),Cs=As.stroke(Mn,Cr),xl)Cr==pa&&sa<=ya.prox&&($r=Lo,kr=Jr,Zr=Mr,Ro=Qr,no=Ts,qr=zs,Xr=Cs);else{let qs=Is[Cr];qs!=null&&(_l[Cr]=Lo,kl[Cr]=Jr,Sf(qs,Mr,Qr,Ts),xf(qs,zs,Cs),Ci(qs,ii(Lo),ii(Jr),Ar,zr))}}}}if(xl){let Cr=ya.prox,Eo=Sa==null?sa<=Cr:sa>Cr||pa!=Sa;if(Us||Eo){let qo=Is[0];_l[0]=$r,kl[0]=kr,Sf(qo,Zr,Ro,no),xf(qo,qr,Xr),Ci(qo,ii($r),ii(kr),Ar,zr)}}}if(Po.show&&ka)if(Si!=null){let[mr,vr]=Yo.scales,[wr,$r]=Yo.match,[kr,Zr]=Si.cursor.sync.scales,Ro=Si.cursor.drag;if(os=Ro._x,ss=Ro._y,os||ss){let{left:no,top:qr,width:Xr,height:Cr}=Si.select,Eo=Si.scales[kr].ori,qo=Si.posToVal,Uo,Vo,Bo,Gi,Xi,Zi=mr!=null&&wr(mr,kr),br=vr!=null&&$r(vr,Zr);Zi&&os?(Eo==0?(Uo=no,Vo=Xr):(Uo=qr,Vo=Cr),Bo=si[mr],Gi=oi(qo(Uo,kr),Bo,Ki,0),Xi=oi(qo(Uo+Vo,kr),Bo,Ki,0),Rl(ri(Gi,Xi),an$1(Xi-Gi))):Rl(0,Ki),br&&ss?(Eo==1?(Uo=no,Vo=Xr):(Uo=qr,Vo=Cr),Bo=si[vr],Gi=li(qo(Uo,Zr),Bo,ir,0),Xi=li(qo(Uo+Vo,Zr),Bo,ir,0),Ys(ri(Gi,Xi),an$1(Xi-Gi))):Ys(0,ir)}else Xu()}else{let mr=an$1(ad-od),vr=an$1(Oo-sd);if(xi.ori==1){let Zr=mr;mr=vr,vr=Zr}os=cs.x&&mr>=cs.dist,ss=cs.y&&vr>=cs.dist;let wr=cs.uni;wr!=null?os&&ss&&(os=mr>=wr,ss=vr>=wr,!os&&!ss&&(vr>mr?ss=!0:os=!0)):cs.x&&cs.y&&(os||ss)&&(os=ss=!0);let $r,kr;os&&(xi.ori==0?($r=Ll,kr=Br):($r=Nl,kr=zo),Rl(ri($r,kr),an$1(kr-$r)),ss||Ys(0,ir)),ss&&(xi.ori==1?($r=Ll,kr=Br):($r=Nl,kr=zo),Ys(ri($r,kr),an$1(kr-$r)),os||Rl(0,Ki)),!os&&!ss&&(Rl(0,0),Ys(0,0))}if(cs._x=os,cs._y=ss,Si==null){if(Di){if(Ps!=null){let[mr,vr]=Yo.scales;Yo.values[0]=mr!=null?jo(xi.ori==0?Br:zo,mr):null,Yo.values[1]=vr!=null?jo(xi.ori==1?Br:zo,vr):null}ga(ff,Mn,Br,zo,Ar,zr,Pi)}if(ba){let mr=Di&&Yo.setSeries,vr=ya.prox;Sa==null?sa<=vr&&Es(pa,hl,!0,mr):sa>vr?Es(null,hl,!0,mr):pa!=Sa&&Es(pa,hl,!0,mr)}}Us&&(zi.idx=Pi,Yl()),Ai!==!1&&Xo("setCursor")}let aa=null;Object.defineProperty(Mn,"rect",{get(){return aa==null&&ql(!1),aa}});function ql(Si=!1){Si?aa=null:(aa=zn.getBoundingClientRect(),Xo("syncRect",aa))}function Qu(Si,Ai,Di,Pi,ji,Ki,ir){Vr._lock||ka&&Si!=null&&Si.movementX==0&&Si.movementY==0||(Ch(Si,Ai,Di,Pi,ji,Ki,ir,!1,Si!=null),Si!=null?Ds(null,!0,!0):Ds(Ai,!0,!1))}function Ch(Si,Ai,Di,Pi,ji,Ki,ir,mr,vr){if(aa==null&&ql(!1),al(Si),Si!=null)Di=Si.clientX-aa.left,Pi=Si.clientY-aa.top;else{if(Di<0||Pi<0){Br=-10,zo=-10;return}let[wr,$r]=Yo.scales,kr=Ai.cursor.sync,[Zr,Ro]=kr.values,[no,qr]=kr.scales,[Xr,Cr]=Yo.match,Eo=Ai.axes[0].side%2==1,qo=xi.ori==0?Ar:zr,Uo=xi.ori==1?Ar:zr,Vo=Eo?Ki:ji,Bo=Eo?ji:Ki,Gi=Eo?Pi:Di,Xi=Eo?Di:Pi;if(no!=null?Di=Xr(wr,no)?Hn(Zr,si[wr],qo,0):-10:Di=qo*(Gi/Vo),qr!=null?Pi=Cr($r,qr)?Hn(Ro,si[$r],Uo,0):-10:Pi=Uo*(Xi/Bo),xi.ori==1){let Zi=Di;Di=Pi,Pi=Zi}}vr&&((Di<=1||Di>=Ar-1)&&(Di=Rr(Di,Ar)),(Pi<=1||Pi>=zr-1)&&(Pi=Rr(Pi,zr))),mr?(od=Di,sd=Pi,[Ll,Nl]=Vr.move(Mn,Di,Pi)):(Br=Di,zo=Pi)}const Th={width:0,height:0,left:0,top:0};function Xu(){Ku(Th,!1)}let Mh,Kl,dl,dd;function Ah(Si,Ai,Di,Pi,ji,Ki,ir){ka=!0,os=ss=cs._x=cs._y=!1,Ch(Si,Ai,Di,Pi,ji,Ki,ir,!0,!1),Si!=null&&(Go(kc,gu,Eh,!1),ga(pf,Mn,Ll,Nl,Ar,zr,null));let{left:mr,top:vr,width:wr,height:$r}=Po;Mh=mr,Kl=vr,dl=wr,dd=$r,Xu()}function Eh(Si,Ai,Di,Pi,ji,Ki,ir){ka=cs._x=cs._y=!1,Ch(Si,Ai,Di,Pi,ji,Ki,ir,!1,!0);let{left:mr,top:vr,width:wr,height:$r}=Po,kr=wr>0||$r>0,Zr=Mh!=mr||Kl!=vr||dl!=wr||dd!=$r;if(kr&&Zr&&Ku(Po),cs.setScale&&kr&&Zr){let Ro=mr,no=wr,qr=vr,Xr=$r;if(xi.ori==1&&(Ro=vr,no=$r,qr=mr,Xr=wr),os&&oa(mi,jo(Ro,mi),jo(Ro+no,mi)),ss)for(let Cr in si){let Eo=si[Cr];Cr!=mi&&Eo.from==null&&Eo.min!=ct$2&&oa(Cr,jo(qr+Xr,Cr),jo(qr,Cr))}Xu()}else Vr.lock&&(Vr._lock=!Vr._lock,Ds(null,!0,!1));Si!=null&&(wa(kc,gu),ga(kc,Mn,Br,zo,Ar,zr,null))}function Lh(Si,Ai,Di,Pi,ji,Ki,ir){if(Vr._lock)return;al(Si);let mr=ka;if(ka){let vr=!0,wr=!0,$r=10,kr,Zr;xi.ori==0?(kr=os,Zr=ss):(kr=ss,Zr=os),kr&&Zr&&(vr=Br<=$r||Br>=Ar-$r,wr=zo<=$r||zo>=zr-$r),kr&&vr&&(Br=Br<Ll?0:Ar),Zr&&wr&&(zo=zo<Nl?0:zr),Ds(null,!0,!0),ka=!1}Br=-10,zo=-10,Ds(null,!0,!0),mr&&(ka=mr)}function Ju(Si,Ai,Di,Pi,ji,Ki,ir){Vr._lock||(al(Si),hh(),Xu(),Si!=null&&ga(vf,Mn,Br,zo,Ar,zr,null))}function Nh(){pi.forEach(KS),ch(Mn.width,Mn.height,!0)}Nr(Ba,ho,Nh);const Il={};Il.mousedown=Ah,Il.mousemove=Qu,Il.mouseup=Eh,Il.dblclick=Ju,Il.setSeries=(Si,Ai,Di,Pi)=>{let ji=Yo.match[2];Di=ji(Mn,Ai,Di),Di!=-1&&Es(Di,Pi,!0,!1)},Vr.show&&(Go(pf,zn,Ah),Go(ff,zn,Qu),Go(gf,zn,Si=>{al(Si),ql(!1)}),Go(mf,zn,Lh),Go(vf,zn,Ju),Su.add(Mn),Mn.syncRect=ql);const Ol=Mn.hooks=vn.hooks||{};function Xo(Si,Ai,Di){qu?Ml.push([Si,Ai,Di]):Si in Ol&&Ol[Si].forEach(Pi=>{Pi.call(null,Mn,Ai,Di)})}(vn.plugins||[]).forEach(Si=>{for(let Ai in Si.hooks)Ol[Ai]=(Ol[Ai]||[]).concat(Si.hooks[Ai])});const pd=(Si,Ai,Di)=>Di,Yo=Zt$1({key:null,setSeries:!1,filters:{pub:Tf,sub:Tf},scales:[mi,vi[1]?vi[1].scale:null],match:[Mf,Mf,pd],values:[null,null]},Vr.sync);Yo.match.length==2&&Yo.match.push(pd),Vr.sync=Yo;const Ps=Yo.key,Zl=kg(Ps);function ga(Si,Ai,Di,Pi,ji,Ki,ir){Yo.filters.pub(Si,Ai,Di,Pi,ji,Ki,ir)&&Zl.pub(Si,Ai,Di,Pi,ji,Ki,ir)}Zl.sub(Mn);function gd(Si,Ai,Di,Pi,ji,Ki,ir){Yo.filters.sub(Si,Ai,Di,Pi,ji,Ki,ir)&&Il[Si](null,Ai,Di,Pi,ji,Ki,ir)}Mn.pub=gd;function fd(){Zl.unsub(Mn),Su.delete(Mn),Do.clear(),yu(Ba,ho,Nh),In.remove(),Yi==null||Yi.remove(),Xo("destroy")}Mn.destroy=fd;function Rh(){Xo("init",vn,_n),Hl(_n||vn.data,!1),wi[mi]?xh(mi,wi[mi]):hh(),sl=Po.show&&(Po.width>0||Po.height>0),Rs=Us=!0,ch(vn.width,vn.height)}return vi.forEach(Zh),pi.forEach(om),kn?kn instanceof HTMLElement?(kn.appendChild(In),Rh()):kn(Mn,Rh):Rh(),Mn}$n.assign=Zt$1,$n.fmtNum=Nu,$n.rangeNum=za,$n.rangeLog=Qa,$n.rangeAsinh=Ou,$n.orient=Pr,$n.pxRatio=dt$2,$n.join=W_,$n.fmtDate=Wu,$n.tzDate=Y_,$n.sync=kg;{$n.addGap=RS,$n.clipGaps=el;let vn=$n.paths={points:Lg};vn.linear=Eg,vn.stepped=OS,vn.bars=DS,vn.spline=FS}var Mc,Qf;function qS(){return Qf||(Qf=1,Mc=function(vn,_n,kn,Mn,Yn){var Wn,Kn;if(Mn===void 0)Mn=0;else if(Mn=Mn|0,Mn<0||Mn>=vn.length)throw new RangeError("invalid lower bound");if(Yn===void 0)Yn=vn.length-1;else if(Yn=Yn|0,Yn<Mn||Yn>=vn.length)throw new RangeError("invalid upper bound");for(;Mn<=Yn;)if(Wn=Mn+(Yn-Mn>>>1),Kn=+kn(vn[Wn],_n,Wn,vn),Kn<0)Mn=Wn+1;else if(Kn>0)Yn=Wn-1;else return Wn;return~Mn}),Mc}var YS=qS();const Pk=Ua(YS);var Lc,Xf;function ZS(){if(Xf)return Lc;Xf=1;function vn(_n,kn,Mn){var Yn=-1,Wn=_n.length;kn<0&&(kn=-kn>Wn?0:Wn+kn),Mn=Mn>Wn?Wn:Mn,Mn<0&&(Mn+=Wn),Wn=kn>Mn?0:Mn-kn>>>0,kn>>>=0;for(var Kn=Array(Wn);++Yn<Wn;)Kn[Yn]=_n[Yn+kn];return Kn}return Lc=vn,Lc}var Rc,Jf;function QS(){if(Jf)return Rc;Jf=1;var vn=ZS();function _n(kn,Mn,Yn){var Wn=kn.length;return Yn=Yn===void 0?Wn:Yn,!Mn&&Yn>=Wn?kn:vn(kn,Mn,Yn)}return Rc=_n,Rc}var Ec,ep;function Ng(){if(ep)return Ec;ep=1;var vn="\\ud800-\\udfff",_n="\\u0300-\\u036f",kn="\\ufe20-\\ufe2f",Mn="\\u20d0-\\u20ff",Yn=_n+kn+Mn,Wn="\\ufe0e\\ufe0f",Kn="\\u200d",Xn=RegExp("["+Kn+vn+Yn+Wn+"]");function Hn(qn){return Xn.test(qn)}return Ec=Hn,Ec}var Ic,tp;function XS(){if(tp)return Ic;tp=1;function vn(_n){return _n.split("")}return Ic=vn,Ic}var Oc,np;function JS(){if(np)return Oc;np=1;var vn="\\ud800-\\udfff",_n="\\u0300-\\u036f",kn="\\ufe20-\\ufe2f",Mn="\\u20d0-\\u20ff",Yn=_n+kn+Mn,Wn="\\ufe0e\\ufe0f",Kn="["+vn+"]",Xn="["+Yn+"]",Hn="\\ud83c[\\udffb-\\udfff]",qn="(?:"+Xn+"|"+Hn+")",In="[^"+vn+"]",Dn="(?:\\ud83c[\\udde6-\\uddff]){2}",Pn="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="\\u200d",Nn=qn+"?",zn="["+Wn+"]?",Qn="(?:"+Bn+"(?:"+[In,Dn,Pn].join("|")+")"+zn+Nn+")*",Jn=zn+Nn+Qn,ti="(?:"+[In+Xn+"?",Xn,Dn,Pn,Kn].join("|")+")",vi=RegExp(Hn+"(?="+Hn+")|"+ti+Jn,"g");function pi(si){return si.match(vi)||[]}return Oc=pi,Oc}var Dc,ip;function ek(){if(ip)return Dc;ip=1;var vn=XS(),_n=Ng(),kn=JS();function Mn(Yn){return _n(Yn)?kn(Yn):vn(Yn)}return Dc=Mn,Dc}var Nc,rp;function tk(){if(rp)return Nc;rp=1;var vn=typeof hr=="object"&&hr&&hr.Object===Object&&hr;return Nc=vn,Nc}var Fc,op;function nk(){if(op)return Fc;op=1;var vn=tk(),_n=typeof self=="object"&&self&&self.Object===Object&&self,kn=vn||_n||Function("return this")();return Fc=kn,Fc}var Wc,sp;function ju(){if(sp)return Wc;sp=1;var vn=nk(),_n=vn.Symbol;return Wc=_n,Wc}var Pc,ap;function ik(){if(ap)return Pc;ap=1;function vn(_n,kn){for(var Mn=-1,Yn=_n==null?0:_n.length,Wn=Array(Yn);++Mn<Yn;)Wn[Mn]=kn(_n[Mn],Mn,_n);return Wn}return Pc=vn,Pc}var Bc,lp;function rk(){if(lp)return Bc;lp=1;var vn=Array.isArray;return Bc=vn,Bc}var zc,cp;function ok(){if(cp)return zc;cp=1;var vn=ju(),_n=Object.prototype,kn=_n.hasOwnProperty,Mn=_n.toString,Yn=vn?vn.toStringTag:void 0;function Wn(Kn){var Xn=kn.call(Kn,Yn),Hn=Kn[Yn];try{Kn[Yn]=void 0;var qn=!0}catch{}var In=Mn.call(Kn);return qn&&(Xn?Kn[Yn]=Hn:delete Kn[Yn]),In}return zc=Wn,zc}var Hc,up;function sk(){if(up)return Hc;up=1;var vn=Object.prototype,_n=vn.toString;function kn(Mn){return _n.call(Mn)}return Hc=kn,Hc}var Uc,hp;function ak(){if(hp)return Uc;hp=1;var vn=ju(),_n=ok(),kn=sk(),Mn="[object Null]",Yn="[object Undefined]",Wn=vn?vn.toStringTag:void 0;function Kn(Xn){return Xn==null?Xn===void 0?Yn:Mn:Wn&&Wn in Object(Xn)?_n(Xn):kn(Xn)}return Uc=Kn,Uc}var Vc,dp;function lk(){if(dp)return Vc;dp=1;function vn(_n){return _n!=null&&typeof _n=="object"}return Vc=vn,Vc}var jc,fp;function ck(){if(fp)return jc;fp=1;var vn=ak(),_n=lk(),kn="[object Symbol]";function Mn(Yn){return typeof Yn=="symbol"||_n(Yn)&&vn(Yn)==kn}return jc=Mn,jc}var Gc,pp;function uk(){if(pp)return Gc;pp=1;var vn=ju(),_n=ik(),kn=rk(),Mn=ck(),Yn=1/0,Wn=vn?vn.prototype:void 0,Kn=Wn?Wn.toString:void 0;function Xn(Hn){if(typeof Hn=="string")return Hn;if(kn(Hn))return _n(Hn,Xn)+"";if(Mn(Hn))return Kn?Kn.call(Hn):"";var qn=Hn+"";return qn=="0"&&1/Hn==-Yn?"-0":qn}return Gc=Xn,Gc}var Kc,gp;function rl(){if(gp)return Kc;gp=1;var vn=uk();function _n(kn){return kn==null?"":vn(kn)}return Kc=_n,Kc}var qc,mp;function hk(){if(mp)return qc;mp=1;var vn=QS(),_n=Ng(),kn=ek(),Mn=rl();function Yn(Wn){return function(Kn){Kn=Mn(Kn);var Xn=_n(Kn)?kn(Kn):void 0,Hn=Xn?Xn[0]:Kn.charAt(0),qn=Xn?vn(Xn,1).join(""):Kn.slice(1);return Hn[Wn]()+qn}}return qc=Yn,qc}var Yc,vp;function Fg(){if(vp)return Yc;vp=1;var vn=hk(),_n=vn("toUpperCase");return Yc=_n,Yc}var dk=Fg();const fk=Ua(dk);var Zc,yp;function pk(){if(yp)return Zc;yp=1;var vn=rl(),_n=Fg();function kn(Mn){return _n(vn(Mn).toLowerCase())}return Zc=kn,Zc}var Qc,wp;function gk(){if(wp)return Qc;wp=1;function vn(_n,kn,Mn,Yn){var Wn=-1,Kn=_n==null?0:_n.length;for(Yn&&Kn&&(Mn=_n[++Wn]);++Wn<Kn;)Mn=kn(Mn,_n[Wn],Wn,_n);return Mn}return Qc=vn,Qc}var Xc,bp;function mk(){if(bp)return Xc;bp=1;function vn(_n){return function(kn){return _n==null?void 0:_n[kn]}}return Xc=vn,Xc}var Jc,xp;function vk(){if(xp)return Jc;xp=1;var vn=mk(),_n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},kn=vn(_n);return Jc=kn,Jc}var eu,_p;function yk(){if(_p)return eu;_p=1;var vn=vk(),_n=rl(),kn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mn="\\u0300-\\u036f",Yn="\\ufe20-\\ufe2f",Wn="\\u20d0-\\u20ff",Kn=Mn+Yn+Wn,Xn="["+Kn+"]",Hn=RegExp(Xn,"g");function qn(In){return In=_n(In),In&&In.replace(kn,vn).replace(Hn,"")}return eu=qn,eu}var tu,Sp;function wk(){if(Sp)return tu;Sp=1;var vn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function _n(kn){return kn.match(vn)||[]}return tu=_n,tu}var nu,kp;function bk(){if(kp)return nu;kp=1;var vn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function _n(kn){return vn.test(kn)}return nu=_n,nu}var iu,Cp;function xk(){if(Cp)return iu;Cp=1;var vn="\\ud800-\\udfff",_n="\\u0300-\\u036f",kn="\\ufe20-\\ufe2f",Mn="\\u20d0-\\u20ff",Yn=_n+kn+Mn,Wn="\\u2700-\\u27bf",Kn="a-z\\xdf-\\xf6\\xf8-\\xff",Xn="\\xac\\xb1\\xd7\\xf7",Hn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qn="\\u2000-\\u206f",In=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dn="A-Z\\xc0-\\xd6\\xd8-\\xde",Pn="\\ufe0e\\ufe0f",Bn=Xn+Hn+qn+In,Nn="['’]",zn="["+Bn+"]",Qn="["+Yn+"]",Jn="\\d+",ti="["+Wn+"]",vi="["+Kn+"]",pi="[^"+vn+Bn+Jn+Wn+Kn+Dn+"]",si="\\ud83c[\\udffb-\\udfff]",ei="(?:"+Qn+"|"+si+")",mi="[^"+vn+"]",fi="(?:\\ud83c[\\udde6-\\uddff]){2}",yi="[\\ud800-\\udbff][\\udc00-\\udfff]",gi="["+Dn+"]",xi="\\u200d",ai="(?:"+vi+"|"+pi+")",oi="(?:"+gi+"|"+pi+")",li="(?:"+Nn+"(?:d|ll|m|re|s|t|ve))?",wi="(?:"+Nn+"(?:D|LL|M|RE|S|T|VE))?",bi=ei+"?",_i="["+Pn+"]?",Ti="(?:"+xi+"(?:"+[mi,fi,yi].join("|")+")"+_i+bi+")*",Li="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ri="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ii=_i+bi+Ti,zi="(?:"+[ti,fi,yi].join("|")+")"+Ii,Oi=RegExp([gi+"?"+vi+"+"+li+"(?="+[zn,gi,"$"].join("|")+")",oi+"+"+wi+"(?="+[zn,gi+ai,"$"].join("|")+")",gi+"?"+ai+"+"+li,gi+"+"+wi,Ri,Li,Jn,zi].join("|"),"g");function Bi(Yi){return Yi.match(Oi)||[]}return iu=Bi,iu}var ru,Ap;function _k(){if(Ap)return ru;Ap=1;var vn=wk(),_n=bk(),kn=rl(),Mn=xk();function Yn(Wn,Kn,Xn){return Wn=kn(Wn),Kn=Xn?void 0:Kn,Kn===void 0?_n(Wn)?Mn(Wn):vn(Wn):Wn.match(Kn)||[]}return ru=Yn,ru}var ou,$p;function Sk(){if($p)return ou;$p=1;var vn=gk(),_n=yk(),kn=_k(),Mn="['’]",Yn=RegExp(Mn,"g");function Wn(Kn){return function(Xn){return vn(kn(_n(Xn).replace(Yn,"")),Kn,"")}}return ou=Wn,ou}var su,Tp;function kk(){if(Tp)return su;Tp=1;var vn=pk(),_n=Sk(),kn=_n(function(Mn,Yn,Wn){return Yn=Yn.toLowerCase(),Mn+(Wn?vn(Yn):Yn)});return su=kn,su}var Ck=kk();const Ak=Ua(Ck),$k=Object.assign({"./ArrayWidget.vue":()=>Promise.resolve().then(()=>ArrayWidgetBTxChSds),"./BlockWidget.vue":()=>Promise.resolve().then(()=>BlockWidgetPmjzrkXF),"./ButtonWidget.vue":()=>Promise.resolve().then(()=>ButtonWidgetNwDlOBJT),"./CanvasWidget.vue":()=>Promise.resolve().then(()=>CanvasWidgetBL8930eT),"./CanvasdotWidget.vue":()=>Promise.resolve().then(()=>CanvasdotWidgetVCf1fLG),"./CanvasimageWidget.vue":()=>Promise.resolve().then(()=>CanvasimageWidgetBIw7Wbf2),"./CanvasimagevalueWidget.vue":()=>Promise.resolve().then(()=>CanvasimagevalueWidgetCE3Dj5bH),"./CanvaslabelWidget.vue":()=>Promise.resolve().then(()=>CanvaslabelWidgetDWmb356h),"./CanvaslabelvalueWidget.vue":()=>Promise.resolve().then(()=>CanvaslabelvalueWidgetCI3yYwFs),"./CanvaslineWidget.vue":()=>Promise.resolve().then(()=>CanvaslineWidgetCOeapH3P),"./CanvaslinevalueWidget.vue":()=>Promise.resolve().then(()=>CanvaslinevalueWidgetCIBbzfi),"./CheckbuttonWidget.vue":()=>Promise.resolve().then(()=>CheckbuttonWidgetBQhggcZ2),"./ComboboxWidget.vue":()=>Promise.resolve().then(()=>ComboboxWidgetBzsbOv54),"./DateWidget.vue":()=>Promise.resolve().then(()=>DateWidgetB5R_9rA8),"./DynamicWidget.vue":()=>Promise.resolve().then(()=>DynamicWidgetM9EliUR2),"./FormatvalueWidget.vue":()=>Promise.resolve().then(()=>FormatvalueWidgetDZkRJce8),"./HorizontalWidget.vue":()=>Promise.resolve().then(()=>HorizontalWidgetCirtfuL8),"./HorizontalboxWidget.vue":()=>Promise.resolve().then(()=>HorizontalboxWidgetCyTDt2nl),"./HorizontallineWidget.vue":()=>Promise.resolve().then(()=>HorizontallineWidgetBdlNB951),"./IframeWidget.vue":()=>Promise.resolve().then(()=>IframeWidgetDnJmCrCA),"./ImageviewerWidget.vue":()=>Promise.resolve().then(()=>ImageviewerWidgetDIkmb_C9),"./LabelWidget.vue":()=>Promise.resolve().then(()=>LabelWidgetBDsypYho),"./LabelledWidget.vue":()=>Promise.resolve().then(()=>LabelledWidgetDjturGl5),"./LabelprogressbarWidget.vue":()=>Promise.resolve().then(()=>LabelprogressbarWidgetRADJGLj3),"./LabelsparklineWidget.vue":()=>Promise.resolve().then(()=>LabelsparklineWidgetBlJoICxu),"./LabelvalueWidget.vue":()=>Promise.resolve().then(()=>LabelvalueWidgetDVWJqnlY),"./LabelvaluedescWidget.vue":()=>Promise.resolve().then(()=>LabelvaluedescWidgetCsUP7J4U),"./LabelvaluelimitsbarWidget.vue":()=>Promise.resolve().then(()=>LabelvaluelimitsbarWidgetBlj1QXV8),"./LabelvaluelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>LabelvaluelimitscolumnWidgetCvCoUCe),"./LabelvaluerangebarWidget.vue":()=>Promise.resolve().then(()=>LabelvaluerangebarWidgetDpcXhlfF),"./LedWidget.vue":()=>Promise.resolve().then(()=>LedWidgetB_K2e5tq),"./LimitsbarWidget.vue":()=>Promise.resolve().then(()=>LimitsbarWidgetDXbqsi4J),"./LimitscolorWidget.vue":()=>Promise.resolve().then(()=>LimitscolorWidgetCkmuw0YX),"./LimitscolumnWidget.vue":()=>Promise.resolve().then(()=>LimitscolumnWidgetBfY4su5U),"./LinegraphWidget.vue":()=>Promise.resolve().then(()=>LinegraphWidgetYQy9P0R),"./MatrixbycolumnsWidget.vue":()=>Promise.resolve().then(()=>MatrixbycolumnsWidgetBTBColrs),"./ProgressbarWidget.vue":()=>Promise.resolve().then(()=>ProgressbarWidgetDpA_Vy9),"./RadiobuttonWidget.vue":()=>Promise.resolve().then(()=>RadiobuttonWidgetBO8zpgwW),"./RadiogroupWidget.vue":()=>Promise.resolve().then(()=>RadiogroupWidgetOy7V4SV),"./RangebarWidget.vue":()=>Promise.resolve().then(()=>RangebarWidgetDHS7S3vI),"./RollupWidget.vue":()=>Promise.resolve().then(()=>RollupWidgetCTk9Kjwr),"./ScrollwindowWidget.vue":()=>Promise.resolve().then(()=>ScrollwindowWidgetDD0TOW6s),"./SignalWidget.vue":()=>Promise.resolve().then(()=>SignalWidgetCC33KMTW),"./SpacerWidget.vue":()=>Promise.resolve().then(()=>SpacerWidgetBnJe_Hq6),"./SparklineWidget.vue":()=>Promise.resolve().then(()=>SparklineWidgetDMvMQCPm),"./TabbookWidget.vue":()=>Promise.resolve().then(()=>TabbookWidgetB3w0JtWe),"./TextboxWidget.vue":()=>Promise.resolve().then(()=>TextboxWidgetD2f0Eol),"./TextfieldWidget.vue":()=>Promise.resolve().then(()=>TextfieldWidgetDXSdgqVP),"./TimeWidget.vue":()=>Promise.resolve().then(()=>TimeWidgetDvrRaEMz),"./TitleWidget.vue":()=>Promise.resolve().then(()=>TitleWidgetDqViFQl_),"./ValueWidget.vue":()=>Promise.resolve().then(()=>ValueWidgetKLYY8L8U),"./ValuelimitsbarWidget.vue":()=>Promise.resolve().then(()=>ValuelimitsbarWidgetSR8XNZFB),"./ValuelimitscolumnWidget.vue":()=>Promise.resolve().then(()=>ValuelimitscolumnWidgetXYZSp6YZ),"./ValuerangebarWidget.vue":()=>Promise.resolve().then(()=>ValuerangebarWidgetB6M02a9d),"./VerticalWidget.vue":()=>Promise.resolve().then(()=>VerticalWidgetZ6xUMQl),"./VerticalboxWidget.vue":()=>Promise.resolve().then(()=>VerticalboxWidget3a9cVsW_)}),Tk=Object.entries($k).reduce((vn,[_n,kn])=>{_n=_n.split("/").pop();const Mn=fk(Ak(_n.replace(/\.\w+$/,"")));return{...vn,[Mn]:vue.defineAsyncComponent(kn)}},{}),Bk={components:Tk};function Ne$2(vn,_n){return function(){return vn.apply(_n,arguments)}}const{toString:Ze$2}=Object.prototype,{getPrototypeOf:ue$3}=Object,K$4=(vn=>_n=>{const kn=Ze$2.call(_n);return vn[kn]||(vn[kn]=kn.slice(8,-1).toLowerCase())})(Object.create(null)),C$3=vn=>(vn=vn.toLowerCase(),_n=>K$4(_n)===vn),v$9=vn=>_n=>typeof _n===vn,{isArray:U$4}=Array,q$3=v$9("undefined");function Ye$2(vn){return vn!==null&&!q$3(vn)&&vn.constructor!==null&&!q$3(vn.constructor)&&x$3(vn.constructor.isBuffer)&&vn.constructor.isBuffer(vn)}const Pe$2=C$3("ArrayBuffer");function et$1(vn){let _n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?_n=ArrayBuffer.isView(vn):_n=vn&&vn.buffer&&Pe$2(vn.buffer),_n}const tt$1=v$9("string"),x$3=v$9("function"),_e$2=v$9("number"),X$2=vn=>vn!==null&&typeof vn=="object",nt$1=vn=>vn===!0||vn===!1,z$a=vn=>{if(K$4(vn)!=="object")return!1;const _n=ue$3(vn);return(_n===null||_n===Object.prototype||Object.getPrototypeOf(_n)===null)&&!(Symbol.toStringTag in vn)&&!(Symbol.iterator in vn)},rt$1=C$3("Date"),st$1=C$3("File"),ot$1=C$3("Blob"),it$1=C$3("FileList"),at$1=vn=>X$2(vn)&&x$3(vn.pipe),ct$1=vn=>{let _n;return vn&&(typeof FormData=="function"&&vn instanceof FormData||x$3(vn.append)&&((_n=K$4(vn))==="formdata"||_n==="object"&&x$3(vn.toString)&&vn.toString()==="[object FormData]"))},ut$1=C$3("URLSearchParams"),[lt$1,ft$1,dt$1,pt$1]=["ReadableStream","Request","Response","Headers"].map(C$3),ht$1=vn=>vn.trim?vn.trim():vn.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I$6(vn,_n,{allOwnKeys:kn=!1}={}){if(vn===null||typeof vn>"u")return;let Mn,Yn;if(typeof vn!="object"&&(vn=[vn]),U$4(vn))for(Mn=0,Yn=vn.length;Mn<Yn;Mn++)_n.call(null,vn[Mn],Mn,vn);else{const Wn=kn?Object.getOwnPropertyNames(vn):Object.keys(vn),Kn=Wn.length;let Xn;for(Mn=0;Mn<Kn;Mn++)Xn=Wn[Mn],_n.call(null,vn[Xn],Xn,vn)}}function Fe$2(vn,_n){_n=_n.toLowerCase();const kn=Object.keys(vn);let Mn=kn.length,Yn;for(;Mn-- >0;)if(Yn=kn[Mn],_n===Yn.toLowerCase())return Yn;return null}const L$4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Le$2=vn=>!q$3(vn)&&vn!==L$4;function re$2(){const{caseless:vn}=Le$2(this)&&this||{},_n={},kn=(Mn,Yn)=>{const Wn=vn&&Fe$2(_n,Yn)||Yn;z$a(_n[Wn])&&z$a(Mn)?_n[Wn]=re$2(_n[Wn],Mn):z$a(Mn)?_n[Wn]=re$2({},Mn):U$4(Mn)?_n[Wn]=Mn.slice():_n[Wn]=Mn};for(let Mn=0,Yn=arguments.length;Mn<Yn;Mn++)arguments[Mn]&&I$6(arguments[Mn],kn);return _n}const mt$1=(vn,_n,kn,{allOwnKeys:Mn}={})=>(I$6(_n,(Yn,Wn)=>{kn&&x$3(Yn)?vn[Wn]=Ne$2(Yn,kn):vn[Wn]=Yn},{allOwnKeys:Mn}),vn),yt$1=vn=>(vn.charCodeAt(0)===65279&&(vn=vn.slice(1)),vn),bt$1=(vn,_n,kn,Mn)=>{vn.prototype=Object.create(_n.prototype,Mn),vn.prototype.constructor=vn,Object.defineProperty(vn,"super",{value:_n.prototype}),kn&&Object.assign(vn.prototype,kn)},wt$1=(vn,_n,kn,Mn)=>{let Yn,Wn,Kn;const Xn={};if(_n=_n||{},vn==null)return _n;do{for(Yn=Object.getOwnPropertyNames(vn),Wn=Yn.length;Wn-- >0;)Kn=Yn[Wn],(!Mn||Mn(Kn,vn,_n))&&!Xn[Kn]&&(_n[Kn]=vn[Kn],Xn[Kn]=!0);vn=kn!==!1&&ue$3(vn)}while(vn&&(!kn||kn(vn,_n))&&vn!==Object.prototype);return _n},Et$1=(vn,_n,kn)=>{vn=String(vn),(kn===void 0||kn>vn.length)&&(kn=vn.length),kn-=_n.length;const Mn=vn.indexOf(_n,kn);return Mn!==-1&&Mn===kn},Rt$1=vn=>{if(!vn)return null;if(U$4(vn))return vn;let _n=vn.length;if(!_e$2(_n))return null;const kn=new Array(_n);for(;_n-- >0;)kn[_n]=vn[_n];return kn},St$1=(vn=>_n=>vn&&_n instanceof vn)(typeof Uint8Array<"u"&&ue$3(Uint8Array)),gt$1=(vn,_n)=>{const kn=(vn&&vn[Symbol.iterator]).call(vn);let Mn;for(;(Mn=kn.next())&&!Mn.done;){const Yn=Mn.value;_n.call(vn,Yn[0],Yn[1])}},Ot$1=(vn,_n)=>{let kn;const Mn=[];for(;(kn=vn.exec(_n))!==null;)Mn.push(kn);return Mn},Tt$1=C$3("HTMLFormElement"),At$1=vn=>vn.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(_n,kn,Mn){return kn.toUpperCase()+Mn}),he$3=(({hasOwnProperty:vn})=>(_n,kn)=>vn.call(_n,kn))(Object.prototype),xt$1=C$3("RegExp"),Be$1=(vn,_n)=>{const kn=Object.getOwnPropertyDescriptors(vn),Mn={};I$6(kn,(Yn,Wn)=>{let Kn;(Kn=_n(Yn,Wn,vn))!==!1&&(Mn[Wn]=Kn||Yn)}),Object.defineProperties(vn,Mn)},Ct=vn=>{Be$1(vn,(_n,kn)=>{if(x$3(vn)&&["arguments","caller","callee"].indexOf(kn)!==-1)return!1;const Mn=vn[kn];if(x$3(Mn)){if(_n.enumerable=!1,"writable"in _n){_n.writable=!1;return}_n.set||(_n.set=()=>{throw Error("Can not rewrite read-only method '"+kn+"'")})}})},Nt$1=(vn,_n)=>{const kn={},Mn=Yn=>{Yn.forEach(Wn=>{kn[Wn]=!0})};return U$4(vn)?Mn(vn):Mn(String(vn).split(_n)),kn},Pt$1=()=>{},_t$1=(vn,_n)=>vn!=null&&Number.isFinite(vn=+vn)?vn:_n,Y$2="abcdefghijklmnopqrstuvwxyz",me$3="0123456789",De$3={DIGIT:me$3,ALPHA:Y$2,ALPHA_DIGIT:Y$2+Y$2.toUpperCase()+me$3},Ft=(vn=16,_n=De$3.ALPHA_DIGIT)=>{let kn="";const{length:Mn}=_n;for(;vn--;)kn+=_n[Math.random()*Mn|0];return kn};function Lt$1(vn){return!!(vn&&x$3(vn.append)&&vn[Symbol.toStringTag]==="FormData"&&vn[Symbol.iterator])}const Bt$1=vn=>{const _n=new Array(10),kn=(Mn,Yn)=>{if(X$2(Mn)){if(_n.indexOf(Mn)>=0)return;if(!("toJSON"in Mn)){_n[Yn]=Mn;const Wn=U$4(Mn)?[]:{};return I$6(Mn,(Kn,Xn)=>{const Hn=kn(Kn,Yn+1);!q$3(Hn)&&(Wn[Xn]=Hn)}),_n[Yn]=void 0,Wn}}return Mn};return kn(vn,0)},Dt$1=C$3("AsyncFunction"),Ut$1=vn=>vn&&(X$2(vn)||x$3(vn))&&x$3(vn.then)&&x$3(vn.catch),Ue$2=((vn,_n)=>vn?setImmediate:_n?((kn,Mn)=>(L$4.addEventListener("message",({source:Yn,data:Wn})=>{Yn===L$4&&Wn===kn&&Mn.length&&Mn.shift()()},!1),Yn=>{Mn.push(Yn),L$4.postMessage(kn,"*")}))(`axios@${Math.random()}`,[]):kn=>setTimeout(kn))(typeof setImmediate=="function",x$3(L$4.postMessage)),kt=typeof queueMicrotask<"u"?queueMicrotask.bind(L$4):typeof process<"u"&&process.nextTick||Ue$2,a$3={isArray:U$4,isArrayBuffer:Pe$2,isBuffer:Ye$2,isFormData:ct$1,isArrayBufferView:et$1,isString:tt$1,isNumber:_e$2,isBoolean:nt$1,isObject:X$2,isPlainObject:z$a,isReadableStream:lt$1,isRequest:ft$1,isResponse:dt$1,isHeaders:pt$1,isUndefined:q$3,isDate:rt$1,isFile:st$1,isBlob:ot$1,isRegExp:xt$1,isFunction:x$3,isStream:at$1,isURLSearchParams:ut$1,isTypedArray:St$1,isFileList:it$1,forEach:I$6,merge:re$2,extend:mt$1,trim:ht$1,stripBOM:yt$1,inherits:bt$1,toFlatObject:wt$1,kindOf:K$4,kindOfTest:C$3,endsWith:Et$1,toArray:Rt$1,forEachEntry:gt$1,matchAll:Ot$1,isHTMLForm:Tt$1,hasOwnProperty:he$3,hasOwnProp:he$3,reduceDescriptors:Be$1,freezeMethods:Ct,toObjectSet:Nt$1,toCamelCase:At$1,noop:Pt$1,toFiniteNumber:_t$1,findKey:Fe$2,global:L$4,isContextDefined:Le$2,ALPHABET:De$3,generateString:Ft,isSpecCompliantForm:Lt$1,toJSONObject:Bt$1,isAsyncFn:Dt$1,isThenable:Ut$1,setImmediate:Ue$2,asap:kt};function m$b(vn,_n,kn,Mn,Yn){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=vn,this.name="AxiosError",_n&&(this.code=_n),kn&&(this.config=kn),Mn&&(this.request=Mn),Yn&&(this.response=Yn,this.status=Yn.status?Yn.status:null)}a$3.inherits(m$b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a$3.toJSONObject(this.config),code:this.code,status:this.status}}});const ke$1=m$b.prototype,je$1={};["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(vn=>{je$1[vn]={value:vn}}),Object.defineProperties(m$b,je$1),Object.defineProperty(ke$1,"isAxiosError",{value:!0}),m$b.from=(vn,_n,kn,Mn,Yn,Wn)=>{const Kn=Object.create(ke$1);return a$3.toFlatObject(vn,Kn,function(Xn){return Xn!==Error.prototype},Xn=>Xn!=="isAxiosError"),m$b.call(Kn,vn.message,_n,kn,Mn,Yn),Kn.cause=vn,Kn.name=vn.name,Wn&&Object.assign(Kn,Wn),Kn};const jt$1=null;function se$1(vn){return a$3.isPlainObject(vn)||a$3.isArray(vn)}function qe$1(vn){return a$3.endsWith(vn,"[]")?vn.slice(0,-2):vn}function ye$3(vn,_n,kn){return vn?vn.concat(_n).map(function(Mn,Yn){return Mn=qe$1(Mn),!kn&&Yn?"["+Mn+"]":Mn}).join(kn?".":""):_n}function qt(vn){return a$3.isArray(vn)&&!vn.some(se$1)}const It$1=a$3.toFlatObject(a$3,{},null,function(vn){return/^is[A-Z]/.test(vn)});function G$1(vn,_n,kn){if(!a$3.isObject(vn))throw new TypeError("target must be an object");_n=_n||new FormData,kn=a$3.toFlatObject(kn,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Bn,Nn){return!a$3.isUndefined(Nn[Bn])});const Mn=kn.metaTokens,Yn=kn.visitor||qn,Wn=kn.dots,Kn=kn.indexes,Xn=(kn.Blob||typeof Blob<"u"&&Blob)&&a$3.isSpecCompliantForm(_n);if(!a$3.isFunction(Yn))throw new TypeError("visitor must be a function");function Hn(Bn){if(Bn===null)return"";if(a$3.isDate(Bn))return Bn.toISOString();if(!Xn&&a$3.isBlob(Bn))throw new m$b("Blob is not supported. Use a Buffer instead.");return a$3.isArrayBuffer(Bn)||a$3.isTypedArray(Bn)?Xn&&typeof Blob=="function"?new Blob([Bn]):Buffer.from(Bn):Bn}function qn(Bn,Nn,zn){let Qn=Bn;if(Bn&&!zn&&typeof Bn=="object"){if(a$3.endsWith(Nn,"{}"))Nn=Mn?Nn:Nn.slice(0,-2),Bn=JSON.stringify(Bn);else if(a$3.isArray(Bn)&&qt(Bn)||(a$3.isFileList(Bn)||a$3.endsWith(Nn,"[]"))&&(Qn=a$3.toArray(Bn)))return Nn=qe$1(Nn),Qn.forEach(function(Jn,ti){!(a$3.isUndefined(Jn)||Jn===null)&&_n.append(Kn===!0?ye$3([Nn],ti,Wn):Kn===null?Nn:Nn+"[]",Hn(Jn))}),!1}return se$1(Bn)?!0:(_n.append(ye$3(zn,Nn,Wn),Hn(Bn)),!1)}const In=[],Dn=Object.assign(It$1,{defaultVisitor:qn,convertValue:Hn,isVisitable:se$1});function Pn(Bn,Nn){if(!a$3.isUndefined(Bn)){if(In.indexOf(Bn)!==-1)throw Error("Circular reference detected in "+Nn.join("."));In.push(Bn),a$3.forEach(Bn,function(zn,Qn){(!(a$3.isUndefined(zn)||zn===null)&&Yn.call(_n,zn,a$3.isString(Qn)?Qn.trim():Qn,Nn,Dn))===!0&&Pn(zn,Nn?Nn.concat(Qn):[Qn])}),In.pop()}}if(!a$3.isObject(vn))throw new TypeError("data must be an object");return Pn(vn),_n}function be$3(vn){const _n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(vn).replace(/[!'()~]|%20|%00/g,function(kn){return _n[kn]})}function le$3(vn,_n){this._pairs=[],vn&&G$1(vn,this,_n)}const Ie$2=le$3.prototype;Ie$2.append=function(vn,_n){this._pairs.push([vn,_n])},Ie$2.toString=function(vn){const _n=vn?function(kn){return vn.call(this,kn,be$3)}:be$3;return this._pairs.map(function(kn){return _n(kn[0])+"="+_n(kn[1])},"").join("&")};function Ht(vn){return encodeURIComponent(vn).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He$2(vn,_n,kn){if(!_n)return vn;const Mn=kn&&kn.encode||Ht;a$3.isFunction(kn)&&(kn={serialize:kn});const Yn=kn&&kn.serialize;let Wn;if(Yn?Wn=Yn(_n,kn):Wn=a$3.isURLSearchParams(_n)?_n.toString():new le$3(_n,kn).toString(Mn),Wn){const Kn=vn.indexOf("#");Kn!==-1&&(vn=vn.slice(0,Kn)),vn+=(vn.indexOf("?")===-1?"?":"&")+Wn}return vn}let we$3=class{constructor(){this.handlers=[]}use(_n,kn,Mn){return this.handlers.push({fulfilled:_n,rejected:kn,synchronous:Mn?Mn.synchronous:!1,runWhen:Mn?Mn.runWhen:null}),this.handlers.length-1}eject(_n){this.handlers[_n]&&(this.handlers[_n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(_n){a$3.forEach(this.handlers,function(kn){kn!==null&&_n(kn)})}};const Me$2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt$1=typeof URLSearchParams<"u"?URLSearchParams:le$3,zt=typeof FormData<"u"?FormData:null,Jt=typeof Blob<"u"?Blob:null,Vt={isBrowser:!0,classes:{URLSearchParams:Mt$1,FormData:zt,Blob:Jt},protocols:["http","https","file","blob","url","data"]},fe$3=typeof window<"u"&&typeof document<"u",oe$2=typeof navigator=="object"&&navigator||void 0,$t$1=fe$3&&(!oe$2||["ReactNative","NativeScript","NS"].indexOf(oe$2.product)<0),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=fe$3&&window.location.href||"http://localhost",vt$1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe$3,hasStandardBrowserEnv:$t$1,hasStandardBrowserWebWorkerEnv:Wt,navigator:oe$2,origin:Kt},Symbol.toStringTag,{value:"Module"})),O$3={...vt$1,...Vt};function Xt(vn,_n){return G$1(vn,new O$3.classes.URLSearchParams,Object.assign({visitor:function(kn,Mn,Yn,Wn){return O$3.isNode&&a$3.isBuffer(kn)?(this.append(Mn,kn.toString("base64")),!1):Wn.defaultVisitor.apply(this,arguments)}},_n))}function Gt$1(vn){return a$3.matchAll(/\w+|\[(\w*)]/g,vn).map(_n=>_n[0]==="[]"?"":_n[1]||_n[0])}function Qt(vn){const _n={},kn=Object.keys(vn);let Mn;const Yn=kn.length;let Wn;for(Mn=0;Mn<Yn;Mn++)Wn=kn[Mn],_n[Wn]=vn[Wn];return _n}function ze$2(vn){function _n(kn,Mn,Yn,Wn){let Kn=kn[Wn++];if(Kn==="__proto__")return!0;const Xn=Number.isFinite(+Kn),Hn=Wn>=kn.length;return Kn=!Kn&&a$3.isArray(Yn)?Yn.length:Kn,Hn?(a$3.hasOwnProp(Yn,Kn)?Yn[Kn]=[Yn[Kn],Mn]:Yn[Kn]=Mn,!Xn):((!Yn[Kn]||!a$3.isObject(Yn[Kn]))&&(Yn[Kn]=[]),_n(kn,Mn,Yn[Kn],Wn)&&a$3.isArray(Yn[Kn])&&(Yn[Kn]=Qt(Yn[Kn])),!Xn)}if(a$3.isFormData(vn)&&a$3.isFunction(vn.entries)){const kn={};return a$3.forEachEntry(vn,(Mn,Yn)=>{_n(Gt$1(Mn),Yn,kn,0)}),kn}return null}function Zt(vn,_n,kn){if(a$3.isString(vn))try{return(_n||JSON.parse)(vn),a$3.trim(vn)}catch(Mn){if(Mn.name!=="SyntaxError")throw Mn}return(0,JSON.stringify)(vn)}const H$2={transitional:Me$2,adapter:["xhr","http","fetch"],transformRequest:[function(vn,_n){const kn=_n.getContentType()||"",Mn=kn.indexOf("application/json")>-1,Yn=a$3.isObject(vn);if(Yn&&a$3.isHTMLForm(vn)&&(vn=new FormData(vn)),a$3.isFormData(vn))return Mn?JSON.stringify(ze$2(vn)):vn;if(a$3.isArrayBuffer(vn)||a$3.isBuffer(vn)||a$3.isStream(vn)||a$3.isFile(vn)||a$3.isBlob(vn)||a$3.isReadableStream(vn))return vn;if(a$3.isArrayBufferView(vn))return vn.buffer;if(a$3.isURLSearchParams(vn))return _n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),vn.toString();let Wn;if(Yn){if(kn.indexOf("application/x-www-form-urlencoded")>-1)return Xt(vn,this.formSerializer).toString();if((Wn=a$3.isFileList(vn))||kn.indexOf("multipart/form-data")>-1){const Kn=this.env&&this.env.FormData;return G$1(Wn?{"files[]":vn}:vn,Kn&&new Kn,this.formSerializer)}}return Yn||Mn?(_n.setContentType("application/json",!1),Zt(vn)):vn}],transformResponse:[function(vn){const _n=this.transitional||H$2.transitional,kn=_n&&_n.forcedJSONParsing,Mn=this.responseType==="json";if(a$3.isResponse(vn)||a$3.isReadableStream(vn))return vn;if(vn&&a$3.isString(vn)&&(kn&&!this.responseType||Mn)){const Yn=!(_n&&_n.silentJSONParsing)&&Mn;try{return JSON.parse(vn)}catch(Wn){if(Yn)throw Wn.name==="SyntaxError"?m$b.from(Wn,m$b.ERR_BAD_RESPONSE,this,null,this.response):Wn}}return vn}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O$3.classes.FormData,Blob:O$3.classes.Blob},validateStatus:function(vn){return vn>=200&&vn<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a$3.forEach(["delete","get","head","post","put","patch"],vn=>{H$2.headers[vn]={}});const Yt=a$3.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"]),en=vn=>{const _n={};let kn,Mn,Yn;return vn&&vn.split(`
1409
+ `).forEach(function(Wn){Yn=Wn.indexOf(":"),kn=Wn.substring(0,Yn).trim().toLowerCase(),Mn=Wn.substring(Yn+1).trim(),!(!kn||_n[kn]&&Yt[kn])&&(kn==="set-cookie"?_n[kn]?_n[kn].push(Mn):_n[kn]=[Mn]:_n[kn]=_n[kn]?_n[kn]+", "+Mn:Mn)}),_n},Ee$2=Symbol("internals");function j$3(vn){return vn&&String(vn).trim().toLowerCase()}function J$1(vn){return vn===!1||vn==null?vn:a$3.isArray(vn)?vn.map(J$1):String(vn)}function tn(vn){const _n=Object.create(null),kn=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let Mn;for(;Mn=kn.exec(vn);)_n[Mn[1]]=Mn[2];return _n}const nn=vn=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(vn.trim());function ee$1(vn,_n,kn,Mn,Yn){if(a$3.isFunction(Mn))return Mn.call(this,_n,kn);if(Yn&&(_n=kn),!!a$3.isString(_n)){if(a$3.isString(Mn))return _n.indexOf(Mn)!==-1;if(a$3.isRegExp(Mn))return Mn.test(_n)}}function rn(vn){return vn.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(_n,kn,Mn)=>kn.toUpperCase()+Mn)}function sn(vn,_n){const kn=a$3.toCamelCase(" "+_n);["get","set","has"].forEach(Mn=>{Object.defineProperty(vn,Mn+kn,{value:function(Yn,Wn,Kn){return this[Mn].call(this,_n,Yn,Wn,Kn)},configurable:!0})})}let A$5=class{constructor(_n){_n&&this.set(_n)}set(_n,kn,Mn){const Yn=this;function Wn(Xn,Hn,qn){const In=j$3(Hn);if(!In)throw new Error("header name must be a non-empty string");const Dn=a$3.findKey(Yn,In);(!Dn||Yn[Dn]===void 0||qn===!0||qn===void 0&&Yn[Dn]!==!1)&&(Yn[Dn||Hn]=J$1(Xn))}const Kn=(Xn,Hn)=>a$3.forEach(Xn,(qn,In)=>Wn(qn,In,Hn));if(a$3.isPlainObject(_n)||_n instanceof this.constructor)Kn(_n,kn);else if(a$3.isString(_n)&&(_n=_n.trim())&&!nn(_n))Kn(en(_n),kn);else if(a$3.isHeaders(_n))for(const[Xn,Hn]of _n.entries())Wn(Hn,Xn,Mn);else _n!=null&&Wn(kn,_n,Mn);return this}get(_n,kn){if(_n=j$3(_n),_n){const Mn=a$3.findKey(this,_n);if(Mn){const Yn=this[Mn];if(!kn)return Yn;if(kn===!0)return tn(Yn);if(a$3.isFunction(kn))return kn.call(this,Yn,Mn);if(a$3.isRegExp(kn))return kn.exec(Yn);throw new TypeError("parser must be boolean|regexp|function")}}}has(_n,kn){if(_n=j$3(_n),_n){const Mn=a$3.findKey(this,_n);return!!(Mn&&this[Mn]!==void 0&&(!kn||ee$1(this,this[Mn],Mn,kn)))}return!1}delete(_n,kn){const Mn=this;let Yn=!1;function Wn(Kn){if(Kn=j$3(Kn),Kn){const Xn=a$3.findKey(Mn,Kn);Xn&&(!kn||ee$1(Mn,Mn[Xn],Xn,kn))&&(delete Mn[Xn],Yn=!0)}}return a$3.isArray(_n)?_n.forEach(Wn):Wn(_n),Yn}clear(_n){const kn=Object.keys(this);let Mn=kn.length,Yn=!1;for(;Mn--;){const Wn=kn[Mn];(!_n||ee$1(this,this[Wn],Wn,_n,!0))&&(delete this[Wn],Yn=!0)}return Yn}normalize(_n){const kn=this,Mn={};return a$3.forEach(this,(Yn,Wn)=>{const Kn=a$3.findKey(Mn,Wn);if(Kn){kn[Kn]=J$1(Yn),delete kn[Wn];return}const Xn=_n?rn(Wn):String(Wn).trim();Xn!==Wn&&delete kn[Wn],kn[Xn]=J$1(Yn),Mn[Xn]=!0}),this}concat(..._n){return this.constructor.concat(this,..._n)}toJSON(_n){const kn=Object.create(null);return a$3.forEach(this,(Mn,Yn)=>{Mn!=null&&Mn!==!1&&(kn[Yn]=_n&&a$3.isArray(Mn)?Mn.join(", "):Mn)}),kn}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([_n,kn])=>_n+": "+kn).join(`
1410
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(_n){return _n instanceof this?_n:new this(_n)}static concat(_n,...kn){const Mn=new this(_n);return kn.forEach(Yn=>Mn.set(Yn)),Mn}static accessor(_n){const kn=(this[Ee$2]=this[Ee$2]={accessors:{}}).accessors,Mn=this.prototype;function Yn(Wn){const Kn=j$3(Wn);kn[Kn]||(sn(Mn,Wn),kn[Kn]=!0)}return a$3.isArray(_n)?_n.forEach(Yn):Yn(_n),this}};A$5.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a$3.reduceDescriptors(A$5.prototype,({value:vn},_n)=>{let kn=_n[0].toUpperCase()+_n.slice(1);return{get:()=>vn,set(Mn){this[kn]=Mn}}}),a$3.freezeMethods(A$5);function te$1(vn,_n){const kn=this||H$2,Mn=_n||kn,Yn=A$5.from(Mn.headers);let Wn=Mn.data;return a$3.forEach(vn,function(Kn){Wn=Kn.call(kn,Wn,Yn.normalize(),_n?_n.status:void 0)}),Yn.normalize(),Wn}function Je$1(vn){return!!(vn&&vn.__CANCEL__)}function k$9(vn,_n,kn){m$b.call(this,vn??"canceled",m$b.ERR_CANCELED,_n,kn),this.name="CanceledError"}a$3.inherits(k$9,m$b,{__CANCEL__:!0});function Ve$1(vn,_n,kn){const Mn=kn.config.validateStatus;!kn.status||!Mn||Mn(kn.status)?vn(kn):_n(new m$b("Request failed with status code "+kn.status,[m$b.ERR_BAD_REQUEST,m$b.ERR_BAD_RESPONSE][Math.floor(kn.status/100)-4],kn.config,kn.request,kn))}function on(vn){const _n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(vn);return _n&&_n[1]||""}function an(vn,_n){vn=vn||10;const kn=new Array(vn),Mn=new Array(vn);let Yn=0,Wn=0,Kn;return _n=_n!==void 0?_n:1e3,function(Xn){const Hn=Date.now(),qn=Mn[Wn];Kn||(Kn=Hn),kn[Yn]=Xn,Mn[Yn]=Hn;let In=Wn,Dn=0;for(;In!==Yn;)Dn+=kn[In++],In=In%vn;if(Yn=(Yn+1)%vn,Yn===Wn&&(Wn=(Wn+1)%vn),Hn-Kn<_n)return;const Pn=qn&&Hn-qn;return Pn?Math.round(Dn*1e3/Pn):void 0}}function cn(vn,_n){let kn=0,Mn=1e3/_n,Yn,Wn;const Kn=(Xn,Hn=Date.now())=>{kn=Hn,Yn=null,Wn&&(clearTimeout(Wn),Wn=null),vn.apply(null,Xn)};return[(...Xn)=>{const Hn=Date.now(),qn=Hn-kn;qn>=Mn?Kn(Xn,Hn):(Yn=Xn,Wn||(Wn=setTimeout(()=>{Wn=null,Kn(Yn)},Mn-qn)))},()=>Yn&&Kn(Yn)]}const $$7=(vn,_n,kn=3)=>{let Mn=0;const Yn=an(50,250);return cn(Wn=>{const Kn=Wn.loaded,Xn=Wn.lengthComputable?Wn.total:void 0,Hn=Kn-Mn,qn=Yn(Hn),In=Kn<=Xn;Mn=Kn;const Dn={loaded:Kn,total:Xn,progress:Xn?Kn/Xn:void 0,bytes:Hn,rate:qn||void 0,estimated:qn&&Xn&&In?(Xn-Kn)/qn:void 0,event:Wn,lengthComputable:Xn!=null,[_n?"download":"upload"]:!0};vn(Dn)},kn)},Re$1=(vn,_n)=>{const kn=vn!=null;return[Mn=>_n[0]({lengthComputable:kn,total:vn,loaded:Mn}),_n[1]]},Se$3=vn=>(..._n)=>a$3.asap(()=>vn(..._n)),un=O$3.hasStandardBrowserEnv?((vn,_n)=>kn=>(kn=new URL(kn,O$3.origin),vn.protocol===kn.protocol&&vn.host===kn.host&&(_n||vn.port===kn.port)))(new URL(O$3.origin),O$3.navigator&&/(msie|trident)/i.test(O$3.navigator.userAgent)):()=>!0,ln=O$3.hasStandardBrowserEnv?{write(vn,_n,kn,Mn,Yn,Wn){const Kn=[vn+"="+encodeURIComponent(_n)];a$3.isNumber(kn)&&Kn.push("expires="+new Date(kn).toGMTString()),a$3.isString(Mn)&&Kn.push("path="+Mn),a$3.isString(Yn)&&Kn.push("domain="+Yn),Wn===!0&&Kn.push("secure"),document.cookie=Kn.join("; ")},read(vn){const _n=document.cookie.match(new RegExp("(^|;\\s*)("+vn+")=([^;]*)"));return _n?decodeURIComponent(_n[3]):null},remove(vn){this.write(vn,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fn(vn){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(vn)}function dn(vn,_n){return _n?vn.replace(/\/?\/$/,"")+"/"+_n.replace(/^\/+/,""):vn}function $e$2(vn,_n){return vn&&!fn(_n)?dn(vn,_n):_n}const ge$3=vn=>vn instanceof A$5?{...vn}:vn;function D$3(vn,_n){_n=_n||{};const kn={};function Mn(qn,In,Dn,Pn){return a$3.isPlainObject(qn)&&a$3.isPlainObject(In)?a$3.merge.call({caseless:Pn},qn,In):a$3.isPlainObject(In)?a$3.merge({},In):a$3.isArray(In)?In.slice():In}function Yn(qn,In,Dn,Pn){if(a$3.isUndefined(In)){if(!a$3.isUndefined(qn))return Mn(void 0,qn,Dn,Pn)}else return Mn(qn,In,Dn,Pn)}function Wn(qn,In){if(!a$3.isUndefined(In))return Mn(void 0,In)}function Kn(qn,In){if(a$3.isUndefined(In)){if(!a$3.isUndefined(qn))return Mn(void 0,qn)}else return Mn(void 0,In)}function Xn(qn,In,Dn){if(Dn in _n)return Mn(qn,In);if(Dn in vn)return Mn(void 0,qn)}const Hn={url:Wn,method:Wn,data:Wn,baseURL:Kn,transformRequest:Kn,transformResponse:Kn,paramsSerializer:Kn,timeout:Kn,timeoutMessage:Kn,withCredentials:Kn,withXSRFToken:Kn,adapter:Kn,responseType:Kn,xsrfCookieName:Kn,xsrfHeaderName:Kn,onUploadProgress:Kn,onDownloadProgress:Kn,decompress:Kn,maxContentLength:Kn,maxBodyLength:Kn,beforeRedirect:Kn,transport:Kn,httpAgent:Kn,httpsAgent:Kn,cancelToken:Kn,socketPath:Kn,responseEncoding:Kn,validateStatus:Xn,headers:(qn,In,Dn)=>Yn(ge$3(qn),ge$3(In),Dn,!0)};return a$3.forEach(Object.keys(Object.assign({},vn,_n)),function(qn){const In=Hn[qn]||Yn,Dn=In(vn[qn],_n[qn],qn);a$3.isUndefined(Dn)&&In!==Xn||(kn[qn]=Dn)}),kn}const We$2=vn=>{const _n=D$3({},vn);let{data:kn,withXSRFToken:Mn,xsrfHeaderName:Yn,xsrfCookieName:Wn,headers:Kn,auth:Xn}=_n;_n.headers=Kn=A$5.from(Kn),_n.url=He$2($e$2(_n.baseURL,_n.url),vn.params,vn.paramsSerializer),Xn&&Kn.set("Authorization","Basic "+btoa((Xn.username||"")+":"+(Xn.password?unescape(encodeURIComponent(Xn.password)):"")));let Hn;if(a$3.isFormData(kn)){if(O$3.hasStandardBrowserEnv||O$3.hasStandardBrowserWebWorkerEnv)Kn.setContentType(void 0);else if((Hn=Kn.getContentType())!==!1){const[qn,...In]=Hn?Hn.split(";").map(Dn=>Dn.trim()).filter(Boolean):[];Kn.setContentType([qn||"multipart/form-data",...In].join("; "))}}if(O$3.hasStandardBrowserEnv&&(Mn&&a$3.isFunction(Mn)&&(Mn=Mn(_n)),Mn||Mn!==!1&&un(_n.url))){const qn=Yn&&Wn&&ln.read(Wn);qn&&Kn.set(Yn,qn)}return _n},pn=typeof XMLHttpRequest<"u",hn=pn&&function(vn){return new Promise(function(_n,kn){const Mn=We$2(vn);let Yn=Mn.data;const Wn=A$5.from(Mn.headers).normalize();let{responseType:Kn,onUploadProgress:Xn,onDownloadProgress:Hn}=Mn,qn,In,Dn,Pn,Bn;function Nn(){Pn&&Pn(),Bn&&Bn(),Mn.cancelToken&&Mn.cancelToken.unsubscribe(qn),Mn.signal&&Mn.signal.removeEventListener("abort",qn)}let zn=new XMLHttpRequest;zn.open(Mn.method.toUpperCase(),Mn.url,!0),zn.timeout=Mn.timeout;function Qn(){if(!zn)return;const ti=A$5.from("getAllResponseHeaders"in zn&&zn.getAllResponseHeaders()),vi={data:!Kn||Kn==="text"||Kn==="json"?zn.responseText:zn.response,status:zn.status,statusText:zn.statusText,headers:ti,config:vn,request:zn};Ve$1(function(pi){_n(pi),Nn()},function(pi){kn(pi),Nn()},vi),zn=null}"onloadend"in zn?zn.onloadend=Qn:zn.onreadystatechange=function(){!zn||zn.readyState!==4||zn.status===0&&!(zn.responseURL&&zn.responseURL.indexOf("file:")===0)||setTimeout(Qn)},zn.onabort=function(){zn&&(kn(new m$b("Request aborted",m$b.ECONNABORTED,vn,zn)),zn=null)},zn.onerror=function(){kn(new m$b("Network Error",m$b.ERR_NETWORK,vn,zn)),zn=null},zn.ontimeout=function(){let ti=Mn.timeout?"timeout of "+Mn.timeout+"ms exceeded":"timeout exceeded";const vi=Mn.transitional||Me$2;Mn.timeoutErrorMessage&&(ti=Mn.timeoutErrorMessage),kn(new m$b(ti,vi.clarifyTimeoutError?m$b.ETIMEDOUT:m$b.ECONNABORTED,vn,zn)),zn=null},Yn===void 0&&Wn.setContentType(null),"setRequestHeader"in zn&&a$3.forEach(Wn.toJSON(),function(ti,vi){zn.setRequestHeader(vi,ti)}),a$3.isUndefined(Mn.withCredentials)||(zn.withCredentials=!!Mn.withCredentials),Kn&&Kn!=="json"&&(zn.responseType=Mn.responseType),Hn&&([Dn,Bn]=$$7(Hn,!0),zn.addEventListener("progress",Dn)),Xn&&zn.upload&&([In,Pn]=$$7(Xn),zn.upload.addEventListener("progress",In),zn.upload.addEventListener("loadend",Pn)),(Mn.cancelToken||Mn.signal)&&(qn=ti=>{zn&&(kn(!ti||ti.type?new k$9(null,vn,zn):ti),zn.abort(),zn=null)},Mn.cancelToken&&Mn.cancelToken.subscribe(qn),Mn.signal&&(Mn.signal.aborted?qn():Mn.signal.addEventListener("abort",qn)));const Jn=on(Mn.url);if(Jn&&O$3.protocols.indexOf(Jn)===-1){kn(new m$b("Unsupported protocol "+Jn+":",m$b.ERR_BAD_REQUEST,vn));return}zn.send(Yn||null)})},mn=(vn,_n)=>{const{length:kn}=vn=vn?vn.filter(Boolean):[];if(_n||kn){let Mn=new AbortController,Yn;const Wn=function(qn){if(!Yn){Yn=!0,Xn();const In=qn instanceof Error?qn:this.reason;Mn.abort(In instanceof m$b?In:new k$9(In instanceof Error?In.message:In))}};let Kn=_n&&setTimeout(()=>{Kn=null,Wn(new m$b(`timeout ${_n} of ms exceeded`,m$b.ETIMEDOUT))},_n);const Xn=()=>{vn&&(Kn&&clearTimeout(Kn),Kn=null,vn.forEach(qn=>{qn.unsubscribe?qn.unsubscribe(Wn):qn.removeEventListener("abort",Wn)}),vn=null)};vn.forEach(qn=>qn.addEventListener("abort",Wn));const{signal:Hn}=Mn;return Hn.unsubscribe=()=>a$3.asap(Xn),Hn}},yn=function*(vn,_n){let kn=vn.byteLength;if(kn<_n){yield vn;return}let Mn=0,Yn;for(;Mn<kn;)Yn=Mn+_n,yield vn.slice(Mn,Yn),Mn=Yn},bn=async function*(vn,_n){for await(const kn of wn(vn))yield*yn(kn,_n)},wn=async function*(vn){if(vn[Symbol.asyncIterator]){yield*vn;return}const _n=vn.getReader();try{for(;;){const{done:kn,value:Mn}=await _n.read();if(kn)break;yield Mn}}finally{await _n.cancel()}},Oe$2=(vn,_n,kn,Mn)=>{const Yn=bn(vn,_n);let Wn=0,Kn,Xn=Hn=>{Kn||(Kn=!0,Mn&&Mn(Hn))};return new ReadableStream({async pull(Hn){try{const{done:qn,value:In}=await Yn.next();if(qn){Xn(),Hn.close();return}let Dn=In.byteLength;if(kn){let Pn=Wn+=Dn;kn(Pn)}Hn.enqueue(new Uint8Array(In))}catch(qn){throw Xn(qn),qn}},cancel(Hn){return Xn(Hn),Yn.return()}},{highWaterMark:2})},Q$2=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ke$1=Q$2&&typeof ReadableStream=="function",En=Q$2&&(typeof TextEncoder=="function"?(vn=>_n=>vn.encode(_n))(new TextEncoder):async vn=>new Uint8Array(await new Response(vn).arrayBuffer())),ve$3=(vn,..._n)=>{try{return!!vn(..._n)}catch{return!1}},Rn=Ke$1&&ve$3(()=>{let vn=!1;const _n=new Request(O$3.origin,{body:new ReadableStream,method:"POST",get duplex(){return vn=!0,"half"}}).headers.has("Content-Type");return vn&&!_n}),Te$3=64*1024,ie$1=Ke$1&&ve$3(()=>a$3.isReadableStream(new Response("").body)),W$3={stream:ie$1&&(vn=>vn.body)};Q$2&&(vn=>{["text","arrayBuffer","blob","formData","stream"].forEach(_n=>{!W$3[_n]&&(W$3[_n]=a$3.isFunction(vn[_n])?kn=>kn[_n]():(kn,Mn)=>{throw new m$b(`Response type '${_n}' is not supported`,m$b.ERR_NOT_SUPPORT,Mn)})})})(new Response);const Sn=async vn=>{if(vn==null)return 0;if(a$3.isBlob(vn))return vn.size;if(a$3.isSpecCompliantForm(vn))return(await new Request(O$3.origin,{method:"POST",body:vn}).arrayBuffer()).byteLength;if(a$3.isArrayBufferView(vn)||a$3.isArrayBuffer(vn))return vn.byteLength;if(a$3.isURLSearchParams(vn)&&(vn=vn+""),a$3.isString(vn))return(await En(vn)).byteLength},gn=async(vn,_n)=>a$3.toFiniteNumber(vn.getContentLength())??Sn(_n),On=Q$2&&(async vn=>{let{url:_n,method:kn,data:Mn,signal:Yn,cancelToken:Wn,timeout:Kn,onDownloadProgress:Xn,onUploadProgress:Hn,responseType:qn,headers:In,withCredentials:Dn="same-origin",fetchOptions:Pn}=We$2(vn);qn=qn?(qn+"").toLowerCase():"text";let Bn=mn([Yn,Wn&&Wn.toAbortSignal()],Kn),Nn;const zn=Bn&&Bn.unsubscribe&&(()=>{Bn.unsubscribe()});let Qn;try{if(Hn&&Rn&&kn!=="get"&&kn!=="head"&&(Qn=await gn(In,Mn))!==0){let si=new Request(_n,{method:"POST",body:Mn,duplex:"half"}),ei;if(a$3.isFormData(Mn)&&(ei=si.headers.get("content-type"))&&In.setContentType(ei),si.body){const[mi,fi]=Re$1(Qn,$$7(Se$3(Hn)));Mn=Oe$2(si.body,Te$3,mi,fi)}}a$3.isString(Dn)||(Dn=Dn?"include":"omit");const Jn="credentials"in Request.prototype;Nn=new Request(_n,{...Pn,signal:Bn,method:kn.toUpperCase(),headers:In.normalize().toJSON(),body:Mn,duplex:"half",credentials:Jn?Dn:void 0});let ti=await fetch(Nn);const vi=ie$1&&(qn==="stream"||qn==="response");if(ie$1&&(Xn||vi&&zn)){const si={};["status","statusText","headers"].forEach(yi=>{si[yi]=ti[yi]});const ei=a$3.toFiniteNumber(ti.headers.get("content-length")),[mi,fi]=Xn&&Re$1(ei,$$7(Se$3(Xn),!0))||[];ti=new Response(Oe$2(ti.body,Te$3,mi,()=>{fi&&fi(),zn&&zn()}),si)}qn=qn||"text";let pi=await W$3[a$3.findKey(W$3,qn)||"text"](ti,vn);return!vi&&zn&&zn(),await new Promise((si,ei)=>{Ve$1(si,ei,{data:pi,headers:A$5.from(ti.headers),status:ti.status,statusText:ti.statusText,config:vn,request:Nn})})}catch(Jn){throw zn&&zn(),Jn&&Jn.name==="TypeError"&&/fetch/i.test(Jn.message)?Object.assign(new m$b("Network Error",m$b.ERR_NETWORK,vn,Nn),{cause:Jn.cause||Jn}):m$b.from(Jn,Jn&&Jn.code,vn,Nn)}}),ae$2={http:jt$1,xhr:hn,fetch:On};a$3.forEach(ae$2,(vn,_n)=>{if(vn){try{Object.defineProperty(vn,"name",{value:_n})}catch{}Object.defineProperty(vn,"adapterName",{value:_n})}});const Ae$2=vn=>`- ${vn}`,Tn=vn=>a$3.isFunction(vn)||vn===null||vn===!1,Xe$2={getAdapter:vn=>{vn=a$3.isArray(vn)?vn:[vn];const{length:_n}=vn;let kn,Mn;const Yn={};for(let Wn=0;Wn<_n;Wn++){kn=vn[Wn];let Kn;if(Mn=kn,!Tn(kn)&&(Mn=ae$2[(Kn=String(kn)).toLowerCase()],Mn===void 0))throw new m$b(`Unknown adapter '${Kn}'`);if(Mn)break;Yn[Kn||"#"+Wn]=Mn}if(!Mn){const Wn=Object.entries(Yn).map(([Xn,Hn])=>`adapter ${Xn} `+(Hn===!1?"is not supported by the environment":"is not available in the build"));let Kn=_n?Wn.length>1?`since :
1411
+ `+Wn.map(Ae$2).join(`
1412
+ `):" "+Ae$2(Wn[0]):"as no adapter specified";throw new m$b("There is no suitable adapter to dispatch the request "+Kn,"ERR_NOT_SUPPORT")}return Mn},adapters:ae$2};function ne$2(vn){if(vn.cancelToken&&vn.cancelToken.throwIfRequested(),vn.signal&&vn.signal.aborted)throw new k$9(null,vn)}function xe$2(vn){return ne$2(vn),vn.headers=A$5.from(vn.headers),vn.data=te$1.call(vn,vn.transformRequest),["post","put","patch"].indexOf(vn.method)!==-1&&vn.headers.setContentType("application/x-www-form-urlencoded",!1),Xe$2.getAdapter(vn.adapter||H$2.adapter)(vn).then(function(_n){return ne$2(vn),_n.data=te$1.call(vn,vn.transformResponse,_n),_n.headers=A$5.from(_n.headers),_n},function(_n){return Je$1(_n)||(ne$2(vn),_n&&_n.response&&(_n.response.data=te$1.call(vn,vn.transformResponse,_n.response),_n.response.headers=A$5.from(_n.response.headers))),Promise.reject(_n)})}const Ge$1="1.7.9",Z$3={};["object","boolean","number","function","string","symbol"].forEach((vn,_n)=>{Z$3[vn]=function(kn){return typeof kn===vn||"a"+(_n<1?"n ":" ")+vn}});const Ce$2={};Z$3.transitional=function(vn,_n,kn){function Mn(Yn,Wn){return"[Axios v"+Ge$1+"] Transitional option '"+Yn+"'"+Wn+(kn?". "+kn:"")}return(Yn,Wn,Kn)=>{if(vn===!1)throw new m$b(Mn(Wn," has been removed"+(_n?" in "+_n:"")),m$b.ERR_DEPRECATED);return _n&&!Ce$2[Wn]&&(Ce$2[Wn]=!0,console.warn(Mn(Wn," has been deprecated since v"+_n+" and will be removed in the near future"))),vn?vn(Yn,Wn,Kn):!0}},Z$3.spelling=function(vn){return(_n,kn)=>(console.warn(`${kn} is likely a misspelling of ${vn}`),!0)};function An(vn,_n,kn){if(typeof vn!="object")throw new m$b("options must be an object",m$b.ERR_BAD_OPTION_VALUE);const Mn=Object.keys(vn);let Yn=Mn.length;for(;Yn-- >0;){const Wn=Mn[Yn],Kn=_n[Wn];if(Kn){const Xn=vn[Wn],Hn=Xn===void 0||Kn(Xn,Wn,vn);if(Hn!==!0)throw new m$b("option "+Wn+" must be "+Hn,m$b.ERR_BAD_OPTION_VALUE);continue}if(kn!==!0)throw new m$b("Unknown option "+Wn,m$b.ERR_BAD_OPTION)}}const V$4={assertOptions:An,validators:Z$3},N$6=V$4.validators;let B$6=class{constructor(_n){this.defaults=_n,this.interceptors={request:new we$3,response:new we$3}}async request(_n,kn){try{return await this._request(_n,kn)}catch(Mn){if(Mn instanceof Error){let Yn={};Error.captureStackTrace?Error.captureStackTrace(Yn):Yn=new Error;const Wn=Yn.stack?Yn.stack.replace(/^.+\n/,""):"";try{Mn.stack?Wn&&!String(Mn.stack).endsWith(Wn.replace(/^.+\n.+\n/,""))&&(Mn.stack+=`
1413
+ `+Wn):Mn.stack=Wn}catch{}}throw Mn}}_request(_n,kn){typeof _n=="string"?(kn=kn||{},kn.url=_n):kn=_n||{},kn=D$3(this.defaults,kn);const{transitional:Mn,paramsSerializer:Yn,headers:Wn}=kn;Mn!==void 0&&V$4.assertOptions(Mn,{silentJSONParsing:N$6.transitional(N$6.boolean),forcedJSONParsing:N$6.transitional(N$6.boolean),clarifyTimeoutError:N$6.transitional(N$6.boolean)},!1),Yn!=null&&(a$3.isFunction(Yn)?kn.paramsSerializer={serialize:Yn}:V$4.assertOptions(Yn,{encode:N$6.function,serialize:N$6.function},!0)),V$4.assertOptions(kn,{baseUrl:N$6.spelling("baseURL"),withXsrfToken:N$6.spelling("withXSRFToken")},!0),kn.method=(kn.method||this.defaults.method||"get").toLowerCase();let Kn=Wn&&a$3.merge(Wn.common,Wn[kn.method]);Wn&&a$3.forEach(["delete","get","head","post","put","patch","common"],Nn=>{delete Wn[Nn]}),kn.headers=A$5.concat(Kn,Wn);const Xn=[];let Hn=!0;this.interceptors.request.forEach(function(Nn){typeof Nn.runWhen=="function"&&Nn.runWhen(kn)===!1||(Hn=Hn&&Nn.synchronous,Xn.unshift(Nn.fulfilled,Nn.rejected))});const qn=[];this.interceptors.response.forEach(function(Nn){qn.push(Nn.fulfilled,Nn.rejected)});let In,Dn=0,Pn;if(!Hn){const Nn=[xe$2.bind(this),void 0];for(Nn.unshift.apply(Nn,Xn),Nn.push.apply(Nn,qn),Pn=Nn.length,In=Promise.resolve(kn);Dn<Pn;)In=In.then(Nn[Dn++],Nn[Dn++]);return In}Pn=Xn.length;let Bn=kn;for(Dn=0;Dn<Pn;){const Nn=Xn[Dn++],zn=Xn[Dn++];try{Bn=Nn(Bn)}catch(Qn){zn.call(this,Qn);break}}try{In=xe$2.call(this,Bn)}catch(Nn){return Promise.reject(Nn)}for(Dn=0,Pn=qn.length;Dn<Pn;)In=In.then(qn[Dn++],qn[Dn++]);return In}getUri(_n){_n=D$3(this.defaults,_n);const kn=$e$2(_n.baseURL,_n.url);return He$2(kn,_n.params,_n.paramsSerializer)}};a$3.forEach(["delete","get","head","options"],function(vn){B$6.prototype[vn]=function(_n,kn){return this.request(D$3(kn||{},{method:vn,url:_n,data:(kn||{}).data}))}}),a$3.forEach(["post","put","patch"],function(vn){function _n(kn){return function(Mn,Yn,Wn){return this.request(D$3(Wn||{},{method:vn,headers:kn?{"Content-Type":"multipart/form-data"}:{},url:Mn,data:Yn}))}}B$6.prototype[vn]=_n(),B$6.prototype[vn+"Form"]=_n(!0)});let de$3=class Gw{constructor(_n){if(typeof _n!="function")throw new TypeError("executor must be a function.");let kn;this.promise=new Promise(function(Yn){kn=Yn});const Mn=this;this.promise.then(Yn=>{if(!Mn._listeners)return;let Wn=Mn._listeners.length;for(;Wn-- >0;)Mn._listeners[Wn](Yn);Mn._listeners=null}),this.promise.then=Yn=>{let Wn;const Kn=new Promise(Xn=>{Mn.subscribe(Xn),Wn=Xn}).then(Yn);return Kn.cancel=function(){Mn.unsubscribe(Wn)},Kn},_n(function(Yn,Wn,Kn){Mn.reason||(Mn.reason=new k$9(Yn,Wn,Kn),kn(Mn.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(_n){if(this.reason){_n(this.reason);return}this._listeners?this._listeners.push(_n):this._listeners=[_n]}unsubscribe(_n){if(!this._listeners)return;const kn=this._listeners.indexOf(_n);kn!==-1&&this._listeners.splice(kn,1)}toAbortSignal(){const _n=new AbortController,kn=Mn=>{_n.abort(Mn)};return this.subscribe(kn),_n.signal.unsubscribe=()=>this.unsubscribe(kn),_n.signal}static source(){let _n;return{token:new Gw(function(kn){_n=kn}),cancel:_n}}};function xn(vn){return function(_n){return vn.apply(null,_n)}}function Cn(vn){return a$3.isObject(vn)&&vn.isAxiosError===!0}const ce$2={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(ce$2).forEach(([vn,_n])=>{ce$2[_n]=vn});function Qe$1(vn){const _n=new B$6(vn),kn=Ne$2(B$6.prototype.request,_n);return a$3.extend(kn,B$6.prototype,_n,{allOwnKeys:!0}),a$3.extend(kn,_n,null,{allOwnKeys:!0}),kn.create=function(Mn){return Qe$1(D$3(vn,Mn))},kn}const S$a=Qe$1(H$2);S$a.Axios=B$6,S$a.CanceledError=k$9,S$a.CancelToken=de$3,S$a.isCancel=Je$1,S$a.VERSION=Ge$1,S$a.toFormData=G$1,S$a.AxiosError=m$b,S$a.Cancel=S$a.CanceledError,S$a.all=function(vn){return Promise.all(vn)},S$a.spread=xn,S$a.isAxiosError=Cn,S$a.mergeConfig=D$3,S$a.AxiosHeaders=A$5,S$a.formToJSON=vn=>ze$2(a$3.isHTMLForm(vn)?new FormData(vn):vn),S$a.getAdapter=Xe$2.getAdapter,S$a.HttpStatusCode=ce$2,S$a.default=S$a;const S$9={props:{uuid:String,cmdUser:String,cmdString:String,persistent:{type:Boolean,default:!1},modelValue:Boolean},data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.modelValue},set(vn){this.$emit("update:modelValue",vn)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},beforeUnmount(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},watch:{modelValue:function(vn,_n){vn?(Ik.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then(kn=>{kn.data.status==="ok"&&(this.canApprove=!0)}),this.updater=setInterval(()=>{this.uuid?Ik.get("/openc3-api/criticalcmd/status/"+this.uuid).then(kn=>{kn.data.status!=="WAITING"&&(this.$emit("status",kn.data.status),this.show=!1)}):this.show=!1},1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},methods:{async approve(){if(this.canApprove)await Ik.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then(vn=>{vn.status==200&&(this.$emit("status","APPROVED"),this.show=!1,this.error=!1)});else{let vn=await this.getKeycloakToken();S$a.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:vn,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then(_n=>{this.$emit("status","APPROVED"),this.show=!1,this.error=!1}).catch(_n=>{this.error=!0,_n.response?this.errorText=_n.response.data.message:this.errorText=_n.message})}},async reject(){if(this.canApprove)await Ik.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then(vn=>{vn.status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)});else{let vn=await this.getKeycloakToken();(await S$a.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:vn,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3})).status==200&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)}},async getKeycloakToken(){return(await S$a.post(localStorage.keycloakUrl+"/realms/"+localStorage.keycloakRealm+"/protocol/openid-connect/token",{username:this.username,password:this.password,client_id:localStorage.keycloakClientId,grant_type:"password",scope:"openid"},{headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:5e3})).data.access_token}}};function E$3(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-spacer"),Xn=vue.resolveComponent("v-toolbar"),Hn=vue.resolveComponent("v-alert"),qn=vue.resolveComponent("v-row"),In=vue.resolveComponent("v-text-field"),Dn=vue.resolveComponent("v-btn"),Pn=vue.resolveComponent("v-container"),Bn=vue.resolveComponent("v-card-text"),Nn=vue.resolveComponent("v-card"),zn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(zn,{persistent:kn.persistent,modelValue:Wn.show,"onUpdate:modelValue":_n[3]||(_n[3]=Qn=>Wn.show=Qn),width:"600"},{default:vue.withCtx(()=>[vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(Kn),_n[4]||(_n[4]=vue.createElementVNode("span",null," Waiting for Critical Command Approval ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(Bn,null,{default:vue.withCtx(()=>[vue.createVNode(Pn,{fluid:""},{default:vue.withCtx(()=>[vue.createVNode(Hn,{type:"error",modelValue:Yn.error,"onUpdate:modelValue":_n[0]||(_n[0]=Qn=>Yn.error=Qn),dismissible:""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.errorText),1)]),_:1},8,["modelValue"]),vue.createVNode(qn,{class:"pt-4",style:{color:"white"}},{default:vue.withCtx(()=>[vue.createTextVNode("User "+vue.toDisplayString(kn.cmdUser)+" is waiting for approval to execute: ",1)]),_:1}),vue.createVNode(qn,{class:"pa-4",style:{color:"white"}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(kn.cmdString),1)]),_:1}),vue.createVNode(qn,{class:"text-subtitle-2"},{default:vue.withCtx(()=>[vue.createTextVNode("UUID: "+vue.toDisplayString(kn.uuid),1)]),_:1}),Yn.canApprove?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(qn,{key:0},{default:vue.withCtx(()=>[vue.createVNode(In,{modelValue:Yn.username,"onUpdate:modelValue":_n[1]||(_n[1]=Qn=>Yn.username=Qn),label:"Username","data-test":"username"},null,8,["modelValue"])]),_:1})),Yn.canApprove?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(qn,{key:1},{default:vue.withCtx(()=>[vue.createVNode(In,{modelValue:Yn.password,"onUpdate:modelValue":_n[2]||(_n[2]=Qn=>Yn.password=Qn),type:"password",label:"Password","data-test":"password"},null,8,["modelValue"])]),_:1})),vue.createVNode(qn,{class:"pt-2"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vue.createVNode(Dn,{type:"submit",onClick:vue.withModifiers(Wn.reject,["prevent"]),class:"mx-2",color:"secondary",outlined:"",disabled:Wn.disableButtons,"data-test":"reject"},{default:vue.withCtx(()=>_n[5]||(_n[5]=[vue.createTextVNode(" Reject ")])),_:1},8,["onClick","disabled"]),vue.createVNode(Dn,{type:"submit",onClick:vue.withModifiers(Wn.approve,["prevent"]),class:"mx-2",color:"primary",disabled:Wn.disableButtons,"data-test":"approve"},{default:vue.withCtx(()=>_n[6]||(_n[6]=[vue.createTextVNode(" Approve ")])),_:1},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["persistent","modelValue"])}const N$5=s$3(S$9,[["render",E$3],["__scopeId","data-v-edfbf188"]]),R$4={props:{type:{default:"tlm",validator:function(vn){return["cmd","tlm"].indexOf(vn)!==-1}},targetName:String,packetName:String,itemName:String,modelValue:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.modelValue},set(vn){this.$emit("update:modelValue",vn)}}},created(){this.api=new Fk},beforeUnmount(){clearInterval(this.updater),this.updater=null},watch:{modelValue:function(vn,_n){vn?(this.requestDetails(),this.type==="tlm"&&(this.updater=setInterval(()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then(kn=>{for(let Mn of kn){let Yn=null;if(Mn[0].json_class==="String"&&Mn[0].raw!==void 0?Yn=Mn[0].raw:this.details.data_type==="BLOCK"&&(Yn=Mn[0]),Yn!==null){Yn=Yn.slice(0,parseInt(this.details.bit_size)/8);let Wn=!1;Yn.length>64&&(Wn=!0),Mn[0]=Array.from(Yn.slice(0,64),function(Kn){return Kn===" "?"20":("0"+(Kn&255).toString(16)).slice(-2)}).join(" ").toUpperCase(),Wn&&(Mn[0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${kn[0][0]} (0x${kn[0][0].toString(16).toUpperCase()})`:this.rawValue=kn[0][0],this.convertedValue=kn[1][0],this.formattedValue=kn[2][0],this.unitsValue=kn[3][0]})},1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{hasLimits(vn){let _n=!1;return vn.limits.DEFAULT&&(_n=!0),vn.states&&Object.getOwnPropertyNames(vn.states).forEach(kn=>{vn.states[kn].color&&(_n=!0)}),_n},async requestDetails(){this.type==="tlm"?await this.api.get_item(this.targetName,this.packetName,this.itemName).then(vn=>{this.details=vn,this.hasLimits(vn)||(this.details.limits=null)}):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then(vn=>{this.details=vn})},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(vn){return vn.hasOwnProperty("green_low")?"RL/"+vn.red_low+" YL/"+vn.yellow_low+" YH/"+vn.yellow_high+" RH/"+vn.red_high+" GL/"+vn.green_low+" GH/"+vn.green_high:vn.hasOwnProperty("red_low")?"RL/"+vn.red_low+" YL/"+vn.yellow_low+" YH/"+vn.yellow_high+" RH/"+vn.red_high:vn}}},T$4={key:5},z$9={key:7},B$5={key:3},A$4={key:9};function F$4(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-spacer"),Xn=vue.resolveComponent("v-toolbar"),Hn=vue.resolveComponent("v-card-title"),qn=vue.resolveComponent("v-card-subtitle"),In=vue.resolveComponent("v-col"),Dn=vue.resolveComponent("v-row"),Pn=vue.resolveComponent("v-switch"),Bn=vue.resolveComponent("v-container"),Nn=vue.resolveComponent("v-card-text"),zn=vue.resolveComponent("v-card"),Qn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(Qn,{modelValue:Wn.show,"onUpdate:modelValue":_n[1]||(_n[1]=Jn=>Wn.show=Jn),width:"700"},{default:vue.withCtx(()=>[vue.createVNode(zn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,{height:24},{default:vue.withCtx(()=>[vue.createVNode(Kn),_n[2]||(_n[2]=vue.createElementVNode("span",null," Details ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(Hn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(kn.targetName)+" "+vue.toDisplayString(kn.packetName)+" "+vue.toDisplayString(kn.itemName),1)]),_:1}),vue.createVNode(qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.description),1)]),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{fluid:""},{default:vue.withCtx(()=>[kn.type==="tlm"?(vue.openBlock(),vue.createBlock(Dn,{key:0,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[3]||(_n[3]=[vue.createTextVNode("Item Values")])),_:1}),vue.createVNode(In)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"1"}),vue.createVNode(In,{cols:"4",class:"label"},{default:vue.withCtx(()=>_n[4]||(_n[4]=[vue.createTextVNode("Raw Value")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.rawValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"1"}),vue.createVNode(In,{cols:"4",class:"label"},{default:vue.withCtx(()=>_n[5]||(_n[5]=[vue.createTextVNode("Converted Value")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.convertedValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"1"}),vue.createVNode(In,{cols:"4",class:"label"},{default:vue.withCtx(()=>_n[6]||(_n[6]=[vue.createTextVNode("Formatted Value")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.formattedValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"1"}),vue.createVNode(In,{cols:"4",class:"label"},{default:vue.withCtx(()=>_n[7]||(_n[7]=[vue.createTextVNode("With Units Value")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.unitsValue),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[8]||(_n[8]=[vue.createTextVNode("Bit Offset")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.bit_offset),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[9]||(_n[9]=[vue.createTextVNode("Bit Size")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.bit_size),1)]),_:1})]),_:1}),Yn.details.array_size?(vue.openBlock(),vue.createBlock(Dn,{key:1,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[10]||(_n[10]=[vue.createTextVNode("Array Size")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.array_size),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[11]||(_n[11]=[vue.createTextVNode("Data Type")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.data_type),1)]),_:1})]),_:1}),kn.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:2,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[12]||(_n[12]=[vue.createTextVNode("Minimum")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.minimum),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),kn.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:3,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[13]||(_n[13]=[vue.createTextVNode("Maximum")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.maximum),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),kn.type==="cmd"?(vue.openBlock(),vue.createBlock(Dn,{key:4,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[14]||(_n[14]=[vue.createTextVNode("Default")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.default),1)]),_:1})]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[15]||(_n[15]=[vue.createTextVNode("Format String")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.format_string),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[16]||(_n[16]=[vue.createTextVNode("Read Conversion")])),_:1}),Yn.details.read_conversion?(vue.openBlock(),vue.createBlock(In,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(" Class: "+vue.toDisplayString(Yn.details.read_conversion.class)+" ",1),_n[17]||(_n[17]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" Params: "+vue.toDisplayString(Yn.details.read_conversion.params),1)]),_:1})):(vue.openBlock(),vue.createBlock(In,{key:1}))]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[18]||(_n[18]=[vue.createTextVNode("Write Conversion")])),_:1}),Yn.details.write_conversion?(vue.openBlock(),vue.createBlock(In,{key:0},{default:vue.withCtx(()=>[vue.createTextVNode(" Class: "+vue.toDisplayString(Yn.details.write_conversion.class)+" ",1),_n[19]||(_n[19]=vue.createElementVNode("br",null,null,-1)),vue.createTextVNode(" Params: "+vue.toDisplayString(Yn.details.write_conversion.params),1)]),_:1})):(vue.openBlock(),vue.createBlock(In,{key:1}))]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[20]||(_n[20]=[vue.createTextVNode("Id Value")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.id_value),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[21]||(_n[21]=[vue.createTextVNode("Units Full")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.units_full),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[22]||(_n[22]=[vue.createTextVNode("Units Abbr")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.units),1)]),_:1})]),_:1}),vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[23]||(_n[23]=[vue.createTextVNode("Endianness")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.details.endianness),1)]),_:1})]),_:1}),Yn.details.states?(vue.openBlock(),vue.createElementBlock("div",T$4,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[24]||(_n[24]=[vue.createTextVNode("States")])),_:1}),vue.createVNode(In)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Yn.details.states,(Jn,ti)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:ti},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"1"}),vue.createVNode(In,{cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ti),1)]),_:2},1024),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Jn.value),1)]),_:2},1024)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:6,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[25]||(_n[25]=[vue.createTextVNode("States")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>_n[26]||(_n[26]=[vue.createTextVNode("None")])),_:1})]),_:1})),Yn.details.limits?(vue.openBlock(),vue.createElementBlock("div",z$9,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[27]||(_n[27]=[vue.createTextVNode("Limits")])),_:1}),vue.createVNode(In)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Yn.details.limits,(Jn,ti)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:ti},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"1"}),ti==="enabled"?(vue.openBlock(),vue.createBlock(In,{key:0,cols:"4",class:"label"},{default:vue.withCtx(()=>_n[28]||(_n[28]=[vue.createTextVNode("Enabled")])),_:1})):vue.createCommentVNode("",!0),ti==="enabled"?(vue.openBlock(),vue.createBlock(Pn,{key:1,modelValue:Yn.details.limits.enabled,"onUpdate:modelValue":[_n[0]||(_n[0]=vi=>Yn.details.limits.enabled=vi),Wn.changeLimitsEnabled],density:"compact",color:"primary",class:"compact-switch","hide-details":""},null,8,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),ti!=="enabled"?(vue.openBlock(),vue.createBlock(In,{key:2,cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ti),1)]),_:2},1024)):vue.createCommentVNode("",!0),ti!=="enabled"?(vue.openBlock(),vue.createElementBlock("div",B$5,vue.toDisplayString(Wn.formatLimit(Jn)),1)):vue.createCommentVNode("",!0),vue.createVNode(In)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:8,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[29]||(_n[29]=[vue.createTextVNode("Limits")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>_n[30]||(_n[30]=[vue.createTextVNode("None")])),_:1})]),_:1})),Yn.details.meta?(vue.openBlock(),vue.createElementBlock("div",A$4,[vue.createVNode(Dn,{"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[31]||(_n[31]=[vue.createTextVNode("Meta")])),_:1}),vue.createVNode(In)]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Yn.details.meta,(Jn,ti)=>(vue.openBlock(),vue.createBlock(Dn,{"no-gutters":"",key:ti},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"1"}),vue.createVNode(In,{cols:"4",class:"label"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ti),1)]),_:2},1024),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Jn.join(", ")),1)]),_:2},1024)]),_:2},1024))),128))])):(vue.openBlock(),vue.createBlock(Dn,{key:10,"no-gutters":""},{default:vue.withCtx(()=>[vue.createVNode(In,{cols:"5",class:"label"},{default:vue.withCtx(()=>_n[32]||(_n[32]=[vue.createTextVNode("Meta")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>_n[33]||(_n[33]=[vue.createTextVNode("None")])),_:1})]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const P$2=s$3(R$4,[["render",F$4],["__scopeId","data-v-785491ee"]]);function q$2(vn,_n,kn){const Mn=l$5(vn,void 0);return Mn.setTime(Mn.getTime()+_n*6e4),Mn}function B$4(){return Object.assign({},v$a())}function Q$1(vn,_n){const kn=()=>y$c(void 0,NaN),Mn=te(vn);let Yn;if(Mn.date){const Hn=ne$1(Mn.date,2);Yn=re$1(Hn.restDateString,Hn.year)}if(!Yn||isNaN(+Yn))return kn();const Wn=+Yn;let Kn=0,Xn;if(Mn.time&&(Kn=ae$1(Mn.time),isNaN(Kn)))return kn();if(Mn.timezone){if(Xn=se(Mn.timezone),isNaN(Xn))return kn()}else{const Hn=new Date(Wn+Kn),qn=l$5(0,void 0);return qn.setFullYear(Hn.getUTCFullYear(),Hn.getUTCMonth(),Hn.getUTCDate()),qn.setHours(Hn.getUTCHours(),Hn.getUTCMinutes(),Hn.getUTCSeconds(),Hn.getUTCMilliseconds()),qn}return l$5(Wn+Kn+Xn,void 0)}const D$2={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},V$3=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,K$3=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ee=/^([+-])(\d{2})(?::?(\d{2}))?$/;function te(vn){const _n={},kn=vn.split(D$2.dateTimeDelimiter);let Mn;if(kn.length>2)return _n;if(/:/.test(kn[0])?Mn=kn[0]:(_n.date=kn[0],Mn=kn[1],D$2.timeZoneDelimiter.test(_n.date)&&(_n.date=vn.split(D$2.timeZoneDelimiter)[0],Mn=vn.substr(_n.date.length,vn.length))),Mn){const Yn=D$2.timezone.exec(Mn);Yn?(_n.time=Mn.replace(Yn[1],""),_n.timezone=Yn[1]):_n.time=Mn}return _n}function ne$1(vn,_n){const kn=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+_n)+"})|(\\d{2}|[+-]\\d{"+(2+_n)+"})$)"),Mn=vn.match(kn);if(!Mn)return{year:NaN,restDateString:""};const Yn=Mn[1]?parseInt(Mn[1]):null,Wn=Mn[2]?parseInt(Mn[2]):null;return{year:Wn===null?Yn:Wn*100,restDateString:vn.slice((Mn[1]||Mn[2]).length)}}function re$1(vn,_n){if(_n===null)return new Date(NaN);const kn=vn.match(V$3);if(!kn)return new Date(NaN);const Mn=!!kn[4],Yn=d$c(kn[1]),Wn=d$c(kn[2])-1,Kn=d$c(kn[3]),Xn=d$c(kn[4]),Hn=d$c(kn[5])-1;if(Mn)return fe$2(_n,Xn,Hn)?ie(_n,Xn,Hn):new Date(NaN);{const qn=new Date(0);return!ue$2(_n,Wn,Kn)||!ce$1(_n,Yn)?new Date(NaN):(qn.setUTCFullYear(_n,Wn,Math.max(Yn,Kn)),qn)}}function d$c(vn){return vn?parseInt(vn):1}function ae$1(vn){const _n=vn.match(K$3);if(!_n)return NaN;const kn=p$c(_n[1]),Mn=p$c(_n[2]),Yn=p$c(_n[3]);return le$2(kn,Mn,Yn)?kn*36e5+Mn*6e4+Yn*1e3:NaN}function p$c(vn){return vn&&parseFloat(vn.replace(",","."))||0}function se(vn){if(vn==="Z")return 0;const _n=vn.match(ee);if(!_n)return 0;const kn=_n[1]==="+"?-1:1,Mn=parseInt(_n[2]),Yn=_n[3]&&parseInt(_n[3])||0;return me$2(Mn,Yn)?kn*(Mn*36e5+Yn*6e4):NaN}function ie(vn,_n,kn){const Mn=new Date(0);Mn.setUTCFullYear(vn,0,4);const Yn=Mn.getUTCDay()||7,Wn=(_n-1)*7+kn+1-Yn;return Mn.setUTCDate(Mn.getUTCDate()+Wn),Mn}const oe$1=[31,null,31,30,31,30,31,31,30,31,30,31];function v$8(vn){return vn%400===0||vn%4===0&&vn%100!==0}function ue$2(vn,_n,kn){return _n>=0&&_n<=11&&kn>=1&&kn<=(oe$1[_n]||(v$8(vn)?29:28))}function ce$1(vn,_n){return _n>=1&&_n<=(v$8(vn)?366:365)}function fe$2(vn,_n,kn){return _n>=1&&_n<=53&&kn>=0&&kn<=6}function le$2(vn,_n,kn){return vn===24?_n===0&&kn===0:kn>=0&&kn<60&&_n>=0&&_n<60&&vn>=0&&vn<25}function me$2(vn,_n){return _n>=0&&_n<=59}function de$2(vn,_n,kn){return q$2(vn,-_n)}function H$1(vn,_n,kn){const Mn=B$4(),Yn=Ne$1(vn,kn.timeZone,kn.locale??Mn.locale);return"formatToParts"in Yn?De$2(Yn,_n):Te$2(Yn,_n)}function De$2(vn,_n){const kn=vn.formatToParts(_n);for(let Mn=kn.length-1;Mn>=0;--Mn)if(kn[Mn].type==="timeZoneName")return kn[Mn].value}function Te$2(vn,_n){const kn=vn.format(_n).replace(/\u200E/g,""),Mn=/ [\w-+ ]+$/.exec(kn);return Mn?Mn[0].substr(1):""}function Ne$1(vn,_n,kn){return new Intl.DateTimeFormat(kn?[kn.code,"en-US"]:void 0,{timeZone:_n,timeZoneName:vn})}function ge$2(vn,_n){const kn=Me$1(_n);return"formatToParts"in kn?he$2(kn,vn):Ie$1(kn,vn)}const pe$2={year:0,month:1,day:2,hour:3,minute:4,second:5};function he$2(vn,_n){try{const kn=vn.formatToParts(_n),Mn=[];for(let Yn=0;Yn<kn.length;Yn++){const Wn=pe$2[kn[Yn].type];Wn!==void 0&&(Mn[Wn]=parseInt(kn[Yn].value,10))}return Mn}catch(kn){if(kn instanceof RangeError)return[NaN];throw kn}}function Ie$1(vn,_n){const kn=vn.format(_n),Mn=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(kn);return[parseInt(Mn[3],10),parseInt(Mn[1],10),parseInt(Mn[2],10),parseInt(Mn[4],10),parseInt(Mn[5],10),parseInt(Mn[6],10)]}const h$g={},F$3=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),we$2=F$3==="06/25/2014, 00:00:00"||F$3==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function Me$1(vn){return h$g[vn]||(h$g[vn]=we$2?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:vn,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:vn,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),h$g[vn]}function k$8(vn,_n,kn,Mn,Yn,Wn,Kn){const Xn=new Date(0);return Xn.setUTCFullYear(vn,_n,kn),Xn.setUTCHours(Mn,Yn,Wn,Kn),Xn}const y$b=36e5,Ye$1=6e4,I$5={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function z$8(vn,_n,kn){if(!vn)return 0;let Mn=I$5.timezoneZ.exec(vn);if(Mn)return 0;let Yn,Wn;if(Mn=I$5.timezoneHH.exec(vn),Mn)return Yn=parseInt(Mn[1],10),Z$2(Yn)?-(Yn*y$b):NaN;if(Mn=I$5.timezoneHHMM.exec(vn),Mn){Yn=parseInt(Mn[2],10);const Kn=parseInt(Mn[3],10);return Z$2(Yn,Kn)?(Wn=Math.abs(Yn)*y$b+Kn*Ye$1,Mn[1]==="+"?-Wn:Wn):NaN}if(Ue$1(vn)){_n=new Date(_n||Date.now());const Kn=kn?_n:Oe$1(_n),Xn=U$3(Kn,vn);return-(kn?Xn:xe$1(_n,Xn,vn))}return NaN}function Oe$1(vn){return k$8(vn.getFullYear(),vn.getMonth(),vn.getDate(),vn.getHours(),vn.getMinutes(),vn.getSeconds(),vn.getMilliseconds())}function U$3(vn,_n){const kn=ge$2(vn,_n),Mn=k$8(kn[0],kn[1]-1,kn[2],kn[3]%24,kn[4],kn[5],0).getTime();let Yn=vn.getTime();const Wn=Yn%1e3;return Yn-=Wn>=0?Wn:1e3+Wn,Mn-Yn}function xe$1(vn,_n,kn){let Mn=vn.getTime()-_n;const Yn=U$3(new Date(Mn),kn);if(_n===Yn)return _n;Mn-=Yn-_n;const Wn=U$3(new Date(Mn),kn);return Yn===Wn?Yn:Math.max(Yn,Wn)}function Z$2(vn,_n){return-23<=vn&&vn<=23&&(_n==null||0<=_n&&_n<=59)}const b$7={};function Ue$1(vn){if(b$7[vn])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:vn}),b$7[vn]=!0,!0}catch{return!1}}const Ce$1=60*1e3,$e$1={X:function(vn,_n,kn){const Mn=w$6(kn.timeZone,vn);if(Mn===0)return"Z";switch(_n){case"X":return S$8(Mn);case"XXXX":case"XX":return m$a(Mn);case"XXXXX":case"XXX":default:return m$a(Mn,":")}},x:function(vn,_n,kn){const Mn=w$6(kn.timeZone,vn);switch(_n){case"x":return S$8(Mn);case"xxxx":case"xx":return m$a(Mn);case"xxxxx":case"xxx":default:return m$a(Mn,":")}},O:function(vn,_n,kn){const Mn=w$6(kn.timeZone,vn);switch(_n){case"O":case"OO":case"OOO":return"GMT"+ze$1(Mn,":");case"OOOO":default:return"GMT"+m$a(Mn,":")}},z:function(vn,_n,kn){switch(_n){case"z":case"zz":case"zzz":return H$1("short",vn,kn);case"zzzz":default:return H$1("long",vn,kn)}}};function w$6(vn,_n){const kn=vn?z$8(vn,_n,!0)/Ce$1:(_n==null?void 0:_n.getTimezoneOffset())??0;if(Number.isNaN(kn))throw new RangeError("Invalid time zone specified: "+vn);return kn}function N$4(vn,_n){const kn=vn<0?"-":"";let Mn=Math.abs(vn).toString();for(;Mn.length<_n;)Mn="0"+Mn;return kn+Mn}function m$a(vn,_n=""){const kn=vn>0?"-":"+",Mn=Math.abs(vn),Yn=N$4(Math.floor(Mn/60),2),Wn=N$4(Math.floor(Mn%60),2);return kn+Yn+_n+Wn}function S$8(vn,_n){return vn%60===0?(vn>0?"-":"+")+N$4(Math.abs(vn)/60,2):m$a(vn,_n)}function ze$1(vn,_n=""){const kn=vn>0?"-":"+",Mn=Math.abs(vn),Yn=Math.floor(Mn/60),Wn=Mn%60;return Wn===0?kn+String(Yn):kn+String(Yn)+_n+N$4(Wn,2)}function _$8(vn){const _n=new Date(Date.UTC(vn.getFullYear(),vn.getMonth(),vn.getDate(),vn.getHours(),vn.getMinutes(),vn.getSeconds(),vn.getMilliseconds()));return _n.setUTCFullYear(vn.getFullYear()),+vn-+_n}const He$1=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,M$3=36e5,L$3=6e4,Fe$1=2,f$f={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:He$1};function P$1(vn,_n={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(vn===null)return new Date(NaN);const kn=_n.additionalDigits==null?Fe$1:Number(_n.additionalDigits);if(kn!==2&&kn!==1&&kn!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(vn instanceof Date||typeof vn=="object"&&Object.prototype.toString.call(vn)==="[object Date]")return new Date(vn.getTime());if(typeof vn=="number"||Object.prototype.toString.call(vn)==="[object Number]")return new Date(vn);if(Object.prototype.toString.call(vn)!=="[object String]")return new Date(NaN);const Mn=ye$2(vn),{year:Yn,restDateString:Wn}=Ze$1(Mn.date,kn),Kn=be$2(Wn,Yn);if(Kn===null||isNaN(Kn.getTime()))return new Date(NaN);if(Kn){const Xn=Kn.getTime();let Hn=0,qn;if(Mn.time&&(Hn=Se$2(Mn.time),Hn===null||isNaN(Hn)))return new Date(NaN);if(Mn.timeZone||_n.timeZone){if(qn=z$8(Mn.timeZone||_n.timeZone,new Date(Xn+Hn)),isNaN(qn))return new Date(NaN)}else qn=_$8(new Date(Xn+Hn)),qn=_$8(new Date(Xn+Hn+qn));return new Date(Xn+Hn+qn)}else return new Date(NaN)}function ye$2(vn){const _n={};let kn=f$f.dateTimePattern.exec(vn),Mn;if(kn?(_n.date=kn[1],Mn=kn[3]):(kn=f$f.datePattern.exec(vn),kn?(_n.date=kn[1],Mn=kn[2]):(_n.date=null,Mn=vn)),Mn){const Yn=f$f.timeZone.exec(Mn);Yn?(_n.time=Mn.replace(Yn[1],""),_n.timeZone=Yn[1].trim()):_n.time=Mn}return _n}function Ze$1(vn,_n){if(vn){const kn=f$f.YYY[_n],Mn=f$f.YYYYY[_n];let Yn=f$f.YYYY.exec(vn)||Mn.exec(vn);if(Yn){const Wn=Yn[1];return{year:parseInt(Wn,10),restDateString:vn.slice(Wn.length)}}if(Yn=f$f.YY.exec(vn)||kn.exec(vn),Yn){const Wn=Yn[1];return{year:parseInt(Wn,10)*100,restDateString:vn.slice(Wn.length)}}}return{year:null}}function be$2(vn,_n){if(_n===null)return null;let kn,Mn,Yn;if(!vn||!vn.length)return kn=new Date(0),kn.setUTCFullYear(_n),kn;let Wn=f$f.MM.exec(vn);if(Wn)return kn=new Date(0),Mn=parseInt(Wn[1],10)-1,W$2(_n,Mn)?(kn.setUTCFullYear(_n,Mn),kn):new Date(NaN);if(Wn=f$f.DDD.exec(vn),Wn){kn=new Date(0);const Kn=parseInt(Wn[1],10);return Ee$1(_n,Kn)?(kn.setUTCFullYear(_n,0,Kn),kn):new Date(NaN)}if(Wn=f$f.MMDD.exec(vn),Wn){kn=new Date(0),Mn=parseInt(Wn[1],10)-1;const Kn=parseInt(Wn[2],10);return W$2(_n,Mn,Kn)?(kn.setUTCFullYear(_n,Mn,Kn),kn):new Date(NaN)}if(Wn=f$f.Www.exec(vn),Wn)return Yn=parseInt(Wn[1],10)-1,X$1(Yn)?E$2(_n,Yn):new Date(NaN);if(Wn=f$f.WwwD.exec(vn),Wn){Yn=parseInt(Wn[1],10)-1;const Kn=parseInt(Wn[2],10)-1;return X$1(Yn,Kn)?E$2(_n,Yn,Kn):new Date(NaN)}return null}function Se$2(vn){let _n,kn,Mn=f$f.HH.exec(vn);if(Mn)return _n=parseFloat(Mn[1].replace(",",".")),Y$1(_n)?_n%24*M$3:NaN;if(Mn=f$f.HHMM.exec(vn),Mn)return _n=parseInt(Mn[1],10),kn=parseFloat(Mn[2].replace(",",".")),Y$1(_n,kn)?_n%24*M$3+kn*L$3:NaN;if(Mn=f$f.HHMMSS.exec(vn),Mn){_n=parseInt(Mn[1],10),kn=parseInt(Mn[2],10);const Yn=parseFloat(Mn[3].replace(",","."));return Y$1(_n,kn,Yn)?_n%24*M$3+kn*L$3+Yn*1e3:NaN}return null}function E$2(vn,_n,kn){_n=_n||0,kn=kn||0;const Mn=new Date(0);Mn.setUTCFullYear(vn,0,4);const Yn=Mn.getUTCDay()||7,Wn=_n*7+kn+1-Yn;return Mn.setUTCDate(Mn.getUTCDate()+Wn),Mn}const _e$1=[31,28,31,30,31,30,31,31,30,31,30,31],Le$1=[31,29,31,30,31,30,31,31,30,31,30,31];function R$3(vn){return vn%400===0||vn%4===0&&vn%100!==0}function W$2(vn,_n,kn){if(_n<0||_n>11)return!1;if(kn!=null){if(kn<1)return!1;const Mn=R$3(vn);if(Mn&&kn>Le$1[_n]||!Mn&&kn>_e$1[_n])return!1}return!0}function Ee$1(vn,_n){if(_n<1)return!1;const kn=R$3(vn);return!(kn&&_n>366||!kn&&_n>365)}function X$1(vn,_n){return!(vn<0||vn>52||_n!=null&&(_n<0||_n>6))}function Y$1(vn,_n,kn){return!(vn<0||vn>=25||_n!=null&&(_n<0||_n>=60)||kn!=null&&(kn<0||kn>=60))}const We$1=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Xe$1(vn,_n,kn={}){_n=String(_n);const Mn=_n.match(We$1);if(Mn){const Yn=P$1(kn.originalDate||vn,kn);_n=Mn.reduce(function(Wn,Kn){if(Kn[0]==="'")return Wn;const Xn=Wn.indexOf(Kn),Hn=Wn[Xn-1]==="'",qn=Wn.replace(Kn,"'"+$e$1[Kn[0]](Yn,Kn,kn)+"'");return Hn?qn.substring(0,Xn-1)+qn.substring(Xn+1):qn},_n)}return pe$3(vn,_n,kn)}function Ae$1(vn,_n,kn){vn=P$1(vn,kn);const Mn=z$8(_n,vn,!0),Yn=new Date(vn.getTime()-Mn),Wn=new Date(0);return Wn.setFullYear(Yn.getUTCFullYear(),Yn.getUTCMonth(),Yn.getUTCDate()),Wn.setHours(Yn.getUTCHours(),Yn.getUTCMinutes(),Yn.getUTCSeconds(),Yn.getUTCMilliseconds()),Wn}function O$2(vn,_n,kn,Mn){return Mn={...Mn,timeZone:_n,originalDate:vn},Xe$1(Ae$1(vn,_n,{timeZone:Mn.timeZone}),kn,Mn)}const C$2="yyyy-MM-dd",j$2="HH:mm:ss.SSS",ve$2="HH:mm:ss",T$3=`${C$2} ${j$2}`,Pe$1={methods:{parseDateTime(vn,_n){return vn.includes(" ")&&(vn=vn.replace(" ","T")),_n&&_n==="UTC"&&(vn+="Z"),Date.parse(vn)},formatUtcToLocal(vn,_n){return pe$3(!_n||_n==="local"?de$2(vn,vn.getTimezoneOffset()):vn,T$3)},formatDateTime(vn,_n){return!_n||_n==="local"?pe$3(vn,T$3):O$2(vn,_n,T$3)},formatDate:function(vn,_n){return!_n||_n==="local"?pe$3(vn,C$2):O$2(vn,this.timeZone,C$2)},formatTime:function(vn,_n,kn=j$2){return!_n||_n==="local"?pe$3(vn,kn):O$2(vn,this.timeZone,kn)},formatTimeHMS:function(vn,_n){return this.formatTime(vn,_n,ve$2)},formatTimestamp(vn,_n){return this.formatDateTime(Q$1(vn),_n)},formatSeconds(vn,_n){return this.formatDateTime(new Date(vn*1e3),_n)},formatNanoseconds(vn,_n){return this.formatDateTime(new Date(parseInt(vn)/1e6),_n)}}};var j$1=Object.defineProperty,U$2=(vn,_n,kn)=>_n in vn?j$1(vn,_n,{enumerable:!0,configurable:!0,writable:!0,value:kn}):vn[_n]=kn,i$2=(vn,_n,kn)=>U$2(vn,typeof _n!="symbol"?_n+"":_n,kn);function z$7(vn,_n,kn){const Mn=l$5(vn,kn==null?void 0:kn.in);return isNaN(_n)?y$c((kn==null?void 0:kn.in)||vn,NaN):(_n&&Mn.setDate(Mn.getDate()+_n),Mn)}function ue$1(vn,_n){const kn=l$5(vn,void 0).getDay();return kn===0?7:kn}function le$1(vn,_n){const kn=de$1(_n)?new _n(0):y$c(_n,0);return kn.setFullYear(vn.getFullYear(),vn.getMonth(),vn.getDate()),kn.setHours(vn.getHours(),vn.getMinutes(),vn.getSeconds(),vn.getMilliseconds()),kn}function de$1(vn){var _n;return typeof vn=="function"&&((_n=vn.prototype)==null?void 0:_n.constructor)===vn}const we$1=10;let Z$1=class{constructor(){i$2(this,"subPriority",0)}validate(_n,kn){return!0}},fe$1=class extends Z$1{constructor(_n,kn,Mn,Yn,Wn){super(),this.value=_n,this.validateValue=kn,this.setValue=Mn,this.priority=Yn,Wn&&(this.subPriority=Wn)}validate(_n,kn){return this.validateValue(_n,this.value,kn)}set(_n,kn,Mn){return this.setValue(_n,kn,this.value,Mn)}},he$1=class extends Z$1{constructor(_n,kn){super(),i$2(this,"priority",we$1),i$2(this,"subPriority",-1),this.context=_n||(Mn=>y$c(kn,Mn))}set(_n,kn){return kn.timestampIsSet?_n:y$c(_n,le$1(_n,this.context))}},u$c=class{run(_n,kn,Mn,Yn){const Wn=this.parse(_n,kn,Mn,Yn);return Wn?{setter:new fe$1(Wn.value,this.validate,this.set,this.priority,this.subPriority),rest:Wn.rest}:null}validate(_n,kn,Mn){return!0}},ye$1=class extends u$c{constructor(){super(...arguments),i$2(this,"priority",140),i$2(this,"incompatibleTokens",["R","u","t","T"])}parse(_n,kn,Mn){switch(kn){case"G":case"GG":case"GGG":return Mn.era(_n,{width:"abbreviated"})||Mn.era(_n,{width:"narrow"});case"GGGGG":return Mn.era(_n,{width:"narrow"});case"GGGG":default:return Mn.era(_n,{width:"wide"})||Mn.era(_n,{width:"abbreviated"})||Mn.era(_n,{width:"narrow"})}}set(_n,kn,Mn){return kn.era=Mn,_n.setFullYear(Mn,0,1),_n.setHours(0,0,0,0),_n}};const f$e={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},b$6={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function h$f(vn,_n){return vn&&{value:_n(vn.value),rest:vn.rest}}function l$4(vn,_n){const kn=_n.match(vn);return kn?{value:parseInt(kn[0],10),rest:_n.slice(kn[0].length)}:null}function m$9(vn,_n){const kn=_n.match(vn);if(!kn)return null;if(kn[0]==="Z")return{value:0,rest:_n.slice(1)};const Mn=kn[1]==="+"?1:-1,Yn=kn[2]?parseInt(kn[2],10):0,Wn=kn[3]?parseInt(kn[3],10):0,Kn=kn[5]?parseInt(kn[5],10):0;return{value:Mn*(Yn*36e5+Wn*6e4+Kn*1e3),rest:_n.slice(kn[0].length)}}function K$2(vn){return l$4(f$e.anyDigitsSigned,vn)}function w$5(vn,_n){switch(vn){case 1:return l$4(f$e.singleDigit,_n);case 2:return l$4(f$e.twoDigits,_n);case 3:return l$4(f$e.threeDigits,_n);case 4:return l$4(f$e.fourDigits,_n);default:return l$4(new RegExp("^\\d{1,"+vn+"}"),_n)}}function O$1(vn,_n){switch(vn){case 1:return l$4(f$e.singleDigitSigned,_n);case 2:return l$4(f$e.twoDigitsSigned,_n);case 3:return l$4(f$e.threeDigitsSigned,_n);case 4:return l$4(f$e.fourDigitsSigned,_n);default:return l$4(new RegExp("^-?\\d{1,"+vn+"}"),_n)}}function I$4(vn){switch(vn){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function $$6(vn,_n){const kn=_n>0,Mn=kn?_n:1-_n;let Yn;if(Mn<=50)Yn=vn||100;else{const Wn=Mn+50,Kn=Math.trunc(Wn/100)*100,Xn=vn>=Wn%100;Yn=vn+Kn-(Xn?100:0)}return kn?Yn:1-Yn}function V$2(vn){return vn%400===0||vn%4===0&&vn%100!==0}class xe extends u$c{constructor(){super(...arguments),i$2(this,"priority",130),i$2(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(_n,kn,Mn){const Yn=Wn=>({year:Wn,isTwoDigitYear:kn==="yy"});switch(kn){case"y":return h$f(w$5(4,_n),Yn);case"yo":return h$f(Mn.ordinalNumber(_n,{unit:"year"}),Yn);default:return h$f(w$5(kn.length,_n),Yn)}}validate(_n,kn){return kn.isTwoDigitYear||kn.year>0}set(_n,kn,Mn){const Yn=_n.getFullYear();if(Mn.isTwoDigitYear){const Kn=$$6(Mn.year,Yn);return _n.setFullYear(Kn,0,1),_n.setHours(0,0,0,0),_n}const Wn=!("era"in kn)||kn.era===1?Mn.year:1-Mn.year;return _n.setFullYear(Wn,0,1),_n.setHours(0,0,0,0),_n}}let be$1=class extends u$c{constructor(){super(...arguments),i$2(this,"priority",130),i$2(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(_n,kn,Mn){const Yn=Wn=>({year:Wn,isTwoDigitYear:kn==="YY"});switch(kn){case"Y":return h$f(w$5(4,_n),Yn);case"Yo":return h$f(Mn.ordinalNumber(_n,{unit:"year"}),Yn);default:return h$f(w$5(kn.length,_n),Yn)}}validate(_n,kn){return kn.isTwoDigitYear||kn.year>0}set(_n,kn,Mn,Yn){const Wn=L$5(_n,Yn);if(Mn.isTwoDigitYear){const Xn=$$6(Mn.year,Wn);return _n.setFullYear(Xn,0,Yn.firstWeekContainsDate),_n.setHours(0,0,0,0),x$4(_n,Yn)}const Kn=!("era"in kn)||kn.era===1?Mn.year:1-Mn.year;return _n.setFullYear(Kn,0,Yn.firstWeekContainsDate),_n.setHours(0,0,0,0),x$4(_n,Yn)}},me$1=class extends u$c{constructor(){super(...arguments),i$2(this,"priority",130),i$2(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(_n,kn){return O$1(kn==="R"?4:kn.length,_n)}set(_n,kn,Mn){const Yn=y$c(_n,0);return Yn.setFullYear(Mn,0,4),Yn.setHours(0,0,0,0),D$4(Yn)}},pe$1=class extends u$c{constructor(){super(...arguments),i$2(this,"priority",130),i$2(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(_n,kn){return O$1(kn==="u"?4:kn.length,_n)}set(_n,kn,Mn){return _n.setFullYear(Mn,0,1),_n.setHours(0,0,0,0),_n}},Te$1=class extends u$c{constructor(){super(...arguments),i$2(this,"priority",120),i$2(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(_n,kn,Mn){switch(kn){case"Q":case"QQ":return w$5(kn.length,_n);case"Qo":return Mn.ordinalNumber(_n,{unit:"quarter"});case"QQQ":return Mn.quarter(_n,{width:"abbreviated",context:"formatting"})||Mn.quarter(_n,{width:"narrow",context:"formatting"});case"QQQQQ":return Mn.quarter(_n,{width:"narrow",context:"formatting"});case"QQQQ":default:return Mn.quarter(_n,{width:"wide",context:"formatting"})||Mn.quarter(_n,{width:"abbreviated",context:"formatting"})||Mn.quarter(_n,{width:"narrow",context:"formatting"})}}validate(_n,kn){return kn>=1&&kn<=4}set(_n,kn,Mn){return _n.setMonth((Mn-1)*3,1),_n.setHours(0,0,0,0),_n}},De$1=class extends u$c{constructor(){super(...arguments),i$2(this,"priority",120),i$2(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(_n,kn,Mn){switch(kn){case"q":case"qq":return w$5(kn.length,_n);case"qo":return Mn.ordinalNumber(_n,{unit:"quarter"});case"qqq":return Mn.quarter(_n,{width:"abbreviated",context:"standalone"})||Mn.quarter(_n,{width:"narrow",context:"standalone"});case"qqqqq":return Mn.quarter(_n,{width:"narrow",context:"standalone"});case"qqqq":default:return Mn.quarter(_n,{width:"wide",context:"standalone"})||Mn.quarter(_n,{width:"abbreviated",context:"standalone"})||Mn.quarter(_n,{width:"narrow",context:"standalone"})}}validate(_n,kn){return kn>=1&&kn<=4}set(_n,kn,Mn){return _n.setMonth((Mn-1)*3,1),_n.setHours(0,0,0,0),_n}},ge$1=class extends u$c{constructor(){super(...arguments),i$2(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),i$2(this,"priority",110)}parse(_n,kn,Mn){const Yn=Wn=>Wn-1;switch(kn){case"M":return h$f(l$4(f$e.month,_n),Yn);case"MM":return h$f(w$5(2,_n),Yn);case"Mo":return h$f(Mn.ordinalNumber(_n,{unit:"month"}),Yn);case"MMM":return Mn.month(_n,{width:"abbreviated",context:"formatting"})||Mn.month(_n,{width:"narrow",context:"formatting"});case"MMMMM":return Mn.month(_n,{width:"narrow",context:"formatting"});case"MMMM":default:return Mn.month(_n,{width:"wide",context:"formatting"})||Mn.month(_n,{width:"abbreviated",context:"formatting"})||Mn.month(_n,{width:"narrow",context:"formatting"})}}validate(_n,kn){return kn>=0&&kn<=11}set(_n,kn,Mn){return _n.setMonth(Mn,1),_n.setHours(0,0,0,0),_n}};class ke extends u$c{constructor(){super(...arguments),i$2(this,"priority",110),i$2(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(_n,kn,Mn){const Yn=Wn=>Wn-1;switch(kn){case"L":return h$f(l$4(f$e.month,_n),Yn);case"LL":return h$f(w$5(2,_n),Yn);case"Lo":return h$f(Mn.ordinalNumber(_n,{unit:"month"}),Yn);case"LLL":return Mn.month(_n,{width:"abbreviated",context:"standalone"})||Mn.month(_n,{width:"narrow",context:"standalone"});case"LLLLL":return Mn.month(_n,{width:"narrow",context:"standalone"});case"LLLL":default:return Mn.month(_n,{width:"wide",context:"standalone"})||Mn.month(_n,{width:"abbreviated",context:"standalone"})||Mn.month(_n,{width:"narrow",context:"standalone"})}}validate(_n,kn){return kn>=0&&kn<=11}set(_n,kn,Mn){return _n.setMonth(Mn,1),_n.setHours(0,0,0,0),_n}}function Pe(vn,_n,kn){const Mn=l$5(vn,kn==null?void 0:kn.in),Yn=Ce$3(Mn,kn)-_n;return Mn.setDate(Mn.getDate()-Yn*7),l$5(Mn,kn==null?void 0:kn.in)}class Me extends u$c{constructor(){super(...arguments),i$2(this,"priority",100),i$2(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(_n,kn,Mn){switch(kn){case"w":return l$4(f$e.week,_n);case"wo":return Mn.ordinalNumber(_n,{unit:"week"});default:return w$5(kn.length,_n)}}validate(_n,kn){return kn>=1&&kn<=53}set(_n,kn,Mn,Yn){return x$4(Pe(_n,Mn,Yn),Yn)}}function _e(vn,_n,kn){const Mn=l$5(vn,void 0),Yn=Fe$3(Mn)-_n;return Mn.setDate(Mn.getDate()-Yn*7),Mn}class Ye extends u$c{constructor(){super(...arguments),i$2(this,"priority",100),i$2(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(_n,kn,Mn){switch(kn){case"I":return l$4(f$e.week,_n);case"Io":return Mn.ordinalNumber(_n,{unit:"week"});default:return w$5(kn.length,_n)}}validate(_n,kn){return kn>=1&&kn<=53}set(_n,kn,Mn){return D$4(_e(_n,Mn))}}const Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31];class He extends u$c{constructor(){super(...arguments),i$2(this,"priority",90),i$2(this,"subPriority",1),i$2(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(_n,kn,Mn){switch(kn){case"d":return l$4(f$e.date,_n);case"do":return Mn.ordinalNumber(_n,{unit:"date"});default:return w$5(kn.length,_n)}}validate(_n,kn){const Mn=_n.getFullYear(),Yn=V$2(Mn),Wn=_n.getMonth();return Yn?kn>=1&&kn<=Ee[Wn]:kn>=1&&kn<=Oe[Wn]}set(_n,kn,Mn){return _n.setDate(Mn),_n.setHours(0,0,0,0),_n}}class Ie extends u$c{constructor(){super(...arguments),i$2(this,"priority",90),i$2(this,"subpriority",1),i$2(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(_n,kn,Mn){switch(kn){case"D":case"DD":return l$4(f$e.dayOfYear,_n);case"Do":return Mn.ordinalNumber(_n,{unit:"date"});default:return w$5(kn.length,_n)}}validate(_n,kn){const Mn=_n.getFullYear();return V$2(Mn)?kn>=1&&kn<=366:kn>=1&&kn<=365}set(_n,kn,Mn){return _n.setMonth(0,Mn),_n.setHours(0,0,0,0),_n}}function q$1(vn,_n,kn){var Mn,Yn,Wn,Kn;const Xn=v$a(),Hn=(kn==null?void 0:kn.weekStartsOn)??((Yn=(Mn=kn==null?void 0:kn.locale)==null?void 0:Mn.options)==null?void 0:Yn.weekStartsOn)??Xn.weekStartsOn??((Kn=(Wn=Xn.locale)==null?void 0:Wn.options)==null?void 0:Kn.weekStartsOn)??0,qn=l$5(vn,kn==null?void 0:kn.in),In=qn.getDay(),Dn=(_n%7+7)%7,Pn=7-Hn,Bn=_n<0||_n>6?_n-(In+Pn)%7:(Dn+Pn)%7-(In+Pn)%7;return z$7(qn,Bn,kn)}class qe extends u$c{constructor(){super(...arguments),i$2(this,"priority",90),i$2(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(_n,kn,Mn){switch(kn){case"E":case"EE":case"EEE":return Mn.day(_n,{width:"abbreviated",context:"formatting"})||Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"});case"EEEEE":return Mn.day(_n,{width:"narrow",context:"formatting"});case"EEEEEE":return Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"});case"EEEE":default:return Mn.day(_n,{width:"wide",context:"formatting"})||Mn.day(_n,{width:"abbreviated",context:"formatting"})||Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"})}}validate(_n,kn){return kn>=0&&kn<=6}set(_n,kn,Mn,Yn){return _n=q$1(_n,Mn,Yn),_n.setHours(0,0,0,0),_n}}class Le extends u$c{constructor(){super(...arguments),i$2(this,"priority",90),i$2(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(_n,kn,Mn,Yn){const Wn=Kn=>{const Xn=Math.floor((Kn-1)/7)*7;return(Kn+Yn.weekStartsOn+6)%7+Xn};switch(kn){case"e":case"ee":return h$f(w$5(kn.length,_n),Wn);case"eo":return h$f(Mn.ordinalNumber(_n,{unit:"day"}),Wn);case"eee":return Mn.day(_n,{width:"abbreviated",context:"formatting"})||Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"});case"eeeee":return Mn.day(_n,{width:"narrow",context:"formatting"});case"eeeeee":return Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"});case"eeee":default:return Mn.day(_n,{width:"wide",context:"formatting"})||Mn.day(_n,{width:"abbreviated",context:"formatting"})||Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"})}}validate(_n,kn){return kn>=0&&kn<=6}set(_n,kn,Mn,Yn){return _n=q$1(_n,Mn,Yn),_n.setHours(0,0,0,0),_n}}class Ne extends u$c{constructor(){super(...arguments),i$2(this,"priority",90),i$2(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(_n,kn,Mn,Yn){const Wn=Kn=>{const Xn=Math.floor((Kn-1)/7)*7;return(Kn+Yn.weekStartsOn+6)%7+Xn};switch(kn){case"c":case"cc":return h$f(w$5(kn.length,_n),Wn);case"co":return h$f(Mn.ordinalNumber(_n,{unit:"day"}),Wn);case"ccc":return Mn.day(_n,{width:"abbreviated",context:"standalone"})||Mn.day(_n,{width:"short",context:"standalone"})||Mn.day(_n,{width:"narrow",context:"standalone"});case"ccccc":return Mn.day(_n,{width:"narrow",context:"standalone"});case"cccccc":return Mn.day(_n,{width:"short",context:"standalone"})||Mn.day(_n,{width:"narrow",context:"standalone"});case"cccc":default:return Mn.day(_n,{width:"wide",context:"standalone"})||Mn.day(_n,{width:"abbreviated",context:"standalone"})||Mn.day(_n,{width:"short",context:"standalone"})||Mn.day(_n,{width:"narrow",context:"standalone"})}}validate(_n,kn){return kn>=0&&kn<=6}set(_n,kn,Mn,Yn){return _n=q$1(_n,Mn,Yn),_n.setHours(0,0,0,0),_n}}function Qe(vn,_n,kn){const Mn=l$5(vn,void 0),Yn=ue$1(Mn),Wn=_n-Yn;return z$7(Mn,Wn,kn)}let ve$1=class extends u$c{constructor(){super(...arguments),i$2(this,"priority",90),i$2(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(_n,kn,Mn){const Yn=Wn=>Wn===0?7:Wn;switch(kn){case"i":case"ii":return w$5(kn.length,_n);case"io":return Mn.ordinalNumber(_n,{unit:"day"});case"iii":return h$f(Mn.day(_n,{width:"abbreviated",context:"formatting"})||Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"}),Yn);case"iiiii":return h$f(Mn.day(_n,{width:"narrow",context:"formatting"}),Yn);case"iiiiii":return h$f(Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"}),Yn);case"iiii":default:return h$f(Mn.day(_n,{width:"wide",context:"formatting"})||Mn.day(_n,{width:"abbreviated",context:"formatting"})||Mn.day(_n,{width:"short",context:"formatting"})||Mn.day(_n,{width:"narrow",context:"formatting"}),Yn)}}validate(_n,kn){return kn>=1&&kn<=7}set(_n,kn,Mn){return _n=Qe(_n,Mn),_n.setHours(0,0,0,0),_n}};class Re extends u$c{constructor(){super(...arguments),i$2(this,"priority",80),i$2(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(_n,kn,Mn){switch(kn){case"a":case"aa":case"aaa":return Mn.dayPeriod(_n,{width:"abbreviated",context:"formatting"})||Mn.dayPeriod(_n,{width:"narrow",context:"formatting"});case"aaaaa":return Mn.dayPeriod(_n,{width:"narrow",context:"formatting"});case"aaaa":default:return Mn.dayPeriod(_n,{width:"wide",context:"formatting"})||Mn.dayPeriod(_n,{width:"abbreviated",context:"formatting"})||Mn.dayPeriod(_n,{width:"narrow",context:"formatting"})}}set(_n,kn,Mn){return _n.setHours(I$4(Mn),0,0,0),_n}}class We extends u$c{constructor(){super(...arguments),i$2(this,"priority",80),i$2(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(_n,kn,Mn){switch(kn){case"b":case"bb":case"bbb":return Mn.dayPeriod(_n,{width:"abbreviated",context:"formatting"})||Mn.dayPeriod(_n,{width:"narrow",context:"formatting"});case"bbbbb":return Mn.dayPeriod(_n,{width:"narrow",context:"formatting"});case"bbbb":default:return Mn.dayPeriod(_n,{width:"wide",context:"formatting"})||Mn.dayPeriod(_n,{width:"abbreviated",context:"formatting"})||Mn.dayPeriod(_n,{width:"narrow",context:"formatting"})}}set(_n,kn,Mn){return _n.setHours(I$4(Mn),0,0,0),_n}}class Ce extends u$c{constructor(){super(...arguments),i$2(this,"priority",80),i$2(this,"incompatibleTokens",["a","b","t","T"])}parse(_n,kn,Mn){switch(kn){case"B":case"BB":case"BBB":return Mn.dayPeriod(_n,{width:"abbreviated",context:"formatting"})||Mn.dayPeriod(_n,{width:"narrow",context:"formatting"});case"BBBBB":return Mn.dayPeriod(_n,{width:"narrow",context:"formatting"});case"BBBB":default:return Mn.dayPeriod(_n,{width:"wide",context:"formatting"})||Mn.dayPeriod(_n,{width:"abbreviated",context:"formatting"})||Mn.dayPeriod(_n,{width:"narrow",context:"formatting"})}}set(_n,kn,Mn){return _n.setHours(I$4(Mn),0,0,0),_n}}class Be extends u$c{constructor(){super(...arguments),i$2(this,"priority",70),i$2(this,"incompatibleTokens",["H","K","k","t","T"])}parse(_n,kn,Mn){switch(kn){case"h":return l$4(f$e.hour12h,_n);case"ho":return Mn.ordinalNumber(_n,{unit:"hour"});default:return w$5(kn.length,_n)}}validate(_n,kn){return kn>=1&&kn<=12}set(_n,kn,Mn){const Yn=_n.getHours()>=12;return Yn&&Mn<12?_n.setHours(Mn+12,0,0,0):!Yn&&Mn===12?_n.setHours(0,0,0,0):_n.setHours(Mn,0,0,0),_n}}class Ge extends u$c{constructor(){super(...arguments),i$2(this,"priority",70),i$2(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(_n,kn,Mn){switch(kn){case"H":return l$4(f$e.hour23h,_n);case"Ho":return Mn.ordinalNumber(_n,{unit:"hour"});default:return w$5(kn.length,_n)}}validate(_n,kn){return kn>=0&&kn<=23}set(_n,kn,Mn){return _n.setHours(Mn,0,0,0),_n}}class Xe extends u$c{constructor(){super(...arguments),i$2(this,"priority",70),i$2(this,"incompatibleTokens",["h","H","k","t","T"])}parse(_n,kn,Mn){switch(kn){case"K":return l$4(f$e.hour11h,_n);case"Ko":return Mn.ordinalNumber(_n,{unit:"hour"});default:return w$5(kn.length,_n)}}validate(_n,kn){return kn>=0&&kn<=11}set(_n,kn,Mn){return _n.getHours()>=12&&Mn<12?_n.setHours(Mn+12,0,0,0):_n.setHours(Mn,0,0,0),_n}}class Fe extends u$c{constructor(){super(...arguments),i$2(this,"priority",70),i$2(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(_n,kn,Mn){switch(kn){case"k":return l$4(f$e.hour24h,_n);case"ko":return Mn.ordinalNumber(_n,{unit:"hour"});default:return w$5(kn.length,_n)}}validate(_n,kn){return kn>=1&&kn<=24}set(_n,kn,Mn){const Yn=Mn<=24?Mn%24:Mn;return _n.setHours(Yn,0,0,0),_n}}class Ae extends u$c{constructor(){super(...arguments),i$2(this,"priority",60),i$2(this,"incompatibleTokens",["t","T"])}parse(_n,kn,Mn){switch(kn){case"m":return l$4(f$e.minute,_n);case"mo":return Mn.ordinalNumber(_n,{unit:"minute"});default:return w$5(kn.length,_n)}}validate(_n,kn){return kn>=0&&kn<=59}set(_n,kn,Mn){return _n.setMinutes(Mn,0,0),_n}}class ze extends u$c{constructor(){super(...arguments),i$2(this,"priority",50),i$2(this,"incompatibleTokens",["t","T"])}parse(_n,kn,Mn){switch(kn){case"s":return l$4(f$e.second,_n);case"so":return Mn.ordinalNumber(_n,{unit:"second"});default:return w$5(kn.length,_n)}}validate(_n,kn){return kn>=0&&kn<=59}set(_n,kn,Mn){return _n.setSeconds(Mn,0),_n}}class Ze extends u$c{constructor(){super(...arguments),i$2(this,"priority",30),i$2(this,"incompatibleTokens",["t","T"])}parse(_n,kn){const Mn=Yn=>Math.trunc(Yn*Math.pow(10,-kn.length+3));return h$f(w$5(kn.length,_n),Mn)}set(_n,kn,Mn){return _n.setMilliseconds(Mn),_n}}class Ke extends u$c{constructor(){super(...arguments),i$2(this,"priority",10),i$2(this,"incompatibleTokens",["t","T","x"])}parse(_n,kn){switch(kn){case"X":return m$9(b$6.basicOptionalMinutes,_n);case"XX":return m$9(b$6.basic,_n);case"XXXX":return m$9(b$6.basicOptionalSeconds,_n);case"XXXXX":return m$9(b$6.extendedOptionalSeconds,_n);case"XXX":default:return m$9(b$6.extended,_n)}}set(_n,kn,Mn){return kn.timestampIsSet?_n:y$c(_n,_n.getTime()-N$7(_n)-Mn)}}class $e extends u$c{constructor(){super(...arguments),i$2(this,"priority",10),i$2(this,"incompatibleTokens",["t","T","X"])}parse(_n,kn){switch(kn){case"x":return m$9(b$6.basicOptionalMinutes,_n);case"xx":return m$9(b$6.basic,_n);case"xxxx":return m$9(b$6.basicOptionalSeconds,_n);case"xxxxx":return m$9(b$6.extendedOptionalSeconds,_n);case"xxx":default:return m$9(b$6.extended,_n)}}set(_n,kn,Mn){return kn.timestampIsSet?_n:y$c(_n,_n.getTime()-N$7(_n)-Mn)}}class Ve extends u$c{constructor(){super(...arguments),i$2(this,"priority",40),i$2(this,"incompatibleTokens","*")}parse(_n){return K$2(_n)}set(_n,kn,Mn){return[y$c(_n,Mn*1e3),{timestampIsSet:!0}]}}class je extends u$c{constructor(){super(...arguments),i$2(this,"priority",20),i$2(this,"incompatibleTokens","*")}parse(_n){return K$2(_n)}set(_n,kn,Mn){return[y$c(_n,Mn),{timestampIsSet:!0}]}}const Ue={G:new ye$1,y:new xe,Y:new be$1,R:new me$1,u:new pe$1,Q:new Te$1,q:new De$1,M:new ge$1,L:new ke,w:new Me,I:new Ye,d:new He,D:new Ie,E:new qe,e:new Le,c:new Ne,i:new ve$1,a:new Re,b:new We,B:new Ce,h:new Be,H:new Ge,K:new Xe,k:new Fe,m:new Ae,s:new ze,S:new Ze,X:new Ke,x:new $e,t:new Ve,T:new je},Je=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Se$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,er=/^'([^]*?)'?$/,rr=/''/g,tr=/\S/,sr=/[a-zA-Z]/;function cr(vn,_n,kn,Mn){var Yn,Wn,Kn,Xn;const Hn=()=>y$c(kn,NaN),qn=B$4(),In=qn.locale??Ye$4,Dn=qn.firstWeekContainsDate??((Wn=(Yn=qn.locale)==null?void 0:Yn.options)==null?void 0:Wn.firstWeekContainsDate)??1,Pn=qn.weekStartsOn??((Xn=(Kn=qn.locale)==null?void 0:Kn.options)==null?void 0:Xn.weekStartsOn)??0;if(!_n)return vn?Hn():l$5(kn,void 0);const Bn={firstWeekContainsDate:Dn,weekStartsOn:Pn,locale:In},Nn=[new he$1(void 0,kn)],zn=_n.match(Se$1).map(pi=>{const si=pi[0];if(si in Ne$3){const ei=Ne$3[si];return ei(pi,In.formatLong)}return pi}).join("").match(Je),Qn=[];for(let pi of zn){Ie$3(pi)&&je$2(pi,_n,vn),_e$3(pi)&&je$2(pi,_n,vn);const si=pi[0],ei=Ue[si];if(ei){const{incompatibleTokens:mi}=ei;if(Array.isArray(mi)){const yi=Qn.find(gi=>mi.includes(gi.token)||gi.token===si);if(yi)throw new RangeError(`The format string mustn't contain \`${yi.fullToken}\` and \`${pi}\` at the same time`)}else if(ei.incompatibleTokens==="*"&&Qn.length>0)throw new RangeError(`The format string mustn't contain \`${pi}\` and any other token at the same time`);Qn.push({token:si,fullToken:pi});const fi=ei.run(vn,pi,In.match,Bn);if(!fi)return Hn();Nn.push(fi.setter),vn=fi.rest}else{if(si.match(sr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+si+"`");if(pi==="''"?pi="'":si==="'"&&(pi=nr(pi)),vn.indexOf(pi)===0)vn=vn.slice(pi.length);else return Hn()}}if(vn.length>0&&tr.test(vn))return Hn();const Jn=Nn.map(pi=>pi.priority).sort((pi,si)=>si-pi).filter((pi,si,ei)=>ei.indexOf(pi)===si).map(pi=>Nn.filter(si=>si.priority===pi).sort((si,ei)=>ei.subPriority-si.subPriority)).map(pi=>pi[0]);let ti=l$5(kn,void 0);if(isNaN(+ti))return Hn();const vi={};for(const pi of Jn){if(!pi.validate(ti,Bn))return Hn();const si=pi.set(ti,vi,Bn);Array.isArray(si)?(ti=si[0],Object.assign(vi,si[1])):ti=si}return ti}function nr(vn){return vn.match(er)[1].replace(rr,"'")}const le={props:{modelValue:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number},graphMaxY:{type:Number},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number},endDateTime:{type:Number},timeZone:{type:String,required:!0}},mixins:[Pe$1],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{title:"Y Value",value:"yValue"},{title:"Color",value:"color"},{title:"Actions",value:"actions",sortable:!1}],itemHeaders:[{title:"Target Name",value:"targetName"},{title:"Packet Name",value:"packetName"},{title:"Item Name",value:"itemName"},{title:"Actions",value:"actions",sortable:!1}],rules:{date:vn=>{if(!vn)return!0;try{return $$8(cr(vn,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch{return"Invalid date (YYYY-MM-DD)"}},time:vn=>{if(!vn)return!0;try{return $$8(cr(vn,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch{return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.modelValue},set(vn){this.$emit("update:modelValue",vn)}},editItems:function(){if(!this.items)return[];let vn=0;return this.items.map(_n=>(vn+=1,{..._n,itemId:vn}))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let vn=l$5(this.startDateTime/1e6);this.startDate=this.formatDate(vn,this.timeZone),this.startTime=this.formatTimeHMS(vn,this.timeZone)}else{let vn=new Date-36e5;this.startDate=this.formatDate(vn,this.timeZone),this.startTime=this.formatTimeHMS(vn,this.timeZone)}if(this.endDateTime){let vn=l$5(this.endDateTime/1e6);this.endDate=this.formatDate(vn,this.timeZone),this.endTime=this.formatTimeHMS(vn,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(vn){let _n=this.graph.lines.indexOf(vn);this.graph.lines.splice(_n,1)}}},ae={class:"edit-box"},ne={class:"edit-box"},oe={class:"edit-box"},re={class:"edit-box"};function de(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-spacer"),Xn=vue.resolveComponent("v-toolbar"),Hn=vue.resolveComponent("v-tab"),qn=vue.resolveComponent("v-tabs"),In=vue.resolveComponent("v-text-field"),Dn=vue.resolveComponent("v-card-text"),Pn=vue.resolveComponent("v-col"),Bn=vue.resolveComponent("v-select"),Nn=vue.resolveComponent("v-row"),zn=vue.resolveComponent("v-tabs-window-item"),Qn=vue.resolveComponent("v-btn"),Jn=vue.resolveComponent("v-list-item"),ti=vue.resolveComponent("v-icon"),vi=vue.resolveComponent("v-tooltip"),pi=vue.resolveComponent("v-list"),si=vue.resolveComponent("v-data-table"),ei=vue.resolveComponent("v-tabs-window"),mi=vue.resolveComponent("v-card-actions"),fi=vue.resolveComponent("v-card"),yi=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(yi,{modelValue:Wn.show,"onUpdate:modelValue":_n[12]||(_n[12]=gi=>Wn.show=gi),onKeydown:_n[13]||(_n[13]=vue.withKeys(gi=>vn.$emit("cancel"),["esc"])),"max-width":"700"},{default:vue.withCtx(()=>[vue.createVNode(Xn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(Kn),_n[14]||(_n[14]=vue.createElementVNode("span",null," Edit Graph ",-1)),vue.createVNode(Kn)]),_:1}),vue.createVNode(fi,{class:"pa-3"},{default:vue.withCtx(()=>[vue.createVNode(qn,{modelValue:vn.tab,"onUpdate:modelValue":_n[0]||(_n[0]=gi=>vn.tab=gi),class:"ml-3"},{default:vue.withCtx(()=>[vue.createVNode(Hn,{value:"0"},{default:vue.withCtx(()=>_n[15]||(_n[15]=[vue.createTextVNode(" Settings ")])),_:1}),vue.createVNode(Hn,{value:"1"},{default:vue.withCtx(()=>_n[16]||(_n[16]=[vue.createTextVNode(" Scale / Lines ")])),_:1}),vue.createVNode(Hn,{value:"2"},{default:vue.withCtx(()=>_n[17]||(_n[17]=[vue.createTextVNode(" Items ")])),_:1})]),_:1},8,["modelValue"]),vue.createVNode(ei,{modelValue:vn.tab,"onUpdate:modelValue":_n[10]||(_n[10]=gi=>vn.tab=gi)},{default:vue.withCtx(()=>[vue.createVNode(zn,{value:"0",eager:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",ae,[vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>[vue.createVNode(In,{class:"pb-2",label:"Title",modelValue:vn.graph.title,"onUpdate:modelValue":_n[1]||(_n[1]=gi=>vn.graph.title=gi),"hide-details":""},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{label:"Legend Position","hide-details":"",items:vn.legendPositions,modelValue:vn.graph.legendPosition,"onUpdate:modelValue":_n[2]||(_n[2]=gi=>vn.graph.legendPosition=gi),style:{"max-width":"280px"}},null,8,["items","modelValue"])]),_:1})]),_:1})]),vue.createElementVNode("div",ne,[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>_n[18]||(_n[18]=[vue.createTextVNode(" Select a start date/time for the graph. Leave blank for start now. ")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(In,{label:"Start Date",name:`date${Date.now()}`,rules:[vn.rules.date],modelValue:vn.startDate,"onUpdate:modelValue":_n[3]||(_n[3]=gi=>vn.startDate=gi),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(In,{label:"Start Time",name:`time${Date.now()}`,rules:[vn.rules.time],modelValue:vn.startTime,"onUpdate:modelValue":_n[4]||(_n[4]=gi=>vn.startTime=gi),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1}),vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>_n[19]||(_n[19]=[vue.createTextVNode(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")])),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(In,{label:"End Date",name:`date${Date.now()}`,rules:[vn.rules.date],modelValue:vn.endDate,"onUpdate:modelValue":_n[5]||(_n[5]=gi=>vn.endDate=gi),type:"date"},null,8,["name","rules","modelValue"])]),_:1}),vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(In,{label:"End Time",name:`time${Date.now()}`,rules:[vn.rules.time],modelValue:vn.endTime,"onUpdate:modelValue":_n[6]||(_n[6]=gi=>vn.endTime=gi),type:"time",step:"1"},null,8,["name","rules","modelValue"])]),_:1})]),_:1})])]),_:1}),vue.createVNode(zn,{value:"1",eager:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",oe,[vue.createVNode(Dn,{class:"pa-0"},{default:vue.withCtx(()=>_n[20]||(_n[20]=[vue.createTextVNode(" Set a min or max Y value to override automatic scaling ")])),_:1}),vue.createVNode(Nn,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(Pn,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(In,{"hide-details":"",label:"Min Y Axis (Optional)",modelValue:vn.graph.graphMinY,"onUpdate:modelValue":_n[7]||(_n[7]=gi=>vn.graph.graphMinY=gi),type:"number"},null,8,["modelValue"])]),_:1}),vue.createVNode(Pn,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(In,{"hide-details":"",label:"Max Y Axis (Optional)",modelValue:vn.graph.graphMaxY,"onUpdate:modelValue":_n[8]||(_n[8]=gi=>vn.graph.graphMaxY=gi),type:"number"},null,8,["modelValue"])]),_:1})]),_:1})]),vue.createElementVNode("div",re,[vue.createVNode(pi,{density:"compact",class:"horizontal-lines"},{default:vue.withCtx(()=>[vue.createVNode(Jn,null,{default:vue.withCtx(()=>[_n[22]||(_n[22]=vue.createElementVNode("span",{style:{"padding-top":"5px"}}," Add horizontal lines to the graph ",-1)),vue.createVNode(Kn),vue.createVNode(Qn,{onClick:_n[9]||(_n[9]=gi=>Wn.addLine())},{default:vue.withCtx(()=>_n[21]||(_n[21]=[vue.createTextVNode(" New Line ")])),_:1})]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.graph.lines,(gi,xi)=>(vue.openBlock(),vue.createBlock(Jn,{key:xi,value:gi,color:"primary"},{default:vue.withCtx(()=>[vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(In,{label:"Y Value",modelValue:gi.yValue,"onUpdate:modelValue":ai=>gi.yValue=ai},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(Bn,{label:"Color","hide-details":"",items:kn.colors,modelValue:gi.color,"onUpdate:modelValue":ai=>gi.color=ai},null,8,["items","modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(vi,{text:"Remove",location:"top"},{activator:vue.withCtx(({props:ai})=>[vue.createVNode(ti,vue.mergeProps({ref_for:!0},ai,{style:{padding:"30px"},onClick:oi=>Wn.removeLine(gi)}),{default:vue.withCtx(()=>_n[23]||(_n[23]=[vue.createTextVNode("mdi-delete")])),_:2},1040,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})])]),_:1}),vue.createVNode(zn,{value:"2",eager:""},{default:vue.withCtx(()=>[vue.createVNode(si,{"item-key":"itemId",class:"elevation-1 my-2","data-test":"edit-graph-items",headers:vn.itemHeaders,items:Wn.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},{"item.actions":vue.withCtx(({item:gi})=>[vue.createVNode(vi,{text:"Remove",location:"top"},{activator:vue.withCtx(({props:xi})=>[vue.createVNode(ti,vue.mergeProps(xi,{onClick:ai=>vn.$emit("remove",gi)}),{default:vue.withCtx(()=>_n[24]||(_n[24]=[vue.createTextVNode(" mdi-delete ")])),_:2},1040,["onClick"])]),_:2},1024)]),"no-data":vue.withCtx(()=>_n[25]||(_n[25]=[vue.createElementVNode("span",null," Currently no items on this graph ",-1)])),_:1},8,["headers","items"])]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(mi,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(Kn),vue.createVNode(Qn,{variant:"outlined",onClick:_n[11]||(_n[11]=gi=>vn.$emit("cancel"))},{default:vue.withCtx(()=>_n[26]||(_n[26]=[vue.createTextVNode(" Cancel ")])),_:1}),vue.createVNode(Qn,{variant:"flat",onClick:Wn.closeOk},{default:vue.withCtx(()=>_n[27]||(_n[27]=[vue.createTextVNode(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ue=s$3(le,[["render",de]]),me={props:{modelValue:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.modelValue},set(vn){this.$emit("update:modelValue",vn)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},new Fk().get_item(this.item.targetName,this.item.packetName,this.item.itemName).then(vn=>{for(const[_n,kn]of Object.entries(vn.limits))Object.keys(kn).includes("red_low")&&(this.limits[_n]=Object.values(kn));this.limitsName=Object.keys(this.limits).find(_n=>this.limits[_n]+""==this.editItem.limits+"")})}},he={key:0},pe={class:"pa-3"};function fe(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-card-title"),Xn=vue.resolveComponent("v-select"),Hn=vue.resolveComponent("v-card-text"),qn=vue.resolveComponent("v-spacer"),In=vue.resolveComponent("v-btn"),Dn=vue.resolveComponent("v-card-actions"),Pn=vue.resolveComponent("v-card"),Bn=vue.resolveComponent("v-dialog");return vue.openBlock(),vue.createBlock(Bn,{modelValue:Wn.show,"onUpdate:modelValue":_n[9]||(_n[9]=Nn=>Wn.show=Nn),width:"400",onKeydown:_n[10]||(_n[10]=vue.withKeys(Nn=>vn.success(),["enter"]))},{default:vue.withCtx(()=>[vue.createVNode(Pn,null,{default:vue.withCtx(()=>[vue.createVNode(Kn,{class:"mb-2"},{default:vue.withCtx(()=>_n[11]||(_n[11]=[vue.createTextVNode("Edit Item")])),_:1}),vue.createVNode(Hn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,{variant:"outlined","hide-details":"",label:"Value Type",items:vn.valueTypes,modelValue:vn.editItem.valueType,"onUpdate:modelValue":_n[0]||(_n[0]=Nn=>vn.editItem.valueType=Nn),class:"mb-2"},null,8,["items","modelValue"]),vue.createVNode(Xn,{variant:"outlined","hide-details":"",label:"Reduction",items:vn.reduction,modelValue:vn.editItem.reduced,"onUpdate:modelValue":_n[1]||(_n[1]=Nn=>vn.editItem.reduced=Nn),class:"mb-2"},null,8,["items","modelValue"]),vue.createVNode(Xn,{variant:"outlined","hide-details":"",label:"Reduced Type",items:vn.reducedTypes,disabled:vn.editItem.reduced==="DECOM",modelValue:vn.editItem.reducedType,"onUpdate:modelValue":_n[2]||(_n[2]=Nn=>vn.editItem.reducedType=Nn),class:"mb-2"},null,8,["items","disabled","modelValue"]),vue.createVNode(Xn,{variant:"outlined","hide-details":"",label:"Color",items:kn.colors,modelValue:vn.editItem.color,"onUpdate:modelValue":[_n[3]||(_n[3]=Nn=>vn.editItem.color=Nn),_n[4]||(_n[4]=Nn=>vn.$emit("changeColor",Nn))],class:"mb-2"},null,8,["items","modelValue"]),Wn.limitsNames.length>1?(vue.openBlock(),vue.createElementBlock("div",he,[vue.createVNode(Xn,{variant:"outlined","hide-details":"",label:"Display Limits",items:Wn.limitsNames,modelValue:vn.limitsName,"onUpdate:modelValue":[_n[5]||(_n[5]=Nn=>vn.limitsName=Nn),_n[6]||(_n[6]=Nn=>vn.$emit("changeLimits",vn.limits[vn.limitsName]))]},null,8,["items","modelValue"]),vue.createElementVNode("div",pe,vue.toDisplayString(vn.limitsName)+": "+vue.toDisplayString(vn.limits[vn.limitsName]),1)])):vue.createCommentVNode("",!0)]),_:1}),vue.createVNode(Dn,{class:"px-2"},{default:vue.withCtx(()=>[vue.createVNode(qn),vue.createVNode(In,{variant:"outlined",onClick:_n[7]||(_n[7]=Nn=>vn.$emit("cancel"))},{default:vue.withCtx(()=>_n[12]||(_n[12]=[vue.createTextVNode(" Cancel ")])),_:1}),vue.createVNode(In,{variant:"flat",onClick:_n[8]||(_n[8]=Nn=>vn.$emit("close",vn.editItem))},{default:vue.withCtx(()=>_n[13]||(_n[13]=[vue.createTextVNode(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const ce=s$3(me,[["render",fe]]),ge={components:{GraphEditDialog:ue,GraphEditItemDialog:ce},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideToolbar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number},timeZone:{type:String,default:"local"}},mixins:[Pe$1],data(){return{lines:[],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",selectedItem:null,hideToolbarData:this.hideToolbar,showOverview:!this.hideOverview,hideOverviewData:this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:null,graphMaxY:null,graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new Ok,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[vn,_n]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(_n)]=vn+1,_n.color===void 0&&(_n.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:vn,overviewSeries:_n}=this.items.reduce((Mn,Yn)=>{const Wn={spanGaps:!0};return Mn.chartSeries.push({...Wn,item:Yn,label:this.formatLabel(Yn),stroke:(Kn,Xn)=>this.items[Xn-1].color,width:2,value:(Kn,Xn)=>typeof Xn=="string"||isNaN(Xn)?"NaN":Xn==null?"--":Xn.toFixed(3)}),Mn.overviewSeries.push({...Wn}),Mn},{chartSeries:[],overviewSeries:[]});let kn={};if(this.sparkline)this.hideToolbarData=!0,this.hideOverviewData=!0,this.showOverview=!1,kn={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new $n(kn,this.data,document.getElementById(`chart${this.id}`));else{let Mn=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&this.timeZone!=="local"&&(Mn=this.timeZone),kn={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:Wn=>$n.tzDate(new Date(Wn*1e3),Mn),series:[{label:"Time",value:(Wn,Kn)=>Kn==null?"--":this.formatSeconds(Kn,this.timeZone)},...vn],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(Wn,Kn,Xn)=>Hn=>{this.state==="pause"&&Wn.select.width===0&&this.$emit("start"),Xn(Hn)}}},hooks:{setScale:[(Wn,Kn)=>{if(Kn==="x"&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let Xn=Math.round(this.overview.valToPos(Wn.scales.x.min,"x")),Hn=Math.round(this.overview.valToPos(Wn.scales.x.max,"x"));this.overview.setSelect({left:Xn,width:Hn-Xn}),this.zoomChart=!1}}],setSelect:[Wn=>{this.state==="start"&&Wn.select.width>0&&this.$emit("pause")}],ready:[Wn=>{Wn.root.querySelector(".u-over").addEventListener("contextmenu",Xn=>{Xn.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=Xn.clientX,this.editGraphMenuY=Xn.clientY,this.editGraphMenu=!0});let Kn=Wn.root.querySelector(".u-legend");Kn.addEventListener("contextmenu",Xn=>{Xn.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=Xn.clientX,this.itemMenuY=Xn.clientY;let Hn=Xn.target.closest(".u-series"),qn=Array.prototype.slice.call(Kn.childNodes[0].childNodes).indexOf(Hn),In=Wn.series[qn];In.item?(this.selectedItem=In.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=Xn.clientX,this.legendMenuY=Xn.clientY,this.legendMenu=!0)}),Kn.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new $n(kn,this.data,document.getElementById(`chart${this.id}`));const Yn={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:Wn=>$n.tzDate(new Date(Wn*1e3),Mn),series:[..._n],cursor:{y:!1,drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[Wn=>{if(!this.zoomChart){this.state==="start"&&Wn.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let Kn=Wn.posToVal(Wn.select.left,"x"),Xn=Wn.posToVal(Wn.select.left+Wn.select.width,"x");this.graph.setScale("x",{min:Kn,max:Xn}),this.zoomOverview=!1}}]}};this.overview=new $n(Yn,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.resize)}this.state!=="stop"&&this.startGraph()},beforeUnmount:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},watch:{state:function(vn,_n){switch(vn){case"start":_n==="stop"&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(vn,_n){this.dataChanged=!0},graphMinY:function(vn,_n){let kn=parseFloat(vn);isNaN(kn)||(this.graphMinY=kn),this.setGraphRange()},graphMaxY:function(vn,_n){let kn=parseFloat(vn);isNaN(kn)||(this.graphMaxY=kn),this.setGraphRange()},graphStartDateTime:function(vn,_n){vn&&typeof vn=="string"?(this.graphStartDateTime=this.parseDateTime(this.graphStartDateTime,this.timeZone)*1e6,this.graphStartDateTime!==_n&&(this.needToUpdate=!0)):vn===null&&_n&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(vn,_n){vn&&typeof vn=="string"?(this.graphEndDateTime=this.parseDateTime(this.graphEndDateTime,this.timeZone)*1e6,this.graphEndDateTime!==_n&&(this.needToUpdate=!0)):vn===null&&_n&&(this.graphEndDateTime=null,this.needToUpdate=!0)}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout(()=>{this.updateTimeout()},this.refreshIntervalMs)},updateGraphData:function(){if(this.state==="pause"||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let vn=this.data[0][this.data[0].length-1],_n=this.data[0][this.data[0].length-this.pointsGraphed],kn=this.data[0][0];kn<vn-this.secondsGraphed&&(kn=vn-this.secondsGraphed),_n>kn&&(kn=_n),this.graph.setScale("x",{min:kn,max:vn}),this.dataChanged=!1},formatLabel(vn){if(vn.valueType==="CONVERTED"&&vn.reduced==="DECOM")return vn.itemName;{let _n="";return vn.valueType!=="CONVERTED"&&(_n+=vn.valueType),vn.reduced!=="DECOM"&&(_n!==""&&(_n+=" "),_n+=`${vn.reduced.split("_")[1]} ${vn.reducedType}`),`${vn.itemName} (${_n})`}},moveLegend:function(vn){switch(vn){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=vn,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(vn){this.editGraph=!1,this.title=vn.title,this.legendPosition=vn.legendPosition,this.graphMinY=vn.graphMinY,this.graphMaxY=vn.graphMaxY,this.lines=[...vn.lines],this.graphStartDateTime=vn.startDateTime,this.graphEndDateTime=vn.endDateTime,this.$nextTick(()=>{if(this.needToUpdate){if(this.subscription==null)this.startGraph();else{let _n=JSON.parse(JSON.stringify(this.items));this.removeItems(_n),setTimeout(()=>{this.addItems(_n)},0)}this.needToUpdate=!1}}),this.moveLegend(this.legendPosition),this.$emit("edit")},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let vn=.1;(this.graphMinY||this.graphMinY===0||this.graphMaxY||this.graphMaxY===0)&&(vn=0),this.graph.scales.y.range=(_n,kn,Mn)=>{let Yn=kn;(this.graphMinY||this.graphMinY===0)&&(Yn=this.graphMinY);let Wn=Mn;return(this.graphMaxY||this.graphMaxY===0)&&(Wn=this.graphMaxY),$n.rangeNum(Yn,Wn,vn,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:vn=>this.received(vn),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:new Date().getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:new Date().getTime()})}}).then(vn=>{this.subscription=vn})},getSize:function(vn){let _n=0;const kn=document.getElementById("openc3-nav-drawer");kn&&(_n=kn.classList.contains("v-navigation-drawer--active")?kn.clientWidth:0);let Mn=0;(this.legendPosition==="right"||this.legendPosition==="left")&&(Mn=document.getElementsByClassName("u-legend")[0].clientWidth);const Yn=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-_n-Mn,Wn=Math.max(document.documentElement.clientHeight,window.innerHeight||0),Kn=document.getElementsByClassName("v-expansion-panel")[0];let Xn=100;vn==="overview"?this.fullHeight&&!this.hideOverviewData?this.showOverview=!0:this.showOverview=!1:(Xn=Wn-Kn.clientHeight-Xn-250,this.fullHeight||(Xn=Xn/2+10));let Hn=Yn-68;return this.fullWidth||(Hn=Hn/2-10),{width:this.width||Hn,height:this.height||Xn}},getScales:function(){return{scales:{x:{range(vn,_n,kn){return _n==null?[1566453600,1566497660]:[_n,kn]}},y:{range(vn,_n,kn){return _n==null?[-100,100]:$n.rangeNum(_n,kn,.1,!0)}}}}},getAxes:function(vn){let _n="rgba(255, 255, 255, .1)",kn="white";return{axes:[{stroke:kn,grid:{show:!0,stroke:_n,width:2}},{size:80,stroke:kn,grid:{show:vn!=="overview",stroke:_n,width:2},values(Mn,Yn){return(Yn.some(Wn=>Wn>=1e7)||Yn.every(Wn=>Wn<.01))&&(Yn=Yn.map(Wn=>Wn.toExponential(3))),Yn}}]}},closeEditItem:function(vn){this.editItem=!1,(this.graphEndDateTime!==null&&this.selectedItem!==vn||this.selectedItem.valueType!==vn.valueType||this.selectedItem.reduced!==vn.reduced||this.selectedItem.reducedType!==vn.reducedType)&&this.changeItem(vn)},changeColor:function(vn){let _n=this.subscriptionKey(this.selectedItem),kn=this.indexes[_n];this.items[kn-1].color=vn,this.selectedItem.color=vn,this.graph.root.querySelectorAll(".u-marker")[kn].style.borderColor=vn},changeLimits:function(vn){let _n=this.subscriptionKey(this.selectedItem),kn=this.indexes[_n];this.items[kn-1].limits=vn,this.selectedItem.limits=vn,this.limitsValues=vn},linesPlugin:function(){return{hooks:{draw:vn=>{const{ctx:_n,bbox:kn}=vn,Mn=vn.valToPos(vn.scales.y.min,"y",!0),Yn=vn.valToPos(vn.scales.y.max,"y",!0),Wn=vn.valToPos(this.limitsValues[0],"y",!0),Kn=vn.valToPos(this.limitsValues[1],"y",!0),Xn=vn.valToPos(this.limitsValues[2],"y",!0),Hn=vn.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach(qn=>{vn.scales.y.min<=qn.yValue&&qn.yValue<=vn.scales.y.max&&(_n.save(),_n.beginPath(),_n.strokeStyle=qn.color,_n.lineWidth=2,_n.moveTo(kn.left,vn.valToPos(qn.yValue,"y",!0)),_n.lineTo(kn.left+kn.width,vn.valToPos(qn.yValue,"y",!0)),_n.stroke(),_n.restore())}),_n.save(),_n.beginPath(),_n.fillStyle="rgba(255,0,0,0.15)",vn.scales.y.min<this.limitsValues[0]){let qn=Wn<Yn?Yn:Wn;_n.fillRect(kn.left,Wn,kn.width,Mn-qn)}if(vn.scales.y.max>this.limitsValues[3]){let qn=Mn<Hn?Mn:Hn;_n.fillRect(kn.left,Yn,kn.width,qn-Yn)}if(_n.fillStyle="rgba(255,255,0,0.15)",vn.scales.y.min<this.limitsValues[1]&&vn.scales.y.max>this.limitsValues[0]){let qn=Kn<Yn?Yn:Kn;_n.fillRect(kn.left,qn,kn.width,Wn-qn)}if(vn.scales.y.max>this.limitsValues[2]&&vn.scales.y.min<this.limitsValues[3]){let qn=Mn<Hn?Mn:Hn,In=Mn<Xn?Mn:Xn;_n.fillRect(kn.left,qn,kn.width,In-qn)}if(_n.fillStyle="rgba(0,255,0,0.15)",this.limitsValues.length===4){if(vn.scales.y.min<this.limitsValues[2]&&vn.scales.y.max>this.limitsValues[1]){let qn=Xn<Yn?Yn:Xn,In=Mn<Kn?Mn:Kn;_n.fillRect(kn.left,qn,kn.width,In-qn)}}else{const qn=vn.valToPos(this.limitsValues[4],"y",!0),In=vn.valToPos(this.limitsValues[5],"y",!0);if(vn.scales.y.min<this.limitsValues[4]&&vn.scales.y.max>this.limitsValues[1]){let Bn=qn<Yn?Yn:qn;_n.fillRect(kn.left,Bn,kn.width,Kn-Bn)}if(vn.scales.y.max>this.limitsValues[5]&&vn.scales.y.min<this.limitsValues[2]){let Bn=Mn<Xn?Mn:Xn,Nn=Mn<In?Mn:In;_n.fillRect(kn.left,Bn,kn.width,Nn-Bn)}_n.fillStyle="rgba(0,0,255,0.15)";let Dn=In<Yn?Yn:In,Pn=Mn<qn?Mn:qn;_n.fillRect(kn.left,Dn,kn.width,Pn-Dn)}_n.stroke(),_n.restore()}}}},changeItem:function(vn){this.removeItems([this.selectedItem]),this.selectedItem.valueType=vn.valueType,this.selectedItem.reduced=vn.reduced,this.selectedItem.reducedType=vn.reducedType,setTimeout(()=>{this.addItems([this.selectedItem])},0)},addItems:function(vn,_n="CONVERTED"){vn.forEach(kn=>{kn.valueType||(kn.valueType=_n),kn.color||(kn.color=this.colors[this.colorIndex]),kn.limits||(kn.limits=[]),kn.limits.length>0&&(this.limitsValues=kn.limits),this.colorIndex=(this.colorIndex+1)%this.colors.length,this.items.push(kn);const Mn=this.data.length;this.graph.addSeries(this.createSeriesConfig(kn),Mn),this.overview&&this.overview.addSeries(this.createOverviewSeriesConfig(),Mn),this.data.splice(Mn,0,Array(this.data[0].length)),this.indexes[this.subscriptionKey(kn)]=Mn}),this.updateColorIndex(vn),this.addItemsToSubscription(vn),this.$emit("resize"),this.$emit("edit")},createSeriesConfig:function(vn){return{spanGaps:!0,item:vn,label:this.formatLabel(vn),stroke:(_n,kn)=>this.items[kn-1].color,width:2,value:(_n,kn)=>typeof kn=="string"||isNaN(kn)?"NaN":kn==null?"--":Math.abs(kn)<.01&&kn!==0||Math.abs(kn)>=1e7?kn.toExponential(6):kn.toFixed(6)}},createOverviewSeriesConfig:function(){return{spanGaps:!0,stroke:(vn,_n)=>this.items[_n-1].color}},updateColorIndex:function(vn){const _n=vn[vn.length-1];if(_n){const kn=this.colors.indexOf(_n.color);kn!==-1&&(this.colorIndex=(kn+1)%this.colors.length)}},addItemsToSubscription:function(vn=this.items){let _n=this.startTime;this.graphStartDateTime&&(_n=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(kn=>{kn&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:vn.map(this.subscriptionKey),start_time:_n,end_time:this.graphEndDateTime})})},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(vn){for(const _n of vn.map(this.subscriptionKey)){let kn=this.indexes[_n];this.data[kn]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}this.data.length===2&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItems:function(vn){this.removeItemsFromSubscription(vn);for(const _n of vn.map(this.subscriptionKey)){const kn=this.reorderIndexes(_n);this.items.splice(kn-1,1),this.data.splice(kn,1),this.graph.delSeries(kn),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(kn),this.overview.setData(this.data))}this.data.length===1&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("resize"),this.$emit("edit")},removeItemsFromSubscription:function(vn=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:vn.map(this.subscriptionKey)})},reorderIndexes:function(vn){let _n=this.indexes[vn];delete this.indexes[vn];for(let kn in this.indexes)this.indexes[kn]>_n&&(this.indexes[kn]-=1);return _n},received:function(vn){this.cable.recordPing();for(let _n=0;_n<vn.length;_n++){let kn=vn[_n].__time/1e9,Mn=vn[0].length;if(Mn===0||kn>vn[0][Mn-1]){for(let Yn=0;Yn<this.data.length;Yn++)this.data[Yn].push(null);this.set_data_at_index(this.data[0].length-1,kn,vn[_n])}else{let Yn=Pk(this.data[0],kn,this.bs_comparator);if(Yn>=0)this.set_data_at_index(Yn,kn,vn[_n]);else{let Wn=-Yn-1;for(let Kn=0;Kn<this.data.length;Kn++)this.data[Kn].splice(Wn,0,null);this.set_data_at_index(Wn,kn,vn[_n])}}}if(this.startTime==null&&this.data[0][0]){let _n=this.data[0][0]*1e9;this.$emit("started",_n)}this.dataChanged=!0},bs_comparator:function(vn,_n){return vn-_n},set_data_at_index:function(vn,_n,kn){this.data[0][vn]=_n;for(const[Mn,Yn]of Object.entries(kn)){if(Mn==="time")continue;let Wn=this.indexes[Mn];if(Wn){let Kn=this.data[Wn];if(Yn!=null&&Yn.raw)Kn[vn]=null;else if(typeof Yn=="string"){if(Kn[vn]=null,!Mn.includes("__RAW")){for(let Xn of this.items)if(this.subscriptionKey(Xn)===Mn){this.selectedItem=Xn;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else Kn[vn]=Yn}}},subscriptionKey:function(vn){let _n=`${vn.reduced}__TLM__${vn.targetName}__${vn.packetName}__${vn.itemName}__${vn.valueType}`;return(vn.reduced==="REDUCED_MINUTE"||vn.reduced==="REDUCED_HOUR"||vn.reduced==="REDUCED_DAY")&&(_n+=`__${vn.reducedType}`),_n}}},ve={class:"mx-2"},ye={class:"pa-1",id:"chart",ref:"chart"},be=["id"],we=["id"],Te={key:5,class:"u-series",ref:"info"};function De(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-icon"),Xn=vue.resolveComponent("v-tooltip"),Hn=vue.resolveComponent("v-spacer"),qn=vue.resolveComponent("v-toolbar"),In=vue.resolveComponent("v-expand-transition"),Dn=vue.resolveComponent("v-card"),Pn=vue.resolveComponent("graph-edit-dialog"),Bn=vue.resolveComponent("v-text-field"),Nn=vue.resolveComponent("v-row"),zn=vue.resolveComponent("v-textarea"),Qn=vue.resolveComponent("v-btn"),Jn=vue.resolveComponent("v-dialog"),ti=vue.resolveComponent("v-list-item-title"),vi=vue.resolveComponent("v-list-item"),pi=vue.resolveComponent("v-list"),si=vue.resolveComponent("v-menu"),ei=vue.resolveComponent("graph-edit-item-dialog"),mi=vue.resolveComponent("v-list-subheader");return vue.openBlock(),vue.createElementBlock("div",{onClick:_n[21]||(_n[21]=vue.withModifiers(fi=>vn.$emit("click"),["prevent"]))},[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[vue.withDirectives(vue.createVNode(qn,{height:"24",class:vue.normalizeClass(["pl-2 pr-2",kn.selectedGraphId===kn.id?"active":""])},{default:vue.withCtx(()=>[vue.withDirectives(vue.createElementVNode("div",ve,[vue.createVNode(Xn,{text:"Errors",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:_n[0]||(_n[0]=yi=>Yn.errorDialog=!0)}),{default:vue.withCtx(()=>_n[22]||(_n[22]=[vue.createTextVNode(" mdi-alert ")])),_:2},1040)]),_:1})],512),[[vue.vShow,Yn.errors.length!==0]]),vue.createVNode(Xn,{text:"Edit",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:_n[1]||(_n[1]=yi=>Yn.editGraph=!0),"data-test":"edit-graph-icon"}),{default:vue.withCtx(()=>_n[23]||(_n[23]=[vue.createTextVNode(" mdi-pencil ")])),_:2},1040)]),_:1}),vue.createVNode(Hn),vue.createElementVNode("span",null,vue.toDisplayString(Yn.title),1),vue.createVNode(Hn),vue.withDirectives(vue.createElementVNode("div",null,[Wn.calcFullSize?(vue.openBlock(),vue.createBlock(Xn,{key:0,text:"Collapse",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:Wn.collapseAll,"data-test":"collapse-all"}),{default:vue.withCtx(()=>_n[24]||(_n[24]=[vue.createTextVNode(" mdi-arrow-collapse ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Xn,{key:1,text:"Expand",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:Wn.expandAll,"data-test":"expand-all"}),{default:vue.withCtx(()=>_n[25]||(_n[25]=[vue.createTextVNode(" mdi-arrow-expand ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,Yn.expand]]),vue.withDirectives(vue.createElementVNode("div",null,[Yn.fullWidth?(vue.openBlock(),vue.createBlock(Xn,{key:0,text:"Collapse Width",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:Wn.collapseWidth,"data-test":"collapse-width"}),{default:vue.withCtx(()=>_n[26]||(_n[26]=[vue.createTextVNode(" mdi-arrow-collapse-horizontal ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Xn,{key:1,text:"Expand Width",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:Wn.expandWidth,"data-test":"expand-width"}),{default:vue.withCtx(()=>_n[27]||(_n[27]=[vue.createTextVNode(" mdi-arrow-expand-horizontal ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,Yn.expand]]),vue.withDirectives(vue.createElementVNode("div",null,[Yn.fullHeight?(vue.openBlock(),vue.createBlock(Xn,{key:0,text:"Collapse Height",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:Wn.collapseHeight,"data-test":"collapse-height"}),{default:vue.withCtx(()=>_n[28]||(_n[28]=[vue.createTextVNode(" mdi-arrow-collapse-vertical ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Xn,{key:1,text:"Expand Height",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:Wn.expandHeight,"data-test":"expand-height"}),{default:vue.withCtx(()=>_n[29]||(_n[29]=[vue.createTextVNode(" mdi-arrow-expand-vertical ")])),_:2},1040,["onClick"])]),_:1}))],512),[[vue.vShow,Yn.expand]]),Yn.expand?(vue.openBlock(),vue.createBlock(Xn,{key:0,text:"Minimize",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:Wn.minMaxTransition,"data-test":"minimize-screen-icon"}),{default:vue.withCtx(()=>_n[30]||(_n[30]=[vue.createTextVNode(" mdi-window-minimize ")])),_:2},1040,["onClick"])]),_:1})):(vue.openBlock(),vue.createBlock(Xn,{key:1,text:"Maximize",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:Wn.minMaxTransition,"data-test":"maximize-screen-icon"}),{default:vue.withCtx(()=>_n[31]||(_n[31]=[vue.createTextVNode(" mdi-window-maximize ")])),_:2},1040,["onClick"])]),_:1})),vue.createVNode(Xn,{text:"Close",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.mergeProps(fi,{onClick:_n[2]||(_n[2]=yi=>vn.$emit("close-graph")),"data-test":"close-graph-icon"}),{default:vue.withCtx(()=>_n[32]||(_n[32]=[vue.createTextVNode(" mdi-close-box ")])),_:2},1040)]),_:1})]),_:1},8,["class"]),[[vue.vShow,!Yn.hideToolbarData]]),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.withDirectives(vue.createElementVNode("div",ye,[vue.createElementVNode("div",{id:`chart${kn.id}`},null,8,be),_n[33]||(_n[33]=vue.createElementVNode("div",{id:"betweenCharts"},null,-1)),vue.withDirectives(vue.createElementVNode("div",{id:`overview${kn.id}`},null,8,we),[[vue.vShow,Yn.showOverview]])],512),[[vue.vShow,Yn.expand]])]),_:1})]),_:1}),Yn.editGraph?(vue.openBlock(),vue.createBlock(Pn,{key:0,modelValue:Yn.editGraph,"onUpdate:modelValue":_n[3]||(_n[3]=fi=>Yn.editGraph=fi),title:Yn.title,"legend-position":Yn.legendPosition,items:Yn.items,"graph-min-y":Yn.graphMinY,"graph-max-y":Yn.graphMaxY,lines:Yn.lines,colors:Yn.colors,"start-date-time":Yn.graphStartDateTime,"end-date-time":Yn.graphEndDateTime,"time-zone":kn.timeZone,onRemove:_n[4]||(_n[4]=fi=>Wn.removeItems([fi])),onOk:Wn.editGraphClose,onCancel:_n[5]||(_n[5]=fi=>Yn.editGraph=!1)},null,8,["modelValue","title","legend-position","items","graph-min-y","graph-max-y","lines","colors","start-date-time","end-date-time","time-zone","onOk"])):vue.createCommentVNode("",!0),vue.createVNode(Jn,{modelValue:Yn.errorDialog,"onUpdate:modelValue":_n[7]||(_n[7]=fi=>Yn.errorDialog=fi),"max-width":"600"},{default:vue.withCtx(()=>[vue.createVNode(qn,{height:"24"},{default:vue.withCtx(()=>[vue.createVNode(Hn),_n[34]||(_n[34]=vue.createElementVNode("span",null," Errors ",-1)),vue.createVNode(Hn)]),_:1}),vue.createVNode(Dn,{class:"pa-3"},{default:vue.withCtx(()=>[vue.createVNode(Nn,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(Bn,{readonly:"","hide-details":"",modelValue:Yn.title,"onUpdate:modelValue":_n[6]||(_n[6]=fi=>Yn.title=fi),class:"pb-2",label:"Graph Title"},null,8,["modelValue"])]),_:1}),vue.createVNode(Nn,{class:"my-3"},{default:vue.withCtx(()=>[vue.createVNode(zn,{readonly:"",rows:"8",value:Wn.error},null,8,["value"])]),_:1}),vue.createVNode(Nn,null,{default:vue.withCtx(()=>[vue.createVNode(Qn,{block:"",onClick:Wn.clearErrors},{default:vue.withCtx(()=>_n[35]||(_n[35]=[vue.createTextVNode(" Clear ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),Yn.editGraphMenu?(vue.openBlock(),vue.createBlock(si,{key:1,modelValue:Yn.editGraphMenu,"onUpdate:modelValue":_n[9]||(_n[9]=fi=>Yn.editGraphMenu=fi),target:[Yn.editGraphMenuX,Yn.editGraphMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(pi,null,{default:vue.withCtx(()=>[vue.createVNode(vi,{onClick:_n[8]||(_n[8]=fi=>Yn.editGraph=!0)},{default:vue.withCtx(()=>[vue.createVNode(ti,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>[vue.createTextVNode(" Edit "+vue.toDisplayString(Yn.title),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),Yn.editItem?(vue.openBlock(),vue.createBlock(ei,{key:2,modelValue:Yn.editItem,"onUpdate:modelValue":_n[10]||(_n[10]=fi=>Yn.editItem=fi),colors:Yn.colors,item:Yn.selectedItem,onChangeColor:Wn.changeColor,onChangeLimits:Wn.changeLimits,onCancel:_n[11]||(_n[11]=fi=>Yn.editItem=!1),onClose:Wn.closeEditItem},null,8,["modelValue","colors","item","onChangeColor","onChangeLimits","onClose"])):vue.createCommentVNode("",!0),Yn.itemMenu?(vue.openBlock(),vue.createBlock(si,{key:3,modelValue:Yn.itemMenu,"onUpdate:modelValue":_n[15]||(_n[15]=fi=>Yn.itemMenu=fi),target:[Yn.itemMenuX,Yn.itemMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(pi,{nav:"",density:"compact"},{default:vue.withCtx(()=>[vue.createVNode(mi,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Yn.selectedItem.targetName)+" "+vue.toDisplayString(Yn.selectedItem.packetName)+" "+vue.toDisplayString(Yn.selectedItem.itemName),1)]),_:1}),vue.createVNode(vi,{onClick:_n[12]||(_n[12]=fi=>Yn.editItem=!0)},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-pencil"})]),default:vue.withCtx(()=>[vue.createVNode(ti,null,{default:vue.withCtx(()=>_n[36]||(_n[36]=[vue.createTextVNode(" Edit ")])),_:1})]),_:1}),vue.createVNode(vi,{onClick:_n[13]||(_n[13]=fi=>Wn.clearData([Yn.selectedItem]))},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-eraser"})]),default:vue.withCtx(()=>[vue.createVNode(ti,null,{default:vue.withCtx(()=>_n[37]||(_n[37]=[vue.createTextVNode(" Clear ")])),_:1})]),_:1}),vue.createVNode(vi,{onClick:_n[14]||(_n[14]=fi=>Wn.removeItems([Yn.selectedItem]))},{prepend:vue.withCtx(()=>[vue.createVNode(Kn,{icon:"mdi-delete"})]),default:vue.withCtx(()=>[vue.createVNode(ti,null,{default:vue.withCtx(()=>_n[38]||(_n[38]=[vue.createTextVNode(" Delete ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),Yn.legendMenu?(vue.openBlock(),vue.createBlock(si,{key:4,modelValue:Yn.legendMenu,"onUpdate:modelValue":_n[20]||(_n[20]=fi=>Yn.legendMenu=fi),target:[Yn.legendMenuX,Yn.legendMenuY],absolute:"","offset-y":""},{default:vue.withCtx(()=>[vue.createVNode(pi,null,{default:vue.withCtx(()=>[vue.createVNode(vi,{onClick:_n[16]||(_n[16]=fi=>Wn.moveLegend("top"))},{default:vue.withCtx(()=>[vue.createVNode(ti,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>_n[39]||(_n[39]=[vue.createTextVNode(" Legend Top ")])),_:1})]),_:1}),vue.createVNode(vi,{onClick:_n[17]||(_n[17]=fi=>Wn.moveLegend("bottom"))},{default:vue.withCtx(()=>[vue.createVNode(ti,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>_n[40]||(_n[40]=[vue.createTextVNode(" Legend Bottom ")])),_:1})]),_:1}),vue.createVNode(vi,{onClick:_n[18]||(_n[18]=fi=>Wn.moveLegend("left"))},{default:vue.withCtx(()=>[vue.createVNode(ti,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>_n[41]||(_n[41]=[vue.createTextVNode(" Legend Left ")])),_:1})]),_:1}),vue.createVNode(vi,{onClick:_n[19]||(_n[19]=fi=>Wn.moveLegend("right"))},{default:vue.withCtx(()=>[vue.createVNode(ti,{style:{cursor:"pointer"}},{default:vue.withCtx(()=>_n[42]||(_n[42]=[vue.createTextVNode(" Legend RIght ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","target"])):vue.createCommentVNode("",!0),kn.sparkline?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",Te,[vue.createVNode(Xn,{text:"Click item to toggle, Right click to edit",location:"top"},{activator:vue.withCtx(({props:fi})=>[vue.createVNode(Kn,vue.normalizeProps(vue.guardReactiveProps(fi)),{default:vue.withCtx(()=>_n[43]||(_n[43]=[vue.createTextVNode(" mdi-information-variant-circle ")])),_:2},1040)]),_:1})],512))])}const Se=s$3(ge,[["render",De],["__scopeId","data-v-485a5da2"]]);var t$1=Object.freeze({__proto__:null,get start(){return It},get ensureJQuerySupport(){return ft},get setBootstrapMaxTime(){return K$1},get setMountMaxTime(){return H},get setUnmountMaxTime(){return J},get setUnloadMaxTime(){return Q},get registerApplication(){return Tt},get unregisterApplication(){return At},get getMountedApps(){return Et},get getAppStatus(){return Pt},get unloadApplication(){return Nt},get checkActivityFunctions(){return bt},get getAppNames(){return vt},get pathToActiveWhen(){return Dt},get navigateToUrl(){return tt},get patchHistoryApi(){return at},get triggerAppChange(){return $t},get addErrorHandler(){return i$1},get removeErrorHandler(){return s$2},get mountRootParcel(){return G},get NOT_LOADED(){return c$7},get LOADING_SOURCE_CODE(){return l$3},get NOT_BOOTSTRAPPED(){return f$d},get BOOTSTRAPPING(){return p$b},get NOT_MOUNTED(){return h$e},get MOUNTING(){return m$8},get UPDATING(){return w$4},get LOAD_ERROR(){return E$1},get MOUNTED(){return d$b},get UNLOADING(){return y$a},get UNMOUNTING(){return g$6},get SKIP_BECAUSE_BROKEN(){return v$7}}),e=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}).CustomEvent,n$7=function(){try{var vn=new e("cat",{detail:{foo:"bar"}});return vn.type==="cat"&&vn.detail.foo==="bar"}catch{}return!1}()?e:typeof document<"u"&&typeof document.createEvent=="function"?function(vn,_n){var kn=document.createEvent("CustomEvent");return _n?kn.initCustomEvent(vn,_n.bubbles,_n.cancelable,_n.detail):kn.initCustomEvent(vn,!1,!1,void 0),kn}:function(vn,_n){var kn=document.createEventObject();return kn.type=vn,_n?(kn.bubbles=!!_n.bubbles,kn.cancelable=!!_n.cancelable,kn.detail=_n.detail):(kn.bubbles=!1,kn.cancelable=!1,kn.detail=void 0),kn};let r$1=[];function o$7(vn,_n,kn){const Mn=a$2(vn,_n,kn);r$1.length?r$1.forEach(Yn=>Yn(Mn)):setTimeout(()=>{throw Mn})}function i$1(vn){if(typeof vn!="function")throw Error(u$b(28));r$1.push(vn)}function s$2(vn){if(typeof vn!="function")throw Error(u$b(29));let _n=!1;return r$1=r$1.filter(kn=>{const Mn=kn===vn;return _n=_n||Mn,!Mn}),_n}function u$b(vn,_n,...kn){return`single-spa minified message #${vn}: See https://single-spa.js.org/error/?code=${vn}${kn.length?`&arg=${kn.join("&arg=")}`:""}`}function a$2(vn,_n,kn){const Mn=`${A$3(_n)} '${T$2(_n)}' died in status ${_n.status}: `;let Yn;if(vn instanceof Error){try{vn.message=Mn+vn.message}catch{}Yn=vn}else{console.warn(u$b(30,!1,_n.status,T$2(_n)));try{Yn=Error(Mn+JSON.stringify(vn))}catch{Yn=vn}}return Yn.appOrParcelName=T$2(_n),_n.status=kn,Yn}const c$7="NOT_LOADED",l$3="LOADING_SOURCE_CODE",f$d="NOT_BOOTSTRAPPED",p$b="BOOTSTRAPPING",h$e="NOT_MOUNTED",m$8="MOUNTING",d$b="MOUNTED",w$4="UPDATING",g$6="UNMOUNTING",y$a="UNLOADING",E$1="LOAD_ERROR",v$7="SKIP_BECAUSE_BROKEN";function P(vn){return vn.status===d$b}function O(vn){try{return vn.activeWhen(window.location)}catch(_n){return o$7(_n,vn,v$7),!1}}function T$2(vn){return vn.name}function b$5(vn){return!!vn.unmountThisParcel}function A$3(vn){return b$5(vn)?"parcel":"application"}function N$3(){for(let vn=arguments.length-1;vn>0;vn--)for(let _n in arguments[vn])_n!=="__proto__"&&(arguments[vn-1][_n]=arguments[vn][_n]);return arguments[0]}function S$7(vn,_n){for(let kn=0;kn<vn.length;kn++)if(_n(vn[kn]))return vn[kn];return null}function _$7(vn){return vn&&(typeof vn=="function"||(_n=vn,Array.isArray(_n)&&!S$7(_n,kn=>typeof kn!="function")));var _n}function D$1(vn,_n){let kn=vn[_n]||[];kn=Array.isArray(kn)?kn:[kn],kn.length===0&&(kn=[()=>Promise.resolve()]);const Mn=A$3(vn),Yn=T$2(vn);return function(Wn){return kn.reduce((Kn,Xn,Hn)=>Kn.then(()=>{const qn=Xn(Wn);return U$1(qn)?qn:Promise.reject(u$b(15,!1,Mn,Yn,_n,Hn))}),Promise.resolve())}}function U$1(vn){return vn&&typeof vn.then=="function"&&typeof vn.catch=="function"}let M$2=[];function j(vn,_n){return Promise.resolve().then(()=>vn.status!==f$d?vn:(vn.status=p$b,vn.bootstrap?V$1(vn,"bootstrap").then(kn).catch(Mn=>{if(_n)throw a$2(Mn,vn,v$7);return o$7(Mn,vn,v$7),vn}):Promise.resolve().then(kn)));function kn(){return vn.status=h$e,vn}}function $$5(vn,_n){return Promise.resolve().then(()=>{if(vn.status!==d$b)return vn;vn.status=g$6;const kn=Object.keys(vn.parcels).map(Yn=>vn.parcels[Yn].unmountThisParcel());return Promise.all(kn).then(Mn,Yn=>Mn().then(()=>{const Wn=Error(Yn.message);if(_n)throw a$2(Wn,vn,v$7);o$7(Wn,vn,v$7)})).then(()=>vn);function Mn(){return V$1(vn,"unmount").then(()=>{vn.status=h$e},Yn=>{if(_n)throw a$2(Yn,vn,v$7);o$7(Yn,vn,v$7)})}})}let L$2=!1,R$2=!1;function x$2(vn,_n){return Promise.resolve().then(()=>vn.status!==h$e?vn:(L$2||(window.dispatchEvent(new n$7("single-spa:before-first-mount")),L$2=!0),vn.status=m$8,V$1(vn,"mount").then(()=>(vn.status=d$b,R$2||(window.dispatchEvent(new n$7("single-spa:first-mount")),R$2=!0),vn)).catch(kn=>{return vn.status=d$b,$$5(vn,!0).then(Mn,Mn);function Mn(){if(_n)throw a$2(kn,vn,v$7);return o$7(kn,vn,v$7),vn}})))}let I$3=0;const B$3={parcels:{}};function G(){return W$1.apply(B$3,arguments)}function W$1(vn,_n){const kn=this;if(!vn||typeof vn!="object"&&typeof vn!="function")throw Error(u$b(2));if(vn.name&&typeof vn.name!="string")throw Error(u$b(3,!1,typeof vn.name));const Mn=I$3++;let Yn=vn.name||`parcel-${Mn}`;if(typeof _n!="object")throw Error(u$b(4,!1,Yn,typeof _n));if(!_n.domElement)throw Error(u$b(5,!1,Yn));const Wn=typeof vn=="function",Kn=Wn?vn:()=>Promise.resolve(vn),Xn={id:Mn,parcels:{},status:Wn?l$3:f$d,customProps:_n,parentName:T$2(kn),unmountThisParcel:()=>Dn.then(()=>{if(Xn.status!==d$b)throw Error(u$b(6,!1,Yn,Xn.status));return $$5(Xn,!0)}).then(zn=>(Xn.parentName&&delete kn.parcels[Xn.id],zn)).then(zn=>(Pn(zn),zn)).catch(zn=>{throw Xn.status=v$7,Bn(zn),zn})};let Hn;kn.parcels[Mn]=Xn;let qn=Kn();if(!qn||typeof qn.then!="function")throw Error(u$b(7));qn=qn.then(zn=>{if(!zn)throw Error(u$b(8));if(Yn=zn.name||`parcel-${Mn}`,Object.prototype.hasOwnProperty.call(zn,"bootstrap")&&!_$7(zn.bootstrap))throw Error(u$b(9,!1,Yn));if(!_$7(zn.mount))throw Error(u$b(10,!1,Yn));if(!_$7(zn.unmount))throw Error(u$b(11,!1,Yn));if(zn.update&&!_$7(zn.update))throw Error(u$b(12,!1,Yn));const Qn=D$1(zn,"bootstrap"),Jn=D$1(zn,"mount"),ti=D$1(zn,"unmount");Xn.status=f$d,Xn.name=Yn,Xn.bootstrap=Qn,Xn.mount=Jn,Xn.unmount=ti,Xn.timeouts=q(zn.timeouts),zn.update&&(Xn.update=D$1(zn,"update"),Hn.update=function(vi){return Xn.customProps=vi,C$1((pi=Xn,Promise.resolve().then(()=>{if(pi.status!==d$b)throw Error(u$b(32,!1,T$2(pi)));return pi.status=w$4,V$1(pi,"update").then(()=>(pi.status=d$b,pi)).catch(si=>{throw a$2(si,pi,v$7)})})));var pi})});const In=qn.then(()=>j(Xn,!0)),Dn=In.then(()=>x$2(Xn,!0));let Pn,Bn;const Nn=new Promise((zn,Qn)=>{Pn=zn,Bn=Qn});return Hn={mount:()=>C$1(Promise.resolve().then(()=>{if(Xn.status!==h$e)throw Error(u$b(13,!1,Yn,Xn.status));return kn.parcels[Mn]=Xn,x$2(Xn)})),unmount:()=>C$1(Xn.unmountThisParcel()),getStatus:()=>Xn.status,loadPromise:C$1(qn),bootstrapPromise:C$1(In),mountPromise:C$1(Dn),unmountPromise:C$1(Nn)},Hn}function C$1(vn){return vn.then(()=>null)}function k$7(vn){const _n=T$2(vn);let kn=typeof vn.customProps=="function"?vn.customProps(_n,window.location):vn.customProps;(typeof kn!="object"||kn===null||Array.isArray(kn))&&(kn={},console.warn(u$b(40),_n,kn));const Mn=N$3({},kn,{name:_n,mountParcel:W$1.bind(vn),singleSpa:t$1});return b$5(vn)&&(Mn.unmountSelf=vn.unmountThisParcel),Mn}const F$2={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function K$1(vn,_n,kn){if(typeof vn!="number"||vn<=0)throw Error(u$b(16));F$2.bootstrap={millis:vn,dieOnTimeout:_n,warningMillis:kn||1e3}}function H(vn,_n,kn){if(typeof vn!="number"||vn<=0)throw Error(u$b(17));F$2.mount={millis:vn,dieOnTimeout:_n,warningMillis:kn||1e3}}function J(vn,_n,kn){if(typeof vn!="number"||vn<=0)throw Error(u$b(18));F$2.unmount={millis:vn,dieOnTimeout:_n,warningMillis:kn||1e3}}function Q(vn,_n,kn){if(typeof vn!="number"||vn<=0)throw Error(u$b(19));F$2.unload={millis:vn,dieOnTimeout:_n,warningMillis:kn||1e3}}function V$1(vn,_n){const kn=vn.timeouts[_n],Mn=kn.warningMillis,Yn=A$3(vn);return new Promise((Wn,Kn)=>{let Xn=!1,Hn=!1;vn[_n](k$7(vn)).then(Dn=>{Xn=!0,Wn(Dn)}).catch(Dn=>{Xn=!0,Kn(Dn)}),setTimeout(()=>In(1),Mn),setTimeout(()=>In(!0),kn.millis);const qn=u$b(31,!1,_n,Yn,T$2(vn),kn.millis);function In(Dn){if(!Xn){if(Dn===!0)Hn=!0,kn.dieOnTimeout?Kn(Error(qn)):console.error(qn);else if(!Hn){const Pn=Dn,Bn=Pn*Mn;console.warn(qn),Bn+Mn<kn.millis&&setTimeout(()=>In(Pn+1),Mn)}}}})}function q(vn){const _n={};for(let kn in F$2)_n[kn]=N$3({},F$2[kn],vn&&vn[kn]||{});return _n}function z$6(vn){return Promise.resolve().then(()=>{if(vn.loadPromise)return vn.loadPromise;if(vn.status!==c$7&&vn.status!==E$1)return vn;let _n,kn;return vn.status=l$3,vn.loadPromise=Promise.resolve().then(()=>{const Mn=vn.loadApp(k$7(vn));if(!U$1(Mn))throw kn=!0,Error(u$b(33,!1,T$2(vn)));return Mn.then(Yn=>{let Wn;vn.loadErrorTime=null,_n=Yn,typeof _n!="object"&&(Wn=34),Object.prototype.hasOwnProperty.call(_n,"bootstrap")&&!_$7(_n.bootstrap)&&(Wn=35),_$7(_n.mount)||(Wn=36),_$7(_n.unmount)||(Wn=37);const Kn=A$3(_n);if(Wn){let Xn;try{Xn=JSON.stringify(_n)}catch{}return console.error(u$b(Wn,!1,Kn,T$2(vn),Xn),_n),o$7(void 0,vn,v$7),vn}return _n.devtools&&_n.devtools.overlays&&(vn.devtools.overlays=N$3({},vn.devtools.overlays,_n.devtools.overlays)),vn.status=f$d,vn.bootstrap=D$1(_n,"bootstrap"),vn.mount=D$1(_n,"mount"),vn.unmount=D$1(_n,"unmount"),vn.unload=D$1(_n,"unload"),vn.timeouts=q(_n.timeouts),delete vn.loadPromise,vn})}).catch(Mn=>{let Yn;return delete vn.loadPromise,kn?Yn=v$7:(Yn=E$1,vn.loadErrorTime=new Date().getTime()),o$7(Mn,vn,Yn),vn})})}const X=typeof window<"u",Y={hashchange:[],popstate:[]},Z=["hashchange","popstate"];function tt(vn){let _n;if(typeof vn=="string")_n=vn;else if(this&&this.href)_n=this.href;else{if(!(vn&&vn.currentTarget&&vn.currentTarget.href&&vn.preventDefault))throw Error(u$b(14));_n=vn.currentTarget.href,vn.preventDefault()}const kn=ct(window.location.href),Mn=ct(_n);_n.indexOf("#")===0?window.location.hash=Mn.hash:kn.host!==Mn.host&&Mn.host?window.location.href=_n:Mn.pathname===kn.pathname&&Mn.search===kn.search?window.location.hash=Mn.hash:window.history.pushState(null,null,_n)}function et(vn){if(vn){const _n=vn[0].type;Z.indexOf(_n)>=0&&Y[_n].forEach(kn=>{try{kn.apply(this,vn)}catch(Mn){setTimeout(()=>{throw Mn})}})}}let nt;function rt(){Lt([],arguments)}function ot(vn,_n){return function(){const kn=window.location.href,Mn=vn.apply(this,arguments),Yn=window.location.href;return nt&&kn===Yn||window.dispatchEvent(it(window.history.state,_n)),Mn}}function it(vn,_n){let kn;try{kn=new PopStateEvent("popstate",{state:vn})}catch{kn=document.createEvent("PopStateEvent"),kn.initPopStateEvent("popstate",!1,!1,vn)}return kn.singleSpa=!0,kn.singleSpaTrigger=_n,kn}let st=null,ut=!1;function at(vn){if(ut)throw Error(u$b(43));nt=!vn||!vn.hasOwnProperty("urlRerouteOnly")||vn.urlRerouteOnly,ut=!0,st=window.history.replaceState,window.addEventListener("hashchange",rt),window.addEventListener("popstate",rt);const _n=window.addEventListener,kn=window.removeEventListener;window.addEventListener=function(Mn,Yn){if(!(typeof Yn=="function"&&Z.indexOf(Mn)>=0)||S$7(Y[Mn],Wn=>Wn===Yn))return _n.apply(this,arguments);Y[Mn].push(Yn)},window.removeEventListener=function(Mn,Yn){return typeof Yn=="function"&&Z.indexOf(Mn)>=0&&(Y[Mn]=Y[Mn].filter(Wn=>Wn!==Yn)),kn.apply(this,arguments)},window.history.pushState=ot(window.history.pushState,"pushState"),window.history.replaceState=ot(st,"replaceState")}function ct(vn){const _n=document.createElement("a");return _n.href=vn,_n}X&&(window.singleSpaNavigate?console.warn(u$b(41)):window.singleSpaNavigate=tt);let lt=!1;function ft(vn=window.jQuery){if(vn||window.$&&window.$.fn&&window.$.fn.jquery&&(vn=window.$),vn&&!lt){const _n=vn.fn.on,kn=vn.fn.off;vn.fn.on=function(Mn,Yn){return pt.call(this,_n,window.addEventListener,Mn,Yn,arguments)},vn.fn.off=function(Mn,Yn){return pt.call(this,kn,window.removeEventListener,Mn,Yn,arguments)},lt=!0}}function pt(vn,_n,kn,Mn,Yn){return typeof kn!="string"?vn.apply(this,Yn):(kn.split(/\s+/).forEach(Wn=>{Z.indexOf(Wn)>=0&&(_n(Wn,Mn),kn=kn.replace(Wn,""))}),kn.trim()===""?this:vn.apply(this,Yn))}const ht={};function mt(vn){return Promise.resolve().then(()=>{const _n=ht[T$2(vn)];if(!_n)return vn;if(vn.status===c$7)return dt(vn,_n),vn;if(vn.status===y$a)return _n.promise.then(()=>vn);if(vn.status!==h$e&&vn.status!==E$1)return vn;const kn=vn.status===E$1?Promise.resolve():V$1(vn,"unload");return vn.status=y$a,kn.then(()=>(dt(vn,_n),vn)).catch(Mn=>(function(Yn,Wn,Kn){delete ht[T$2(Yn)],delete Yn.bootstrap,delete Yn.mount,delete Yn.unmount,delete Yn.unload,o$7(Kn,Yn,v$7),Wn.reject(Kn)}(vn,_n,Mn),vn))})}function dt(vn,_n){delete ht[T$2(vn)],delete vn.bootstrap,delete vn.mount,delete vn.unmount,delete vn.unload,vn.status=c$7,_n.resolve()}function wt(vn,_n,kn,Mn){ht[T$2(vn)]={app:vn,resolve:kn,reject:Mn},Object.defineProperty(ht[T$2(vn)],"promise",{get:_n})}function gt(vn){return ht[vn]}const yt=[];function Et(){return yt.filter(P).map(T$2)}function vt(){return yt.map(T$2)}function Pt(vn){const _n=S$7(yt,kn=>T$2(kn)===vn);return _n?_n.status:null}let Ot=!1;function Tt(vn,_n,kn,Mn){const Yn=function(Wn,Kn,Xn,Hn){const qn={name:null,loadApp:null,activeWhen:null,customProps:null};return typeof Wn=="object"?(function(Dn){if(Array.isArray(Dn)||Dn===null)throw Error(u$b(39));const Pn=["name","app","activeWhen","customProps"],Bn=Object.keys(Dn).reduce((zn,Qn)=>Pn.indexOf(Qn)>=0?zn:zn.concat(Qn),[]);if(Bn.length!==0)throw Error(u$b(38,!1,Pn.join(", "),Bn.join(", ")));if(typeof Dn.name!="string"||Dn.name.length===0||typeof Dn.app!="object"&&typeof Dn.app!="function")throw Error(u$b(20));const Nn=zn=>typeof zn=="string"||typeof zn=="function";if(!(Nn(Dn.activeWhen)||Array.isArray(Dn.activeWhen)&&Dn.activeWhen.every(Nn)))throw Error(u$b(24));if(!_t(Dn.customProps))throw Error(u$b(22))}(Wn),qn.name=Wn.name,qn.loadApp=Wn.app,qn.activeWhen=Wn.activeWhen,qn.customProps=Wn.customProps):(function(Dn,Pn,Bn,Nn){if(typeof Dn!="string"||Dn.length===0)throw Error(u$b(20));if(!Pn)throw Error(u$b(23));if(typeof Bn!="function")throw Error(u$b(24));if(!_t(Nn))throw Error(u$b(22))}(Wn,Kn,Xn,Hn),qn.name=Wn,qn.loadApp=Kn,qn.activeWhen=Xn,qn.customProps=Hn),qn.loadApp=typeof(In=qn.loadApp)!="function"?()=>Promise.resolve(In):In,qn.customProps=function(Dn){return Dn||{}}(qn.customProps),qn.activeWhen=function(Dn){let Pn=Array.isArray(Dn)?Dn:[Dn];return Pn=Pn.map(Bn=>typeof Bn=="function"?Bn:Dt(Bn)),Bn=>Pn.some(Nn=>Nn(Bn))}(qn.activeWhen),qn;var In}(vn,_n,kn,Mn);if(Bt()||Ot||(Ot=!0,setTimeout(()=>{Bt()||console.warn(u$b(1))},5e3)),vt().indexOf(Yn.name)!==-1)throw Error(u$b(21,!1,Yn.name));yt.push(N$3({loadErrorTime:null,status:c$7,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},Yn)),X&&(ft(),Lt())}function bt(vn=window.location){return yt.filter(_n=>_n.activeWhen(vn)).map(T$2)}function At(vn){if(yt.filter(_n=>T$2(_n)===vn).length===0)throw Error(u$b(25,!1,vn));return(X?Nt(vn,{waitForUnmount:!1}):Promise.resolve()).then(()=>{const _n=yt.map(T$2).indexOf(vn);yt.splice(_n,1)})}function Nt(vn,_n={waitForUnmount:!1}){if(typeof vn!="string")throw Error(u$b(26));const kn=S$7(yt,Yn=>T$2(Yn)===vn);if(!kn)throw Error(u$b(27,!1,vn));const Mn=gt(T$2(kn));if(_n&&_n.waitForUnmount){if(Mn)return Mn.promise;{const Yn=new Promise((Wn,Kn)=>{wt(kn,()=>Yn,Wn,Kn)});return Yn}}{let Yn;return Mn?(Yn=Mn.promise,St(kn,Mn.resolve,Mn.reject)):Yn=new Promise((Wn,Kn)=>{wt(kn,()=>Yn,Wn,Kn),St(kn,Wn,Kn)}),Yn}}function St(vn,_n,kn){Promise.resolve().then(()=>{if(S$7(bt(),Mn=>Mn===T$2(vn)))return $t()}).then(()=>$$5(vn).then(mt).then(()=>{_n(),setTimeout(()=>{Lt()})})).catch(kn)}function _t(vn){return!vn||typeof vn=="function"||typeof vn=="object"&&vn!==null&&!Array.isArray(vn)}function Dt(vn,_n){const kn=function(Mn,Yn){let Wn=0,Kn=!1,Xn="^";Mn[0]!=="/"&&(Mn="/"+Mn);for(let qn=0;qn<Mn.length;qn++){const In=Mn[qn];(!Kn&&In===":"||Kn&&In==="/")&&Hn(qn)}return Hn(Mn.length),new RegExp(Xn,"i");function Hn(qn){const In=Mn.slice(Wn,qn).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(Xn+=Kn?"[^/]+/?":In,qn===Mn.length)if(Kn)Yn&&(Xn+="$");else{const Dn=Yn?"":".*";Xn=Xn.charAt(Xn.length-1)==="/"?`${Xn}${Dn}$`:`${Xn}(/${Dn})?(#.*)?$`}Kn=!Kn,Wn=qn}}(vn,_n);return Mn=>{let Yn=Mn.origin;Yn||(Yn=`${Mn.protocol}//${Mn.host}`);const Wn=Mn.href.replace(Yn,"").replace(Mn.search,"").split("?")[0];return kn.test(Wn)}}let Ut=!1,Mt=[],jt=X&&window.location.href;function $t(){return Lt()}function Lt(vn=[],_n,kn=!1){if(Ut)return new Promise((Qn,Jn)=>{Mt.push({resolve:Qn,reject:Jn,eventArguments:_n})});const{appsToUnload:Mn,appsToUnmount:Yn,appsToLoad:Wn,appsToMount:Kn}=function(){const Qn=[],Jn=[],ti=[],vi=[],pi=new Date().getTime();return yt.forEach(si=>{const ei=si.status!==v$7&&O(si);switch(si.status){case E$1:ei&&pi-si.loadErrorTime>=200&&ti.push(si);break;case c$7:case l$3:ei&&ti.push(si);break;case f$d:case h$e:!ei&&gt(T$2(si))?Qn.push(si):ei&&vi.push(si);break;case d$b:ei||Jn.push(si)}}),{appsToUnload:Qn,appsToUnmount:Jn,appsToLoad:ti,appsToMount:vi}}();let Xn,Hn=[],qn=jt,In=jt=window.location.href;return Bt()?(Ut=!0,Xn=Mn.concat(Wn,Yn,Kn),Promise.resolve().then(()=>(zn(Xn.length===0?"before-no-app-change":"before-app-change",Nn(!0)),zn("before-routing-event",Nn(!0,{cancelNavigation:Dn})),Promise.all(Hn).then(Qn=>{if(Qn.some(ei=>ei))return st.call(window.history,history.state,"",qn.substring(location.origin.length)),jt=location.href,Ut=!1,Lt(vn,_n,!0);const Jn=Mn.map(mt),ti=Yn.map($$5).map(ei=>ei.then(mt)).concat(Jn),vi=Promise.all(ti);vi.then(()=>{zn("before-mount-routing-event",Nn(!0))},ei=>{throw ei});const pi=Wn.map(ei=>z$6(ei).then(mi=>Rt(mi,vi))),si=Kn.filter(ei=>Wn.indexOf(ei)<0).map(ei=>Rt(ei,vi));return vi.catch(ei=>{throw Bn(),ei}).then(()=>(Bn(),Promise.all(pi.concat(si)).catch(ei=>{throw vn.forEach(mi=>mi.reject(ei)),ei}).then(Pn).then(()=>{},ei=>{throw ei})))})))):(Xn=Wn,Promise.resolve().then(()=>{const Qn=Wn.map(z$6);return Promise.all(Qn).then(Bn).then(()=>[]).catch(Jn=>{throw Bn(),Jn}).finally(()=>{})}));function Dn(Qn=!0){const Jn=typeof(Qn==null?void 0:Qn.then)=="function"?Qn:Promise.resolve(Qn);Hn.push(Jn.catch(ti=>(console.warn(Error(u$b(42))),console.warn(ti),!1)))}function Pn(){const Qn=Et();vn.forEach(Jn=>Jn.resolve(Qn));try{zn(Xn.length===0?"no-app-change":"app-change",Nn()),zn("routing-event",Nn())}catch(Jn){setTimeout(()=>{throw Jn})}if(Ut=!1,Mt.length>0){const Jn=Mt;Mt=[],Lt(Jn)}return Qn}function Bn(){kn||(vn.forEach(Qn=>{et(Qn.eventArguments)}),et(_n))}function Nn(Qn=!1,Jn){const ti={},vi={[d$b]:[],[h$e]:[],[c$7]:[],[v$7]:[]};Qn?(Wn.concat(Kn).forEach((ei,mi)=>{si(ei,d$b)}),Mn.forEach(ei=>{si(ei,c$7)}),Yn.forEach(ei=>{si(ei,h$e)})):Xn.forEach(ei=>{si(ei)});const pi={detail:{newAppStatuses:ti,appsByNewStatus:vi,totalAppChanges:Xn.length,originalEvent:_n==null?void 0:_n[0],oldUrl:qn,newUrl:In}};return Jn&&N$3(pi.detail,Jn),pi;function si(ei,mi){const fi=T$2(ei);mi=mi||Pt(fi),ti[fi]=mi,(vi[mi]=vi[mi]||[]).push(fi)}}function zn(Qn,Jn){kn||window.dispatchEvent(new n$7(`single-spa:${Qn}`,Jn))}}function Rt(vn,_n){return O(vn)?j(vn).then(kn=>_n.then(()=>O(kn)?x$2(kn):kn)):_n.then(()=>vn)}let xt=!1;function It(vn){xt=!0,X&&(at(vn),Lt())}function Bt(){return xt}var Gt={getRawAppData:function(){return[...yt]},reroute:Lt,NOT_LOADED:c$7,toLoadPromise:z$6,toBootstrapPromise:j,unregisterApplication:At,getProfilerData:function(){return M$2}};X&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods=Gt);const _export_sfc=(vn,_n)=>{const kn=vn.__vccOpts||vn;for(const[Mn,Yn]of _n)kn[Mn]=Yn;return kn},_sfc_main$1={mixins:[U1],data:function(){return{packetTime:null,receivedTime:null,currentTime:null,streamTime:null,date:new Date}},computed:{utc:function(){return this.date.toUTCString()}},watch:{latestData:function(vn){vn.forEach(_n=>{"buffer"in _n||(this.packetTime=_n.PACKET_TIMEFORMATTED,this.receivedTime=_n.RECEIVED_TIMEFORMATTED),this.streamTime=new Date(_n.__time/1e6).toISOString(),this.date=new Date})}}};function _sfc_render$1(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-col"),Xn=vue.resolveComponent("v-text-field"),Hn=vue.resolveComponent("v-row"),qn=vue.resolveComponent("v-container");return vue.openBlock(),vue.createBlock(qn,null,{default:vue.withCtx(()=>[vue.createVNode(Hn,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(Kn,null,{default:vue.withCtx(()=>_n[0]||(_n[0]=[vue.createTextVNode(" Current Time: ")])),_:1}),vue.createVNode(Kn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,{variant:"solo",density:"compact",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time","model-value":vn.date},null,8,["model-value"])]),_:1})]),_:1}),vue.createVNode(Hn,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(Kn,null,{default:vue.withCtx(()=>_n[1]||(_n[1]=[vue.createTextVNode(" UTC Time: ")])),_:1}),vue.createVNode(Kn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,{variant:"solo",density:"compact",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time","model-value":Wn.utc},null,8,["model-value"])]),_:1})]),_:1}),vue.createVNode(Hn,{dense:""},{default:vue.withCtx(()=>[vue.createVNode(Kn,null,{default:vue.withCtx(()=>_n[2]||(_n[2]=[vue.createTextVNode(" Stream Time (UTC): ")])),_:1}),vue.createVNode(Kn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,{variant:"solo",density:"compact",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time","model-value":vn.streamTime},null,8,["model-value"])]),_:1})]),_:1}),vn.hasDecom?(vue.openBlock(),vue.createBlock(Hn,{key:0,dense:""},{default:vue.withCtx(()=>[vue.createVNode(Kn,null,{default:vue.withCtx(()=>_n[3]||(_n[3]=[vue.createTextVNode(" Packet Time: ")])),_:1}),vue.createVNode(Kn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,{variant:"solo",density:"compact",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time","model-value":vn.packetTime},null,8,["model-value"])]),_:1})]),_:1})):vue.createCommentVNode("",!0),vn.hasDecom?(vue.openBlock(),vue.createBlock(Hn,{key:1,dense:""},{default:vue.withCtx(()=>[vue.createVNode(Kn,null,{default:vue.withCtx(()=>_n[4]||(_n[4]=[vue.createTextVNode(" Received Time: ")])),_:1}),vue.createVNode(Kn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,{variant:"solo",density:"compact",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Time","model-value":vn.receivedTime},null,8,["model-value"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1})}const DataviewertimeWidget=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),o$6={mixins:[Bk],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(vn=>{this.applyStyleSetting(vn)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const vn=this;return{getNamedWidget:function(_n){return vn.$store.getters.namedWidget(vn.toQualifiedWidgetName(_n))},open:function(_n,kn){vn.$emit("open",_n,kn)},close:function(_n,kn){vn.$emit("close",_n,kn)},closeAll:function(){vn.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((vn,_n)=>_n[0].startsWith("on")?{...vn,[_n[0]]:_n[1]}:vn,{})}},watch:{widgetName:function(vn,_n){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(_n)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(vn)]:this})}},created(){var vn,_n;this.screenId=(vn=this.settings.find(kn=>kn[0]==="__SCREEN_ID__"))==null?void 0:vn.at(1),this.widgetName=(_n=this.settings.find(kn=>kn[0]==="NAMED_WIDGET"))==null?void 0:_n.at(1),this.appliedSettings=this.settings.map(kn=>{const Mn=parseInt(kn[0]);if(isNaN(Mn)||this.widgetIndex===null)return kn;if(this.widgetIndex===Mn)return kn.slice(1)}).filter(kn=>kn!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(vn){switch(vn[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=vn[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=vn[1].toLowerCase();break;case"PADDING":isNaN(Number(vn[1]))||(vn[1]+="px"),this.appliedStyle.padding=vn[1]+" !important";break;case"MARGIN":isNaN(Number(vn[1]))||(vn[1]+="px"),this.appliedStyle.margin=vn[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(vn.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(vn.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(vn.slice(1))+" !important";break;case"WIDTH":isNaN(Number(vn[1]))||(vn[1]+="px"),this.appliedStyle.width=vn[1]+" !important";break;case"HEIGHT":isNaN(Number(vn[1]))||(vn[1]+="px"),this.appliedStyle.height=vn[1]+" !important";break;case"RAW":this.appliedStyle[vn[1].toLowerCase()]=vn[2]+" !important";break}},verifyNumParams(vn,_n,kn,Mn=""){let Yn={line:this.line,lineNumber:this.lineNumber,keyword:vn,parameters:this.parameters};for(let Wn=1;Wn<=_n;Wn++)if(this.parameters[Wn-1]===void 0)throw new af(Yn,`Not enough parameters for ${vn}.`,Mn,"https://docs.openc3.com/docs/configuration");if(kn!==null&&this.parameters.length>kn)throw new af(Yn,`Too many parameters for ${vn}.`,Mn,"https://docs.openc3.com/docs/configuration")},setWidth(vn,_n="px",kn="120"){let Mn=this.appliedSettings.find(Yn=>Yn[0]==="WIDTH");return Mn?Mn.WIDTH:vn?(this.appliedSettings.push(["WIDTH",`${vn}${_n}`]),parseInt(vn)):(this.appliedSettings.push(["WIDTH",`${kn}${_n}`]),parseInt(kn))},setHeight(vn,_n="px",kn="20"){let Mn=null;return Mn=this.appliedSettings.find(Yn=>Yn[0]==="HEIGHT"),Mn?Mn.HEIGHT:vn?(this.appliedSettings.push(["HEIGHT",`${vn}${_n}`]),parseInt(vn)):(this.appliedSettings.push(["HEIGHT",`${kn}${_n}`]),parseInt(kn))},getColor(vn){switch(vn.length){case 1:return vn[0].toLowerCase();case 3:return`rgb(${vn[0]},${vn[1]},${vn[2]})`}},toQualifiedWidgetName(vn){return`${this.screenId}:${vn}`}}};var w$3={},b$4;function V(){return b$4||(b$4=1,function(vn){(function(){var _n={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function kn(Xn){return Yn(Kn(Xn),arguments)}function Mn(Xn,Hn){return kn.apply(null,[Xn].concat(Hn||[]))}function Yn(Xn,Hn){var qn=1,In=Xn.length,Dn,Pn="",Bn,Nn,zn,Qn,Jn,ti,vi,pi;for(Bn=0;Bn<In;Bn++)if(typeof Xn[Bn]=="string")Pn+=Xn[Bn];else if(typeof Xn[Bn]=="object"){if(zn=Xn[Bn],zn.keys)for(Dn=Hn[qn],Nn=0;Nn<zn.keys.length;Nn++){if(Dn==null)throw new Error(kn('[sprintf] Cannot access property "%s" of undefined value "%s"',zn.keys[Nn],zn.keys[Nn-1]));Dn=Dn[zn.keys[Nn]]}else zn.param_no?Dn=Hn[zn.param_no]:Dn=Hn[qn++];if(_n.not_type.test(zn.type)&&_n.not_primitive.test(zn.type)&&Dn instanceof Function&&(Dn=Dn()),_n.numeric_arg.test(zn.type)&&typeof Dn!="number"&&isNaN(Dn))throw new TypeError(kn("[sprintf] expecting number but found %T",Dn));switch(_n.number.test(zn.type)&&(vi=Dn>=0),zn.type){case"b":Dn=parseInt(Dn,10).toString(2);break;case"c":Dn=String.fromCharCode(parseInt(Dn,10));break;case"d":case"i":Dn=parseInt(Dn,10);break;case"j":Dn=JSON.stringify(Dn,null,zn.width?parseInt(zn.width):0);break;case"e":Dn=zn.precision?parseFloat(Dn).toExponential(zn.precision):parseFloat(Dn).toExponential();break;case"f":Dn=zn.precision?parseFloat(Dn).toFixed(zn.precision):parseFloat(Dn);break;case"g":Dn=zn.precision?String(Number(Dn.toPrecision(zn.precision))):parseFloat(Dn);break;case"o":Dn=(parseInt(Dn,10)>>>0).toString(8);break;case"s":Dn=String(Dn),Dn=zn.precision?Dn.substring(0,zn.precision):Dn;break;case"t":Dn=String(!!Dn),Dn=zn.precision?Dn.substring(0,zn.precision):Dn;break;case"T":Dn=Object.prototype.toString.call(Dn).slice(8,-1).toLowerCase(),Dn=zn.precision?Dn.substring(0,zn.precision):Dn;break;case"u":Dn=parseInt(Dn,10)>>>0;break;case"v":Dn=Dn.valueOf(),Dn=zn.precision?Dn.substring(0,zn.precision):Dn;break;case"x":Dn=(parseInt(Dn,10)>>>0).toString(16);break;case"X":Dn=(parseInt(Dn,10)>>>0).toString(16).toUpperCase();break}_n.json.test(zn.type)?Pn+=Dn:(_n.number.test(zn.type)&&(!vi||zn.sign)?(pi=vi?"+":"-",Dn=Dn.toString().replace(_n.sign,"")):pi="",Jn=zn.pad_char?zn.pad_char==="0"?"0":zn.pad_char.charAt(1):" ",ti=zn.width-(pi+Dn).length,Qn=zn.width&&ti>0?Jn.repeat(ti):"",Pn+=zn.align?pi+Dn+Qn:Jn==="0"?pi+Qn+Dn:Qn+pi+Dn)}return Pn}var Wn=Object.create(null);function Kn(Xn){if(Wn[Xn])return Wn[Xn];for(var Hn=Xn,qn,In=[],Dn=0;Hn;){if((qn=_n.text.exec(Hn))!==null)In.push(qn[0]);else if((qn=_n.modulo.exec(Hn))!==null)In.push("%");else if((qn=_n.placeholder.exec(Hn))!==null){if(qn[2]){Dn|=1;var Pn=[],Bn=qn[2],Nn=[];if((Nn=_n.key.exec(Bn))!==null)for(Pn.push(Nn[1]);(Bn=Bn.substring(Nn[0].length))!=="";)if((Nn=_n.key_access.exec(Bn))!==null)Pn.push(Nn[1]);else if((Nn=_n.index_access.exec(Bn))!==null)Pn.push(Nn[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");qn[2]=Pn}else Dn|=2;if(Dn===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");In.push({placeholder:qn[0],param_no:qn[1],keys:qn[2],sign:qn[3],pad_char:qn[4],align:qn[5],width:qn[6],precision:qn[7],type:qn[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");Hn=Hn.substring(qn[0].length)}return Wn[Xn]=In}vn.sprintf=kn,vn.vsprintf=Mn,typeof window<"u"&&(window.sprintf=kn,window.vsprintf=Mn)})()}(w$3)),w$3}V();const k$6={methods:{formatValueBase(vn,_n){return this.isJsonString(vn)?this.formatJsonString(vn):Array.isArray(vn)?this.formatArray(vn):this.isObject(vn)?"":_n&&vn?sprintf(_n,vn):String(vn)},isJsonString(vn){return vn&&vn.json_class==="String"&&vn.raw!==void 0},formatJsonString(vn){let _n=Array.from(vn.raw.slice(0,32),kn=>("0"+(kn&255).toString(16)).slice(-2)).join(" ").toUpperCase();return vn.raw.length>32&&(_n+="..."),_n},formatArray(vn){return"["+vn.map(_n=>typeof _n=="string"?`"${_n}"`:_n).join(", ")+"]"},isObject(vn){return Object.prototype.toString.call(vn).slice(8,-1)==="Object"}}},L$1={mixins:[o$6,Pe$1,k$6],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(vn,_n){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let vn=this.limitsState;return vn===null&&(this.screenValues?this.screenValues[this.valueId]&&(vn=this.screenValues[this.valueId][1]):vn=null),vn},_counter:function(){let vn=this.counter;return vn===null&&(this.screenValues?this.screenValues[this.valueId]&&(vn=this.screenValues[this.valueId][2]):vn=null),vn},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let vn=this._limitsState;if(vn!=null)switch(vn){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let vn=this._limitsState;if(vn!=null){let _n=vn.charAt(0);return vn.endsWith("_LOW")&&(_n=_n.toLowerCase()),_n}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let vn=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(vn[1]),this.parameters[2]=this.parameters[2].replace(vn[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let vn="WITH_UNITS";return this.parameters[3]&&(vn=this.parameters[3]),vn},formatValue(vn){return vn&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(vn=vn.replaceAll("/","-"),this.formatUtcToLocal(new Date(vn),this.appliedTimeZone)):this.formatValueBase(vn,this.formatString)},showContextMenu(vn){vn.preventDefault(),this.contextMenuShown=!1,this.x=vn.clientX,this.y=vn.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}},z$5={components:{DetailsDialog:P$2},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[L$1],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){let vn="CONVERTED";return this.parameters[7]&&(vn=this.parameters[7]),vn},formatValue:function(vn){var _n;let kn="",Mn=" ",Yn=`
1414
+ `,Wn=0;if(Array.isArray(vn)){for(const Kn of vn)this.formatter&&((_n=this.formatter)==null?void 0:_n.toLowerCase())!=="nil"?kn+=sprintf(this.formatter,Kn):kn+=Kn,Wn+=1,Wn%this.itemsPerRow===0?(Wn=0,kn+=Yn):kn+=Mn;return kn.trim()}else return vn}}},A$2={class:"array-widget-container"};function B$2(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-textarea"),Xn=vue.resolveComponent("v-list-item-title"),Hn=vue.resolveComponent("v-list-item"),qn=vue.resolveComponent("v-list"),In=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",A$2,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":vn._value,class:vue.normalizeClass(vn.valueClass),style:vue.normalizeStyle([vn.computedStyle,Wn.aging]),"data-test":"array-widget",onContextmenu:vn.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),vue.createVNode(In,{modelValue:vn.contextMenuShown,"onUpdate:modelValue":_n[0]||(_n[0]=Pn=>vn.contextMenuShown=Pn),target:[vn.x,vn.y]},{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.contextMenuOptions,(Pn,Bn)=>(vue.openBlock(),vue.createBlock(Hn,{key:Bn,onClick:vue.withModifiers(Pn.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Pn.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":vn.parameters[0],"packet-name":vn.parameters[1],"item-name":vn.parameters[2],modelValue:vn.viewDetails,"onUpdate:modelValue":_n[1]||(_n[1]=Pn=>vn.viewDetails=Pn)},null,8,["target-name","packet-name","item-name","modelValue"])])}const I$2=s$3(z$5,[["render",B$2],["__scopeId","data-v-62b9e9e1"]]),ArrayWidgetBTxChSds=Object.freeze(Object.defineProperty({__proto__:null,default:I$2},Symbol.toStringTag,{value:"Module"})),M$1={components:{DetailsDialog:P$2},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[L$1],computed:{aging(){return{"--aging":this.grayLevel}},rows:function(){return(this.height-16)/24}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){let vn="RAW";return this.parameters[9]&&(vn=this.parameters[9]),vn},formatValue:function(vn){let _n="";if(vn&&vn.raw){let kn=" ",Mn=`
1415
+ `,Yn=0,Wn=0;const Kn=this.bytesPerWord*this.wordsPerRow;for(const Xn of vn.raw)this.addrFormat&&Yn===0&&(_n+=sprintf(this.addrFormat,Wn),Wn+=Kn),_n+=sprintf(this.formatter,Xn),Yn+=1,Yn%Kn===0?(Yn=0,_n+=Mn):Yn%this.bytesPerWord===0&&(_n+=kn)}else _n=vn;return _n}}},R$1={class:"block-widget-container"};function S$6(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-textarea"),Xn=vue.resolveComponent("v-list-item-title"),Hn=vue.resolveComponent("v-list-item"),qn=vue.resolveComponent("v-list"),In=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",R$1,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","hide-details":"",rows:Wn.rows,width:vn.width,"model-value":vn._value,class:vue.normalizeClass(vn.valueClass),style:vue.normalizeStyle([vn.computedStyle,Wn.aging]),"data-test":"valueText",onContextmenu:vn.showContextMenu},null,8,["rows","width","model-value","class","style","onContextmenu"]),vue.createVNode(In,{modelValue:vn.contextMenuShown,"onUpdate:modelValue":_n[0]||(_n[0]=Pn=>vn.contextMenuShown=Pn),target:[vn.x,vn.y]},{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.contextMenuOptions,(Pn,Bn)=>(vue.openBlock(),vue.createBlock(Hn,{key:Bn,onClick:vue.withModifiers(Pn.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Pn.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":vn.parameters[0],"packet-name":vn.parameters[1],"item-name":vn.parameters[2],modelValue:vn.viewDetails,"onUpdate:modelValue":_n[1]||(_n[1]=Pn=>vn.viewDetails=Pn)},null,8,["target-name","packet-name","item-name","modelValue"])])}const N$2=s$3(M$1,[["render",S$6],["__scopeId","data-v-4d4589c2"]]),BlockWidgetPmjzrkXF=Object.freeze(Object.defineProperty({__proto__:null,default:N$2},Symbol.toStringTag,{value:"Module"})),_sfc_main={mixins:[o$6],components:{CriticalCmdDialog:N$5},data(){return{api:null,displaySendHazardous:!1,lastCmd:"",criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new Fk},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,screenValues=this.screenValues,screenTimeZone=this.screenTimeZone,api=this.api,runScript=this.runScript;(self||screen||screenValues||screenTimeZone||api||runScript)&&this.$nextTick(()=>{});for(let i=0;i<lines.length;i++)try{const result=eval(lines[i].trim());result instanceof Promise&&await result}catch(vn){if(vn.message.includes("CriticalCmdError"))this.criticalCmdUuid=vn.object.data.instance_variables["@uuid"],this.criticalCmdString=vn.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=vn.object.data.instance_variables["@username"],this.displayCriticalCmd=!0;else if(vn.message.includes("is Hazardous"))for(this.lastCmd=vn.message.split(`
1416
+ `).pop(),this.displaySendHazardous=!0;this.displaySendHazardous;)await new Promise(_n=>setTimeout(_n,500));else console.error(vn)}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(vn){vn.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=vn.object.data.instance_variables["@uuid"],this.criticalCmdString=vn.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=vn.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(vn,_n=!0,kn={}){let Mn=[];for(const Yn in kn)Mn.push({key:Yn,value:kn[Yn],readonly:!1});Ik.post(`/script-api/scripts/${vn}/run`,{data:{environment:Mn}}).then(Yn=>{_n&&window.open(`/tools/scriptrunner/${Yn.data}`,"_blank")})}}},_hoisted_1={class:"mx-1"};function _sfc_render(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-btn"),Xn=vue.resolveComponent("v-card-title"),Hn=vue.resolveComponent("v-row"),qn=vue.resolveComponent("v-spacer"),In=vue.resolveComponent("v-card-text"),Dn=vue.resolveComponent("v-card"),Pn=vue.resolveComponent("v-dialog"),Bn=vue.resolveComponent("critical-cmd-dialog");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"ma-1",color:"primary",style:vue.normalizeStyle(vn.computedStyle),onClick:Wn.onClick},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.buttonText),1)]),_:1},8,["style","onClick"]),vue.createVNode(Pn,{modelValue:Yn.displaySendHazardous,"onUpdate:modelValue":_n[0]||(_n[0]=Nn=>Yn.displaySendHazardous=Nn),"max-width":"300"},{default:vue.withCtx(()=>[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>_n[2]||(_n[2]=[vue.createTextVNode("Hazardous")])),_:1}),vue.createVNode(In,null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1,[vue.createVNode(Hn,{class:"my-2"},{default:vue.withCtx(()=>_n[3]||(_n[3]=[vue.createElementVNode("span",null," Warning: Command is Hazardous. Send? ",-1)])),_:1}),vue.createVNode(Hn,null,{default:vue.withCtx(()=>[vue.createVNode(qn),vue.createVNode(Kn,{onClick:Wn.cancelHazardousCmd,variant:"outlined"},{default:vue.withCtx(()=>_n[4]||(_n[4]=[vue.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),vue.createVNode(Kn,{onClick:Wn.sendHazardousCmd,class:"bg-primary mx-1"},{default:vue.withCtx(()=>_n[5]||(_n[5]=[vue.createTextVNode(" Send ")])),_:1},8,["onClick"])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"]),vue.createVNode(Bn,{uuid:Yn.criticalCmdUuid,cmdString:Yn.criticalCmdString,cmdUser:Yn.criticalCmdUser,modelValue:Yn.displayCriticalCmd,"onUpdate:modelValue":_n[1]||(_n[1]=Nn=>Yn.displayCriticalCmd=Nn)},null,8,["uuid","cmdString","cmdUser","modelValue"])])}const ButtonWidget=s$3(_sfc_main,[["render",_sfc_render]]),ButtonWidgetNwDlOBJT=Object.freeze(Object.defineProperty({__proto__:null,default:ButtonWidget},Symbol.toStringTag,{value:"Module"})),r={mixins:[o$6],props:{widgets:{type:Array,default:()=>[]}}},h$d={mixins:[r],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},d$a=["width","height"];function f$c(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("svg",{id:"canvas",width:Wn.width,height:Wn.height},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.widgets,(Kn,Xn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},vn.listeners,{key:Xn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],8,d$a)}const L=s$3(h$d,[["render",f$c],["__scopeId","data-v-47bdfc3c"]]),CanvasWidgetBL8930eT=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"})),s$1={mixins:[o$6]},c$6=["cx","cy","r","fill"];function n$6(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("circle",{cx:vn.parameters[0],cy:vn.parameters[1],r:vn.parameters[3],fill:vn.parameters[2]},null,8,c$6)}const $$4=s$3(s$1,[["render",n$6]]),CanvasdotWidgetVCf1fLG=Object.freeze(Object.defineProperty({__proto__:null,default:$$4},Symbol.toStringTag,{value:"Module"})),s={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(vn){let _n="targets_modified";return await Ik.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${_n}/${this.target}/public/${vn}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch(kn=>{_n="targets"}),(await Ik.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${_n}/${this.target}/public/${vn}`)}?bucket=OPENC3_CONFIG_BUCKET`)).data.url}}},o$5={mixins:[o$6,s],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(vn=>{vn[0]==="SCREEN"&&(this.screenTarget=vn[1],this.screenName=vn[2])}),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then(vn=>{this.imageUrl=vn})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},p$a=["href","x","y","width","height"];function u$a(vn,_n,kn,Mn,Yn,Wn){return vn.imageUrl?(vue.openBlock(),vue.createElementBlock("image",{key:0,href:vn.imageUrl,x:vn.parameters[1],y:vn.parameters[2],width:Wn.width,height:Wn.height,style:vue.normalizeStyle(Wn.pointerStyle),onClick:_n[0]||(_n[0]=(...Kn)=>Wn.clickHandler&&Wn.clickHandler(...Kn))},null,12,p$a)):vue.createCommentVNode("",!0)}const S$5=s$3(o$5,[["render",u$a]]),CanvasimageWidgetBIw7Wbf2=Object.freeze(Object.defineProperty({__proto__:null,default:S$5},Symbol.toStringTag,{value:"Module"})),y$9={mixins:[o$6,s],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screenValues[this.valueId]?this.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some(vn=>vn.value==this.selectedValue)},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.appliedSettings.forEach(_n=>{_n[0]==="SCREEN"&&(this.screenTarget=_n[1],this.screenName=_n[2])}),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.$emit("addItem",this.valueId);const vn=this.appliedSettings.filter(_n=>_n[0]==="IMAGE").map(async _n=>{let kn=_n[2];return kn.startsWith("http")||(kn=await this.getPresignedUrl(kn)),{url:kn,value:_n[1],x:_n[3],y:_n[4],width:_n[5],height:_n[6]}});if(Promise.all(vn).then(_n=>{this.images=_n}),this.parameters[4]){const _n={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let kn=this.parameters[4];kn.startsWith("http")?this.defaultImage={..._n,url:kn}:this.getPresignedUrl(kn).then(Mn=>{this.defaultImage={..._n,url:Mn}})}},unmounted:function(){this.$emit("deleteItem",this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}},v$6=["href","x","y","width","height"],w$2=["href","x","y","width","height"];function k$5(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("g",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.images,Kn=>vue.withDirectives((vue.openBlock(),vue.createElementBlock("image",{key:Kn.value,href:Kn.url,x:Kn.x,y:Kn.y,width:Kn.width,height:Kn.height,style:vue.normalizeStyle(Wn.pointerStyle),onClick:_n[0]||(_n[0]=(...Xn)=>Wn.clickHandler&&Wn.clickHandler(...Xn))},null,12,v$6)),[[vue.vShow,Kn.value==Wn.selectedValue]])),128)),vn.defaultImage?vue.withDirectives((vue.openBlock(),vue.createElementBlock("image",{key:0,href:vn.defaultImage.url,x:vn.defaultImage.x,y:vn.defaultImage.y,width:vn.defaultImage.width,height:vn.defaultImage.height,style:vue.normalizeStyle(Wn.pointerStyle),onClick:_n[1]||(_n[1]=(...Kn)=>Wn.clickHandler&&Wn.clickHandler(...Kn))},null,12,w$2)),[[vue.vShow,Wn.showDefault]]):vue.createCommentVNode("",!0)])}const W=s$3(y$9,[["render",k$5]]),CanvasimagevalueWidgetCE3Dj5bH=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),l$2={mixins:[o$6],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},n$5=["x","y","fill"];function p$9(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("text",{x:vn.parameters[0],y:vn.parameters[1],fill:Wn.fillColor},vue.toDisplayString(vn.parameters[2]),9,n$5)}const x$1=s$3(l$2,[["render",p$9]]),CanvaslabelWidgetDWmb356h=Object.freeze(Object.defineProperty({__proto__:null,default:x$1},Symbol.toStringTag,{value:"Module"})),m$7={mixins:[o$6],data(){return{valueId:null}},computed:{_value(){return this.screenValues[this.valueId][0]},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let vn="CONVERTED";this.parameters[7]&&(vn=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${vn}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},n$4=["x","y","font-size","fill"];function o$4(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("text",{x:vn.parameters[3],y:vn.parameters[4],"font-size":Wn.fontSize,fill:Wn.fillColor},vue.toDisplayString(Wn._value),9,n$4)}const v$5=s$3(m$7,[["render",o$4]]),CanvaslabelvalueWidgetCI3yYwFs=Object.freeze(Object.defineProperty({__proto__:null,default:v$5},Symbol.toStringTag,{value:"Module"})),m$6={mixins:[o$6],computed:{calcStyle(){let vn="black";this.parameters[4]&&(vn=this.parameters[4]);let _n=1;return this.parameters[5]&&(_n=this.parameters[5]),"stroke:"+vn+";stroke-width:"+_n}}},n$3=["x1","y1","x2","y2"];function p$8(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("line",{x1:vn.parameters[0],y1:vn.parameters[1],x2:vn.parameters[2],y2:vn.parameters[3],style:vue.normalizeStyle(Wn.calcStyle)},null,12,n$3)}const _$6=s$3(m$6,[["render",p$8]]),CanvaslineWidgetCOeapH3P=Object.freeze(Object.defineProperty({__proto__:null,default:_$6},Symbol.toStringTag,{value:"Module"})),p$7={mixins:[o$6],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let vn="black";this.screenValues[this.valueId]&&(vn=this.valueMap[this.screenValues[this.valueId][0]]);let _n=1;return this.parameters[7]&&(_n=this.parameters[7]),"stroke:"+vn+";stroke-width:"+_n}},created(){this.appliedSettings.forEach(_n=>{_n[0]==="VALUE_EQ"&&(this.valueMap[_n[1]]=_n[2])});let vn="CONVERTED";this.parameters[8]&&(vn=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${vn}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}},o$3=["x1","y1","x2","y2"];function h$c(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("line",{x1:vn.parameters[3],y1:vn.parameters[4],x2:vn.parameters[5],y2:vn.parameters[6],style:vue.normalizeStyle(Wn.calcStyle)},null,12,o$3)}const v$4=s$3(p$7,[["render",h$c]]),CanvaslinevalueWidgetCIBbzfi=Object.freeze(Object.defineProperty({__proto__:null,default:v$4},Symbol.toStringTag,{value:"Module"})),u$9={mixins:[o$6],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.label=this.parameters[0],this.parameters[1]&&(this.value=!0)},methods:{checked(){return this.value}}};function p$6(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-checkbox");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",label:Yn.label,modelValue:Yn.value,"onUpdate:modelValue":_n[0]||(_n[0]=Xn=>Yn.value=Xn),style:vue.normalizeStyle(vn.computedStyle)},null,8,["label","modelValue","style"])}const k$4=s$3(u$9,[["render",p$6]]),CheckbuttonWidgetBQhggcZ2=Object.freeze(Object.defineProperty({__proto__:null,default:k$4},Symbol.toStringTag,{value:"Module"})),p$5={mixins:[o$6],data(){return{items:[],value:null}},created(){this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}};function c$5(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-select");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",variant:"outlined",items:Yn.items,modelValue:Yn.value,"onUpdate:modelValue":_n[0]||(_n[0]=Xn=>Yn.value=Xn),style:vue.normalizeStyle(vn.computedStyle)},null,8,["items","modelValue","style"])}const y$8=s$3(p$5,[["render",c$5]]),ComboboxWidgetBzsbOv54=Object.freeze(Object.defineProperty({__proto__:null,default:y$8},Symbol.toStringTag,{value:"Module"})),u$8={mixins:[o$6,Pe$1],data(){return{label:"Date",dateValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.dateValue=this.formatDate(new Date,this.screenTimeZone)},methods:{text(){return this.dateValue},date(){return this.dateValue}}};function f$b(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{modelValue:Yn.dateValue,"onUpdate:modelValue":_n[0]||(_n[0]=Xn=>Yn.dateValue=Xn),label:Yn.label,style:vue.normalizeStyle(vn.computedStyle),type:"date","hide-details":""},null,8,["modelValue","label","style"])}const D=s$3(u$8,[["render",f$b]]),DateWidgetB5R_9rA8=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),p$4={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch{throw new Error(`Unknown widget: ${this.name}`)}}};function c$4(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Yn.widgetType),vue.normalizeProps(vue.guardReactiveProps({...vn.$props,...vn.$attrs})),null,16)}const $$3=s$3(p$4,[["render",c$4]]),DynamicWidgetM9EliUR2=Object.freeze(Object.defineProperty({__proto__:null,default:$$3},Symbol.toStringTag,{value:"Module"})),u$7=4,A$1={components:{DetailsDialog:P$2},mixins:[L$1],data:function(){return{width:12+u$7}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+u$7,"ch",this.width)}};function U(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("rux-status"),Xn=vue.resolveComponent("v-text-field"),Hn=vue.resolveComponent("v-tooltip"),qn=vue.resolveComponent("v-list-item-title"),In=vue.resolveComponent("v-list-item"),Dn=vue.resolveComponent("v-list"),Pn=vue.resolveComponent("v-menu"),Bn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",{class:"value-widget-container",style:vue.normalizeStyle([vn.computedStyle,Wn.aging])},[vue.createVNode(Hn,{location:"top"},{activator:vue.withCtx(({props:Nn})=>[vue.createVNode(Xn,vue.mergeProps({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":vn._value,class:vn.valueClass,"data-test":"value",onContextmenu:vn.showContextMenu},Nn),vue.createSlots({_:2},[vn.astroStatus?{name:"prepend-inner",fn:vue.withCtx(()=>[vue.createVNode(Kn,{status:vn.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(Wn.fullName),1)]),_:1}),vue.createVNode(Pn,{modelValue:vn.contextMenuShown,"onUpdate:modelValue":_n[0]||(_n[0]=Nn=>vn.contextMenuShown=Nn),target:[vn.x,vn.y],style:{"z-index":"3000"}},{default:vue.withCtx(()=>[vue.createVNode(Dn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.contextMenuOptions,(Nn,zn)=>(vue.openBlock(),vue.createBlock(In,{key:zn,onClick:vue.withModifiers(Nn.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Nn.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Bn,{"target-name":vn.parameters[0],"packet-name":vn.parameters[1],"item-name":vn.parameters[2],modelValue:vn.viewDetails,"onUpdate:modelValue":_n[1]||(_n[1]=Nn=>vn.viewDetails=Nn)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const K=s$3(A$1,[["render",U],["__scopeId","data-v-c21e4dde"]]),ValueWidgetKLYY8L8U=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"})),d$9={mixins:[o$6],components:{ValueWidget:K},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}};function u$6(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(vn.$attrs,{parameters:Wn.getParameters,settings:vn.appliedSettings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,"format-string":vn.parameters[3]}),null,16,["parameters","settings","screen-values","screen-time-zone","format-string"])],4)}const y$7=s$3(d$9,[["render",u$6]]),FormatvalueWidgetDZkRJce8=Object.freeze(Object.defineProperty({__proto__:null,default:y$7},Symbol.toStringTag,{value:"Module"})),y$6={mixins:[r],created:function(){if(this.parameters[0]){let vn=this.parameters[0];this.widgets.forEach(_n=>{_n.settings.find(kn=>kn[0]==="MARGIN"||kn[0]==="RAW"&&kn[1].toUpperCase().includes("MARGIN"))===void 0&&_n.settings.push(["MARGIN",vn])})}}};function h$b(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.widgets,(Kn,Xn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},vn.listeners,{key:Xn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const N$1=s$3(y$6,[["render",h$b]]),HorizontalWidgetCirtfuL8=Object.freeze(Object.defineProperty({__proto__:null,default:N$1},Symbol.toStringTag,{value:"Module"})),f$a={mixins:[r],components:{HorizontalWidget:N$1}};function _$5(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-banner"),Xn=vue.resolveComponent("horizontal-widget");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"boxbanner",style:vue.normalizeStyle(vn.computedStyle),"single-line":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vn.parameters[0]),1)]),_:1},8,["style"]),vue.createVNode(Xn,vue.mergeProps(vn.listeners,{parameters:vn.parameters.slice(1),settings:vn.appliedSettings,widgets:vn.widgets,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,"screen-id":vn.screenId}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone","screen-id"])])}const k$3=s$3(f$a,[["render",_$5],["__scopeId","data-v-e9e6c14b"]]),HorizontalboxWidgetCyTDt2nl=Object.freeze(Object.defineProperty({__proto__:null,default:k$3},Symbol.toStringTag,{value:"Module"})),t={};function c$3(vn,_n){return vue.openBlock(),vue.createElementBlock("hr")}const i=s$3(t,[["render",c$3]]),HorizontallineWidgetBdlNB951=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"})),o$2={mixins:[o$6],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},a$1=["src","width","height"];function n$2(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("iframe",{title:"IFrameWidget",src:vn.parameters[0],width:vn.width,height:vn.height,style:vue.normalizeStyle(vn.computedStyle)},null,12,a$1)}const _$4=s$3(o$2,[["render",n$2]]),IframeWidgetDnJmCrCA=Object.freeze(Object.defineProperty({__proto__:null,default:_$4},Symbol.toStringTag,{value:"Module"})),m$5={mixins:[o$6],data:function(){return{valueId:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.screenValues[this.valueId][0]}`}},created:function(){this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},unmounted:function(){this.$emit("deleteItem",this.valueId)}},o$1=["src","alt","width","height"];function d$8(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("img",{src:Wn.src,alt:vn.valueId,width:vn.parameters[4],height:vn.parameters[5],style:vue.normalizeStyle(vn.computedStyle)},null,12,o$1)}const $$2=s$3(m$5,[["render",d$8]]),ImageviewerWidgetDIkmb_C9=Object.freeze(Object.defineProperty({__proto__:null,default:$$2},Symbol.toStringTag,{value:"Module"})),l$1={mixins:[o$6],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){let vn=null;return this.fontSize&&(vn=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":vn,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}};function f$9(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("div",{"data-test":"label",class:"pa-1 mt-1 label",style:vue.normalizeStyle([Wn.cssProps,vn.computedStyle])},vue.toDisplayString(Wn.labelText),5)}const S$4=s$3(l$1,[["render",f$9],["__scopeId","data-v-1d1d3128"]]),LabelWidgetBDsypYho=Object.freeze(Object.defineProperty({__proto__:null,default:S$4},Symbol.toStringTag,{value:"Module"})),u$5={mixins:[o$6],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let vn=this.screenValues[this.valueId][0],_n=this.colors[vn];return _n||(_n=this.colors.ANY),_n||(_n="openc3-black"),{"--color":_n}},fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]}},created(){this.appliedSettings.forEach(vn=>{switch(vn[0]){case"LED_COLOR":this.colors[vn[1]]=vn[2];break}}),this.appliedSettings.push(["WIDTH",this.width]),this.appliedSettings.push(["HEIGHT",this.height]),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}};function _$3(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-tooltip");return vue.openBlock(),vue.createBlock(Kn,{location:"top"},{activator:vue.withCtx(({props:Xn})=>[vue.createElementVNode("div",vue.mergeProps({class:"ledwidget mt-1",style:[Wn.cssProps,vn.computedStyle]},Xn),null,16)]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(Wn.fullName),1)]),_:1})}const S$3=s$3(u$5,[["render",_$3],["__scopeId","data-v-6a4513e5"]]),LedWidgetB_K2e5tq=Object.freeze(Object.defineProperty({__proto__:null,default:S$3},Symbol.toStringTag,{value:"Module"})),f$8={mixins:[o$6],components:{LabelWidget:S$4,LedWidget:S$3},computed:{labelName(){return[this.parameters[2]+":"]}}};function u$4(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("label-widget"),Xn=vue.resolveComponent("led-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,{parameters:Wn.labelName,settings:[...vn.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const N=s$3(f$8,[["render",u$4]]),LabelledWidgetDjturGl5=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"})),n$1={mixins:[o$6],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let vn=this.value;return vn===null&&(vn=this.screenValues[this.valueId][0]),parseInt(parseFloat(vn)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let vn="CONVERTED";this.parameters[5]&&(vn=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${vn}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function p$3(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("rux-progress");return vue.openBlock(),vue.createBlock(Kn,{value:Wn._value,class:"progress",style:vue.normalizeStyle(vn.computedStyle)},null,8,["value","style"])}const I$1=s$3(n$1,[["render",p$3],["__scopeId","data-v-85bc2857"]]),ProgressbarWidgetDpA_Vy9=Object.freeze(Object.defineProperty({__proto__:null,default:I$1},Symbol.toStringTag,{value:"Module"})),f$7={mixins:[o$6],components:{LabelWidget:S$4,ProgressbarWidget:I$1},computed:{labelName(){return[this.parameters[2]+":"]}}};function u$3(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("label-widget"),Xn=vue.resolveComponent("progressbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,{parameters:Wn.labelName,settings:[...vn.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,style:vn.computedStyle,"widget-index":1}),null,16,["parameters","settings","screen-values","style"])],4)}const h$a=s$3(f$7,[["render",u$3]]),LabelprogressbarWidgetRADJGLj3=Object.freeze(Object.defineProperty({__proto__:null,default:h$a},Symbol.toStringTag,{value:"Module"}));function M(vn,_n,kn){const Mn=l$5(vn,void 0);if(isNaN(_n))return y$c(vn,NaN);if(!_n)return Mn;const Yn=Mn.getDate(),Wn=y$c(vn,Mn.getTime());Wn.setMonth(Mn.getMonth()+_n+1,0);const Kn=Wn.getDate();return Yn>=Kn?Wn:(Mn.setFullYear(Wn.getFullYear(),Wn.getMonth(),Yn),Mn)}function b$3(vn,_n,kn){return z$7(vn,-_n,kn)}function k$2(vn,_n,kn){return M(vn,-_n)}function S$2(vn,_n,kn){const{years:Mn=0,months:Yn=0,weeks:Wn=0,days:Kn=0,hours:Xn=0,minutes:Hn=0,seconds:qn=0}=_n,In=k$2(vn,Yn+Mn*12),Dn=b$3(In,Kn+Wn*7,kn),Pn=Hn+Xn*60,Bn=(qn+Pn*60)*1e3;return y$c(vn,+Dn-Bn)}const _$2={mixins:[o$6],data:function(){return{id:Math.floor(Math.random()*1e11),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.appliedSettings.forEach(vn=>{switch(vn[0]){case"ITEM":this.items.push({targetName:vn[1],packetName:vn[2],itemName:vn[3],valueType:vn[4]||"CONVERTED",reduced:vn[5]||"DECOM",reducedType:vn[6]||null});case"STARTTIME":let _n=cr(vn[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=_n.getTime()*1e6;break;case"HISTORY":let kn=parseInt(vn[1].slice(0,vn[1].length-1)),Mn=null,Yn=1;switch(vn[1][vn[1].length-1]){case"d":Mn="days",Yn=3600*24;break;case"h":Mn="hours",Yn=3600;break;case"m":Mn="minutes",Yn=60;break;case"s":Mn="seconds";break;default:throw new Error(`Unknown time suffix: ${vn[1]}!`)}let Wn={};Wn[Mn]=kn,this.startTime=S$2(new Date,Wn).getTime()*1e6,kn*Yn>this.secondsGraphed&&(this.secondsGraphed=kn*Yn),kn*Yn>this.pointsSaved&&(this.pointsSaved=kn*Yn),kn*Yn>this.pointsGraphed&&(this.pointsGraphed=kn*Yn);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(vn[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(vn[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(vn[1]);break;case"SIZE":this.size.width=parseInt(vn[1]),this.size.height=parseInt(vn[2]);break}}),this.items=this.items.map(vn=>{let _n=vn.itemName;if(vn.itemName.includes("[["))vn.itemName=vn.itemName.replace("[[","[").replace("]]","]"),_n=vn.itemName;else if(vn.itemName.includes("[")){let kn=vn.itemName.match(/\[(\d+)\]/);this.arrayIndex=parseInt(kn[1]),_n=vn.itemName.replace(kn[0],"")}return this.$emit("addItem",`${vn.targetName}__${vn.packetName}__${_n}__${vn.valueType}`,!0),vn})},destroyed(){this.items.map(vn=>this.$emit("deleteItem",`${vn.targetName}__${vn.packetName}__${vn.itemName}__${vn.valueType}`))}},d$7={components:{Graph:Se},mixins:[_$2],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function h$9(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("graph");return vue.openBlock(),vue.createBlock(Kn,{ref:"graph"+vn.id,id:vn.id,state:vn.state,"selected-graph-id":vn.id,startTime:vn.startTime,"seconds-graphed":vn.secondsGraphed,"points-saved":vn.pointsSaved,"points-graphed":vn.pointsGraphed,"initial-items":vn.items,height:vn.size.height,width:vn.size.width,style:vue.normalizeStyle(vn.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const y$5=s$3(d$7,[["render",h$9]]),SparklineWidgetDMvMQCPm=Object.freeze(Object.defineProperty({__proto__:null,default:y$5},Symbol.toStringTag,{value:"Module"})),g$5={mixins:[o$6],components:{LabelWidget:S$4,SparklineWidget:y$5},computed:{labelName(){return[this.parameters[2]+":"]}}};function f$6(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("label-widget"),Xn=vue.resolveComponent("sparkline-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,{parameters:Wn.labelName,settings:[...vn.appliedSettings],line:vn.line,lineNumber:vn.lineNumber,"widget-index":0},null,8,["parameters","settings","line","lineNumber"]),vue.createVNode(Xn,{parameters:vn.parameters,settings:[...vn.appliedSettings],style:vue.normalizeStyle(vn.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const $$1=s$3(g$5,[["render",f$6]]),LabelsparklineWidgetBlJoICxu=Object.freeze(Object.defineProperty({__proto__:null,default:$$1},Symbol.toStringTag,{value:"Module"})),g$4={mixins:[o$6],components:{LabelWidget:S$4,ValueWidget:K},computed:{labelName(){let vn=this.parameters[2];return vn.includes("[[")&&(vn=vn.replace("[[","[").replace("]]","]")),[vn+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}};function f$5(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("label-widget"),Xn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,{parameters:Wn.labelName,settings:[...vn.appliedSettings],line:vn.line,"line-number":vn.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:Wn.valueParameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,line:vn.line,"line-number":vn.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const z$4=s$3(g$4,[["render",f$5]]),LabelvalueWidgetDVWJqnlY=Object.freeze(Object.defineProperty({__proto__:null,default:z$4},Symbol.toStringTag,{value:"Module"})),g$3={mixins:[o$6],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:S$4,ValueWidget:K},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),this.parameters[4]!=null&&this.valueParameters.push(this.parameters[4]),this.parameters[5]!=null&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:new Fk().get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then(vn=>{this.description=vn.description})}};function b$2(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("label-widget"),Xn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,{parameters:Wn.labelName,settings:[...vn.settings],line:vn.line,"line-number":vn.lineNumber,"widget-index":0},null,8,["parameters","settings","line","line-number"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:Yn.valueParameters,settings:[...vn.settings],"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,line:vn.line,"line-number":vn.lineNumber,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone","line","line-number"])],4)}const $=s$3(g$3,[["render",b$2]]),LabelvaluedescWidgetCsUP7J4U=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),l={mixins:[o$6],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let vn=this.screenValues[this.valueId][0],_n=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(_n),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(vn,_n)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new Fk,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then(vn=>{this.limitsSettings=vn}),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,60*1e3),this.appliedSettings.forEach(vn=>{vn[0]==="MIN_VALUE"&&(this.minValue=parseInt(vn[1])),vn[0]==="MAX_VALUE"&&(this.maxValue=parseInt(vn[1]))}),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.$emit("addItem",this.valueId)},destroyed(){this.$emit("deleteItem",this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(vn){if(!vn)return;this.redLow=10,this.redHigh=10,this.minValue!==null&&(vn[0]<=this.minValue&&(vn[0]=this.minValue,this.redLow=0),vn[1]<=this.minValue&&(vn[1]=this.minValue),vn[2]<=this.minValue&&(vn[2]=this.minValue),vn[3]<=this.minValue&&(vn[3]=this.minValue),vn.length>4&&vn[4]<=this.minValue&&(vn[4]=this.minValue),vn.length>4&&vn[5]<=this.minValue&&(vn[5]=this.minValue)),this.maxValue!==null&&(vn[0]>=this.maxValue&&(vn[0]=this.maxValue),vn[1]>=this.maxValue&&(vn[1]=this.maxValue),vn[2]>=this.maxValue&&(vn[2]=this.maxValue),vn[3]>=this.maxValue&&(vn[3]=this.maxValue,this.redHigh=0),vn.length>4&&vn[4]>=this.maxValue&&(vn[4]=this.maxValue),vn.length>4&&vn[5]>=this.maxValue&&(vn[5]=this.maxValue)),vn[0]==vn[1]&&(this.yellowLow=0),vn[2]==vn[3]&&(this.yellowHigh=0);let _n=80;return this.redLow==0&&(_n+=10),this.redHigh==0&&(_n+=10),this.scale=(vn[3]-vn[0])/_n,vn},calcPosition(vn,_n){if(!vn||!_n)return;let kn=_n[0]-10*this.scale;if(this.minValue&&this.minValue==_n[0]&&(kn=_n[0]),_n[3]-10*this.scale,this.maxValue&&this.maxValue==_n[3]&&_n[3],vn.raw)return vn.raw==="-Infinity"?0:100;if(vn<this.min)return 0;if(vn>this.max)return 100;{const Mn=parseInt((vn-kn)/this.scale);return Mn>100?100:Mn<0?0:Mn}},calcLimits(vn){vn&&(this.yellowLow=Math.round((vn[1]-vn[0])/this.scale),this.yellowHigh=Math.round((vn[3]-vn[2])/this.scale),vn.length>4?(this.greenLow=Math.round((vn[4]-vn[1])/this.scale),this.greenHigh=Math.round((vn[2]-vn[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then(vn=>{this.currentLimitsSet=vn})}}},h$8={mixins:[l],data(){return{width:160,height:22}},computed:{limitsRange(){let vn=this.limitsSettings[this.selectedLimitsSet];if(vn)return vn.length===4?`RL/${vn[0]} YL/${vn[1]} YH/${vn[2]} RH/${vn[3]}`:`RL/${vn[0]} YL/${vn[1]} YH/${vn[2]} RH/${vn[3]} GL/${vn[4]} GH/${vn[5]}`;throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSBAR",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSBAR",3,6,"LIMITSBAR <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function u$2(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-tooltip");return vue.openBlock(),vue.createBlock(Kn,{location:"top"},{activator:vue.withCtx(({props:Xn})=>[vue.createElementVNode("div",vue.mergeProps({class:"limitsbar",style:[vn.cssProps,vn.computedStyle]},Xn),_n[0]||(_n[0]=[vue.createElementVNode("div",{class:"limitsbar__container"},[vue.createElementVNode("div",{class:"limitsbar__redlow"}),vue.createElementVNode("div",{class:"limitsbar__redhigh"}),vue.createElementVNode("div",{class:"limitsbar__yellowlow"}),vue.createElementVNode("div",{class:"limitsbar__yellowhigh"}),vue.createElementVNode("div",{class:"limitsbar__greenlow"}),vue.createElementVNode("div",{class:"limitsbar__greenhigh"}),vue.createElementVNode("div",{class:"limitsbar__blue"}),vue.createElementVNode("div",{class:"limitsbar__line"}),vue.createElementVNode("div",{class:"limitsbar__arrow"})],-1)]),16)]),default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(Wn.limitsRange),1)]),_:1})}const I=s$3(h$8,[["render",u$2],["__scopeId","data-v-9f79e720"]]),LimitsbarWidgetDXbqsi4J=Object.freeze(Object.defineProperty({__proto__:null,default:I},Symbol.toStringTag,{value:"Module"})),g$2={mixins:[o$6],components:{LabelvalueWidget:z$4,LimitsbarWidget:I},computed:{labelValueSettings(){return[...this.appliedSettings.filter(vn=>vn[0]==="__SCREEN_ID__"),...this.settings.filter(vn=>parseInt(vn[0])===0||parseInt(vn[0])===1)]}}};function f$4(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("labelvalue-widget"),Xn=vue.resolveComponent("limitsbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:Wn.labelValueSettings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"widget-index":2,line:vn.line,lineNumber:vn.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const h$7=s$3(g$2,[["render",f$4]]),LabelvaluelimitsbarWidgetBlj1QXV8=Object.freeze(Object.defineProperty({__proto__:null,default:h$7},Symbol.toStringTag,{value:"Module"})),o={mixins:[l],data(){return{width:22,height:120}},computed:{cssProps:function(){let vn=this.screenValues[this.valueId][0],_n=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);if(_n)return this.calcLimits(_n),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(vn,_n)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"};throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSCOLUMN",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function m$4(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("div",{class:"limitsbar",style:vue.normalizeStyle([Wn.cssProps,vn.computedStyle])},_n[0]||(_n[0]=[vue.createStaticVNode('<div class="limitsbar__container" data-v-a4a8f4ab><div class="limitsbar__redlow" data-v-a4a8f4ab></div><div class="limitsbar__redhigh" data-v-a4a8f4ab></div><div class="limitsbar__yellowlow" data-v-a4a8f4ab></div><div class="limitsbar__yellowhigh" data-v-a4a8f4ab></div><div class="limitsbar__greenlow" data-v-a4a8f4ab></div><div class="limitsbar__greenhigh" data-v-a4a8f4ab></div><div class="limitsbar__blue" data-v-a4a8f4ab></div><div class="limitsbar__line" data-v-a4a8f4ab></div><div class="limitsbar__arrow" data-v-a4a8f4ab></div></div>',1)]),4)}const w$1=s$3(o,[["render",m$4],["__scopeId","data-v-a4a8f4ab"]]),LimitscolumnWidgetBfY4su5U=Object.freeze(Object.defineProperty({__proto__:null,default:w$1},Symbol.toStringTag,{value:"Module"})),f$3={mixins:[o$6],components:{LabelWidget:S$4,ValueWidget:K,LimitscolumnWidget:w$1}};function v$3(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("label-widget"),Xn=vue.resolveComponent("limitscolumn-widget"),Hn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,{parameters:[vn.parameters[2]],settings:[...vn.appliedSettings],"widget-index":0},null,8,["parameters","settings"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"widget-index":2,line:vn.line,lineNumber:vn.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),vue.createVNode(Hn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,"widget-index":1}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const k$1=s$3(f$3,[["render",v$3]]),LabelvaluelimitscolumnWidgetCvCoUCe=Object.freeze(Object.defineProperty({__proto__:null,default:k$1},Symbol.toStringTag,{value:"Module"})),d$6={mixins:[o$6],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const vn=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${vn}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let vn=this.screenValues[this.valueId][0];if(!vn)return 0;if(vn.raw)return vn.raw==="-Infinity"?0:100;const _n=(vn-this.min)/this.range*100;return _n>100?100:_n<0?0:_n}}};function m$3(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("div",{class:"rangebar",style:vue.normalizeStyle([Wn.cssProps,vn.computedStyle])},_n[0]||(_n[0]=[vue.createElementVNode("div",{class:"rangebar__container"},[vue.createElementVNode("div",{class:"rangebar__line"}),vue.createElementVNode("div",{class:"rangebar__arrow"})],-1)]),4)}const f$2=s$3(d$6,[["render",m$3],["__scopeId","data-v-34d37e7c"]]),RangebarWidgetDHS7S3vI=Object.freeze(Object.defineProperty({__proto__:null,default:f$2},Symbol.toStringTag,{value:"Module"})),d$5={mixins:[o$6],components:{LabelvalueWidget:z$4,RangebarWidget:f$2},computed:{labelValueSettings(){return[...this.settings.filter(vn=>vn[0]==="__SCREEN_ID__"),...this.settings.filter(vn=>parseInt(vn[0])===0||parseInt(vn[0])===1)]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function h$6(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("labelvalue-widget"),Xn=vue.resolveComponent("rangebar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(vn.$attrs,{parameters:Wn.labelValueParameters,settings:Wn.labelValueSettings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:Wn.rangeBarParameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"widget-index":2}),null,16,["parameters","settings","screen-values"])],4)}const B$1=s$3(d$5,[["render",h$6]]),LabelvaluerangebarWidgetDpcXhlfF=Object.freeze(Object.defineProperty({__proto__:null,default:B$1},Symbol.toStringTag,{value:"Module"})),d$4={mixins:[L$1],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&this.parameters[5].toLowerCase()==="true"&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){let vn="CONVERTED";return this.parameters[3]&&(vn=this.parameters[3]),vn}}};function c$2(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("label-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createElementVNode("div",{class:"led align-self-center",style:vue.normalizeStyle(Wn.cssProps)},null,4),vue.createVNode(Kn,{parameters:Wn.labelName,settings:vn.appliedSettings,style:vue.normalizeStyle(vn.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const w=s$3(d$4,[["render",c$2],["__scopeId","data-v-87ec8e4f"]]),LimitscolorWidgetCkmuw0YX=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),m$2={components:{Graph:Se},mixins:[_$2]};function h$5(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("graph");return vue.openBlock(),vue.createBlock(Kn,{ref:"graph"+vn.id,id:vn.id,state:vn.state,"selected-graph-id":vn.id,startTime:vn.startTime,"seconds-graphed":vn.secondsGraphed,"points-saved":vn.pointsSaved,"points-graphed":vn.pointsGraphed,"initial-items":vn.items,height:vn.size.height,width:vn.size.width,style:vue.normalizeStyle(vn.computedStyle),"time-zone":this.screenTimeZone,onPause:_n[0]||(_n[0]=()=>vn.state="pause"),onStart:_n[1]||(_n[1]=()=>vn.state="start"),"hide-toolbar":"","hide-overview":""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const T$1=s$3(m$2,[["render",h$5]]),LinegraphWidgetYQy9P0R=Object.freeze(Object.defineProperty({__proto__:null,default:T$1},Symbol.toStringTag,{value:"Module"})),b$1={mixins:[r],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return K1.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let vn=this.parameters[1];this.widgets.forEach(_n=>{_n.settings.find(kn=>kn[0]==="MARGIN"||kn[0]==="RAW"&&kn[1].toUpperCase().includes("MARGIN"))===void 0&&_n.settings.push(["MARGIN",vn])})}}};function A(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("table",{style:vue.normalizeStyle(vn.computedStyle),role:"presentation"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Wn.widgetChunks,(Kn,Xn)=>(vue.openBlock(),vue.createElementBlock("tr",{key:"r"+Xn},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Kn,(Hn,qn)=>(vue.openBlock(),vue.createElementBlock("td",{key:"c"+qn},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Hn.type),vue.mergeProps({ref_for:!0},vn.listeners,{target:Hn.target,parameters:Hn.parameters,settings:Hn.settings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,widgets:Hn.widgets,name:Hn.name,line:Hn.line,"line-number":Hn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]))),128))]))),128))],4)}const v$2=s$3(b$1,[["render",A]]),MatrixbycolumnsWidgetBTBColrs=Object.freeze(Object.defineProperty({__proto__:null,default:v$2},Symbol.toStringTag,{value:"Module"})),d$3={props:{value:{type:Number}},mixins:[o$6],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function p$2(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-radio");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",dense:"",label:Yn.label,style:vue.normalizeStyle(vn.computedStyle),value:kn.value},null,8,["label","style","value"])}const y$4=s$3(d$3,[["render",p$2]]),RadiobuttonWidgetBO8zpgwW=Object.freeze(Object.defineProperty({__proto__:null,default:y$4},Symbol.toStringTag,{value:"Module"})),_$1={mixins:[r],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function h$4(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-radio-group");return vue.openBlock(),vue.createBlock(Kn,{"hide-details":"",density:"compact",modelValue:Yn.selectedIndex,"onUpdate:modelValue":_n[0]||(_n[0]=Xn=>Yn.selectedIndex=Xn),style:vue.normalizeStyle(vn.computedStyle)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.widgets,(Xn,Hn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Xn.type),vue.mergeProps({ref_for:!0},vn.listeners,{value:Hn,key:Hn,target:Xn.target,parameters:Xn.parameters,settings:Xn.settings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,name:Xn.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const C=s$3(_$1,[["render",h$4]]),RadiogroupWidgetOy7V4SV=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"})),m$1={mixins:[o$6],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let vn="off";for(const _n of this.items){let kn=this.screenValues[_n][1];kn&&((kn.includes("BLUE")||kn.includes("GREEN"))&&vn!="caution"&&vn!="critical"&&(vn="normal"),kn.includes("YELLOW")&&vn!="critical"&&(vn="caution"),kn.includes("RED")&&(vn="critical"))}return vn},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(vn=>{switch(vn[0].toUpperCase()){case"SCREEN":this.screenTarget=vn[1],this.screenName=vn[2];break;case"TLM":let _n="CONVERTED";vn[4]&&(_n=vn[4]);let kn=`${vn[1]}__${vn[2]}__${vn[3]}__${_n}`;this.items.push(kn),this.$emit("addItem",kn);break}})},unmounted:function(){this.items.forEach(vn=>{this.$emit("deleteItem",vn)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h$3(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("rux-monitoring-icon");return vue.openBlock(),vue.createBlock(Kn,{class:"rux-icon",style:vue.normalizeStyle([Wn.pointerStyle,vn.computedStyle]),icon:vn.icon,status:Wn.status,label:vn.label,sublabel:vn.subLabel,onClick:Wn.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const E=s$3(m$1,[["render",h$3]]),RollupWidgetCTk9Kjwr=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"})),y$3={mixins:[r],created:function(){if(this.parameters[0]){let vn=this.parameters[0];this.widgets.forEach(_n=>{_n.settings.find(kn=>kn[0]==="MARGIN"||kn[0]==="RAW"&&kn[1].toUpperCase().includes("MARGIN"))===void 0&&_n.settings.push(["MARGIN",vn])})}}};function h$2(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(vn.computedStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.widgets,(Kn,Xn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},vn.listeners,{key:Xn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const R=s$3(y$3,[["render",h$2]]),VerticalWidgetZ6xUMQl=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"})),y$2={mixins:[r],components:{VerticalWidget:R},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let vn=this.parameters[1];this.widgets.forEach(_n=>{_n.settings.find(kn=>kn[0]==="MARGIN"||kn[0]==="RAW"&&kn[1].toUpperCase().includes("MARGIN"))===void 0&&_n.settings.push(["MARGIN",vn])})}}};function v$1(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(vn.computedStyle),class:"overflow-y-auto"},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.widgets,(Kn,Xn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Kn.type),vue.mergeProps({ref_for:!0},vn.listeners,{key:Xn,target:Kn.target,parameters:Kn.parameters,settings:Kn.settings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,widgets:Kn.widgets,name:Kn.name,line:Kn.line,"line-number":Kn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const b=s$3(y$2,[["render",v$1]]),ScrollwindowWidgetDD0TOW6s=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})),d$2={mixins:[L$1],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let vn="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(vn="mdi-signal-cellular-1"),this._value>=this.twoBar&&(vn="mdi-signal-cellular-2"),this._value>=this.threeBar&&(vn="mdi-signal-cellular-3"),vn}},created(){this.appliedSettings.forEach(vn=>{switch(vn[0].toUpperCase()){case"SCREEN":this.screenTarget=vn[1],this.screenName=vn[2];break;case"VALUES":this.oneBar=parseFloat(vn[1]),this.twoBar=parseFloat(vn[2]),this.threeBar=parseFloat(vn[3]);break}})},methods:{getType(){let vn="CONVERTED";return this.parameters[3]=="RAW"&&(vn="RAW"),vn},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function m(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-icon");return vue.openBlock(),vue.createBlock(Kn,{onClick:Wn.clickHandler,style:vue.normalizeStyle(vn.computedStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Wn.displayedIcon),1)]),_:1},8,["onClick","style"])}const v=s$3(d$2,[["render",m]]),SignalWidgetCC33KMTW=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),a={mixins:[o$6],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function n(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(vn.computedStyle)},null,4)}const h$1=s$3(a,[["render",n]]),SpacerWidgetBnJe_Hq6=Object.freeze(Object.defineProperty({__proto__:null,default:h$1},Symbol.toStringTag,{value:"Module"})),z$3={mixins:[r],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function B(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-tab"),Xn=vue.resolveComponent("v-tabs"),Hn=vue.resolveComponent("v-window-item"),qn=vue.resolveComponent("v-window");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Xn,{modelValue:vn.curTab,"onUpdate:modelValue":_n[0]||(_n[0]=In=>vn.curTab=In),style:vue.normalizeStyle(vn.computedStyle)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.widgets,(In,Dn)=>(vue.openBlock(),vue.createBlock(Kn,{key:Dn},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(In.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),vue.createVNode(qn,{modelValue:vn.curTab,"onUpdate:modelValue":_n[1]||(_n[1]=In=>vn.curTab=In)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.widgets,(In,Dn)=>(vue.openBlock(),vue.createBlock(Hn,{key:Dn},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(In.widgets,(Pn,Bn)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Pn.type),vue.mergeProps({ref_for:!0},vn.listeners,{key:`${Dn}-${Bn}`,target:Pn.target,parameters:Pn.parameters,settings:Pn.settings,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,widgets:Pn.widgets,name:Pn.name,line:Pn.line,"line-number":Pn.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const F$1=s$3(z$3,[["render",B]]),TabbookWidgetB3w0JtWe=Object.freeze(Object.defineProperty({__proto__:null,default:F$1},Symbol.toStringTag,{value:"Module"})),S$1={components:{DetailsDialog:P$2},data:function(){return{width:200,height:200}},mixins:[L$1],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let vn="CONVERTED";return this.parameters[5]&&(vn=this.parameters[5]),vn}}},T={class:"textbox-widget-container"};function z$2(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-textarea"),Xn=vue.resolveComponent("v-list-item-title"),Hn=vue.resolveComponent("v-list-item"),qn=vue.resolveComponent("v-list"),In=vue.resolveComponent("v-menu"),Dn=vue.resolveComponent("details-dialog");return vue.openBlock(),vue.createElementBlock("div",T,[vue.createVNode(Kn,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":vn._value,class:vue.normalizeClass(vn.valueClass),style:vue.normalizeStyle([vn.computedStyle,Wn.aging]),"data-test":"valueText",onContextmenu:vn.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),vue.createVNode(In,{modelValue:vn.contextMenuShown,"onUpdate:modelValue":_n[0]||(_n[0]=Pn=>vn.contextMenuShown=Pn),target:[vn.x,vn.y]},{default:vue.withCtx(()=>[vue.createVNode(qn,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vn.contextMenuOptions,(Pn,Bn)=>(vue.openBlock(),vue.createBlock(Hn,{key:Bn,onClick:vue.withModifiers(Pn.action,["stop"])},{default:vue.withCtx(()=>[vue.createVNode(Xn,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Pn.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),vue.createVNode(Dn,{"target-name":vn.parameters[0],"packet-name":vn.parameters[1],"item-name":vn.parameters[2],modelValue:vn.viewDetails,"onUpdate:modelValue":_n[1]||(_n[1]=Pn=>vn.viewDetails=Pn)},null,8,["target-name","packet-name","item-name","modelValue"])])}const F=s$3(S$1,[["render",z$2],["__scopeId","data-v-10f560aa"]]),TextboxWidgetD2f0Eol=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),p$1={mixins:[o$6],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function u$1(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:Yn.value,"onUpdate:modelValue":_n[0]||(_n[0]=Xn=>Yn.value=Xn),style:vue.normalizeStyle(vn.computedStyle)},null,8,["modelValue","style"])}const y$1=s$3(p$1,[["render",u$1]]),TextfieldWidgetDXSdgqVP=Object.freeze(Object.defineProperty({__proto__:null,default:y$1},Symbol.toStringTag,{value:"Module"})),d$1={mixins:[o$6,Pe$1],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function f$1(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-text-field");return vue.openBlock(),vue.createBlock(Kn,{modelValue:Yn.timeValue,"onUpdate:modelValue":_n[0]||(_n[0]=Xn=>Yn.timeValue=Xn),label:Yn.label,style:vue.normalizeStyle(vn.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=s$3(d$1,[["render",f$1]]),TimeWidgetDvrRaEMz=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),p={mixins:[o$6],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function c$1(vn,_n,kn,Mn,Yn,Wn){return vue.openBlock(),vue.createElementBlock("span",{class:"text-h5 text-center pa-1 mt-1 label",style:vue.normalizeStyle(vn.computedStyle)},vue.toDisplayString(Wn.labelText),5)}const x=s$3(p,[["render",c$1]]),TitleWidgetDqViFQl_=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})),c={mixins:[o$6],components:{ValueWidget:K,LimitsbarWidget:I}};function g$1(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("value-widget"),Xn=vue.resolveComponent("limitsbar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters.slice(0,3),settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"widget-index":1,line:vn.line,lineNumber:vn.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const z$1=s$3(c,[["render",g$1]]),ValuelimitsbarWidgetSR8XNZFB=Object.freeze(Object.defineProperty({__proto__:null,default:z$1},Symbol.toStringTag,{value:"Module"})),d={mixins:[o$6],components:{ValueWidget:K,LimitscolumnWidget:w$1}};function g(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("limitscolumn-widget"),Xn=vue.resolveComponent("value-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"widget-index":1,line:vn.line,lineNumber:vn.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:vn.parameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const z=s$3(d,[["render",g]]),ValuelimitscolumnWidgetXYZSp6YZ=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),u={mixins:[o$6],components:{ValueWidget:K,RangebarWidget:f$2},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function h(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("value-widget"),Xn=vue.resolveComponent("rangebar-widget");return vue.openBlock(),vue.createElementBlock("div",{ref:"container",class:"d-flex flex-row",style:vue.normalizeStyle(vn.computedStyle)},[vue.createVNode(Kn,vue.mergeProps(vn.$attrs,{parameters:Wn.valueParameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),vue.createVNode(Xn,vue.mergeProps(vn.$attrs,{parameters:Wn.rangeBarParameters,settings:[...vn.appliedSettings],"screen-values":vn.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const S=s$3(u,[["render",h]]),ValuerangebarWidgetB6M02a9d=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),f={mixins:[r],components:{VerticalWidget:R}};function _(vn,_n,kn,Mn,Yn,Wn){const Kn=vue.resolveComponent("v-banner"),Xn=vue.resolveComponent("vertical-widget");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(Kn,{class:"boxbanner",style:vue.normalizeStyle(vn.computedStyle),"single-line":""},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vn.parameters[0]),1)]),_:1},8,["style"]),vue.createVNode(Xn,vue.mergeProps(vn.listeners,{parameters:vn.parameters.slice(1),settings:vn.settings,widgets:vn.widgets,"screen-values":vn.screenValues,"screen-time-zone":vn.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const k=s$3(f,[["render",_],["__scopeId","data-v-832aa5cd"]]),VerticalboxWidget3a9cVsW_=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"}));return DataviewertimeWidget});
1417
+ //# sourceMappingURL=DataviewertimeWidget.umd.min.js.map