openc3-cosmos-tool-admin 5.20.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +2 -2
- data/tools/admin/ArrayWidget-BTxChSds-e9bc6948cfc94ea6c8ea.js +2 -0
- data/tools/admin/BarColumn-Cdu3OoMa-6b9d231248e3c807a1ca.js +1 -0
- data/tools/admin/BlockWidget-PmjzrkXF-c80c9d1c463d83528a3d.js +2 -0
- data/tools/admin/ButtonWidget-nwDlOBJT-d16fb6a24cef7c5b624b.js +2 -0
- data/tools/admin/CanvasWidget-BL8930eT-7c425befd858deae2375.js +1 -0
- data/tools/admin/CanvasdotWidget-VCf1fL-G-175f4d8d2fe3d73133b7.js +1 -0
- data/tools/admin/CanvasimageWidget-BIw7Wbf2-675b82c793c05652c4e4.js +1 -0
- data/tools/admin/CanvasimagevalueWidget-CE3Dj5bH-4c7da53208143de275fb.js +1 -0
- data/tools/admin/CanvaslabelWidget-DWmb356h-27386996b1e22521d68a.js +1 -0
- data/tools/admin/CanvaslabelvalueWidget-CI3yYwFs-106dd8676e7059142aeb.js +1 -0
- data/tools/admin/CanvaslineWidget-COeapH3P-454440a3cbef96b78149.js +1 -0
- data/tools/admin/CanvaslinevalueWidget-CI-Bbzfi-c196fded05e85ca64b76.js +1 -0
- data/tools/admin/CheckbuttonWidget-BQhggcZ2-fe79147a6042d06deb71.js +1 -0
- data/tools/admin/ComboboxWidget-BzsbOv54-19196e0faa887589be04.js +1 -0
- data/tools/admin/DateWidget-B5R_9rA8-6d87b2b38b75a9f194f0.js +1 -0
- data/tools/admin/DetailsDialog-DLRMqetn-55763452729cfe2e3307.js +1 -0
- data/tools/admin/DynamicWidget-m9EliUR2-e3f3eb1367b6fc62b4f4.js +1 -0
- data/tools/admin/FormatvalueWidget-DZkRJce8-29bc510b6fee4be432b3.js +1 -0
- data/tools/admin/GraphWidget-amwxyH1r-ae1fe3465676228a4925.js +1 -0
- data/tools/admin/HorizontalWidget-CirtfuL8-981280ce431e3a0ea8a4.js +1 -0
- data/tools/admin/HorizontalboxWidget-CyTDt2nl-1db32d80217737537afb.js +1 -0
- data/tools/admin/HorizontallineWidget-BdlNB951-08181cb1762ec42b7083.js +1 -0
- data/tools/admin/IframeWidget-DnJmCrCA-669adff673891b6a1695.js +1 -0
- data/tools/admin/ImageLoader-CpcR6tPi-5519b9d946e6eeba9d6a.js +1 -0
- data/tools/admin/ImageviewerWidget-DIkmb_C9-8346469a4ad561e7a78b.js +1 -0
- data/tools/admin/InterfacesTab-jtIK4SaM-d37991d03f54f16d4184.js +1 -0
- data/tools/admin/LabelWidget-BDsypYho-e74513b75a138300eda4.js +1 -0
- data/tools/admin/LabelledWidget-DjturGl5-f58bc223d97e08fd542a.js +1 -0
- data/tools/admin/LabelprogressbarWidget-RADJGLj3-f059a9ff279f759d38fc.js +1 -0
- data/tools/admin/LabelsparklineWidget-BlJoICxu-13bf91cc93e846f7699e.js +1 -0
- data/tools/admin/LabelvalueWidget-DVWJqnlY-b0232700037d1bb6b7b6.js +1 -0
- data/tools/admin/LabelvaluedescWidget-CsUP7J4U-c46a707153bfa07e40b3.js +1 -0
- data/tools/admin/LabelvaluelimitsbarWidget-Blj1QXV8-b2889d7dd9e0adb31527.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-CvCo-uCe-1725d487ee051e88eeee.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-DpcXhlfF-20dc9151170423e55774.js +1 -0
- data/tools/admin/Layout-C1HoM4Kl-417cd02a11d96e992d80.js +1 -0
- data/tools/admin/LedWidget-B_K2e5tq-e1a5d6fa7037166a47ef.js +1 -0
- data/tools/admin/LimitsbarWidget-DXbqsi4J-d4cab330a230750fd898.js +1 -0
- data/tools/admin/LimitscolorWidget-Ckmuw0YX-9186aec847ec6a5bfc9e.js +1 -0
- data/tools/admin/LimitscolumnWidget-BfY4su5U-1c6e4848809e88a5260e.js +1 -0
- data/tools/admin/LinegraphWidget-y-Qy9P0R-cd2f04586aef988a58a9.js +1 -0
- data/tools/admin/MatrixbycolumnsWidget-BTBColrs-fea73244eb707601aeea.js +1 -0
- data/tools/admin/MicroservicesTab-D8GGVvwc-c1bb51519a9905e693db.js +1 -0
- data/tools/admin/OutputDialog-D7vLuueV-2204b36fc17e01c28df1.js +1 -0
- data/tools/admin/PackagesTab-CkHqLuVL-a1723ff9378b042895e7.js +1 -0
- data/tools/admin/PluginsTab-Dli9v-0R-a1399af85f2fd990e133.js +5 -0
- data/tools/admin/ProgressbarWidget-DpA_-vy9-a9f80bf0377e829b78e4.js +1 -0
- data/tools/admin/RadiobuttonWidget-BO8zpgwW-84a3f731c673059c0393.js +1 -0
- data/tools/admin/RadiogroupWidget-Oy7V4S-V-b80e9e6044d42dbb6003.js +1 -0
- data/tools/admin/RangebarWidget-DHS7S3vI-f79443d06bda1ec7b512.js +1 -0
- data/tools/admin/RedisTab-B3fY9we7-760bc2333036ad71e6e2.js +1 -0
- data/tools/admin/RollupWidget-CTk9Kjwr-2b0cb75af9296f391f66.js +1 -0
- data/tools/admin/RoutersTab-DVCaPPmy-b9d80c9b1e7bdc67d92b.js +1 -0
- data/tools/admin/ScrollwindowWidget-DD0TOW6s-74997dd2355435e39c51.js +1 -0
- data/tools/admin/SecretsTab-BuC3n5C4-b50ed27afdc2414dc4e1.js +1 -0
- data/tools/admin/SettingsTab-CYb9hSNx-9497e6025bffab0bc5be.js +1 -0
- data/tools/admin/SignalWidget-CC33KMTW-b72d958b3093cc84c5a8.js +1 -0
- data/tools/admin/SimpleTextDialog-3Tzc_snk-be80893bf7377e8a2b54.js +1 -0
- data/tools/admin/SpacerWidget-BnJe_Hq6-8227c31e3ee431aabe0b.js +1 -0
- data/tools/admin/SparklineWidget-DMvMQCPm-8b9d64dc2d6f09e95fd3.js +1 -0
- data/tools/admin/TabbookWidget-B3w0JtWe-dc6cbcfea02b50002ecf.js +1 -0
- data/tools/admin/TargetsTab-CxiGJ2P2-85a21e098266facf4e02.js +1 -0
- data/tools/admin/TextboxWidget-D2f0-eol-c677022753c77473b718.js +1 -0
- data/tools/admin/TextfieldWidget-DXSdgqVP-ee0eeca9be6f669c081c.js +1 -0
- data/tools/admin/TimeWidget-DvrRaEMz-d4257dcc7dac23d0f759.js +1 -0
- data/tools/admin/TitleWidget-DqViFQl--5330d5a64637d7951419.js +1 -0
- data/tools/admin/ToolsTab-B3gDjVxE-e0c39fb43d32b4a57698.js +6 -0
- data/tools/admin/VWidget-02CG-3Av-a973337ad24b9f4eb395.js +1 -0
- data/tools/admin/ValueWidget-KLYY8L8U-7e154a7868618ab3cca1.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-SR8XNZFB-95640fde4e539f355d39.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-xYZSp6YZ-6f04a114c777e09665dd.js +1 -0
- data/tools/admin/ValuerangebarWidget-B6M02a9d-51d2f42c3985e1d08101.js +1 -0
- data/tools/admin/VerticalWidget-z6xUM-ql-ae963987b8cf0c0e3f98.js +1 -0
- data/tools/admin/VerticalboxWidget-3a9cVsW--2471ab4dfbbe133b4e9b.js +1 -0
- data/tools/admin/Widget-C4QVI4IH-80b859328e2c8ee53918.js +1 -0
- data/tools/admin/main-6d6b6148fd97f6dd73ae.js +1431 -0
- data/tools/admin/main.js +1 -0
- metadata +79 -41
- data/tools/admin/index.html +0 -4
- data/tools/admin/js/143.js +0 -2
- data/tools/admin/js/143.js.map +0 -1
- data/tools/admin/js/163.js +0 -2
- data/tools/admin/js/163.js.map +0 -1
- data/tools/admin/js/25.js +0 -2
- data/tools/admin/js/25.js.map +0 -1
- data/tools/admin/js/272.js +0 -2
- data/tools/admin/js/272.js.map +0 -1
- data/tools/admin/js/352.js +0 -2
- data/tools/admin/js/352.js.map +0 -1
- data/tools/admin/js/542.js +0 -10
- data/tools/admin/js/542.js.map +0 -1
- data/tools/admin/js/56.js +0 -2
- data/tools/admin/js/56.js.map +0 -1
- data/tools/admin/js/569.js +0 -2
- data/tools/admin/js/569.js.map +0 -1
- data/tools/admin/js/612.js +0 -2
- data/tools/admin/js/612.js.map +0 -1
- data/tools/admin/js/627.js +0 -9
- data/tools/admin/js/627.js.map +0 -1
- data/tools/admin/js/698.js +0 -2
- data/tools/admin/js/698.js.map +0 -1
- data/tools/admin/js/722.js +0 -2
- data/tools/admin/js/722.js.map +0 -1
- data/tools/admin/js/742.js +0 -2
- data/tools/admin/js/742.js.map +0 -1
- data/tools/admin/js/816.js +0 -2
- data/tools/admin/js/816.js.map +0 -1
- data/tools/admin/js/842.js +0 -2
- data/tools/admin/js/842.js.map +0 -1
- data/tools/admin/js/854.js +0 -2
- data/tools/admin/js/854.js.map +0 -1
- data/tools/admin/js/949.js +0 -2
- data/tools/admin/js/949.js.map +0 -1
- data/tools/admin/js/983.js +0 -2
- data/tools/admin/js/983.js.map +0 -1
- data/tools/admin/js/app.js +0 -2
- data/tools/admin/js/app.js.map +0 -1
@@ -0,0 +1,1431 @@
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Dn,Oe){"use strict";var Se,Pe,St,xe,_e,Xd,ks,to,Nt,ep,Nn,Qt,Fi,Gi,Ss,ft,Nc,ri,tp,Ia,np,ip,rp,Fc,op,sp,Pc,ap,lp,cp,up,hp,dp,pp,fp,gp;return{setters:[nt=>{Se=nt.resolveComponent,Pe=nt.openBlock,St=nt.createBlock,xe=nt.withCtx,_e=nt.createVNode,Xd=nt.defineAsyncComponent,ks=nt.h,to=nt.normalizeStyle,Nt=nt.createElementBlock,ep=nt.Teleport,Nn=nt.createElementVNode,Qt=nt.toDisplayString,Fi=nt.Fragment,Gi=nt.renderList,Ss=nt.mergeProps,ft=nt.createTextVNode,Nc=nt.createSlots,ri=nt.createCommentVNode,tp=nt.toRaw,Ia=nt.withModifiers,np=nt.defineComponent,ip=nt.warn,rp=nt.inject,Fc=nt.computed,op=nt.shallowRef,sp=nt.watchEffect,Pc=nt.createApp,ap=nt.getCurrentInstance,lp=nt.provide,cp=nt.withDirectives,up=nt.vShow},nt=>{hp=nt.createRouter,dp=nt.createWebHistory},nt=>{pp=nt.getMountedApps},nt=>{fp=nt.createStore},nt=>{gp=nt.createVuetify}],execute:function(){Dn({$:Wn,d:xp,e:_M,l:Zt,p:Lr,y:vn,z:Hh});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(p){return Object.getOwnPropertyDescriptor(n,p).enumerable})),t.push.apply(t,i)}return t}function no(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?mp(Object(t),!0).forEach(function(i){gb(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):mp(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function gb(n,e,t){return(e=function(i){var p=function(h,f){if(io(h)!=="object"||h===null)return h;var y=h[Symbol.toPrimitive];if(y!==void 0){var d=y.call(h,f||"default");if(io(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(h)}(i,"string");return io(p)==="symbol"?p:String(p)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function io(n){return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},io(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var e=function(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i,p=String(t),h=p.length,f=-1,y="",d=p.charCodeAt(0);++f<h;)(i=p.charCodeAt(f))!=0?y+=i>=1&&i<=31||i==127||f==0&&i>=48&&i<=57||f==1&&i>=48&&i<=57&&d==45?"\\"+i.toString(16)+" ":f==0&&h==1&&i==45||!(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122)?"\\"+p.charAt(f):p.charAt(f):y+="�";return y};n.CSS||(n.CSS={}),n.CSS.escape=e})(nt);var mb={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function vb(n){if(io(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var e=no(no({},mb),n);if(!e.Vue&&!e.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!e.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(e.appOptions.el&&typeof e.appOptions.el!="string"&&!(e.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(io(e.appOptions.el)));e.createApp=e.createApp||e.Vue&&e.Vue.createApp;var t={};return{bootstrap:yb.bind(null,e,t),mount:bb.bind(null,e,t),unmount:xb.bind(null,e,t),update:wb.bind(null,e,t)}}function yb(n){return n.loadRootComponent?n.loadRootComponent().then(function(e){return n.rootComponent=e}):Promise.resolve()}function bb(n,e,t){var i={};return Promise.resolve().then(function(){return function(p,h){return typeof p.appOptions=="function"?p.appOptions(h):Promise.resolve(no({},p.appOptions))}(n,t).then(function(p){var h;if(t.domElement&&!p.el&&(p.el=t.domElement),p.el)if(typeof p.el=="string"){if(!(h=document.querySelector(p.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(p.el))}else(h=p.el).id||(h.id="single-spa-application:".concat(t.name)),p.el="#".concat(CSS.escape(h.id));else{var f="single-spa-application:".concat(t.name);p.el="#".concat(CSS.escape(f)),(h=document.getElementById(f))||((h=document.createElement("div")).id=f,document.body.appendChild(h))}if(!n.replaceMode&&(p.el=p.el+" .single-spa-container",!h.querySelector(".single-spa-container"))){var y=document.createElement("div");y.className="single-spa-container",h.appendChild(y)}i.domEl=h,p.render||p.template||!n.rootComponent||(p.render=function(g){return g(n.rootComponent)}),p.data||(p.data={});var d=p.data;if(p.data=function(){return no(no({},typeof d=="function"?d.call(this,this):d),t)},n.createApp){if(i.vueInstance=n.createApp(p),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,t)).then(function(){return i.root=i.vueInstance.mount(p.el),e[t.name]=i,i.vueInstance});i.root=i.vueInstance.mount(p.el)}else if(i.vueInstance=new n.Vue(p),i.vueInstance.bind&&(i.vueInstance=i.vueInstance.bind(i.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,t)).then(function(){return e[t.name]=i,i.vueInstance});return e[t.name]=i,i.vueInstance})})}function wb(n,e,t){return Promise.resolve().then(function(){var i=e[t.name],p=no(no({},n.appOptions.data||{}),t),h=i.root||i.vueInstance;for(var f in p)h[f]=p[f]})}function xb(n,e,t){return Promise.resolve().then(function(){var i=e[t.name];n.createApp?i.vueInstance.unmount(i.domEl):(i.vueInstance.$destroy(),i.vueInstance.$el.innerHTML=""),delete i.vueInstance,i.domEl&&(i.domEl.innerHTML="",delete i.domEl)})}const _b=(n,e)=>{const t=n.__vccOpts||n;for(const[i,p]of e)t[i]=p;return t},kb={};function Sb(n,e){const t=Se("router-view"),i=Se("v-app");return Pe(),St(i,{id:"innerapp"},{default:xe(()=>[_e(t)]),_:1})}const $b=_b(kb,[["render",Sb]]),vp=function(n){var e;!n.name!=="NotFound"&&(n.path=`/tools/admin/${n.path.replace(/^\//,"")}`),(e=n.children)==null||e.forEach(vp)},JI="modulepreload",XI=function(n){return"/"+n},eO={},De=function(e,t,i){let p=Promise.resolve();function h(f){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=f,window.dispatchEvent(y),!y.defaultPrevented)throw f}return p.then(f=>{for(const y of f||[])y.status==="rejected"&&h(y.reason);return e().catch(h)})},Yi=Dn("s",(n,e)=>{const t=n.__vccOpts||n;for(const[i,p]of e)t[i]=p;return t}),Oa=6e4,Hc=36e5,Cb=1e3,yp=Symbol.for("constructDateFrom");function vn(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&yp in n?n[yp](e):n instanceof Date?new n.constructor(e):new Date(e)}function Zt(n,e){return vn(e||n,n)}let Mb={};function No(){return Mb}function Ar(n,e){var t,i,p,h;const f=No(),y=(e==null?void 0:e.weekStartsOn)??((i=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:i.weekStartsOn)??f.weekStartsOn??((h=(p=f.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,d=Zt(n,e==null?void 0:e.in),g=d.getDay(),s=(g<y?7:0)+g-y;return d.setDate(d.getDate()-s),d.setHours(0,0,0,0),d}function Fo(n,e){return Ar(n,{...e,weekStartsOn:1})}function bp(n,e){const t=Zt(n,void 0),i=t.getFullYear(),p=vn(t,0);p.setFullYear(i+1,0,4),p.setHours(0,0,0,0);const h=Fo(p),f=vn(t,0);f.setFullYear(i,0,4),f.setHours(0,0,0,0);const y=Fo(f);return t.getTime()>=h.getTime()?i+1:t.getTime()>=y.getTime()?i:i-1}function Da(n){const e=Zt(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function Tb(n,...e){const t=vn.bind(null,e.find(i=>typeof i=="object"));return e.map(t)}function wp(n,e){const t=Zt(n,void 0);return t.setHours(0,0,0,0),t}function Ab(n,e,t){const[i,p]=Tb(void 0,n,e),h=wp(i),f=wp(p),y=+h-Da(h),d=+f-Da(f);return Math.round((y-d)/864e5)}function Eb(n,e){const t=bp(n),i=vn(n,0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),Fo(i)}function Lb(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function xp(n){return!(!Lb(n)&&typeof n!="number"||isNaN(+Zt(n)))}function Rb(n,e){const t=Zt(n,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const Ib={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"}},Ob=(n,e,t)=>{let i;const p=Ib[n];return typeof p=="string"?i=p:e===1?i=p.one:i=p.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+i:i+" ago":i};function Bc(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Db={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pb={date:Bc({formats:Db,defaultWidth:"full"}),time:Bc({formats:Nb,defaultWidth:"full"}),dateTime:Bc({formats:Fb,defaultWidth:"full"})},Hb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bb=(n,e,t,i)=>Hb[n];function $s(n){return(e,t)=>{const i=t!=null&&t.context?String(t.context):"standalone";let p;if(i==="formatting"&&n.formattingValues){const f=n.defaultFormattingWidth||n.defaultWidth,y=t!=null&&t.width?String(t.width):f;p=n.formattingValues[y]||n.formattingValues[f]}else{const f=n.defaultWidth,y=t!=null&&t.width?String(t.width):n.defaultWidth;p=n.values[y]||n.values[f]}const h=n.argumentCallback?n.argumentCallback(e):e;return p[h]}}const jb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wb={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"]},Ub={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"]},Vb={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"}},qb={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"}},Gb=(n,e)=>{const t=Number(n),i=t%100;if(i>20||i<10)switch(i%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Yb={ordinalNumber:Gb,era:$s({values:jb,defaultWidth:"wide"}),quarter:$s({values:zb,defaultWidth:"wide",argumentCallback:n=>n-1}),month:$s({values:Wb,defaultWidth:"wide"}),day:$s({values:Ub,defaultWidth:"wide"}),dayPeriod:$s({values:Vb,defaultWidth:"wide",formattingValues:qb,defaultFormattingWidth:"wide"})};function Cs(n){return(e,t={})=>{const i=t.width,p=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],h=e.match(p);if(!h)return null;const f=h[0],y=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],d=Array.isArray(y)?Qb(y,l=>l.test(f)):Kb(y,l=>l.test(f));let g;g=n.valueCallback?n.valueCallback(d):d,g=t.valueCallback?t.valueCallback(g):g;const s=e.slice(f.length);return{value:g,rest:s}}}function Kb(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function Qb(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function Zb(n){return(e,t={})=>{const i=e.match(n.matchPattern);if(!i)return null;const p=i[0],h=e.match(n.parsePattern);if(!h)return null;let f=n.valueCallback?n.valueCallback(h[0]):h[0];f=t.valueCallback?t.valueCallback(f):f;const y=e.slice(p.length);return{value:f,rest:y}}}const Jb=/^(\d+)(th|st|nd|rd)?/i,Xb=/\d+/i,ew={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},tw={any:[/^b/i,/^(a|c)/i]},nw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iw={any:[/1/i,/2/i,/3/i,/4/i]},rw={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},ow={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]},sw={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},aw={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]},lw={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},cw={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}},uw={ordinalNumber:Zb({matchPattern:Jb,parsePattern:Xb,valueCallback:n=>parseInt(n,10)}),era:Cs({matchPatterns:ew,defaultMatchWidth:"wide",parsePatterns:tw,defaultParseWidth:"any"}),quarter:Cs({matchPatterns:nw,defaultMatchWidth:"wide",parsePatterns:iw,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Cs({matchPatterns:rw,defaultMatchWidth:"wide",parsePatterns:ow,defaultParseWidth:"any"}),day:Cs({matchPatterns:sw,defaultMatchWidth:"wide",parsePatterns:aw,defaultParseWidth:"any"}),dayPeriod:Cs({matchPatterns:lw,defaultMatchWidth:"any",parsePatterns:cw,defaultParseWidth:"any"})},_p={code:"en-US",formatDistance:Ob,formatLong:Pb,formatRelative:Bb,localize:Yb,match:uw,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hw(n,e){const t=Zt(n,void 0);return Ab(t,Rb(t))+1}function kp(n,e){const t=Zt(n,void 0),i=+Fo(t)-+Eb(t);return Math.round(i/6048e5)+1}function jc(n,e){var t,i,p,h;const f=Zt(n,e==null?void 0:e.in),y=f.getFullYear(),d=No(),g=(e==null?void 0:e.firstWeekContainsDate)??((i=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:i.firstWeekContainsDate)??d.firstWeekContainsDate??((h=(p=d.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,s=vn((e==null?void 0:e.in)||n,0);s.setFullYear(y+1,0,g),s.setHours(0,0,0,0);const l=Ar(s,e),a=vn((e==null?void 0:e.in)||n,0);a.setFullYear(y,0,g),a.setHours(0,0,0,0);const c=Ar(a,e);return+f>=+l?y+1:+f>=+c?y:y-1}function dw(n,e){var t,i,p,h;const f=No(),y=(e==null?void 0:e.firstWeekContainsDate)??((i=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:i.firstWeekContainsDate)??f.firstWeekContainsDate??((h=(p=f.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,d=jc(n,e),g=vn((e==null?void 0:e.in)||n,0);return g.setFullYear(d,0,y),g.setHours(0,0,0,0),Ar(g,e)}function Sp(n,e){const t=Zt(n,e==null?void 0:e.in),i=+Ar(t,e)-+dw(t,e);return Math.round(i/6048e5)+1}function Rt(n,e){const t=n<0?"-":"",i=Math.abs(n).toString().padStart(e,"0");return t+i}const Er={y(n,e){const t=n.getFullYear(),i=t>0?t:1-t;return Rt(e==="yy"?i%100:i,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):Rt(t+1,2)},d(n,e){return Rt(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return Rt(n.getHours()%12||12,e.length)},H(n,e){return Rt(n.getHours(),e.length)},m(n,e){return Rt(n.getMinutes(),e.length)},s(n,e){return Rt(n.getSeconds(),e.length)},S(n,e){const t=e.length,i=n.getMilliseconds(),p=Math.trunc(i*Math.pow(10,t-3));return Rt(p,e.length)}},Po={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$p={G:function(n,e,t){const i=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(i,{width:"abbreviated"});case"GGGGG":return t.era(i,{width:"narrow"});case"GGGG":default:return t.era(i,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const i=n.getFullYear(),p=i>0?i:1-i;return t.ordinalNumber(p,{unit:"year"})}return Er.y(n,e)},Y:function(n,e,t,i){const p=jc(n,i),h=p>0?p:1-p;if(e==="YY"){const f=h%100;return Rt(f,2)}return e==="Yo"?t.ordinalNumber(h,{unit:"year"}):Rt(h,e.length)},R:function(n,e){const t=bp(n);return Rt(t,e.length)},u:function(n,e){const t=n.getFullYear();return Rt(t,e.length)},Q:function(n,e,t){const i=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return Rt(i,2);case"Qo":return t.ordinalNumber(i,{unit:"quarter"});case"QQQ":return t.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,e,t){const i=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return Rt(i,2);case"qo":return t.ordinalNumber(i,{unit:"quarter"});case"qqq":return t.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,e,t){const i=n.getMonth();switch(e){case"M":case"MM":return Er.M(n,e);case"Mo":return t.ordinalNumber(i+1,{unit:"month"});case"MMM":return t.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(i,{width:"wide",context:"formatting"})}},L:function(n,e,t){const i=n.getMonth();switch(e){case"L":return String(i+1);case"LL":return Rt(i+1,2);case"Lo":return t.ordinalNumber(i+1,{unit:"month"});case"LLL":return t.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(i,{width:"wide",context:"standalone"})}},w:function(n,e,t,i){const p=Sp(n,i);return e==="wo"?t.ordinalNumber(p,{unit:"week"}):Rt(p,e.length)},I:function(n,e,t){const i=kp(n);return e==="Io"?t.ordinalNumber(i,{unit:"week"}):Rt(i,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):Er.d(n,e)},D:function(n,e,t){const i=hw(n);return e==="Do"?t.ordinalNumber(i,{unit:"dayOfYear"}):Rt(i,e.length)},E:function(n,e,t){const i=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(i,{width:"short",context:"formatting"});case"EEEE":default:return t.day(i,{width:"wide",context:"formatting"})}},e:function(n,e,t,i){const p=n.getDay(),h=(p-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(h);case"ee":return Rt(h,2);case"eo":return t.ordinalNumber(h,{unit:"day"});case"eee":return t.day(p,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(p,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(p,{width:"short",context:"formatting"});case"eeee":default:return t.day(p,{width:"wide",context:"formatting"})}},c:function(n,e,t,i){const p=n.getDay(),h=(p-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(h);case"cc":return Rt(h,e.length);case"co":return t.ordinalNumber(h,{unit:"day"});case"ccc":return t.day(p,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(p,{width:"narrow",context:"standalone"});case"cccccc":return t.day(p,{width:"short",context:"standalone"});case"cccc":default:return t.day(p,{width:"wide",context:"standalone"})}},i:function(n,e,t){const i=n.getDay(),p=i===0?7:i;switch(e){case"i":return String(p);case"ii":return Rt(p,e.length);case"io":return t.ordinalNumber(p,{unit:"day"});case"iii":return t.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(i,{width:"short",context:"formatting"});case"iiii":default:return t.day(i,{width:"wide",context:"formatting"})}},a:function(n,e,t){const i=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,e,t){const i=n.getHours();let p;switch(i===12?p=Po.noon:i===0?p=Po.midnight:p=i/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(p,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(p,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(p,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(p,{width:"wide",context:"formatting"})}},B:function(n,e,t){const i=n.getHours();let p;switch(i>=17?p=Po.evening:i>=12?p=Po.afternoon:i>=4?p=Po.morning:p=Po.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(p,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(p,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(p,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let i=n.getHours()%12;return i===0&&(i=12),t.ordinalNumber(i,{unit:"hour"})}return Er.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):Er.H(n,e)},K:function(n,e,t){const i=n.getHours()%12;return e==="Ko"?t.ordinalNumber(i,{unit:"hour"}):Rt(i,e.length)},k:function(n,e,t){let i=n.getHours();return i===0&&(i=24),e==="ko"?t.ordinalNumber(i,{unit:"hour"}):Rt(i,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):Er.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):Er.s(n,e)},S:function(n,e){return Er.S(n,e)},X:function(n,e,t){const i=n.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return Mp(i);case"XXXX":case"XX":return ro(i);case"XXXXX":case"XXX":default:return ro(i,":")}},x:function(n,e,t){const i=n.getTimezoneOffset();switch(e){case"x":return Mp(i);case"xxxx":case"xx":return ro(i);case"xxxxx":case"xxx":default:return ro(i,":")}},O:function(n,e,t){const i=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Cp(i,":");case"OOOO":default:return"GMT"+ro(i,":")}},z:function(n,e,t){const i=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Cp(i,":");case"zzzz":default:return"GMT"+ro(i,":")}},t:function(n,e,t){const i=Math.trunc(+n/1e3);return Rt(i,e.length)},T:function(n,e,t){return Rt(+n,e.length)}};function Cp(n,e=""){const t=n>0?"-":"+",i=Math.abs(n),p=Math.trunc(i/60),h=i%60;return h===0?t+String(p):t+String(p)+e+Rt(h,2)}function Mp(n,e){return n%60===0?(n>0?"-":"+")+Rt(Math.abs(n)/60,2):ro(n,e)}function ro(n,e=""){const t=n>0?"-":"+",i=Math.abs(n),p=Rt(Math.trunc(i/60),2),h=Rt(i%60,2);return t+p+e+h}const Tp=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Ap=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},pw=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],i=t[1],p=t[2];if(!p)return Tp(n,e);let h;switch(i){case"P":h=e.dateTime({width:"short"});break;case"PP":h=e.dateTime({width:"medium"});break;case"PPP":h=e.dateTime({width:"long"});break;case"PPPP":default:h=e.dateTime({width:"full"});break}return h.replace("{{date}}",Tp(i,e)).replace("{{time}}",Ap(p,e))},zc={p:Ap,P:pw},fw=/^D+$/,gw=/^Y+$/,mw=["D","DD","YY","YYYY"];function Ep(n){return fw.test(n)}function Lp(n){return gw.test(n)}function Wc(n,e,t){const i=vw(n,e,t);if(console.warn(i),mw.includes(n))throw new RangeError(i)}function vw(n,e,t){const i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${i} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const yw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ww=/^'([^]*?)'?$/,xw=/''/g,_w=/[a-zA-Z]/;function Lr(n,e,t){var i,p,h,f,y,d,g,s;const l=No(),a=(t==null?void 0:t.locale)??l.locale??_p,c=(t==null?void 0:t.firstWeekContainsDate)??((p=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:p.firstWeekContainsDate)??l.firstWeekContainsDate??((f=(h=l.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??1,o=(t==null?void 0:t.weekStartsOn)??((d=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:d.weekStartsOn)??l.weekStartsOn??((s=(g=l.locale)==null?void 0:g.options)==null?void 0:s.weekStartsOn)??0,u=Zt(n,t==null?void 0:t.in);if(!xp(u))throw new RangeError("Invalid time value");let v=e.match(bw).map(x=>{const E=x[0];if(E==="p"||E==="P"){const C=zc[E];return C(x,a.formatLong)}return x}).join("").match(yw).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const E=x[0];if(E==="'")return{isToken:!1,value:kw(x)};if($p[E])return{isToken:!0,value:x};if(E.match(_w))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(v=a.localize.preprocessor(u,v));const b={firstWeekContainsDate:c,weekStartsOn:o,locale:a};return v.map(x=>{if(!x.isToken)return x.value;const E=x.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Lp(E)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Ep(E))&&Wc(E,e,String(n));const C=$p[E[0]];return C(u,E,a.localize,b)}).join("")}function kw(n){const e=n.match(ww);return e?e[1].replace(xw,"'"):n}var Rr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Rp={exports:{}},Ip;function Sw(){return Ip||(Ip=1,function(n,e){(function(){var t="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var p=function(s,l,a){if(typeof s!="string"){p.original?p.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=l),p.modules[s]||(p.payloads[s]=a,p.modules[s]=null)};p.modules={},p.payloads={};var h=function(s,l,a){if(typeof l=="string"){var c=d(s,l);if(c!=null)return a&&a(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],u=0,v=l.length;u<v;++u){var b=d(s,l[u]);if(b==null&&f.original)return;o.push(b)}return a&&a.apply(null,o)||!0}},f=function(s,l){var a=h("",s,l);return a==null&&f.original?f.original.apply(this,arguments):a},y=function(s,l){if(l.indexOf("!")!==-1){var a=l.split("!");return y(s,a[0])+"!"+y(s,a[1])}if(l.charAt(0)=="."){var c=s.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&o!=l;){var o=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},d=function(s,l){l=y(s,l);var a=p.modules[l];if(!a){if(a=p.payloads[l],typeof a=="function"){var c={},o={id:l,uri:"",exports:c,packaged:!0},u=function(b,x){return h(l,b,x)},v=a(u,c,o);c=v||o.exports,p.modules[l]=c,delete p.payloads[l]}a=p.modules[l]=c||a}return a};function g(s){var l=i;i[s]||(i[s]={}),l=i[s],(!l.define||!l.define.packaged)&&(p.original=l.define,l.define=p,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(f.original=l.require,l.require=f,l.require.packaged=!0)}g(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,i,p){function h(f,y,d){Object.defineProperty(f,y,{value:d,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||h(String.prototype,"startsWith",function(f,y){return y=y||0,this.lastIndexOf(f,y)===y}),String.prototype.endsWith||h(String.prototype,"endsWith",function(f,y){var d=this;(y===void 0||y>d.length)&&(y=d.length),y-=f.length;var g=d.indexOf(f,y);return g!==-1&&g===y}),String.prototype.repeat||h(String.prototype,"repeat",function(f){for(var y="",d=this;f>0;)f&1&&(y+=d),(f>>=1)&&(d+=d);return y}),String.prototype.includes||h(String.prototype,"includes",function(f,y){return this.indexOf(f,y)!=-1}),Object.assign||(Object.assign=function(f){if(f==null)throw new TypeError("Cannot convert undefined or null to object");for(var y=Object(f),d=1;d<arguments.length;d++){var g=arguments[d];g!=null&&Object.keys(g).forEach(function(s){y[s]=g[s]})}return y}),Object.values||(Object.values=function(f){return Object.keys(f).map(function(y){return f[y]})}),Array.prototype.find||h(Array.prototype,"find",function(f){for(var y=this.length,d=arguments[1],g=0;g<y;g++){var s=this[g];if(f.call(d,s,g,this))return s}}),Array.prototype.findIndex||h(Array.prototype,"findIndex",function(f){for(var y=this.length,d=arguments[1],g=0;g<y;g++){var s=this[g];if(f.call(d,s,g,this))return g}}),Array.prototype.includes||h(Array.prototype,"includes",function(f,y){return this.indexOf(f,y)!=-1}),Array.prototype.fill||h(Array.prototype,"fill",function(f){for(var y=this,d=y.length>>>0,g=arguments[1],s=g>>0,l=s<0?Math.max(d+s,0):Math.min(s,d),a=arguments[2],c=a===void 0?d:a>>0,o=c<0?Math.max(d+c,0):Math.min(c,d);l<o;)y[l]=f,l++;return y}),Array.of||h(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,i,p){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,i,p){i.deepCopy=function h(f){if(typeof f!="object"||!f)return f;var y;if(Array.isArray(f)){y=[];for(var d=0;d<f.length;d++)y[d]=h(f[d]);return y}if(Object.prototype.toString.call(f)!=="[object Object]")return f;y={};for(var d in f)y[d]=h(f[d]);return y}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,i,p){i.last=function(y){return y[y.length-1]},i.stringReverse=function(y){return y.split("").reverse().join("")},i.stringRepeat=function(y,d){for(var g="";d>0;)d&1&&(g+=y),(d>>=1)&&(y+=y);return g};var h=/^\s\s*/,f=/\s\s*$/;i.stringTrimLeft=function(y){return y.replace(h,"")},i.stringTrimRight=function(y){return y.replace(f,"")},i.copyObject=function(y){var d={};for(var g in y)d[g]=y[g];return d},i.copyArray=function(y){for(var d=[],g=0,s=y.length;g<s;g++)y[g]&&typeof y[g]=="object"?d[g]=this.copyObject(y[g]):d[g]=y[g];return d},i.deepCopy=t("./deep_copy").deepCopy,i.arrayToMap=function(y){for(var d={},g=0;g<y.length;g++)d[y[g]]=1;return d},i.createMap=function(y){var d=Object.create(null);for(var g in y)d[g]=y[g];return d},i.arrayRemove=function(y,d){for(var g=0;g<=y.length;g++)d===y[g]&&y.splice(g,1)},i.escapeRegExp=function(y){return y.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(y){return(""+y).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},i.getMatchOffsets=function(y,d){var g=[];return y.replace(d,function(s){g.push({offset:arguments[arguments.length-2],length:s.length})}),g},i.deferredCall=function(y){var d=null,g=function(){d=null,y()},s=function(l){return s.cancel(),d=setTimeout(g,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),y(),s},s.cancel=function(){return clearTimeout(d),d=null,s},s.isPending=function(){return d},s},i.delayedCall=function(y,d){var g=null,s=function(){g=null,y()},l=function(a){g==null&&(g=setTimeout(s,a||d))};return l.delay=function(a){g&&clearTimeout(g),g=setTimeout(s,a||d)},l.schedule=l,l.call=function(){this.cancel(),y()},l.cancel=function(){g&&clearTimeout(g),g=null},l.isPending=function(){return g},l},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(y,d,g){return g&&y.codePointAt(d)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,i,p){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var h=typeof navigator=="object"?navigator:{},f=(/mac|win|linux/i.exec(h.platform)||["other"])[0].toLowerCase(),y=h.userAgent||"",d=h.appName||"";i.isWin=f=="win",i.isMac=f=="mac",i.isLinux=f=="linux",i.isIE=d=="Microsoft Internet Explorer"||d.indexOf("MSAppHost")>=0?parseFloat((y.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((y.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=y.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(y.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(y.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(y.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(y.split(" Edge/")[1])||void 0,i.isAIR=y.indexOf("AdobeAIR")>=0,i.isAndroid=y.indexOf("Android")>=0,i.isChromeOS=y.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(y)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,i,p){var h=t("./useragent"),f="http://www.w3.org/1999/xhtml";i.buildDom=function a(c,o,u){if(typeof c=="string"&&c){var v=document.createTextNode(c);return o&&o.appendChild(v),v}if(!Array.isArray(c))return c&&c.appendChild&&o&&o.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var E=a(c[x],o,u);E&&b.push(E)}return b}var C=document.createElement(c[0]),k=c[1],w=1;k&&typeof k=="object"&&!Array.isArray(k)&&(w=2);for(var x=w;x<c.length;x++)a(c[x],C,u);return w==2&&Object.keys(k).forEach(function(T){var L=k[T];T==="class"?C.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||T=="value"||T[0]=="$"?C[T]=L:T==="ref"?u&&(u[L]=C):T==="style"?typeof L=="string"&&(C.style.cssText=L):L!=null&&C.setAttribute(T,L)}),o&&o.appendChild(C),C},i.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},i.createElement=function(a,c){return document.createElementNS?document.createElementNS(c||f,a):document.createElement(a)},i.removeChildren=function(a){a.innerHTML=""},i.createTextNode=function(a,c){var o=c?c.ownerDocument:document;return o.createTextNode(a)},i.createFragment=function(a){var c=a?a.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(a,c){var o=(a.className+"").split(/\s+/g);return o.indexOf(c)!==-1},i.addCssClass=function(a,c){i.hasCssClass(a,c)||(a.className+=" "+c)},i.removeCssClass=function(a,c){for(var o=a.className.split(/\s+/g);;){var u=o.indexOf(c);if(u==-1)break;o.splice(u,1)}a.className=o.join(" ")},i.toggleCssClass=function(a,c){for(var o=a.className.split(/\s+/g),u=!0;;){var v=o.indexOf(c);if(v==-1)break;u=!1,o.splice(v,1)}return u&&o.push(c),a.className=o.join(" "),u},i.setCssClass=function(a,c,o){o?i.addCssClass(a,c):i.removeCssClass(a,c)},i.hasCssString=function(a,c){var o=0,u;if(c=c||document,u=c.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===a)return!0}},i.removeElementById=function(a,c){c=c||document,c.getElementById(a)&&c.getElementById(a).remove()};var y,d=[];i.useStrictCSP=function(a){y=a,a==!1?g():d||(d=[])};function g(){var a=d;d=null,a&&a.forEach(function(c){s(c[0],c[1])})}function s(a,c,o){if(!(typeof document>"u")){if(d){if(o)g();else if(o===!1)return d.push([a,c])}if(!y){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var v=u.ownerDocument||u;if(c&&i.hasCssString(c,u))return null;c&&(a+=`
|
2
|
+
/*# sourceURL=ace/css/`+c+" */");var b=i.createElement("style");b.appendChild(v.createTextNode(a)),c&&(b.id=c),u==v&&(u=i.getDocumentHead(v)),u.insertBefore(b,u.firstChild)}}}if(i.importCssString=s,i.importCssStylsheet=function(a,c){i.buildDom(["link",{rel:"stylesheet",href:a}],i.getDocumentHead(c))},i.scrollbarWidth=function(a){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var o=i.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(c);var v=a&&a.documentElement||document&&document.documentElement;if(!v)return 0;v.appendChild(o);var b=c.offsetWidth;u.overflow="scroll";var x=c.offsetWidth;return b===x&&(x=o.clientWidth),v.removeChild(o),b-x},i.computedStyle=function(a,c){return window.getComputedStyle(a,"")||{}},i.setStyle=function(a,c,o){a[c]!==o&&(a[c]=o)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=h.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,h.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");i.HI_DPI&&l.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!h.isEdge&&typeof l.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),l=null}i.HAS_CSS_TRANSFORMS?i.translate=function(a,c,o){a.style.transform="translate("+Math.round(c)+"px, "+Math.round(o)+"px)"}:i.translate=function(a,c,o){a.style.top=Math.round(o)+"px",a.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,i,p){/*
|
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 h=t("./dom");i.get=function(f,y){var d=new XMLHttpRequest;d.open("GET",f,!0),d.onreadystatechange=function(){d.readyState===4&&y(d.responseText)},d.send(null)},i.loadScript=function(f,y){var d=h.getDocumentHead(),g=document.createElement("script");g.src=f,d.appendChild(g),g.onload=g.onreadystatechange=function(s,l){(l||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,l||y())}},i.qualifyURL=function(f){var y=document.createElement("a");return y.href=f,y.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,i,p){i.inherits=function(h,f){h.super_=f,h.prototype=Object.create(f.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(h,f){for(var y in f)h[y]=f[y];return h},i.implement=function(h,f){i.mixin(h,f)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,i,p){var h={},f=function(){this.propagationStopped=!0},y=function(){this.defaultPrevented=!0};h._emit=h._dispatchEvent=function(d,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[d]||[],l=this._defaultHandlers[d];if(!(!s.length&&!l)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=d),g.stopPropagation||(g.stopPropagation=f),g.preventDefault||(g.preventDefault=y),s=s.slice();for(var a=0;a<s.length&&(s[a](g,this),!g.propagationStopped);a++);if(l&&!g.defaultPrevented)return l(g,this)}},h._signal=function(d,g){var s=(this._eventRegistry||{})[d];if(s){s=s.slice();for(var l=0;l<s.length;l++)s[l](g,this)}},h.once=function(d,g){var s=this;if(this.on(d,function l(){s.off(d,l),g.apply(null,arguments)}),!g)return new Promise(function(l){g=l})},h.setDefaultHandler=function(d,g){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[d]){var l=s[d],a=s._disabled_[d];a||(s._disabled_[d]=a=[]),a.push(l);var c=a.indexOf(g);c!=-1&&a.splice(c,1)}s[d]=g},h.removeDefaultHandler=function(d,g){var s=this._defaultHandlers;if(s){var l=s._disabled_[d];if(s[d]==g)l&&this.setDefaultHandler(d,l.pop());else if(l){var a=l.indexOf(g);a!=-1&&l.splice(a,1)}}},h.on=h.addEventListener=function(d,g,s){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[d];return l||(l=this._eventRegistry[d]=[]),l.indexOf(g)==-1&&l[s?"unshift":"push"](g),g},h.off=h.removeListener=h.removeEventListener=function(d,g){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[d];if(s){var l=s.indexOf(g);l!==-1&&s.splice(l,1)}},h.removeAllListeners=function(d){d||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[d]=void 0),this._defaultHandlers&&(this._defaultHandlers[d]=void 0)},i.EventEmitter=h}),ace.define("ace/lib/report_error",["require","exports","module"],function(t,i,p){i.reportError=function(h,f){var y=new Error(h);y.data=f,typeof console=="object"&&console.error&&console.error(y),setTimeout(function(){throw y})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(t,i,p){var h={"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"};i.defaultEnglishMessages=h}),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(t,i,p){"no use strict";var h=t("./oop"),f=t("./event_emitter").EventEmitter,y=t("./report_error").reportError,d=t("./default_english_messages").defaultEnglishMessages,g={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var v=this.$options;o=Object.keys(v).filter(function(b){return!v[b].hidden})}return o.forEach(function(b){u[b]=this.getOption(b)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var v=this.$options[o];if(!v)return s('misspelled option "'+o+'"');if(v.forwardTo)return this[v.forwardTo]&&this[v.forwardTo].setOption(o,u);v.handlesSet||(this["$"+o]=u),v&&v.set&&v.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]:s('misspelled option "'+o+'"')}};function s(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,a,c=function(){function o(){this.$defaultOptions={},l=d,a="dollarSigns"}return o.prototype.defineOptions=function(u,v,b){return u.$options||(this.$defaultOptions[v]=u.$options={}),Object.keys(b).forEach(function(x){var E=b[x];typeof E=="string"&&(E={forwardTo:E}),E.name||(E.name=x),u.$options[E.name]=E,"initialValue"in E&&(u["$"+E.name]=E.initialValue)}),h.implement(u,g),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(v){var b=u.$options[v];"value"in b&&u.setOption(v,b.value)})},o.prototype.setDefaultValue=function(u,v,b){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][v])break;if(!this.$defaultOptions[u][v])return!1}var x=this.$defaultOptions[u]||(this.$defaultOptions[u]={});x[v]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,v,b):x[v].value=b)},o.prototype.setDefaultValues=function(u,v){Object.keys(v).forEach(function(b){this.setDefaultValue(u,b,v[b])},this)},o.prototype.setMessages=function(u,v){l=u,v&&v.placeholders&&(a=v.placeholders)},o.prototype.nls=function(u,v,b){l[u]||(s("No message found for the key '"+u+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+v+"'."),l[v]||s("No message found for the default string '"+v+"' in the provided messages. Falling back to the default English message."));var x=l[u]||l[v]||v;return b&&(a==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(E,C){return C=="$"?"$":b[C]})),a==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(E,C){return b[C]}))),x},o}();c.prototype.warn=s,c.prototype.reportError=y,h.implement(c.prototype,f),i.AppConfig=c}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(t,i,p){p.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(t,i,p){i.isDark=!1,i.cssClass="ace-tm",i.cssText=t("./textmate-css"),i.$id="ace/theme/textmate";var h=t("../lib/dom");h.importCssString(i.cssText,i.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(t,i,p){"no use strict";var h=t("./lib/lang"),f=t("./lib/net"),y=t("./lib/dom"),d=t("./lib/app_config").AppConfig;p.exports=i=new d;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(c){if(!g.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return g[c]},i.set=function(c,o){if(g.hasOwnProperty(c))g[c]=o;else if(this.setDefaultValue("",c,o)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&y.useStrictCSP(o)},i.all=function(){return h.copyObject(g)},i.$modes={},i.moduleUrl=function(c,o){if(g.$moduleUrls[c])return g.$moduleUrls[c];var u=c.split("/");o=o||u[u.length-2]||"";var v=o=="snippets"?"/":"-",b=u[u.length-1];if(o=="worker"&&v=="-"){var x=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");b=b.replace(x,"")}(!b||b==o)&&u.length>1&&(b=u[u.length-2]);var E=g[o+"Path"];return E==null?E=g.basePath:v=="/"&&(o=v=""),E&&E.slice(-1)!="/"&&(E+="/"),E+o+v+b+this.get("suffix")},i.setModuleUrl=function(c,o){return g.$moduleUrls[c]=o};var s=function(c,o){if(c==="ace/theme/textmate"||c==="./theme/textmate")return o(null,t("./theme/textmate"));if(l)return l(c,o);console.error("loader is not configured")},l;i.setLoader=function(c){l=c},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(c,o){var u;if(Array.isArray(c))var v=c[0],b=c[1];else if(typeof c=="string")var b=c;var x=function(E){if(E&&!i.$loading[b])return o&&o(E);if(i.$loading[b]||(i.$loading[b]=[]),i.$loading[b].push(o),!(i.$loading[b].length>1)){var C=function(){s(b,function(k,w){w&&(i.$loaded[b]=w),i._emit("load.module",{name:b,module:w});var T=i.$loading[b];i.$loading[b]=null,T.forEach(function(L){L&&L(w)})})};if(!i.get("packaged"))return C();f.loadScript(i.moduleUrl(b,v),C),a()}};if(i.dynamicModules[b])i.dynamicModules[b]().then(function(E){E.default?x(E.default):x(E)});else{try{u=this.$require(b)}catch{}x(u||i.$loaded[b])}},i.$require=function(c){if(typeof p.require=="function"){var o="require";return p[o](c)}},i.setModuleLoader=function(c,o){i.dynamicModules[c]=o};var a=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$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"),a=function(){})};i.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,i,p){t("./lib/fixoldbrowsers");var h=t("./config");h.setLoader(function(g,s){t([g],function(l){s(null,l)})});var f=function(){return this||typeof window<"u"&&window}();p.exports=function(g){h.init=y,h.$require=t,g.require=t},y(!0);function y(g){if(!(!f||!f.document)){h.set("packaged",g||t.packaged||p.packaged||f.define&&(void 0).packaged);var s={},l="",a=document.currentScript||document._currentScript,c=a&&a.ownerDocument||document;a&&a.src&&(l=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=c.getElementsByTagName("script"),u=0;u<o.length;u++){var v=o[u],b=v.src||v.getAttribute("src");if(b){for(var x=v.attributes,E=0,C=x.length;E<C;E++){var k=x[E];k.name.indexOf("data-ace-")===0&&(s[d(k.name.replace(/^data-ace-/,""))]=k.value)}var w=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);w&&(l=w[1])}}l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var T in s)typeof s[T]<"u"&&h.set(T,s[T])}}function d(g){return g.replace(/-(.)/g,function(s,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(t,i,p){var h=function(){function f(y,d,g,s){this.start={row:y,column:d},this.end={row:g,column:s}}return f.prototype.isEqual=function(y){return this.start.row===y.start.row&&this.end.row===y.end.row&&this.start.column===y.start.column&&this.end.column===y.end.column},f.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},f.prototype.contains=function(y,d){return this.compare(y,d)==0},f.prototype.compareRange=function(y){var d,g=y.end,s=y.start;return d=this.compare(g.row,g.column),d==1?(d=this.compare(s.row,s.column),d==1?2:d==0?1:0):d==-1?-2:(d=this.compare(s.row,s.column),d==-1?-1:d==1?42:0)},f.prototype.comparePoint=function(y){return this.compare(y.row,y.column)},f.prototype.containsRange=function(y){return this.comparePoint(y.start)==0&&this.comparePoint(y.end)==0},f.prototype.intersects=function(y){var d=this.compareRange(y);return d==-1||d==0||d==1},f.prototype.isEnd=function(y,d){return this.end.row==y&&this.end.column==d},f.prototype.isStart=function(y,d){return this.start.row==y&&this.start.column==d},f.prototype.setStart=function(y,d){typeof y=="object"?(this.start.column=y.column,this.start.row=y.row):(this.start.row=y,this.start.column=d)},f.prototype.setEnd=function(y,d){typeof y=="object"?(this.end.column=y.column,this.end.row=y.row):(this.end.row=y,this.end.column=d)},f.prototype.inside=function(y,d){return this.compare(y,d)==0?!(this.isEnd(y,d)||this.isStart(y,d)):!1},f.prototype.insideStart=function(y,d){return this.compare(y,d)==0?!this.isEnd(y,d):!1},f.prototype.insideEnd=function(y,d){return this.compare(y,d)==0?!this.isStart(y,d):!1},f.prototype.compare=function(y,d){return!this.isMultiLine()&&y===this.start.row?d<this.start.column?-1:d>this.end.column?1:0:y<this.start.row?-1:y>this.end.row?1:this.start.row===y?d>=this.start.column?0:-1:this.end.row===y?d<=this.end.column?0:1:0},f.prototype.compareStart=function(y,d){return this.start.row==y&&this.start.column==d?-1:this.compare(y,d)},f.prototype.compareEnd=function(y,d){return this.end.row==y&&this.end.column==d?1:this.compare(y,d)},f.prototype.compareInside=function(y,d){return this.end.row==y&&this.end.column==d?1:this.start.row==y&&this.start.column==d?-1:this.compare(y,d)},f.prototype.clipRows=function(y,d){if(this.end.row>d)var g={row:d+1,column:0};else if(this.end.row<y)var g={row:y,column:0};if(this.start.row>d)var s={row:d+1,column:0};else if(this.start.row<y)var s={row:y,column:0};return f.fromPoints(s||this.start,g||this.end)},f.prototype.extend=function(y,d){var g=this.compare(y,d);if(g==0)return this;if(g==-1)var s={row:y,column:d};else var l={row:y,column:d};return f.fromPoints(s||this.start,l||this.end)},f.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},f.prototype.isMultiLine=function(){return this.start.row!==this.end.row},f.prototype.clone=function(){return f.fromPoints(this.start,this.end)},f.prototype.collapseRows=function(){return this.end.column==0?new f(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new f(this.start.row,0,this.end.row,0)},f.prototype.toScreenRange=function(y){var d=y.documentToScreenPosition(this.start),g=y.documentToScreenPosition(this.end);return new f(d.row,d.column,g.row,g.column)},f.prototype.moveBy=function(y,d){this.start.row+=y,this.start.column+=d,this.end.row+=y,this.end.column+=d},f}();h.fromPoints=function(f,y){return new h(f.row,f.column,y.row,y.column)},h.comparePoints=function(f,y){return f.row-y.row||f.column-y.column},i.Range=h}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,i,p){for(var h=t("./oop"),f={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:"*"}},y={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},d=0;d<10;d++)y["Digit"+d]=48+d,y["Numpad"+d]=96+d,f.PRINTABLE_KEYS[48+d]=""+d,f.FUNCTION_KEYS[96+d]="Numpad"+d;for(var d=65;d<91;d++){var g=String.fromCharCode(d+32);y["Key"+g.toUpperCase()]=d,f.PRINTABLE_KEYS[d]=g}for(var d=1;d<13;d++)y["F"+d]=111+d,f.FUNCTION_KEYS[111+d]="F"+d;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var l in s)y[l]=y[l+"Left"]=y[l+"Right"]=s[l];i.$codeToKeyCode=y,f.PRINTABLE_KEYS[173]="-";for(var a in f.FUNCTION_KEYS){var c=f.FUNCTION_KEYS[a].toLowerCase();f[c]=parseInt(a,10)}for(var a in f.PRINTABLE_KEYS){var c=f.PRINTABLE_KEYS[a].toLowerCase();f[c]=parseInt(a,10)}h.mixin(f,f.MODIFIER_KEYS),h.mixin(f,f.PRINTABLE_KEYS),h.mixin(f,f.FUNCTION_KEYS),f.enter=f.return,f.escape=f.esc,f.del=f.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)f.KEY_MODS[u]=o.filter(function(v){return u&f.KEY_MODS[v]}).join("-")+"-"}(),f.KEY_MODS[0]="",f.KEY_MODS[-1]="input-",h.mixin(i,f),i.default=i,i.keyCodeToString=function(o){var u=f[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,i,p){var h=t("./keys"),f=t("./useragent"),y=null,d=0,g;function s(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function l(){return g==null&&s(),g}function a(E,C,k){this.elem=E,this.type=C,this.callback=k}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=i.addListener=function(E,C,k,w){E.addEventListener(C,k,l()),w&&w.$toDestroy.push(new a(E,C,k))},o=i.removeListener=function(E,C,k){E.removeEventListener(C,k,l())};i.stopEvent=function(E){return i.stopPropagation(E),i.preventDefault(E),!1},i.stopPropagation=function(E){E.stopPropagation&&E.stopPropagation()},i.preventDefault=function(E){E.preventDefault&&E.preventDefault()},i.getButton=function(E){return E.type=="dblclick"?0:E.type=="contextmenu"||f.isMac&&E.ctrlKey&&!E.altKey&&!E.shiftKey?2:E.button},i.capture=function(E,C,k){var w=E&&E.ownerDocument||document;function T(L){C&&C(L),k&&k(L),o(w,"mousemove",C),o(w,"mouseup",T),o(w,"dragstart",T)}return c(w,"mousemove",C),c(w,"mouseup",T),c(w,"dragstart",T),T},i.addMouseWheelListener=function(E,C,k){c(E,"wheel",function(w){var T=.15,L=w.deltaX||0,I=w.deltaY||0;switch(w.deltaMode){case w.DOM_DELTA_PIXEL:w.wheelX=L*T,w.wheelY=I*T;break;case w.DOM_DELTA_LINE:var A=15;w.wheelX=L*A,w.wheelY=I*A;break;case w.DOM_DELTA_PAGE:var N=150;w.wheelX=L*N,w.wheelY=I*N;break}C(w)},k)},i.addMultiMouseDownListener=function(E,C,k,w,T){var L=0,I,A,N,S={2:"dblclick",3:"tripleclick",4:"quadclick"};function _($){if(i.getButton($)!==0?L=0:$.detail>1?(L++,L>4&&(L=1)):L=1,f.isIE){var R=Math.abs($.clientX-I)>5||Math.abs($.clientY-A)>5;(!N||R)&&(L=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},C[L-1]||600),L==1&&(I=$.clientX,A=$.clientY)}if($._clicks=L,k[w]("mousedown",$),L>4)L=0;else if(L>1)return k[w](S[L],$)}Array.isArray(E)||(E=[E]),E.forEach(function($){c($,"mousedown",_,T)})};function u(E){return 0|(E.ctrlKey?1:0)|(E.altKey?2:0)|(E.shiftKey?4:0)|(E.metaKey?8:0)}i.getModifierString=function(E){return h.KEY_MODS[u(E)]};function v(E,C,k){var w=u(C);if(!k&&C.code&&(k=h.$codeToKeyCode[C.code]||k),!f.isMac&&y){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(w|=8),y.altGr)if((3&w)!=3)y.altGr=0;else return;if(k===18||k===17){var T=C.location;if(k===17&&T===1)y[k]==1&&(d=C.timeStamp);else if(k===18&&w===3&&T===2){var L=C.timeStamp-d;L<50&&(y.altGr=!0)}}}if(k in h.MODIFIER_KEYS&&(k=-1),!(!w&&k===13&&C.location===3&&(E(C,w,-k),C.defaultPrevented))){if(f.isChromeOS&&w&8){if(E(C,w,k),C.defaultPrevented)return;w&=-9}return!w&&!(k in h.FUNCTION_KEYS)&&!(k in h.PRINTABLE_KEYS)?!1:E(C,w,k)}}i.addCommandKeyListener=function(E,C,k){var w=null;c(E,"keydown",function(T){y[T.keyCode]=(y[T.keyCode]||0)+1;var L=v(C,T,T.keyCode);return w=T.defaultPrevented,L},k),c(E,"keypress",function(T){w&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(i.stopEvent(T),w=null)},k),c(E,"keyup",function(T){y[T.keyCode]=null},k),y||(b(),c(window,"focus",b))};function b(){y=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!f.isOldIE){var x=1;i.nextTick=function(E,C){C=C||window;var k="zero-timeout-message-"+x++,w=function(T){T.data==k&&(i.stopPropagation(T),o(C,"message",w),E())};c(C,"message",w),C.postMessage(k,"*")}}i.$idleBlocked=!1,i.onIdle=function(E,C){return setTimeout(function k(){i.$idleBlocked?setTimeout(k,100):E()},C)},i.$idleBlockId=null,i.blockIdle=function(E){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},E||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(E){setTimeout(E,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,i,p){var h;p.exports={lineMode:!1,pasteCancelled:function(){return h&&h>Date.now()-50?!0:h=!1},cancel:function(){h=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(t,i,p){var h=t("../lib/event"),f=t("../config").nls,y=t("../lib/useragent"),d=t("../lib/dom"),g=t("../lib/lang"),s=t("../clipboard"),l=y.isChrome<18,a=y.isIE,c=y.isChrome>63,o=400,u=t("../lib/keys"),v=u.KEY_MODS,b=y.isIOS,x=b?/\s/:/\n/,E=y.isMobile,C;C=function(k,w){var T=d.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",k.insertBefore(T,k.firstChild);var L=!1,I=!1,A=!1,N=!1,S="";E||(T.style.fontSize="1px");var _=!1,$=!1,R="",O=0,F=0,H=0,W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(w.$textInputAriaLabel&&(ce+="".concat(w.$textInputAriaLabel,", ")),w.session){var Ee=w.session.selection.cursor.row;ce+=f("text-input.aria-label","Cursor at row $0",[Ee+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",f("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),h.addListener(T,"blur",function(ce){$||(w.onBlur(ce),X=!1)},w),h.addListener(T,"focus",function(ce){if(!$){if(X=!0,y.isEdge)try{if(!document.hasFocus())return}catch{}w.onFocus(ce),y.isEdge?setTimeout(Z):Z()}},w),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:w.renderer.enableKeyboardAccessibility}),S||c||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Ee=T.getBoundingClientRect().top!=0}catch{return}var Ie=[];if(Ee)for(var Ye=T.parentElement;Ye&&Ye.nodeType==1;)Ie.push(Ye),Ye.setAttribute("ace_nocontext","true"),!Ye.parentElement&&Ye.getRootNode?Ye=Ye.getRootNode().host:Ye=Ye.parentElement;T.focus({preventScroll:!0}),Ee&&Ie.forEach(function(Qe){Qe.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return X},w.on("beforeEndOperation",function(){var ce=w.curOp,Ee=ce&&ce.command&&ce.command.name;if(Ee!="insertstring"){var Ie=Ee&&(ce.docChanged||ce.selectionChanged);A&&Ie&&(R=T.value="",nn()),Z()}}),w.on("changeSelection",this.setAriaLabel);var G=function(ce,Ee){for(var Ie=Ee,Ye=1;Ye<=ce-W&&Ye<2*q+1;Ye++)Ie+=w.session.getLine(ce-Ye).length+1;return Ie},Z=b?function(ce){if(!(!X||L&&!ce||N)){ce||(ce="");var Ee=`
|
167
|
+
ab`+ce+`cde fg
|
168
|
+
`;Ee!=T.value&&(T.value=R=Ee);var Ie=4,Ye=4+(ce.length||(w.selection.isEmpty()?0:1));(O!=Ie||F!=Ye)&&T.setSelectionRange(Ie,Ye),O=Ie,F=Ye}}:function(){if(!(A||N)&&!(!X&&!me)){A=!0;var ce=0,Ee=0,Ie="";if(w.session){var Ye=w.selection,Qe=Ye.getRange(),mt=Ye.cursor.row;mt===V+1?(W=V+1,V=W+2*q):mt===W-1?(V=W-1,W=V-2*q):(mt<W-1||mt>V+1)&&(W=mt>q?mt-q:0,V=mt>q?mt+q:2*q);for(var vt=[],ht=W;ht<=V;ht++)vt.push(w.session.getLine(ht));if(Ie=vt.join(`
|
169
|
+
`),ce=G(Qe.start.row,Qe.start.column),Ee=G(Qe.end.row,Qe.end.column),Qe.start.row<W){var dt=w.session.getLine(W-1);ce=Qe.start.row<W-1?0:ce,Ee+=dt.length+1,Ie=dt+`
|
170
|
+
`+Ie}else if(Qe.end.row>V){var ot=w.session.getLine(V+1);Ee=Qe.end.row>V+1?ot.length:Qe.end.column,Ee+=Ie.length+1,Ie=Ie+`
|
171
|
+
`+ot}else E&&mt>0&&(Ie=`
|
172
|
+
`+Ie,Ee+=1,ce+=1);Ie.length>o&&(ce<o&&Ee<o?Ie=Ie.slice(0,o):(Ie=`
|
173
|
+
`,ce==Ee?ce=Ee=0:(ce=0,Ee=1)));var Kt=Ie+`
|
174
|
+
|
175
|
+
`;Kt!=R&&(T.value=R=Kt,O=F=Kt.length)}if(me&&(O=T.selectionStart,F=T.selectionEnd),F!=Ee||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Ee),O=ce,F=Ee}catch{}A=!1}};this.resetSelection=Z,X&&w.onFocus();var ie=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=R.length&&ce.value===R&&R&&ce.selectionEnd!==F},J=function(ce){A||(L?L=!1:ie(T)?(w.selectAll(),Z()):E&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,ye=function(ce,Ee){if(me&&(me=!1),I)return Z(),ce&&w.onPaste(ce),I=!1,"";for(var Ie=T.selectionStart,Ye=T.selectionEnd,Qe=O,mt=R.length-F,vt=ce,ht=ce.length-Ie,dt=ce.length-Ye,ot=0;Qe>0&&R[ot]==ce[ot];)ot++,Qe--;for(vt=vt.slice(ot),ot=1;mt>0&&R.length-ot>O-1&&R[R.length-ot]==ce[ce.length-ot];)ot++,mt--;ht-=ot-1,dt-=ot-1;var Kt=vt.length-ot+1;if(Kt<0&&(Qe=-Kt,Kt=0),vt=vt.slice(0,Kt),!Ee&&!vt&&!ht&&!Qe&&!mt&&!dt)return"";N=!0;var Vn=!1;return y.isAndroid&&vt==". "&&(vt=" ",Vn=!0),vt&&!Qe&&!mt&&!ht&&!dt||_?w.onTextInput(vt):w.onTextInput(vt,{extendLeft:Qe,extendRight:mt,restoreStart:ht,restoreEnd:dt}),N=!1,R=ce,O=Ie,F=Ye,H=dt,Vn?`
|
176
|
+
`:vt},fe=function(ce){if(A)return Pt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return w.execCommand("undo");if(ce.inputType=="historyRedo")return w.execCommand("redo")}var Ee=T.value,Ie=ye(Ee,!0);(Ee.length>o+100||x.test(Ie)||E&&O<1&&O==F)&&Z()},Ce=function(ce,Ee,Ie){var Ye=ce.clipboardData||window.clipboardData;if(!(!Ye||l)){var Qe=a||Ie?"Text":"text/plain";try{return Ee?Ye.setData(Qe,Ee)!==!1:Ye.getData(Qe)}catch(mt){if(!Ie)return Ce(mt,Ee,!0)}}},lt=function(ce,Ee){var Ie=w.getCopyText();if(!Ie)return h.preventDefault(ce);Ce(ce,Ie)?(b&&(Z(Ie),L=Ie,setTimeout(function(){L=!1},10)),Ee?w.onCut():w.onCopy(),h.preventDefault(ce)):(L=!0,T.value=Ie,T.select(),setTimeout(function(){L=!1,Z(),Ee?w.onCut():w.onCopy()}))},Ut=function(ce){lt(ce,!0)},gt=function(ce){lt(ce,!1)},yt=function(ce){var Ee=Ce(ce);s.pasteCancelled()||(typeof Ee=="string"?(Ee&&w.onPaste(Ee,ce),y.isIE&&setTimeout(Z),h.preventDefault(ce)):(T.value="",I=!0))};h.addCommandKeyListener(T,function(ce,Ee,Ie){if(!A)return w.onCommandKey(ce,Ee,Ie)},w),h.addListener(T,"select",J,w),h.addListener(T,"input",fe,w),h.addListener(T,"cut",Ut,w),h.addListener(T,"copy",gt,w),h.addListener(T,"paste",yt,w),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&h.addListener(k,"keydown",function(ce){if(!(y.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:gt(ce);break;case 86:yt(ce);break;case 88:Ut(ce);break}},w);var fn=function(ce){if(!(A||!w.onCompositionStart||w.$readOnly)&&(A={},!_)){ce.data&&(A.useTextareaForIME=!1),setTimeout(Pt,0),w._signal("compositionStart"),w.on("mousedown",er);var Ee=w.getSelectionRange();Ee.end.row=Ee.start.row,Ee.end.column=Ee.start.column,A.markerRange=Ee,A.selectionStart=O,w.onCompositionStart(A),A.useTextareaForIME?(R=T.value="",O=0,F=0):(T.msGetInputContext&&(A.context=T.msGetInputContext()),T.getInputContext&&(A.context=T.getInputContext()))}},Pt=function(){if(!(!A||!w.onCompositionUpdate||w.$readOnly)){if(_)return er();if(A.useTextareaForIME)w.onCompositionUpdate(T.value);else{var ce=T.value;ye(ce),A.markerRange&&(A.context&&(A.markerRange.start.column=A.selectionStart=A.context.compositionStartOffset),A.markerRange.end.column=A.markerRange.start.column+F-A.selectionStart+H)}}},nn=function(ce){!w.onCompositionEnd||w.$readOnly||(A=!1,w.onCompositionEnd(),w.off("mousedown",er),ce&&fe())};function er(){$=!0,T.blur(),T.focus(),$=!1}var Tn=g.delayedCall(Pt,50).schedule.bind(null,null);function ln(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(A||(R=T.value),O=F=-1,Z()),Tn()}h.addListener(T,"compositionstart",fn,w),h.addListener(T,"compositionupdate",Pt,w),h.addListener(T,"keyup",ln,w),h.addListener(T,"keydown",Tn,w),h.addListener(T,"compositionend",nn,w),this.getElement=function(){return T},this.setCommandMode=function(ce){_=ce,T.readOnly=!1},this.setReadOnly=function(ce){_||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),w._emit("nativecontextmenu",{target:w,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Ee){S||(S=T.style.cssText),T.style.cssText=(Ee?"z-index:100000;":"")+(y.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*w.renderer.characterWidth*.5+"px;";var Ie=w.container.getBoundingClientRect(),Ye=d.computedStyle(w.container),Qe=Ie.top+(parseInt(Ye.borderTopWidth)||0),mt=Ie.left+(parseInt(Ie.borderLeftWidth)||0),vt=Ie.bottom-Qe-T.clientHeight-2,ht=function(dt){d.translate(T,dt.clientX-mt-2,Math.min(dt.clientY-Qe-2,vt))};ht(ce),ce.type=="mousedown"&&(w.renderer.$isMousePressed=!0,clearTimeout(Be),y.isWin&&h.capture(w.container,ht,We))},this.onContextMenuClose=We;var Be;function We(){clearTimeout(Be),Be=setTimeout(function(){S&&(T.style.cssText=S,S=""),w.renderer.$isMousePressed=!1,w.renderer.$keepTextAreaAtCursor&&w.renderer.$moveTextAreaToCursor()},0)}var cn=function(ce){w.textInput.onContextMenu(ce),We()};h.addListener(T,"mouseup",cn,w),h.addListener(T,"mousedown",function(ce){ce.preventDefault(),We()},w),h.addListener(w.renderer.scroller,"contextmenu",cn,w),h.addListener(T,"contextmenu",cn,w),b&&Ve(k,w,T);function Ve(ce,Ee,Ie){var Ye=null,Qe=!1;Ie.addEventListener("keydown",function(vt){Ye&&clearTimeout(Ye),Qe=!0},!0),Ie.addEventListener("keyup",function(vt){Ye=setTimeout(function(){Qe=!1},100)},!0);var mt=function(vt){if(document.activeElement===Ie&&!(Qe||A||Ee.$mouseHandler.isMousePressed)&&!L){var ht=Ie.selectionStart,dt=Ie.selectionEnd,ot=null,Kt=0;if(ht==0?ot=u.up:ht==1?ot=u.home:dt>F&&R[dt]==`
|
177
|
+
`?ot=u.end:ht<O&&R[ht-1]==" "?(ot=u.left,Kt=v.option):ht<O||ht==O&&F!=O&&ht==dt?ot=u.left:dt>F&&R.slice(0,dt).split(`
|
178
|
+
`).length>2?ot=u.down:dt>F&&R[dt-1]==" "?(ot=u.right,Kt=v.option):(dt>F||dt==F&&F!=O&&ht==dt)&&(ot=u.right),ht!==dt&&(Kt|=v.shift),ot){var Vn=Ee.onCommandKey({},Kt,ot);if(!Vn&&Ee.commands){ot=u.keyCodeToString(ot);var pr=Ee.commands.findKeyCommand(Kt,ot);pr&&Ee.execCommand(pr)}O=ht,F=dt,Z("")}}};document.addEventListener("selectionchange",mt),Ee.on("destroy",function(){document.removeEventListener("selectionchange",mt)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},i.TextInput=C,i.$setUserAgentForTests=function(k,w){E=k,b=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,i,p){var h=t("../lib/useragent"),f=0,y=550,d=function(){function l(a){a.$clickSelection=null;var c=a.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){a[u]=this[u]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return l.prototype.onMouseDown=function(a){var c=a.inSelection(),o=a.getDocumentPosition();this.mousedownEvent=a;var u=this.editor,v=a.getButton();if(v!==0){var b=u.getSelectionRange(),x=b.isEmpty();(x||v==1)&&u.selection.moveToPosition(o),v==2&&(u.textInput.onContextMenu(a.domEvent),h.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(o,a.domEvent._clicks>1),a.preventDefault()},l.prototype.startSelect=function(a,c){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(a):c||o.selection.moveToPosition(a),c||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var a,c=this.editor,o=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)a=this.$clickSelection.end;else if(u==1)a=this.$clickSelection.start;else{var v=s(this.$clickSelection,o);o=v.cursor,a=v.anchor}c.selection.setSelectionAnchor(a.row,a.column)}c.selection.selectToPosition(o),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(a){var c,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),v=o.selection[a](u.row,u.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(v.start),x=this.$clickSelection.comparePoint(v.end);if(b==-1&&x<=0)c=this.$clickSelection.end,(v.end.row!=u.row||v.end.column!=u.column)&&(u=v.start);else if(x==1&&b>=0)c=this.$clickSelection.start,(v.start.row!=u.row||v.start.column!=u.column)&&(u=v.end);else if(b==-1&&x==1)u=v.end,c=v.start;else{var E=s(this.$clickSelection,u);u=E.cursor,c=E.anchor}o.selection.setSelectionAnchor(c.row,c.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var a=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(a>f||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(a){var c=a.getDocumentPosition(),o=this.editor,u=o.session,v=u.getBracketRange(c);v?(v.isEmpty()&&(v.start.column--,v.end.column++),this.setState("select")):(v=o.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=v,this.select()},l.prototype.onTripleClick=function(a){var c=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(c.row,c.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(a){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=a.domEvent.timeStamp,v=u-o.t,b=v?a.wheelX/v:o.vx,x=v?a.wheelY/v:o.vy;v<y&&(b=(b+o.vx)/2,x=(x+o.vy)/2);var E=Math.abs(b/x),C=!1;if(E>=1&&c.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(C=!0),E<=1&&c.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(C=!0),C)o.allowed=u;else if(u-o.allowed<y){var k=Math.abs(b)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);k?(C=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=b,o.vy=x,C)return c.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},l}();d.prototype.selectEnd=d.prototype.selectByLinesEnd,d.prototype.selectAllEnd=d.prototype.selectByLinesEnd,d.prototype.selectByWordsEnd=d.prototype.selectByLinesEnd,i.DefaultHandlers=d;function g(l,a,c,o){return Math.sqrt(Math.pow(c-l,2)+Math.pow(o-a,2))}function s(l,a){if(l.start.row==l.end.row)var c=2*a.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var c=a.column-4;else var c=2*a.row-l.start.row-l.end.row;return c<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(t,i,p){i.preventParentScroll=function(h){h.stopPropagation();var f=h.currentTarget,y=f.scrollHeight>f.clientHeight;y||h.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,i,p){var h=this&&this.__extends||function(){var u=function(v,b){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(x[C]=E[C])},u(v,b)};return function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");u(v,b);function x(){this.constructor=v}v.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),f=this&&this.__values||function(u){var v=typeof Symbol=="function"&&Symbol.iterator,b=v&&u[v],x=0;if(b)return b.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&x>=u.length&&(u=void 0),{value:u&&u[x++],done:!u}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},y=t("./lib/dom");t("./lib/event");var d=t("./range").Range,g=t("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function u(v){this.isOpen=!1,this.$element=null,this.$parentNode=v}return u.prototype.$init=function(){return this.$element=y.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(v){this.getElement().textContent=v},u.prototype.setHtml=function(v){this.getElement().innerHTML=v},u.prototype.setPosition=function(v,b){this.getElement().style.left=v+"px",this.getElement().style.top=b+"px"},u.prototype.setClassName=function(v){y.addCssClass(this.getElement(),v)},u.prototype.setTheme=function(v){this.$element.className=s+" "+(v.isDark?"ace_dark ":"")+(v.cssClass||"")},u.prototype.show=function(v,b,x){v!=null&&this.setText(v),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(v){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),a=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(v){this.popups.push(v),this.updatePopups()},u.prototype.removePopup=function(v){var b=this.popups.indexOf(v);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},u.prototype.updatePopups=function(){var v,b,x,E;this.popups.sort(function(S,_){return _.priority-S.priority});var C=[];try{for(var k=f(this.popups),w=k.next();!w.done;w=k.next()){var T=w.value,L=!0;try{for(var I=(x=void 0,f(C)),A=I.next();!A.done;A=I.next()){var N=A.value;if(this.doPopupsOverlap(N,T)){L=!1;break}}}catch(S){x={error:S}}finally{try{A&&!A.done&&(E=I.return)&&E.call(I)}finally{if(x)throw x.error}}L?C.push(T):T.hide()}}catch(S){v={error:S}}finally{try{w&&!w.done&&(b=k.return)&&b.call(k)}finally{if(v)throw v.error}}},u.prototype.doPopupsOverlap=function(v,b){var x=v.getElement().getBoundingClientRect(),E=b.getElement().getBoundingClientRect();return x.left<E.right&&x.right>E.left&&x.top<E.bottom&&x.bottom>E.top},u}(),c=new a;i.popupManager=c,i.Tooltip=l;var o=function(u){h(v,u);function v(b){b===void 0&&(b=document.body);var x=u.call(this,b)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var E=x.getElement();return E.style.whiteSpace="pre-wrap",E.style.pointerEvents="auto",E.addEventListener("mouseout",x.onMouseOut),E.tabIndex=-1,E.addEventListener("blur",(function(){E.contains(document.activeElement)||this.hide()}).bind(x)),E.addEventListener("wheel",g),x}return v.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide),b.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},v.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide),b.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},v.prototype.onMouseMove=function(b,x){this.lastEvent=b,this.lastT=Date.now();var E=x.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||E||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||E||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},v.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},v.prototype.isOutsideOfText=function(b){var x=b.editor,E=b.getDocumentPosition(),C=x.session.getLine(E.row);if(E.column==C.length){var k=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),w=x.session.documentToScreenPosition(E.row,E.column);if(w.column!=k.column||w.row!=k.row)return!0}return!1},v.prototype.setDataProvider=function(b){this.$gatherData=b},v.prototype.showForRange=function(b,x,E,C){var k=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var w=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(w.theme)),this.isOpen=!0,this.addMarker(x,b.session),this.range=d.fromPoints(x.start,x.end);var T=w.textToScreenCoordinates(x.start.row,x.start.column),L=w.scroller.getBoundingClientRect();T.pageX<L.left&&(T.pageX=L.left);var I=this.getElement();I.innerHTML="",I.appendChild(E),I.style.maxHeight="",I.style.display="block";var A=I.clientHeight,N=I.clientWidth,S=window.innerHeight-T.pageY-w.lineHeight,_=!0;T.pageY-A<0&&T.pageY<S&&(_=!1),I.style.maxHeight=(_?T.pageY:S)-k+"px",I.style.top=_?"":T.pageY+w.lineHeight+"px",I.style.bottom=_?window.innerHeight-T.pageY+"px":"",I.style.left=Math.min(T.pageX,window.innerWidth-N-k)+"px"}},v.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},v.prototype.hide=function(b){!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.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,c.removePopup(this)))},v.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},v.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},v.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},v}(l);i.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(t,i,p){var h=this&&this.__extends||function(){var c=function(o,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(v[x]=b[x])},c(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(o,u);function v(){this.constructor=o}o.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}(),f=this&&this.__values||function(c){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&c[o],v=0;if(u)return u.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&v>=c.length&&(c=void 0),{value:c&&c[v++],done:!c}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},y=t("../lib/dom"),d=t("../lib/event"),g=t("../tooltip").Tooltip,s=t("../config").nls;t("../lib/lang");function l(c){var o=c.editor,u=o.renderer.$gutterLayer,v=new a(o);c.editor.setDefaultHandler("guttermousedown",function(w){if(!(!o.isFocused()||w.getButton()!=0)){var T=u.getRegion(w);if(T!="foldWidgets"){var L=w.getDocumentPosition().row,I=o.session.selection;if(w.getShiftKey())I.selectTo(L,0);else{if(w.domEvent.detail==2)return o.selectAll(),w.preventDefault();c.$clickSelection=o.selection.getLineRange(L)}return c.setState("selectByLines"),c.captureMouse(w),w.preventDefault()}}});var b,x;function E(){var w=x.getDocumentPosition().row,T=o.session.getLength();if(w==T){var L=o.renderer.pixelToScreenCoordinates(0,x.y).row,I=x.$pos;if(L>o.session.documentToScreenRow(I.row,I.column))return C()}if(v.showTooltip(w),!!v.isOpen)if(o.on("mousewheel",C),c.$tooltipFollowsMouse)k(x);else{var A=x.getGutterRow(),N=u.$lines.get(A);if(N){var S=N.element.querySelector(".ace_gutter_annotation"),_=S.getBoundingClientRect(),$=v.getElement().style;$.left=_.right+"px",$.top=_.bottom+"px"}else k(x)}}function C(){b&&(b=clearTimeout(b)),v.isOpen&&(v.hideTooltip(),o.off("mousewheel",C))}function k(w){v.setPosition(w.x,w.y)}c.editor.setDefaultHandler("guttermousemove",function(w){var T=w.domEvent.target||w.domEvent.srcElement;if(y.hasCssClass(T,"ace_fold-widget"))return C();v.isOpen&&c.$tooltipFollowsMouse&&k(w),x=w,!b&&(b=setTimeout(function(){b=null,x&&!c.isMousePressed?E():C()},50))}),d.addListener(o.renderer.$gutter,"mouseout",function(w){x=null,!(!v.isOpen||b)&&(b=setTimeout(function(){b=null,C()},50))},o),o.on("changeSession",C),o.on("input",C)}i.GutterHandler=l;var a=function(c){h(o,c);function o(u){var v=c.call(this,u.container)||this;return v.editor=u,v}return o.prototype.setPosition=function(u,v){var b=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,E=this.getWidth(),C=this.getHeight();u+=15,v+=15,u+E>b&&(u-=u+E-b),v+C>x&&(v-=20+C),g.prototype.setPosition.call(this,u,v)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(u){var v,b=this.editor.renderer.$gutterLayer,x=b.$annotations[u],E;x?E={displayText:Array.from(x.displayText),type:Array.from(x.type)}:E={displayText:[],type:[]};var C=b.session.getFoldLine(u);if(C&&b.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},w={error:1,security:2,warning:3,info:4,hint:5},T,L=u+1;L<=C.end.row;L++)if(b.$annotations[L])for(var I=0;I<b.$annotations[L].text.length;I++){var A=b.$annotations[L].type[I];k[A].push(b.$annotations[L].text[I]),(!T||w[A]<w[T])&&(T=A)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");E.displayText.push(N),E.type.push(T+"_fold")}}if(E.displayText.length===0)return this.hide();for(var S={error:[],security:[],warning:[],info:[],hint:[]},_=b.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",L=0;L<E.displayText.length;L++){var $=y.createElement("span"),R=y.createElement("span");(v=R.classList).add.apply(v,["ace_".concat(E.type[L]),_]),R.setAttribute("aria-label","".concat(o.annotationLabels[E.type[L].replace("_fold","")].singular)),R.setAttribute("role","img"),R.appendChild(y.createTextNode(" ")),$.appendChild(R),$.appendChild(y.createTextNode(E.displayText[L])),$.appendChild(y.createElement("br")),S[E.type[L].replace("_fold","")].push($)}var O=this.getElement();y.removeChildren(O),S.error.forEach(function(F){return O.appendChild(F)}),S.security.forEach(function(F){return O.appendChild(F)}),S.warning.forEach(function(F){return O.appendChild(F)}),S.info.forEach(function(F){return O.appendChild(F)}),S.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},o.annotationsToSummaryString=function(u){var v,b,x=[],E=["error","security","warning","info","hint"];try{for(var C=f(E),k=C.next();!k.done;k=C.next()){var w=k.value;if(u[w].length){var T=u[w].length===1?o.annotationLabels[w].singular:o.annotationLabels[w].plural;x.push("".concat(u[w].length," ").concat(T))}}}catch(L){v={error:L}}finally{try{k&&!k.done&&(b=C.return)&&b.call(C)}finally{if(v)throw v.error}}return x.join(", ")},o}(g);i.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,i,p){var h=t("../lib/event"),f=t("../lib/useragent"),y=function(){function d(g,s){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=s,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return d.prototype.stopPropagation=function(){h.stopPropagation(this.domEvent),this.propagationStopped=!0},d.prototype.preventDefault=function(){h.preventDefault(this.domEvent),this.defaultPrevented=!0},d.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},d.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},d.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(g,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},d.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,s=g.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},d.prototype.getButton=function(){return h.getButton(this.domEvent)},d.prototype.getShiftKey=function(){return this.domEvent.shiftKey},d.prototype.getAccelKey=function(){return f.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},d}();i.MouseEvent=y}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,i,p){var h=t("../lib/dom"),f=t("../lib/event"),y=t("../lib/useragent"),d=200,g=200,s=5;function l(c){var o=c.editor,u=h.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var v=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];v.forEach(function(G){c[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(c));var b=o.container,x,E,C,k,w,T,L=0,I,A,N,S,_;this.onDragStart=function(G){if(this.cancelDrag||!b.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}w=o.getSelectionRange();var ie=G.dataTransfer;ie.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),ie.setDragImage&&ie.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),ie.clearData(),ie.setData("Text",o.session.getTextRange()),A=!0,this.setState("drag")},this.onDragEnd=function(G){if(b.draggable=!1,A=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!I&&Z=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return E=G.clientX,C=G.clientY,x||F(),L++,G.dataTransfer.dropEffect=I=X(G),f.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return E=G.clientX,C=G.clientY,x||(F(),L++),W!==null&&(W=null),G.dataTransfer.dropEffect=I=X(G),f.preventDefault(G)},this.onDragLeave=function(G){if(L--,L<=0&&x)return H(),I=null,f.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(A)switch(I){case"move":w.contains(T.row,T.column)?w={start:T,end:T}:w=o.moveText(w,T);break;case"copy":w=o.moveText(w,T,!0);break}else{var ie=Z.getData("Text");w={start:T,end:o.session.insert(T,ie)},o.focus(),I=null}return H(),f.preventDefault(G)}},f.addListener(b,"dragstart",this.onDragStart.bind(c),o),f.addListener(b,"dragend",this.onDragEnd.bind(c),o),f.addListener(b,"dragenter",this.onDragEnter.bind(c),o),f.addListener(b,"dragover",this.onDragOver.bind(c),o),f.addListener(b,"dragleave",this.onDragLeave.bind(c),o),f.addListener(b,"drop",this.onDrop.bind(c),o);function $(G,Z){var ie=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!S||J||ae)o.moveCursorToPosition(G),S=ie,_={x:E,y:C};else{var me=a(_.x,_.y,E,C);me>s?S=null:ie-S>=g&&(o.renderer.scrollCursorIntoView(),S=null)}}function R(G,Z){var ie=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),ye={x:{left:E-me.left,right:me.right-E},y:{top:C-me.top,bottom:me.bottom-C}},fe=Math.min(ye.x.left,ye.x.right),Ce=Math.min(ye.y.top,ye.y.bottom),lt={row:G.row,column:G.column};fe/ae<=2&&(lt.column+=ye.x.left<ye.x.right?-3:2),Ce/J<=1&&(lt.row+=ye.y.top<ye.y.bottom?-1:1);var Ut=G.row!=lt.row,gt=G.column!=lt.column,yt=!Z||G.row!=Z.row;Ut||gt&&!yt?N?ie-N>=d&&o.renderer.scrollCursorIntoView(lt):N=ie:N=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(E,C),$(T,G),R(T,G)}function F(){w=o.selection.toOrientedRange(),x=o.session.addMarker(w,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),O(),k=setInterval(O,20),L=0,f.addListener(document,"mousemove",V)}function H(){clearInterval(k),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(w),o.isFocused()&&!A&&o.$resetCursorStyle(),w=null,T=null,L=0,N=null,S=null,f.removeListener(document,"mousemove",V)}var W=null;function V(){W==null&&(W=setTimeout(function(){W!=null&&x&&H()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(ie){return ie=="text/plain"||ie=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],ie=["move","copymove","linkmove","all","uninitialized"],J=y.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":ie.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,o=c.container;o.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var u=y.isWin?"default":"move";c.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(c){var o=this.editor.container;if(y.isIE&&this.state=="dragReady"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var o=this.editor,u=c.inSelection(),v=c.getButton(),b=c.domEvent.detail||1;if(b===1&&v===0&&u){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),o.getDragDelay()){if(y.isWebKit){this.cancelDrag=!0;var E=o.container;E.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function a(c,o,u,v){return Math.sqrt(Math.pow(u-c,2)+Math.pow(v-o,2))}i.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,i,p){var h=t("./mouse_event").MouseEvent,f=t("../lib/event"),y=t("../lib/dom");i.addTouchListeners=function(d,g){var s="scroll",l,a,c,o,u,v,b=0,x,E=0,C=0,k=0,w,T;function L(){var $=window.navigator&&window.navigator.clipboard,R=!1,O=function(){var W=g.getCopyText(),V=g.session.getUndoManager().hasUndo();T.replaceChild(y.buildDom(R?["span",!W&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(W){return g.commands.canExecute(W,g)},H=function(W){var V=W.target.getAttribute("action");if(V=="more"||!R)return R=!R,O();V=="paste"?$.readText().then(function(q){g.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&($?$.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(V)),T.firstChild.style.display="none",R=!1,V!="openCommandPalette"&&g.focus()};T=y.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){s="menu",W.stopPropagation(),W.preventDefault(),g.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),H(W)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function I(){if(!g.getOption("enableMobileMenu")){T&&A();return}T||L();var $=g.selection.cursor,R=g.renderer.textToScreenCoordinates($.row,$.column),O=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,H=g.container.getBoundingClientRect();T.style.top=R.pageY-H.top-3+"px",R.pageX-H.left<H.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-H.left+"px"),T.style.display="",T.firstChild.style.display="none",g.on("input",A)}function A($){T&&(T.style.display="none"),g.off("input",A)}function N(){u=null,clearTimeout(u);var $=g.selection.getRange(),R=$.contains(x.row,x.column);($.isEmpty()||!R)&&(g.selection.moveToPosition(x),g.selection.selectWord()),s="wait",I()}function S(){u=null,clearTimeout(u),g.selection.moveToPosition(x);var $=E>=2?g.selection.getLineRange(x.row):g.session.getBracketRange(x);$&&!$.isEmpty()?g.selection.setRange($):g.selection.selectWord(),s="wait"}f.addListener(d,"contextmenu",function($){if(w){var R=g.textInput.getElement();R.focus()}},g),f.addListener(d,"touchstart",function($){var R=$.touches;if(u||R.length>1){clearTimeout(u),u=null,c=-1,s="zoom";return}w=g.$mouseHandler.isMousePressed=!0;var O=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,H=$.timeStamp;o=H;var W=R[0],V=W.clientX,q=W.clientY;Math.abs(l-V)+Math.abs(a-q)>O&&(c=-1),l=$.clientX=V,a=$.clientY=q,C=k=0;var X=new h($,g);if(x=X.getDocumentPosition(),H-c<500&&R.length==1&&!b)E++,$.preventDefault(),$.button=0,S();else{E=0;var G=g.selection.cursor,Z=g.selection.isEmpty()?G:g.selection.anchor,ie=g.renderer.$cursorLayer.getPixelPosition(G,!0),J=g.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=g.renderer.scroller.getBoundingClientRect(),me=g.renderer.layerConfig.offset,ye=g.renderer.scrollLeft,fe=function(Ut,gt){return Ut=Ut/F,gt=gt/O-.75,Ut*Ut+gt*gt};if($.clientX<ae.left){s="zoom";return}var Ce=fe($.clientX-ae.left-ie.left+ye,$.clientY-ae.top-ie.top+me),lt=fe($.clientX-ae.left-J.left+ye,$.clientY-ae.top-J.top+me);Ce<3.5&<<3.5&&(s=Ce>lt?"cursor":"anchor"),lt<3.5?s="anchor":Ce<3.5?s="cursor":s="scroll",u=setTimeout(N,450)}c=H},g),f.addListener(d,"touchend",function($){w=g.$mouseHandler.isMousePressed=!1,v&&clearInterval(v),s=="zoom"?(s="",b=0):u?(g.selection.moveToPosition(x),b=0,I()):s=="scroll"?(_(),A()):I(),clearTimeout(u),u=null},g),f.addListener(d,"touchmove",function($){u&&(clearTimeout(u),u=null);var R=$.touches;if(!(R.length>1||s=="zoom")){var O=R[0],F=l-O.clientX,H=a-O.clientY;if(s=="wait")if(F*F+H*H>4)s="cursor";else return $.preventDefault();l=O.clientX,a=O.clientY,$.clientX=O.clientX,$.clientY=O.clientY;var W=$.timeStamp,V=W-o;if(o=W,s=="scroll"){var q=new h($,g);q.speed=1,q.wheelX=F,q.wheelY=H,10*Math.abs(F)<Math.abs(H)&&(F=0),10*Math.abs(H)<Math.abs(F)&&(H=0),V!=0&&(C=F/V,k=H/V),g._emit("mousewheel",q),q.propagationStopped||(C=k=0)}else{var X=new h($,g),G=X.getDocumentPosition();s=="cursor"?g.selection.moveCursorToPosition(G):s=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),$.preventDefault()}}},g);function _(){b+=60,v=setInterval(function(){b--<=0&&(clearInterval(v),v=null),Math.abs(C)<.01&&(C=0),Math.abs(k)<.01&&(k=0),b<20&&(C=.9*C),b<20&&(k=.9*k);var $=g.session.getScrollTop();g.renderer.scrollBy(10*C,10*k),$==g.session.getScrollTop()&&(b=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(t,i,p){var h=t("../lib/event"),f=t("../lib/useragent"),y=t("./default_handlers").DefaultHandlers,d=t("./default_gutter_handler").GutterHandler,g=t("./mouse_event").MouseEvent,s=t("./dragdrop_handler").DragdropHandler,l=t("./touch_handler").addTouchListeners,a=t("../config"),c=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var v=this;this.editor=u,new y(this),new d(this),new s(this);var b=function(C){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},x=u.renderer.getMouseEventTarget();h.addListener(x,"click",this.onMouseEvent.bind(this,"click"),u),h.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),h.addMultiMouseDownListener([x,u.renderer.scrollBarV&&u.renderer.scrollBarV.inner,u.renderer.scrollBarH&&u.renderer.scrollBarH.inner,u.textInput&&u.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",u),h.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),l(u.container,u);var E=u.renderer.$gutter;h.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),h.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),u),h.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),h.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),h.addListener(x,"mousedown",b,u),h.addListener(E,"mousedown",b,u),f.isIE&&u.renderer.scrollBarV&&(h.addListener(u.renderer.scrollBarV.element,"mousedown",b,u),h.addListener(u.renderer.scrollBarH.element,"mousedown",b,u)),u.on("mousemove",function(C){if(!(v.state||v.$dragDelay||!v.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(C.x,C.y),w=u.session.selection.getRange(),T=u.renderer;!w.isEmpty()&&w.insideStart(k.row,k.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,v){this.editor.session&&this.editor._emit(u,new g(v,this.editor))},o.prototype.onMouseMove=function(u,v){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(u,new g(v,this.editor))},o.prototype.onMouseWheel=function(u,v){var b=new g(v,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=v.wheelX,b.wheelY=v.wheelY,this.editor._emit(u,b)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,v){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var E=this,C=function(I){if(I){if(f.isWebKit&&!I.which&&E.releaseMouse)return E.releaseMouse();E.x=I.clientX,E.y=I.clientY,v&&v(I),E.mouseEvent=new g(I,E.editor),E.$mouseMoved=!0}},k=function(I){b.off("beforeEndOperation",T),clearInterval(L),b.session&&w(),E[E.state+"End"]&&E[E.state+"End"](I),E.state="",E.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,I&&E.onMouseEvent("mouseup",I),b.endOperation()},w=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(f.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var T=function(I){E.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};b.on("beforeEndOperation",T),b.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=C,E.releaseMouse=h.capture(this.editor.container,C,k);var L=setInterval(w,20)},o.prototype.cancelContextMenu=function(){var u=(function(v){v&&v.domEvent&&v.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),v&&v.domEvent&&h.stopEvent(v.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();c.prototype.releaseMouse=null,a.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:f.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,i,p){var h=t("../lib/dom"),f=function(){function y(d){d.on("click",function(g){var s=g.getDocumentPosition(),l=d.session,a=l.getFoldAt(s.row,s.column,1);a&&(g.getAccelKey()?l.removeFold(a):l.expandFold(a),g.stop());var c=g.domEvent&&g.domEvent.target;c&&h.hasCssClass(c,"ace_inline_button")&&h.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),d.renderer.scrollCursorIntoView())}),d.on("gutterclick",function(g){var s=d.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,a=d.session;a.foldWidgets&&a.foldWidgets[l]&&d.session.onFoldWidgetClick(l,g),d.isFocused()||d.focus(),g.stop()}}),d.on("gutterdblclick",function(g){var s=d.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,a=d.session,c=a.getParentFoldRangeData(l,!0),o=c.range||c.firstRange;if(o){l=o.start.row;var u=a.getFoldAt(l,a.getLine(l).length,1);u?a.removeFold(u):(a.addFold("...",o),d.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return y}();i.FoldHandler=f}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,i,p){var h=t("../lib/keys"),f=t("../lib/event"),y=function(){function d(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return d.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},d.prototype.setKeyboardHandler=function(g){var s=this.$handlers;if(s[s.length-1]!=g){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(g,1)}},d.prototype.addKeyboardHandler=function(g,s){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var l=this.$handlers.indexOf(g);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(g):this.$handlers.splice(s,0,g),l==-1&&g.attach&&g.attach(this.$editor)}},d.prototype.removeKeyboardHandler=function(g){var s=this.$handlers.indexOf(g);return s==-1?!1:(this.$handlers.splice(s,1),g.detach&&g.detach(this.$editor),!0)},d.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},d.prototype.getStatusText=function(){var g=this.$data,s=g.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,g)||""}).filter(Boolean).join(" ")},d.prototype.$callKeyboardHandlers=function(g,s,l,a){for(var c,o=!1,u=this.$editor.commands,v=this.$handlers.length;v--&&(c=this.$handlers[v].handleKeyboard(this.$data,g,s,l,a),!(!(!c||!c.command)&&(c.command=="null"?o=!0:o=u.exec(c.command,this.$editor,c.args,a),o&&a&&g!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&f.stopEvent(a),o))););return!o&&g==-1&&(c={command:"insertstring"},o=u.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),o},d.prototype.onCommandKey=function(g,s,l){var a=h.keyCodeToString(l);return this.$callKeyboardHandlers(s,a,l,g)},d.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},d}();i.KeyBinding=y}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,i,p){var h=0,f=0,y=!1,d=!1,g=!1,s=[[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]],l=[[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]],a=0,c=1,o=0,u=1,v=2,b=3,x=4,E=5,C=6,k=7,w=8,T=9,L=10,I=11,A=12,N=13,S=14,_=15,$=16,R=17,O=18,F=[O,O,O,O,O,O,O,O,O,C,E,C,w,E,O,O,O,O,O,O,O,O,O,O,O,O,O,O,E,E,E,C,w,x,x,I,I,I,x,x,x,x,x,L,T,L,T,T,v,v,v,v,v,v,v,v,v,v,T,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,O,O,O,O,O,O,E,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,x,I,I,I,I,x,x,x,x,o,x,x,O,x,x,I,I,v,v,x,o,x,x,x,v,o,x,x,x,x,x],H=[w,w,w,w,w,w,w,w,w,w,w,O,O,O,o,u,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,w,E,N,S,_,$,R,T,I,I,I,I,I,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,T,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,w];function W(G,Z,ie,J){var ae=h?l:s,me=null,ye=null,fe=null,Ce=0,lt=null,Ut=null,gt=-1,yt=null,fn=null,Pt=[];if(!J)for(yt=0,J=[];yt<ie;yt++)J[yt]=X(G[yt]);for(f=h,y=!1,d=!1,g=!1,fn=0;fn<ie;fn++){if(me=Ce,Pt[fn]=ye=q(G,J,Pt,fn),Ce=ae[me][ye],lt=Ce&240,Ce&=15,Z[fn]=fe=ae[Ce][5],lt>0)if(lt==16){for(yt=gt;yt<fn;yt++)Z[yt]=1;gt=-1}else gt=-1;if(Ut=ae[Ce][6],Ut)gt==-1&&(gt=fn);else if(gt>-1){for(yt=gt;yt<fn;yt++)Z[yt]=fe;gt=-1}J[fn]==E&&(Z[fn]=0),f|=fe}if(g){for(yt=0;yt<ie;yt++)if(J[yt]==C){Z[yt]=h;for(var nn=yt-1;nn>=0&&J[nn]==w;nn--)Z[nn]=h}}}function V(G,Z,ie){if(!(f<G)){if(G==1&&h==c&&!d){ie.reverse();return}for(var J=ie.length,ae=0,me,ye,fe,Ce;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(ye=ae,fe=me-1;ye<fe;ye++,fe--)Ce=ie[ye],ie[ye]=ie[fe],ie[fe]=Ce;ae=me}ae++}}}function q(G,Z,ie,J){var ae=Z[J],me,ye,fe,Ce;switch(ae){case o:case u:y=!1;case x:case b:return ae;case v:return y?b:v;case k:return y=!0,u;case w:return x;case T:return J<1||J+1>=Z.length||(me=ie[J-1])!=v&&me!=b||(ye=Z[J+1])!=v&&ye!=b?x:(y&&(ye=b),ye==me?ye:x);case L:return me=J>0?ie[J-1]:E,me==v&&J+1<Z.length&&Z[J+1]==v?v:x;case I:if(J>0&&ie[J-1]==v)return v;if(y)return x;for(Ce=J+1,fe=Z.length;Ce<fe&&Z[Ce]==I;)Ce++;return Ce<fe&&Z[Ce]==v?v:x;case A:for(fe=Z.length,Ce=J+1;Ce<fe&&Z[Ce]==A;)Ce++;if(Ce<fe){var lt=G[J],Ut=lt>=1425&<<=2303||lt==64286;if(me=Z[Ce],Ut&&(me==u||me==k))return u}return J<1||(me=Z[J-1])==E?x:ie[J-1];case E:return y=!1,d=!0,h;case C:return g=!0,x;case N:case S:case $:case R:case _:y=!1;case O:return x}}function X(G){var Z=G.charCodeAt(0),ie=Z>>8;return ie==0?Z>191?o:F[Z]:ie==5?/[\u0591-\u05f4]/.test(G)?u:o:ie==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?A:/[\u0660-\u0669\u066b-\u066c]/.test(G)?b:Z==1642?I:/[\u06f0-\u06f9]/.test(G)?v:k:ie==32&&Z<=8287?H[Z&255]:ie==254&&Z>=65136?k:x}i.L=o,i.R=u,i.EN=v,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(G,Z,ie){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),ye=[];h=ie?c:a,W(J,ye,J.length,Z);for(var fe=0;fe<ae.length;ae[fe]=fe,fe++);V(2,ye,ae),V(1,ye,ae);for(var fe=0;fe<ae.length-1;fe++)Z[fe]===b?ye[fe]=i.AN:ye[fe]===u&&(Z[fe]>k&&Z[fe]<N||Z[fe]===x||Z[fe]===O)?ye[fe]=i.ON_R:fe>0&&J[fe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[fe])&&(ye[fe-1]=ye[fe]=i.R_H,fe++);J[J.length-1]===i.DOT&&(ye[J.length-1]=i.B),J[0]===""&&(ye[0]=i.RLE);for(var fe=0;fe<ae.length;fe++)me[fe]=ye[ae[fe]];return{logicalFromVisual:ae,bidiLevels:me}},i.hasBidiCharacters=function(G,Z){for(var ie=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!ie&&(Z[J]==u||Z[J]==k||Z[J]==b)&&(ie=!0);return ie},i.getVisualFromLogicalIdx=function(G,Z){for(var ie=0;ie<Z.logicalFromVisual.length;ie++)if(Z.logicalFromVisual[ie]==G)return ie;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(t,i,p){var h=t("./lib/bidiutil"),f=t("./lib/lang"),y=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,d=function(){function g(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=h,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=y.test(s.getValue())}return g.prototype.isBidiRow=function(s,l,a){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&y.test(s.lines.join(`
|
179
|
+
`))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var s=0,l=this.session.$screenRowCache;if(l.length){var a=this.session.$getRowCacheIndex(l,this.currentRow);a>=0&&(s=this.session.$docRowCache[a])}return s},g.prototype.getSplitIndex=function(){var s=0,l=this.session.$screenRowCache;if(l.length)for(var a,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-s>0&&(a=this.session.$getRowCacheIndex(l,this.currentRow-s-1),a===c);)c=a,s++;else s=this.currentRow;return s},g.prototype.updateRowLine=function(s,l){s===void 0&&(s=this.getDocumentRow());var a=s===this.session.getLength()-1,c=a?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[s];o&&(l===void 0&&(l=this.getSplitIndex()),l>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[h.L],this.line=l<o.length?this.line.substring(o[l-1],o[l]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[l]),l==o.length&&(this.line+=this.showInvisibles?c:h.DOT))}else this.line+=this.showInvisibles?c:h.DOT;var u=this.session,v=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,E){return x===" "||u.isFullWidth(x.charCodeAt(0))?(b=x===" "?u.getScreenTabSize(E+v):2,v+=b-1,f.stringRepeat(h.DOT,b)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==h.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var s=[];h.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=h.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var l=this.characterWidth=s.$characterSize.width,a=s.$measureCharWidth("ה");this.charWidths[h.L]=this.charWidths[h.EN]=this.charWidths[h.ON_R]=l,this.charWidths[h.R]=this.charWidths[h.AN]=a,this.charWidths[h.R_H]=a*.45,this.charWidths[h.B]=this.charWidths[h.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},g.prototype.setEolChar=function(s){this.EOL=s},g.prototype.setContentWidth=function(s){this.contentWidth=s},g.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(s,l){for(var a=s.getCursorPosition(),c=s.selection.getSelectionAnchor().row;c<=a.row;c++)!l&&s.session.getLine(c).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(c,0,1):l&&s.session.getLine(c).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:c},s.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(s){s-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,a=s>l?this.session.getOverwrite()?s:s-1:l,c=h.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&s<=l&&o[c]%2!==0&&c++;for(var v=0;v<c;v++)u+=this.charWidths[o[v]];return!this.session.getOverwrite()&&s>l&&o[c]%2===0&&(u+=this.charWidths[o[c]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},g.prototype.getSelections=function(s,l){var a=this.bidiMap,c=a.bidiLevels,o,u=[],v=0,b=Math.min(s,l)-this.wrapIndent,x=Math.max(s,l)-this.wrapIndent,E=!1,C=!1,k=0;this.wrapIndent&&(v+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,T=0;T<c.length;T++)w=a.logicalFromVisual[T],o=c[T],E=w>=b&&w<x,E&&!C?k=v:!E&&C&&u.push({left:k,width:v-k}),v+=this.charWidths[o],C=E;if(E&&T===c.length&&u.push({left:k,width:v-k}),this.isRtlDir)for(var L=0;L<u.length;L++)u[L].left+=this.rtlLineOffset;return u},g.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var l=0,a=Math.max(a,0),c=0,o=0,u=this.bidiMap.bidiLevels,v=this.charWidths[u[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>c+v/2;){if(c+=v,o===u.length-1){v=0;break}v=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(a<c&&o--,l=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?l=1+(a>c?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&v===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?l=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&v!==0&&o--,l=this.bidiMap.logicalFromVisual[o]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},g}();i.BidiHandler=d}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,i,p){var h=t("./lib/oop"),f=t("./lib/lang"),y=t("./lib/event_emitter").EventEmitter,d=t("./range").Range,g=function(){function s(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var a=this;this.cursor.on("change",function(c){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(a.$desiredColumn=null)}),this.anchor.on("change",function(){a.$anchorChanged=!0,!a.$isEmpty&&!a.$silent&&a._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(l,a){this.$isEmpty=!1,this.anchor.setPosition(l,a)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var l=this.anchor,a=this.lead;return l.row>a.row||l.row==a.row&&l.column>a.column},s.prototype.getRange=function(){var l=this.anchor,a=this.lead;return this.$isEmpty?d.fromPoints(a,a):this.isBackwards()?d.fromPoints(a,l):d.fromPoints(l,a)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(l,a){var c=a?l.end:l.start,o=a?l.start:l.end;this.$setSelection(c.row,c.column,o.row,o.column)},s.prototype.$setSelection=function(l,a,c,o){if(!this.$silent){var u=this.$isEmpty,v=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,a),this.cursor.setPosition(c,o),this.$isEmpty=!d.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||v)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(l){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),l.call(this)},s.prototype.selectTo=function(l,a){this.$moveSelection(function(){this.moveCursorTo(l,a)})},s.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},s.prototype.moveTo=function(l,a){this.clearSelection(),this.moveCursorTo(l,a)},s.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(l,a){if(typeof a>"u"){var c=l||this.lead;l=c.row,a=c.column}return this.session.getWordRange(l,a)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var l=this.getCursor(),a=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(a)},s.prototype.getLineRange=function(l,a){var c=typeof l=="number"?l:this.lead.row,o,u=this.session.getFoldLine(c);return u?(c=u.start.row,o=u.end.row):o=c,a===!0?new d(c,0,o,this.session.getLine(o).length):new d(c,0,o+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(l,a,c){var o=l.column,u=l.column+a;return c<0&&(o=l.column-a,u=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(o,u).split(" ").length-1==a},s.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),a;if(a=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),a;if(a=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(a.end.row,a.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 c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var l=this.lead.row,a=this.lead.column,c=this.session.documentToScreenRow(l,a),o=this.session.screenToDocumentPosition(c,0),u=this.session.getDisplayLine(l,null,o.row,o.column),v=u.match(/^\s*/);v[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=v[0].length),this.moveCursorToPosition(o)},s.prototype.moveCursorLineEnd=function(){var l=this.lead,a=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==a.column){var c=this.session.getLine(a.row);if(a.column==c.length){var o=c.search(/\s+$/);o>0&&(a.column=o)}}this.moveCursorTo(a.row,a.column)},s.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,a=this.doc.getLine(l).length;this.moveCursorTo(l,a)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,a=this.lead.column,c=this.doc.getLine(l),o=c.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(l,a,1);if(u){this.moveCursorTo(u.end.row,u.end.column);return}if(this.session.nonTokenRe.exec(o)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=c.substring(a)),a>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,a)},s.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(l,a,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var o=this.session.getFoldStringAt(l,a,-1);o==null&&(o=this.doc.getLine(l).substring(0,a));var u=f.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(a-=this.session.nonTokenRe.lastIndex,u=u.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),a<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,a)},s.prototype.$shortWordEndIndex=function(l){var a=0,c,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(l))a=this.session.tokenRe.lastIndex;else{for(;(c=l[a])&&o.test(c);)a++;if(a<1){for(u.lastIndex=0;(c=l[a])&&!u.test(c);)if(u.lastIndex=0,a++,o.test(c))if(a>2){a--;break}else{for(;(c=l[a])&&o.test(c);)a++;if(a>2)break}}}return u.lastIndex=0,a},s.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,a=this.lead.column,c=this.doc.getLine(l),o=c.substring(a),u=this.session.getFoldAt(l,a,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(a==c.length){var v=this.doc.getLength();do l++,o=this.doc.getLine(l);while(l<v&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var b=this.$shortWordEndIndex(o);this.moveCursorTo(l,a+b)},s.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(l,a,-1))return this.moveCursorTo(c.start.row,c.start.column);var o=this.session.getLine(l).substring(0,a);if(a===0){do l--,o=this.doc.getLine(l);while(l>0&&/^\s*$/.test(o));a=o.length,/\s+$/.test(o)||(o="")}var u=f.stringReverse(o),v=this.$shortWordEndIndex(u);return this.moveCursorTo(l,a-v)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(l,a){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(a===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var u=this.session.lineWidgets[this.lead.row];l<0?l-=u.rowsAbove||0:l>0&&(l+=u.rowCount-(u.rowsAbove||0))}var v=this.session.screenToDocumentPosition(c.row+l,c.column,o);l!==0&&a===0&&v.row===this.lead.row&&(v.column,this.lead.column),this.moveCursorTo(v.row,v.column+a,a===0)},s.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},s.prototype.moveCursorTo=function(l,a,c){var o=this.session.getFoldAt(l,a,1);o&&(l=o.start.row,a=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(u.charAt(a))&&u.charAt(a-1)&&(this.lead.row==l&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(l,a),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(l,a,c){var o=this.session.screenToDocumentPosition(l,a);this.moveCursorTo(o.row,o.column,c)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(l){var a=this.getRange();return l?(l.start.column=a.start.column,l.start.row=a.start.row,l.end.column=a.end.column,l.end.row=a.end.row):l=a,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},s.prototype.getRangeOfMovements=function(l){var a=this.getCursor();try{l(this);var c=this.getCursor();return d.fromPoints(a,c)}catch{return d.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},s.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(a){var c=a.clone();return c.isBackwards=a.cursor==a.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},s.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var a=l.length;a--;){var c=d.fromPoints(l[a].start,l[a].end);l[a].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},s.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(l[a]))return!1;return!0},s}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,h.implement(g.prototype,y),i.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,i,p){var h=t("./lib/report_error").reportError,f=2e3,y=function(){function d(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var s in this.states){for(var l=this.states[s],a=[],c=0,o=this.matchMappings[s]={defaultToken:"text"},u="g",v=[],b=0;b<l.length;b++){var x=l[b];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),x.unicode&&u.indexOf("u")===-1&&(u+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var E=x.regex,C=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||C==1?x.token=x.token[0]:C-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:C-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(C>1?x.onMatch=this.$applyToken:x.onMatch=x.token),C>1&&(/\\\d/.test(x.regex)?E=x.regex.replace(/\\([0-9]+)/g,function(k,w){return"\\"+(parseInt(w,10)+c+1)}):(C=1,E=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&v.push(x)),o[c]=b,c+=C,a.push(E),x.onMatch||(x.onMatch=null)}}a.length||(o[0]=0,a.push("$")),v.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",u)}}return d.prototype.$setMaxTokenCount=function(g){f=g|0},d.prototype.$applyToken=function(g){var s=this.splitRegex.exec(g).slice(1),l=this.token.apply(this,s);if(typeof l=="string")return[{type:l,value:g}];for(var a=[],c=0,o=l.length;c<o;c++)s[c]&&(a[a.length]={type:l[c],value:s[c]});return a},d.prototype.$arrayTokens=function(g){if(!g)return[];var s=this.splitRegex.exec(g);if(!s)return"text";for(var l=[],a=this.tokenArray,c=0,o=a.length;c<o;c++)s[c+1]&&(l[l.length]={type:a[c],value:s[c+1]});return l},d.prototype.removeCapturingGroups=function(g){var s=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,a){return a?"(?:":l});return s},d.prototype.createSplitterRegexp=function(g,s){if(g.indexOf("(?=")!=-1){var l=0,a=!1,c={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,v,b,x,E){return a?a=x!="]":x?a=!0:b?(l==c.stack&&(c.end=E+1,c.stack=-1),l--):v&&(l++,v.length!=1&&(c.stack=l,c.start=E)),o}),c.end!=null&&/^\)*$/.test(g.substr(c.end))&&(g=g.substring(0,c.start)+g.substr(c.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(s||"").replace("g",""))},d.prototype.getLineTokens=function(g,s){if(s&&typeof s!="string"){var l=s.slice(0);s=l[0],s==="#tmp"&&(l.shift(),s=l.shift())}else var l=[];var a=s||"start",c=this.states[a];c||(a="start",c=this.states[a]);var o=this.matchMappings[a],u=this.regExps[a];u.lastIndex=0;for(var v,b=[],x=0,E=0,C={type:null,value:""};v=u.exec(g);){var k=o.defaultToken,w=null,T=v[0],L=u.lastIndex;if(L-T.length>x){var I=g.substring(x,L-T.length);C.type==k?C.value+=I:(C.type&&b.push(C),C={type:k,value:I})}for(var A=0;A<v.length-2;A++)if(v[A+1]!==void 0){w=c[o[A]],w.onMatch?k=w.onMatch(T,a,l,g):k=w.token,w.next&&(typeof w.next=="string"?a=w.next:a=w.next(a,l),c=this.states[a],c||(this.reportError("state doesn't exist",a),a="start",c=this.states[a]),o=this.matchMappings[a],x=L,u=this.regExps[a],u.lastIndex=L),w.consumeLineEnd&&(x=L);break}if(T){if(typeof k=="string")(!w||w.merge!==!1)&&C.type===k?C.value+=T:(C.type&&b.push(C),C={type:k,value:T});else if(k){C.type&&b.push(C),C={type:null,value:""};for(var A=0;A<k.length;A++)b.push(k[A])}}if(x==g.length)break;if(x=L,E++>f){for(E>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:g});x<g.length;)C.type&&b.push(C),C={value:g.substring(x,x+=500),type:"overflow"};a="start",l=[];break}}return C.type&&b.push(C),l.length>1&&l[0]!==a&&l.unshift("#tmp",a),{tokens:b,state:l.length?l:a}},d}();y.prototype.reportError=h,i.Tokenizer=y}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,i,p){var h=t("../lib/deep_copy").deepCopy,f;f=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,s){if(!s){for(var l in g)this.$rules[l]=g[l];return}for(var l in g){for(var a=g[l],c=0;c<a.length;c++){var o=a[c];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(s)!==0&&(o.next=s+o.next),o.nextState&&o.nextState.indexOf(s)!==0&&(o.nextState=s+o.nextState))}this.$rules[s+l]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(g,s,l,a,c){var o=typeof g=="function"?new g().getRules():g;if(a)for(var u=0;u<a.length;u++)a[u]=s+a[u];else{a=[];for(var v in o)a.push(s+v)}if(this.addRules(o,s),l)for(var b=Array.prototype[c?"push":"unshift"],u=0;u<a.length;u++)b.apply(this.$rules[a[u]],h(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var y=function(g,s){return(g!="start"||s.length)&&s.unshift(this.nextState,g),this.nextState},d=function(g,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var g=0,s=this.$rules;function l(a){var c=s[a];c.processed=!0;for(var o=0;o<c.length;o++){var u=c[o],v=null;Array.isArray(u)&&(v=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var b=u.next||u.push;if(b&&Array.isArray(b)){var x=u.stateName;x||(x=u.token,typeof x!="string"&&(x=x[0]||""),s[x]&&(x+=g++)),s[x]=b,u.next=x,l(x)}else b=="pop"&&(u.next=d);if(u.push&&(u.nextState=u.next||u.push,u.next=y,delete u.push),u.rules)for(var E in u.rules)s[E]?s[E].push&&s[E].push.apply(s[E],u.rules[E]):s[E]=u.rules[E];var C=typeof u=="string"?u:u.include;if(C&&(C==="$self"&&(C="start"),Array.isArray(C)?v=C.map(function(w){return s[w]}):v=s[C]),v){var k=[o,1].concat(v);u.noEscape&&(k=k.filter(function(w){return!w.next})),c.splice.apply(c,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(s).forEach(l,this)},this.createKeywordMapper=function(g,s,l,a){var c=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var u=g[o],v=u.split(a||"|"),b=v.length;b--;){var x=v[b];this.$keywordList.push(x),l&&(x=x.toLowerCase()),c[x]=o}},this),g=null,l?function(o){return c[o.toLowerCase()]||s}:function(o){return c[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(f.prototype),i.TextHighlightRules=f}),ace.define("ace/mode/behaviour",["require","exports","module"],function(t,i,p){var h;h=function(){this.$behaviours={}},(function(){this.add=function(f,y,d){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[f]:this.$behaviours[f]={}}this.$behaviours[f][y]=d},this.addBehaviours=function(f){for(var y in f)for(var d in f[y])this.add(y,d,f[y][d])},this.remove=function(f){this.$behaviours&&this.$behaviours[f]&&delete this.$behaviours[f]},this.inherit=function(f,y){if(typeof f=="function")var d=new f().getBehaviours(y);else var d=f.getBehaviours(y);this.addBehaviours(d)},this.getBehaviours=function(f){if(f){for(var y={},d=0;d<f.length;d++)this.$behaviours[f[d]]&&(y[f[d]]=this.$behaviours[f[d]]);return y}else return this.$behaviours}}).call(h.prototype),i.Behaviour=h}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(t,i,p){var h=t("./range").Range,f=function(){function y(d,g,s){this.$session=d,this.$row=g,this.$rowTokens=d.getTokens(g);var l=d.getTokenAt(g,s);this.$tokenIndex=l?l.index:-1}return y.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]},y.prototype.stepForward=function(){this.$tokenIndex+=1;for(var d;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,d||(d=this.$session.getLength()),this.$row>=d)return this.$row=d-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},y.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},y.prototype.getCurrentTokenRow=function(){return this.$row},y.prototype.getCurrentTokenColumn=function(){var d=this.$rowTokens,g=this.$tokenIndex,s=d[g].start;if(s!==void 0)return s;for(s=0;g>0;)g-=1,s+=d[g].value.length;return s},y.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},y.prototype.getCurrentTokenRange=function(){var d=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new h(this.$row,g,this.$row,g+d.value.length)},y}();i.TokenIterator=f}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,i,p){var h=t("../../lib/oop"),f=t("../behaviour").Behaviour,y=t("../../token_iterator").TokenIterator,d=t("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,a={},c={'"':'"',"'":"'"},o=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,a.rangeCount!=b.multiSelect.rangeCount&&(a={rangeCount:b.multiSelect.rangeCount})),a[x])return l=a[x];l=a[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(b,x,E,C){var k=b.end.row-b.start.row;return{text:E+x+C,selection:[0,b.start.column+1,k,b.end.column+(k?0:1)]}},v;v=function(b){b=b||{},this.add("braces","insertion",function(x,E,C,k,w){var T=C.getCursorPosition(),L=k.doc.getLine(T.row);if(w=="{"){o(C);var I=C.getSelectionRange(),A=k.doc.getTextRange(I),N=k.getTokenAt(T.row,T.column);if(A!==""&&A!=="{"&&C.getWrapBehavioursEnabled())return u(I,A,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var S=[/tag\-(?:open|name)/,/attribute\-name/];return S.some(function(W){return W.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(v.recordAutoInsert(C,k,"}"),{text:"{}",selection:[1,1]})}else if(v.isSaneInsertion(C,k))return/[\]\}\)]/.test(L[T.column])||C.inMultiSelectMode||b.braces?(v.recordAutoInsert(C,k,"}"),{text:"{}",selection:[1,1]}):(v.recordMaybeInsert(C,k,"{"),{text:"{",selection:[1,1]})}else if(w=="}"){o(C);var _=L.substring(T.column,T.column+1);if(_=="}"){var $=k.$findOpeningBracket("}",{column:T.column+1,row:T.row});if($!==null&&v.isAutoInsertedClosing(T,L,w))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(w==`
|
180
|
+
`||w==`\r
|
181
|
+
`){o(C);var R="";v.isMaybeInsertedClosing(T,L)&&(R=d.stringRepeat("}",l.maybeInsertedBrackets),v.clearMaybeInsertedClosing());var _=L.substring(T.column,T.column+1);if(_==="}"){var O=k.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(R)var F=this.$getIndent(L);else{v.clearMaybeInsertedClosing();return}var H=F+k.getTabString();return{text:`
|
182
|
+
`+H+`
|
183
|
+
`+F+R,selection:[1,H.length,1,H.length]}}else v.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,E,C,k,w){var T=k.doc.getTextRange(w);if(!w.isMultiLine()&&T=="{"){o(C);var L=k.doc.getLine(w.start.row),I=L.substring(w.end.column,w.end.column+1);if(I=="}")return w.end.column++,w;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,E,C,k,w){if(w=="("){o(C);var T=C.getSelectionRange(),L=k.doc.getTextRange(T);if(L!==""&&C.getWrapBehavioursEnabled())return u(T,L,"(",")");if(v.isSaneInsertion(C,k))return v.recordAutoInsert(C,k,")"),{text:"()",selection:[1,1]}}else if(w==")"){o(C);var I=C.getCursorPosition(),A=k.doc.getLine(I.row),N=A.substring(I.column,I.column+1);if(N==")"){var S=k.$findOpeningBracket(")",{column:I.column+1,row:I.row});if(S!==null&&v.isAutoInsertedClosing(I,A,w))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,E,C,k,w){var T=k.doc.getTextRange(w);if(!w.isMultiLine()&&T=="("){o(C);var L=k.doc.getLine(w.start.row),I=L.substring(w.start.column+1,w.start.column+2);if(I==")")return w.end.column++,w}}),this.add("brackets","insertion",function(x,E,C,k,w){if(w=="["){o(C);var T=C.getSelectionRange(),L=k.doc.getTextRange(T);if(L!==""&&C.getWrapBehavioursEnabled())return u(T,L,"[","]");if(v.isSaneInsertion(C,k))return v.recordAutoInsert(C,k,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){o(C);var I=C.getCursorPosition(),A=k.doc.getLine(I.row),N=A.substring(I.column,I.column+1);if(N=="]"){var S=k.$findOpeningBracket("]",{column:I.column+1,row:I.row});if(S!==null&&v.isAutoInsertedClosing(I,A,w))return v.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,E,C,k,w){var T=k.doc.getTextRange(w);if(!w.isMultiLine()&&T=="["){o(C);var L=k.doc.getLine(w.start.row),I=L.substring(w.start.column+1,w.start.column+2);if(I=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(x,E,C,k,w){var T=k.$mode.$quotes||c;if(w.length==1&&T[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;o(C);var L=w,I=C.getSelectionRange(),A=k.doc.getTextRange(I);if(A!==""&&(A.length!=1||!T[A])&&C.getWrapBehavioursEnabled())return u(I,A,L,L);if(!A){var N=C.getCursorPosition(),S=k.doc.getLine(N.row),_=S.substring(N.column-1,N.column),$=S.substring(N.column,N.column+1),R=k.getTokenAt(N.row,N.column),O=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&R&&/escape/.test(R.type))return null;var F=R&&/string|escape/.test(R.type),H=!O||/string|escape/.test(O.type),W;if($==L)W=F!==H,W&&/string\.end/.test(O.type)&&(W=!1);else{if(F&&!H||F&&H)return null;var V=k.$mode.tokenRe;V.lastIndex=0;var q=V.test(_);V.lastIndex=0;var X=V.test($),G=k.$mode.$pairQuotesAfter,Z=G&&G[L]&&G[L].test(_);if(!Z&&q||X||$&&!/[\s;,.})\]\\]/.test($))return null;var ie=S[N.column-2];if(_==L&&(ie==L||V.test(ie)))return null;W=!0}return{text:W?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,E,C,k,w){var T=k.$mode.$quotes||c,L=k.doc.getTextRange(w);if(!w.isMultiLine()&&T.hasOwnProperty(L)){o(C);var I=k.doc.getLine(w.start.row),A=I.substring(w.start.column+1,w.start.column+2);if(A==L)return w.end.column++,w}}),b.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,E,C,k,w){if(x==="doc-start"&&(w===`
|
184
|
+
`||w===`\r
|
185
|
+
`)&&C.selection.isEmpty()){var T=C.getCursorPosition();if(T.column===0)return;for(var L=k.doc.getLine(T.row),I=k.doc.getLine(T.row+1),A=k.getTokens(T.row),N=0,S=0;S<A.length;S++){N+=A[S].value.length;var _=A[S];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var $=A[S+1];if(!$||!/\.doc/.test($.type))return}}var R=T.column-(N-_.value.length),O=_.value.indexOf("*/"),F=_.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&R>F&&R<F+3||O!==-1&&F!==-1&&R>=O&&R<=F||!/\.doc/.test(_.type))return;break}}var H=this.$getIndent(L);if(/\s*\*/.test(I))return/^\s*\*/.test(L)?{text:w+H+"* ",selection:[1,2+H.length,1,2+H.length]}:{text:w+H+" * ",selection:[1,3+H.length,1,3+H.length]};if(/\/\*\*/.test(L.substring(0,T.column)))return{text:w+H+" * "+w+" "+H+"*/",selection:[1,4+H.length,1,4+H.length]}}})},v.isSaneInsertion=function(b,x){var E=b.getCursorPosition(),C=new y(x,E.row,E.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",g)){if(/[)}\]]/.test(b.session.getLine(E.row)[E.column]))return!0;var k=new y(x,E.row,E.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",g))return!1}return C.stepForward(),C.getCurrentTokenRow()!==E.row||this.$matchTokenType(C.getCurrentToken()||"text",s)},v.$matchTokenType=function(b,x){return x.indexOf(b.type||b)>-1},v.recordAutoInsert=function(b,x,E){var C=b.getCursorPosition(),k=x.doc.getLine(C.row);this.isAutoInsertedClosing(C,k,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=C.row,l.autoInsertedLineEnd=E+k.substr(C.column),l.autoInsertedBrackets++},v.recordMaybeInsert=function(b,x,E){var C=b.getCursorPosition(),k=x.doc.getLine(C.row);this.isMaybeInsertedClosing(C,k)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=C.row,l.maybeInsertedLineStart=k.substr(0,C.column)+E,l.maybeInsertedLineEnd=k.substr(C.column),l.maybeInsertedBrackets++},v.isAutoInsertedClosing=function(b,x,E){return l.autoInsertedBrackets>0&&b.row===l.autoInsertedRow&&E===l.autoInsertedLineEnd[0]&&x.substr(b.column)===l.autoInsertedLineEnd},v.isMaybeInsertedClosing=function(b,x){return l.maybeInsertedBrackets>0&&b.row===l.maybeInsertedRow&&x.substr(b.column)===l.maybeInsertedLineEnd&&x.substr(0,b.column)==l.maybeInsertedLineStart},v.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},v.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},h.inherits(v,f),i.CstyleBehaviour=v}),ace.define("ace/unicode",["require","exports","module"],function(t,i,p){for(var h=[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],f=0,y=[],d=0;d<h.length;d+=2)y.push(f+=h[d]),h[d+1]&&y.push(45,f+=h[d+1]);i.wordChars=String.fromCharCode.apply(null,y)}),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(t,i,p){var h=t("../config"),f=t("../tokenizer").Tokenizer,y=t("./text_highlight_rules").TextHighlightRules,d=t("./behaviour/cstyle").CstyleBehaviour,g=t("../unicode"),s=t("../lib/lang"),l=t("../token_iterator").TokenIterator,a=t("../range").Range,c;c=function(){this.HighlightRules=y},(function(){this.$defaultBehaviour=new d,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new f(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,v,b){var x=u.doc,E=!0,C=!0,k=1/0,w=u.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var L=this.lineCommentStart.map(s.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var L=s.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;L=new RegExp("^(\\s*)(?:"+L+") ?"),T=u.getUseSoftTabs();var A=function(W,V){var q=W.match(L);if(q){var X=q[1].length,G=q[0].length;!$(W,X,G)&&q[0][G-1]==" "&&G--,x.removeInLine(V,X,G)}},N=I+" ",S=function(W,V){(!E||/\S/.test(W))&&($(W,k,k)?x.insertInLine({row:V,column:k},N):x.insertInLine({row:V,column:k},I))},_=function(W,V){return L.test(W)},$=function(W,V,q){for(var X=0;V--&&W.charAt(V)==" ";)X++;if(X%w!=0)return!1;for(var X=0;W.charAt(q++)==" ";)X++;return w>2?X%w!=w-1:X%w==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,R=this.blockComment.end,L=new RegExp("^(\\s*)(?:"+s.escapeRegExp(I)+")"),O=new RegExp("(?:"+s.escapeRegExp(R)+")\\s*$"),S=function(Z,ie){_(Z,ie)||(!E||/\S/.test(Z))&&(x.insertInLine({row:ie,column:Z.length},R),x.insertInLine({row:ie,column:k},I))},A=function(Z,ie){var J;(J=Z.match(O))&&x.removeInLine(ie,Z.length-J[0].length,Z.length),(J=Z.match(L))&&x.removeInLine(ie,J[1].length,J[0].length)},_=function(Z,ie){if(L.test(Z))return!0;for(var J=u.getTokens(ie),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(W){for(var V=v;V<=b;V++)W(x.getLine(V),V)}var H=1/0;F(function(W,V){var q=W.search(/\S/);q!==-1?(q<k&&(k=q),C&&!_(W,V)&&(C=!1)):H>W.length&&(H=W.length)}),k==1/0&&(k=H,E=!1,C=!1),T&&k%w!=0&&(k=Math.floor(k/w)*w),F(C?A:S)},this.toggleBlockComment=function(o,u,v,b){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var E=new l(u,b.row,b.column),C=E.getCurrentToken();u.selection;var k=u.selection.toOrientedRange(),w,T;if(C&&/comment/.test(C.type)){for(var L,I;C&&/comment/.test(C.type);){var A=C.value.indexOf(x.start);if(A!=-1){var N=E.getCurrentTokenRow(),S=E.getCurrentTokenColumn()+A;L=new a(N,S,N,S+x.start.length);break}C=E.stepBackward()}for(var E=new l(u,b.row,b.column),C=E.getCurrentToken();C&&/comment/.test(C.type);){var A=C.value.indexOf(x.end);if(A!=-1){var N=E.getCurrentTokenRow(),S=E.getCurrentTokenColumn()+A;I=new a(N,S,N,S+x.end.length);break}C=E.stepForward()}I&&u.remove(I),L&&(u.remove(L),w=L.start.row,T=-x.start.length)}else T=x.start.length,w=v.start.row,u.insert(v.end,x.end),u.insert(v.start,x.start);k.start.row==w&&(k.start.column+=T),k.end.row==w&&(k.end.column+=T),u.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,u,v){return this.$getIndent(u)},this.checkOutdent=function(o,u,v){return!1},this.autoOutdent=function(o,u,v){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var v=o[u],b=v.prototype.$id,x=h.$modes[b];x||(h.$modes[b]=x=new v),h.$modes[u]||(h.$modes[u]=x),this.$embeds.push(u),this.$modes[u]=x}for(var E=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=function(T){(function(L){var I=E[T],A=L[I];L[E[T]]=function(){return this.$delegator(I,arguments,A)}})(k)},k=this,u=0;u<E.length;u++)C(u)},this.$delegator=function(o,u,v){var b=u[0]||"start";if(typeof b!="string"){if(Array.isArray(b[2])){var x=b[2][b[2].length-1],E=this.$modes[x];if(E)return E[o].apply(E,[b[1]].concat([].slice.call(u,1)))}b=b[0]||"start"}for(var C=0;C<this.$embeds.length;C++)if(this.$modes[this.$embeds[C]]){var k=b.split(this.$embeds[C]);if(!k[0]&&k[1]){u[0]=k[1];var E=this.$modes[this.$embeds[C]];return E[o].apply(E,u)}}var w=v.apply(this,u);return v?w:void 0},this.transformAction=function(o,u,v,b,x){if(this.$behaviour){var E=this.$behaviour.getBehaviours();for(var C in E)if(E[C][u]){var k=E[C][u].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,v=[];for(var b in u)for(var x=u[b],E=0,C=x.length;E<C;E++)if(typeof x[E].token=="string")/keyword|support|storage/.test(x[E].token)&&v.push(x[E].regex);else if(typeof x[E].token=="object"){for(var k=0,w=x[E].token.length;k<w;k++)if(/keyword|support|storage/.test(x[E].token[k])){var b=x[E].regex.match(/\(.+?\)/g)[k];v.push(b.substr(1,b.length-2))}}this.completionKeywords=v}return o?v.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,v,b){var x=this.$keywordList||this.$createKeywordList();return x.map(function(E){return{name:E,value:E,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),i.Mode=c}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(t,i,p){var h=t("./lib/dom"),f=function(){function y(d){this.session=d,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 y.prototype.getRowLength=function(d){var g;return this.lineWidgets?g=this.lineWidgets[d]&&this.lineWidgets[d].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[d]?1+g:this.$wrapData[d].length+1+g},y.prototype.$getWidgetScreenLength=function(){var d=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(d+=g.rowCount)}),d},y.prototype.$onChangeEditor=function(d){this.attach(d.editor)},y.prototype.attach=function(d){d&&d.widgetManager&&d.widgetManager!=this&&d.widgetManager.detach(),this.editor!=d&&(this.detach(),this.editor=d,d&&(d.widgetManager=this,d.renderer.on("beforeRender",this.measureWidgets),d.renderer.on("afterRender",this.renderWidgets)))},y.prototype.detach=function(d){var g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},y.prototype.updateOnFold=function(d,g){var s=g.lineWidgets;if(!(!s||!d.action)){for(var l=d.data,a=l.start.row,c=l.end.row,o=d.action=="add",u=a+1;u<c;u++)s[u]&&(s[u].hidden=o);s[c]&&(o?s[a]?s[c].hidden=o:s[a]=s[c]:(s[a]==s[c]&&(s[a]=void 0),s[c].hidden=o))}},y.prototype.updateOnChange=function(d){var g=this.session.lineWidgets;if(g){var s=d.start.row,l=d.end.row-s;if(l!==0)if(d.action=="remove"){var a=g.splice(s+1,l);!g[s]&&a[a.length-1]&&(g[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var c=new Array(l);g[s]&&g[s].column!=null&&d.start.column>g[s].column&&s++,c.unshift(s,0),g.splice.apply(g,c),this.$updateRows()}}},y.prototype.$updateRows=function(){var d=this.session.lineWidgets;if(d){var g=!0;d.forEach(function(s,l){if(s)for(g=!1,s.row=l;s.$oldWidget;)s.$oldWidget.row=l,s=s.$oldWidget}),g&&(this.session.lineWidgets=null)}},y.prototype.$registerLineWidget=function(d){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[d.row];return g&&(d.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._inDocument=!1)),this.session.lineWidgets[d.row]=d,d},y.prototype.addLineWidget=function(d){if(this.$registerLineWidget(d),d.session=this.session,!this.editor)return d;var g=this.editor.renderer;d.html&&!d.el&&(d.el=h.createElement("div"),d.el.innerHTML=d.html),d.text&&!d.el&&(d.el=h.createElement("div"),d.el.textContent=d.text),d.el&&(h.addCssClass(d.el,"ace_lineWidgetContainer"),d.className&&h.addCssClass(d.el,d.className),d.el.style.position="absolute",d.el.style.zIndex="5",g.container.appendChild(d.el),d._inDocument=!0,d.coverGutter||(d.el.style.zIndex="3"),d.pixelHeight==null&&(d.pixelHeight=d.el.offsetHeight)),d.rowCount==null&&(d.rowCount=d.pixelHeight/g.layerConfig.lineHeight);var s=this.session.getFoldAt(d.row,0);if(d.$fold=s,s){var l=this.session.lineWidgets;d.row==s.end.row&&!l[s.start.row]?l[s.start.row]=d:d.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows(),this.renderWidgets(null,g),this.onWidgetChanged(d),d},y.prototype.removeLineWidget=function(d){if(d._inDocument=!1,d.session=null,d.el&&d.el.parentNode&&d.el.parentNode.removeChild(d.el),d.editor&&d.editor.destroy)try{d.editor.destroy()}catch{}if(this.session.lineWidgets){var g=this.session.lineWidgets[d.row];if(g==d)this.session.lineWidgets[d.row]=d.$oldWidget,d.$oldWidget&&this.onWidgetChanged(d.$oldWidget);else for(;g;){if(g.$oldWidget==d){g.$oldWidget=d.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows()},y.prototype.getWidgetsAtRow=function(d){for(var g=this.session.lineWidgets,s=g&&g[d],l=[];s;)l.push(s),s=s.$oldWidget;return l},y.prototype.onWidgetChanged=function(d){this.session._changedWidgets.push(d),this.editor&&this.editor.renderer.updateFull()},y.prototype.measureWidgets=function(d,g){var s=this.session._changedWidgets,l=g.layerConfig;if(!(!s||!s.length)){for(var a=1/0,c=0;c<s.length;c++){var o=s[c];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,g.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/l.characterWidth));var u=o.h/l.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<a&&(a=o.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},y.prototype.renderWidgets=function(d,g){var s=g.layerConfig,l=this.session.lineWidgets;if(l){for(var a=Math.min(this.firstRow,s.firstRow),c=Math.max(this.lastRow,s.lastRow,l.length);a>0&&!l[a];)a--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,g.$cursorLayer.config=s;for(var o=a;o<=c;o++){var u=l[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,g.container.appendChild(u.el));var v=g.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(v+=s.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=v-s.offset+"px";var b=u.coverGutter?0:g.gutterWidth;u.fixedWidth||(b-=g.scrollLeft),u.el.style.left=b+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=s.width+2*s.padding+"px"),u.fixedWidth?u.el.style.right=g.scrollBar.getWidth()+"px":u.el.style.right=""}}}},y}();i.LineWidgets=f}),ace.define("ace/apply_delta",["require","exports","module"],function(t,i,p){i.applyDelta=function(h,f,y){var d=f.start.row,g=f.start.column,s=h[d]||"";switch(f.action){case"insert":var l=f.lines;if(l.length===1)h[d]=s.substring(0,g)+f.lines[0]+s.substring(g);else{var a=[d,1].concat(f.lines);h.splice.apply(h,a),h[d]=s.substring(0,g)+h[d],h[d+f.lines.length-1]+=s.substring(g)}break;case"remove":var c=f.end.column,o=f.end.row;d===o?h[d]=s.substring(0,g)+s.substring(c):h.splice(d,o-d+1,s.substring(0,g)+h[o].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,i,p){var h=t("./lib/oop"),f=t("./lib/event_emitter").EventEmitter,y=function(){function s(l,a,c){this.$onChange=this.onChange.bind(this),this.attach(l),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,c)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var a=g(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},s.prototype.setPosition=function(l,a,c){var o;if(c?o={row:l,column:a}:o=this.$clipPositionToDocument(l,a),!(this.row==o.row&&this.column==o.column)){var u={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:u,value:o})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(l,a){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):l<0?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,a))),a<0&&(c.column=0),c},s}();y.prototype.$insertRight=!1,h.implement(y.prototype,f);function d(s,l,a){var c=a?s.column<=l.column:s.column<l.column;return s.row<l.row||s.row==l.row&&c}function g(s,l,a){var c=s.action=="insert",o=(c?1:-1)*(s.end.row-s.start.row),u=(c?1:-1)*(s.end.column-s.start.column),v=s.start,b=c?v:s.end;return d(l,v,a)?{row:l.row,column:l.column}:d(b,l,!a)?{row:l.row+o,column:l.column+(l.row==b.row?u:0)}:{row:v.row,column:v.column}}i.Anchor=y}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(t,i,p){var h=t("./lib/oop"),f=t("./apply_delta").applyDelta,y=t("./lib/event_emitter").EventEmitter,d=t("./range").Range,g=t("./anchor").Anchor,s=function(){function l(a){this.$lines=[""],a.length===0?this.$lines=[""]:Array.isArray(a)?this.insertMergedLines({row:0,column:0},a):this.insert({row:0,column:0},a)}return l.prototype.setValue=function(a){var c=this.getLength()-1;this.remove(new d(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},a||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(a,c){return new g(this,a,c)},l.prototype.$detectNewLine=function(a){var c=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
|
186
|
+
`,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
187
|
+
`;case"unix":return`
|
188
|
+
`;default:return this.$autoNewLine||`
|
189
|
+
`}},l.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(a){return a==`\r
|
190
|
+
`||a=="\r"||a==`
|
191
|
+
`},l.prototype.getLine=function(a){return this.$lines[a]||""},l.prototype.getLines=function(a,c){return this.$lines.slice(a,c+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(a){var c;if(a.start.row===a.end.row)c=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{c=this.getLines(a.start.row,a.end.row),c[0]=(c[0]||"").substring(a.start.column);var o=c.length-1;a.end.row-a.start.row==o&&(c[o]=c[o].substring(0,a.end.column))}return c},l.prototype.insertLines=function(a,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,c)},l.prototype.removeLines=function(a,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,c)},l.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},l.prototype.insert=function(a,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(a,this.$split(c))},l.prototype.insertInLine=function(a,c){var o=this.clippedPos(a.row,a.column),u=this.pos(a.row,a.column+c.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[c]},!0),this.clonePos(u)},l.prototype.clippedPos=function(a,c){var o=this.getLength();a===void 0?a=o:a<0?a=0:a>=o&&(a=o-1,c=void 0);var u=this.getLine(a);return c==null&&(c=u.length),c=Math.min(Math.max(c,0),u.length),{row:a,column:c}},l.prototype.clonePos=function(a){return{row:a.row,column:a.column}},l.prototype.pos=function(a,c){return{row:a,column:c}},l.prototype.$clipPosition=function(a){var c=this.getLength();return a.row>=c?(a.row=Math.max(0,c-1),a.column=this.getLine(c-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},l.prototype.insertFullLines=function(a,c){a=Math.min(Math.max(a,0),this.getLength());var o=0;a<this.getLength()?(c=c.concat([""]),o=0):(c=[""].concat(c),a--,o=this.$lines[a].length),this.insertMergedLines({row:a,column:o},c)},l.prototype.insertMergedLines=function(a,c){var o=this.clippedPos(a.row,a.column),u={row:o.row+c.length-1,column:(c.length==1?o.column:0)+c[c.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:c}),this.clonePos(u)},l.prototype.remove=function(a){var c=this.clippedPos(a.start.row,a.start.column),o=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:c,end:o,action:"remove",lines:this.getLinesForRange({start:c,end:o})}),this.clonePos(c)},l.prototype.removeInLine=function(a,c,o){var u=this.clippedPos(a,c),v=this.clippedPos(a,o);return this.applyDelta({start:u,end:v,action:"remove",lines:this.getLinesForRange({start:u,end:v})},!0),this.clonePos(u)},l.prototype.removeFullLines=function(a,c){a=Math.min(Math.max(0,a),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var o=c==this.getLength()-1&&a>0,u=c<this.getLength()-1,v=o?a-1:a,b=o?this.getLine(v).length:0,x=u?c+1:c,E=u?0:this.getLine(x).length,C=new d(v,b,x,E),k=this.$lines.slice(a,c+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),k},l.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(a,c){if(a instanceof d||(a=d.fromPoints(a.start,a.end)),c.length===0&&a.isEmpty())return a.start;if(c==this.getTextRange(a))return a.end;this.remove(a);var o;return c?o=this.insert(a.start,c):o=a.start,o},l.prototype.applyDeltas=function(a){for(var c=0;c<a.length;c++)this.applyDelta(a[c])},l.prototype.revertDeltas=function(a){for(var c=a.length-1;c>=0;c--)this.revertDelta(a[c])},l.prototype.applyDelta=function(a,c){var o=a.action=="insert";(o?a.lines.length<=1&&!a.lines[0]:!d.comparePoints(a.start,a.end))||(o&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(f(this.$lines,a,c),this._signal("change",a)))},l.prototype.$safeApplyDelta=function(a){var c=this.$lines.length;(a.action=="remove"&&a.start.row<c&&a.end.row<c||a.action=="insert"&&a.start.row<=c)&&this.applyDelta(a)},l.prototype.$splitAndapplyLargeDelta=function(a,c){for(var o=a.lines,u=o.length-c+1,v=a.start.row,b=a.start.column,x=0,E=0;x<u;x=E){E+=c-1;var C=o.slice(x,E);C.push(""),this.applyDelta({start:this.pos(v+x,b),end:this.pos(v+E,b=0),action:a.action,lines:C},!0)}a.lines=o.slice(x),a.start.row=v+x,a.start.column=b,this.applyDelta(a,!0)},l.prototype.revertDelta=function(a){this.$safeApplyDelta({start:this.clonePos(a.start),end:this.clonePos(a.end),action:a.action=="insert"?"remove":"insert",lines:a.lines.slice()})},l.prototype.indexToPosition=function(a,c){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,v=c||0,b=o.length;v<b;v++)if(a-=o[v].length+u,a<0)return{row:v,column:a+o[v].length+u};return{row:b-1,column:a+o[b-1].length+u}},l.prototype.positionToIndex=function(a,c){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,v=0,b=Math.min(a.row,o.length),x=c||0;x<b;++x)v+=o[x].length+u;return v+a.column},l.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},l}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",h.implement(s.prototype,y),i.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,i,p){var h=t("./lib/oop"),f=t("./lib/event_emitter").EventEmitter,y=function(){function d(g,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var l=this;this.$worker=function(){if(l.running){for(var a=new Date,c=l.currentLine,o=-1,u=l.doc,v=c;l.lines[c];)c++;var b=u.getLength(),x=0;for(l.running=!1;c<b;){l.$tokenizeRow(c),o=c;do c++;while(l.lines[c]);if(x++,x%5===0&&new Date-a>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=c,o==-1&&(o=c),v<=o&&l.fireUpdateEvent(v,o)}}}return d.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},d.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},d.prototype.fireUpdateEvent=function(g,s){var l={first:g,last:s};this._signal("update",{data:l})},d.prototype.start=function(g){this.currentLine=Math.min(g||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)},d.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},d.prototype.$updateOnChange=function(g){var s=g.start.row,l=g.end.row-s;if(l===0)this.lines[s]=null;else if(g.action=="remove")this.lines.splice(s,l+1,null),this.states.splice(s,l+1,null);else{var a=Array(l+1);a.unshift(s,1),this.lines.splice.apply(this.lines,a),this.states.splice.apply(this.states,a)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},d.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},d.prototype.getTokens=function(g){return this.lines[g]||this.$tokenizeRow(g)},d.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},d.prototype.$tokenizeRow=function(g){var s=this.doc.getLine(g),l=this.states[g-1],a=this.tokenizer.getLineTokens(s,l,g);return this.states[g]+""!=a.state+""?(this.states[g]=a.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=a.tokens},d.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},d}();h.implement(y.prototype,f),i.BackgroundTokenizer=y}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(t,i,p){var h=t("./lib/lang"),f=t("./range").Range,y=function(){function d(g,s,l){l===void 0&&(l="text"),this.setRegexp(g),this.clazz=s,this.type=l}return d.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},d.prototype.update=function(g,s,l,a){if(this.regExp)for(var c=a.firstRow,o=a.lastRow,u={},v=c;v<=o;v++){var b=this.cache[v];b==null&&(b=h.getMatchOffsets(l.getLine(v),this.regExp),b.length>this.MAX_RANGES&&(b=b.slice(0,this.MAX_RANGES)),b=b.map(function(k){return new f(v,k.offset,v,k.offset+k.length)}),this.cache[v]=b.length?b:"");for(var x=b.length;x--;){var E=b[x].toScreenRange(l),C=E.toString();u[C]||(u[C]=!0,s.drawSingleLineMarker(g,E,this.clazz,a))}}},d}();y.prototype.MAX_RANGES=500,i.SearchHighlight=y}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,i,p){var h=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(w){this.$session=w},k.prototype.add=function(w,T,L){if(!this.$fromUndo&&w!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var I=this.$undoStack.length;I>this.$undoDepth-1&&this.$undoStack.splice(0,I-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),w.id=this.$rev=++this.$maxRev}(w.action=="remove"||w.action=="insert")&&(this.$lastDelta=w),this.lastDeltas.push(w)}},k.prototype.addSelection=function(w,T){this.selections.push({value:w,rev:T||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(w,T){T==null&&(T=this.$rev+1);for(var L=this.$undoStack,I=L.length;I--;){var A=L[I][0];if(A.id<=w)break;A.id<T&&(A.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(w,T){for(var L=this.selections,I=L.length;I--;){var A=L[I];if(A.rev<w)return T&&(A=L[I+1]),A}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(w,T){T==null&&(T=this.$rev+1);for(var L=this.$undoStack,I=null,A=0,N=L.length;N--;){var S=L[N][0];if(S.id<T&&!I&&(I=N+1),S.id<=w){A=N+1;break}}return L.slice(A,I)},k.prototype.getChangedRanges=function(w,T){T==null&&(T=this.$rev+1)},k.prototype.getChangedLines=function(w,T){T==null&&(T=this.$rev+1)},k.prototype.undo=function(w,T){this.lastDeltas=null;var L=this.$undoStack;if(f(L,L.length)){w||(w=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var I=L.pop(),A=null;return I&&(A=w.undoChanges(I,T),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,A}},k.prototype.redo=function(w,T){if(this.lastDeltas=null,w||(w=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var L=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,L),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var I=this.$redoStack.pop(),A=null;return I&&(A=w.redoChanges(I,T),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,A},k.prototype.$syncRev=function(){var w=this.$undoStack,T=w[w.length-1],L=T&&T[0].id||0;this.$redoStackBaseRev=L,this.$rev=L},k.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=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(w){w==null&&(w=this.$rev),this.mark=w},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(w){this.reset(),this.$undoStack=w.$undoStack,this.$redoStack=w.$redoStack},k.prototype.$prettyPrint=function(w){return w?l(w):l(this.$undoStack)+`
|
192
|
+
---
|
193
|
+
`+l(this.$redoStack)},k}();h.prototype.hasUndo=h.prototype.canUndo,h.prototype.hasRedo=h.prototype.canRedo,h.prototype.isClean=h.prototype.isAtBookmark,h.prototype.markClean=h.prototype.bookmark;function f(k,w){for(var T=w;T--;){var L=k[T];if(L&&!L[0].ignore){for(;T<w-1;){var I=o(k[T],k[T+1]);k[T]=I[0],k[T+1]=I[1],T++}return!0}}}var y=t("./range").Range,d=y.comparePoints;y.comparePoints;function g(k){return{row:k.row,column:k.column}}function s(k){return{start:g(k.start),end:g(k.end),action:k.action,lines:k.lines.slice()}}function l(k){if(k=k||this,Array.isArray(k))return k.map(l).join(`
|
194
|
+
`);var w="";return k.action?(w=k.action=="insert"?"+":"-",w+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?w=k.value.map(a).join(`
|
195
|
+
`):w=a(k.value)),k.start&&(w+=a(k)),(k.id||k.rev)&&(w+=" ("+(k.id||k.rev)+")"),w}function a(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function c(k,w){var T=k.action=="insert",L=w.action=="insert";if(T&&L)if(d(w.start,k.end)>=0)v(w,k,-1);else if(d(w.start,k.start)<=0)v(k,w,1);else return null;else if(T&&!L)if(d(w.start,k.end)>=0)v(w,k,-1);else if(d(w.end,k.start)<=0)v(k,w,-1);else return null;else if(!T&&L)if(d(w.start,k.start)>=0)v(w,k,1);else if(d(w.start,k.start)<=0)v(k,w,1);else return null;else if(!T&&!L)if(d(w.start,k.start)>=0)v(w,k,1);else if(d(w.end,k.start)<=0)v(k,w,-1);else return null;return[w,k]}function o(k,w){for(var T=k.length;T--;)for(var L=0;L<w.length;L++)if(!c(k[T],w[L])){for(;T<k.length;){for(;L--;)c(w[L],k[T]);L=w.length,T++}return[k,w]}return k.selectionBefore=w.selectionBefore=k.selectionAfter=w.selectionAfter=null,[w,k]}function u(k,w){var T=k.action=="insert",L=w.action=="insert";if(T&&L)d(k.start,w.start)<0?v(w,k,1):v(k,w,1);else if(T&&!L)d(k.start,w.end)>=0?v(k,w,-1):(d(k.start,w.start)<=0||v(k,y.fromPoints(w.start,k.start),-1),v(w,k,1));else if(!T&&L)d(w.start,k.end)>=0?v(w,k,-1):(d(w.start,k.start)<=0||v(w,y.fromPoints(k.start,w.start),-1),v(k,w,1));else if(!T&&!L)if(d(w.start,k.end)>=0)v(w,k,-1);else if(d(w.end,k.start)<=0)v(k,w,-1);else{var I,A;return d(k.start,w.start)<0&&(I=k,k=x(k,w.start)),d(k.end,w.end)>0&&(A=x(k,w.end)),b(w.end,k.start,k.end,-1),A&&!I&&(k.lines=A.lines,k.start=A.start,k.end=A.end,A=k),[w,I,A].filter(Boolean)}return[w,k]}function v(k,w,T){b(k.start,w.start,w.end,T),b(k.end,w.start,w.end,T)}function b(k,w,T,L){k.row==(L==1?w:T).row&&(k.column+=L*(T.column-w.column)),k.row+=L*(T.row-w.row)}function x(k,w){var T=k.lines,L=k.end;k.end=g(w);var I=k.end.row-k.start.row,A=T.splice(I,T.length),N=I?w.column:w.column-k.start.column;T.push(A[0].substring(0,N)),A[0]=A[0].substr(N);var S={start:g(w),end:L,lines:A,action:k.action};return S}function E(k,w){w=s(w);for(var T=k.length;T--;){for(var L=k[T],I=0;I<L.length;I++){var A=L[I],N=u(A,w);w=N[0],N.length!=2&&(N[2]?(L.splice(I+1,1,N[1],N[2]),I++):N[1]||(L.splice(I,1),I--))}L.length||k.splice(T,1)}return k}function C(k,w){for(var T=0;T<w.length;T++)for(var L=w[T],I=0;I<L.length;I++)E(k,L[I])}i.UndoManager=h}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(t,i,p){var h=t("../range").Range,f=function(){function y(d,g){this.foldData=d,Array.isArray(g)?this.folds=g:g=this.folds=[g];var s=g[g.length-1];this.range=new h(g[0].start.row,g[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return y.prototype.shiftRow=function(d){this.start.row+=d,this.end.row+=d,this.folds.forEach(function(g){g.start.row+=d,g.end.row+=d})},y.prototype.addFold=function(d){if(d.sameRow){if(d.start.row<this.startRow||d.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(d),this.folds.sort(function(g,s){return-g.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(d.start.row,d.start.column)>0?(this.end.row=d.end.row,this.end.column=d.end.column):this.range.compareStart(d.end.row,d.end.column)<0&&(this.start.row=d.start.row,this.start.column=d.start.column)}else if(d.start.row==this.end.row)this.folds.push(d),this.end.row=d.end.row,this.end.column=d.end.column;else if(d.end.row==this.start.row)this.folds.unshift(d),this.start.row=d.start.row,this.start.column=d.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");d.foldLine=this},y.prototype.containsRow=function(d){return d>=this.start.row&&d<=this.end.row},y.prototype.walk=function(d,g,s){var l=0,a=this.folds,c,o,u,v=!0;g==null&&(g=this.end.row,s=this.end.column);for(var b=0;b<a.length;b++){if(c=a[b],o=c.range.compareStart(g,s),o==-1){d(null,g,s,l,v);return}if(u=d(null,c.start.row,c.start.column,l,v),u=!u&&d(c.placeholder,c.start.row,c.start.column,l),u||o===0)return;v=!c.sameRow,l=c.end.column}d(null,g,s,l,v)},y.prototype.getNextFoldTo=function(d,g){for(var s,l,a=0;a<this.folds.length;a++){if(s=this.folds[a],l=s.range.compareEnd(d,g),l==-1)return{fold:s,kind:"after"};if(l===0)return{fold:s,kind:"inside"}}return null},y.prototype.addRemoveChars=function(d,g,s){var l=this.getNextFoldTo(d,g),a,c;if(l){if(a=l.fold,l.kind=="inside"&&a.start.column!=g&&a.start.row!=d)window.console&&window.console.log(d,g,a);else if(a.start.row==d){c=this.folds;var o=c.indexOf(a);for(o===0&&(this.start.column+=s),o;o<c.length;o++){if(a=c[o],a.start.column+=s,!a.sameRow)return;a.end.column+=s}this.end.column+=s}}},y.prototype.split=function(d,g){var s=this.getNextFoldTo(d,g);if(!s||s.kind=="inside")return null;var l=s.fold,a=this.folds,c=this.foldData,o=a.indexOf(l),u=a[o-1];this.end.row=u.end.row,this.end.column=u.end.column,a=a.splice(o,a.length-o);var v=new y(c,a);return c.splice(c.indexOf(this)+1,0,v),v},y.prototype.merge=function(d){for(var g=d.folds,s=0;s<g.length;s++)this.addFold(g[s]);var l=this.foldData;l.splice(l.indexOf(d),1)},y.prototype.toString=function(){var d=[this.range.toString()+": ["];return this.folds.forEach(function(g){d.push(" "+g.toString())}),d.push("]"),d.join(`
|
196
|
+
`)},y.prototype.idxToPosition=function(d){for(var g=0,s=0;s<this.folds.length;s++){var l=this.folds[s];if(d-=l.start.column-g,d<0)return{row:l.start.row,column:l.start.column+d};if(d-=l.placeholder.length,d<0)return l.start;g=l.end.column}return{row:this.end.row,column:this.end.column+d}},y}();i.FoldLine=f}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(t,i,p){var h=t("./range").Range,f=h.comparePoints,y=function(){function d(){this.ranges=[],this.$bias=1}return d.prototype.pointIndex=function(g,s,l){for(var a=this.ranges,c=l||0;c<a.length;c++){var o=a[c],u=f(g,o.end);if(!(u>0)){var v=f(g,o.start);return u===0?s&&v!==0?-c-2:c:v>0||v===0&&!s?c:-c-1}}return-c-1},d.prototype.add=function(g){var s=!g.isEmpty(),l=this.pointIndex(g.start,s);l<0&&(l=-l-1);var a=this.pointIndex(g.end,s,l);return a<0?a=-a-1:a++,this.ranges.splice(l,a-l,g)},d.prototype.addList=function(g){for(var s=[],l=g.length;l--;)s.push.apply(s,this.add(g[l]));return s},d.prototype.substractPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges.splice(s,1)},d.prototype.merge=function(){var g=[],s=this.ranges;s=s.sort(function(u,v){return f(u.start,v.start)});for(var l=s[0],a,c=1;c<s.length;c++){a=l,l=s[c];var o=f(a.end,l.start);o<0||o==0&&!a.isEmpty()&&!l.isEmpty()||(f(a.end,l.end)<0&&(a.end.row=l.end.row,a.end.column=l.end.column),s.splice(c,1),g.push(l),l=a,c--)}return this.ranges=s,g},d.prototype.contains=function(g,s){return this.pointIndex({row:g,column:s})>=0},d.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},d.prototype.rangeAtPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges[s]},d.prototype.clipRows=function(g,s){var l=this.ranges;if(l[0].start.row>s||l[l.length-1].start.row<g)return[];var a=this.pointIndex({row:g,column:0});a<0&&(a=-a-1);var c=this.pointIndex({row:s,column:0},a);c<0&&(c=-c-1);for(var o=[],u=a;u<c;u++)o.push(l[u]);return o},d.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},d.prototype.attach=function(g){this.session&&this.detach(),this.session=g,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},d.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},d.prototype.$onChange=function(g){for(var s=g.start,l=g.end,a=s.row,c=l.row,o=this.ranges,u=0,v=o.length;u<v;u++){var b=o[u];if(b.end.row>=a)break}if(g.action=="insert")for(var x=c-a,E=-s.column+l.column;u<v;u++){var b=o[u];if(b.start.row>a)break;if(b.start.row==a&&b.start.column>=s.column&&(b.start.column==s.column&&this.$bias<=0||(b.start.column+=E,b.start.row+=x)),b.end.row==a&&b.end.column>=s.column){if(b.end.column==s.column&&this.$bias<0)continue;b.end.column==s.column&&E>0&&u<v-1&&b.end.column>b.start.column&&b.end.column==o[u+1].start.column&&(b.end.column-=E),b.end.column+=E,b.end.row+=x}}else for(var x=a-c,E=s.column-l.column;u<v;u++){var b=o[u];if(b.start.row>c)break;b.end.row<c&&(a<b.end.row||a==b.end.row&&s.column<b.end.column)?(b.end.row=a,b.end.column=s.column):b.end.row==c?b.end.column<=l.column?(x||b.end.column>s.column)&&(b.end.column=s.column,b.end.row=s.row):(b.end.column+=E,b.end.row+=x):b.end.row>c&&(b.end.row+=x),b.start.row<c&&(a<b.start.row||a==b.start.row&&s.column<b.start.column)?(b.start.row=a,b.start.column=s.column):b.start.row==c?b.start.column<=l.column?(x||b.start.column>s.column)&&(b.start.column=s.column,b.start.row=s.row):(b.start.column+=E,b.start.row+=x):b.start.row>c&&(b.start.row+=x)}if(x!=0&&u<v)for(;u<v;u++){var b=o[u];b.start.row+=x,b.end.row+=x}},d}();y.prototype.comparePoints=f,i.RangeList=y}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(t,i,p){var h=this&&this.__extends||function(){var a=function(c,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(u[b]=v[b])},a(c,o)};return function(c,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(c,o);function u(){this.constructor=c}c.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),f=t("../range_list").RangeList,y=function(a){h(c,a);function c(o,u){var v=a.call(this)||this;return v.foldLine=null,v.placeholder=u,v.range=o,v.start=o.start,v.end=o.end,v.sameRow=o.start.row==o.end.row,v.subFolds=v.ranges=[],v}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},c.prototype.clone=function(){var o=this.range.clone(),u=new c(o,this.placeholder);return this.subFolds.forEach(function(v){u.subFolds.push(v.clone())}),u.collapseChildren=this.collapseChildren,u},c.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){g(o,this.start);for(var u=o.start.row,v=o.start.column,b=0,x=-1;b<this.subFolds.length&&(x=this.subFolds[b].range.compare(u,v),x==1);b++);var E=this.subFolds[b],C=0;if(x==0){if(E.range.containsRange(o))return E.addSubFold(o);C=1}for(var u=o.range.end.row,v=o.range.end.column,k=b,x=-1;k<this.subFolds.length&&(x=this.subFolds[k].range.compare(u,v),x==1);k++);x==0&&k++;for(var w=this.subFolds.splice(b,k-b,o),T=x==0?w.length-1:w.length,L=C;L<T;L++)o.addSubFold(w[L]);return o.setFoldLine(this.foldLine),o}},c.prototype.restoreRange=function(o){return l(o,this.start)},c}(f);function d(a,c){a.row-=c.row,a.row==0&&(a.column-=c.column)}function g(a,c){d(a.start,c),d(a.end,c)}function s(a,c){a.row==0&&(a.column+=c.column),a.row+=c.row}function l(a,c){s(a.start,c),s(a.end,c)}i.Fold=y}),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(t,i,p){var h=t("../range").Range,f=t("./fold_line").FoldLine,y=t("./fold").Fold,d=t("../token_iterator").TokenIterator,g=t("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(l,a,c){var o=this.getFoldLine(l);if(!o)return null;for(var u=o.folds,v=0;v<u.length;v++){var b=u[v].range;if(b.contains(l,a)){if(c==1&&b.isEnd(l,a)&&!b.isEmpty()||c==-1&&b.isStart(l,a)&&!b.isEmpty())continue;return u[v]}}},this.getFoldsInRange=function(l){var a=l.start,c=l.end,o=this.$foldData,u=[];a.column+=1,c.column-=1;for(var v=0;v<o.length;v++){var b=o[v].range.compareRange(l);if(b!=2){if(b==-2)break;for(var x=o[v].folds,E=0;E<x.length;E++){var C=x[E];if(b=C.range.compareRange(l),b==-2)break;if(b!=2){if(b==42)break;u.push(C)}}}}return a.column-=1,c.column+=1,u},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var a=[];l.forEach(function(o){a=a.concat(this.getFoldsInRange(o))},this)}else var a=this.getFoldsInRange(l);return a},this.getAllFolds=function(){for(var l=[],a=this.$foldData,c=0;c<a.length;c++)for(var o=0;o<a[c].folds.length;o++)l.push(a[c].folds[o]);return l},this.getFoldStringAt=function(l,a,c,o){if(o=o||this.getFoldLine(l),!o)return null;for(var u={end:{column:0}},v,b,x=0;x<o.folds.length;x++){b=o.folds[x];var E=b.range.compareEnd(l,a);if(E==-1){v=this.getLine(b.start.row).substring(u.end.column,b.start.column);break}else if(E===0)return null;u=b}return v||(v=this.getLine(b.start.row).substring(u.end.column)),c==-1?v.substring(0,a-u.end.column):c==1?v.substring(a-u.end.column):v},this.getFoldLine=function(l,a){var c=this.$foldData,o=0;for(a&&(o=c.indexOf(a)),o==-1&&(o=0),o;o<c.length;o++){var u=c[o];if(u.start.row<=l&&u.end.row>=l)return u;if(u.end.row>l)return null}return null},this.getNextFoldLine=function(l,a){var c=this.$foldData,o=0;for(a&&(o=c.indexOf(a)),o==-1&&(o=0),o;o<c.length;o++){var u=c[o];if(u.end.row>=l)return u}return null},this.getFoldedRowCount=function(l,a){for(var c=this.$foldData,o=a-l+1,u=0;u<c.length;u++){var v=c[u],b=v.end.row,x=v.start.row;if(b>=a){x<a&&(x>=l?o-=a-x:o=0);break}else b>=l&&(x>=l?o-=b-x:o-=b-l+1)}return o},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(a,c){return a.start.row-c.start.row}),l},this.addFold=function(l,a){var c=this.$foldData,o=!1,u;l instanceof y?u=l:(u=new y(a,l),u.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(u.range);var v=u.start.row,b=u.start.column,x=u.end.row,E=u.end.column,C=this.getFoldAt(v,b,1),k=this.getFoldAt(x,E,-1);if(C&&k==C)return C.addSubFold(u);C&&!C.range.isStart(v,b)&&this.removeFold(C),k&&!k.range.isEnd(x,E)&&this.removeFold(k);var w=this.getFoldsInRange(u.range);w.length>0&&(this.removeFolds(w),u.collapseChildren||w.forEach(function(A){u.addSubFold(A)}));for(var T=0;T<c.length;T++){var L=c[T];if(x==L.start.row){L.addFold(u),o=!0;break}else if(v==L.end.row){if(L.addFold(u),o=!0,!u.sameRow){var I=c[T+1];if(I&&I.start.row==x){L.merge(I);break}}break}else if(x<=L.start.row)break}return o||(L=this.$addFoldLine(new f(this.$foldData,u))),this.$useWrapMode?this.$updateWrapData(L.start.row,L.start.row):this.$updateRowLengthCache(L.start.row,L.start.row),this.$modified=!0,this._signal("changeFold",{data:u,action:"add"}),u},this.addFolds=function(l){l.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(l){var a=l.foldLine,c=a.start.row,o=a.end.row,u=this.$foldData,v=a.folds;if(v.length==1)u.splice(u.indexOf(a),1);else if(a.range.isEnd(l.end.row,l.end.column))v.pop(),a.end.row=v[v.length-1].end.row,a.end.column=v[v.length-1].end.column;else if(a.range.isStart(l.start.row,l.start.column))v.shift(),a.start.row=v[0].start.row,a.start.column=v[0].start.column;else if(l.sameRow)v.splice(v.indexOf(l),1);else{var b=a.split(l.start.row,l.start.column);v=b.folds,v.shift(),b.start.row=v[0].start.row,b.start.column=v[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(c,o):this.$updateRowLengthCache(c,o)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var a=[],c=0;c<l.length;c++)a.push(l[c]);a.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(a){l.restoreRange(a),this.addFold(a)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(l,a){var c,o;if(l==null)c=new h(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof l=="number")c=new h(l,0,l,this.getLine(l).length);else if("row"in l)c=h.fromPoints(l,l);else{if(Array.isArray(l))return o=[],l.forEach(function(v){o=o.concat(this.unfold(v))},this),o;c=l}o=this.getFoldsInRangeList(c);for(var u=o;o.length==1&&h.comparePoints(o[0].start,c.start)<0&&h.comparePoints(o[0].end,c.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(c);if(a!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},this.isRowFolded=function(l,a){return!!this.getFoldLine(l,a)},this.getRowFoldEnd=function(l,a){var c=this.getFoldLine(l,a);return c?c.end.row:l},this.getRowFoldStart=function(l,a){var c=this.getFoldLine(l,a);return c?c.start.row:l},this.getFoldDisplayLine=function(l,a,c,o,u){o==null&&(o=l.start.row),u==null&&(u=0),a==null&&(a=l.end.row),c==null&&(c=this.getLine(a).length);var v=this.doc,b="";return l.walk(function(x,E,C,k){if(!(E<o)){if(E==o){if(C<u)return;k=Math.max(u,k)}x!=null?b+=x:b+=v.getLine(E).substring(k,C)}},a,c),b},this.getDisplayLine=function(l,a,c,o){var u=this.getFoldLine(l);if(u)return this.getFoldDisplayLine(u,l,a,c,o);var v;return v=this.doc.getLine(l),v.substring(o||0,a||v.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(a){var c=a.folds.map(function(o){return o.clone()});return new f(l,c)}),l},this.toggleFold=function(l){var a=this.selection,c=a.getRange(),o,u;if(c.isEmpty()){var v=c.start;if(o=this.getFoldAt(v.row,v.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(v))?c.comparePoint(u)==1?c.end=u:(c.start=u,c.start.column++,c.end.column--):(u=this.findMatchingBracket({row:v.row,column:v.column+1}))?(c.comparePoint(u)==1?c.end=u:c.start=u,c.start.column++):c=this.getCommentFoldRange(v.row,v.column)||c}else{var b=this.getFoldsInRange(c);if(l&&b.length){this.expandFolds(b);return}else b.length==1&&(o=b[0])}if(o||(o=this.getFoldAt(c.start.row,c.start.column)),o&&o.range.toString()==c.toString()){this.expandFold(o);return}var x="...";if(!c.isMultiLine()){if(x=this.getTextRange(c),x.length<4)return;x=x.trim().substring(0,2)+".."}this.addFold(x,c)},this.getCommentFoldRange=function(l,a,c){var o=new d(this,l,a),u=o.getCurrentToken(),v=u&&u.type;if(u&&/^comment|string/.test(v)){v=v.match(/comment|string/)[0],v=="comment"&&(v+="|doc-start|\\.doc");var b=new RegExp(v),x=new h;if(c!=1){do u=o.stepBackward();while(u&&b.test(u.type));u=o.stepForward()}x.start.row=o.getCurrentTokenRow(),x.start.column=o.getCurrentTokenColumn()+u.value.length,o=new d(this,l,a);var E=this.getState(o.$row);if(c!=-1){var C=-1;do if(u=o.stepForward(),C==-1){var k=this.getState(o.$row);E.toString()!==k.toString()&&(C=o.$row)}else if(o.$row>C)break;while(u&&b.test(u.type));u=o.stepBackward()}else u=o.getCurrentToken();return x.end.row=o.getCurrentTokenRow(),x.end.column=o.getCurrentTokenColumn(),x}},this.foldAll=function(l,a,c,o){c==null&&(c=1e5);var u=this.foldWidgets;if(u){a=a||this.getLength(),l=l||0;for(var v=l;v<a;v++)if(u[v]==null&&(u[v]=this.getFoldWidget(v)),u[v]=="start"&&!(o&&!o(v))){var b=this.getFoldWidgetRange(v);b&&b.isMultiLine()&&b.end.row<=a&&b.start.row>=l&&(v=b.end.row,b.collapseChildren=c,this.addFold("...",b))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(a){for(var c=l.getTokens(a),o=0;o<c.length;o++){var u=c[o];if(!(u.type=="text"&&/^\s+$/.test(u.value)))return!!/comment/.test(u.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,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(l,a){var c=this.foldWidgets;if(!c||a&&c[l])return{};for(var o=l-1,u;o>=0;){var v=c[o];if(v==null&&(v=c[o]=this.getFoldWidget(o)),v=="start"){var b=this.getFoldWidgetRange(o);if(u||(u=b),b&&b.end.row>=l)break}o--}return{range:o!==-1&&b,firstRange:u}},this.onFoldWidgetClick=function(l,a){a instanceof g&&(a=a.domEvent);var c={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(l,c);if(!o){var u=a.target||a.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,a){if(this.getFoldWidget){var c=this.getFoldWidget(l),o=this.getLine(l),u=c==="end"?-1:1,v=this.getFoldAt(l,u===-1?0:o.length,u);if(v)return a.children||a.all?this.removeFold(v):this.expandFold(v),v;var b=this.getFoldWidgetRange(l,!0);if(b&&!b.isMultiLine()&&(v=this.getFoldAt(b.start.row,b.start.column,1),v&&b.isEqual(v.range)))return this.removeFold(v),v;if(a.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var E=x.range.start.row+1,C=x.range.end.row;this.foldAll(E,C,a.all?1e4:0)}else a.children?(C=b?b.end.row:this.getLength(),this.foldAll(l+1,C,a.all?1e4:0)):b&&(a.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(l){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var c=this.$toggleFoldWidget(a,{});if(!c){var o=this.getParentFoldRangeData(a,!0);if(c=o.range||o.firstRange,c){a=c.start.row;var u=this.getFoldAt(a,this.getLine(a).length,1);u?this.removeFold(u):this.addFold("...",c)}}},this.updateFoldWidgets=function(l){var a=l.start.row,c=l.end.row-a;if(c===0)this.foldWidgets[a]=null;else if(l.action=="remove")this.foldWidgets.splice(a,c+1,null);else{var o=Array(c+1);o.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(l){var a=l.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.first,this.foldWidgets.length)}}i.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(t,i,p){var h=t("../token_iterator").TokenIterator,f=t("../range").Range;function y(){this.findMatchingBracket=function(d,g){if(d.column==0)return null;var s=g||this.getLine(d.row).charAt(d.column-1);if(s=="")return null;var l=s.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],d):this.$findOpeningBracket(l[2],d):null},this.getBracketRange=function(d){var g=this.getLine(d.row),s=!0,l,a=g.charAt(d.column-1),c=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(c||(a=g.charAt(d.column),d={row:d.row,column:d.column+1},c=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!c)return null;if(c[1]){var o=this.$findClosingBracket(c[1],d);if(!o)return null;l=f.fromPoints(d,o),s||(l.end.column++,l.start.column--),l.cursor=l.end}else{var o=this.$findOpeningBracket(c[2],d);if(!o)return null;l=f.fromPoints(o,d),s||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(d,g){var s=this.getLine(d.row),l=/([\(\[\{])|([\)\]\}])/,a=!g&&s.charAt(d.column-1),c=a&&a.match(l);if(c||(a=(g===void 0||g)&&s.charAt(d.column),d={row:d.row,column:d.column+1},c=a&&a.match(l)),!c)return null;var o=new f(d.row,d.column-1,d.row,d.column),u=c[1]?this.$findClosingBracket(c[1],d):this.$findOpeningBracket(c[2],d);if(!u)return[o];var v=new f(u.row,u.column,u.row,u.column+1);return[o,v]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(d,g,s){var l=this.$brackets[d],a=1,c=new h(this,g.row,g.column),o=c.getCurrentToken();if(o||(o=c.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var u=g.column-c.getCurrentTokenColumn()-2,v=o.value;;){for(;u>=0;){var b=v.charAt(u);if(b==l){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:u+c.getCurrentTokenColumn()}}else b==d&&(a+=1);u-=1}do o=c.stepBackward();while(o&&!s.test(o.type));if(o==null)break;v=o.value,u=v.length-1}return null}},this.$findClosingBracket=function(d,g,s){var l=this.$brackets[d],a=1,c=new h(this,g.row,g.column),o=c.getCurrentToken();if(o||(o=c.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var u=g.column-c.getCurrentTokenColumn();;){for(var v=o.value,b=v.length;u<b;){var x=v.charAt(u);if(x==l){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:u+c.getCurrentTokenColumn()}}else x==d&&(a+=1);u+=1}do o=c.stepForward();while(o&&!s.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(d){var g=new h(this,d.row,d.column),s=this.$findTagName(g);if(s){var l=g.stepBackward();return l.value==="<"?this.$findClosingTag(g,s):this.$findOpeningTag(g,s)}},this.$findTagName=function(d){var g=d.getCurrentToken(),s=!1,l=!1;if(g&&g.type.indexOf("tag-name")===-1)do l?g=d.stepBackward():g=d.stepForward(),g&&(g.value==="/>"?l=!0:g.type.indexOf("tag-name")!==-1&&(s=!0));while(g&&!s);return g},this.$findClosingTag=function(d,g){var s,l=g.value,a=g.value,c=0,o=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);g=d.stepForward();var u=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length),v=!1;do{if(s=g,s.type.indexOf("tag-close")!==-1&&!v){var b=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);v=!0}if(g=d.stepForward(),g){if(g.value===">"&&!v){var b=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);v=!0}if(g.type.indexOf("tag-name")!==-1){if(l=g.value,a===l){if(s.value==="<")c++;else if(s.value==="</"&&(c--,c<0)){d.stepBackward();var x=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+2);g=d.stepForward();var E=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=d.stepForward()),g&&g.value===">")var C=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);else return}}}else if(a===l&&g.value==="/>"&&(c--,c<0))var x=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+2),E=x,C=E,b=new f(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(g&&c>=0);if(o&&b&&x&&C&&u&&E)return{openTag:new f(o.start.row,o.start.column,b.end.row,b.end.column),closeTag:new f(x.start.row,x.start.column,C.end.row,C.end.column),openTagName:u,closeTagName:E}},this.$findOpeningTag=function(d,g){var s=d.getCurrentToken(),l=g.value,a=0,c=d.getCurrentTokenRow(),o=d.getCurrentTokenColumn(),u=o+2,v=new f(c,o,c,u);d.stepForward();var b=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=d.stepForward()),!(!g||g.value!==">")){var x=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);d.stepBackward(),d.stepBackward();do if(g=s,c=d.getCurrentTokenRow(),o=d.getCurrentTokenColumn(),u=o+g.value.length,s=d.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(l===g.value)if(s.value==="<"){if(a++,a>0){var E=new f(c,o,c,u),C=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);do g=d.stepForward();while(g&&g.value!==">");var k=new f(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(g.value==="/>"){for(var w=0,T=s;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===l){a--;break}else if(T.value==="<")break;T=d.stepBackward(),w++}for(var L=0;L<w;L++)d.stepForward()}}while(s&&a<=0);if(C&&k&&v&&x&&E&&b)return{openTag:new f(C.start.row,C.start.column,k.end.row,k.end.column),closeTag:new f(v.start.row,v.start.column,x.end.row,x.end.column),openTagName:E,closeTagName:b}}}}i.BracketMatch=y}),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(t,i,p){var h=t("./lib/oop"),f=t("./lib/lang"),y=t("./bidihandler").BidiHandler,d=t("./config"),g=t("./lib/event_emitter").EventEmitter,s=t("./selection").Selection,l=t("./mode/text").Mode,a=t("./range").Range,c=t("./line_widgets").LineWidgets,o=t("./document").Document,u=t("./background_tokenizer").BackgroundTokenizer,v=t("./search_highlight").SearchHighlight,b=t("./undomanager").UndoManager,x=function(){function S(_,$){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"+ ++S.$uid,this.$foldData.toString=function(){return this.join(`
|
197
|
+
`)},this.bgTokenizer=new u(new l().getTokenizer(),this);var R=this;this.bgTokenizer.on("update",function(O){R._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),this.selection=new s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new y(this),d.resetOptions(this),this.setMode($),d._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return S.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=f.delayedCall(this.endOperation.bind(this,!0))},S.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},S.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection($),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",_)}},S.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},S.prototype.getDocument=function(){return this.doc},Object.defineProperty(S.prototype,"widgetManager",{get:function(){var _=new c(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),S.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,R=this.$getRowCacheIndex(this.$docRowCache,_)+1;$>R&&(this.$docRowCache.splice(R,$),this.$screenRowCache.splice(R,$))},S.prototype.$getRowCacheIndex=function(_,$){for(var R=0,O=_.length-1;R<=O;){var F=R+O>>1,H=_[F];if($>H)R=F+1;else if($<H)O=F-1;else return F}return R-1},S.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},S.prototype.onChangeFold=function(_){var $=_.data;this.$resetRowCache($.start.row)},S.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var $=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},S.prototype.onSelectionChange=function(){this._signal("changeSelection")},S.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},S.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var $=new b;$.$undoStack=_.history.undo,$.$redoStack=_.history.redo,$.mark=_.history.mark,$.$rev=_.history.rev;var R=new S(_.value);return _.folds.forEach(function(O){R.addFold("...",a.fromPoints(O.start,O.end))}),R.setAnnotations(_.annotations),R.setBreakpoints(_.breakpoints),R.setMode(_.mode),R.setScrollLeft(_.scrollLeft),R.setScrollTop(_.scrollTop),R.setUndoManager($),R.selection.fromJSON(_.selection),R},S.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},S.prototype.toString=function(){return this.doc.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.getState=function(_){return this.bgTokenizer.getState(_)},S.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},S.prototype.getTokenAt=function(_,$){var R=this.bgTokenizer.getTokens(_),O,F=0;if($==null){var H=R.length-1;F=this.getLine(_).length}else for(var H=0;H<R.length&&(F+=R[H].value.length,!(F>=$));H++);return O=R[H],O?(O.index=H,O.start=F-O.value.length,O):null},S.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var $=this;_.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=f.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},S.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},S.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},S.prototype.getTabString=function(){return this.getUseSoftTabs()?f.stringRepeat(" ",this.getTabSize()):" "},S.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},S.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},S.prototype.setTabSize=function(_){this.setOption("tabSize",_)},S.prototype.getTabSize=function(){return this.$tabSize},S.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},S.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},S.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},S.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},S.prototype.getOverwrite=function(){return this.$overwrite},S.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},S.prototype.addGutterDecoration=function(_,$){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+$,this._signal("changeBreakpoint",{})},S.prototype.removeGutterDecoration=function(_,$){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},S.prototype.getBreakpoints=function(){return this.$breakpoints},S.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var $=0;$<_.length;$++)this.$breakpoints[_[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},S.prototype.setBreakpoint=function(_,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[_]=$:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.addMarker=function(_,$,R,O){var F=this.$markerId++,H={range:_,type:R||"line",renderer:typeof R=="function"?R:null,clazz:$,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=H,this._signal("changeFrontMarker")):(this.$backMarkers[F]=H,this._signal("changeBackMarker")),F},S.prototype.addDynamicMarker=function(_,$){if(_.update){var R=this.$markerId++;return _.id=R,_.inFront=!!$,$?(this.$frontMarkers[R]=_,this._signal("changeFrontMarker")):(this.$backMarkers[R]=_,this._signal("changeBackMarker")),_}},S.prototype.removeMarker=function(_){var $=this.$frontMarkers[_]||this.$backMarkers[_];if($){var R=$.inFront?this.$frontMarkers:this.$backMarkers;delete R[_],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},S.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},S.prototype.highlight=function(_){if(!this.$searchHighlight){var $=new v(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(_)},S.prototype.highlightLines=function(_,$,R,O){typeof $!="number"&&(R=$,$=_),R||(R="ace_step");var F=new a(_,0,$,1/0);return F.id=this.addMarker(F,R,"fullLine",O),F},S.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},S.prototype.getAnnotations=function(){return this.$annotations||[]},S.prototype.clearAnnotations=function(){this.setAnnotations([])},S.prototype.$detectNewLine=function(_){var $=_.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
|
198
|
+
`},S.prototype.getWordRange=function(_,$){var R=this.getLine(_),O=!1;if($>0&&(O=!!R.charAt($-1).match(this.tokenRe)),O||(O=!!R.charAt($).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(R.slice($-1,$+1)))var F=/\s/;else var F=this.nonTokenRe;var H=$;if(H>0){do H--;while(H>=0&&R.charAt(H).match(F));H++}for(var W=$;W<R.length&&R.charAt(W).match(F);)W++;return new a(_,H,_,W)},S.prototype.getAWordRange=function(_,$){for(var R=this.getWordRange(_,$),O=this.getLine(R.end.row);O.charAt(R.end.column).match(/[ \t]/);)R.end.column+=1;return R},S.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},S.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},S.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},S.prototype.getUseWorker=function(){return this.$useWorker},S.prototype.onReloadTokenizer=function(_){var $=_.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",_)},S.prototype.setMode=function(_,$){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var R=_,O=R.path}else O=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[O]&&!R){this.$onChangeMode(this.$modes[O]),$&&$();return}this.$modeId=O,d.loadModule(["mode",O],(function(F){if(this.$modeId!==O)return $&&$();this.$modes[O]&&!R?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(R),R||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),$&&$()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},S.prototype.$onChangeMode=function(_,$){if($||(this.$modeId=_.$id),this.$mode!==_){var R=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=_.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,$||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:R,mode:_}))}},S.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},S.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){d.warn("Could not load worker",_),this.$worker=null}},S.prototype.getMode=function(){return this.$mode},S.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},S.prototype.getScrollTop=function(){return this.$scrollTop},S.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},S.prototype.getScrollLeft=function(){return this.$scrollLeft},S.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},S.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var _=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>_&&(_=$.screenWidth)}),this.lineWidgetWidth=_},S.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),R=this.$rowLengthCache,O=0,F=0,H=this.$foldData[F],W=H?H.start.row:1/0,V=$.length,q=0;q<V;q++){if(q>W){if(q=H.end.row+1,q>=V)break;H=this.$foldData[F++],W=H?H.start.row:1/0}R[q]==null&&(R[q]=this.$getStringScreenWidth($[q])[0]),R[q]>O&&(O=R[q])}this.screenWidth=O}},S.prototype.getLine=function(_){return this.doc.getLine(_)},S.prototype.getLines=function(_,$){return this.doc.getLines(_,$)},S.prototype.getLength=function(){return this.doc.getLength()},S.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},S.prototype.insert=function(_,$){return this.doc.insert(_,$)},S.prototype.remove=function(_){return this.doc.remove(_)},S.prototype.removeFullLines=function(_,$){return this.doc.removeFullLines(_,$)},S.prototype.undoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var R=_.length-1;R!=-1;R--){var O=_[R];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!$&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},S.prototype.redoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var R=0;R<_.length;R++){var O=_[R];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!$&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},S.prototype.setUndoSelect=function(_){this.$undoSelect=_},S.prototype.$getUndoSelection=function(_,$){function R(V){return $?V.action!=="insert":V.action==="insert"}for(var O,F,H=0;H<_.length;H++){var W=_[H];if(W.start){if(!O){R(W)?O=a.fromPoints(W.start,W.end):O=a.fromPoints(W.start,W.start);continue}R(W)?(F=W.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=W.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=W.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(W.start,W.start)))}}return O},S.prototype.replace=function(_,$){return this.doc.replace(_,$)},S.prototype.moveText=function(_,$,R){var O=this.getTextRange(_),F=this.getFoldsInRange(_),H=a.fromPoints($,$);if(!R){this.remove(_);var W=_.start.row-_.end.row,V=W?-_.end.column:_.start.column-_.end.column;V&&(H.start.row==_.end.row&&H.start.column>_.end.column&&(H.start.column+=V),H.end.row==_.end.row&&H.end.column>_.end.column&&(H.end.column+=V)),W&&H.start.row>=_.end.row&&(H.start.row+=W,H.end.row+=W)}if(H.end=this.insert(H.start,O),F.length){var q=_.start,X=H.start,W=X.row-q.row,V=X.column-q.column;this.addFolds(F.map(function(ie){return ie=ie.clone(),ie.start.row==q.row&&(ie.start.column+=V),ie.end.row==q.row&&(ie.end.column+=V),ie.start.row+=W,ie.end.row+=W,ie}))}return H},S.prototype.indentRows=function(_,$,R){R=R.replace(/\t/g,this.getTabString());for(var O=_;O<=$;O++)this.doc.insertInLine({row:O,column:0},R)},S.prototype.outdentRows=function(_){for(var $=_.collapseRows(),R=new a(0,0,0,0),O=this.getTabSize(),F=$.start.row;F<=$.end.row;++F){var H=this.getLine(F);R.start.row=F,R.end.row=F;for(var W=0;W<O&&H.charAt(W)==" ";++W);W<O&&H.charAt(W)==" "?(R.start.column=W,R.end.column=W+1):(R.start.column=0,R.end.column=W),this.remove(R)}},S.prototype.$moveLines=function(_,$,R){if(_=this.getRowFoldStart(_),$=this.getRowFoldEnd($),R<0){var O=this.getRowFoldStart(_+R);if(O<0)return 0;var F=O-_}else if(R>0){var O=this.getRowFoldEnd($+R);if(O>this.doc.getLength()-1)return 0;var F=O-$}else{_=this.$clipRowToDocument(_),$=this.$clipRowToDocument($);var F=$-_+1}var H=new a(_,0,$,Number.MAX_VALUE),W=this.getFoldsInRange(H).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=R==0?this.doc.getLines(_,$):this.doc.removeFullLines(_,$);return this.doc.insertFullLines(_+F,V),W.length&&this.addFolds(W),F},S.prototype.moveLinesUp=function(_,$){return this.$moveLines(_,$,-1)},S.prototype.moveLinesDown=function(_,$){return this.$moveLines(_,$,1)},S.prototype.duplicateLines=function(_,$){return this.$moveLines(_,$,0)},S.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},S.prototype.$clipColumnToRow=function(_,$){return $<0?0:Math.min(this.doc.getLine(_).length,$)},S.prototype.$clipPositionToDocument=function(_,$){if($=Math.max(0,$),_<0)_=0,$=0;else{var R=this.doc.getLength();_>=R?(_=R-1,$=this.doc.getLine(R-1).length):$=Math.min(this.doc.getLine(_).length,$)}return{row:_,column:$}},S.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var $=this.doc.getLength()-1;return _.end.row>$?(_.end.row=$,_.end.column=this.doc.getLine($).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},S.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},S.prototype.getUseWrapMode=function(){return this.$useWrapMode},S.prototype.setWrapLimitRange=function(_,$){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:_,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},S.prototype.adjustWrapLimit=function(_,$){var R=this.$wrapLimitRange;R.max<0&&(R={min:$,max:$});var O=this.$constrainWrapLimit(_,R.min,R.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},S.prototype.$constrainWrapLimit=function(_,$,R){return $&&(_=Math.max($,_)),R&&(_=Math.min(R,_)),_},S.prototype.getWrapLimit=function(){return this.$wrapLimit},S.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},S.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},S.prototype.$updateInternalDataOnChange=function(_){var $=this.$useWrapMode,R=_.action,O=_.start,F=_.end,H=O.row,W=F.row,V=W-H,q=null;if(this.$updating=!0,V!=0)if(R==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(H,V);var X=this.$foldData;q=this.getFoldsInRange(_),this.removeFolds(q);var G=this.getFoldLine(F.row),Z=0;if(G){G.addRemoveChars(F.row,F.column,O.column-F.column),G.shiftRow(-V);var ie=this.getFoldLine(H);ie&&ie!==G&&(ie.merge(G),G=ie),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-V)}W=H}else{var J=Array(V);J.unshift(H,0);var ae=$?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,J);var X=this.$foldData,G=this.getFoldLine(H),Z=0;if(G){var me=G.range.compareInside(O.row,O.column);me==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(W,0,F.column-O.column))):me==-1&&(G.addRemoveChars(H,0,F.column-O.column),G.shiftRow(V)),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=H&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),R==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(H);G&&G.addRemoveChars(H,O.column,V)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(H,W):this.$updateRowLengthCache(H,W),q},S.prototype.$updateRowLengthCache=function(_,$){this.$rowLengthCache[_]=null,this.$rowLengthCache[$]=null},S.prototype.$updateWrapData=function(_,$){var R=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,H=this.$wrapLimit,W,V,q=_;for($=Math.min($,R.length-1);q<=$;)V=this.getFoldLine(q,V),V?(W=[],V.walk((function(X,G,Z,ie){var J;if(X!=null){J=this.$getDisplayTokens(X,W.length),J[0]=k;for(var ae=1;ae<J.length;ae++)J[ae]=w}else J=this.$getDisplayTokens(R[G].substring(ie,Z),W.length);W=W.concat(J)}).bind(this),V.end.row,R[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(W,H,O),q=V.end.row+1):(W=this.$getDisplayTokens(R[q]),F[q]=this.$computeWrapSplits(W,H,O),q++)},S.prototype.$computeWrapSplits=function(_,$,R){if(_.length==0)return[];var O=[],F=_.length,H=0,W=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,X=$<=Math.max(2*R,8)||q===!1?0:Math.floor($/2);function G(){var me=0;if(X===0)return me;if(q)for(var ye=0;ye<_.length;ye++){var fe=_[ye];if(fe==L)me+=1;else if(fe==I)me+=R;else{if(fe==A)continue;break}}return V&&q!==!1&&(me+=R),Math.min(me,X)}function Z(me){for(var ye=me-H,fe=H;fe<me;fe++){var Ce=_[fe];(Ce===12||Ce===2)&&(ye-=1)}O.length||(ie=G(),O.indent=ie),W+=ye,O.push(W),H=me}for(var ie=0;F-H>$-ie;){var J=H+$-ie;if(_[J-1]>=L&&_[J]>=L){Z(J);continue}if(_[J]==k||_[J]==w){for(J;J!=H-1&&_[J]!=k;J--);if(J>H){Z(J);continue}for(J=H+$,J;J<_.length&&_[J]==w;J++);if(J==_.length)break;Z(J);continue}for(var ae=Math.max(J-($-($>>2)),H-1);J>ae&&_[J]<k;)J--;if(V){for(;J>ae&&_[J]<k;)J--;for(;J>ae&&_[J]==T;)J--}else for(;J>ae&&_[J]<L;)J--;if(J>ae){Z(++J);continue}J=H+$,_[J]==C&&J--,Z(J-ie)}return O},S.prototype.$getDisplayTokens=function(_,$){var R=[],O;$=$||0;for(var F=0;F<_.length;F++){var H=_.charCodeAt(F);if(H==9){O=this.getScreenTabSize(R.length+$),R.push(I);for(var W=1;W<O;W++)R.push(A)}else H==32?R.push(L):H>39&&H<48||H>57&&H<64?R.push(T):H>=4352&&N(H)?R.push(E,C):R.push(E)}return R},S.prototype.$getStringScreenWidth=function(_,$,R){if($==0)return[0,0];$==null&&($=1/0),R=R||0;var O,F;for(F=0;F<_.length&&(O=_.charCodeAt(F),O==9?R+=this.getScreenTabSize(R):O>=4352&&N(O)?R+=2:R+=1,!(R>$));F++);return[R,F]},S.prototype.getRowLength=function(_){var $=1;return this.lineWidgets&&($+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?$:this.$wrapData[_].length+$},S.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},S.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE),R=this.$wrapData[$.row];return R.length&&R[0]<$.column?R.indent:0}else return 0},S.prototype.getScreenLastRowColumn=function(_){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},S.prototype.getDocumentLastRowColumn=function(_,$){var R=this.documentToScreenRow(_,$);return this.getScreenLastRowColumn(R)},S.prototype.getDocumentLastRowColumnPosition=function(_,$){var R=this.documentToScreenRow(_,$);return this.screenToDocumentPosition(R,Number.MAX_VALUE/10)},S.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},S.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},S.prototype.screenToDocumentRow=function(_,$){return this.screenToDocumentPosition(_,$).row},S.prototype.screenToDocumentColumn=function(_,$){return this.screenToDocumentPosition(_,$).column},S.prototype.screenToDocumentPosition=function(_,$,R){if(_<0)return{row:0,column:0};var O,Z=0,F=0,H,G=0,W=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,_),X=V.length;if(X&&q>=0)var G=V[q],Z=this.$docRowCache[q],ie=_>V[X-1];else var ie=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),me=ae?ae.start.row:1/0;G<=_&&(W=this.getRowLength(Z),!(G+W>_||Z>=J));)G+=W,Z++,Z>me&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),me=ae?ae.start.row:1/0),ie&&(this.$docRowCache.push(Z),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Z)O=this.getFoldDisplayLine(ae),Z=ae.start.row;else{if(G+W<=_||Z>J)return{row:J,column:this.getLine(J).length};O=this.getLine(Z),ae=null}var ye=0,fe=Math.floor(_-G);if(this.$useWrapMode){var Ce=this.$wrapData[Z];Ce&&(H=Ce[fe],fe>0&&Ce.length&&(ye=Ce.indent,F=Ce[fe-1]||Ce[Ce.length-1],O=O.substring(F)))}return R!==void 0&&this.$bidiHandler.isBidiRow(G+fe,Z,fe)&&($=this.$bidiHandler.offsetToCol(R)),F+=this.$getStringScreenWidth(O,$-ye)[1],this.$useWrapMode&&F>=H&&(F=H-1),ae?ae.idxToPosition(F):{row:Z,column:F}},S.prototype.documentToScreenPosition=function(_,$){if(typeof $>"u")var R=this.$clipPositionToDocument(_.row,_.column);else R=this.$clipPositionToDocument(_,$);_=R.row,$=R.column;var G=0,O=null,F=null;F=this.getFoldAt(_,$,1),F&&(_=F.start.row,$=F.start.column);var H,X=0,W=this.$docRowCache,V=this.$getRowCacheIndex(W,_),q=W.length;if(q&&V>=0)var X=W[V],G=this.$screenRowCache[V],Z=_>W[q-1];else var Z=!q;for(var ie=this.getNextFoldLine(X),J=ie?ie.start.row:1/0;X<_;){if(X>=J){if(H=ie.end.row+1,H>_)break;ie=this.getNextFoldLine(H,ie),J=ie?ie.start.row:1/0}else H=X+1;G+=this.getRowLength(X),X=H,Z&&(this.$docRowCache.push(X),this.$screenRowCache.push(G))}var ae="";ie&&X>=J?(ae=this.getFoldDisplayLine(ie,_,$),O=ie.start.row):(ae=this.getLine(_).substring(0,$),O=_);var me=0;if(this.$useWrapMode){var ye=this.$wrapData[O];if(ye){for(var fe=0;ae.length>=ye[fe];)G++,fe++;ae=ae.substring(ye[fe-1]||0,ae.length),me=fe>0?ye.indent:0}}return this.lineWidgets&&this.lineWidgets[X]&&this.lineWidgets[X].rowsAbove&&(G+=this.lineWidgets[X].rowsAbove),{row:G,column:me+this.$getStringScreenWidth(ae)[0]}},S.prototype.documentToScreenColumn=function(_,$){return this.documentToScreenPosition(_,$).column},S.prototype.documentToScreenRow=function(_,$){return this.documentToScreenPosition(_,$).row},S.prototype.getScreenLength=function(){var _=0,$=null;if(this.$useWrapMode)for(var R=this.$wrapData.length,O=0,F=0,$=this.$foldData[F++],H=$?$.start.row:1/0;O<R;){var W=this.$wrapData[O];_+=W?W.length+1:1,O++,O>H&&(O=$.end.row+1,$=this.$foldData[F++],H=$?$.start.row:1/0)}else{_=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)$=V[F],_-=$.end.row-$.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},S.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function($,R,O){if(R===0)return[0,0];R||(R=1/0),O=O||0;var F,H;for(H=0;H<$.length&&(F=$.charAt(H),F===" "?O+=this.getScreenTabSize(O):O+=_.getCharacterWidth(F),!(O>R));H++);return[O,H]})},S.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(_.row);return $[_.column-1]},S.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()},S}();x.$uid=0,x.prototype.$modes=d.$modes,x.prototype.getValue=x.prototype.toString,x.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},x.prototype.$overwrite=!1,x.prototype.$mode=null,x.prototype.$modeId=null,x.prototype.$scrollTop=0,x.prototype.$scrollLeft=0,x.prototype.$wrapLimit=80,x.prototype.$useWrapMode=!1,x.prototype.$wrapLimitRange={min:null,max:null},x.prototype.lineWidgets=null,x.prototype.isFullWidth=N,h.implement(x.prototype,g);var E=1,C=2,k=3,w=4,T=9,L=10,I=11,A=12;function N(S){return S<4352?!1:S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510}t("./edit_session/folding").Folding.call(x.prototype),t("./edit_session/bracket_match").BracketMatch.call(x.prototype),d.defineOptions(x.prototype,"session",{wrap:{set:function(S){if(!S||S=="off"?S=!1:S=="free"?S=!0:S=="printMargin"?S=-1:typeof S=="string"&&(S=parseInt(S,10)||!1),this.$wrap!=S)if(this.$wrap=S,!S)this.setUseWrapMode(!1);else{var _=typeof S=="number"?S:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(S){S=S=="auto"?this.$mode.type!="text":S!="text",S!=this.$wrapAsCode&&(this.$wrapAsCode=S,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(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){S=parseInt(S),S>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,i,p){var h=t("./lib/lang"),f=t("./lib/oop"),y=t("./range").Range,d=function(){function s(){this.$options={}}return s.prototype.set=function(l){return f.mixin(this.$options,l),this},s.prototype.getOptions=function(){return h.copyObject(this.$options)},s.prototype.setOptions=function(l){this.$options=l},s.prototype.find=function(l){var a=this.$options,c=this.$matchIterator(l,a);if(!c)return!1;var o=null;return c.forEach(function(u,v,b,x){return o=new y(u,v,b,x),v==x&&a.start&&a.start.start&&a.skipCurrent!=!1&&o.isEqual(a.start)?(o=null,!1):!0}),o},s.prototype.findAll=function(l){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var c=a.range,o=c?l.getLines(c.start.row,c.end.row):l.doc.getAllLines(),u=[],v=a.re;if(a.$isMultiLine){var b=v.length,x=o.length-b,E;e:for(var C=v.offset||0;C<=x;C++){for(var k=0;k<b;k++)if(o[C+k].search(v[k])==-1)continue e;var w=o[C],T=o[C+b-1],L=w.length-w.match(v[0])[0].length,I=T.match(v[b-1])[0].length;E&&E.end.row===C&&E.end.column>L||(u.push(E=new y(C,L,C+b-1,I)),b>2&&(C=C+b-2))}}else for(var A=0;A<o.length;A++)for(var N=h.getMatchOffsets(o[A],v),k=0;k<N.length;k++){var S=N[k];u.push(new y(A,S.offset,A,S.offset+S.length))}if(c){for(var _=c.start.column,$=c.end.column,A=0,k=u.length-1;A<k&&u[A].start.column<_&&u[A].start.row==0;)A++;for(var R=c.end.row-c.start.row;A<k&&u[k].end.column>$&&u[k].end.row==R;)k--;for(u=u.slice(A,k+1),A=0,k=u.length;A<k;A++)u[A].start.row+=c.start.row,u[A].end.row+=c.start.row}return u},s.prototype.replace=function(l,a){var c=this.$options,o=this.$assembleRegExp(c);if(c.$isMultiLine)return a;if(o){var u=o.exec(l);if(!u||u[0].length!=l.length)return null;if(c.regExp||(a=a.replace(/\$/g,"$$$$")),a=l.replace(o,a),c.preserveCase){a=a.split("");for(var v=Math.min(l.length,l.length);v--;){var b=l[v];b&&b.toLowerCase()!=b?a[v]=a[v].toUpperCase():a[v]=a[v].toLowerCase()}a=a.join("")}return a}},s.prototype.$assembleRegExp=function(l,a){if(l.needle instanceof RegExp)return l.re=l.needle;var c=l.needle;if(!l.needle)return l.re=!1;l.regExp||(c=h.escapeRegExp(c));var o=l.caseSensitive?"gm":"gmi";try{new RegExp(c,"u"),l.$supportsUnicodeFlag=!0,o+="u"}catch{l.$supportsUnicodeFlag=!1}if(l.wholeWord&&(c=g(c,l)),l.$isMultiLine=!a&&/[\n\r]/.test(c),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(c,o);try{var u=new RegExp(c,o)}catch{u=!1}return l.re=u},s.prototype.$assembleMultilineRegExp=function(l,a){for(var c=l.replace(/\r\n|\r|\n/g,`$
|
199
|
+
^`).split(`
|
200
|
+
`),o=[],u=0;u<c.length;u++)try{o.push(new RegExp(c[u],a))}catch{return!1}return o},s.prototype.$matchIterator=function(l,a){var c=this.$assembleRegExp(a);if(!c)return!1;var o=a.backwards==!0,u=a.skipCurrent!=!1,v=c.unicode,b=a.range,x=a.start;x||(x=b?b[o?"end":"start"]:l.selection.getRange()),x.start&&(x=x[u!=o?"end":"start"]);var E=b?b.start.row:0,C=b?b.end.row:l.getLength()-1;if(o)var k=function(L){var I=x.row;if(!T(I,x.column,L)){for(I--;I>=E;I--)if(T(I,Number.MAX_VALUE,L))return;if(a.wrap!=!1){for(I=C,E=x.row;I>=E;I--)if(T(I,Number.MAX_VALUE,L))return}}};else var k=function(L){var I=x.row;if(!T(I,x.column,L)){for(I=I+1;I<=C;I++)if(T(I,0,L))return;if(a.wrap!=!1){for(I=E,C=x.row;I<=C;I++)if(T(I,0,L))return}}};if(a.$isMultiLine)var w=c.length,T=function(L,I,A){var N=o?L-w+1:L;if(!(N<0||N+w>l.getLength())){var S=l.getLine(N),_=S.search(c[0]);if(!(!o&&_<I||_===-1)){for(var $=1;$<w;$++)if(S=l.getLine(N+$),S.search(c[$])==-1)return;var R=S.match(c[w-1])[0].length;if(!(o&&R>I)&&A(N,_,N+w-1,R))return!0}}};else if(o)var T=function(L,I,A){var N=l.getLine(L),S=[],_,$=0;for(c.lastIndex=0;_=c.exec(N);){var R=_[0].length;if($=_.index,!R){if($>=N.length)break;c.lastIndex=$+=h.skipEmptyMatch(N,$,v)}if(_.index+R>I)break;S.push(_.index,R)}for(var O=S.length-1;O>=0;O-=2){var F=S[O-1],R=S[O];if(A(L,F,L,F+R))return!0}};else var T=function(L,I,A){var N=l.getLine(L),S,_;for(c.lastIndex=I;_=c.exec(N);){var $=_[0].length;if(S=_.index,A(L,S,L,S+$))return!0;if(!$&&(c.lastIndex=S+=h.skipEmptyMatch(N,S,v),S>=N.length))return!1}};return{forEach:k}},s}();function g(s,l){var a=h.supportsLookbehind();function c(b,x){x===void 0&&(x=!0);var E=a&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return E.test(b)||l.regExp?a&&l.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),u=o[0],v=o[o.length-1];return c(u)+s+c(v,!1)}i.Search=d}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,i,p){var h=this&&this.__extends||function(){var a=function(c,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,v){u.__proto__=v}||function(u,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(u[b]=v[b])},a(c,o)};return function(c,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(c,o);function u(){this.constructor=c}c.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),f=t("../lib/keys"),y=t("../lib/useragent"),d=f.KEY_MODS,g=function(){function a(c,o){this.$init(c,o,!1)}return a.prototype.$init=function(c,o,u){this.platform=o||(y.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=u},a.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},a.prototype.removeCommand=function(c,o){var u=c&&(typeof c=="string"?c:c.name);c=this.commands[u],o||delete this.commands[u];var v=this.commandKeyBinding;for(var b in v){var x=v[b];if(x==c)delete v[b];else if(Array.isArray(x)){var E=x.indexOf(c);E!=-1&&(x.splice(E,1),x.length==1&&(v[b]=x[0]))}}},a.prototype.bindKey=function(c,o,u){if(typeof c=="object"&&c&&(u==null&&(u=c.position),c=c[this.platform]),!!c){if(typeof o=="function")return this.addCommand({exec:o,bindKey:c,name:o.name||c});c.split("|").forEach(function(v){var b="";if(v.indexOf(" ")!=-1){var x=v.split(/\s+/);v=x.pop(),x.forEach(function(k){var w=this.parseKeys(k),T=d[w.hashId]+w.key;b+=(b?" ":"")+T,this._addCommandToBinding(b,"chainKeys")},this),b+=" "}var E=this.parseKeys(v),C=d[E.hashId]+E.key;this._addCommandToBinding(b+C,o,u)},this)}},a.prototype._addCommandToBinding=function(c,o,u){var v=this.commandKeyBinding,b;if(!o)delete v[c];else if(!v[c]||this.$singleCommand)v[c]=o;else{Array.isArray(v[c])?(b=v[c].indexOf(o))!=-1&&v[c].splice(b,1):v[c]=[v[c]],typeof u!="number"&&(u=s(o));var x=v[c];for(b=0;b<x.length;b++){var E=x[b],C=s(E);if(C>u)break}x.splice(b,0,o)}},a.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(o){var u=c[o];if(u){if(typeof u=="string")return this.bindKey(u,o);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=o),this.addCommand(u))}},this)},a.prototype.removeCommands=function(c){Object.keys(c).forEach(function(o){this.removeCommand(c[o])},this)},a.prototype.bindKeys=function(c){Object.keys(c).forEach(function(o){this.bindKey(o,c[o])},this)},a.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},a.prototype.parseKeys=function(c){var o=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),u=o.pop(),v=f[u];if(f.FUNCTION_KEYS[v])u=f.FUNCTION_KEYS[v].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var b=0,x=o.length;x--;){var E=f.KEY_MODS[o[x]];if(E==null)return typeof console<"u"&&console.error("invalid modifier "+o[x]+" in "+c),!1;b|=E}return{key:u,hashId:b}},a.prototype.findKeyCommand=function(c,o){var u=d[c]+o;return this.commandKeyBinding[u]},a.prototype.handleKeyboard=function(c,o,u,v){if(!(v<0)){var b=d[o]+u,x=this.commandKeyBinding[b];return c.$keyChain&&(c.$keyChain+=" "+b,x=this.commandKeyBinding[c.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||b,{command:"null"}):(c.$keyChain&&((!o||o==4)&&u.length==1?c.$keyChain=c.$keyChain.slice(0,-b.length-1):(o==-1||v>0)&&(c.$keyChain="")),{command:x})}},a.prototype.getStatusText=function(c,o){return o.$keyChain||""},a}();function s(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var l=function(a){h(c,a);function c(o,u){var v=a.call(this,o,u)||this;return v.$singleCommand=!0,v}return c}(g);l.call=function(a,c,o){g.prototype.$init.call(a,c,o,!0)},g.call=function(a,c,o){g.prototype.$init.call(a,c,o,!1)},i.HashHandler=l,i.MultiHashHandler=g}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,i,p){var h=this&&this.__extends||function(){var s=function(l,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(c[u]=o[u])},s(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");s(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),f=t("../lib/oop"),y=t("../keyboard/hash_handler").MultiHashHandler,d=t("../lib/event_emitter").EventEmitter,g=function(s){h(l,s);function l(a,c){var o=s.call(this,c,a)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(u){return u.args?u.command.exec(u.editor,u.args,u.event,!1):u.command.exec(u.editor,{},u.event,!0)}),o}return l.prototype.exec=function(a,c,o){if(Array.isArray(a)){for(var u=a.length;u--;)if(this.exec(a[u],c,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,c))return!1;var v={editor:c,command:a,args:o};return v.returnValue=this._emit("exec",v),this._signal("afterExec",v),v.returnValue!==!1},l.prototype.canExecute=function(a,c){return typeof a=="string"&&(a=this.commands[a]),!(!a||c&&c.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(c))},l.prototype.toggleRecording=function(a){if(!this.$inReplay)return a&&a._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(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,a):this.exec(c[0],a,c[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(a){return a.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},l}(y);f.implement(g.prototype,d),i.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,i,p){var h=t("../lib/lang"),f=t("../config"),y=t("../range").Range;function d(s,l){return{win:s,mac:l}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:d("Ctrl-,","Command-,"),exec:function(s){f.loadModule("ace/ext/settings_menu",function(l){l.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:d("Alt-E","F4"),exec:function(s){f.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:d("Alt-Shift-E","Shift-F4"),exec:function(s){f.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:d("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:d(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:d("Ctrl-L","Command-L"),exec:function(s,l){typeof l=="number"&&!isNaN(l)&&s.gotoLine(l),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:d("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:d("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:d("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:d("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:d(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:d(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:d("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:d("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:d("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:d("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:d("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:d("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:d("Ctrl-F","Command-F"),exec:function(s){f.loadModule("ace/ext/searchbox",function(l){l.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:d("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:d("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:d("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:d("Up","Up|Ctrl-P"),exec:function(s,l){s.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:d("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:d("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:d("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:d("Down","Down|Ctrl-N"),exec:function(s,l){s.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:d("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:d("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:d("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:d("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:d("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:d("Left","Left|Ctrl-B"),exec:function(s,l){s.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:d("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:d("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:d("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:d("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:d("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:d("Right","Right|Ctrl-F"),exec:function(s,l){s.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:d(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:d("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:d(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:d("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:d("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:d("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:d("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:d("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:d("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:d("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:d(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var l=s.$copyWithEmptySelection&&s.selection.isEmpty(),a=l?s.selection.getLineRange():s.selection.getRange();s._emit("cut",a),a.isEmpty()||s.session.remove(a),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,l){s.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:d("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:d("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:d("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:d("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:d("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:d("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:d("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:d("Ctrl-H","Command-Option-F"),exec:function(s){f.loadModule("ace/ext/searchbox",function(l){l.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:d("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:d("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:d("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:d("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:d("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:d("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:d("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:d("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:d("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:d("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:d("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:d("Ctrl-Shift-Backspace",null),exec:function(s){var l=s.selection.getRange();l.start.column=0,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:d("Ctrl-Shift-Delete",null),exec:function(s){var l=s.selection.getRange();l.end.column=Number.MAX_VALUE,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:d("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:d("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:d("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:d("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:d("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:d("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,l){s.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,l){s.insert(h.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:d(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:d("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:d("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:d("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:d(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:d("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var l=s.selection.getRange();l.start.column=l.end.column=0,l.end.row++,s.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:d("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:d(null,null),exec:function(s){for(var l=s.selection.isBackwards(),a=l?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),c=l?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),o=s.session.doc.getLine(a.row).length,u=s.session.doc.getTextRange(s.selection.getRange()),v=u.replace(/\n\s*/," ").length,b=s.session.doc.getLine(a.row),x=a.row+1;x<=c.row+1;x++){var E=h.stringTrimLeft(h.stringTrimRight(s.session.doc.getLine(x)));E.length!==0&&(E=" "+E),b+=E}c.row+1<s.session.doc.getLength()-1&&(b+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new y(a.row,0,c.row+2,0),b),v>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+v)):(o=s.session.doc.getLine(a.row).length>o?o+1:o,s.selection.moveCursorTo(a.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:d(null,null),exec:function(s){var l=s.session.doc.getLength()-1,a=s.session.doc.getLine(l).length,c=s.selection.rangeList.ranges,o=[];c.length<1&&(c=[s.selection.getRange()]);for(var u=0;u<c.length;u++)u==c.length-1&&(c[u].end.row===l&&c[u].end.column===a||o.push(new y(c[u].end.row,c[u].end.column,l,a))),u===0?c[u].start.row===0&&c[u].start.column===0||o.push(new y(0,0,c[u].start.row,c[u].start.column)):o.push(new y(c[u-1].end.row,c[u-1].end.column,c[u].start.row,c[u].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var u=0;u<o.length;u++)s.selection.addRange(o[u],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
|
201
|
+
`)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var l=s.getCursorPosition();s.selection.moveTo(l.row-1,Number.MAX_VALUE),s.insert(`
|
202
|
+
`),l.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:d("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:d(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var g=1;g<9;g++)i.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(s){s.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(t,i,p){var h=t("../lib/keys"),f=t("../mouse/default_gutter_handler").GutterTooltip,y=function(){function g(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new f(this.editor)}return g.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))},g.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))},g.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===h.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=h.enter)return;s.preventDefault();var l=this.editor.getCursorPosition().row;this.editor.isRowVisible(l)||this.editor.scrollToLine(l,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(a),o=this.$findNearestAnnotation(a);if(!(c===null&&o===null)){if(c===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&o===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-a)<Math.abs(c-a)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new d(s,this))}).bind(this),10)},g.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===h.tab){s.preventDefault();return}if(s.keyCode===h.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===h.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===h.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===h.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===h.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===h.enter||s.keyCode===h.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var l=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==l&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(l),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var a=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=a.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=c.right+"px",o.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.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()},g.prototype.$isFoldWidgetVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return l&&a},g.prototype.$isAnnotationVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return l&&a},g.prototype.$getFoldWidget=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[1]},g.prototype.$getAnnotation=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[2]},g.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isFoldWidgetVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+l))return s+l}return null},g.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isAnnotationVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+l))return s+l}return null},g.prototype.$focusFoldWidget=function(s){if(s!=null){var l=this.$getFoldWidget(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},g.prototype.$focusAnnotation=function(s){if(s!=null){var l=this.$getAnnotation(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},g.prototype.$blurFoldWidget=function(s){var l=this.$getFoldWidget(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},g.prototype.$blurAnnotation=function(s){var l=this.$getAnnotation(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},g.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var l=this.$findNearestAnnotation(this.activeRowIndex);if(l==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=l,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var a=this.$findNearestFoldWidget(this.activeRowIndex);if(a==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);break}},g.prototype.$rowIndexToRow=function(s){var l=this.lines.get(s);return l?l.row:null},g.prototype.$rowToRowIndex=function(s){for(var l=0;l<this.lines.getLength();l++){var a=this.lines.get(l);if(a.row==s)return l}return null},g}();i.GutterKeyboardHandler=y;var d=function(){function g(s,l){this.gutterKeyboardHandler=l,this.domEvent=s}return g.prototype.getKey=function(){return h.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();i.GutterKeyboardEvent=d}),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(t,i,p){var h=this&&this.__values||function(S){var _=typeof Symbol=="function"&&Symbol.iterator,$=_&&S[_],R=0;if($)return $.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&R>=S.length&&(S=void 0),{value:S&&S[R++],done:!S}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},f=t("./lib/oop"),y=t("./lib/dom"),d=t("./lib/lang"),g=t("./lib/useragent"),s=t("./keyboard/textinput").TextInput,l=t("./mouse/mouse_handler").MouseHandler,a=t("./mouse/fold_handler").FoldHandler,c=t("./keyboard/keybinding").KeyBinding,o=t("./edit_session").EditSession,u=t("./search").Search,v=t("./range").Range,b=t("./lib/event_emitter").EventEmitter,x=t("./commands/command_manager").CommandManager,E=t("./commands/default_commands").commands,C=t("./config"),k=t("./token_iterator").TokenIterator,w=t("./keyboard/gutter_handler").GutterKeyboardHandler,T=t("./config").nls,L=t("./clipboard"),I=t("./lib/keys"),A=function(){function S(_,$,R){this.session,this.$toDestroy=[];var O=_.getContainerElement();this.container=O,this.renderer=_,this.id="editor"+ ++S.$uid,this.commands=new x(g.isMac?"mac":"win",E),typeof document=="object"&&(this.textInput=new s(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new a(this)),this.keyBinding=new c(this),this.$search=new u().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=d.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,H){H._$emitInputEvent.schedule(31)}),this.setSession($||R&&R.session||new o("")),C.resetOptions(this),R&&this.setOptions(R),C._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(_){this.session.startOperation(_)},S.prototype.endOperation=function(_){this.session.endOperation(_)},S.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},S.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var $=this.curOp.command,R=$&&$.scrollIntoView;if(R){switch(R){case"center-animate":R="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}R=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var $=this.prevOp,R=this.$mergeableCommands,O=$.command&&_.command.name==$.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test($.args)),this.mergeNextCommand=!0}else O=O&&R.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:R.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(_,$){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var R=this;C.loadModule(["keybinding",_],function(O){R.$keybindingId==_&&R.keyBinding.setKeyboardHandler(O&&O.handler),$&&$()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),$&&$()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var $=this.session;if($){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 R=this.session.getSelection();R.off("changeCursor",this.$onCursorChange),R.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.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=_.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(_)),this._signal("changeSession",{session:_,oldSession:$}),this.curOp=null,$&&$._signal("changeEditor",{oldEditor:this}),$&&($.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(_,$){return this.session.doc.setValue(_),$?$==1?this.navigateFileEnd():$==-1&&this.navigateFileStart():this.selectAll(),_},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(_){this.renderer.onResize(_)},S.prototype.setTheme=function(_,$){this.renderer.setTheme(_,$)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(_){this.renderer.setStyle(_)},S.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||y.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(_){this.setOption("fontSize",_)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var $=_.session;if(!(!$||$.destroyed)){$.$bracketHighlight&&($.$bracketHighlight.markerIds.forEach(function(G){$.removeMarker(G)}),$.$bracketHighlight=null);var R=_.getCursorPosition(),O=_.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(_),H=$.getMatchingBracketRanges(R,F);if(!H){var W=new k($,R.row,R.column),V=W.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=$.getMatchingTags(R);q&&(H=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!H&&$.$mode.getMatching&&(H=$.$mode.getMatching(_.session)),!H){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(H)?H.length==1&&(X="ace_error_bracket"):H=[H],H.length==2&&(v.comparePoints(H[0].end,H[1].start)==0?H=[v.fromPoints(H[0].start,H[1].end)]:v.comparePoints(H[0].start,H[1].end)==0&&(H=[v.fromPoints(H[1].start,H[0].end)])),$.$bracketHighlight={ranges:H,markerIds:H.map(function(G){return $.addMarker(G,X,"text")})},_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},S.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(_){var $=this.session.$useWrapMode,R=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,R,$),this._signal("change",_),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(_){var $=_.data;this.renderer.updateLines($.first,$.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var _=this.getSession(),$;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&($=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&($=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&($=!1)),_.$highlightLineMarker&&!$)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&$){var R=new v($.row,$.column,$.row,1/0);R.id=_.addMarker(R,"ace_active-line","screenLine"),_.$highlightLineMarker=R}else $&&(_.$highlightLineMarker.start.row=$.row,_.$highlightLineMarker.end.row=$.row,_.$highlightLineMarker.start.column=$.column,_._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(_){var $=this.session;if($.$selectionMarker&&$.removeMarker($.$selectionMarker),$.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var R=this.selection.getRange(),O=this.getSelectionStyle();$.$selectionMarker=$.addMarker(R,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,$=this.getSelectionRange();if(!($.isEmpty()||$.isMultiLine())){var R=$.start.column,O=$.end.column,F=_.getLine($.start.row),H=F.substring(R,O);if(!(H.length>5e3||!/[\w\d]/.test(H))){var W=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:H}),V=F.substring(R-1,O+1);if(W.test(V))return W}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(_){this.renderer.updateText(),this._emit("changeMode",_)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var _=this.getSelectedText(),$=this.session.doc.getNewLineCharacter(),R=!1;if(!_&&this.$copyWithEmptySelection){R=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var H=O[F];F&&O[F-1].start.row==H.start.row||(_+=this.session.getLine(H.start.row)+$)}}var W={text:_};return this._signal("copy",W),L.lineMode=R?W.text:!1,W.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(_,$){var R={text:_,event:$};this.commands.exec("paste",this,R)},S.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var $=_.text,R=$===L.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)R?O.insert({row:this.selection.lead.row,column:0},$):this.insert($);else if(R)this.selection.rangeList.ranges.forEach(function(X){O.insert({row:X.start.row,column:0},$)});else{var F=$.split(/\r\n|\r|\n/),H=this.selection.rangeList.ranges,W=F.length==2&&(!F[0]||!F[1]);if(F.length!=H.length||W)return this.commands.exec("insertstring",this,$);for(var V=H.length;V--;){var q=H[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},S.prototype.execCommand=function(_,$){return this.commands.exec(_,this,$)},S.prototype.insert=function(_,$){var R=this.session,O=R.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!$){var H=O.transformAction(R.getState(F.row),"insertion",this,R,_);H&&(_!==H.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=H.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
|
203
|
+
`)==-1){var W=v.fromPoints(F,F);W.end.column+=_.length,this.session.remove(W)}}else{var W=this.getSelectionRange();F=this.session.remove(W),this.clearSelection()}if(_==`
|
204
|
+
`||_==`\r
|
205
|
+
`){var G=R.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);R.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,X=R.getState(F.row),G=R.getLine(F.row),Z=O.checkOutdent(X,G,_);if(R.insert(F,_),H&&H.selection&&(H.selection.length==2?this.selection.setSelectionRange(new v(F.row,q+H.selection[0],F.row,q+H.selection[1])):this.selection.setSelectionRange(new v(F.row+H.selection[0],H.selection[1],F.row+H.selection[2],H.selection[3]))),this.$enableAutoIndent){if(R.getDocument().isNewLine(_)){var ie=O.getNextLineIndent(X,G.slice(0,F.column),R.getTabString());R.insert({row:F.row+1,column:0},ie)}Z&&O.autoOutdent(X,R,F.row)}},S.prototype.autoIndent=function(){for(var _=this.session,$=_.getMode(),R=this.selection.isEmpty()?[new v(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",H="",W=_.getTabString(),V=0;V<R.length;V++)for(var q=R[V].start.row,X=R[V].end.row,G=q;G<=X;G++){G>0&&(O=_.getState(G-1),F=_.getLine(G-1),H=$.getNextLineIndent(O,F,W));var Z=_.getLine(G),ie=$.$getIndent(Z);if(H!==ie){if(ie.length>0){var J=new v(G,0,G,ie.length);_.remove(J)}H.length>0&&_.insert({row:G,column:0},H)}$.autoOutdent(O,_,G)}},S.prototype.onTextInput=function(_,$){if(!$)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var R=this.applyComposition.bind(this,_,$);this.selection.rangeCount?this.forEachSelection(R):R(),this.endOperation()},S.prototype.applyComposition=function(_,$){if($.extendLeft||$.extendRight){var R=this.selection.getRange();R.start.column-=$.extendLeft,R.end.column+=$.extendRight,R.start.column<0&&(R.start.row--,R.start.column+=this.session.getLine(R.start.row).length+1),this.selection.setRange(R),!_&&!R.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),$.restoreStart||$.restoreEnd){var R=this.selection.getRange();R.start.column-=$.restoreStart,R.end.column-=$.restoreEnd,this.selection.setRange(R)}},S.prototype.onCommandKey=function(_,$,R){return this.keyBinding.onCommandKey(_,$,R)},S.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var $=this.getSelectionRange();if(this.getBehavioursEnabled()){var R=this.session,O=R.getState($.start.row),F=R.getMode().transformAction(O,"deletion",this,R,$);if($.end.column===0){var H=R.getTextRange($);if(H[H.length-1]==`
|
206
|
+
`){var W=R.getLine($.end.row);/^\s+$/.test(W)&&($.end.column=W.length)}}F&&($=F)}this.session.remove($),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
|
207
|
+
`),this.moveCursorToPosition(_)},S.prototype.setGhostText=function(_,$){this.renderer.setGhostText(_,$)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),$=_.column;if($!==0){var R=this.session.getLine(_.row),O,F;$<R.length?(O=R.charAt($)+R.charAt($-1),F=new v(_.row,$-1,_.row,$+1)):(O=R.charAt($-1)+R.charAt($-2),F=new v(_.row,$-2,_.row,$)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},S.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),R=this.session.getTextRange($);this.session.replace($,R.toLowerCase()),this.selection.setSelectionRange(_)},S.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),R=this.session.getTextRange($);this.session.replace($,R.toUpperCase()),this.selection.setSelectionRange(_)},S.prototype.indent=function(){var _=this.session,$=this.getSelectionRange();if($.start.row<$.end.row){var R=this.$getSelectedRows();_.indentRows(R.first,R.last," ");return}else if($.start.column<$.end.column){var O=_.getTextRange($);if(!/^\s+$/.test(O)){var R=this.$getSelectedRows();_.indentRows(R.first,R.last," ");return}}var F=_.getLine($.start.row),H=$.start,W=_.getTabSize(),V=_.documentToScreenColumn(H.row,H.column);if(this.session.getUseSoftTabs())var q=W-V%W,X=d.stringRepeat(" ",q);else{for(var q=V%W;F[$.start.column-1]==" "&&q;)$.start.column--,q--;this.selection.setSelectionRange($),X=" "}return this.insert(X)},S.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},S.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},S.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),$=this.session,R=[],O=_.first;O<=_.last;O++)R.push($.getLine(O));R.sort(function(W,V){return W.toLowerCase()<V.toLowerCase()?-1:W.toLowerCase()>V.toLowerCase()?1:0});for(var F=new v(0,0,0,0),O=_.first;O<=_.last;O++){var H=$.getLine(O);F.start.row=O,F.end.row=O,F.end.column=H.length,$.replace(F,R[O-_.first])}},S.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),$=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,$.first,$.last)},S.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),$=this.session.getState(_.row),R=this.getSelectionRange();this.session.getMode().toggleBlockComment($,this.session,R,_)},S.prototype.getNumberAt=function(_,$){var R=/[\-]?[0-9]+(?:\.[0-9]+)?/g;R.lastIndex=0;for(var O=this.session.getLine(_);R.lastIndex<$;){var F=R.exec(O);if(F.index<=$&&F.index+F[0].length>=$){var H={value:F[0],start:F.index,end:F.index+F[0].length};return H}}return null},S.prototype.modifyNumber=function(_){var $=this.selection.getCursor().row,R=this.selection.getCursor().column,O=new v($,R-1,$,R),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var H=this.getNumberAt($,R);if(H){var W=H.value.indexOf(".")>=0?H.start+H.value.indexOf(".")+1:H.end,V=H.start+H.value.length-W,q=parseFloat(H.value);q*=Math.pow(10,V),W!==H.end&&R<W?_*=Math.pow(10,H.end-R-1):_*=Math.pow(10,H.end-R),q+=_,q/=Math.pow(10,V);var X=q.toFixed(V),G=new v($,H.start,$,H.end);this.session.replace(G,X),this.moveCursorTo($,Math.max(H.start+1,R+X.length-H.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var _=this.selection.getCursor().row,$=this.selection.getCursor().column;this.selection.selectWord();var R=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=R.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),H=$-O-1;H<0&&(H=0);var W=0,V=0,q=this;R.match(/[A-Za-z0-9_]+/)&&F.forEach(function(fe,Ce){V=W+fe.length,H>=W&&H<=V&&(R=fe,q.selection.clearSelection(),q.moveCursorTo(_,W+O),q.selection.selectTo(_,V+O)),W=V});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var ie=X[Z],J=0;J<=1;J++){var ae=+!J,me=R.match(new RegExp("^\\s?_?("+d.escapeRegExp(ie[J])+")\\s?$","i"));if(me){var ye=R.match(new RegExp("([_]|^|\\s)("+d.escapeRegExp(me[1])+")($|\\s)","g"));ye&&(G=R.replace(new RegExp(d.escapeRegExp(ie[J]),"i"),function(fe){var Ce=ie[ae];return fe.toUpperCase()==fe?Ce=Ce.toUpperCase():fe.charAt(0).toUpperCase()==fe.charAt(0)&&(Ce=Ce.substr(0,0)+ie[ae].charAt(0).toUpperCase()+Ce.substr(1)),Ce}),this.insert(G),G="")}}},S.prototype.findLinkAt=function(_,$){var R,O,F=this.session.getLine(_),H=F.split(/((?:https?|ftp):\/\/[\S]+)/),W=$;W<0&&(W=0);var V=0,q=0,X;try{for(var G=h(H),Z=G.next();!Z.done;Z=G.next()){var ie=Z.value;if(q=V+ie.length,W>=V&&W<=q&&ie.match(/((?:https?|ftp):\/\/[\S]+)/)){X=ie.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(J){R={error:J}}finally{try{Z&&!Z.done&&(O=G.return)&&O.call(G)}finally{if(R)throw R.error}}return X},S.prototype.openLink=function(){var _=this.selection.getCursor(),$=this.findLinkAt(_.row,_.column);return $&&window.open($,"_blank"),$!=null},S.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var _=this.selection,$=this.session,R=_.getRange(),O=_.isBackwards();if(R.isEmpty()){var F=R.start.row;$.duplicateLines(F,F)}else{var H=O?R.start:R.end,W=$.insert(H,$.getTextRange(R));R.start=H,R.end=W,_.setSelectionRange(R,O)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(_,$,R){return this.session.moveText(_,$,R)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(_,$){var R,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var H=F.toOrientedRange();R=this.$getSelectedRows(H),O=this.session.$moveLines(R.first,R.last,$?0:_),$&&_==-1&&(O=0),H.moveBy(O,0),F.fromOrientedRange(H)}else{var W=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,X=W.length,G=0;G<X;G++){var Z=G;W[G].moveBy(V,0),R=this.$getSelectedRows(W[G]);for(var ie=R.first,J=R.last;++G<X;){q&&W[G].moveBy(q,0);var ae=this.$getSelectedRows(W[G]);if($&&ae.first!=J||!$&&ae.first>J+1)break;J=ae.last}for(G--,V=this.session.$moveLines(ie,J,$?0:_),$&&_==-1&&(Z=G+1);Z<=G;)W[Z].moveBy(V,0),Z++;$||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},S.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},S.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(_,$){var R=this.renderer,O=this.renderer.layerConfig,F=_*Math.floor(O.height/O.lineHeight);$===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):$===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var H=R.scrollTop;R.scrollBy(0,F*O.lineHeight),$!=null&&R.scrollCursorIntoView(null,.5),R.animateScrolling(H)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(_){this.renderer.scrollToRow(_)},S.prototype.scrollToLine=function(_,$,R,O){this.renderer.scrollToLine(_,$,R,O)},S.prototype.centerSelection=function(){var _=this.getSelectionRange(),$={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor($,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(_,$){this.selection.moveCursorTo(_,$)},S.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},S.prototype.jumpToMatching=function(_,$){var R=this.getCursorPosition(),O=new k(this.session,R.row,R.column),F=O.getCurrentToken(),H=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var W=F||O.stepForward();if(W){var V,q=!1,X={},G=R.column-W.start,Z,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(W.value.match(/[{}()\[\]]/g)){for(;G<W.value.length&&!q;G++)if(ie[W.value[G]])switch(Z=ie[W.value[G]]+"."+W.type.replace("rparen","lparen"),isNaN(X[Z])&&(X[Z]=0),W.value[G]){case"(":case"[":case"{":X[Z]++;break;case")":case"]":case"}":X[Z]--,X[Z]===-1&&(V="bracket",q=!0);break}}else W.type.indexOf("tag-name")!==-1&&(isNaN(X[W.value])&&(X[W.value]=0),F.value==="<"&&H>1?X[W.value]++:F.value==="</"&&X[W.value]--,X[W.value]===-1&&(V="tag",q=!0));q||(F=W,H++,W=O.stepForward(),G=0)}while(W&&!q);if(V){var J,ae;if(V==="bracket")J=this.session.getBracketRange(R),J||(J=new v(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=J.start,($||ae.row===R.row&&Math.abs(ae.column-R.column)<2)&&(J=this.session.getBracketRange(ae)));else if(V==="tag"){if(!W||W.type.indexOf("tag-name")===-1)return;if(J=new v(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),J.compare(R.row,R.column)===0){var me=this.session.getMatchingTags(R);me&&(me.openTag.contains(R.row,R.column)?(J=me.closeTag,ae=J.start):(J=me.openTag,me.closeTag.start.row===R.row&&me.closeTag.start.column===R.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(_?J&&$?this.selection.setRange(J):J&&J.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},S.prototype.gotoLine=function(_,$,R){this.selection.clearSelection(),this.session.unfold({row:_-1,column:$||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,$||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,R)},S.prototype.navigateTo=function(_,$){this.selection.moveTo(_,$)},S.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},S.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},S.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var $=this.getSelectionRange().start;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var $=this.getSelectionRange().end;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(_,$){$&&this.$search.set($);var R=this.$search.find(this.session),O=0;return R&&(this.$tryReplace(R,_)&&(O=1),this.selection.setSelectionRange(R),this.renderer.scrollSelectionIntoView(R.start,R.end)),O},S.prototype.replaceAll=function(_,$){$&&this.$search.set($);var R=this.$search.findAll(this.session),O=0;if(!R.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var H=R.length-1;H>=0;--H)this.$tryReplace(R[H],_)&&O++;return this.selection.setSelectionRange(F),O},S.prototype.$tryReplace=function(_,$){var R=this.session.getTextRange(_);return $=this.$search.replace(R,$),$!==null?(_.end=this.session.replace(_,$),_):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(_,$,R){$||($={}),typeof _=="string"||_ instanceof RegExp?$.needle=_:typeof _=="object"&&f.mixin($,_);var O=this.selection.getRange();$.needle==null&&(_=this.session.getTextRange(O)||this.$search.$options.needle,_||(O=this.session.getWordRange(O.start.row,O.start.column),_=this.session.getTextRange(O)),this.$search.set({needle:_})),this.$search.set($),$.start||this.$search.set({start:O});var F=this.$search.find(this.session);if($.preventScroll)return F;if(F)return this.revealRange(F,R),F;$.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},S.prototype.findNext=function(_,$){this.find({skipCurrent:!0,backwards:!1},_,$)},S.prototype.findPrevious=function(_,$){this.find(_,{skipCurrent:!0,backwards:!0},$)},S.prototype.revealRange=function(_,$){this.session.unfold(_),this.selection.setSelectionRange(_);var R=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),$!==!1&&this.renderer.animateScrolling(R)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(_){_.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()},S.prototype.setAutoScrollEditorIntoView=function(_){if(_){var $,R=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var H=this.on("changeSelection",function(){O=!0}),W=this.renderer.on("beforeRender",function(){O&&($=R.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&$&&(R.isFocused()||R.searchBox&&R.searchBox.isFocused())){var q=R.renderer,X=q.$cursorLayer.$pixelPos,G=q.layerConfig,Z=X.top-G.offset;X.top>=0&&Z+$.top<0?O=!0:X.top<G.height&&X.top+$.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Z+"px",F.style.left=X.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=$=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",H),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",W))}}},S.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",$=this.renderer.$cursorLayer;$&&($.setSmoothBlinking(/smooth/.test(_)),$.isBlinking=!this.$readOnly&&_!="wide",y.setCssClass($.element,"ace_slim-cursors",/slim/.test(_)))},S.prototype.prompt=function(_,$,R){var O=this;C.loadModule("ace/ext/prompt",function(F){F.prompt(O,_,$,R)})},S}();A.$uid=0,A.prototype.curOp=null,A.prototype.prevOp={},A.prototype.$mergeableCommands=["backspace","del","insertstring"],A.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"],["&&","||"],["==","!="]],f.implement(A.prototype,b),C.defineOptions(A.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){this.textInput.setReadOnly(S),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){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(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?N.attach(this):N.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),y.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),y.addCssClass(this.container,"ace_hasPlaceholder");var $=y.createElement("div");$.className="ace_placeholder",$.textContent=this.$placeholder||"",this.renderer.placeholderNode=$,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},$=function(O){if(O.target==this.renderer.scroller&&O.keyCode===I.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},R;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",T("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",T("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",$.bind(this)),this.commands.addCommand(_),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",T("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",T("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),R||(R=new w(this)),R.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",$.bind(this)),this.commands.removeCommand(_),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),R&&R.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(S){this.$textInputAriaLabel=S},initialValue:""},enableMobileMenu:{set:function(S){this.$enableMobileMenu=S},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 N={getText:function(S,_){return(Math.abs(S.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function(S,_,$){return Math.max(_.toString().length,($.lastRow+1).toString().length,2)*$.characterWidth},update:function(S,_){_.renderer.$loop.schedule(_.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};i.Editor=A}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,i,p){var h=t("../lib/dom"),f=function(){function y(d,g){this.element=d,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return y.prototype.moveContainer=function(d){h.translate(this.element,0,-(d.firstRowScreen*d.lineHeight%this.canvasHeight)-d.offset*this.$offsetCoefficient)},y.prototype.pageChanged=function(d,g){return Math.floor(d.firstRowScreen*d.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},y.prototype.computeLineTop=function(d,g,s){var l=g.firstRowScreen*g.lineHeight,a=Math.floor(l/this.canvasHeight),c=s.documentToScreenRow(d,0)*g.lineHeight;return c-a*this.canvasHeight},y.prototype.computeLineHeight=function(d,g,s){return g.lineHeight*s.getRowLineCount(d)},y.prototype.getLength=function(){return this.cells.length},y.prototype.get=function(d){return this.cells[d]},y.prototype.shift=function(){this.$cacheCell(this.cells.shift())},y.prototype.pop=function(){this.$cacheCell(this.cells.pop())},y.prototype.push=function(d){if(Array.isArray(d)){this.cells.push.apply(this.cells,d);for(var g=h.createFragment(this.element),s=0;s<d.length;s++)g.appendChild(d[s].element);this.element.appendChild(g)}else this.cells.push(d),this.element.appendChild(d.element)},y.prototype.unshift=function(d){if(Array.isArray(d)){this.cells.unshift.apply(this.cells,d);for(var g=h.createFragment(this.element),s=0;s<d.length;s++)g.appendChild(d[s].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}else this.cells.unshift(d),this.element.insertAdjacentElement("afterbegin",d.element)},y.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},y.prototype.$cacheCell=function(d){d&&(d.element.remove(),this.cellCache.push(d))},y.prototype.createCell=function(d,g,s,l){var a=this.cellCache.pop();if(!a){var c=h.createElement("div");l&&l(c),this.element.appendChild(c),a={element:c,text:"",row:d}}return a.row=d,a},y}();i.Lines=f}),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(t,i,p){var h=t("../lib/dom"),f=t("../lib/oop"),y=t("../lib/lang"),d=t("../lib/event_emitter").EventEmitter,g=t("./lines").Lines,s=t("../config").nls,l=function(){function c(o){this.element=h.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},c.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},c.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var v=o[u],b=v.row,x=this.$annotations[b];x||(x=this.$annotations[b]={text:[],type:[],displayText:[]});var E=v.text,C=v.text,k=v.type;E=E?y.escapeHTML(E):v.html||"",C=C||v.html||"",x.text.indexOf(E)===-1&&(x.text.push(E),x.type.push(k),x.displayText.push(C));var w=v.className;w?x.className=w:k==="error"?x.className=" ace_error":k==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":k==="info"&&!x.className?x.className=" ace_info":k==="hint"&&!x.className&&(x.className=" ace_hint")}},c.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,v=o.end.row-u;if(v!==0)if(o.action=="remove")this.$annotations.splice(u,v+1,null);else{var b=new Array(v+1);b.unshift(u,1),this.$annotations.splice.apply(this.$annotations,b)}}},c.prototype.update=function(o){this.config=o;var u=this.session,v=o.firstRow,b=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=b,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var x=u.getNextFoldLine(v),E=x?x.start.row:1/0,C=null,k=-1,w=v;;){if(w>E&&(w=x.end.row+1,x=u.getNextFoldLine(w,x),E=x?x.start.row:1/0),w>b){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}C=this.$lines.get(++k),C?C.row=w:(C=this.$lines.createCell(w,o,this.session,a),this.$lines.push(C)),this.$renderCell(C,o,x,w),w++}this._signal("afterRender"),this.$updateGutterWidth(o)},c.prototype.$updateGutterWidth=function(o){var u=this.session,v=u.gutterRenderer||this.$renderer,b=u.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(x=u.getLength()+b-1);var E=v?v.getWidth(u,x,o):x.toString().length*o.characterWidth,C=this.$padding||this.$computePadding();E+=C.left+C.right,E!==this.gutterWidth&&!isNaN(E)&&(this.gutterWidth=E,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",E))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var v=0;v<u.length;v++){var b=u[v];if(b.row>=this.$cursorRow){if(b.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(v>0&&x&&x.start.row==u[v-1].row)b=u[v-1];else break}b.element.className="ace_gutter-active-line "+b.element.className,this.$cursorCell=b;break}}}}},c.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var v=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),b=this.oldLastRow;if(this.oldLastRow=v,!u||b<o.firstRow)return this.update(o);if(v<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(b>v)for(var x=this.session.getFoldedRowCount(v+1,b);x>0;x--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),v>b&&this.$lines.push(this.$renderLines(o,b+1,v)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},c.prototype.$renderLines=function(o,u,v){for(var b=[],x=u,E=this.session.getNextFoldLine(x),C=E?E.start.row:1/0;x>C&&(x=E.end.row+1,E=this.session.getNextFoldLine(x,E),C=E?E.start.row:1/0),!(x>v);){var k=this.$lines.createCell(x,o,this.session,a);this.$renderCell(k,o,E,x),b.push(k),x++}return b},c.prototype.$renderCell=function(o,u,v,b){var x=o.element,E=this.session,C=x.childNodes[0],k=x.childNodes[1],w=x.childNodes[2],T=w.firstChild,L=E.$firstLineNumber,I=E.$breakpoints,A=E.$decorations,N=E.gutterRenderer||this.$renderer,S=this.$showFoldWidgets&&E.foldWidgets,_=v?v.start.row:Number.MAX_VALUE,$=u.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(E,b):b+L).toString();if(this.$highlightGutterLine&&(b==this.$cursorRow||v&&b<this.$cursorRow&&b>=_&&this.$cursorRow<=v.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),I[b]&&(R+=I[b]),A[b]&&(R+=A[b]),this.$annotations[b]&&b!==_&&(R+=this.$annotations[b].className),S){var H=S[b];H==null&&(H=S[b]=E.getFoldWidget(b))}if(H){var W="ace_fold-widget ace_"+H,V=H=="start"&&b==_&&b<v.end.row;if(V){W+=" ace_closed";for(var q="",X=!1,G=b+1;G<=v.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){X=!0,q=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(X=!0,q=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&q!==" ace_security_fold"&&(X=!0,q=" ace_warning_fold")}R+=q}else W+=" ace_open";k.className!=W&&(k.className=W),h.setStyle(k.style,"height",$),h.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Z=E.getFoldWidgetRange(b);Z?k.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):v?k.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[v.start.row+1,v.end.row+1])):k.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[b+1])),V?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else k&&(h.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){w.className="ace_gutter_annotation",T.className=O,T.className+=q,h.setStyle(T.style,"height",$),h.setStyle(w.style,"display","block"),h.setStyle(w.style,"height",$);var ie;switch(q){case" ace_error_fold":ie=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":ie=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":ie=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}w.setAttribute("aria-label",ie),w.setAttribute("tabindex","-1"),w.setAttribute("role","button")}else if(this.$annotations[b]){w.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[b].className:x.classList.add(this.$annotations[b].className.replace(" ","")),h.setStyle(T.style,"height",$),h.setStyle(w.style,"display","block"),h.setStyle(w.style,"height",$);var ie;switch(this.$annotations[b].className){case" ace_error":ie=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":ie=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":ie=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":ie=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":ie=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}w.setAttribute("aria-label",ie),w.setAttribute("tabindex","-1"),w.setAttribute("role","button")}else h.setStyle(w.style,"display","none"),w.removeAttribute("aria-label"),w.removeAttribute("role"),w.setAttribute("tabindex","0");return F!==C.data&&(C.data=F),x.className!=R&&(x.className=R),h.setStyle(o.element.style,"height",this.$lines.computeLineHeight(b,u,E)+"px"),h.setStyle(o.element.style,"top",this.$lines.computeLineTop(b,u,E)+"px"),o.text=F,w.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},c.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},c.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(o){o?h.addCssClass(this.element,"ace_folding-enabled"):h.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=h.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},c.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),v=this.element.getBoundingClientRect();if(o.x<u.left+v.left)return"markers";if(this.$showFoldWidgets&&o.x>v.right-u.right)return"foldWidgets"},c}();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,f.implement(l.prototype,d);function a(c){var o=document.createTextNode("");c.appendChild(o);var u=h.createElement("span");c.appendChild(u);var v=h.createElement("span");c.appendChild(v);var b=h.createElement("span");return v.appendChild(b),c}i.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,i,p){var h=t("../range").Range,f=t("../lib/dom"),y=function(){function g(s){this.element=f.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setMarkers=function(s){this.markers=s},g.prototype.elt=function(s,l){var a=this.i!=-1&&this.element.childNodes[this.i];a?this.i++:(a=document.createElement("div"),this.element.appendChild(a),this.i=-1),a.style.cssText=l,a.className=s},g.prototype.update=function(s){if(s){this.config=s,this.i=0;var l;for(var a in this.markers){var c=this.markers[a];if(!c.range){c.update(l,this,this.session,s);continue}var o=c.range.clipRows(s.firstRow,s.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),c.renderer){var u=this.$getTop(o.start.row,s),v=this.$padding+o.start.column*s.characterWidth;c.renderer(l,o,v,u,s)}else c.type=="fullLine"?this.drawFullLineMarker(l,o,c.clazz,s):c.type=="screenLine"?this.drawScreenLineMarker(l,o,c.clazz,s):o.isMultiLine()?c.type=="text"?this.drawTextMarker(l,o,c.clazz,s):this.drawMultiLineMarker(l,o,c.clazz,s):this.drawSingleLineMarker(l,o,c.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(s,l){return(s-l.firstRowScreen)*l.lineHeight},g.prototype.drawTextMarker=function(s,l,a,c,o){for(var u=this.session,v=l.start.row,b=l.end.row,x=v,E=0,C=0,k=u.getScreenLastRowColumn(x),w=new h(x,l.start.column,x,C);x<=b;x++)w.start.row=w.end.row=x,w.start.column=x==v?l.start.column:u.getRowWrapIndent(x),w.end.column=k,E=C,C=k,k=x+1<b?u.getScreenLastRowColumn(x+1):x==b?0:l.end.column,this.drawSingleLineMarker(s,w,a+(x==v?" ace_start":"")+" ace_br"+d(x==v||x==v+1&&l.start.column,E<C,C>k,x==b),c,x==b?0:1,o)},g.prototype.drawMultiLineMarker=function(s,l,a,c,o){var u=this.$padding,v=c.lineHeight,b=this.$getTop(l.start.row,c),x=u+l.start.column*c.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var E=l.clone();E.end.row=E.start.row,E.end.column=this.session.getLine(E.start.row).length,this.drawBidiSingleLineMarker(s,E,a+" ace_br1 ace_start",c,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+v+"px;right:"+u+"px;top:"+b+"px;left:"+x+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var E=l.clone();E.start.row=E.end.row,E.start.column=0,this.drawBidiSingleLineMarker(s,E,a+" ace_br12",c,null,o)}else{b=this.$getTop(l.end.row,c);var C=l.end.column*c.characterWidth;this.elt(a+" ace_br12","height:"+v+"px;width:"+C+"px;top:"+b+"px;left:"+u+"px;"+(o||""))}if(v=(l.end.row-l.start.row-1)*c.lineHeight,!(v<=0)){b=this.$getTop(l.start.row+1,c);var k=(l.start.column?1:0)|(l.end.column?0:8);this.elt(a+(k?" ace_br"+k:""),"height:"+v+"px;right:"+u+"px;top:"+b+"px;left:"+u+"px;"+(o||""))}},g.prototype.drawSingleLineMarker=function(s,l,a,c,o,u){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(s,l,a,c,o,u);var v=c.lineHeight,b=(l.end.column+(o||0)-l.start.column)*c.characterWidth,x=this.$getTop(l.start.row,c),E=this.$padding+l.start.column*c.characterWidth;this.elt(a,"height:"+v+"px;width:"+b+"px;top:"+x+"px;left:"+E+"px;"+(u||""))},g.prototype.drawBidiSingleLineMarker=function(s,l,a,c,o,u){var v=c.lineHeight,b=this.$getTop(l.start.row,c),x=this.$padding,E=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);E.forEach(function(C){this.elt(a,"height:"+v+"px;width:"+(C.width+(o||0))+"px;top:"+b+"px;left:"+(x+C.left)+"px;"+(u||""))},this)},g.prototype.drawFullLineMarker=function(s,l,a,c,o){var u=this.$getTop(l.start.row,c),v=c.lineHeight;l.start.row!=l.end.row&&(v+=this.$getTop(l.end.row,c)-u),this.elt(a,"height:"+v+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g.prototype.drawScreenLineMarker=function(s,l,a,c,o){var u=this.$getTop(l.start.row,c),v=c.lineHeight;this.elt(a,"height:"+v+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g}();y.prototype.$padding=0;function d(g,s,l,a){return(g?1:0)|(s?2:0)|(l?4:0)|(a?8:0)}i.Marker=y}),ace.define("ace/layer/text_util",["require","exports","module"],function(t,i,p){var h=new Set(["text","rparen","lparen"]);i.isTextToken=function(f){return h.has(f)}}),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(t,i,p){var h=t("../lib/oop"),f=t("../lib/dom"),y=t("../lib/lang"),d=t("./lines").Lines,g=t("../lib/event_emitter").EventEmitter,s=t("../config").nls,l=t("./text_util").isTextToken,a=function(){function c(o){this.dom=f,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new d(this.element)}return c.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
|
208
|
+
`&&o.getNewLineMode()!="windows",v=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=v)return this.EOL_CHAR=v,!0},c.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},c.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},c.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],v=1;v<o+1;v++)if(this.showTabs){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_tab",b.textContent=y.stringRepeat(this.TAB_CHAR,v),u.push(b)}else u.push(this.dom.createTextNode(y.stringRepeat(" ",v),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",E=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?y.stringRepeat(this.SPACE_CHAR,this.tabSize):y.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",w=this.showTabs?y.stringRepeat(this.TAB_CHAR,this.tabSize):C,b=this.dom.createElement("span");b.className=x+E,b.textContent=C,this.$tabStrings[" "]=b;var b=this.dom.createElement("span");b.className=x+k,b.textContent=w,this.$tabStrings[" "]=b}},c.prototype.updateLines=function(o,u,v){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var b=Math.max(u,o.firstRow),x=Math.min(v,o.lastRow),E=this.element.childNodes,C=0,k=o.firstRow;k<b;k++){var w=this.session.getFoldLine(k);if(w)if(w.containsRow(b)){b=w.start.row;break}else k=w.end.row;C++}for(var T=!1,k=b,w=this.session.getNextFoldLine(k),L=w?w.start.row:1/0;k>L&&(k=w.end.row+1,w=this.session.getNextFoldLine(k,w),L=w?w.start.row:1/0),!(k>x);){var I=E[C++];if(I){this.dom.removeChildren(I),this.$renderLine(I,k,k==L?w:!1),T&&(I.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var A=o.lineHeight*this.session.getRowLength(k)+"px";I.style.height!=A&&(T=!0,I.style.height=A)}k++}if(T)for(;C<this.$lines.cells.length;){var N=this.$lines.cells[C++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},c.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var v=o.lastRow,b=u?u.lastRow:-1;if(!u||b<o.firstRow)return this.update(o);if(v<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var x=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);x>0;x--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(o,u,v){for(var b=[],x=u,E=this.session.getNextFoldLine(x),C=E?E.start.row:1/0;x>C&&(x=E.end.row+1,E=this.session.getNextFoldLine(x,E),C=E?E.start.row:1/0),!(x>v);){var k=this.$lines.createCell(x,o,this.session),w=k.element;this.dom.removeChildren(w),f.setStyle(w.style,"height",this.$lines.computeLineHeight(x,o,this.session)+"px"),f.setStyle(w.style,"top",this.$lines.computeLineTop(x,o,this.session)+"px"),this.$renderLine(w,x,x==C?E:!1),this.$useLineGroups()?w.className="ace_line_group":w.className="ace_line",b.push(k),x++}return b},c.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,v=o.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(o,u,v))},c.prototype.$renderToken=function(o,u,v,b){for(var x=this,E=/(\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,C=this.dom.createFragment(this.element),k,w=0;k=E.exec(b);){var T=k[1],L=k[2],I=k[3],A=k[4],N=k[5];if(!(!x.showSpaces&&L)){var S=w!=k.index?b.slice(w,k.index):"";if(w=k.index+k[0].length,S&&C.appendChild(this.dom.createTextNode(S,this.element)),T){var _=x.session.getScreenTabSize(u+k.index);C.appendChild(x.$tabStrings[_].cloneNode(!0)),u+=_-1}else if(L)if(x.showSpaces){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space",$.textContent=y.stringRepeat(x.SPACE_CHAR,L.length),C.appendChild($)}else C.appendChild(this.dom.createTextNode(L,this.element));else if(I){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space ace_invalid",$.textContent=y.stringRepeat(x.SPACE_CHAR,I.length),C.appendChild($)}else if(A){u+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",$.textContent=x.showSpaces?x.SPACE_CHAR:A,C.appendChild($)}else if(N){u+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className="ace_cjk",$.textContent=N,C.appendChild($)}}}if(C.appendChild(this.dom.createTextNode(w?b.slice(w):b,this.element)),l(v.type))o.appendChild(C);else{var R="ace_"+v.type.replace(/\./g," ace_"),$=this.dom.createElement("span");v.type=="fold"&&($.style.width=v.value.length*this.config.characterWidth+"px",$.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),$.className=R,$.appendChild(C),o.appendChild($)}return u+b.length},c.prototype.renderIndentGuide=function(o,u,v){var b=u.search(this.$indentGuideRe);if(b<=0||b>=v)return u;if(u[0]==" "){b-=b%this.tabSize;for(var x=b/this.tabSize,E=0;E<x;E++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(b)}else if(u[0]==" "){for(var E=0;E<b;E++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(b)}return this.$highlightIndentGuide(),u},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),v=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,b=Math.floor(v/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:b,start:u.row};var x=this.session.$bracketHighlight;if(x){for(var E=this.session.$bracketHighlight.ranges,C=0;C<E.length;C++)if(u.row!==E[C].start.row){this.$highlightIndentGuideMarker.end=E[C].start.row,u.row>E[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=u.row+1;C<o.length;C++){var k=o[C],w=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=C,w<=v))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var v=o[u],b=v.element.childNodes;if(b.length>0){for(var x=0;x<b.length;x++)if(b[x].classList&&b[x].classList.contains("ace_indent-guide-active")){b[x].classList.remove("ace_indent-guide-active");break}}}},c.prototype.$setIndentGuideActive=function(o,u){var v=this.session.doc.getLine(o.row);if(v!==""){var b=o.element.childNodes;if(b){var x=b[u-1];x&&x.classList&&x.classList.contains("ace_indent-guide")&&x.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var v=0;v<o.length;v++){var b=o[v];if(this.$highlightIndentGuideMarker.end&&b.row>=this.$highlightIndentGuideMarker.start+1){if(b.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,u)}}else for(var v=o.length-1;v>=0;v--){var b=o[v];if(this.$highlightIndentGuideMarker.end&&b.row<this.$highlightIndentGuideMarker.start){if(b.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,u)}}}},c.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},c.prototype.$renderWrappedLine=function(o,u,v){var b=0,x=0,E=v[0],C=0,k=this.$createLineElement();o.appendChild(k);for(var w=0;w<u.length;w++){var T=u[w],L=T.value;if(w==0&&this.displayIndentGuides){if(b=L.length,L=this.renderIndentGuide(k,L,E),!L)continue;b-=L.length}if(b+L.length<E)C=this.$renderToken(k,C,T,L),b+=L.length;else{for(;b+L.length>=E;)C=this.$renderToken(k,C,T,L.substring(0,E-b)),L=L.substring(E-b),b=E,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(y.stringRepeat(" ",v.indent),this.element)),x++,C=0,E=v[x]||Number.MAX_VALUE;L.length!=0&&(b+=L.length,C=this.$renderToken(k,C,T,L))}}v[v.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,C,null,"",!0)},c.prototype.$renderSimpleLine=function(o,u){for(var v=0,b=0;b<u.length;b++){var x=u[b],E=x.value;if(!(b==0&&this.displayIndentGuides&&(E=this.renderIndentGuide(o,E),!E))){if(v+E.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,v,x,E);v=this.$renderToken(o,v,x,E)}}},c.prototype.$renderOverflowMessage=function(o,u,v,b,x){v&&this.$renderToken(o,u,v,b.slice(0,this.MAX_LINE_LENGTH-u));var E=this.dom.createElement("span");E.className="ace_inline_button ace_keyword ace_toggle_wrap",E.textContent=x?"<hide>":"<click to see more...>",o.appendChild(E)},c.prototype.$renderLine=function(o,u,v){if(!v&&v!=!1&&(v=this.session.getFoldLine(u)),v)var b=this.$getFoldLineTokens(u,v);else var b=this.session.getTokens(u);var x=o;if(b.length){var E=this.session.getRowSplitData(u);if(E&&E.length){this.$renderWrappedLine(o,b,E);var x=o.lastChild}else{var x=o;this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x)),this.$renderSimpleLine(x,b)}}else this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x));if(this.showEOL&&x){v&&(u=v.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(C)}},c.prototype.$getFoldLineTokens=function(o,u){var v=this.session,b=[];function x(C,k,w){for(var T=0,L=0;L+C[T].value.length<k;)if(L+=C[T].value.length,T++,T==C.length)return;if(L!=k){var I=C[T].value.substring(k-L);I.length>w-k&&(I=I.substring(0,w-k)),b.push({type:C[T].type,value:I}),L=k+I.length,T+=1}for(;L<w&&T<C.length;){var I=C[T].value;I.length+L>w?b.push({type:C[T].type,value:I.substring(0,w-L)}):b.push(C[T]),L+=I.length,T+=1}}var E=v.getTokens(o);return u.walk(function(C,k,w,T,L){C!=null?b.push({type:"fold",value:C}):(L&&(E=v.getTokens(k)),E.length&&x(E,T,w))},u.end.row,this.session.getLine(u.end.row).length),b},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();a.prototype.EOF_CHAR="¶",a.prototype.EOL_CHAR_LF="¬",a.prototype.EOL_CHAR_CRLF="¤",a.prototype.EOL_CHAR=a.prototype.EOL_CHAR_LF,a.prototype.TAB_CHAR="—",a.prototype.SPACE_CHAR="·",a.prototype.$padding=0,a.prototype.MAX_LINE_LENGTH=1e4,a.prototype.showInvisibles=!1,a.prototype.showSpaces=!1,a.prototype.showTabs=!1,a.prototype.showEOL=!1,a.prototype.displayIndentGuides=!0,a.prototype.$highlightIndentGuides=!0,a.prototype.$tabStrings=[],a.prototype.destroy={},a.prototype.onChangeTabSize=a.prototype.$computeTabString,h.implement(a.prototype,g),i.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,i,p){var h=t("../lib/dom"),f=function(){function y(d){this.element=h.createElement("div"),this.element.className="ace_layer ace_cursor-layer",d.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),h.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return y.prototype.$updateOpacity=function(d){for(var g=this.cursors,s=g.length;s--;)h.setStyle(g[s].style,"opacity",d?"":"0")},y.prototype.$startCssAnimation=function(){for(var d=this.cursors,g=d.length;g--;)d[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&h.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},y.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,h.removeCssClass(this.element,"ace_animate-blinking")},y.prototype.setPadding=function(d){this.$padding=d},y.prototype.setSession=function(d){this.session=d},y.prototype.setBlinking=function(d){d!=this.isBlinking&&(this.isBlinking=d,this.restartTimer())},y.prototype.setBlinkInterval=function(d){d!=this.blinkInterval&&(this.blinkInterval=d,this.restartTimer())},y.prototype.setSmoothBlinking=function(d){d!=this.smoothBlinking&&(this.smoothBlinking=d,h.setCssClass(this.element,"ace_smooth-blinking",d),this.$updateCursors(!0),this.restartTimer())},y.prototype.addCursor=function(){var d=h.createElement("div");return d.className="ace_cursor",this.element.appendChild(d),this.cursors.push(d),d},y.prototype.removeCursor=function(){if(this.cursors.length>1){var d=this.cursors.pop();return d.parentNode.removeChild(d),d}},y.prototype.hideCursor=function(){this.isVisible=!1,h.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},y.prototype.showCursor=function(){this.isVisible=!0,h.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},y.prototype.restartTimer=function(){var d=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,h.removeCssClass(this.element,"ace_smooth-blinking")),d(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&h.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),h.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var g=(function(){this.timeoutId=setTimeout(function(){d(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){d(!0),g()},this.blinkInterval),g()}},y.prototype.getPixelPosition=function(d,g){if(!this.config||!this.session)return{left:0,top:0};d||(d=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(d),l=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,d.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:a}},y.prototype.isCursorInView=function(d,g){return d.top>=0&&d.top<g.maxHeight},y.prototype.update=function(d){this.config=d;var g=this.session.$selectionMarkers,s=0,l=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var s=0,a=g.length;s<a;s++){var c=this.getPixelPosition(g[s].cursor,!0);if(!((c.top>d.height+d.offset||c.top<0)&&s>1)){var o=this.cursors[l++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,c,d,g[s],this.session):this.isCursorInView(c,d)?(h.setStyle(u,"display","block"),h.translate(o,c.left,c.top),h.setStyle(u,"width",Math.round(d.characterWidth)+"px"),h.setStyle(u,"height",d.lineHeight+"px")):h.setStyle(u,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var v=this.session.getOverwrite();this.$setOverwrite(v),this.$pixelPos=c,this.restartTimer()},y.prototype.$setOverwrite=function(d){d!=this.overwrite&&(this.overwrite=d,d?h.addCssClass(this.element,"ace_overwrite-cursors"):h.removeCssClass(this.element,"ace_overwrite-cursors"))},y.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},y}();f.prototype.$padding=0,f.prototype.drawCursor=null,i.Cursor=f}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,i,p){var h=this&&this.__extends||function(){var o=function(u,v){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(b[E]=x[E])},o(u,v)};return function(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");o(u,v);function b(){this.constructor=u}u.prototype=v===null?Object.create(v):(b.prototype=v.prototype,new b)}}(),f=t("./lib/oop"),y=t("./lib/dom"),d=t("./lib/event"),g=t("./lib/event_emitter").EventEmitter,s=32768,l=function(){function o(u,v){this.element=y.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+v,this.inner=y.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addListener(this.element,"scroll",this.onScroll.bind(this)),d.addListener(this.element,"mousedown",d.preventDefault)}return o.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},o}();f.implement(l.prototype,g);var a=function(o){h(u,o);function u(v,b){var x=o.call(this,v,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,b.$scrollbarWidth=x.width=y.scrollbarWidth(v.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return u.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var v=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-v)/(this.coeff-v)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(v){this.element.style.height=v+"px"},u.prototype.setScrollHeight=function(v){this.scrollHeight=v,v>s?(this.coeff=s/v,v=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=v+"px"},u.prototype.setScrollTop=function(v){this.scrollTop!=v&&(this.skipEvent=!0,this.scrollTop=v,this.element.scrollTop=v*this.coeff)},u}(l);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var c=function(o){h(u,o);function u(v,b){var x=o.call(this,v,"-h")||this;return x.scrollLeft=0,x.height=b.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return u.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.setWidth=function(v){this.element.style.width=v+"px"},u.prototype.setInnerWidth=function(v){this.inner.style.width=v+"px"},u.prototype.setScrollWidth=function(v){this.inner.style.width=v+"px"},u.prototype.setScrollLeft=function(v){this.scrollLeft!=v&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=v)},u}(l);i.ScrollBar=a,i.ScrollBarV=a,i.ScrollBarH=c,i.VScrollBar=a,i.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,i,p){var h=this&&this.__extends||function(){var c=function(o,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(v[x]=b[x])},c(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(o,u);function v(){this.constructor=o}o.prototype=u===null?Object.create(u):(v.prototype=u.prototype,new v)}}(),f=t("./lib/oop"),y=t("./lib/dom"),d=t("./lib/event"),g=t("./lib/event_emitter").EventEmitter;y.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 s=function(){function c(o,u){this.element=y.createElement("div"),this.element.className="ace_sb"+u,this.inner=y.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},c}();f.implement(s.prototype,g);var l=function(c){h(o,c);function o(u,v){var b=c.call(this,u,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,b.parent=u,b.width=b.VScrollWidth,b.renderer=v,b.inner.style.width=b.element.style.width=(b.width||15)+"px",b.$minWidth=0,b}return o.prototype.onMouseDown=function(u,v){if(u==="mousedown"&&!(d.getButton(v)!==0||v.detail===2)){if(v.target===this.inner){var b=this,x=v.clientY,E=function(A){x=A.clientY},C=function(){clearInterval(L)},k=v.clientY,w=this.thumbTop,T=function(){if(x!==void 0){var A=b.scrollTopFromThumbTop(w+x-k);A!==b.scrollTop&&b._emit("scroll",{data:A})}};d.capture(this.inner,E,C);var L=setInterval(T,20);return d.preventDefault(v)}var I=v.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),d.preventDefault(v)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var v=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return v=v>>0,v<0?v=0:v>this.pageHeight-this.viewHeight&&(v=this.pageHeight-this.viewHeight),v},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(u,v){this.pageHeight===u&&!v||(this.pageHeight=u,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})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(s);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var a=function(c){h(o,c);function o(u,v){var b=c.call(this,u,"-h")||this;return b.scrollLeft=0,b.scrollWidth=0,b.height=b.HScrollHeight,b.inner.style.height=b.element.style.height=(b.height||12)+"px",b.renderer=v,b}return o.prototype.onMouseDown=function(u,v){if(u==="mousedown"&&!(d.getButton(v)!==0||v.detail===2)){if(v.target===this.inner){var b=this,x=v.clientX,E=function(A){x=A.clientX},C=function(){clearInterval(L)},k=v.clientX,w=this.thumbLeft,T=function(){if(x!==void 0){var A=b.scrollLeftFromThumbLeft(w+x-k);A!==b.scrollLeft&&b._emit("scroll",{data:A})}};d.capture(this.inner,E,C);var L=setInterval(T,20);return d.preventDefault(v)}var I=v.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),d.preventDefault(v)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var v=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return v=v>>0,v<0?v=0:v>this.pageWidth-this.viewWidth&&(v=this.pageWidth-this.viewWidth),v},o.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(u,v){this.pageWidth===u&&!v||(this.pageWidth=u,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})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(s);a.prototype.setInnerWidth=a.prototype.setScrollWidth,i.ScrollBar=l,i.ScrollBarV=l,i.ScrollBarH=a,i.VScrollBar=l,i.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(t,i,p){var h=t("./lib/event"),f=function(){function y(d,g){this.onRender=d,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var s=this;this._flush=function(l){s.pending=!1;var a=s.changes;if(a&&(h.blockIdle(100),s.changes=0,s.onRender(a)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return y.prototype.schedule=function(d){this.changes=this.changes|d,this.changes&&!this.pending&&(h.nextFrame(this._flush),this.pending=!0)},y.prototype.clear=function(d){var g=this.changes;return this.changes=0,g},y}();i.RenderLoop=f}),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(t,i,p){var h=t("../lib/oop"),f=t("../lib/dom"),y=t("../lib/lang"),d=t("../lib/event"),g=t("../lib/useragent"),s=t("../lib/event_emitter").EventEmitter,l=512,a=typeof ResizeObserver=="function",c=200,o=function(){function u(v){this.el=f.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=f.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=f.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),v.appendChild(this.el),this.$measureNode.textContent=y.stringRepeat("X",l),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(v,b){v.width=v.height="auto",v.left=v.top="0px",v.visibility="hidden",v.position="absolute",v.whiteSpace="pre",g.isIE<8?v["font-family"]="inherit":v.font="inherit",v.overflow=b?"hidden":"visible"},u.prototype.checkForSizeChanges=function(v){if(v===void 0&&(v=this.$measureSizes()),v&&(this.$characterSize.width!==v.width||this.$characterSize.height!==v.height)){this.$measureNode.style.fontWeight="bold";var b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=v,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===v.width&&b.height===v.height,this._emit("changeCharacterSize",{data:v})}},u.prototype.$addObserver=function(){var v=this;this.$observer=new window.ResizeObserver(function(b){v.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var v=this;return this.$pollSizeChangesTimer=d.onIdle(function b(){v.checkForSizeChanges(),d.onIdle(b,500)},500)},u.prototype.setPolling=function(v){v?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(v){var b={height:(v||this.$measureNode).clientHeight,width:(v||this.$measureNode).clientWidth/l};return b.width===0||b.height===0?null:b},u.prototype.$measureCharWidth=function(v){this.$main.textContent=y.stringRepeat(v,l);var b=this.$main.getBoundingClientRect();return b.width/l},u.prototype.getCharacterWidth=function(v){var b=this.charSizes[v];return b===void 0&&(b=this.charSizes[v]=this.$measureCharWidth(v)/this.$characterSize.width),b},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(v){return!v||!v.parentElement?1:(Number(window.getComputedStyle(v).zoom)||1)*this.$getZoom(v.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var v=function(b,x){return["div",{style:"position: absolute;top:"+b+"px;left:"+x+"px;"}]};this.els=f.buildDom([v(0,0),v(c,0),v(0,c),v(c,c)],this.el)},u.prototype.transformCoordinates=function(v,b){if(v){var x=this.$getZoom(this.el);v=w(1/x,v)}function E(V,q,X){var G=V[1]*q[0]-V[0]*q[1];return[(-q[1]*X[0]+q[0]*X[1])/G,(+V[1]*X[0]-V[0]*X[1])/G]}function C(V,q){return[V[0]-q[0],V[1]-q[1]]}function k(V,q){return[V[0]+q[0],V[1]+q[1]]}function w(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function T(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var L=T(this.els[0]),I=T(this.els[1]),A=T(this.els[2]),N=T(this.els[3]),S=E(C(N,I),C(N,A),C(k(I,A),k(N,L))),_=w(1+S[0],C(I,L)),$=w(1+S[1],C(A,L));if(b){var R=b,O=S[0]*R[0]/c+S[1]*R[1]/c+1,F=k(w(R[0],_),w(R[1],$));return k(w(1/O/c,F),L)}var H=C(v,L),W=E(C(_,w(S[0],H)),C($,w(S[1],H)),H);return w(c,W)},u}();o.prototype.$characterSize={width:0,height:0},h.implement(o.prototype,s),i.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(t,i,p){p.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 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(t,i,p){var h=t("../lib/dom"),f=t("../lib/oop"),y=t("../lib/event_emitter").EventEmitter,d=function(){function g(s,l){this.canvas=h.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.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)"},s.element.appendChild(this.canvas)}return g.prototype.$updateDecorators=function(s){var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var a=(s.lastRow+1)*this.lineHeight;a<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var c=this.canvas.getContext("2d");function o(N,S){return N.priority<S.priority?-1:N.priority>S.priority?1:0}var u=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),u){var v={info:1,warning:2,error:3};u.forEach(function(N){N.priority=v[N.type]||null}),u=u.sort(o);for(var b=this.renderer.session.$foldData,x=0;x<u.length;x++){var E=u[x].row,C=this.compensateFoldRows(E,b),k=Math.round((E-C)*this.lineHeight*this.heightRatio),w=Math.round((E-C)*this.lineHeight*this.heightRatio),T=Math.round(((E-C)*this.lineHeight+this.lineHeight)*this.heightRatio),L=T-w;if(L<this.minDecorationHeight){var I=(w+T)/2|0;I<this.halfMinDecorationHeight?I=this.halfMinDecorationHeight:I+this.halfMinDecorationHeight>this.canvasHeight&&(I=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(I-this.halfMinDecorationHeight),T=Math.round(I+this.halfMinDecorationHeight)}c.fillStyle=l[u[x].type]||null,c.fillRect(0,k,this.canvasWidth,T-w)}}var A=this.renderer.session.selection.getCursor();if(A){var C=this.compensateFoldRows(A.row,b),k=Math.round((A.row-C)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,k,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(s,l){var a=0;if(l&&l.length>0)for(var c=0;c<l.length;c++)s>l[c].start.row&&s<l[c].end.row?a+=s-l[c].start.row:s>=l[c].end.row&&(a+=l[c].end.row-l[c].start.row);return a},g}();f.implement(d.prototype,y),i.Decorator=d}),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(t,i,p){var h=t("./lib/oop"),f=t("./lib/dom"),y=t("./lib/lang"),d=t("./config"),g=t("./layer/gutter").Gutter,s=t("./layer/marker").Marker,l=t("./layer/text").Text,a=t("./layer/cursor").Cursor,c=t("./scrollbar").HScrollBar,o=t("./scrollbar").VScrollBar,u=t("./scrollbar_custom").HScrollBar,v=t("./scrollbar_custom").VScrollBar,b=t("./renderloop").RenderLoop,x=t("./layer/font_metrics").FontMetrics,E=t("./lib/event_emitter").EventEmitter,C=t("./css/editor-css"),k=t("./layer/decorators").Decorator,w=t("./lib/useragent"),T=t("./layer/text_util").isTextToken;f.importCssString(C,"ace_editor.css",!1);var L=function(){function I(A,N){var S=this;this.container=A||f.createElement("div"),f.addCssClass(this.container,"ace_editor"),f.HI_DPI&&f.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),d.get("useStrictCSP")==null&&d.set("useStrictCSP",!1),this.$gutter=f.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=f.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=f.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var _=this.$textLayer=new l(this.content);this.canvas=_.element,this.$markerFront=new s(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function($){S.$scrollAnimation||S.session.setScrollTop($.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){S.$scrollAnimation||S.session.setScrollLeft($.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",$)}),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=!w.isIOS,this.$loop=new b(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),d.resetOptions(this),d._signal("renderer",this)}return I.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(),f.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},I.prototype.setSession=function(A){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=A,A&&this.scrollMargin.top&&A.getScrollTop()<=0&&A.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(A),this.$markerBack.setSession(A),this.$markerFront.setSession(A),this.$gutterLayer.setSession(A),this.$textLayer.setSession(A),A&&(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))},I.prototype.updateLines=function(A,N,S){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>A&&(this.$changedLines.firstRow=A),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:A,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(S)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},I.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},I.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},I.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},I.prototype.updateFull=function(A){A?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},I.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},I.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},I.prototype.onResize=function(A,N,S,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=A?1:0;var $=this.container;_||(_=$.clientHeight||$.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",_=$.clientHeight||$.scrollHeight),S||(S=$.clientWidth||$.scrollWidth);var R=this.$updateCachedSize(A,N,S,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!S&&!_)return this.resizing=0;A&&(this.$gutterLayer.$padding=null),A?this.$renderChanges(R|this.$changes,!0):this.$loop.schedule(R|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(A,N,S,_){_-=this.$extraHeight||0;var $=0,R=this.$size,O={width:R.width,height:R.height,scrollerHeight:R.scrollerHeight,scrollerWidth:R.scrollerWidth};if(_&&(A||R.height!=_)&&(R.height=_,$|=this.CHANGE_SIZE,R.scrollerHeight=R.height,this.$horizScroll&&(R.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(R.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),S&&(A||R.width!=S)){$|=this.CHANGE_SIZE,R.width=S,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,f.setStyle(this.scrollBarH.element.style,"left",N+"px"),f.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),R.scrollerWidth=Math.max(0,S-N-this.scrollBarV.getWidth()-this.margin.h),f.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";f.setStyle(this.scrollBarH.element.style,"right",F),f.setStyle(this.scroller.style,"right",F),f.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(R.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||A)&&($|=this.CHANGE_FULL)}return R.$dirty=!S||!_,$&&this._signal("resize",O),$},I.prototype.onGutterResize=function(A){var N=this.$showGutter?A:0;N!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,N,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()},I.prototype.adjustWrapLimit=function(){var A=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(A/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},I.prototype.setAnimatedScroll=function(A){this.setOption("animatedScroll",A)},I.prototype.getAnimatedScroll=function(){return this.$animatedScroll},I.prototype.setShowInvisibles=function(A){this.setOption("showInvisibles",A),this.session.$bidiHandler.setShowInvisibles(A)},I.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},I.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},I.prototype.setDisplayIndentGuides=function(A){this.setOption("displayIndentGuides",A)},I.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},I.prototype.setHighlightIndentGuides=function(A){this.setOption("highlightIndentGuides",A)},I.prototype.setShowPrintMargin=function(A){this.setOption("showPrintMargin",A)},I.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},I.prototype.setPrintMarginColumn=function(A){this.setOption("printMarginColumn",A)},I.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},I.prototype.getShowGutter=function(){return this.getOption("showGutter")},I.prototype.setShowGutter=function(A){return this.setOption("showGutter",A)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},I.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var A=f.createElement("div");A.className="ace_layer ace_print-margin-layer",this.$printMarginEl=f.createElement("div"),this.$printMarginEl.className="ace_print-margin",A.appendChild(this.$printMarginEl),this.content.insertBefore(A,this.content.firstChild)}var N=this.$printMarginEl.style;N.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",N.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},I.prototype.getContainerElement=function(){return this.container},I.prototype.getMouseEventTarget=function(){return this.scroller},I.prototype.getTextAreaContainer=function(){return this.container},I.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var A=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){f.translate(this.textarea,-100,0);return}var S=this.$cursorLayer.$pixelPos;if(S){N&&N.markerRange&&(S=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,$=S.top,R=S.left;$-=_.offset;var O=N&&N.useTextareaForIME||w.isMobile?this.lineHeight:1;if($<0||$>_.height-O){f.translate(this.textarea,0,0);return}var F=1,H=this.$size.height-O;if(!N)$+=this.lineHeight;else if(N.useTextareaForIME){var W=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(W)[0]}else $+=this.lineHeight+2;R-=this.scrollLeft,R>this.$size.scrollerWidth-F&&(R=this.$size.scrollerWidth-F),R+=this.gutterWidth+this.margin.left,f.setStyle(A,"height",O+"px"),f.setStyle(A,"width",F+"px"),f.translate(this.textarea,Math.min(R,this.$size.scrollerWidth-F),Math.min($,H))}}},I.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},I.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},I.prototype.getLastFullyVisibleRow=function(){var A=this.layerConfig,N=A.lastRow,S=this.session.documentToScreenRow(N,0)*A.lineHeight;return S-this.session.getScrollTop()>A.height-A.lineHeight?N-1:N},I.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},I.prototype.setPadding=function(A){this.$padding=A,this.$textLayer.setPadding(A),this.$cursorLayer.setPadding(A),this.$markerFront.setPadding(A),this.$markerBack.setPadding(A),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},I.prototype.setScrollMargin=function(A,N,S,_){var $=this.scrollMargin;$.top=A|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},I.prototype.setMargin=function(A,N,S,_){var $=this.margin;$.top=A|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},I.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},I.prototype.setHScrollBarAlwaysVisible=function(A){this.setOption("hScrollBarAlwaysVisible",A)},I.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},I.prototype.setVScrollBarAlwaysVisible=function(A){this.setOption("vScrollBarAlwaysVisible",A)},I.prototype.$updateScrollBarV=function(){var A=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(A-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>A-N&&(A=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(A+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},I.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},I.prototype.freeze=function(){this.$frozen=!0},I.prototype.unfreeze=function(){this.$frozen=!1},I.prototype.$renderChanges=function(A,N){if(this.$changes&&(A|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!A&&!N){this.$changes|=A;return}if(this.$size.$dirty)return this.$changes|=A,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",A),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var S=this.layerConfig;if(A&this.CHANGE_FULL||A&this.CHANGE_SIZE||A&this.CHANGE_TEXT||A&this.CHANGE_LINES||A&this.CHANGE_SCROLL||A&this.CHANGE_H_SCROLL){if(A|=this.$computeLayerConfig()|this.$loop.clear(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(S.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,A=A|this.CHANGE_SCROLL,A|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),A&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),f.translate(this.content,-this.scrollLeft,-S.offset);var $=S.width+2*this.$padding+"px",R=S.minHeight+"px";f.setStyle(this.content.style,"width",$),f.setStyle(this.content.style,"height",R)}if(A&this.CHANGE_H_SCROLL&&(f.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),A&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}if(A&this.CHANGE_SCROLL){this.$changedLines=null,A&this.CHANGE_TEXT||A&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(A&this.CHANGE_GUTTER||A&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",A);return}A&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):A&this.CHANGE_LINES?((this.$updateLines()||A&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):A&this.CHANGE_TEXT||A&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):A&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)),A&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),A&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),this._signal("afterRender",A)},I.prototype.$autosize=function(){var A=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,S=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,A))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var _=S<=2*this.lineHeight,$=!_&&A>N;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var R=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,R,S),this.desiredHeight=S,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var A=this.session,N=this.$size,S=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),$=_*this.lineHeight,R=this.$getLongestLine(),O=!S&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-R-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var H=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var W=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,$-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,R+2*this.$padding-N.scrollerWidth+q.right)));var X=!S&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-$+V<0||this.scrollTop>q.top),G=H!==X;G&&(this.$vScroll=X,this.scrollBarV.setVisible(X));var Z=this.scrollTop%this.lineHeight,ie=Math.ceil(W/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+ie,me,ye,fe=this.lineHeight;J=A.screenToDocumentRow(J,0);var Ce=A.getFoldLine(J);Ce&&(J=Ce.start.row),me=A.documentToScreenRow(J,0),ye=A.getRowLength(J)*fe,ae=Math.min(A.screenToDocumentRow(ae,0),A.getLength()-1),W=N.scrollerHeight+A.getRowLength(ae)*fe+ye,Z=this.scrollTop-me*fe;var lt=0;return(this.layerConfig.width!=R||F)&&(lt=this.CHANGE_H_SCROLL),(F||G)&&(lt|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(R=this.$getLongestLine())),this.layerConfig={width:R,padding:this.$padding,firstRow:J,firstRowScreen:me,lastRow:ae,lineHeight:fe,characterWidth:this.characterWidth,minHeight:W,maxHeight:$,offset:Z,gutterOffset:fe?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/fe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(R-this.$padding),lt},I.prototype.$updateLines=function(){if(this.$changedLines){var A=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(A>S.lastRow+1)&&!(N<S.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(S),this.$textLayer.update(S);return}return this.$textLayer.updateLines(S,A,N),!0}}},I.prototype.$getLongestLine=function(){var A=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(A+=1),this.$textLayer&&A>this.$textLayer.MAX_LINE_LENGTH&&(A=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(A*this.characterWidth))},I.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},I.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},I.prototype.addGutterDecoration=function(A,N){this.$gutterLayer.addGutterDecoration(A,N)},I.prototype.removeGutterDecoration=function(A,N){this.$gutterLayer.removeGutterDecoration(A,N)},I.prototype.updateBreakpoints=function(A){this._rows=A,this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.setAnnotations=function(A){this.$gutterLayer.setAnnotations(A),this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},I.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},I.prototype.showCursor=function(){this.$cursorLayer.showCursor()},I.prototype.scrollSelectionIntoView=function(A,N,S){this.scrollCursorIntoView(A,S),this.scrollCursorIntoView(N,S)},I.prototype.scrollCursorIntoView=function(A,N,S){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(A),$=_.left,R=_.top,O=S&&S.top||0,F=S&&S.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var H=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;H+O>R?(N&&H+O>R+this.lineHeight&&(R-=N*this.$size.scrollerHeight),R===0&&(R=-this.scrollMargin.top),this.session.setScrollTop(R)):H+this.$size.scrollerHeight-F<R+this.lineHeight&&(N&&H+this.$size.scrollerHeight-F<R-this.lineHeight&&(R+=N*this.$size.scrollerHeight),this.session.setScrollTop(R+this.lineHeight+F-this.$size.scrollerHeight));var W=this.scrollLeft,V=2*this.layerConfig.characterWidth;$-V<W?($-=V,$<this.$padding+V&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=V,W+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):W<=this.$padding&&$-W<this.characterWidth&&this.session.setScrollLeft(0))}},I.prototype.getScrollTop=function(){return this.session.getScrollTop()},I.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},I.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},I.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},I.prototype.scrollToRow=function(A){this.session.setScrollTop(A*this.lineHeight)},I.prototype.alignCursor=function(A,N){typeof A=="number"&&(A={row:A,column:0});var S=this.$cursorLayer.getPixelPosition(A),_=this.$size.scrollerHeight-this.lineHeight,$=S.top-_*(N||0);return this.session.setScrollTop($),$},I.prototype.$calcSteps=function(A,N){var S=0,_=this.STEPS,$=[],R=function(O,F,H){return H*(Math.pow(O-1,3)+1)+F};for(S=0;S<_;++S)$.push(R(S/this.STEPS,A,N-A));return $},I.prototype.scrollToLine=function(A,N,S,_){var $=this.$cursorLayer.getPixelPosition({row:A,column:0}),R=$.top;N&&(R-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(R),S!==!1&&this.animateScrolling(O,_)},I.prototype.animateScrolling=function(A,N){var S=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(A==S)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(A=$[0],A==S))return}var R=_.$calcSteps(A,S);this.$scrollAnimation={from:A,to:S,steps:R},clearInterval(this.$timer),_.session.setScrollTop(R.shift()),_.session.$scrollTop=S;function O(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){O();return}if(!_.session)return clearInterval(_.$timer);R.length?(_.session.setScrollTop(R.shift()),_.session.$scrollTop=S):S!=null?(_.session.$scrollTop=-1,_.session.setScrollTop(S),S=null):O()},10)},I.prototype.scrollToY=function(A){this.scrollTop!==A&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=A)},I.prototype.scrollToX=function(A){this.scrollLeft!==A&&(this.scrollLeft=A),this.$loop.schedule(this.CHANGE_H_SCROLL)},I.prototype.scrollTo=function(A,N){this.session.setScrollTop(N),this.session.setScrollLeft(A)},I.prototype.scrollBy=function(A,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),A&&this.session.setScrollLeft(this.session.getScrollLeft()+A)},I.prototype.isScrollableBy=function(A,N){if(N<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||N>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||A<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||A>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},I.prototype.pixelToScreenCoordinates=function(A,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([A,N]);A=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=A+this.scrollLeft-S.left-this.$padding,R=$/this.characterWidth,O=Math.floor((N+this.scrollTop-S.top)/this.lineHeight),F=this.$blockCursor?Math.floor(R):Math.round(R);return{row:O,column:F,side:R-F>0?1:-1,offsetX:$}},I.prototype.screenToTextCoordinates=function(A,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([A,N]);A=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=A+this.scrollLeft-S.left-this.$padding,R=$/this.characterWidth,O=this.$blockCursor?Math.floor(R):Math.round(R),F=Math.floor((N+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),$)},I.prototype.textToScreenCoordinates=function(A,N){var S=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(A,N),$=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,A)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),R=_.row*this.lineHeight;return{pageX:S.left+$-this.scrollLeft,pageY:S.top+R-this.scrollTop}},I.prototype.visualizeFocus=function(){f.addCssClass(this.container,"ace_focus")},I.prototype.visualizeBlur=function(){f.removeCssClass(this.container,"ace_focus")},I.prototype.showComposition=function(A){this.$composition=A,A.cssText||(A.cssText=this.textarea.style.cssText),A.useTextareaForIME==null&&(A.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(f.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):A.markerId=this.session.addMarker(A.markerRange,"ace_composition_marker","text")},I.prototype.setCompositionText=function(A){var N=this.session.selection.cursor;this.addToken(A,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},I.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),f.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var A=this.session.selection.cursor;this.removeExtraToken(A.row,A.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},I.prototype.setGhostText=function(A,N){var S=this.session.selection.cursor,_=N||{row:S.row,column:S.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(A,_);this.addToken($[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:A,position:{row:_.row,column:_.column}};var R=f.createElement("div");if($.length>1){var O=this.hideTokensAfterPosition(_.row,_.column),F;$.slice(1).forEach(function(G){var Z=f.createElement("div"),ie=f.createElement("span");ie.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),ie.appendChild(f.createTextNode(G.text)),Z.appendChild(ie),R.appendChild(Z),F=Z}),O.forEach(function(G){var Z=f.createElement("span");T(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(f.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:R,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var H=this.$cursorLayer.getPixelPosition(_,!0),W=this.container,V=W.getBoundingClientRect().height,q=$.length*this.lineHeight,X=q<V-H.top;if(X)return;q<V?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(_.row)}},I.prototype.$calculateWrappedTextChunks=function(A,N){var S=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(S/this.characterWidth)-2;_=_<=0?60:_;for(var $=A.split(/\r?\n/),R=[],O=0;O<$.length;O++){var F=this.session.$getDisplayTokens($[O],N.column),H=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(H.length>0){var W=0;H.push($[O].length);for(var V=0;V<H.length;V++){var q=$[O].slice(W,H[V]);R.push({text:q,wrapped:!0}),W=H[V]}}else R.push({text:$[O],wrapped:!1})}return R},I.prototype.removeGhostText=function(){if(this.$ghostText){var A=this.$ghostText.position;this.removeExtraToken(A.row,A.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},I.prototype.addToken=function(A,N,S,_){var $=this.session;$.bgTokenizer.lines[S]=null;var R={type:N,value:A},O=$.getTokens(S);if(_==null||!O.length)O.push(R);else for(var F=0,H=0;H<O.length;H++){var W=O[H];if(F+=W.value.length,_<=F){var V=W.value.length-(F-_),q=W.value.slice(0,V),X=W.value.slice(V);O.splice(H,1,{type:W.type,value:q},R,{type:W.type,value:X});break}}this.updateLines(S,S)},I.prototype.hideTokensAfterPosition=function(A,N){for(var S=this.session.getTokens(A),_=0,$=!1,R=[],O=0;O<S.length;O++){var F=S[O];if(_+=F.value.length,F.type!=="ghost_text"){if($){R.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&($=!0)}}return this.updateLines(A,A),R},I.prototype.removeExtraToken=function(A,N){this.session.bgTokenizer.lines[A]=null,this.updateLines(A,A)},I.prototype.setTheme=function(A,N){var S=this;if(this.$themeId=A,S._dispatchEvent("themeChange",{theme:A}),!A||typeof A=="string"){var _=A||this.$options.theme.initialValue;d.loadModule(["theme",_],$)}else $(A);function $(R){if(S.$themeId!=A)return N&&N();if(!R||!R.cssClass)throw new Error("couldn't load module "+A+" or it didn't call define");R.$id&&(S.$themeId=R.$id),f.importCssString(R.cssText,R.cssClass,S.container),S.theme&&f.removeCssClass(S.container,S.theme.cssClass);var O="padding"in R?R.padding:"padding"in(S.theme||{})?4:S.$padding;S.$padding&&O!=S.$padding&&S.setPadding(O),S.$theme=R.cssClass,S.theme=R,f.addCssClass(S.container,R.cssClass),f.setCssClass(S.container,"ace_dark",R.isDark),S.$size&&(S.$size.width=0,S.$updateSizeAsync()),S._dispatchEvent("themeLoaded",{theme:R}),N&&N(),w.isSafari&&S.scroller&&(S.scroller.style.background="red",S.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(A,N){f.setCssClass(this.container,A,N!==!1)},I.prototype.unsetStyle=function(A){f.removeCssClass(this.container,A)},I.prototype.setCursorStyle=function(A){f.setStyle(this.scroller.style,"cursor",A)},I.prototype.setMouseCursor=function(A){f.setStyle(this.scroller.style,"cursor",A)},I.prototype.attachToShadowRoot=function(){f.importCssString(C,"ace_editor.css",this.container)},I.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},I.prototype.$updateCustomScrollbar=function(A){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,A===!0?(this.scrollBarV=new v(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}))},I.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var A=this;this.$resizeTimer=y.delayedCall(function(){A.destroyed||A.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var S=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(A.$size.width-S)>1||Math.abs(A.$size.height-_)>1?A.$resizeTimer.delay():A.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},I}();L.prototype.CHANGE_CURSOR=1,L.prototype.CHANGE_MARKER=2,L.prototype.CHANGE_GUTTER=4,L.prototype.CHANGE_SCROLL=8,L.prototype.CHANGE_LINES=16,L.prototype.CHANGE_TEXT=32,L.prototype.CHANGE_SIZE=64,L.prototype.CHANGE_MARKER_BACK=128,L.prototype.CHANGE_MARKER_FRONT=256,L.prototype.CHANGE_FULL=512,L.prototype.CHANGE_H_SCROLL=1024,L.prototype.$changes=0,L.prototype.$padding=null,L.prototype.$frozen=!1,L.prototype.STEPS=8,h.implement(L.prototype,E),d.defineOptions(L.prototype,"renderer",{useResizeObserver:{set:function(I){!I&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):I&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(I){this.$textLayer.setShowInvisibles(I)&&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(I){typeof I=="number"&&(this.$printMarginColumn=I),this.$showPrintMargin=!!I,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(I){this.$gutter.style.display=I?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(I){this.$gutterLayer.$useSvgGutterIcons=I},initialValue:!1},showFoldedAnnotations:{set:function(I){this.$gutterLayer.$showFoldedAnnotations=I},initialValue:!1},fadeFoldWidgets:{set:function(I){f.setCssClass(this.$gutter,"ace_fade-fold-widgets",I)},initialValue:!1},showFoldWidgets:{set:function(I){this.$gutterLayer.setShowFoldWidgets(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(I){this.$textLayer.setDisplayIndentGuides(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(I){this.$textLayer.setHighlightIndentGuides(I)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(I){this.$gutterLayer.setHighlightGutterLine(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(I){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(I){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(I){typeof I=="number"&&(I=I+"px"),this.container.style.fontSize=I,this.updateFontSize()},initialValue:12},fontFamily:{set:function(I){this.container.style.fontFamily=I,this.updateFontSize()}},maxLines:{set:function(I){this.updateFull()}},minLines:{set:function(I){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(I){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(I){I=+I||0,this.$scrollPastEnd!=I&&(this.$scrollPastEnd=I,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(I){this.$gutterLayer.$fixedWidth=!!I,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(I){this.$updateCustomScrollbar(I)},initialValue:!1},theme:{set:function(I){this.setTheme(I)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),i.VirtualRenderer=L}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,i,p){var h=t("../lib/oop"),f=t("../lib/net"),y=t("../lib/event_emitter").EventEmitter,d=t("../config");function g(c){var o="importScripts('"+f.qualifyURL(c)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,v=new u;return v.append(o),v.getBlob("application/javascript")}}function s(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(d.get("loadWorkerFromBlob")){var o=g(c),u=window.URL||window.webkitURL,v=u.createObjectURL(o);return new Worker(v)}return new Worker(c)}var l=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,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(){h.implement(this,y),this.$createWorkerFromOldConfig=function(c,o,u,v,b){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),d.get("packaged")||!t.toUrl)v=v||d.moduleUrl(o,"worker");else{var x=this.$normalizePath;v=v||x(t.toUrl("ace/worker/worker.js",null,"_"));var E={};c.forEach(function(C){E[C]=x(t.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(v),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:E,module:o,classname:u}),this.$worker},this.onMessage=function(c){var o=c.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var u=this.callbacks[o.id];u&&(u(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return f.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,o){this.$worker.postMessage({command:c,args:o})},this.call=function(c,o,u){if(u){var v=this.callbackId++;this.callbacks[v]=u,o.push(v)}this.send(c,o)},this.emit=function(c,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(l.prototype);var a=function(c,o,u){var v=null,b=!1,x=Object.create(y),E=[],C=new l({messageBuffer:E,terminate:function(){},postMessage:function(w){E.push(w),v&&(b?setTimeout(k):k())}});C.setEmitSync=function(w){b=w};var k=function(){var w=E.shift();w.command?v[w.command].apply(v,w.args):w.event&&x._signal(w.event,w.data)};return x.postMessage=function(w){C.onMessage({data:w})},x.callback=function(w,T){this.postMessage({type:"call",id:T,data:w})},x.emit=function(w,T){this.postMessage({type:"event",name:w,data:T})},d.loadModule(["worker",o],function(w){for(v=new w[u](x);E.length;)k()}),C};i.UIWorkerClient=a,i.WorkerClient=l,i.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(t,i,p){var h=t("./range").Range,f=t("./lib/event_emitter").EventEmitter,y=t("./lib/oop"),d=function(){function g(s,l,a,c,o,u){var v=this;this.length=l,this.session=s,this.doc=s.getDocument(),this.mainClass=o,this.othersClass=u,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){v.onCursorChange()})},this.$pos=a;var b=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return g.prototype.setup=function(){var s=this,l=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=a.addMarker(new h(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=l.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),s.others.push(u)}),a.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,l=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=s.addMarker(new h(a.row,a.column,a.row,a.column+l.length),l.othersClass,null,!1)})}},g.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},g.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var l=s;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var a=s.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,c=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,o=l.start.column-this.pos.column;if(this.updateAnchors(s),c&&(this.length+=a),c&&!this.session.$fromUndo){if(s.action==="insert")for(var u=this.others.length-1;u>=0;u--){var v=this.others[u],b={row:v.row,column:v.column+o};this.doc.insertMergedLines(b,s.lines)}else if(s.action==="remove")for(var u=this.others.length-1;u>=0;u--){var v=this.others[u],b={row:v.row,column:v.column+o};this.doc.remove(new h(b.row,b.column,b.row,b.column-a))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var l=this.others.length;l--;)this.others[l].onChange(s);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var s=this,l=this.session,a=function(o,u){l.removeMarker(o.markerId),o.markerId=l.addMarker(new h(o.row,o.column,o.row,o.column+s.length),u,null,!1)};a(this.pos,this.mainClass);for(var c=this.others.length;c--;)a(this.others[c],this.othersClass)}},g.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},g.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},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),l=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,a=0;a<l;a++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();y.implement(d.prototype,f),i.PlaceHolder=d}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,i,p){var h=t("../lib/event"),f=t("../lib/useragent");function y(g,s){return g.row==s.row&&g.column==s.column}function d(g){var s=g.domEvent,l=s.altKey,a=s.shiftKey,c=s.ctrlKey,o=g.getAccelKey(),u=g.getButton();if(c&&f.isMac&&(u=s.button),g.editor.inMultiSelectMode&&u==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!c&&!l&&!o){u===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(u===0){var v=g.editor,b=v.selection,x=v.inMultiSelectMode,E=g.getDocumentPosition(),C=b.getCursor(),k=g.inSelection()||b.isEmpty()&&y(E,C),w=g.x,T=g.y,L=function(q){w=q.clientX,T=q.clientY},I=v.session,A=v.renderer.pixelToScreenCoordinates(w,T),N=A,S;if(v.$mouseHandler.$enableJumpToDef)c&&l||o&&l?S=a?"block":"add":l&&v.$blockSelectEnabled&&(S="block");else if(o&&!l){if(S="add",!x&&a)return}else l&&v.$blockSelectEnabled&&(S="block");if(S&&f.isMac&&s.ctrlKey&&v.$mouseHandler.cancelContextMenu(),S=="add"){if(!x&&k)return;if(!x){var _=b.toOrientedRange();v.addSelectionMarker(_)}var $=b.rangeList.rangeAtPoint(E);v.inVirtualSelectionMode=!0,a&&($=null,_=b.ranges[0]||_,v.removeSelectionMarker(_)),v.once("mouseup",function(){var q=b.toOrientedRange();$&&q.isEmpty()&&y($.cursor,q.cursor)?b.substractPoint(q.cursor):(a?b.substractPoint(_.cursor):_&&(v.removeSelectionMarker(_),b.addRange(_)),b.addRange(q)),v.inVirtualSelectionMode=!1})}else if(S=="block"){g.stop(),v.inVirtualSelectionMode=!0;var R,O=[],F=function(){var q=v.renderer.pixelToScreenCoordinates(w,T),X=I.screenToDocumentPosition(q.row,q.column,q.offsetX);y(N,q)&&y(X,b.lead)||(N=q,v.selection.moveToPosition(X),v.renderer.scrollCursorIntoView(),v.removeSelectionMarkers(O),O=b.rectangularRangeBlock(N,A),v.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=v.$mouseHandler.$clickSelection.clone()),O.forEach(v.addSelectionMarker,v),v.updateSelectionMarkers())};x&&!o?b.toSingleRange():!x&&o&&(R=b.toOrientedRange(),v.addSelectionMarker(R)),a?A=I.documentToScreenPosition(b.lead):b.moveToPosition(E),N={row:-1,column:-1};var H=function(q){F(),clearInterval(V),v.removeSelectionMarkers(O),O.length||(O=[b.toOrientedRange()]),R&&(v.removeSelectionMarker(R),b.toSingleRange(R));for(var X=0;X<O.length;X++)b.addRange(O[X]);v.inVirtualSelectionMode=!1,v.$mouseHandler.$clickSelection=null},W=F;h.capture(v.container,L,H);var V=setInterval(function(){W()},20);return g.preventDefault()}}}i.onMouseDown=d}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(t,i,p){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(f){f.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(f){f.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(f){f.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(f){f.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(f){f.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(f){f.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(f){f.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(f){f.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(f){f.multiSelect.rangeCount>1?f.multiSelect.joinSelections():f.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(f){f.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(f){f.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(f){f.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(f){f.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(f){return f&&f.inMultiSelectMode}}];var h=t("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new h(i.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(t,i,p){var h=t("./range_list").RangeList,f=t("./range").Range,y=t("./selection").Selection,d=t("./mouse/multi_select_handler").onMouseDown,g=t("./lib/event"),s=t("./lib/lang"),l=t("./commands/multi_select_commands");i.commands=l.defaultCommands.concat(l.multiSelectCommands);var a=t("./search").Search,c=new a;function o(C,k,w){return c.$options.wrap=!0,c.$options.needle=k,c.$options.backwards=w==-1,c.find(C)}var u=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,k){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var w=this.toOrientedRange();if(this.rangeList.add(w),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(w),this.$onAddRange(w)}C.cursor||(C.cursor=C.end);var T=this.rangeList.add(C);return this.$onAddRange(C),T.length&&this.$onRemoveRange(T),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var k=this.rangeList.substractPoint(C);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();C.push(k),this.rangeCount=0}for(var w=C.length;w--;){var T=this.ranges.indexOf(C[w]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:C}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new h,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],k=[],w=0;w<C.length;w++){var T=C[w],L=T.start.row,I=T.end.row;if(L===I)k.push(T.clone());else{for(k.push(new f(L,T.start.column,L,this.session.getLine(L).length));++L<I;)k.push(this.getLineRange(L,!0));k.push(new f(I,0,I,T.end.column))}w==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var w=k.length;w--;)this.addRange(k[w])},this.joinSelections=function(){var C=this.rangeList.ranges,k=C[C.length-1],w=f.fromPoints(C[0].start,k.end);this.toSingleRange(),this.setSelectionRange(w,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,k=C[C.length-1],w=f.fromPoints(C[0].start,k.end);this.toSingleRange(),this.setSelectionRange(w,k.cursor==k.start)}else{var T=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(T,L);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,k,w){var T=[],L=C.column<k.column;if(L)var I=C.column,A=k.column,N=C.offsetX,S=k.offsetX;else var I=k.column,A=C.column,N=k.offsetX,S=C.offsetX;var _=C.row<k.row;if(_)var $=C.row,R=k.row;else var $=k.row,R=C.row;I<0&&(I=0),$<0&&($=0),$==R&&(w=!0);for(var O,F=$;F<=R;F++){var H=f.fromPoints(this.session.screenToDocumentPosition(F,I,N),this.session.screenToDocumentPosition(F,A,S));if(H.isEmpty()){if(O&&b(H.end,O))break;O=H.end}H.cursor=L?H.start:H.end,T.push(H)}if(_&&T.reverse(),!w){for(var W=T.length-1;T[W].isEmpty()&&W>0;)W--;if(W>0)for(var V=0;T[V].isEmpty();)V++;for(var q=W;q>=V;q--)T[q].isEmpty()&&T.splice(q,1)}return T}}).call(y.prototype);var v=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var k=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",k),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var k=this.session.$selectionMarkers.indexOf(C);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var k=this.session.$selectionMarkers,w=C.length;w--;){var T=C[w];if(T.marker){this.session.removeMarker(T.marker);var L=k.indexOf(T);L!=-1&&k.splice(L,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var k=C.command,w=C.editor;if(w.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?T=w.forEachSelection(k,C.args):k.multiSelectAction=="forEachLine"?T=w.forEachSelection(k,C.args,!0):k.multiSelectAction=="single"?(w.exitMultiSelectMode(),T=k.exec(w,C.args||{})):T=k.multiSelectAction(w,C.args||{});else{var T=k.exec(w,C.args||{});w.multiSelect.addRange(w.multiSelect.toOrientedRange()),w.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(C,k,w){if(!this.inVirtualSelectionMode){var T=w&&w.keepOrder,L=w==!0||w&&w.$byLines,I=this.session,A=this.selection,N=A.rangeList,S=(T?A:N).ranges,_;if(!S.length)return C.exec?C.exec(this,k||{}):C(this,k||{});var $=A._eventRegistry;A._eventRegistry={};var R=new y(I);this.inVirtualSelectionMode=!0;for(var O=S.length;O--;){if(L)for(;O>0&&S[O].start.row==S[O-1].end.row;)O--;R.fromOrientedRange(S[O]),R.index=O,this.selection=I.selection=R;var F=C.exec?C.exec(this,k||{}):C(this,k||{});!_&&F!==void 0&&(_=F),R.toOrientedRange(S[O])}R.detach(),this.selection=I.selection=A,this.inVirtualSelectionMode=!1,A._eventRegistry=$,A.mergeOverlappingRanges(),A.ranges[0]&&A.fromOrientedRange(A.ranges[0]);var H=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),H&&H.from==H.to&&this.renderer.animateScrolling(H.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,w=[],T=0;T<k.length;T++)w.push(this.session.getTextRange(k[T]));var L=this.session.getDocument().getNewLineCharacter();C=w.join(L),C.length==(w.length-1)*L.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var w=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var T=k==this.multiSelect.anchor?w.cursor==w.start?w.end:w.start:w.cursor;T.row!=k.row||this.session.$clipPositionToDocument(T.row,T.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,k,w){if(k=k||{},k.needle=C||k.needle,k.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(T)}this.$search.set(k);var L=this.$search.findAll(this.session);if(!L.length)return 0;var I=this.multiSelect;w||I.toSingleRange(L[0]);for(var A=L.length;A--;)I.addRange(L[A],!0);return T&&I.rangeList.rangeAtPoint(T.start)&&I.addRange(T,!0),L.length},this.selectMoreLines=function(C,k){var w=this.selection.toOrientedRange(),T=w.cursor==w.end,L=this.session.documentToScreenPosition(w.cursor);this.selection.$desiredColumn&&(L.column=this.selection.$desiredColumn);var I=this.session.screenToDocumentPosition(L.row+C,L.column);if(w.isEmpty())var N=I;else var A=this.session.documentToScreenPosition(T?w.end:w.start),N=this.session.screenToDocumentPosition(A.row+C,A.column);if(T){var S=f.fromPoints(I,N);S.cursor=S.start}else{var S=f.fromPoints(N,I);S.cursor=S.end}if(S.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(w);else if(k)var _=w.cursor;this.selection.addRange(S),_&&this.selection.substractPoint(_)},this.transposeSelections=function(C){for(var k=this.session,w=k.multiSelect,T=w.ranges,L=T.length;L--;){var I=T[L];if(I.isEmpty()){var A=k.getWordRange(I.start.row,I.start.column);I.start.row=A.start.row,I.start.column=A.start.column,I.end.row=A.end.row,I.end.column=A.end.column}}w.mergeOverlappingRanges();for(var N=[],L=T.length;L--;){var I=T[L];N.unshift(k.getTextRange(I))}C<0?N.unshift(N.pop()):N.push(N.shift());for(var L=T.length;L--;){var I=T[L],S=I.clone();k.replace(I,N[L]),I.start.row=S.start.row,I.start.column=S.start.column}w.fromOrientedRange(w.ranges[0])},this.selectMore=function(C,k,w){var T=this.session,L=T.multiSelect,I=L.toOrientedRange();if(!(I.isEmpty()&&(I=T.getWordRange(I.start.row,I.start.column),I.cursor=C==-1?I.start:I.end,this.multiSelect.addRange(I),w))){var A=T.getTextRange(I),N=o(T,A,C);N&&(N.cursor=C==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(I.cursor)}},this.alignCursors=function(){var C=this.session,k=C.multiSelect,w=k.ranges,T=-1,L=w.filter(function(W){if(W.cursor.row==T)return!0;T=W.cursor.row});if(!w.length||L.length==w.length-1){var I=this.selection.getRange(),A=I.start.row,N=I.end.row,S=A==N;if(S){var _=this.session.getLength(),$;do $=this.session.getLine(N);while(/[=:]/.test($)&&++N<_);do $=this.session.getLine(A);while(/[=:]/.test($)&&--A>0);A<0&&(A=0),N>=_&&(N=_-1)}var R=this.session.removeFullLines(A,N);R=this.$reAlignText(R,S),this.session.insert({row:A,column:0},R.join(`
|
936
|
+
`)+`
|
937
|
+
`),S||(I.start.column=0,I.end.column=R[R.length-1].length),this.selection.setRange(I)}else{L.forEach(function(W){k.substractPoint(W.cursor)});var O=0,F=1/0,H=w.map(function(W){var V=W.cursor,q=C.getLine(V.row),X=q.substr(V.column).search(/\S/g);return X==-1&&(X=0),V.column>O&&(O=V.column),X<F&&(F=X),X});w.forEach(function(W,V){var q=W.cursor,X=O-q.column,G=H[V]-F;X>G?C.insert(q,s.stringRepeat(" ",X-G)):C.remove(new f(q.row,q.column,q.row,q.column-X+G)),W.start.column=W.end.column=O,W.start.row=W.end.row=q.row,W.cursor=W.end}),k.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,k){var w=!0,T=!0,L,I,A;return C.map(function(R){var O=R.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?L==null?(L=O[1].length,I=O[2].length,A=O[3].length,O):(L+I+A!=O[1].length+O[2].length+O[3].length&&(T=!1),L!=O[1].length&&(w=!1),L>O[1].length&&(L=O[1].length),I<O[2].length&&(I=O[2].length),A>O[3].length&&(A=O[3].length),O):[R]}).map(k?S:w?T?_:S:$);function N(R){return s.stringRepeat(" ",R)}function S(R){return R[2]?N(L)+R[2]+N(I-R[2].length+A)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function _(R){return R[2]?N(L+I-R[2].length)+R[2]+N(A)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function $(R){return R[2]?N(L)+R[2]+N(A)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}}}).call(v.prototype);function b(C,k){return C.row==k.row&&C.column==k.column}i.onSessionChange=function(C){var k=C.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var w=C.oldSession;w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=i.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",d),C.commands.addCommands(l.defaultCommands),E(C))}function E(C){if(!C.textInput)return;var k=C.textInput.getElement(),w=!1;g.addListener(k,"keydown",function(L){var I=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);C.$blockSelectEnabled&&I?w||(C.renderer.setMouseCursor("crosshair"),w=!0):w&&T()},C),g.addListener(k,"keyup",T,C),g.addListener(k,"blur",T,C);function T(L){w&&(C.renderer.setMouseCursor(""),w=!1)}}i.MultiSelect=x,t("./config").defineOptions(v.prototype,"editor",{enableMultiselect:{set:function(C){x(this),C?this.on("mousedown",d):this.off("mousedown",d)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,i,p){var h=t("../../range").Range,f=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(y,d,g){var s=y.getLine(g);return this.foldingStartMarker.test(s)?"start":d=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(y,d,g){return null},this.indentationBlock=function(y,d,g){var s=/\S/,l=y.getLine(d),a=l.search(s);if(a!=-1){for(var c=g||l.length,o=y.getLength(),u=d,v=d;++d<o;){var b=y.getLine(d).search(s);if(b!=-1){if(b<=a){var x=y.getTokenAt(d,0);if(!x||x.type!=="string")break}v=d}}if(v>u){var E=y.getLine(v).length;return new h(u,c,v,E)}}},this.openingBracketBlock=function(y,d,g,s,l){var a={row:g,column:s+1},c=y.$findClosingBracket(d,a,l);if(c){var o=y.foldWidgets[c.row];return o==null&&(o=y.getFoldWidget(c.row)),o=="start"&&c.row>a.row&&(c.row--,c.column=y.getLine(c.row).length),h.fromPoints(a,c)}},this.closingBracketBlock=function(y,d,g,s,l){var a={row:g,column:s},c=y.$findOpeningBracket(d,a);if(c)return c.column++,a.column--,h.fromPoints(c,a)}}).call(f.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(t,i,p){var h=t("../lib/dom"),f=t("../range").Range,y=t("../config").nls;function d(s,l,a){for(var c=0,o=s.length-1;c<=o;){var u=c+o>>1,v=a(l,s[u]);if(v>0)c=u+1;else if(v<0)o=u-1;else return u}return-(c+1)}function g(s,l,a){var c=s.getAnnotations().sort(f.comparePoints);if(c.length){var o=d(c,{row:l,column:-1},f.comparePoints);o<0&&(o=-o-1),o>=c.length?o=a>0?0:c.length-1:o===0&&a<0&&(o=c.length-1);var u=c[o];if(!(!u||!a)){if(u.row===l){do u=c[o+=a];while(u&&u.row===l);if(!u)return c.slice()}var v=[];l=u.row;do v[a<0?"unshift":"push"](u),u=c[o+=a];while(u&&u.row==l);return v.length&&v}}}i.showErrorMarker=function(s,l){var a=s.session,c=s.getCursorPosition(),o=c.row,u=a.widgetManager.getWidgetsAtRow(o).filter(function(L){return L.type=="errorMarker"})[0];u?u.destroy():o-=l;var v=g(a,o,l),b;if(v){var x=v[0];c.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,c.row=x.row,b=s.renderer.$gutterLayer.$annotations[c.row]}else{if(u)return;b={displayText:[y("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(c.row),s.selection.moveToPosition(c);var E={row:c.row,fixedWidth:!0,coverGutter:!0,el:h.createElement("div"),type:"errorMarker"},C=E.el.appendChild(h.createElement("div")),k=E.el.appendChild(h.createElement("div"));k.className="error_widget_arrow "+b.className;var w=s.renderer.$cursorLayer.getPixelPosition(c).left;k.style.left=w+s.renderer.gutterWidth-5+"px",E.el.className="error_widget_wrapper",C.className="error_widget "+b.className,b.displayText.forEach(function(L,I){C.appendChild(h.createTextNode(L)),I<b.displayText.length-1&&C.appendChild(h.createElement("br"))}),C.appendChild(h.createElement("div"));var T=function(L,I,A){if(I===0&&(A==="esc"||A==="return"))return E.destroy(),{command:"null"}};E.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(T),a.widgetManager.removeLineWidget(E),s.off("changeSelection",E.destroy),s.off("changeSession",E.destroy),s.off("mouseup",E.destroy),s.off("change",E.destroy))},s.keyBinding.addKeyboardHandler(T),s.on("changeSelection",E.destroy),s.on("changeSession",E.destroy),s.on("mouseup",E.destroy),s.on("change",E.destroy),s.session.widgetManager.addLineWidget(E),E.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:E.el.offsetHeight})},h.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(t,i,p){t("./loader_build")(i);var h=t("./lib/dom"),f=t("./range").Range,y=t("./editor").Editor,d=t("./edit_session").EditSession,g=t("./undomanager").UndoManager,s=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),i.config=t("./config"),i.edit=function(a,c){if(typeof a=="string"){var o=a;if(a=document.getElementById(o),!a)throw new Error("ace.edit can't find div #"+o)}if(a&&a.env&&a.env.editor instanceof y)return a.env.editor;var u="";if(a&&/input|textarea/i.test(a.tagName)){var v=a;u=v.value,a=h.createElement("pre"),v.parentNode.replaceChild(a,v)}else a&&(u=a.textContent,a.innerHTML="");var b=i.createEditSession(u),x=new y(new s(a),b,c),E={document:b,editor:x,onResize:x.resize.bind(x,null)};return v&&(E.textarea=v),x.on("destroy",function(){E.editor.container.env=null}),x.container.env=x.env=E,x},i.createEditSession=function(a,c){var o=new d(a,c);return o.setUndoManager(new g),o},i.Range=f,i.Editor=y,i.EditSession=d,i.UndoManager=g,i.VirtualRenderer=s;var l=i.config.version;i.version=l}),function(){ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=t);for(var p in t)t.hasOwnProperty(p)&&(i.ace[p]=t[p]);i.ace.default=i.ace,n.exports=i.ace})}()}(Rp)),Rp.exports}var oo=Dn("E",Sw()),Op={exports:{}},Dp;function $w(){return Dp||(Dp=1,function(n,e){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,i,p){var h=t("../lib/oop"),f=t("./text_highlight_rules").TextHighlightRules,y=i.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};i.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},i.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},i.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var d=i.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},g=i.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=i.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=i.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},a=i.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=i.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=i.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=i.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},v=function(){var b="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",x="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",E="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",C="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":E,"variable.language":C,"support.function":b,"invalid.deprecated":"debugger"},"identifier"),w=`\\\\(?: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})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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:w},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:w},{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(L,I,A){A.length&&(A=[]);var N=L[L.length-1];return A.unshift(N,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(L,I,A){A.length&&(A=[]);var N=L[L.length-1];return A.unshift(N,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(L,I,A){A.length&&(A=[]);var N=L[L.length-1];return A.unshift(N,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(L,I,A){A.length&&(A=[]);var N=L[L.length-1];return A.unshift(N,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(L,I,A){A.length&&(A=[]);var N=L[L.length-1];return A.unshift(N,I),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{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\\?(?:"+w+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,c,y,d,o,g,s,l,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(L,I,A){var N=L[2]=="-"||L[2]=="~"?"indentedHeredoc":"heredoc",S=L.split(this.splitRegex);return A.push(N,S[3]),[{type:"constant",value:S[1]},{type:"string",value:S[2]},{type:"support.class",value:S[3]},{type:"string",value:S[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(L,I,A){return L===A[1]?(A.shift(),A.shift(),this.next=A[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(L,I,A){return L===A[1]?(A.shift(),A.shift(),this.next=A[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(L,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:L}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(L,I,A){return this.next="",L=="}"&&A.length>1&&A[1]!="start"&&(A.shift(),this.next=A.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(L,I,A){return A.length&&L===A[0]?(A.unshift(L,I),this.token):"string"}},{token:"constant.language.escape",regex:w},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(L,I,A){return A.length&&L===T[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(L,I,A){return A.length&&L===A[0]?(A.unshift(L,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(L,I,A){return A.length&&L===T[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(L,I,A){return A.length&&L===A[0]?(A.unshift(L,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(L,I,A){return A.length&&L===T[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(L,I,A){return A.length&&L===A[0]?(A.unshift(L,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:w},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(L,I,A){return A.length&&L===T[A[0]]?(A.shift(),this.next=A.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(L,I,A){return A.length&&L===A[0]?(A.unshift(L,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(L,I,A){return A.length&&L[0]===T[A[0]]?(A.shift(),this.next=A.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()};h.inherits(v,f),i.RubyHighlightRules=v}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,i,p){var h=t("../range").Range,f=function(){};(function(){this.checkOutdent=function(y,d){return/^\s+$/.test(y)?/^\s*\}/.test(d):!1},this.autoOutdent=function(y,d){var g=y.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=y.findMatchingBracket({row:d,column:l});if(!a||a.row==d)return 0;var c=this.$getIndent(y.getLine(a.row));y.replace(new h(d,0,d,l-1),c)},this.$getIndent=function(y){return y.match(/^\s*/)[0]}}).call(f.prototype),i.MatchingBraceOutdent=f}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(t,i,p){var h=t("../../lib/oop"),f=t("./fold_mode").FoldMode,y=t("../../range").Range,d=t("../../token_iterator").TokenIterator,g=i.FoldMode=function(){};h.inherits(g,f),(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(s,l,a){var c=s.getLine(a),o=this.foldingStartMarker.test(c),u=this.foldingStopMarker.test(c);if(o&&!u){var v=c.match(this.foldingStartMarker);if(v[1]){if((v[1]=="if"||v[1]=="else"||v[1]=="while"||v[1]=="until"||v[1]=="unless")&&(v[1]=="else"&&/^\s*else\s*$/.test(c)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(c)===!1)||v[1]=="when"&&/\sthen\s/.test(c)===!0)return;if(s.getTokenAt(a,v.index+2).type==="keyword")return"start"}else if(!v[3]||s.getTokenAt(a,v.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!u||o&&u)return"";var v=c.match(this.foldingStopMarker);if(v[3]==="end"){if(s.getTokenAt(a,v.index+1).type==="keyword")return"end"}else if(!v[1]||s.getTokenAt(a,v.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(s,l,a){var c=s.doc.getLine(a),o=this.foldingStartMarker.exec(c);if(o)return o[1]||o[3]?this.rubyBlock(s,a,o.index+2):this.openingBracketBlock(s,"{",a,o.index);var o=this.foldingStopMarker.exec(c);if(o)return o[3]==="end"&&s.getTokenAt(a,o.index+1).type==="keyword"?this.rubyBlock(s,a,o.index+1):o[1]==="=end"&&s.getTokenAt(a,o.index+1).type==="comment.multiline"?this.rubyBlock(s,a,o.index+1):this.closingBracketBlock(s,"}",a,o.index+o[0].length)},this.rubyBlock=function(s,l,a,c){var o=new d(s,l,a),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var v=u.value,b=s.getLine(l);switch(u.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);if(!x.test(b))return;var E=this.indentKeywords[v];break;case"when":if(/\sthen\s/.test(b))return;case"elsif":case"rescue":case"ensure":var E=1;break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");if(!x.test(b))return;var E=1;break;default:var E=this.indentKeywords[v]}var C=[v];if(E){var k=E===-1?s.getLine(l-1).length:s.getLine(l).length,w=l,T=[];if(T.push(o.getCurrentTokenRange()),o.step=E===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(E==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var L=!1;if(u.type==="keyword"){var I=E*this.indentKeywords[u.value];switch(b=s.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var A=o.$tokenIndex-1;A>=0;A--){var N=o.$rowTokens[A];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){I=0;break}}break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");(!x.test(b)||v=="case")&&(I=0,L=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);x.test(b)||(I=0,L=!0);break;case"when":(/\sthen\s/.test(b)||v=="case")&&(I=0,L=!0)}if(I>0)C.unshift(u.value);else if(I<=0&&L===!1){if(C.shift(),!C.length&&((v=="while"||v=="until"||v=="for")&&u.value!="do"||u.value=="do"&&E==-1&&I!=0||u.value!="do"))break;I===0&&C.unshift(u.value)}}}if(!u)return null;if(c)return T.push(o.getCurrentTokenRange()),T;var l=o.getCurrentTokenRow();if(E===-1){if(u.type==="comment.multiline")var S=6;else var S=s.getLine(l).length;return new y(l,S,w-1,k)}return new y(w,k,l-1,s.getLine(l-1).length)}}}}).call(g.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(t,i,p){var h=t("../lib/oop"),f=t("./text").Mode,y=t("./ruby_highlight_rules").RubyHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../range").Range,s=t("./folding/ruby").FoldMode,l=function(){this.HighlightRules=y,this.$outdent=new d,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};h.inherits(l,f),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),v=this.getTokenizer().getLineTokens(c,a),b=v.tokens;if(b.length&&b[b.length-1].type=="comment")return u;if(a=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),E=c.match(/^\s*(class|def|module)\s.*$/),C=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||E||C||k)&&(u+=o)}return u},this.checkOutdent=function(a,c,o){return/^\s+(end|else|rescue|ensure)$/.test(c+o)||this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(a,c,o){var u=c.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(c,o);var v=this.$getIndent(u),b=c.getLine(o-1),x=this.$getIndent(b),E=c.getTabString();x.length<=v.length&&v.slice(-E.length)==E&&c.remove(new g(o,v.length-E.length,o,v.length))},this.getMatching=function(a,c,o){if(c==null){var u=a.selection.lead;o=u.column,c=u.row}var v=a.getTokenAt(c,o);if(v&&v.value in this.indentKeywords)return this.foldingRules.rubyBlock(a,c,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),i.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(t){n.exports=t})}()}(Op)),Op.exports}$w();var Np={exports:{}},Fp;function Cw(){return Fp||(Fp=1,function(n,e){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,i,p){var h=t("../lib/oop"),f=t("./text_highlight_rules").TextHighlightRules,y=function(){var d="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",g="True|False|None|NotImplemented|Ellipsis|__debug__",s="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",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":s,"variable.language":"self|cls","constant.language":g,keyword:d},"identifier"),a="[uU]?",c="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",v="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",E="(?:0[bB][01]+)",C="(?:"+v+"|"+b+"|"+x+"|"+E+")",k="(?:[eE][+-]?\\d+)",w="(?:\\.\\d+)",T="(?:\\d+)",L="(?:(?:"+T+"?"+w+")|(?:"+T+"\\.))",I="(?:(?:"+L+"|"+T+")"+k+")",A="(?:"+I+"|"+L+")",N=`\\\\(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:a+'"{3}',next:"qqstring3"},{token:"string",regex:a+'"(?=.)',next:"qqstring"},{token:"string",regex:a+"'{3}",next:"qstring3"},{token:"string",regex:a+"'(?=.)",next:"qstring"},{token:"string",regex:c+'"{3}',next:"rawqqstring3"},{token:"string",regex:c+'"(?=.)',next:"rawqqstring"},{token:"string",regex:c+"'{3}",next:"rawqstring3"},{token:"string",regex:c+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:u+'"{3}',next:"rfqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rfqqstring"},{token:"string",regex:u+"'{3}",next:"rfqstring3"},{token:"string",regex:u+"'(?=.)",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:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{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:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{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:"(?:"+A+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:A},{token:"constant.numeric",regex:C+"[lL]\\b"},{token:"constant.numeric",regex:C+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};h.inherits(y,f),i.PythonHighlightRules=y}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,i,p){var h=t("../../lib/oop"),f=t("./fold_mode").FoldMode,y=i.FoldMode=function(d){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+d+")(?:\\s*)(?:#.*)?$")};h.inherits(y,f),(function(){this.getFoldWidgetRange=function(d,g,s){var l=d.getLine(s),a=l.match(this.foldingStartMarker);if(a)return a[1]?this.openingBracketBlock(d,a[1],s,a.index):a[2]?this.indentationBlock(d,s,a.index+a[2].length):this.indentationBlock(d,s)}}).call(y.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(t,i,p){var h=t("../lib/oop"),f=t("./text").Mode,y=t("./python_highlight_rules").PythonHighlightRules,d=t("./folding/pythonic").FoldMode,g=t("../range").Range,s=function(){this.HighlightRules=y,this.foldingRules=new d("\\:"),this.$behaviour=this.$defaultBehaviour};h.inherits(s,f),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),v=this.getTokenizer().getLineTokens(c,a),b=v.tokens;if(b.length&&b[b.length-1].type=="comment")return u;if(a=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(u+=o)}return u};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,c,o){if(o!==`\r
|
971
|
+
`&&o!=="\r"&&o!==`
|
972
|
+
`)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),a).tokens;if(!u)return!1;do var v=u.pop();while(v&&(v.type=="comment"||v.type=="text"&&v.value.match(/^\s+$/)));return v?v.type=="keyword"&&l[v.value]:!1},this.autoOutdent=function(a,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),v=c.getTabString();u.slice(-v.length)==v&&c.remove(new g(o,u.length-v.length,o,u.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),i.Mode=s}),function(){ace.require(["ace/mode/python"],function(t){n.exports=t})}()}(Np)),Np.exports}Cw();var Pp={exports:{}},Hp;function Mw(){return Hp||(Hp=1,function(n,e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,i,p){var h=t("../lib/oop"),f=t("./text_highlight_rules").TextHighlightRules,y=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"}]}};h.inherits(y,f),i.JsonHighlightRules=y}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,i,p){var h=t("../range").Range,f=function(){};(function(){this.checkOutdent=function(y,d){return/^\s+$/.test(y)?/^\s*\}/.test(d):!1},this.autoOutdent=function(y,d){var g=y.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=y.findMatchingBracket({row:d,column:l});if(!a||a.row==d)return 0;var c=this.$getIndent(y.getLine(a.row));y.replace(new h(d,0,d,l-1),c)},this.$getIndent=function(y){return y.match(/^\s*/)[0]}}).call(f.prototype),i.MatchingBraceOutdent=f}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,i,p){var h=t("../../lib/oop"),f=t("../../range").Range,y=t("./fold_mode").FoldMode,d=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};h.inherits(d,y),(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(g,s,l){var a=g.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var c=this._getFoldWidgetBase(g,s,l);return!c&&this.startRegionRe.test(a)?"start":c},this.getFoldWidgetRange=function(g,s,l,a){var c=g.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(g,c,l);var o=c.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],l,u);var v=g.getCommentFoldRange(l,u+o[0].length,1);return v&&!v.isMultiLine()&&(a?v=this.getSectionRange(g,l):s!="all"&&(v=null)),v}if(s!=="markbegin"){var o=c.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],l,u):g.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(g,s){var l=g.getLine(s),a=l.search(/\S/),c=s,o=l.length;s+=1;for(var u=s,v=g.getLength();++s<v;){l=g.getLine(s);var b=l.search(/\S/);if(b!==-1){if(a>b)break;var x=this.getFoldWidgetRange(g,"all",s);if(x){if(x.start.row<=c)break;if(x.isMultiLine())s=x.end.row;else if(a==b)break}u=s}}return new f(c,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,s,l){for(var a=s.search(/\s*$/),c=g.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,v=1;++l<c;){s=g.getLine(l);var b=u.exec(s);if(b&&(b[1]?v--:v++,!v))break}var x=l;if(x>o)return new f(o,a,x,s.length)}}).call(d.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(t,i,p){var h=t("../lib/oop"),f=t("./text").Mode,y=t("./json_highlight_rules").JsonHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("./folding/cstyle").FoldMode,s=t("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=y,this.$outdent=new d,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};h.inherits(l,f),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c);if(a=="start"){var v=c.match(/^.*[\{\(\[]\s*$/);v&&(u+=o)}return u},this.checkOutdent=function(a,c,o){return this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(a,c,o){this.$outdent.autoOutdent(c,o)},this.createWorker=function(a){var c=new s(["ace"],"ace/mode/json_worker","JsonWorker");return c.attachToDocument(a.getDocument()),c.on("annotate",function(o){a.setAnnotations(o.data)}),c.on("terminate",function(){a.clearAnnotations()}),c},this.$id="ace/mode/json"}).call(l.prototype),i.Mode=l}),function(){ace.require(["ace/mode/json"],function(t){n.exports=t})}()}(Pp)),Pp.exports}Mw();var Bp={exports:{}},jp;function Tw(){return jp||(jp=1,function(n,e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(t,i,p){var h=t("../lib/oop");t("../lib/lang");var f=t("./text_highlight_rules").TextHighlightRules,y=i.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",d=i.supportFunction="rgb|rgba|url|attr|counter|counters",g=i.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",s=i.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",l=i.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",a=i.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=i.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=i.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",u=function(){var v=this.createKeywordMapper({"support.function":d,"support.constant":g,"support.type":y,"support.constant.color":s,"support.constant.fonts":l},"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:a},{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:"("+a+")(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:a},{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:c},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:v,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()};h.inherits(u,f),i.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,i,p){var h=t("../lib/oop"),f=t("./text_highlight_rules").TextHighlightRules,y=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|$)"},y.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};h.inherits(y,f),y.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},y.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},y.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},i.JsDocCommentHighlightRules=y}),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(t,i,p){function h(){var a=s.replace("\\d","\\d\\-"),c={onMatch:function(u,v,b){var x=u.charAt(1)=="/"?2:1;return x==1?(v!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&v==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:u.slice(0,x)},{type:"meta.tag.tag-name.xml",value:u.substr(x)}]},regex:"</?(?:"+a+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(c);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,c,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,v,b){return v==b[0]&&b.shift(),u.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,f("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:a},{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"}]},c],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function f(a){return[{token:"comment",regex:/\/\*/,next:[d.getTagRule(),{token:"comment",regex:"\\*\\/",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[d.getTagRule(),{token:"comment",regex:"$|^",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var y=t("../lib/oop"),d=t("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=t("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",l=function(a){var c={"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"},o=this.createKeywordMapper(c,"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",v="\\\\(?: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]?|.)",b="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(c).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[d.getStartRule("doc-start"),f("no_regex"),x,{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:"("+s+")(\\s*)(=)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\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:o,regex:s},{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:b+"(\\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:s},{regex:"",token:"empty",next:"no_regex"}],start:[d.getStartRule("doc-start"),f("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:[f("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:v},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:v},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(E,C,k){if(this.next=E=="{"?this.nextState:"",E=="{"&&k.length)k.unshift("start",C);else if(E=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return E=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:v},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\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"}),(!a||a.jsx!=0)&&h.call(this)),this.embedRules(d,"doc-",[d.getEndRule("no_regex")]),this.normalizeRules()};y.inherits(l,g),i.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,i,p){var h=t("../lib/oop"),f=t("./text_highlight_rules").TextHighlightRules,y=function(d){var g="[_: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:"(<\\?)("+g+")",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:g},{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:"(<\\!)("+g+")",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:"(?:(<)|(</))((?:"+g+":)?"+g+")",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:g},{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===y&&this.normalizeRules()};(function(){this.embedTagRules=function(d,g,s){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(<)("+s+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:g+"start"}]}),this.$rules[s+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,a,c){return c.splice(0),this.token}}],this.embedRules(d,g,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(</)("+s+"(?=\\s|>|$))",next:s+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(f.prototype),h.inherits(y,f),i.XmlHighlightRules=y}),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(t,i,p){var h=t("../lib/oop"),f=t("../lib/lang"),y=t("./css_highlight_rules").CssHighlightRules,d=t("./javascript_highlight_rules").JavaScriptHighlightRules,g=t("./xml_highlight_rules").XmlHighlightRules,s=f.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"}),l=function(){g.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(a,c){var o=s[c];return["meta.tag.punctuation."+(a=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".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(y,"css-","style"),this.embedTagRules(new d({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};h.inherits(l,g),i.HtmlHighlightRules=l}),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(t,i,p){var h=t("../config").$modes,f=t("../lib/oop"),y=t("../lib/lang"),d=t("./text_highlight_rules").TextHighlightRules,g=t("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+y.escapeRegExp(a)+"\\\\]|\\\\.)*"},l=function(){g.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,v,b){var x=o.match(/^(\s*)([`~]+)(.*)/),E=/[\w-]+|$/.exec(x[3])[0];return h[E]||(E=""),v.unshift("githubblock",[],[x[1],x[2],E],u),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(o,u,v,b){var x=v[1],E=v[2][0],C=v[2][1],k=v[2][2],w=/^(\s*)(`+|~+)\s*$/.exec(o);if(w&&w[1].length<E.length+3&&w[2].length>=C.length&&w[2][0]==C[0])return v.splice(0,3),this.next=v.shift(),this.token;if(this.next="",k&&h[k]){var T=h[k].getTokenizer().getLineTokens(o,x.slice(0));return v[1]=T.state,T.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(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},a,{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:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\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},a,{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:c}),this.normalizeRules()};f.inherits(l,d),i.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(t,i,p){var h=t("../../lib/oop"),f=t("./fold_mode").FoldMode,y=t("../../range").Range,d=i.FoldMode=function(){};h.inherits(d,f),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,s,l){var a=g.getLine(l);return this.foldingStartMarker.test(a)?a[0]=="`"&&g.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,s,l){function a(L){return E=g.getTokens(L)[0],E&&E.type.lastIndexOf(C,0)===0}function c(){var L=E.value[0];return L=="="?6:L=="-"?5:7-E.value.search(/[^#]|$/)}var o=g.getLine(l),u=o.length,v=g.getLength(),b=l,x=l;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(l)!=="start"){for(;++l<v&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new y(b,u,l,0)}for(;l-- >0&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new y(l,o.length,b,0)}var E,C="markup.heading";if(a(l)){for(var k=c();++l<v;)if(a(l)){var w=c();if(w>=k)break}if(x=l-(!E||["=","-"].indexOf(E.value[0])==-1?1:2),x>b)for(;x>b&&/^\s*$/.test(g.getLine(x));)x--;if(x>b){var T=g.getLine(x).length;return new y(b,u,x,T)}}}}}).call(d.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,i,p){var h=t("../range").Range,f=function(){};(function(){this.checkOutdent=function(y,d){return/^\s+$/.test(y)?/^\s*\}/.test(d):!1},this.autoOutdent=function(y,d){var g=y.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=y.findMatchingBracket({row:d,column:l});if(!a||a.row==d)return 0;var c=this.$getIndent(y.getLine(a.row));y.replace(new h(d,0,d,l-1),c)},this.$getIndent=function(y){return y.match(/^\s*/)[0]}}).call(f.prototype),i.MatchingBraceOutdent=f}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(t,i,p){function h(s,l){return s&&s.type.lastIndexOf(l+".xml")>-1}var f=t("../../lib/oop"),y=t("../behaviour").Behaviour,d=t("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(s,l,a,c,o){if(o=='"'||o=="'"){var u=o,v=c.doc.getTextRange(a.getSelectionRange());if(v!==""&&v!=="'"&&v!='"'&&a.getWrapBehavioursEnabled())return{text:u+v+u,selection:!1};var b=a.getCursorPosition(),x=c.doc.getLine(b.row),E=x.substring(b.column,b.column+1),C=new d(c,b.row,b.column),k=C.getCurrentToken();if(E==u&&(h(k,"attribute-value")||h(k,"string")))return{text:"",selection:[1,1]};if(k||(k=C.stepBackward()),!k)return;for(;h(k,"tag-whitespace")||h(k,"whitespace");)k=C.stepBackward();var w=!E||E.match(/\s/);if(h(k,"attribute-equals")&&(w||E==">")||h(k,"decl-attribute-equals")&&(w||E=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,l,a,c,o){var u=c.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var v=c.doc.getLine(o.start.row),b=v.substring(o.start.column+1,o.start.column+2);if(b==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,l,a,c,o){if(o==">"){var u=a.getSelectionRange().start,v=new d(c,u.row,u.column),b=v.getCurrentToken()||v.stepBackward();if(!b||!(h(b,"tag-name")||h(b,"tag-whitespace")||h(b,"attribute-name")||h(b,"attribute-equals")||h(b,"attribute-value"))||h(b,"reference.attribute-value"))return;if(h(b,"attribute-value")){var x=v.getCurrentTokenColumn()+b.value.length;if(u.column<x)return;if(u.column==x){var E=v.stepForward();if(E&&h(E,"attribute-value"))return;v.stepBackward()}}if(/^\s*>/.test(c.getLine(u.row).slice(u.column)))return;for(;!h(b,"tag-name");)if(b=v.stepBackward(),b.value=="<"){b=v.stepForward();break}var C=v.getCurrentTokenRow(),k=v.getCurrentTokenColumn();if(h(v.stepBackward(),"end-tag-open"))return;var w=b.value;return C==u.row&&(w=w.substring(0,u.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(w.toLowerCase())?void 0:{text:"></"+w+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,l,a,c,o){if(o==`
|
973
|
+
`){var u=a.getCursorPosition(),v=c.getLine(u.row),b=new d(c,u.row,u.column),x=b.getCurrentToken();if(h(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=b.stepBackward();if(!x)return;var E=x.value,C=b.getCurrentTokenRow();if(x=b.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[E]||!this.voidElements){var k=c.getTokenAt(u.row,u.column+1),v=c.getLine(C),w=this.$getIndent(v),T=w+c.getTabString();return k&&k.value==="</"?{text:`
|
974
|
+
`+T+`
|
975
|
+
`+w,selection:[1,T.length,1,T.length]}:{text:`
|
976
|
+
`+T}}}}})};f.inherits(g,y),i.XmlBehaviour=g}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(t,i,p){var h=t("../../lib/oop"),f=t("../../token_iterator").TokenIterator,y=t("../behaviour/cstyle").CstyleBehaviour,d=t("../behaviour/xml").XmlBehaviour,g=function(){var s=new d({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(y),this.add("autoclosing-fragment","insertion",function(l,a,c,o,u){if(u==">"){var v=c.getSelectionRange().start,b=new f(o,v.row,v.column),x=b.getCurrentToken()||b.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};h.inherits(g,y),i.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,i,p){function h(l,a){return l.type.lastIndexOf(a+".xml")>-1}var f=t("../../lib/oop"),y=t("../../range").Range,d=t("./fold_mode").FoldMode,g=i.FoldMode=function(l,a){d.call(this),this.voidElements=l||{},this.optionalEndTags=f.mixin({},this.voidElements),a&&f.mixin(this.optionalEndTags,a)};f.inherits(g,d);var s=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(l,a,c){var o=this._getFirstTagInLine(l,c);return o?o.closing||!o.tagName&&o.selfClosing?a==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(l,c,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(l,c)},this.getCommentFoldWidget=function(l,a){return/comment/.test(l.getState(a))&&/<!-/.test(l.getLine(a))?"start":""},this._getFirstTagInLine=function(l,a){for(var c=l.getTokens(a),o=new s,u=0;u<c.length;u++){var v=c[u];if(h(v,"tag-open")){if(o.end.column=o.start.column+v.value.length,o.closing=h(v,"end-tag-open"),v=c[++u],!v)return null;if(o.tagName=v.value,v.value===""){if(v=c[++u],!v)return null;o.tagName=v.value}for(o.end.column+=v.value.length,u++;u<c.length;u++)if(v=c[u],o.end.column+=v.value.length,h(v,"tag-close")){o.selfClosing=v.value=="/>";break}return o}if(h(v,"tag-close"))return o.selfClosing=v.value=="/>",o;o.start.column+=v.value.length}return null},this._findEndTagInLine=function(l,a,c,o){for(var u=l.getTokens(a),v=0,b=0;b<u.length;b++){var x=u[b];if(v+=x.value.length,!(v<o-1)&&h(x,"end-tag-open")&&(x=u[b+1],h(x,"tag-name")&&x.value===""&&(x=u[b+2]),x&&x.value==c))return!0}return!1},this.getFoldWidgetRange=function(l,a,c){var o=this._getFirstTagInLine(l,c);if(!o)return this.getCommentFoldWidget(l,c)&&l.getCommentFoldRange(c,l.getLine(c).length);var u=l.getMatchingTags({row:c,column:0});if(u)return new y(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(g.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,i,p){var h=t("../../lib/oop"),f=t("../../range").Range,y=t("./fold_mode").FoldMode,d=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};h.inherits(d,y),(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(g,s,l){var a=g.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var c=this._getFoldWidgetBase(g,s,l);return!c&&this.startRegionRe.test(a)?"start":c},this.getFoldWidgetRange=function(g,s,l,a){var c=g.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(g,c,l);var o=c.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],l,u);var v=g.getCommentFoldRange(l,u+o[0].length,1);return v&&!v.isMultiLine()&&(a?v=this.getSectionRange(g,l):s!="all"&&(v=null)),v}if(s!=="markbegin"){var o=c.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],l,u):g.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(g,s){var l=g.getLine(s),a=l.search(/\S/),c=s,o=l.length;s+=1;for(var u=s,v=g.getLength();++s<v;){l=g.getLine(s);var b=l.search(/\S/);if(b!==-1){if(a>b)break;var x=this.getFoldWidgetRange(g,"all",s);if(x){if(x.start.row<=c)break;if(x.isMultiLine())s=x.end.row;else if(a==b)break}u=s}}return new f(c,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,s,l){for(var a=s.search(/\s*$/),c=g.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,v=1;++l<c;){s=g.getLine(l);var b=u.exec(s);if(b&&(b[1]?v--:v++,!v))break}var x=l;if(x>o)return new f(o,a,x,s.length)}}).call(d.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(t,i,p){var h=t("../../lib/oop"),f=t("./xml").FoldMode,y=t("./cstyle").FoldMode,d=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new f};h.inherits(d,y),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,l){var a=this.getFoldWidgetBase(g,s,l);return a||this.xmlFoldMode.getFoldWidget(g,s,l)},this.getFoldWidgetRange=function(g,s,l,a){var c=this.getFoldWidgetRangeBase(g,s,l,a);return c||this.xmlFoldMode.getFoldWidgetRange(g,s,l)}}).call(d.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(t,i,p){var h=t("../lib/oop"),f=t("./text").Mode,y=t("./javascript_highlight_rules").JavaScriptHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../worker/worker_client").WorkerClient,s=t("./behaviour/javascript").JavaScriptBehaviour,l=t("./folding/javascript").FoldMode,a=function(){this.HighlightRules=y,this.$outdent=new d,this.$behaviour=new s,this.foldingRules=new l};h.inherits(a,f),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(c,o,u){var v=this.$getIndent(o),b=this.getTokenizer().getLineTokens(o,c),x=b.tokens,E=b.state;if(x.length&&x[x.length-1].type=="comment")return v;if(c=="start"||c=="no_regex"){var C=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);C&&(v+=u)}else if(c=="doc-start"&&(E=="start"||E=="no_regex"))return"";return v},this.checkOutdent=function(c,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(c,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(c){var o=new g(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(c.getDocument()),o.on("annotate",function(u){c.setAnnotations(u.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(a.prototype),i.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(t,i,p){var h={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}},f=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var y=document.createElement("c").style;for(var d in y)if(typeof y[d]=="string"){var g=d.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});h.hasOwnProperty(g)||(h[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(y,d,g,s){if(this.completionsDefined||this.defineCompletions(),y==="ruleset"||d.$mode.$id=="ace/mode/scss"){var l=d.getLine(g.row).substr(0,g.column),a=/\([^)]*$/.test(l);return a&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(y,d,g,s):this.getPropertyCompletions(y,d,g,s,a)}return[]},this.getPropertyCompletions=function(y,d,g,s,l){l=l||!1;var a=Object.keys(h);return a.map(function(c){return{caption:c,snippet:c+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(y,d,g,s){var l=d.getLine(g.row).substr(0,g.column),a=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!a)return[];var c=[];return a in h&&typeof h[a]=="object"&&(c=Object.keys(h[a])),c.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(f.prototype),i.CssCompletions=f}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(t,i,p){var h=t("../../lib/oop");t("../behaviour").Behaviour;var f=t("./cstyle").CstyleBehaviour,y=t("../../token_iterator").TokenIterator,d=function(){this.inherit(f),this.add("colon","insertion",function(g,s,l,a,c){if(c===":"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=new y(a,o.row,o.column),v=u.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=u.stepBackward()),v&&v.type==="support.type"){var b=a.doc.getLine(o.row),x=b.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(b.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(g,s,l,a,c){var o=a.doc.getTextRange(c);if(!c.isMultiLine()&&o===":"){var u=l.getCursorPosition(),v=new y(a,u.row,u.column),b=v.getCurrentToken();if(b&&b.value.match(/\s+/)&&(b=v.stepBackward()),b&&b.type==="support.type"){var x=a.doc.getLine(c.start.row),E=x.substring(c.end.column,c.end.column+1);if(E===";")return c.end.column++,c}}}),this.add("semicolon","insertion",function(g,s,l,a,c){if(c===";"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=a.doc.getLine(o.row),v=u.substring(o.column,o.column+1);if(v===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,s,l,a,c){if(c==="!"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};h.inherits(d,f),i.CssBehaviour=d}),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(t,i,p){var h=t("../lib/oop"),f=t("./text").Mode,y=t("./css_highlight_rules").CssHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../worker/worker_client").WorkerClient,s=t("./css_completions").CssCompletions,l=t("./behaviour/css").CssBehaviour,a=t("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=y,this.$outdent=new d,this.$behaviour=new l,this.$completer=new s,this.foldingRules=new a};h.inherits(c,f),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,v){var b=this.$getIndent(u),x=this.getTokenizer().getLineTokens(u,o).tokens;if(x.length&&x[x.length-1].type=="comment")return b;var E=u.match(/^.*\{\s*$/);return E&&(b+=v),b},this.checkOutdent=function(o,u,v){return this.$outdent.checkOutdent(u,v)},this.autoOutdent=function(o,u,v){this.$outdent.autoOutdent(u,v)},this.getCompletions=function(o,u,v,b){return this.$completer.getCompletions(o,u,v,b)},this.createWorker=function(o){var u=new g(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(v){o.setAnnotations(v.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(c.prototype),i.Mode=c}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,i,p){var h=t("../../lib/oop"),f=t("./fold_mode").FoldMode,y=i.FoldMode=function(d,g){this.defaultMode=d,this.subModes=g};h.inherits(y,f),(function(){this.$getMode=function(d){typeof d!="string"&&(d=d[0]);for(var g in this.subModes)if(d.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(d,g,s,l){var a=this.$getMode(d);return a?a.getFoldWidget(g,s,l):""},this.getFoldWidget=function(d,g,s){return this.$tryMode(d.getState(s-1),d,g,s)||this.$tryMode(d.getState(s),d,g,s)||this.defaultMode.getFoldWidget(d,g,s)},this.getFoldWidgetRange=function(d,g,s){var l=this.$getMode(d.getState(s-1));return(!l||!l.getFoldWidget(d,g,s))&&(l=this.$getMode(d.getState(s))),(!l||!l.getFoldWidget(d,g,s))&&(l=this.defaultMode),l.getFoldWidgetRange(d,g,s)}}).call(y.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(t,i,p){var h=t("../../lib/oop"),f=t("./mixed").FoldMode,y=t("./xml").FoldMode,d=t("./cstyle").FoldMode,g=i.FoldMode=function(s,l){f.call(this,new y(s,l),{"js-":new d,"css-":new d})};h.inherits(g,f)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(t,i,p){function h(u,v){return u.type.lastIndexOf(v+".xml")>-1}function f(u,v){for(var b=new d(u,v.row,v.column),x=b.getCurrentToken();x&&!h(x,"tag-name");)x=b.stepBackward();if(x)return x.value}function y(u,v){for(var b=new d(u,v.row,v.column),x=b.getCurrentToken();x&&!h(x,"attribute-name");)x=b.stepBackward();if(x)return x.value}var d=t("../token_iterator").TokenIterator,g=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],s=["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"],l=g.concat(s),a={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:{}},c=Object.keys(a),o=function(){};(function(){this.getCompletions=function(u,v,b,x){var E=v.getTokenAt(b.row,b.column);if(!E)return[];if(h(E,"tag-name")||h(E,"tag-open")||h(E,"end-tag-open"))return this.getTagCompletions(u,v,b,x);if(h(E,"tag-whitespace")||h(E,"attribute-name"))return this.getAttributeCompletions(u,v,b,x);if(h(E,"attribute-value"))return this.getAttributeValueCompletions(u,v,b,x);var C=v.getLine(b.row).substr(0,b.column);return/&[a-z]*$/i.test(C)?this.getHTMLEntityCompletions(u,v,b,x):[]},this.getTagCompletions=function(u,v,b,x){return c.map(function(E){return{value:E,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,v,b,x){var E=f(v,b);if(!E)return[];var C=l;return E in a&&(C=C.concat(Object.keys(a[E]))),C.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,v,b,x){var E=f(v,b),C=y(v,b);if(!E)return[];var k=[];return E in a&&C in a[E]&&typeof a[E][C]=="object"&&(k=Object.keys(a[E][C])),k.map(function(w){return{caption:w,snippet:w,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,v,b,x){var E=["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 E.map(function(C){return{caption:C,snippet:C,meta:"html entity",score:1e6}})}}).call(o.prototype),i.HtmlCompletions=o}),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(t,i,p){var h=t("../lib/oop"),f=t("../lib/lang"),y=t("./text").Mode,d=t("./javascript").Mode,g=t("./css").Mode,s=t("./html_highlight_rules").HtmlHighlightRules,l=t("./behaviour/xml").XmlBehaviour,a=t("./folding/html").FoldMode,c=t("./html_completions").HtmlCompletions,o=t("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],v=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],b=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=s,this.$behaviour=new l,this.$completer=new c,this.createModeDelegates({"js-":d,"css-":g}),this.foldingRules=new a(this.voidElements,f.arrayToMap(v))};h.inherits(b,y),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=f.arrayToMap(u),this.getNextLineIndent=function(x,E,C){return this.$getIndent(E)},this.checkOutdent=function(x,E,C){return!1},this.getCompletions=function(x,E,C,k){return this.$completer.getCompletions(x,E,C,k)},this.createWorker=function(x){if(this.constructor==b){var E=new o(["ace"],"ace/mode/html_worker","Worker");return E.attachToDocument(x.getDocument()),this.fragmentContext&&E.call("setOptions",[{context:this.fragmentContext}]),E.on("error",function(C){x.setAnnotations(C.data)}),E.on("terminate",function(){x.clearAnnotations()}),E}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(b.prototype),i.Mode=b}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,i,p){var h=t("../lib/oop"),f=t("./text_highlight_rules").TextHighlightRules,y=i.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",d=i.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",g=function(){var s=this.createKeywordMapper({keyword:y,"support.function.builtin":d,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",c="(?:\\d+)",o="(?:(?:"+c+"?"+a+")|(?:"+c+"\\.))",u="(?:(?:"+o+"|"+c+"))",v="(?:"+u+"|"+o+")",b="(?:&"+c+")",x="[a-zA-Z_][a-zA-Z0-9_]*",E="(?:"+x+"(?==))",C="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+x+"\\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(w,T,L){var I=w[2]=="-"?"indentedHeredoc":"heredoc",A=w.split(this.splitRegex);return L.push(I,A[4]),[{type:"constant",value:A[1]},{type:"text",value:A[2]},{type:"string",value:A[3]},{type:"support.class",value:A[4]},{type:"string",value:A[5]}]},rules:{heredoc:[{onMatch:function(w,T,L){return w===L[1]?(L.shift(),L.shift(),this.next=L[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(w,T,L){return w===L[1]?(L.shift(),L.shift(),this.next=L[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(w,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:w}},{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:C},{token:"variable",regex:E},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:b},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:v},{token:"constant.numeric",regex:l+"\\b"},{token:s,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()};h.inherits(g,f),i.ShHighlightRules=g}),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(t,i,p){var h=t("../lib/oop"),f=t("./text").Mode,y=t("./sh_highlight_rules").ShHighlightRules,d=t("../range").Range,g=t("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=y,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};h.inherits(s,f),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),v=this.getTokenizer().getLineTokens(c,a),b=v.tokens;if(b.length&&b[b.length-1].type=="comment")return u;if(a=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(u+=o)}return u};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,c,o){if(o!==`\r
|
977
|
+
`&&o!=="\r"&&o!==`
|
978
|
+
`)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),a).tokens;if(!u)return!1;do var v=u.pop();while(v&&(v.type=="comment"||v.type=="text"&&v.value.match(/^\s+$/)));return v?v.type=="keyword"&&l[v.value]:!1},this.autoOutdent=function(a,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),v=c.getTabString();u.slice(-v.length)==v&&c.remove(new d(o,u.length-v.length,o,u.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),i.Mode=s}),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(t,i,p){var h=t("../lib/oop"),f=t("../lib/lang"),y=t("./text").Mode,d=t("./xml_highlight_rules").XmlHighlightRules,g=t("./behaviour/xml").XmlBehaviour,s=t("./folding/xml").FoldMode,l=t("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=d,this.$behaviour=new g,this.foldingRules=new s};h.inherits(a,y),(function(){this.voidElements=f.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(c){var o=new l(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(c.getDocument()),o.on("error",function(u){c.setAnnotations(u.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(a.prototype),i.Mode=a}),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(t,i,p){var h=t("../lib/oop"),f=t("./behaviour/cstyle").CstyleBehaviour,y=t("./text").Mode,d=t("./markdown_highlight_rules").MarkdownHighlightRules,g=t("./folding/markdown").FoldMode,s=function(){this.HighlightRules=d,this.createModeDelegates({javascript:t("./javascript").Mode,html:t("./html").Mode,bash:t("./sh").Mode,sh:t("./sh").Mode,xml:t("./xml").Mode,css:t("./css").Mode}),this.foldingRules=new g,this.$behaviour=new f({braces:!0})};h.inherits(s,y),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,a,c){if(l=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(a);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(a)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(s.prototype),i.Mode=s}),function(){ace.require(["ace/mode/markdown"],function(t){n.exports=t})}()}(Bp)),Bp.exports}Tw();var zp={exports:{}},Wp;function Aw(){return Wp||(Wp=1,function(n,e){ace.define("ace/theme/twilight-css",["require","exports","module"],function(t,i,p){p.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(t,i,p){i.isDark=!0,i.cssClass="ace-twilight",i.cssText=t("./twilight-css");var h=t("../lib/dom");h.importCssString(i.cssText,i.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(t){n.exports=t})}()}(zp)),zp.exports}Aw();var Up={exports:{}},Vp;function Ew(){return Vp||(Vp=1,function(n,e){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(t,i,p){function h(w){var T=new Date().toLocaleString("en-us",w);return T.length==1?"0"+T:T}var f=t("./lib/dom"),y=t("./lib/oop"),d=t("./lib/event_emitter").EventEmitter,g=t("./lib/lang"),s=t("./range").Range,l=t("./range_list").RangeList,a=t("./keyboard/hash_handler").HashHandler,c=t("./tokenizer").Tokenizer,o=t("./clipboard"),u={CURRENT_WORD:function(w){return w.session.getTextRange(w.session.getWordRange())},SELECTION:function(w,T,L){var I=w.session.getTextRange();return L?I.replace(/\n\r?([ \t]*\S)/g,`
|
1109
|
+
`+L+"$1"):I},CURRENT_LINE:function(w){return w.session.getLine(w.getCursorPosition().row)},PREV_LINE:function(w){return w.session.getLine(w.getCursorPosition().row-1)},LINE_INDEX:function(w){return w.getCursorPosition().row},LINE_NUMBER:function(w){return w.getCursorPosition().row+1},SOFT_TABS:function(w){return w.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(w){return w.session.getTabSize()},CLIPBOARD:function(w){return o.getText&&o.getText()},FILENAME:function(w){return/[^/\\]*$/.exec(this.FILEPATH(w))[0]},FILENAME_BASE:function(w){return/[^/\\]*$/.exec(this.FILEPATH(w))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(w){return this.FILEPATH(w).replace(/[^/\\]*$/,"")},FILEPATH:function(w){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(w){var T=w.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(w){var T=w.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(w){var T=w.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:h.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:h.bind(null,{year:"2-digit"}),CURRENT_MONTH:h.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:h.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:h.bind(null,{month:"short"}),CURRENT_DATE:h.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:h.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:h.bind(null,{weekday:"short"}),CURRENT_HOUR:h.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:h.bind(null,{minute:"2-digit"}),CURRENT_SECOND:h.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var v=function(){function w(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return w.prototype.getTokenizer=function(){return w.$tokenizer||this.createTokenizer()},w.prototype.createTokenizer=function(){function T(A){return A=A.substr(1),/^\d+$/.test(A)?[{tabstopId:parseInt(A,10)}]:[{text:A}]}function L(A){return"(?:[^\\\\"+A+"]|\\\\.)"}var I={regex:"/("+L("/")+"+)/",onMatch:function(A,N,S){var _=S[0];return _.fmtString=!0,_.guard=A.slice(1,-1),_.flag="",""},next:"formatString"};return w.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(A,N,S){var _=A[1];return(_=="}"&&S.length||"`$\\".indexOf(_)!=-1)&&(A=_),[A]}},{regex:/}/,onMatch:function(A,N,S){return[S.length?S.shift():A]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(A,N,S){var _=T(A.substr(1));return S.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+L("\\|")+"*\\|",onMatch:function(A,N,S){var _=A.slice(1,-1).replace(/\\[,|\\]|,/g,function($){return $.length==2?$[1]:"\0"}).split("\0").map(function($){return{value:$}});return S[0].choices=_,[_[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(A,N,S){return S.length&&S[0].expectElse?(S[0].expectElse=!1,S[0].ifEnd={elseEnd:S[0]},[S[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(A,N,S){var _=A[1];return _=="}"&&S.length||"`$\\".indexOf(_)!=-1?A=_:_=="n"?A=`
|
1110
|
+
`:_=="t"?A=" ":"ulULE".indexOf(_)!=-1&&(A={changeCase:_,local:_>"a"}),[A]}},{regex:"/\\w*}",onMatch:function(A,N,S){var _=S.shift();return _&&(_.flag=A.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||A]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(A,N,S){return[{text:A.slice(1)}]}},{regex:/\${\w+/,onMatch:function(A,N,S){var _={text:A.slice(2)};return S.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(A,N,S){var _=S.shift();return this.next=_&&_.tabstopId?"start":"",[_||A]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(A,N,S){var _=S[0];return _.formatFunction=A.slice(2,-1),[S.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(A,N,S){A[1]=="+"&&(S[0].ifEnd=S[0]),A[1]=="?"&&(S[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),w.$tokenizer},w.prototype.tokenizeTmSnippet=function(T,L){return this.getTokenizer().getLineTokens(T,L).tokens.map(function(I){return I.value||I})},w.prototype.getVariableValue=function(T,L,I){if(/^\d+$/.test(L))return(this.variables.__||{})[L]||"";if(/^[A-Z]\d+$/.test(L))return(this.variables[L[0]+"__"]||{})[L.substr(1)]||"";if(L=L.replace(/^TM_/,""),!this.variables.hasOwnProperty(L))return"";var A=this.variables[L];return typeof A=="function"&&(A=this.variables[L](T,L,I)),A??""},w.prototype.tmStrFormat=function(T,L,I){if(!L.fmt)return T;var A=L.flag||"",N=L.guard;N=new RegExp(N,A.replace(/[^gim]/g,""));var S=typeof L.fmt=="string"?this.tokenizeTmSnippet(L.fmt,"formatString"):L.fmt,_=this,$=T.replace(N,function(){var R=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables(S,I),F="E",H=0;H<O.length;H++){var W=O[H];if(typeof W=="object")if(O[H]="",W.changeCase&&W.local){var V=O[H+1];V&&typeof V=="string"&&(W.changeCase=="u"?O[H]=V[0].toUpperCase():O[H]=V[0].toLowerCase(),O[H+1]=V.substr(1))}else W.changeCase&&(F=W.changeCase);else F=="U"?O[H]=W.toUpperCase():F=="L"&&(O[H]=W.toLowerCase())}return _.variables.__=R,O.join("")});return $},w.prototype.tmFormatFunction=function(T,L,I){return L.formatFunction=="upcase"?T.toUpperCase():L.formatFunction=="downcase"?T.toLowerCase():T},w.prototype.resolveVariables=function(T,L){function I(F){var H=T.indexOf(F,_+1);H!=-1&&(_=H)}for(var A=[],N="",S=!0,_=0;_<T.length;_++){var $=T[_];if(typeof $=="string"){A.push($),$==`
|
1111
|
+
`?(S=!0,N=""):S&&(N=/^\t*/.exec($)[0],S=/\S/.test($));continue}if($){if(S=!1,$.fmtString){var R=T.indexOf($,_+1);R==-1&&(R=T.length),$.fmt=T.slice(_+1,R),_=R}if($.text){var O=this.getVariableValue(L,$.text,N)+"";$.fmtString&&(O=this.tmStrFormat(O,$,L)),$.formatFunction&&(O=this.tmFormatFunction(O,$,L)),O&&!$.ifEnd?(A.push(O),I($)):!O&&$.ifEnd&&I($.ifEnd)}else $.elseEnd?I($.elseEnd):($.tabstopId!=null||$.changeCase!=null)&&A.push($)}}return A},w.prototype.getDisplayTextForSnippet=function(T,L){var I=b.call(this,T,L);return I.text},w.prototype.insertSnippetForSelection=function(T,L,I){I===void 0&&(I={});var A=b.call(this,T,L,I),N=T.getSelectionRange(),S=T.session.replace(N,A.text),_=new x(T),$=T.inVirtualSelectionMode&&T.selection.index;_.addTabstops(A.tabstops,N.start,S,$)},w.prototype.insertSnippet=function(T,L,I){I===void 0&&(I={});var A=this;if(T.inVirtualSelectionMode)return A.insertSnippetForSelection(T,L,I);T.forEachSelection(function(){A.insertSnippetForSelection(T,L,I)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},w.prototype.$getScope=function(T){var L=T.session.$mode.$id||"";if(L=L.split("/").pop(),L==="html"||L==="php"){L==="php"&&!T.session.$mode.inlinePhp&&(L="html");var I=T.getCursorPosition(),A=T.session.getState(I.row);typeof A=="object"&&(A=A[0]),A.substring&&(A.substring(0,3)=="js-"?L="javascript":A.substring(0,4)=="css-"?L="css":A.substring(0,4)=="php-"&&(L="php"))}return L},w.prototype.getActiveScopes=function(T){var L=this.$getScope(T),I=[L],A=this.snippetMap;return A[L]&&A[L].includeScopes&&I.push.apply(I,A[L].includeScopes),I.push("_"),I},w.prototype.expandWithTab=function(T,L){var I=this,A=T.forEachSelection(function(){return I.expandSnippetForSelection(T,L)},null,{keepOrder:!0});return A&&T.tabstopManager&&T.tabstopManager.tabNext(),A},w.prototype.expandSnippetForSelection=function(T,L){var I=T.getCursorPosition(),A=T.session.getLine(I.row),N=A.substring(0,I.column),S=A.substr(I.column),_=this.snippetMap,$;return this.getActiveScopes(T).some(function(R){var O=_[R];return O&&($=this.findMatchingSnippet(O,N,S)),!!$},this),$?(L&&L.dryRun||(T.session.doc.removeInLine(I.row,I.column-$.replaceBefore.length,I.column+$.replaceAfter.length),this.variables.M__=$.matchBefore,this.variables.T__=$.matchAfter,this.insertSnippetForSelection(T,$.content),this.variables.M__=this.variables.T__=null),!0):!1},w.prototype.findMatchingSnippet=function(T,L,I){for(var A=T.length;A--;){var N=T[A];if(!(N.startRe&&!N.startRe.test(L))&&!(N.endRe&&!N.endRe.test(I))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(L):[""],N.matchAfter=N.endRe?N.endRe.exec(I):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(L)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(I)[0]:"",N}},w.prototype.register=function(T,L){function I(R){return R&&!/^\^?\(.*\)\$?$|^\\b$/.test(R)&&(R="(?:"+R+")"),R||""}function A(R,O,F){return R=I(R),O=I(O),R=O+R,R&&R[R.length-1]!="$"&&(R+="$"),new RegExp(R)}function N(R){R.scope||(R.scope=L||"_"),L=R.scope,S[L]||(S[L]=[],_[L]={});var O=_[L];if(R.name){var F=O[R.name];F&&$.unregister(F),O[R.name]=R}S[L].push(R),R.prefix&&(R.tabTrigger=R.prefix),!R.content&&R.body&&(R.content=Array.isArray(R.body)?R.body.join(`
|
1112
|
+
`):R.body),R.tabTrigger&&!R.trigger&&(!R.guard&&/^\w/.test(R.tabTrigger)&&(R.guard="\\b"),R.trigger=g.escapeRegExp(R.tabTrigger)),!(!R.trigger&&!R.guard&&!R.endTrigger&&!R.endGuard)&&(R.startRe=A(R.trigger,R.guard),R.triggerRe=new RegExp(R.trigger),R.endRe=A(R.endTrigger,R.endGuard),R.endTriggerRe=new RegExp(R.endTrigger))}var S=this.snippetMap,_=this.snippetNameMap,$=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(R){N(T[R])}),this._signal("registerSnippets",{scope:L})},w.prototype.unregister=function(T,L){function I(S){var _=N[S.scope||L];if(_&&_[S.name]){delete _[S.name];var $=A[S.scope||L],R=$&&$.indexOf(S);R>=0&&$.splice(R,1)}}var A=this.snippetMap,N=this.snippetNameMap;T.content?I(T):Array.isArray(T)&&T.forEach(I)},w.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var L=[],I={},A=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=A.exec(T);){if(N[1])try{I=JSON.parse(N[1]),L.push(I)}catch{}if(N[4])I.content=N[4].replace(/^\t/gm,""),L.push(I),I={};else{var S=N[2],_=N[3];if(S=="regex"){var $=/\/((?:[^\/\\]|\\.)*)|$/g;I.guard=$.exec(_)[1],I.trigger=$.exec(_)[1],I.endTrigger=$.exec(_)[1],I.endGuard=$.exec(_)[1]}else S=="snippet"?(I.tabTrigger=_.match(/^\S*/)[0],I.name||(I.name=_)):S&&(I[S]=_)}}return L},w.prototype.getSnippetByName=function(T,L){var I=this.snippetNameMap,A;return this.getActiveScopes(L).some(function(N){var S=I[N];return S&&(A=S[T]),!!A},this),A},w}();y.implement(v.prototype,d);var b=function(w,T,L){function I(J){for(var ae=[],me=0;me<J.length;me++){var ye=J[me];if(typeof ye=="object"){if(O[ye.tabstopId])continue;var fe=J.lastIndexOf(ye,me-1);ye=ae[fe]||{tabstopId:ye.tabstopId}}ae[me]=ye}return ae}L===void 0&&(L={});var A=w.getCursorPosition(),N=w.session.getLine(A.row),S=w.session.getTabString(),_=N.match(/^\s*/)[0];A.column<_.length&&(_=_.slice(0,A.column)),T=T.replace(/\r/g,"");var $=this.tokenizeTmSnippet(T);$=this.resolveVariables($,w),$=$.map(function(J){return J==`
|
1113
|
+
`&&!L.excludeExtraIndent?J+_:typeof J=="string"?J.replace(/\t/g,S):J});var R=[];$.forEach(function(J,ae){if(typeof J=="object"){var me=J.tabstopId,ye=R[me];if(ye||(ye=R[me]=[],ye.index=me,ye.value="",ye.parents={}),ye.indexOf(J)===-1){J.choices&&!ye.choices&&(ye.choices=J.choices),ye.push(J);var fe=$.indexOf(J,ae+1);if(fe!==-1){var Ce=$.slice(ae+1,fe),lt=Ce.some(function(Ut){return typeof Ut=="object"});lt&&!ye.value?ye.value=Ce:Ce.length&&(!ye.value||typeof ye.value!="string")&&(ye.value=Ce.join(""))}}}}),R.forEach(function(J){J.length=0});for(var O={},F=0;F<$.length;F++){var H=$[F];if(typeof H=="object"){var W=H.tabstopId,V=R[W],q=$.indexOf(H,F+1);if(O[W]){O[W]===H&&(delete O[W],Object.keys(O).forEach(function(J){V.parents[J]=!0}));continue}O[W]=H;var X=V.value;typeof X!="string"?X=I(X):H.fmt&&(X=this.tmStrFormat(X,H,w)),$.splice.apply($,[F+1,Math.max(0,q-F)].concat(X,H)),V.indexOf(H)===-1&&V.push(H)}}var G=0,Z=0,ie="";return $.forEach(function(J){if(typeof J=="string"){var ae=J.split(`
|
1114
|
+
`);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=J.length,ie+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:ie,tabstops:R,tokens:$}},x=function(){function w(T){if(this.index=0,this.ranges=[],this.tabstops=[],T.tabstopManager)return T.tabstopManager;T.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=g.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return w.prototype.attach=function(T){this.$openTabstops=null,this.selectedTabstop=null,this.editor=T,this.session=T.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)},w.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},w.prototype.onChange=function(T){for(var L=T.action[0]=="r",I=this.selectedTabstop||{},A=I.parents||{},N=this.tabstops.slice(),S=0;S<N.length;S++){var _=N[S],$=_==I||A[_.index];if(_.rangeList.$bias=$?0:1,T.action=="remove"&&_!==I){var R=_.parents&&_.parents[I.index],O=_.rangeList.pointIndex(T.start,R);O=O<0?-O-1:O+1;var F=_.rangeList.pointIndex(T.end,R);F=F<0?-F-1:F-1;for(var H=_.rangeList.ranges.slice(O,F),W=0;W<H.length;W++)this.removeRange(H[W])}_.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&L&&V.getLength()==1&&!V.getValue()&&this.detach()},w.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var L=this.session,I=L.getTextRange(T.firstNonLinked),A=0;A<T.length;A++){var N=T[A];if(N.linked){var S=N.original,_=i.snippetManager.tmStrFormat(I,S,this.editor);L.replace(N,_)}}this.$inChange=!1}},w.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},w.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,L=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),A=0;A<this.ranges.length;A++)if(!this.ranges[A].linked){var N=this.ranges[A].contains(T.row,T.column),S=I||this.ranges[A].contains(L.row,L.column);if(N&&S)return}this.detach()}},w.prototype.onChangeSession=function(){this.detach()},w.prototype.tabNext=function(T){var L=this.tabstops.length,I=this.index+(T||1);I=Math.min(Math.max(I,1),L),I==L&&(I=0),this.selectTabstop(I),this.updateTabstopMarkers(),I===0&&this.detach()},w.prototype.selectTabstop=function(T){this.$openTabstops=null;var L=this.tabstops[this.index];if(L&&this.addTabstopMarkers(L),this.index=T,L=this.tabstops[this.index],!(!L||!L.length)){this.selectedTabstop=L;var I=L.firstNonLinked||L;if(L.choices&&(I.cursor=I.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(I);else{var A=this.editor.multiSelect;A.toSingleRange(I);for(var N=0;N<L.length;N++)L.hasLinkedRanges&&L[N].linked||A.addRange(L[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},w.prototype.addTabstops=function(T,L,I){var A=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=s.fromPoints(I,I);C(N.start,L),C(N.end,L),T[0]=[N],T[0].index=0}var S=this.index,_=[S+1,0],$=this.ranges,R=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var H=this.$openTabstops[F]||O;H.snippetId=R;for(var W=0;W<O.length;W++){var V=O[W],q=s.fromPoints(V.start,V.end||V.start);E(q.start,L),E(q.end,L),q.original=V,q.tabstop=H,$.push(q),H!=O?H.unshift(q):H[W]=q,V.fmtString||H.firstNonLinked&&A?(q.linked=!0,H.hasLinkedRanges=!0):H.firstNonLinked||(H.firstNonLinked=q)}H.firstNonLinked||(H.hasLinkedRanges=!1),H===O&&(_.push(H),this.$openTabstops[F]=H),this.addTabstopMarkers(H),H.rangeList=H.rangeList||new l,H.rangeList.$bias=0,H.rangeList.addList(H)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},w.prototype.addTabstopMarkers=function(T){var L=this.session;T.forEach(function(I){I.markerId||(I.markerId=L.addMarker(I,"ace_snippet-marker","text"))})},w.prototype.removeTabstopMarkers=function(T){var L=this.session;T.forEach(function(I){L.removeMarker(I.markerId),I.markerId=null})},w.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(L){L.snippetId===T?this.addTabstopMarkers(L):this.removeTabstopMarkers(L)},this)}},w.prototype.removeRange=function(T){var L=T.tabstop.indexOf(T);L!=-1&&T.tabstop.splice(L,1),L=this.ranges.indexOf(T),L!=-1&&this.ranges.splice(L,1),L=T.tabstop.rangeList.ranges.indexOf(T),L!=-1&&T.tabstop.splice(L,1),this.session.removeMarker(T.markerId),T.tabstop.length||(L=this.tabstops.indexOf(T.tabstop),L!=-1&&this.tabstops.splice(L,1),this.tabstops.length||this.detach())},w}();x.prototype.keyboardHandler=new a,x.prototype.keyboardHandler.bindKeys({Tab:function(w){i.snippetManager&&i.snippetManager.expandWithTab(w)||(w.tabstopManager.tabNext(1),w.renderer.scrollCursorIntoView())},"Shift-Tab":function(w){w.tabstopManager.tabNext(-1),w.renderer.scrollCursorIntoView()},Esc:function(w){w.tabstopManager.detach()}});var E=function(w,T){w.row==0&&(w.column+=T.column),w.row+=T.row},C=function(w,T){w.row==T.row&&(w.column-=T.column),w.row-=T.row};f.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),i.snippetManager=new v;var k=t("./editor").Editor;(function(){this.insertSnippet=function(w,T){return i.snippetManager.insertSnippet(this,w,T)},this.expandSnippet=function(w){return i.snippetManager.expandWithTab(this,w)}}).call(k.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(t,i,p){var h=t("../virtual_renderer").VirtualRenderer,f=t("../editor").Editor,y=t("../range").Range,d=t("../lib/event"),g=t("../lib/lang"),s=t("../lib/dom"),l=t("../config").nls,a=t("./../lib/useragent"),c=function(E){return"suggest-aria-id:".concat(E)},o=a.isSafari?"menu":"listbox",u=a.isSafari?"menuitem":"option",v=a.isSafari?"aria-current":"aria-selected",b=function(E){var C=new h(E);C.$maxLines=4;var k=new f(C);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function E(C){var k=s.createElement("div"),w=b(k);C&&C.appendChild(k),k.style.display="none",w.renderer.content.style.cursor="default",w.renderer.setStyle("ace_autocomplete"),w.renderer.$textLayer.element.setAttribute("role",o),w.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),w.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),w.renderer.textarea.setAttribute("aria-hidden","true"),w.setOption("displayIndentGuides",!1),w.setOption("dragDelay",150);var T=function(){};w.focus=T,w.$isFocused=!0,w.renderer.$cursorLayer.restartTimer=T,w.renderer.$cursorLayer.element.style.opacity="0",w.renderer.$maxLines=8,w.renderer.$keepTextAreaAtCursor=!1,w.setHighlightActiveLine(!1),w.session.highlight(""),w.session.$searchHighlight.clazz="ace_highlight-marker",w.on("mousedown",function($){var R=$.getDocumentPosition();w.selection.moveToPosition(R),A.start.row=A.end.row=R.row,$.stop()});var L,I=new y(-1,0,-1,1/0),A=new y(-1,0,-1,1/0);A.id=w.session.addMarker(A,"ace_active-line","fullLine"),w.setSelectOnHover=function($){$?I.id&&(w.session.removeMarker(I.id),I.id=null):I.id=w.session.addMarker(I,"ace_line-hover","fullLine")},w.setSelectOnHover(!1),w.on("mousemove",function($){if(!L){L=$;return}if(!(L.x==$.x&&L.y==$.y)){L=$,L.scrollTop=w.renderer.scrollTop,w.isMouseOver=!0;var R=L.getDocumentPosition().row;I.start.row!=R&&(I.id||w.setRow(R),S(R))}}),w.renderer.on("beforeRender",function(){if(L&&I.start.row!=-1){L.$pos=null;var $=L.getDocumentPosition().row;I.id||w.setRow($),S($,!0)}}),w.renderer.on("afterRender",function(){var $=w.getRow(),R=w.renderer.$textLayer,O=R.element.childNodes[$-R.config.firstRow],F=document.activeElement;if(O!==w.selectedNode&&w.selectedNode&&(s.removeCssClass(w.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),w.selectedNode.removeAttribute(v),w.selectedNode.removeAttribute("id")),w.selectedNode=O,O){s.addCssClass(O,"ace_selected");var H=c($);O.id=H,R.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),O.setAttribute("role",u),O.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),O.setAttribute("aria-label",w.getData($).caption||w.getData($).value),O.setAttribute("aria-setsize",w.data.length),O.setAttribute("aria-posinset",$+1),O.setAttribute("aria-describedby","doc-tooltip"),O.setAttribute(v,"true")}});var N=function(){S(-1)},S=function($,R){$!==I.start.row&&(I.start.row=I.end.row=$,R||w.session._emit("changeBackMarker"),w._emit("changeHoverMarker"))};w.getHoveredRow=function(){return I.start.row},d.addListener(w.container,"mouseout",function(){w.isMouseOver=!1,N()}),w.on("hide",N),w.on("changeSelection",N),w.session.doc.getLength=function(){return w.data.length},w.session.doc.getLine=function($){var R=w.data[$];return typeof R=="string"?R:R&&R.value||""};var _=w.session.bgTokenizer;return _.$tokenizeRow=function($){function R(J,ae){J&&F.push({type:(O.className||"")+(ae||""),value:J})}var O=w.data[$],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var H=O.caption||O.value||O.name,W=H.toLowerCase(),V=(w.filterText||"").toLowerCase(),q=0,X=0,G=0;G<=V.length;G++)if(G!=X&&(O.matchMask&1<<G||G==V.length)){var Z=V.slice(X,G);X=G;var ie=W.indexOf(Z,q);if(ie==-1)continue;R(H.slice(q,ie),""),q=ie+Z.length,R(H.slice(ie,q),"completion-highlight")}return R(H.slice(q,H.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},_.$updateOnChange=T,_.start=T,w.session.$computeWidth=function(){return this.screenWidth=0},w.isOpen=!1,w.isTopdown=!1,w.autoSelect=!0,w.filterText="",w.isMouseOver=!1,w.data=[],w.setData=function($,R){w.filterText=R||"",w.setValue(g.stringRepeat(`
|
1122
|
+
`,$.length),-1),w.data=$||[],w.setRow(0)},w.getData=function($){return w.data[$]},w.getRow=function(){return A.start.row},w.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),A.start.row!=$&&(w.selection.clearSelection(),A.start.row=A.end.row=$||0,w.session._emit("changeBackMarker"),w.moveCursorTo($||0,0),w.isOpen&&w._signal("select"))},w.on("changeSelection",function(){w.isOpen&&w.setRow(w.selection.lead.row),w.renderer.scrollCursorIntoView()}),w.hide=function(){this.container.style.display="none",w.anchorPos=null,w.anchor=null,w.isOpen&&(w.isOpen=!1,this._signal("hide"))},w.tryShow=function($,R,O,F){if(!F&&w.isOpen&&w.anchorPos&&w.anchor&&w.anchorPos.top===$.top&&w.anchorPos.left===$.left&&w.anchor===O)return!0;var H=this.container,W=window.innerHeight,V=window.innerWidth,q=this.renderer,X=q.$maxLines*R*1.4,G={top:0,bottom:0,left:0},Z=W-$.top-3*this.$borderSize-R,ie=$.top-3*this.$borderSize;O||(ie<=Z||Z>=X?O="bottom":O="top"),O==="top"?(G.bottom=$.top-this.$borderSize,G.top=G.bottom-X):O==="bottom"&&(G.top=$.top+R+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=W;if(!F&&!J)return!1;J?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=ie:q.$maxPixelHeight=Z,O==="top"?(H.style.top="",H.style.bottom=W-G.bottom+"px",w.isTopdown=!1):(H.style.top=G.top+"px",H.style.bottom="",w.isTopdown=!0),H.style.display="";var ae=$.left;return ae+H.offsetWidth>V&&(ae=V-H.offsetWidth),H.style.left=ae+"px",H.style.right="",w.isOpen||(w.isOpen=!0,this._signal("show"),L=null),w.anchorPos=$,w.anchor=O,!0},w.show=function($,R,O){this.tryShow($,R,O?"bottom":void 0,!0)},w.goTo=function($){var R=this.getRow(),O=this.session.getLength()-1;switch($){case"up":R=R<=0?O:R-1;break;case"down":R=R>=O?-1:R+1;break;case"start":R=0;break;case"end":R=O}this.setRow(R)},w.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},w.$imageSize=0,w.$borderSize=1,w}return E}();s.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),i.AcePopup=x,i.$singleLineEditor=b,i.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(t,i,p){var h=function(){function f(y){this.editor=y,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return f.prototype.setScreenReaderContent=function(y){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),s=this.popup.renderer.$textLayer,l=s.element.childNodes[g-s.config.firstRow];if(l){for(var a="doc-tooltip ",c=0;c<this._lines.length;c++)a+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",a)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=y.split(/\r\n|\r|\n/);var d=this.createCodeBlock();this.screenReaderDiv.appendChild(d)},f.prototype.destroy=function(){this.screenReaderDiv.remove()},f.prototype.createCodeBlock=function(){var y=document.createElement("pre");y.setAttribute("id","ace-inline-screenreader");for(var d=0;d<this._lines.length;d++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(d));var s=document.createTextNode(this._lines[d]);g.appendChild(s),y.appendChild(g)}return y},f}();i.AceInlineScreenReader=h}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(t,i,p){var h=t("../snippets").snippetManager,f=t("./inline_screenreader").AceInlineScreenReader,y=function(){function d(){this.editor=null}return d.prototype.show=function(g,s,l){if(l=l||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new f(g));var a=s.snippet?h.getDisplayTextForSnippet(g,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(l)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(l.length),a===""?g.removeGhostText():g.setGhostText(a),!0)},d.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},d.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},d.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},d}();i.AceInline=y}),ace.define("ace/autocomplete/util",["require","exports","module"],function(t,i,p){i.parForEach=function(f,y,d){var g=0,s=f.length;s===0&&d();for(var l=0;l<s;l++)y(f[l],function(a,c){g++,g===s&&d(a,c)})};var h=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;i.retrievePrecedingIdentifier=function(f,y,d){d=d||h;for(var g=[],s=y-1;s>=0&&d.test(f[s]);s--)g.push(f[s]);return g.reverse().join("")},i.retrieveFollowingIdentifier=function(f,y,d){d=d||h;for(var g=[],s=y;s<f.length&&d.test(f[s]);s++)g.push(f[s]);return g},i.getCompletionPrefix=function(f){var y=f.getCursorPosition(),d=f.session.getLine(y.row),g;return f.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(l){!g&&l&&(g=this.retrievePrecedingIdentifier(d,y.column,l))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(d,y.column)},i.triggerAutocomplete=function(f,d){var d=d??f.session.getPrecedingCharacter();return f.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(d)})}}),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(t,i,p){var h=t("./keyboard/hash_handler").HashHandler,f=t("./autocomplete/popup").AcePopup,y=t("./autocomplete/inline").AceInline,d=t("./autocomplete/popup").getAriaId,g=t("./autocomplete/util"),s=t("./lib/lang"),l=t("./lib/dom"),a=t("./snippets").snippetManager,c=t("./config"),o=t("./lib/event"),u=t("./lib/scroll").preventParentScroll,v=function(C,k){k.completer&&k.completer.destroy()},b=function(){function C(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new h,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=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new E(C.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(C,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),C.prototype.$init=function(){return this.popup=new f(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.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)),o.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},C.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new y,this.inlineRenderer},C.prototype.getPopup=function(){return this.popup||this.$init()},C.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},C.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},C.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var w=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(w),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)},C.prototype.$updateGhostText=function(k){var w=this.base.row,T=this.base.column,L=this.editor.getCursorPosition().column,I=this.editor.session.getLine(w).slice(T,L);this.inlineRenderer.show(this.editor,k,I)?this.$seen(k):this.inlineRenderer.hide()},C.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var w=this.popup.getFirstVisibleRow();w<=this.popup.getLastVisibleRow();w++){var T=this.popup.getData(w);T&&(!k||T.hideInlinePreview)&&this.$seen(T)}},C.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},C.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,w=[];k;)w.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=w}},C.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(w){w.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},C.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},C.prototype.$updatePopupPosition=function(){var k=this.editor,w=k.renderer,T=w.layerConfig.lineHeight,L=w.$cursorLayer.getPixelPosition(this.base,!0);L.left-=this.popup.getTextLeftOffset();var I=k.container.getBoundingClientRect();L.top+=I.top-w.layerConfig.offset,L.left+=I.left-k.renderer.scrollLeft,L.left+=w.gutterWidth;var A={top:L.top,left:L.left};w.$ghostText&&w.$ghostTextWidget&&this.base.row===w.$ghostText.position.row&&(A.top+=w.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-T,S=N<A.top?{top:N,left:A.left}:A;this.popup.tryShow(S,T,"bottom")||this.popup.tryShow(L,T,"top")||this.popup.show(L,T)},C.prototype.openPopup=function(k,w,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var L=this.popup.getRow(),I=this.popup.data[L];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:d(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var A;this.stickySelection&&(A=this.popup.data.indexOf(I)),(!A||A===-1)&&(A=0),this.popup.setRow(this.autoSelect?A:-1),A===L&&I!==this.completions.filtered[A]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(A===L&&N){var S=this.popup.getData(this.popup.getRow());this.$updateGhostText(S)}T||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},C.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()},C.prototype.changeListener=function(k){var w=this.editor.selection.lead;(w.row!=this.base.row||w.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},C.prototype.blurListener=function(k){var w=document.activeElement,T=this.editor.textInput.getElement(),L=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;w!=T&&w.parentNode!=I&&!L&&w!=this.tooltipNode&&k.relatedTarget!=T&&this.detach()},C.prototype.mousedownListener=function(k){this.detach()},C.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},C.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},C.prototype.goTo=function(k){this.popup.goTo(k)},C.prototype.insertMatch=function(k,w){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var T=this.completions,L=this.getCompletionProvider().insertMatch(this.editor,k,T.filterText,w);return this.completions==T&&this.detach(),L},C.prototype.showPopup=function(k,w){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,w)},C.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},C.prototype.gatherCompletions=function(k,w){return this.getCompletionProvider().gatherCompletions(k,w)},C.prototype.updateCompletions=function(k,w){if(k&&this.base&&this.completions){var L=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:L});if(I==this.completions.filterText)return;if(this.completions.setFilter(I),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==I&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,I,k);return}if(w&&w.matches){var L=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(L.row,L.column),this.base.$insertRight=!0,this.completions=new E(w.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var T=this.editor.getSession(),L=this.editor.getCursorPosition(),I=g.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(L.row,L.column-I.length),this.base.$insertRight=!0;var A={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:L}).provideCompletions(this.editor,A,(function(N,S,_){var $=S.filtered,R=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!$.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(R)),O){var F=[{caption:O,value:""}];this.completions=new E(F),this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==R&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!_&&this.showLoadingState?new E(C.completionsForLoading.concat($),S.filterText):S,this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},C.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},C.prototype.updateDocTooltip=function(){var k=this.popup,w=this.completions.filtered,T=w&&(w[k.getHoveredRow()]||w[k.getRow()]),L=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,A=0;A<I;A++){var N=this.editor.completers[A];if(N.getDocTooltip&&T.completerId===N.id){L=N.getDocTooltip(T);break}}if(!L&&typeof T!="string"&&(L=T),typeof L=="string"&&(L={docText:L}),!L||!L.docHTML&&!L.docText)return this.hideDocTooltip();this.showDocTooltip(L)},C.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=l.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",u));var w=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(w.isDark?"ace_dark ":"")+(w.cssClass||"");var T=this.tooltipNode;k.docHTML?T.innerHTML=k.docHTML:k.docText&&(T.textContent=k.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var L=this.popup,I=L.container.getBoundingClientRect();T.style.top=L.container.style.top,T.style.bottom=L.container.style.bottom,T.style.display="block",window.innerWidth-I.right<320?I.left<320?L.isTopdown?(T.style.top=I.bottom+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=L.container.offsetTop-T.offsetHeight+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-I.left+"px",T.style.left=""):(T.style.left=I.right+1+"px",T.style.right="")},C.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},C.prototype.onTooltipClick=function(k){for(var w=k.target;w&&w!=this.tooltipNode;){if(w.nodeName=="A"&&w.href){w.rel="noreferrer",w.target="_blank";break}w=w.parentNode}},C.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",v),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},C.for=function(k){return k.completer instanceof C||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(C.$sharedInstance||(C.$sharedInstance=new C),k.completer=C.$sharedInstance):(k.completer=new C,k.once("destroy",v))),k.completer},C}();b.prototype.commands={Up:function(C){C.completer.goTo("up")},Down:function(C){C.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(C){C.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(C){C.completer.goTo("end")},Esc:function(C){C.completer.detach()},Return:function(C){return C.completer.insertMatch()},"Shift-Return":function(C){C.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(C){var k=C.completer.insertMatch();if(k||C.tabstopManager)return k;C.completer.goTo("down")},Backspace:function(C){C.execCommand("backspace");var k=g.getCompletionPrefix(C);!k&&C.completer&&C.completer.detach()},PageUp:function(C){C.completer.popup.gotoPageUp()},PageDown:function(C){C.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(C,k){var w=b.for(C);w.autoInsert=!1,w.autoSelect=!0,w.autoShown=!1,w.showPopup(C,k),w.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function C(k){this.initialPosition=k,this.active=!0}return C.prototype.insertByIndex=function(k,w,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[w],T)},C.prototype.insertMatch=function(k,w,T){if(!w)return!1;if(k.startOperation({command:{name:"insertMatch"}}),w.completer&&w.completer.insertMatch)w.completer.insertMatch(k,w);else{if(!this.completions)return!1;var L=this.completions.filterText.length,I=0;if(w.range&&w.range.start.row===w.range.end.row&&(L-=this.initialPosition.prefix.length,L+=this.initialPosition.pos.column-w.range.start.column,I+=w.range.end.column-this.initialPosition.pos.column),L||I){var A;k.selection.getAllRanges?A=k.selection.getAllRanges():A=[k.getSelectionRange()];for(var N=0,S;S=A[N];N++)S.start.column-=L,S.end.column+=I,k.session.remove(S)}w.snippet?a.insertSnippet(k,w.snippet):this.$insertString(k,w),w.completer&&w.completer.onInsert&&typeof w.completer.onInsert=="function"&&w.completer.onInsert(k,w),w.command&&w.command==="startAutocomplete"&&k.execCommand(w.command)}return k.endOperation(),!0},C.prototype.$insertString=function(k,w){var T=w.value||w;k.execCommand("insertstring",T)},C.prototype.gatherCompletions=function(k,w){var T=k.getSession(),L=k.getCursorPosition(),I=g.getCompletionPrefix(k),A=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function(S,_){S.getCompletions(k,T,L,I,function($,R){S.hideInlinePreview&&(R=R.map(function(O){return Object.assign(O,{hideInlinePreview:S.hideInlinePreview})})),!$&&R&&(A=A.concat(R)),w(null,{prefix:g.getCompletionPrefix(k),matches:A,finished:--N===0})})}),!0},C.prototype.provideCompletions=function(k,w,T){var L=(function(S){var _=S.prefix,$=S.matches;this.completions=new E($),w.exactMatch&&(this.completions.exactMatch=!0),w.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),(S.finished||this.completions.filtered.length)&&T(null,this.completions,S.finished)}).bind(this),I=!0,A=null;if(this.gatherCompletions(k,(function(S,_){if(this.active){S&&(T(S,[],!0),this.detach());var $=_.prefix;if($.indexOf(_.prefix)===0){if(I){A=_;return}L(_)}}}).bind(this)),I=!1,A){var N=A;A=null,L(N)}},C.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},C}(),E=function(){function C(k,w){this.all=k,this.filtered=k,this.filterText=w||"",this.exactMatch=!1,this.ignoreCaption=!1}return C.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var w=this.filtered;else var w=this.all;this.filterText=k,w=this.filterCompletions(w,this.filterText),w=w.sort(function(L,I){return I.exactMatch-L.exactMatch||I.$score-L.$score||(L.caption||L.value).localeCompare(I.caption||I.value)});var T=null;w=w.filter(function(L){var I=L.snippet||L.caption||L.value;return I===T?!1:(T=I,!0)}),this.filtered=w},C.prototype.filterCompletions=function(k,w){var T=[],L=w.toUpperCase(),I=w.toLowerCase();e:for(var A=0,N;N=k[A];A++){var S=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(S){var _=-1,$=0,R=0,O,F;if(this.exactMatch){if(w!==S.substr(0,w.length))continue e}else{var H=S.toLowerCase().indexOf(I);if(H>-1)R=H;else for(var W=0;W<w.length;W++){var V=S.indexOf(I[W],_+1),q=S.indexOf(L[W],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(R+=10),R+=F,$|=1<<W),_=O}}N.matchMask=$,N.exactMatch=R?0:1,N.$score=(N.score||0)-R,T.push(N)}}return T},C}();i.Autocomplete=b,i.CompletionProvider=x,i.FilteredList=E}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(t,i,p){function h(g,s){var l=g.getTextRange(y.fromPoints({row:0,column:0},s));return l.split(d).length-1}function f(g,s){var l=h(g,s),a=g.getValue().split(d),c=Object.create(null),o=a[l];return a.forEach(function(u,v){if(!(!u||u===o)){var b=Math.abs(l-v),x=a.length-b;c[u]?c[u]=Math.max(x,c[u]):c[u]=x}}),c}var y=t("../range").Range,d=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;i.getCompletions=function(g,s,l,a,c){var o=f(s,l),u=Object.keys(o);c(null,u.map(function(v){return{caption:v,value:v,score:o[v],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(t,i,p){var h=t("../snippets").snippetManager,f=t("../autocomplete").Autocomplete,y=t("../config"),d=t("../lib/lang"),g=t("../autocomplete/util"),s=t("../autocomplete/text_completer"),l={getCompletions:function(L,I,A,N,S){if(I.$mode.completer)return I.$mode.completer.getCompletions(L,I,A,N,S);var _=L.session.getState(A.row),$=I.$mode.getCompletions(_,I,A,N);$=$.map(function(R){return R.completerId=l.id,R}),S(null,$)},id:"keywordCompleter"},a=function(L){var I={};return L.replace(/\${(\d+)(:(.*?))?}/g,function(A,N,S,_){return I[N]=_||""}).replace(/\$(\d+?)/g,function(A,N){return I[N]})},c={getCompletions:function(L,I,A,N,S){var _=[],$=I.getTokenAt(A.row,A.column);$&&$.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=h.getActiveScopes(L);var R=h.snippetMap,O=[];_.forEach(function(F){for(var H=R[F]||[],W=H.length;W--;){var V=H[W],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:c.id})}},this),S(null,O)},getDocTooltip:function(L){L.snippet&&!L.docHTML&&(L.docHTML=["<b>",d.escapeHTML(L.caption),"</b>","<hr></hr>",d.escapeHTML(a(L.snippet))].join(""))},id:"snippetCompleter"},o=[c,s,l];i.setCompleters=function(L){o.length=0,L&&o.push.apply(o,L)},i.addCompleter=function(L){o.push(L)},i.textCompleter=s,i.keyWordCompleter=l,i.snippetCompleter=c;var u={name:"expandSnippet",exec:function(L){return h.expandWithTab(L)},bindKey:"Tab"},v=function(L,I){b(I.session.$mode)},b=function(L){typeof L=="string"&&(L=y.$modes[L]),L&&(h.files||(h.files={}),x(L.$id,L.snippetFileId),L.modes&&L.modes.forEach(b))},x=function(L,I){!I||!L||h.files[L]||(h.files[L]={},y.loadModule(I,function(A){A&&(h.files[L]=A,!A.snippets&&A.snippetText&&(A.snippets=h.parseSnippetFile(A.snippetText)),h.register(A.snippets||[],A.scope),A.includeScopes&&(h.snippetMap[A.scope].includeScopes=A.includeScopes,A.includeScopes.forEach(function(N){b("ace/mode/"+N)})))}))},E=function(L){var I=L.editor,A=I.completer&&I.completer.activated;if(L.command.name==="backspace")A&&!g.getCompletionPrefix(I)&&I.completer.detach();else if(L.command.name==="insertstring"&&!A){C=L;var N=L.editor.$liveAutocompletionDelay;N?k.delay(N):w(L)}},C,k=d.delayedCall(function(){w(C)},0),w=function(L){var I=L.editor,A=g.getCompletionPrefix(I),N=L.args,S=g.triggerAutocomplete(I,N);if(A&&A.length>=I.$liveAutocompletionThreshold||S){var _=f.for(I);_.autoShown=!0,_.showPopup(I)}},T=t("../editor").Editor;t("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(L){L?(this.completers||(this.completers=Array.isArray(L)?L:o),this.commands.addCommand(f.startCommand)):this.commands.removeCommand(f.startCommand)},value:!1},enableLiveAutocompletion:{set:function(L){L?(this.completers||(this.completers=Array.isArray(L)?L:o),this.commands.on("afterExec",E)):this.commands.off("afterExec",E)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(L){L?(this.commands.addCommand(u),this.on("changeMode",v),v(null,this)):(this.commands.removeCommand(u),this.off("changeMode",v))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(t){n.exports=t})}()}(Up)),Up.exports}Ew();var qp={exports:{}},Gp;function Lw(){return Gp||(Gp=1,function(n,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(t,i,p){p.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(t,i,p){var h=t("../lib/dom"),f=t("../lib/lang"),y=t("../lib/event"),d=t("./searchbox-css"),g=t("../keyboard/hash_handler").HashHandler,s=t("../lib/keys"),l=t("../config").nls,a=999;h.importCssString(d,"ace_searchbox",!1);var c=function(){function v(b,x,E){this.activeInput;var C=h.createElement("div");h.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:l("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"},l("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:l("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},l("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},l("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:l("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:l("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:l("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:l("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:l("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],C),this.element=C.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(b),h.importCssString(d,"ace_searchbox",b.container)}return v.prototype.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},v.prototype.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},v.prototype.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},v.prototype.$init=function(){var b=this.element;this.$initElements(b);var x=this;y.addListener(b,"mousedown",function(E){setTimeout(function(){x.activeInput.focus()},0),y.stopPropagation(E)}),y.addListener(b,"click",function(E){var C=E.target||E.srcElement,k=C.getAttribute("action");k&&x[k]?x[k]():x.$searchBarKb.commands[k]&&x.$searchBarKb.commands[k].exec(x),y.stopPropagation(E)}),y.addCommandKeyListener(b,function(E,C,k){var w=s.keyCodeToString(k),T=x.$searchBarKb.findKeyCommand(C,w);T&&T.exec&&(T.exec(x),y.stopEvent(E))}),this.$onChange=f.delayedCall(function(){x.find(!1,!1)}),y.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),y.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),y.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},v.prototype.setSearchRange=function(b){this.searchRange=b,b?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},v.prototype.$syncOptions=function(b){h.setCssClass(this.replaceOption,"checked",this.searchRange),h.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",h.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),h.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),h.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,b)},v.prototype.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},v.prototype.find=function(b,x,E){var C=this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:E,range:this.searchRange}),k=!C&&this.searchInput.value;h.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},v.prototype.updateCounter=function(){var b=this.editor,x=b.$search.$options.re,E=x.unicode,C=0,k=0;if(x){var w=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue(),T=b.session.doc.positionToIndex(b.selection.anchor);this.searchRange&&(T-=b.session.doc.positionToIndex(this.searchRange.start));for(var L=x.lastIndex=0,I;(I=x.exec(w))&&(C++,L=I.index,L<=T&&k++,!(C>a||!I[0]&&(x.lastIndex=L+=f.skipEmptyMatch(w,L,E),L>=w.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[k,C>a?a+"+":C])},v.prototype.findNext=function(){this.find(!0,!1)},v.prototype.findPrev=function(){this.find(!0,!0)},v.prototype.findAll=function(){var b=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!b&&this.searchInput.value;h.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},v.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},v.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},v.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},v.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()},v.prototype.show=function(b,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,b&&(this.searchInput.value=b),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},v.prototype.isFocused=function(){var b=document.activeElement;return b==this.searchInput||b==this.replaceInput},v}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(v){var b=v.isReplace=!v.isReplace;v.replaceBox.style.display=b?"":"none",v.replaceOption.checked=!1,v.$syncOptions(),v.searchInput.focus()},"Ctrl-H|Command-Option-F":function(v){v.editor.getReadOnly()||(v.replaceOption.checked=!0,v.$syncOptions(),v.replaceInput.focus())},"Ctrl-G|Command-G":function(v){v.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(v){v.findPrev()},esc:function(v){setTimeout(function(){v.hide()})},Return:function(v){v.activeInput==v.replaceInput&&v.replace(),v.findNext()},"Shift-Return":function(v){v.activeInput==v.replaceInput&&v.replace(),v.findPrev()},"Alt-Return":function(v){v.activeInput==v.replaceInput&&v.replaceAll(),v.findAll()},Tab:function(v){(v.activeInput==v.replaceInput?v.searchInput:v.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(v){v.regExpOption.checked=!v.regExpOption.checked,v.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(v){v.caseSensitiveOption.checked=!v.caseSensitiveOption.checked,v.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(v){v.wholeWordOption.checked=!v.wholeWordOption.checked,v.$syncOptions()}},{name:"toggleReplace",exec:function(v){v.replaceOption.checked=!v.replaceOption.checked,v.$syncOptions()}},{name:"searchInSelection",exec:function(v){v.searchOption.checked=!v.searchRange,v.setSearchRange(v.searchOption.checked&&v.editor.getSelectionRange()),v.$syncOptions()}}]);var u=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(v){v.searchBox.hide()}}]);c.prototype.$searchBarKb=o,c.prototype.$closeSearchBarKb=u,i.SearchBox=c,i.Search=function(v,b){var x=v.searchBox||new c(v);x.show(v.session.getTextRange(),b)}}),function(){ace.require(["ace/ext/searchbox"],function(t){n.exports=t})}()}(qp)),qp.exports}Lw();var Rw=Object.defineProperty,Iw=(n,e,t)=>e in n?Rw(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ow=(n,e,t)=>Iw(n,e+"",t);function Yp(n,e){return function(){return n.apply(e,arguments)}}const{toString:Dw}=Object.prototype,{getPrototypeOf:Uc}=Object,Fa=(n=>e=>{const t=Dw.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Pi=n=>(n=n.toLowerCase(),e=>Fa(e)===n),Pa=n=>e=>typeof e===n,{isArray:Ho}=Array,Ms=Pa("undefined");function Nw(n){return n!==null&&!Ms(n)&&n.constructor!==null&&!Ms(n.constructor)&&gi(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Kp=Pi("ArrayBuffer");function Fw(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Kp(n.buffer),e}const Pw=Pa("string"),gi=Pa("function"),Qp=Pa("number"),Ha=n=>n!==null&&typeof n=="object",Hw=n=>n===!0||n===!1,Ba=n=>{if(Fa(n)!=="object")return!1;const e=Uc(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Bw=Pi("Date"),jw=Pi("File"),zw=Pi("Blob"),Ww=Pi("FileList"),Uw=n=>Ha(n)&&gi(n.pipe),Vw=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||gi(n.append)&&((e=Fa(n))==="formdata"||e==="object"&&gi(n.toString)&&n.toString()==="[object FormData]"))},qw=Pi("URLSearchParams"),[Gw,Yw,Kw,Qw]=["ReadableStream","Request","Response","Headers"].map(Pi),Zw=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ts(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let i,p;if(typeof n!="object"&&(n=[n]),Ho(n))for(i=0,p=n.length;i<p;i++)e.call(null,n[i],i,n);else{const h=t?Object.getOwnPropertyNames(n):Object.keys(n),f=h.length;let y;for(i=0;i<f;i++)y=h[i],e.call(null,n[y],y,n)}}function Zp(n,e){e=e.toLowerCase();const t=Object.keys(n);let i=t.length,p;for(;i-- >0;)if(p=t[i],e===p.toLowerCase())return p;return null}const so=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Jp=n=>!Ms(n)&&n!==so;function Vc(){const{caseless:n}=Jp(this)&&this||{},e={},t=(i,p)=>{const h=n&&Zp(e,p)||p;Ba(e[h])&&Ba(i)?e[h]=Vc(e[h],i):Ba(i)?e[h]=Vc({},i):Ho(i)?e[h]=i.slice():e[h]=i};for(let i=0,p=arguments.length;i<p;i++)arguments[i]&&Ts(arguments[i],t);return e}const Jw=(n,e,t,{allOwnKeys:i}={})=>(Ts(e,(p,h)=>{t&&gi(p)?n[h]=Yp(p,t):n[h]=p},{allOwnKeys:i}),n),Xw=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),e1=(n,e,t,i)=>{n.prototype=Object.create(e.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},t1=(n,e,t,i)=>{let p,h,f;const y={};if(e=e||{},n==null)return e;do{for(p=Object.getOwnPropertyNames(n),h=p.length;h-- >0;)f=p[h],(!i||i(f,n,e))&&!y[f]&&(e[f]=n[f],y[f]=!0);n=t!==!1&&Uc(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},n1=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const i=n.indexOf(e,t);return i!==-1&&i===t},i1=n=>{if(!n)return null;if(Ho(n))return n;let e=n.length;if(!Qp(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},r1=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Uc(Uint8Array)),o1=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=t.next())&&!i.done;){const p=i.value;e.call(n,p[0],p[1])}},s1=(n,e)=>{let t;const i=[];for(;(t=n.exec(e))!==null;)i.push(t);return i},a1=Pi("HTMLFormElement"),l1=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,i){return t.toUpperCase()+i}),Xp=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),c1=Pi("RegExp"),ef=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),i={};Ts(t,(p,h)=>{let f;(f=e(p,h,n))!==!1&&(i[h]=f||p)}),Object.defineProperties(n,i)},u1=n=>{ef(n,(e,t)=>{if(gi(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const i=n[t];if(gi(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},h1=(n,e)=>{const t={},i=p=>{p.forEach(h=>{t[h]=!0})};return Ho(n)?i(n):i(String(n).split(e)),t},d1=()=>{},p1=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,qc="abcdefghijklmnopqrstuvwxyz",tf="0123456789",nf={DIGIT:tf,ALPHA:qc,ALPHA_DIGIT:qc+qc.toUpperCase()+tf},f1=(n=16,e=nf.ALPHA_DIGIT)=>{let t="";const{length:i}=e;for(;n--;)t+=e[Math.random()*i|0];return t};function g1(n){return!!(n&&gi(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const m1=n=>{const e=new Array(10),t=(i,p)=>{if(Ha(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[p]=i;const h=Ho(i)?[]:{};return Ts(i,(f,y)=>{const d=t(f,p+1);!Ms(d)&&(h[y]=d)}),e[p]=void 0,h}}return i};return t(n,0)},v1=Pi("AsyncFunction"),y1=n=>n&&(Ha(n)||gi(n))&&gi(n.then)&&gi(n.catch),rf=((n,e)=>n?setImmediate:e?((t,i)=>(so.addEventListener("message",({source:p,data:h})=>{p===so&&h===t&&i.length&&i.shift()()},!1),p=>{i.push(p),so.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",gi(so.postMessage)),b1=typeof queueMicrotask<"u"?queueMicrotask.bind(so):typeof process<"u"&&process.nextTick||rf,ue={isArray:Ho,isArrayBuffer:Kp,isBuffer:Nw,isFormData:Vw,isArrayBufferView:Fw,isString:Pw,isNumber:Qp,isBoolean:Hw,isObject:Ha,isPlainObject:Ba,isReadableStream:Gw,isRequest:Yw,isResponse:Kw,isHeaders:Qw,isUndefined:Ms,isDate:Bw,isFile:jw,isBlob:zw,isRegExp:c1,isFunction:gi,isStream:Uw,isURLSearchParams:qw,isTypedArray:r1,isFileList:Ww,forEach:Ts,merge:Vc,extend:Jw,trim:Zw,stripBOM:Xw,inherits:e1,toFlatObject:t1,kindOf:Fa,kindOfTest:Pi,endsWith:n1,toArray:i1,forEachEntry:o1,matchAll:s1,isHTMLForm:a1,hasOwnProperty:Xp,hasOwnProp:Xp,reduceDescriptors:ef,freezeMethods:u1,toObjectSet:h1,toCamelCase:l1,noop:d1,toFiniteNumber:p1,findKey:Zp,global:so,isContextDefined:Jp,ALPHABET:nf,generateString:f1,isSpecCompliantForm:g1,toJSONObject:m1,isAsyncFn:v1,isThenable:y1,setImmediate:rf,asap:b1};function it(n,e,t,i,p){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),i&&(this.request=i),p&&(this.response=p,this.status=p.status?p.status:null)}ue.inherits(it,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.toJSONObject(this.config),code:this.code,status:this.status}}});const of=it.prototype,sf={};["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(n=>{sf[n]={value:n}}),Object.defineProperties(it,sf),Object.defineProperty(of,"isAxiosError",{value:!0}),it.from=(n,e,t,i,p,h)=>{const f=Object.create(of);return ue.toFlatObject(n,f,function(y){return y!==Error.prototype},y=>y!=="isAxiosError"),it.call(f,n.message,e,t,i,p),f.cause=n,f.name=n.name,h&&Object.assign(f,h),f};const w1=null;function Gc(n){return ue.isPlainObject(n)||ue.isArray(n)}function af(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function lf(n,e,t){return n?n.concat(e).map(function(i,p){return i=af(i),!t&&p?"["+i+"]":i}).join(t?".":""):e}function x1(n){return ue.isArray(n)&&!n.some(Gc)}const _1=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function ja(n,e,t){if(!ue.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=ue.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!ue.isUndefined(o[c])});const i=t.metaTokens,p=t.visitor||g,h=t.dots,f=t.indexes,y=(t.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(e);if(!ue.isFunction(p))throw new TypeError("visitor must be a function");function d(c){if(c===null)return"";if(ue.isDate(c))return c.toISOString();if(!y&&ue.isBlob(c))throw new it("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(c)||ue.isTypedArray(c)?y&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,o,u){let v=c;if(c&&!u&&typeof c=="object"){if(ue.endsWith(o,"{}"))o=i?o:o.slice(0,-2),c=JSON.stringify(c);else if(ue.isArray(c)&&x1(c)||(ue.isFileList(c)||ue.endsWith(o,"[]"))&&(v=ue.toArray(c)))return o=af(o),v.forEach(function(b,x){!(ue.isUndefined(b)||b===null)&&e.append(f===!0?lf([o],x,h):f===null?o:o+"[]",d(b))}),!1}return Gc(c)?!0:(e.append(lf(u,o,h),d(c)),!1)}const s=[],l=Object.assign(_1,{defaultVisitor:g,convertValue:d,isVisitable:Gc});function a(c,o){if(!ue.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(c),ue.forEach(c,function(u,v){(!(ue.isUndefined(u)||u===null)&&p.call(e,u,ue.isString(v)?v.trim():v,o,l))===!0&&a(u,o?o.concat(v):[v])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),e}function cf(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Yc(n,e){this._pairs=[],n&&ja(n,this,e)}const uf=Yc.prototype;uf.append=function(n,e){this._pairs.push([n,e])},uf.toString=function(n){const e=n?function(t){return n.call(this,t,cf)}:cf;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function k1(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hf(n,e,t){if(!e)return n;const i=t&&t.encode||k1;ue.isFunction(t)&&(t={serialize:t});const p=t&&t.serialize;let h;if(p?h=p(e,t):h=ue.isURLSearchParams(e)?e.toString():new Yc(e,t).toString(i),h){const f=n.indexOf("#");f!==-1&&(n=n.slice(0,f)),n+=(n.indexOf("?")===-1?"?":"&")+h}return n}class df{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ue.forEach(this.handlers,function(t){t!==null&&e(t)})}}const pf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},S1=typeof URLSearchParams<"u"?URLSearchParams:Yc,$1=typeof FormData<"u"?FormData:null,C1=typeof Blob<"u"?Blob:null,M1={isBrowser:!0,classes:{URLSearchParams:S1,FormData:$1,Blob:C1},protocols:["http","https","file","blob","url","data"]},Kc=typeof window<"u"&&typeof document<"u",Qc=typeof navigator=="object"&&navigator||void 0,T1=Kc&&(!Qc||["ReactNative","NativeScript","NS"].indexOf(Qc.product)<0),A1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",E1=Kc&&window.location.href||"http://localhost",L1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kc,hasStandardBrowserEnv:T1,hasStandardBrowserWebWorkerEnv:A1,navigator:Qc,origin:E1},Symbol.toStringTag,{value:"Module"})),jn={...L1,...M1};function R1(n,e){return ja(n,new jn.classes.URLSearchParams,Object.assign({visitor:function(t,i,p,h){return jn.isNode&&ue.isBuffer(t)?(this.append(i,t.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function I1(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function O1(n){const e={},t=Object.keys(n);let i;const p=t.length;let h;for(i=0;i<p;i++)h=t[i],e[h]=n[h];return e}function ff(n){function e(t,i,p,h){let f=t[h++];if(f==="__proto__")return!0;const y=Number.isFinite(+f),d=h>=t.length;return f=!f&&ue.isArray(p)?p.length:f,d?(ue.hasOwnProp(p,f)?p[f]=[p[f],i]:p[f]=i,!y):((!p[f]||!ue.isObject(p[f]))&&(p[f]=[]),e(t,i,p[f],h)&&ue.isArray(p[f])&&(p[f]=O1(p[f])),!y)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const t={};return ue.forEachEntry(n,(i,p)=>{e(I1(i),p,t,0)}),t}return null}function D1(n,e,t){if(ue.isString(n))try{return(e||JSON.parse)(n),ue.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const As={transitional:pf,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",i=t.indexOf("application/json")>-1,p=ue.isObject(n);if(p&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return i?JSON.stringify(ff(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let h;if(p){if(t.indexOf("application/x-www-form-urlencoded")>-1)return R1(n,this.formSerializer).toString();if((h=ue.isFileList(n))||t.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ja(h?{"files[]":n}:n,f&&new f,this.formSerializer)}}return p||i?(e.setContentType("application/json",!1),D1(n)):n}],transformResponse:[function(n){const e=this.transitional||As.transitional,t=e&&e.forcedJSONParsing,i=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(t&&!this.responseType||i)){const p=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(h){if(p)throw h.name==="SyntaxError"?it.from(h,it.ERR_BAD_RESPONSE,this,null,this.response):h}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jn.classes.FormData,Blob:jn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{As.headers[n]={}});const N1=ue.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"]),F1=n=>{const e={};let t,i,p;return n&&n.split(`
|
1376
|
+
`).forEach(function(h){p=h.indexOf(":"),t=h.substring(0,p).trim().toLowerCase(),i=h.substring(p+1).trim(),!(!t||e[t]&&N1[t])&&(t==="set-cookie"?e[t]?e[t].push(i):e[t]=[i]:e[t]=e[t]?e[t]+", "+i:i)}),e},gf=Symbol("internals");function Es(n){return n&&String(n).trim().toLowerCase()}function za(n){return n===!1||n==null?n:ue.isArray(n)?n.map(za):String(n)}function P1(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=t.exec(n);)e[i[1]]=i[2];return e}const H1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Zc(n,e,t,i,p){if(ue.isFunction(i))return i.call(this,e,t);if(p&&(e=t),!!ue.isString(e)){if(ue.isString(i))return e.indexOf(i)!==-1;if(ue.isRegExp(i))return i.test(e)}}function B1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}function j1(n,e){const t=ue.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+t,{value:function(p,h,f){return this[i].call(this,e,p,h,f)},configurable:!0})})}class oi{constructor(e){e&&this.set(e)}set(e,t,i){const p=this;function h(y,d,g){const s=Es(d);if(!s)throw new Error("header name must be a non-empty string");const l=ue.findKey(p,s);(!l||p[l]===void 0||g===!0||g===void 0&&p[l]!==!1)&&(p[l||d]=za(y))}const f=(y,d)=>ue.forEach(y,(g,s)=>h(g,s,d));if(ue.isPlainObject(e)||e instanceof this.constructor)f(e,t);else if(ue.isString(e)&&(e=e.trim())&&!H1(e))f(F1(e),t);else if(ue.isHeaders(e))for(const[y,d]of e.entries())h(d,y,i);else e!=null&&h(t,e,i);return this}get(e,t){if(e=Es(e),e){const i=ue.findKey(this,e);if(i){const p=this[i];if(!t)return p;if(t===!0)return P1(p);if(ue.isFunction(t))return t.call(this,p,i);if(ue.isRegExp(t))return t.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Es(e),e){const i=ue.findKey(this,e);return!!(i&&this[i]!==void 0&&(!t||Zc(this,this[i],i,t)))}return!1}delete(e,t){const i=this;let p=!1;function h(f){if(f=Es(f),f){const y=ue.findKey(i,f);y&&(!t||Zc(i,i[y],y,t))&&(delete i[y],p=!0)}}return ue.isArray(e)?e.forEach(h):h(e),p}clear(e){const t=Object.keys(this);let i=t.length,p=!1;for(;i--;){const h=t[i];(!e||Zc(this,this[h],h,e,!0))&&(delete this[h],p=!0)}return p}normalize(e){const t=this,i={};return ue.forEach(this,(p,h)=>{const f=ue.findKey(i,h);if(f){t[f]=za(p),delete t[h];return}const y=e?B1(h):String(h).trim();y!==h&&delete t[h],t[y]=za(p),i[y]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ue.forEach(this,(i,p)=>{i!=null&&i!==!1&&(t[p]=e&&ue.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
1377
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(p=>i.set(p)),i}static accessor(e){const t=(this[gf]=this[gf]={accessors:{}}).accessors,i=this.prototype;function p(h){const f=Es(h);t[f]||(j1(i,h),t[f]=!0)}return ue.isArray(e)?e.forEach(p):p(e),this}}oi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(oi.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(i){this[t]=i}}}),ue.freezeMethods(oi);function Jc(n,e){const t=this||As,i=e||t,p=oi.from(i.headers);let h=i.data;return ue.forEach(n,function(f){h=f.call(t,h,p.normalize(),e?e.status:void 0)}),p.normalize(),h}function mf(n){return!!(n&&n.__CANCEL__)}function Bo(n,e,t){it.call(this,n??"canceled",it.ERR_CANCELED,e,t),this.name="CanceledError"}ue.inherits(Bo,it,{__CANCEL__:!0});function vf(n,e,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?n(t):e(new it("Request failed with status code "+t.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function z1(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function W1(n,e){n=n||10;const t=new Array(n),i=new Array(n);let p=0,h=0,f;return e=e!==void 0?e:1e3,function(y){const d=Date.now(),g=i[h];f||(f=d),t[p]=y,i[p]=d;let s=h,l=0;for(;s!==p;)l+=t[s++],s=s%n;if(p=(p+1)%n,p===h&&(h=(h+1)%n),d-f<e)return;const a=g&&d-g;return a?Math.round(l*1e3/a):void 0}}function U1(n,e){let t=0,i=1e3/e,p,h;const f=(y,d=Date.now())=>{t=d,p=null,h&&(clearTimeout(h),h=null),n.apply(null,y)};return[(...y)=>{const d=Date.now(),g=d-t;g>=i?f(y,d):(p=y,h||(h=setTimeout(()=>{h=null,f(p)},i-g)))},()=>p&&f(p)]}const Wa=(n,e,t=3)=>{let i=0;const p=W1(50,250);return U1(h=>{const f=h.loaded,y=h.lengthComputable?h.total:void 0,d=f-i,g=p(d),s=f<=y;i=f;const l={loaded:f,total:y,progress:y?f/y:void 0,bytes:d,rate:g||void 0,estimated:g&&y&&s?(y-f)/g:void 0,event:h,lengthComputable:y!=null,[e?"download":"upload"]:!0};n(l)},t)},yf=(n,e)=>{const t=n!=null;return[i=>e[0]({lengthComputable:t,total:n,loaded:i}),e[1]]},bf=n=>(...e)=>ue.asap(()=>n(...e)),V1=jn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,jn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(jn.origin),jn.navigator&&/(msie|trident)/i.test(jn.navigator.userAgent)):()=>!0,q1=jn.hasStandardBrowserEnv?{write(n,e,t,i,p,h){const f=[n+"="+encodeURIComponent(e)];ue.isNumber(t)&&f.push("expires="+new Date(t).toGMTString()),ue.isString(i)&&f.push("path="+i),ue.isString(p)&&f.push("domain="+p),h===!0&&f.push("secure"),document.cookie=f.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function G1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Y1(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function wf(n,e){return n&&!G1(e)?Y1(n,e):e}const xf=n=>n instanceof oi?{...n}:n;function ao(n,e){e=e||{};const t={};function i(g,s,l,a){return ue.isPlainObject(g)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},g,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function p(g,s,l,a){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return i(void 0,g,l,a)}else return i(g,s,l,a)}function h(g,s){if(!ue.isUndefined(s))return i(void 0,s)}function f(g,s){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return i(void 0,g)}else return i(void 0,s)}function y(g,s,l){if(l in e)return i(g,s);if(l in n)return i(void 0,g)}const d={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:y,headers:(g,s,l)=>p(xf(g),xf(s),l,!0)};return ue.forEach(Object.keys(Object.assign({},n,e)),function(g){const s=d[g]||p,l=s(n[g],e[g],g);ue.isUndefined(l)&&s!==y||(t[g]=l)}),t}const _f=n=>{const e=ao({},n);let{data:t,withXSRFToken:i,xsrfHeaderName:p,xsrfCookieName:h,headers:f,auth:y}=e;e.headers=f=oi.from(f),e.url=hf(wf(e.baseURL,e.url),n.params,n.paramsSerializer),y&&f.set("Authorization","Basic "+btoa((y.username||"")+":"+(y.password?unescape(encodeURIComponent(y.password)):"")));let d;if(ue.isFormData(t)){if(jn.hasStandardBrowserEnv||jn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((d=f.getContentType())!==!1){const[g,...s]=d?d.split(";").map(l=>l.trim()).filter(Boolean):[];f.setContentType([g||"multipart/form-data",...s].join("; "))}}if(jn.hasStandardBrowserEnv&&(i&&ue.isFunction(i)&&(i=i(e)),i||i!==!1&&V1(e.url))){const g=p&&h&&q1.read(h);g&&f.set(p,g)}return e},K1=typeof XMLHttpRequest<"u",Q1=K1&&function(n){return new Promise(function(e,t){const i=_f(n);let p=i.data;const h=oi.from(i.headers).normalize();let{responseType:f,onUploadProgress:y,onDownloadProgress:d}=i,g,s,l,a,c;function o(){a&&a(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function v(){if(!u)return;const x=oi.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),E={data:!f||f==="text"||f==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};vf(function(C){e(C),o()},function(C){t(C),o()},E),u=null}"onloadend"in u?u.onloadend=v:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(v)},u.onabort=function(){u&&(t(new it("Request aborted",it.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new it("Network Error",it.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||pf;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),t(new it(x,E.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,n,u)),u=null},p===void 0&&h.setContentType(null),"setRequestHeader"in u&&ue.forEach(h.toJSON(),function(x,E){u.setRequestHeader(E,x)}),ue.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),f&&f!=="json"&&(u.responseType=i.responseType),d&&([l,c]=Wa(d,!0),u.addEventListener("progress",l)),y&&u.upload&&([s,a]=Wa(y),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(i.cancelToken||i.signal)&&(g=x=>{u&&(t(!x||x.type?new Bo(null,n,u):x),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const b=z1(i.url);if(b&&jn.protocols.indexOf(b)===-1){t(new it("Unsupported protocol "+b+":",it.ERR_BAD_REQUEST,n));return}u.send(p||null)})},Z1=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let i=new AbortController,p;const h=function(g){if(!p){p=!0,y();const s=g instanceof Error?g:this.reason;i.abort(s instanceof it?s:new Bo(s instanceof Error?s.message:s))}};let f=e&&setTimeout(()=>{f=null,h(new it(`timeout ${e} of ms exceeded`,it.ETIMEDOUT))},e);const y=()=>{n&&(f&&clearTimeout(f),f=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),n=null)};n.forEach(g=>g.addEventListener("abort",h));const{signal:d}=i;return d.unsubscribe=()=>ue.asap(y),d}},J1=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let i=0,p;for(;i<t;)p=i+e,yield n.slice(i,p),i=p},X1=async function*(n,e){for await(const t of ex(n))yield*J1(t,e)},ex=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},kf=(n,e,t,i)=>{const p=X1(n,e);let h=0,f,y=d=>{f||(f=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:g,value:s}=await p.next();if(g){y(),d.close();return}let l=s.byteLength;if(t){let a=h+=l;t(a)}d.enqueue(new Uint8Array(s))}catch(g){throw y(g),g}},cancel(d){return y(d),p.return()}},{highWaterMark:2})},Ua=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sf=Ua&&typeof ReadableStream=="function",tx=Ua&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),$f=(n,...e)=>{try{return!!n(...e)}catch{return!1}},nx=Sf&&$f(()=>{let n=!1;const e=new Request(jn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Cf=64*1024,Xc=Sf&&$f(()=>ue.isReadableStream(new Response("").body)),Va={stream:Xc&&(n=>n.body)};Ua&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Va[e]&&(Va[e]=ue.isFunction(n[e])?t=>t[e]():(t,i)=>{throw new it(`Response type '${e}' is not supported`,it.ERR_NOT_SUPPORT,i)})})})(new Response);const ix=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(jn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await tx(n)).byteLength},rx=async(n,e)=>ue.toFiniteNumber(n.getContentLength())??ix(e),ox=Ua&&(async n=>{let{url:e,method:t,data:i,signal:p,cancelToken:h,timeout:f,onDownloadProgress:y,onUploadProgress:d,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:a}=_f(n);g=g?(g+"").toLowerCase():"text";let c=Z1([p,h&&h.toAbortSignal()],f),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let v;try{if(d&&nx&&t!=="get"&&t!=="head"&&(v=await rx(s,i))!==0){let k=new Request(e,{method:"POST",body:i,duplex:"half"}),w;if(ue.isFormData(i)&&(w=k.headers.get("content-type"))&&s.setContentType(w),k.body){const[T,L]=yf(v,Wa(bf(d)));i=kf(k.body,Cf,T,L)}}ue.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;o=new Request(e,{...a,signal:c,method:t.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:b?l:void 0});let x=await fetch(o);const E=Xc&&(g==="stream"||g==="response");if(Xc&&(y||E&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const w=ue.toFiniteNumber(x.headers.get("content-length")),[T,L]=y&&yf(w,Wa(bf(y),!0))||[];x=new Response(kf(x.body,Cf,T,()=>{L&&L(),u&&u()}),k)}g=g||"text";let C=await Va[ue.findKey(Va,g)||"text"](x,n);return!E&&u&&u(),await new Promise((k,w)=>{vf(k,w,{data:C,headers:oi.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(b){throw u&&u(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,n,o),{cause:b.cause||b}):it.from(b,b&&b.code,n,o)}}),eu={http:w1,xhr:Q1,fetch:ox};ue.forEach(eu,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Mf=n=>`- ${n}`,sx=n=>ue.isFunction(n)||n===null||n===!1,Tf={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:e}=n;let t,i;const p={};for(let h=0;h<e;h++){t=n[h];let f;if(i=t,!sx(t)&&(i=eu[(f=String(t)).toLowerCase()],i===void 0))throw new it(`Unknown adapter '${f}'`);if(i)break;p[f||"#"+h]=i}if(!i){const h=Object.entries(p).map(([y,d])=>`adapter ${y} `+(d===!1?"is not supported by the environment":"is not available in the build"));let f=e?h.length>1?`since :
|
1378
|
+
`+h.map(Mf).join(`
|
1379
|
+
`):" "+Mf(h[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i},adapters:eu};function tu(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Bo(null,n)}function Af(n){return tu(n),n.headers=oi.from(n.headers),n.data=Jc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Tf.getAdapter(n.adapter||As.adapter)(n).then(function(e){return tu(n),e.data=Jc.call(n,n.transformResponse,e),e.headers=oi.from(e.headers),e},function(e){return mf(e)||(tu(n),e&&e.response&&(e.response.data=Jc.call(n,n.transformResponse,e.response),e.response.headers=oi.from(e.response.headers))),Promise.reject(e)})}const Ef="1.7.9",qa={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{qa[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Lf={};qa.transitional=function(n,e,t){function i(p,h){return"[Axios v"+Ef+"] Transitional option '"+p+"'"+h+(t?". "+t:"")}return(p,h,f)=>{if(n===!1)throw new it(i(h," has been removed"+(e?" in "+e:"")),it.ERR_DEPRECATED);return e&&!Lf[h]&&(Lf[h]=!0,console.warn(i(h," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(p,h,f):!0}},qa.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function ax(n,e,t){if(typeof n!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let p=i.length;for(;p-- >0;){const h=i[p],f=e[h];if(f){const y=n[h],d=y===void 0||f(y,h,n);if(d!==!0)throw new it("option "+h+" must be "+d,it.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new it("Unknown option "+h,it.ERR_BAD_OPTION)}}const Ga={assertOptions:ax,validators:qa},Ki=Ga.validators;class lo{constructor(e){this.defaults=e,this.interceptors={request:new df,response:new df}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let p={};Error.captureStackTrace?Error.captureStackTrace(p):p=new Error;const h=p.stack?p.stack.replace(/^.+\n/,""):"";try{i.stack?h&&!String(i.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
1380
|
+
`+h):i.stack=h}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ao(this.defaults,t);const{transitional:i,paramsSerializer:p,headers:h}=t;i!==void 0&&Ga.assertOptions(i,{silentJSONParsing:Ki.transitional(Ki.boolean),forcedJSONParsing:Ki.transitional(Ki.boolean),clarifyTimeoutError:Ki.transitional(Ki.boolean)},!1),p!=null&&(ue.isFunction(p)?t.paramsSerializer={serialize:p}:Ga.assertOptions(p,{encode:Ki.function,serialize:Ki.function},!0)),Ga.assertOptions(t,{baseUrl:Ki.spelling("baseURL"),withXsrfToken:Ki.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let f=h&&ue.merge(h.common,h[t.method]);h&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),t.headers=oi.concat(f,h);const y=[];let d=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(t)===!1||(d=d&&o.synchronous,y.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!d){const o=[Af.bind(this),void 0];for(o.unshift.apply(o,y),o.push.apply(o,g),a=o.length,s=Promise.resolve(t);l<a;)s=s.then(o[l++],o[l++]);return s}a=y.length;let c=t;for(l=0;l<a;){const o=y[l++],u=y[l++];try{c=o(c)}catch(v){u.call(this,v);break}}try{s=Af.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,a=g.length;l<a;)s=s.then(g[l++],g[l++]);return s}getUri(e){e=ao(this.defaults,e);const t=wf(e.baseURL,e.url);return hf(t,e.params,e.paramsSerializer)}}ue.forEach(["delete","get","head","options"],function(n){lo.prototype[n]=function(e,t){return this.request(ao(t||{},{method:n,url:e,data:(t||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function e(t){return function(i,p,h){return this.request(ao(h||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:p}))}}lo.prototype[n]=e(),lo.prototype[n+"Form"]=e(!0)});class nu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(p){t=p});const i=this;this.promise.then(p=>{if(!i._listeners)return;let h=i._listeners.length;for(;h-- >0;)i._listeners[h](p);i._listeners=null}),this.promise.then=p=>{let h;const f=new Promise(y=>{i.subscribe(y),h=y}).then(p);return f.cancel=function(){i.unsubscribe(h)},f},e(function(p,h,f){i.reason||(i.reason=new Bo(p,h,f),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=i=>{e.abort(i)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new nu(function(t){e=t}),cancel:e}}}function lx(n){return function(e){return n.apply(null,e)}}function cx(n){return ue.isObject(n)&&n.isAxiosError===!0}const iu={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(iu).forEach(([n,e])=>{iu[e]=n});function Rf(n){const e=new lo(n),t=Yp(lo.prototype.request,e);return ue.extend(t,lo.prototype,e,{allOwnKeys:!0}),ue.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return Rf(ao(n,i))},t}const yn=Rf(As);yn.Axios=lo,yn.CanceledError=Bo,yn.CancelToken=nu,yn.isCancel=mf,yn.VERSION=Ef,yn.toFormData=ja,yn.AxiosError=it,yn.Cancel=yn.CanceledError,yn.all=function(n){return Promise.all(n)},yn.spread=lx,yn.isAxiosError=cx,yn.mergeConfig=ao,yn.AxiosHeaders=oi,yn.formToJSON=n=>ff(ue.isHTMLForm(n)?new FormData(n):n),yn.getAdapter=Tf.getAdapter,yn.HttpStatusCode=iu,yn.default=yn;const ru=yn.create({baseURL:location.origin,timeout:6e4,params:{}});ru.interceptors.response.use(n=>n,n=>{var e,t,i,p,h,f,y,d,g,s,l;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let a=`HTTP ${n.response.status} - `;(e=n.response)!=null&&e.statusText&&(a+=`${n.response.statusText} `),(i=(t=n.response)==null?void 0:t.config)!=null&&i.data&&(a+=`${n.response.config.data} `),(h=(p=n.response)==null?void 0:p.data)!=null&&h.message?a+=`${n.response.data.message}`:(y=(f=n.response)==null?void 0:f.data)!=null&&y.exception?a+=`${n.response.data.exception}`:(s=(g=(d=n.response)==null?void 0:d.data)==null?void 0:g.error)!=null&&s.message?(n.response.data.error.class&&(a+=`${n.response.data.error.class} `),a+=`${n.response.data.error.message}`):a+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:c}=window;throw c&&c.serious({title:"Network error",body:a}),n}else throw n});const Ya=async function(n,e,{data:t,params:i={},headers:p,noAuth:h=!1,noScope:f=!1,onUploadProgress:y=!1}={}){if(!h){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}p.Authorization=localStorage.openc3Token}return p.manual=!0,!f&&!i.scope&&(i.scope=window.openc3Scope),ru({method:n,url:e,data:t,params:i,headers:p,onUploadProgress:y})},ou={Accept:"application/json"},If={...ou,"Content-Type":"application/json"},ux=Dn("I",{get:function(n,{params:e,headers:t=ou,noScope:i,noAuth:p,onUploadProgress:h}={}){return Ya("get",n,{params:e,headers:t,noScope:i,noAuth:p,onUploadProgress:h})},put:function(n,{data:e,params:t,headers:i=If,noScope:p,noAuth:h,onUploadProgress:f}={}){return Ya("put",n,{data:e,params:t,headers:i,noScope:p,noAuth:h,onUploadProgress:f})},post:function(n,{data:e,params:t,headers:i=If,noScope:p,noAuth:h,onUploadProgress:f}={}){return Ya("post",n,{data:e,params:t,headers:i,noScope:p,noAuth:h,onUploadProgress:f})},delete:function(n,{params:e,headers:t=ou,noScope:i,noAuth:p,onUploadProgress:h}={}){return Ya("delete",n,{params:e,headers:t,noScope:i,noAuth:p,onUploadProgress:h})}});var Ka={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},en={log(...n){this.enabled&&(n.push(Date.now()),Ka.logger.log("[ActionCable]",...n))}};const Ls=()=>new Date().getTime(),Qa=n=>(Ls()-n)/1e3;class Za{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=Ls(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),en.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=Ls(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),en.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=Ls()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,en.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=Ls(),en.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:e,reconnectionBackoffRate:t}=this.constructor,i=Math.pow(1+t,Math.min(this.reconnectAttempts,10)),p=(this.reconnectAttempts===0?1:t)*Math.random();return e*1e3*i*(1+p)}reconnectIfStale(){this.connectionIsStale()&&(en.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Qa(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?en.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Qa(this.disconnectedAt)} s`):(en.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Qa(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Qa(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(en.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Za.staleThreshold=6,Za.reconnectionBackoffRate=.15;var Of={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:Rs,protocols:su}=Of,hx=su.slice(0,su.length-1),Df=[].indexOf;class au{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new Za(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return en.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...su,...this.consumer.subprotocols||[]];return en.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Ka.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(en.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){en.log("Failed to reopen WebSocket",e)}finally{en.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 Df.call(hx,this.getProtocol())>=0}isState(...e){return Df.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in Ka.WebSocket)if(Ka.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const t=this.events[e].bind(this);this.webSocket[`on${e}`]=t}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}au.reopenDelay=500,au.prototype.events={message(n){if(!this.isProtocolSupported())return;const{identifier:e,message:t,reason:i,reconnect:p,type:h}=JSON.parse(n.data);switch(h){case Rs.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case Rs.disconnect:return en.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:p});case Rs.ping:return this.monitor.recordPing();case Rs.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case Rs.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",t)}},open(){if(en.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return en.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(en.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){en.log("WebSocket onerror event")}};const dx=function(n,e){if(e!=null)for(let t in e){const i=e[t];n[t]=i}return n};class px{constructor(e,t={},i){this.consumer=e,this.identifier=JSON.stringify(t),dx(this,i)}perform(e,t={}){return t.action=e,this.send(t)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class fx{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(en.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):en.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){en.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(t=>t!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{en.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class gx{constructor(e){this.consumer=e,this.guarantor=new fx(this),this.subscriptions=[]}create(e,t){const i=e,p=typeof i=="object"?i:{channel:i},h=new px(this.consumer,p,t);return this.add(h)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(t=>(this.forget(t),this.notify(t,"rejected"),t))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(t=>t!==e),e}findAll(e){return this.subscriptions.filter(t=>t.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...t){return this.subscriptions.map(i=>this.notify(i,e,...t))}notify(e,t,...i){let p;return typeof e=="string"?p=this.findAll(e):p=[e],p.map(h=>typeof h[t]=="function"?h[t](...i):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){en.log(`Subscription confirmed ${e}`),this.findAll(e).map(t=>this.guarantor.forget(t))}sendCommand(e,t){const{identifier:i}=e;return this.consumer.send({command:t,identifier:i})}}class mx{constructor(e){this._url=e,this.subscriptions=new gx(this),this.connection=new au(this),this.subprotocols=[]}get url(){return vx(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function vx(n){if(typeof n=="function"&&(n=n()),n&&!/^wss?:/i.test(n)){const e=document.createElement("a");return e.href=n,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return n}function yx(n=bx("url")||Of.default_mount_path){return new mx(n)}function bx(n){const e=document.head.querySelector(`meta[name='action-cable-${n}']`);if(e)return e.getAttribute("content")}Za.staleThreshold=10;let tO=Dn("O",class{constructor(n="/openc3-api/cable"){this._cable=null,this._url=n}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(n,e,t={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(p=>{if(p&&OpenC3Auth.setTokens(),this._cable==null){let h=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=yx(h)}return this._cable.subscriptions.create({channel:n,...i},t)})}recordPing(){this._cable.connection.monitor.recordPing()}});class wx{constructor(e,t,i="",p=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=i,this.url=p}}Dn("a",wx);class xx{constructor(){Ow(this,"id",1)}async exec(e,t,i={},p={},h=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,p.manual=!0,(await ru.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...p},timeout:h})).data.result}catch(f){let y=new Error;throw f.response?(y.name=f.response.data.error.data.class,y.message=f.response.data.error.data.message,y.object=f.response.data.error):f.request?(y.name="Request error",y.message="Request error, no response received"):y.name="Unknown error",y}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...i){return this.exec("interface_cmd",[e,t,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,i){return this.exec("get_item",[e,t,i])}get_param(e,t,i){return this.exec("get_param",[e,t,i])}get_parameter(e,t,i){return this.exec("get_param",[e,t,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_tlm",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,t=!1){return this.exec("get_all_tlm_names",[e],{hidden:t})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,t,i,p=30){const h=await this.exec("get_tlm_packet",[e,t],{type:i,stale_time:p});if(h!=null){let f=h.length,y=null;for(let d=0;d<f;d++)y=this.decode_openc3_type(h[d][1]),y!==null&&(h[d][1]=y)}return h}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,i=null){let p={stale_time:t};i!==null&&(p.cache_timeout=i);const h=await this.exec("get_tlm_values",[e],p,{},1e4);let f=h[0].length,y=null;for(let d=0;d<f;d++)y=this.decode_openc3_type(h[0][d]),y!==null&&(h[0][d]=y);return h}get_limits(e,t,i){return this.exec("get_limits",[e,t,i])}async tlm(e,t,i,p="CONVERTED"){let h=null;if(t===void 0)h=await this.exec("tlm",[e]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t))h=await this.exec("tlm",[e],{type:t});else{let y=new Error;throw y.name="TypeError",y.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,y}else h=await this.exec("tlm",[e,t,i],{type:p});let f=this.decode_openc3_type(h);return f!==null&&(h=f),h}async inject_tlm(e,t,i=null,p="CONVERTED"){data=await this.exec("inject_tlm",[e,t,i],{type:p})}set_tlm(e,t,i,p){return this.exec("set_tlm",[e,t,i],{type:p})}override_tlm(e,t,i,p){return this.exec("override_tlm",[e,t,i],{type:p})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,i,p){return this.exec("normalize_tlm",[e,t,i],{type:p})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,t=!1){return this.exec("get_all_cmd_names",[e],{hidden:t})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_cmd",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,i,p="CONVERTED"){return this.exec("get_cmd_value",[e,t,i,p])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,i,p,h){let f=null;for(let y in p)Object.prototype.hasOwnProperty.call(p,y)&&(f=this.encode_openc3_type(p[y]),f!==null&&(p[y]=f));return this.exec(e,[t,i,p],{},h)}get_cmd_hazardous(e,t,i,p={}){return t===void 0?this.exec("get_cmd_hazardous",e,{},p):this._cmd("get_cmd_hazardous",e,t,i,p)}cmd(e,t,i,p={}){return t===void 0?this.exec("cmd",e,{},p):this._cmd("cmd",e,t,i,p)}cmd_no_range_check(e,t,i,p={}){return t===void 0?this.exec("cmd_no_range_check",e,{},p):this._cmd("cmd_no_range_check",e,t,i,p)}cmd_raw(e,t,i,p={}){return t===void 0?this.exec("cmd_raw",e,{},p):this._cmd("cmd_raw",e,t,i,p)}cmd_raw_no_range_check(e,t,i,p={}){return t===void 0?this.exec("cmd_raw_no_range_check",e,{},p):this._cmd("cmd_raw_no_range_check",e,t,i,p)}cmd_no_hazardous_check(e,t,i,p={}){return t===void 0?this.exec("cmd_no_hazardous_check",e,{},p):this._cmd("cmd_no_hazardous_check",e,t,i,p)}cmd_no_checks(e,t,i,p={}){return t===void 0?this.exec("cmd_no_checks",e,{},p):this._cmd("cmd_no_checks",e,t,i,p)}cmd_raw_no_hazardous_check(e,t,i,p={}){return t===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},p):this._cmd("cmd_raw_no_hazardous_check",e,t,i,p)}cmd_raw_no_checks(e,t,i,p={}){return t===void 0?this.exec("cmd_raw_no_checks",e,{},p):this._cmd("cmd_raw_no_checks",e,t,i,p)}build_cmd(e,t,i){return t===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,i)}build_command(e,t,i){return t===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,i){return this.exec("save_config",[e,t,i])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,i){return this.exec("enable_limits",[e,t,i])}disable_limits(e,t,i){return this.exec("disable_limits",[e,t,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("set_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=new TextEncoder().encode(e),i=await crypto.subtle.digest("SHA-256",t),p=new Uint8Array(i);return Array.from(p).map(h=>h.toString(16).padStart(2,"0")).join("")}}}Dn("F",xx);const _x={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="RAW")return!0;return!1},hasDecom:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(n){this.$emit("config",n)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(n){this.latestData=n}}};var Ja={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 kx=Ja.exports,Nf;function Sx(){return Nf||(Nf=1,function(n,e){(function(){var t,i="4.17.21",p=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",y="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",g=500,s="__lodash_placeholder__",l=1,a=2,c=4,o=1,u=2,v=1,b=2,x=4,E=8,C=16,k=32,w=64,T=128,L=256,I=512,A=30,N="...",S=800,_=16,$=1,R=2,O=3,F=1/0,H=9007199254740991,W=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",T],["bind",v],["bindKey",b],["curry",E],["curryRight",C],["flip",I],["partial",k],["partialRight",w],["rearg",L]],ie="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",ye="[object Date]",fe="[object DOMException]",Ce="[object Error]",lt="[object Function]",Ut="[object GeneratorFunction]",gt="[object Map]",yt="[object Number]",fn="[object Null]",Pt="[object Object]",nn="[object Promise]",er="[object Proxy]",Tn="[object RegExp]",ln="[object Set]",Be="[object String]",We="[object Symbol]",cn="[object Undefined]",Ve="[object WeakMap]",ce="[object WeakSet]",Ee="[object ArrayBuffer]",Ie="[object DataView]",Ye="[object Float32Array]",Qe="[object Float64Array]",mt="[object Int8Array]",vt="[object Int16Array]",ht="[object Int32Array]",dt="[object Uint8Array]",ot="[object Uint8ClampedArray]",Kt="[object Uint16Array]",Vn="[object Uint32Array]",pr=/\b__p \+= '';/g,ai=/\b(__p \+=) '' \+/g,Ys=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ks=/&(?:amp|lt|gt|quot|#39);/g,Il=/[&<>"']/g,Kh=RegExp(Ks.source),Qh=RegExp(Il.source),Zh=/<%-([\s\S]+?)%>/g,Jh=/<%([\s\S]+?)%>/g,je=/<%=([\s\S]+?)%>/g,fr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fn=/^\w*$/,tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nr=/[\\^$.*+?()[\]{}|]/g,Dr=RegExp(nr.source),qn=/^\s+/,Nr=/\s/,Fr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ol=/\{\n\/\* \[wrapped with (.+)\] \*/,Dl=/,? & /,Xh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ed=/[()=,{}\[\]\/\s]/,gr=/\\(\\)?/g,td=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pr=/\w*$/,Nl=/^[-+]0x[0-9a-f]+$/i,ir=/^0b[01]+$/i,An=/^\[object .+?Constructor\]$/,xn=/^0o[0-7]+$/i,_n=/^(?:0|[1-9]\d*)$/,ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,bo=/['\n\r\u2028\u2029\\]/g,wo="\\ud800-\\udfff",Qs="\\u0300-\\u036f",ns="\\ufe20-\\ufe2f",Hr="\\u20d0-\\u20ff",is=Qs+ns+Hr,rs="\\u2700-\\u27bf",os="a-z\\xdf-\\xf6\\xf8-\\xff",Zs="\\xac\\xb1\\xd7\\xf7",Js="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xs="\\u2000-\\u206f",ea=" \\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",Ti="A-Z\\xc0-\\xd6\\xd8-\\xde",ta="\\ufe0e\\ufe0f",na=Zs+Js+Xs+ea,xo="['’]",Fl="["+wo+"]",Pl="["+na+"]",ss="["+is+"]",Hl="\\d+",Bl="["+rs+"]",ia="["+os+"]",jl="[^"+wo+na+Hl+rs+os+Ti+"]",as="\\ud83c[\\udffb-\\udfff]",ra="(?:"+ss+"|"+as+")",_o="[^"+wo+"]",Br="(?:\\ud83c[\\udde6-\\uddff]){2}",oa="[\\ud800-\\udbff][\\udc00-\\udfff]",rr="["+Ti+"]",zl="\\u200d",Wl="(?:"+ia+"|"+jl+")",nd="(?:"+rr+"|"+jl+")",mr="(?:"+xo+"(?:d|ll|m|re|s|t|ve))?",ko="(?:"+xo+"(?:D|LL|M|RE|S|T|VE))?",ls=ra+"?",jr="["+ta+"]?",id="(?:"+zl+"(?:"+[_o,Br,oa].join("|")+")"+jr+ls+")*",zr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sa=jr+ls+id,aa="(?:"+[Bl,Br,oa].join("|")+")"+sa,la="(?:"+[_o+ss+"?",ss,Br,oa,Fl].join("|")+")",ca=RegExp(xo,"g"),Wr=RegExp(ss,"g"),or=RegExp(as+"(?="+as+")|"+la+sa,"g"),Ul=RegExp([rr+"?"+ia+"+"+mr+"(?="+[Pl,rr,"$"].join("|")+")",nd+"+"+ko+"(?="+[Pl,rr+Wl,"$"].join("|")+")",rr+"?"+Wl+"+"+mr,rr+"+"+ko,rd,zr,Hl,aa].join("|"),"g"),Vl=RegExp("["+zl+wo+is+ta+"]"),Ur=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vr=["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"],ql=-1,Dt={};Dt[Ye]=Dt[Qe]=Dt[mt]=Dt[vt]=Dt[ht]=Dt[dt]=Dt[ot]=Dt[Kt]=Dt[Vn]=!0,Dt[ie]=Dt[J]=Dt[Ee]=Dt[me]=Dt[Ie]=Dt[ye]=Dt[Ce]=Dt[lt]=Dt[gt]=Dt[yt]=Dt[Pt]=Dt[Tn]=Dt[ln]=Dt[Be]=Dt[Ve]=!1;var ze={};ze[ie]=ze[J]=ze[Ee]=ze[Ie]=ze[me]=ze[ye]=ze[Ye]=ze[Qe]=ze[mt]=ze[vt]=ze[ht]=ze[gt]=ze[yt]=ze[Pt]=ze[Tn]=ze[ln]=ze[Be]=ze[We]=ze[dt]=ze[ot]=ze[Kt]=ze[Vn]=!0,ze[Ce]=ze[lt]=ze[Ve]=!1;var Vt={À:"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"},sr={"&":"&","<":"<",">":">",'"':""","'":"'"},En={"&":"&","<":"<",">":">",""":'"',"'":"'"},kn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sn=parseFloat,Ht=parseInt,vr=typeof Rr=="object"&&Rr&&Rr.Object===Object&&Rr,cs=typeof self=="object"&&self&&self.Object===Object&&self,Ln=vr||cs||Function("return this")(),Ai=e&&!e.nodeType&&e,Pn=Ai&&!0&&n&&!n.nodeType&&n,Gl=Pn&&Pn.exports===Ai,ua=Gl&&vr.process,li=function(){try{var ne=Pn&&Pn.require&&Pn.require("util").types;return ne||ua&&ua.binding&&ua.binding("util")}catch{}}(),Yl=li&&li.isArrayBuffer,Ei=li&&li.isDate,zi=li&&li.isMap,ar=li&&li.isRegExp,yr=li&&li.isSet,Kl=li&&li.isTypedArray;function Jt(ne,le,se){switch(se.length){case 0:return ne.call(le);case 1:return ne.call(le,se[0]);case 2:return ne.call(le,se[0],se[1]);case 3:return ne.call(le,se[0],se[1],se[2])}return ne.apply(le,se)}function od(ne,le,se,Me){for(var He=-1,Je=ne==null?0:ne.length;++He<Je;){var Et=ne[He];le(Me,Et,se(Et),ne)}return Me}function Xn(ne,le){for(var se=-1,Me=ne==null?0:ne.length;++se<Me&&le(ne[se],se,ne)!==!1;);return ne}function Ql(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function qr(ne,le){for(var se=-1,Me=ne==null?0:ne.length;++se<Me;)if(!le(ne[se],se,ne))return!1;return!0}function ci(ne,le){for(var se=-1,Me=ne==null?0:ne.length,He=0,Je=[];++se<Me;){var Et=ne[se];le(Et,se,ne)&&(Je[He++]=Et)}return Je}function us(ne,le){var se=ne==null?0:ne.length;return!!se&&br(ne,le,0)>-1}function So(ne,le,se){for(var Me=-1,He=ne==null?0:ne.length;++Me<He;)if(se(le,ne[Me]))return!0;return!1}function qt(ne,le){for(var se=-1,Me=ne==null?0:ne.length,He=Array(Me);++se<Me;)He[se]=le(ne[se],se,ne);return He}function Yn(ne,le){for(var se=-1,Me=le.length,He=ne.length;++se<Me;)ne[He+se]=le[se];return ne}function Li(ne,le,se,Me){var He=-1,Je=ne==null?0:ne.length;for(Me&&Je&&(se=ne[++He]);++He<Je;)se=le(se,ne[He],He,ne);return se}function $o(ne,le,se,Me){var He=ne==null?0:ne.length;for(Me&&He&&(se=ne[--He]);He--;)se=le(se,ne[He],He,ne);return se}function hs(ne,le){for(var se=-1,Me=ne==null?0:ne.length;++se<Me;)if(le(ne[se],se,ne))return!0;return!1}var ha=ma("length");function da(ne){return ne.split("")}function ds(ne){return ne.match(Xh)||[]}function pa(ne,le,se){var Me;return se(ne,function(He,Je,Et){if(le(He,Je,Et))return Me=Je,!1}),Me}function Co(ne,le,se,Me){for(var He=ne.length,Je=se+(Me?1:-1);Me?Je--:++Je<He;)if(le(ne[Je],Je,ne))return Je;return-1}function br(ne,le,se){return le===le?Ze(ne,le,se):Co(ne,fa,se)}function Zl(ne,le,se,Me){for(var He=se-1,Je=ne.length;++He<Je;)if(Me(ne[He],le))return He;return-1}function fa(ne){return ne!==ne}function ga(ne,le){var se=ne==null?0:ne.length;return se?Yr(ne,le)/se:V}function ma(ne){return function(le){return le==null?t:le[ne]}}function ps(ne){return function(le){return ne==null?t:ne[le]}}function va(ne,le,se,Me,He){return He(ne,function(Je,Et,et){se=Me?(Me=!1,Je):le(se,Je,Et,et)}),se}function Gr(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Yr(ne,le){for(var se,Me=-1,He=ne.length;++Me<He;){var Je=le(ne[Me]);Je!==t&&(se=se===t?Je:se+Je)}return se}function un(ne,le){for(var se=-1,Me=Array(ne);++se<ne;)Me[se]=le(se);return Me}function Jl(ne,le){return qt(le,function(se){return[se,ne[se]]})}function rn(ne){return ne&&ne.slice(0,Xe(ne)+1).replace(qn,"")}function Kn(ne){return function(le){return ne(le)}}function Mo(ne,le){return qt(le,function(se){return ne[se]})}function Wi(ne,le){return ne.has(le)}function Xl(ne,le){for(var se=-1,Me=ne.length;++se<Me&&br(le,ne[se],0)>-1;);return se}function ec(ne,le){for(var se=ne.length;se--&&br(le,ne[se],0)>-1;);return se}function ya(ne,le){for(var se=ne.length,Me=0;se--;)ne[se]===le&&++Me;return Me}var P=ps(Vt),j=ps(sr);function Y(ne){return"\\"+kn[ne]}function K(ne,le){return ne==null?t:ne[le]}function te(ne){return Vl.test(ne)}function oe(ne){return Ur.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function be(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Me,He){se[++le]=[He,Me]}),se}function ke(ne,le){return function(se){return ne(le(se))}}function $e(ne,le){for(var se=-1,Me=ne.length,He=0,Je=[];++se<Me;){var Et=ne[se];(Et===le||Et===s)&&(ne[se]=s,Je[He++]=se)}return Je}function Te(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Me){se[++le]=Me}),se}function Le(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Me){se[++le]=[Me,Me]}),se}function Ze(ne,le,se){for(var Me=se-1,He=ne.length;++Me<He;)if(ne[Me]===le)return Me;return-1}function It(ne,le,se){for(var Me=se+1;Me--;)if(ne[Me]===le)return Me;return Me}function st(ne){return te(ne)?At(ne):ha(ne)}function Ke(ne){return te(ne)?on(ne):da(ne)}function Xe(ne){for(var le=ne.length;le--&&Nr.test(ne.charAt(le)););return le}var Ne=ps(En);function At(ne){for(var le=or.lastIndex=0;or.test(ne);)++le;return le}function on(ne){return ne.match(or)||[]}function Xt(ne){return ne.match(Ul)||[]}var Bt=function ne(le){le=le==null?Ln:jt.defaults(Ln.Object(),le,jt.pick(Ln,Vr));var se=le.Array,Me=le.Date,He=le.Error,Je=le.Function,Et=le.Math,et=le.Object,Rn=le.RegExp,ei=le.String,In=le.TypeError,wi=se.prototype,ui=Je.prototype,fs=et.prototype,tc=le["__core-js_shared__"],nc=ui.toString,Ot=fs.hasOwnProperty,GT=0,$v=function(){var r=/[^.]+$/.exec(tc&&tc.keys&&tc.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ic=fs.toString,YT=nc.call(et),KT=Ln._,QT=Rn("^"+nc.call(Ot).replace(nr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rc=Gl?le.Buffer:t,Kr=le.Symbol,oc=le.Uint8Array,Cv=rc?rc.allocUnsafe:t,sc=ke(et.getPrototypeOf,et),Mv=et.create,Tv=fs.propertyIsEnumerable,ac=wi.splice,Av=Kr?Kr.isConcatSpreadable:t,ba=Kr?Kr.iterator:t,To=Kr?Kr.toStringTag:t,lc=function(){try{var r=Io(et,"defineProperty");return r({},"",{}),r}catch{}}(),ZT=le.clearTimeout!==Ln.clearTimeout&&le.clearTimeout,JT=Me&&Me.now!==Ln.Date.now&&Me.now,XT=le.setTimeout!==Ln.setTimeout&&le.setTimeout,cc=Et.ceil,uc=Et.floor,sd=et.getOwnPropertySymbols,eA=rc?rc.isBuffer:t,Ev=le.isFinite,tA=wi.join,nA=ke(et.keys,et),On=Et.max,Qn=Et.min,iA=Me.now,rA=le.parseInt,Lv=Et.random,oA=wi.reverse,ad=Io(le,"DataView"),wa=Io(le,"Map"),ld=Io(le,"Promise"),gs=Io(le,"Set"),xa=Io(le,"WeakMap"),_a=Io(et,"create"),hc=xa&&new xa,ms={},sA=Oo(ad),aA=Oo(wa),lA=Oo(ld),cA=Oo(gs),uA=Oo(xa),dc=Kr?Kr.prototype:t,ka=dc?dc.valueOf:t,Rv=dc?dc.toString:t;function z(r){if(hn(r)&&!tt(r)&&!(r instanceof _t)){if(r instanceof Ri)return r;if(Ot.call(r,"__wrapped__"))return Iy(r)}return new Ri(r)}var vs=function(){function r(){}return function(m){if(!sn(m))return{};if(Mv)return Mv(m);r.prototype=m;var M=new r;return r.prototype=t,M}}();function pc(){}function Ri(r,m){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=t}z.templateSettings={escape:Zh,evaluate:Jh,interpolate:je,variable:"",imports:{_:z}},z.prototype=pc.prototype,z.prototype.constructor=z,Ri.prototype=vs(pc.prototype),Ri.prototype.constructor=Ri;function _t(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function hA(){var r=new _t(this.__wrapped__);return r.__actions__=hi(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=hi(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=hi(this.__views__),r}function dA(){if(this.__filtered__){var r=new _t(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function pA(){var r=this.__wrapped__.value(),m=this.__dir__,M=tt(r),D=m<0,B=M?r.length:0,U=$E(0,B,this.__views__),Q=U.start,ee=U.end,re=ee-Q,pe=D?ee:Q-1,ge=this.__iteratees__,ve=ge.length,Ae=0,Fe=Qn(re,this.__takeCount__);if(!M||!D&&B==re&&Fe==re)return ny(r,this.__actions__);var qe=[];e:for(;re--&&Ae<Fe;){pe+=m;for(var ct=-1,Ge=r[pe];++ct<ve;){var bt=ge[ct],kt=bt.iteratee,ki=bt.type,ii=kt(Ge);if(ki==R)Ge=ii;else if(!ii){if(ki==$)continue e;break e}}qe[Ae++]=Ge}return qe}_t.prototype=vs(pc.prototype),_t.prototype.constructor=_t;function Ao(r){var m=-1,M=r==null?0:r.length;for(this.clear();++m<M;){var D=r[m];this.set(D[0],D[1])}}function fA(){this.__data__=_a?_a(null):{},this.size=0}function gA(r){var m=this.has(r)&&delete this.__data__[r];return this.size-=m?1:0,m}function mA(r){var m=this.__data__;if(_a){var M=m[r];return M===d?t:M}return Ot.call(m,r)?m[r]:t}function vA(r){var m=this.__data__;return _a?m[r]!==t:Ot.call(m,r)}function yA(r,m){var M=this.__data__;return this.size+=this.has(r)?0:1,M[r]=_a&&m===t?d:m,this}Ao.prototype.clear=fA,Ao.prototype.delete=gA,Ao.prototype.get=mA,Ao.prototype.has=vA,Ao.prototype.set=yA;function wr(r){var m=-1,M=r==null?0:r.length;for(this.clear();++m<M;){var D=r[m];this.set(D[0],D[1])}}function bA(){this.__data__=[],this.size=0}function wA(r){var m=this.__data__,M=fc(m,r);if(M<0)return!1;var D=m.length-1;return M==D?m.pop():ac.call(m,M,1),--this.size,!0}function xA(r){var m=this.__data__,M=fc(m,r);return M<0?t:m[M][1]}function _A(r){return fc(this.__data__,r)>-1}function kA(r,m){var M=this.__data__,D=fc(M,r);return D<0?(++this.size,M.push([r,m])):M[D][1]=m,this}wr.prototype.clear=bA,wr.prototype.delete=wA,wr.prototype.get=xA,wr.prototype.has=_A,wr.prototype.set=kA;function xr(r){var m=-1,M=r==null?0:r.length;for(this.clear();++m<M;){var D=r[m];this.set(D[0],D[1])}}function SA(){this.size=0,this.__data__={hash:new Ao,map:new(wa||wr),string:new Ao}}function $A(r){var m=Cc(this,r).delete(r);return this.size-=m?1:0,m}function CA(r){return Cc(this,r).get(r)}function MA(r){return Cc(this,r).has(r)}function TA(r,m){var M=Cc(this,r),D=M.size;return M.set(r,m),this.size+=M.size==D?0:1,this}xr.prototype.clear=SA,xr.prototype.delete=$A,xr.prototype.get=CA,xr.prototype.has=MA,xr.prototype.set=TA;function Eo(r){var m=-1,M=r==null?0:r.length;for(this.__data__=new xr;++m<M;)this.add(r[m])}function AA(r){return this.__data__.set(r,d),this}function EA(r){return this.__data__.has(r)}Eo.prototype.add=Eo.prototype.push=AA,Eo.prototype.has=EA;function Ui(r){var m=this.__data__=new wr(r);this.size=m.size}function LA(){this.__data__=new wr,this.size=0}function RA(r){var m=this.__data__,M=m.delete(r);return this.size=m.size,M}function IA(r){return this.__data__.get(r)}function OA(r){return this.__data__.has(r)}function DA(r,m){var M=this.__data__;if(M instanceof wr){var D=M.__data__;if(!wa||D.length<p-1)return D.push([r,m]),this.size=++M.size,this;M=this.__data__=new xr(D)}return M.set(r,m),this.size=M.size,this}Ui.prototype.clear=LA,Ui.prototype.delete=RA,Ui.prototype.get=IA,Ui.prototype.has=OA,Ui.prototype.set=DA;function Iv(r,m){var M=tt(r),D=!M&&Do(r),B=!M&&!D&&eo(r),U=!M&&!D&&!B&&xs(r),Q=M||D||B||U,ee=Q?un(r.length,ei):[],re=ee.length;for(var pe in r)(m||Ot.call(r,pe))&&!(Q&&(pe=="length"||B&&(pe=="offset"||pe=="parent")||U&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||$r(pe,re)))&&ee.push(pe);return ee}function Ov(r){var m=r.length;return m?r[bd(0,m-1)]:t}function NA(r,m){return Mc(hi(r),Lo(m,0,r.length))}function FA(r){return Mc(hi(r))}function cd(r,m,M){(M!==t&&!Vi(r[m],M)||M===t&&!(m in r))&&_r(r,m,M)}function Sa(r,m,M){var D=r[m];(!(Ot.call(r,m)&&Vi(D,M))||M===t&&!(m in r))&&_r(r,m,M)}function fc(r,m){for(var M=r.length;M--;)if(Vi(r[M][0],m))return M;return-1}function PA(r,m,M,D){return Qr(r,function(B,U,Q){m(D,B,M(B),Q)}),D}function Dv(r,m){return r&&cr(m,Hn(m),r)}function HA(r,m){return r&&cr(m,pi(m),r)}function _r(r,m,M){m=="__proto__"&&lc?lc(r,m,{configurable:!0,enumerable:!0,value:M,writable:!0}):r[m]=M}function ud(r,m){for(var M=-1,D=m.length,B=se(D),U=r==null;++M<D;)B[M]=U?t:Ud(r,m[M]);return B}function Lo(r,m,M){return r===r&&(M!==t&&(r=r<=M?r:M),m!==t&&(r=r>=m?r:m)),r}function Ii(r,m,M,D,B,U){var Q,ee=m&l,re=m&a,pe=m&c;if(M&&(Q=B?M(r,D,B,U):M(r)),Q!==t)return Q;if(!sn(r))return r;var ge=tt(r);if(ge){if(Q=ME(r),!ee)return hi(r,Q)}else{var ve=Zn(r),Ae=ve==lt||ve==Ut;if(eo(r))return oy(r,ee);if(ve==Pt||ve==ie||Ae&&!B){if(Q=re||Ae?{}:Sy(r),!ee)return re?mE(r,HA(Q,r)):gE(r,Dv(Q,r))}else{if(!ze[ve])return B?r:{};Q=TE(r,ve,ee)}}U||(U=new Ui);var Fe=U.get(r);if(Fe)return Fe;U.set(r,Q),Xy(r)?r.forEach(function(Ge){Q.add(Ii(Ge,m,M,Ge,r,U))}):Zy(r)&&r.forEach(function(Ge,bt){Q.set(bt,Ii(Ge,m,M,bt,r,U))});var qe=pe?re?Ed:Ad:re?pi:Hn,ct=ge?t:qe(r);return Xn(ct||r,function(Ge,bt){ct&&(bt=Ge,Ge=r[bt]),Sa(Q,bt,Ii(Ge,m,M,bt,r,U))}),Q}function BA(r){var m=Hn(r);return function(M){return Nv(M,r,m)}}function Nv(r,m,M){var D=M.length;if(r==null)return!D;for(r=et(r);D--;){var B=M[D],U=m[B],Q=r[B];if(Q===t&&!(B in r)||!U(Q))return!1}return!0}function Fv(r,m,M){if(typeof r!="function")throw new In(f);return La(function(){r.apply(t,M)},m)}function $a(r,m,M,D){var B=-1,U=us,Q=!0,ee=r.length,re=[],pe=m.length;if(!ee)return re;M&&(m=qt(m,Kn(M))),D?(U=So,Q=!1):m.length>=p&&(U=Wi,Q=!1,m=new Eo(m));e:for(;++B<ee;){var ge=r[B],ve=M==null?ge:M(ge);if(ge=D||ge!==0?ge:0,Q&&ve===ve){for(var Ae=pe;Ae--;)if(m[Ae]===ve)continue e;re.push(ge)}else U(m,ve,D)||re.push(ge)}return re}var Qr=uy(lr),Pv=uy(dd,!0);function jA(r,m){var M=!0;return Qr(r,function(D,B,U){return M=!!m(D,B,U),M}),M}function gc(r,m,M){for(var D=-1,B=r.length;++D<B;){var U=r[D],Q=m(U);if(Q!=null&&(ee===t?Q===Q&&!_i(Q):M(Q,ee)))var ee=Q,re=U}return re}function zA(r,m,M,D){var B=r.length;for(M=at(M),M<0&&(M=-M>B?0:B+M),D=D===t||D>B?B:at(D),D<0&&(D+=B),D=M>D?0:tb(D);M<D;)r[M++]=m;return r}function Hv(r,m){var M=[];return Qr(r,function(D,B,U){m(D,B,U)&&M.push(D)}),M}function Bn(r,m,M,D,B){var U=-1,Q=r.length;for(M||(M=EE),B||(B=[]);++U<Q;){var ee=r[U];m>0&&M(ee)?m>1?Bn(ee,m-1,M,D,B):Yn(B,ee):D||(B[B.length]=ee)}return B}var hd=hy(),Bv=hy(!0);function lr(r,m){return r&&hd(r,m,Hn)}function dd(r,m){return r&&Bv(r,m,Hn)}function mc(r,m){return ci(m,function(M){return Cr(r[M])})}function Ro(r,m){m=Jr(m,r);for(var M=0,D=m.length;r!=null&&M<D;)r=r[ur(m[M++])];return M&&M==D?r:t}function jv(r,m,M){var D=m(r);return tt(r)?D:Yn(D,M(r))}function ti(r){return r==null?r===t?cn:fn:To&&To in et(r)?SE(r):FE(r)}function pd(r,m){return r>m}function WA(r,m){return r!=null&&Ot.call(r,m)}function UA(r,m){return r!=null&&m in et(r)}function VA(r,m,M){return r>=Qn(m,M)&&r<On(m,M)}function fd(r,m,M){for(var D=M?So:us,B=r[0].length,U=r.length,Q=U,ee=se(U),re=1/0,pe=[];Q--;){var ge=r[Q];Q&&m&&(ge=qt(ge,Kn(m))),re=Qn(ge.length,re),ee[Q]=!M&&(m||B>=120&&ge.length>=120)?new Eo(Q&&ge):t}ge=r[0];var ve=-1,Ae=ee[0];e:for(;++ve<B&&pe.length<re;){var Fe=ge[ve],qe=m?m(Fe):Fe;if(Fe=M||Fe!==0?Fe:0,!(Ae?Wi(Ae,qe):D(pe,qe,M))){for(Q=U;--Q;){var ct=ee[Q];if(!(ct?Wi(ct,qe):D(r[Q],qe,M)))continue e}Ae&&Ae.push(qe),pe.push(Fe)}}return pe}function qA(r,m,M,D){return lr(r,function(B,U,Q){m(D,M(B),U,Q)}),D}function Ca(r,m,M){m=Jr(m,r),r=Ty(r,m);var D=r==null?r:r[ur(Di(m))];return D==null?t:Jt(D,r,M)}function zv(r){return hn(r)&&ti(r)==ie}function GA(r){return hn(r)&&ti(r)==Ee}function YA(r){return hn(r)&&ti(r)==ye}function Ma(r,m,M,D,B){return r===m?!0:r==null||m==null||!hn(r)&&!hn(m)?r!==r&&m!==m:KA(r,m,M,D,Ma,B)}function KA(r,m,M,D,B,U){var Q=tt(r),ee=tt(m),re=Q?J:Zn(r),pe=ee?J:Zn(m);re=re==ie?Pt:re,pe=pe==ie?Pt:pe;var ge=re==Pt,ve=pe==Pt,Ae=re==pe;if(Ae&&eo(r)){if(!eo(m))return!1;Q=!0,ge=!1}if(Ae&&!ge)return U||(U=new Ui),Q||xs(r)?xy(r,m,M,D,B,U):_E(r,m,re,M,D,B,U);if(!(M&o)){var Fe=ge&&Ot.call(r,"__wrapped__"),qe=ve&&Ot.call(m,"__wrapped__");if(Fe||qe){var ct=Fe?r.value():r,Ge=qe?m.value():m;return U||(U=new Ui),B(ct,Ge,M,D,U)}}return Ae?(U||(U=new Ui),kE(r,m,M,D,B,U)):!1}function QA(r){return hn(r)&&Zn(r)==gt}function gd(r,m,M,D){var B=M.length,U=B,Q=!D;if(r==null)return!U;for(r=et(r);B--;){var ee=M[B];if(Q&&ee[2]?ee[1]!==r[ee[0]]:!(ee[0]in r))return!1}for(;++B<U;){ee=M[B];var re=ee[0],pe=r[re],ge=ee[1];if(Q&&ee[2]){if(pe===t&&!(re in r))return!1}else{var ve=new Ui;if(D)var Ae=D(pe,ge,re,r,m,ve);if(!(Ae===t?Ma(ge,pe,o|u,D,ve):Ae))return!1}}return!0}function Wv(r){if(!sn(r)||RE(r))return!1;var m=Cr(r)?QT:An;return m.test(Oo(r))}function ZA(r){return hn(r)&&ti(r)==Tn}function JA(r){return hn(r)&&Zn(r)==ln}function XA(r){return hn(r)&&Ic(r.length)&&!!Dt[ti(r)]}function Uv(r){return typeof r=="function"?r:r==null?fi:typeof r=="object"?tt(r)?Gv(r[0],r[1]):qv(r):db(r)}function md(r){if(!Ea(r))return nA(r);var m=[];for(var M in et(r))Ot.call(r,M)&&M!="constructor"&&m.push(M);return m}function eE(r){if(!sn(r))return NE(r);var m=Ea(r),M=[];for(var D in r)D=="constructor"&&(m||!Ot.call(r,D))||M.push(D);return M}function vd(r,m){return r<m}function Vv(r,m){var M=-1,D=di(r)?se(r.length):[];return Qr(r,function(B,U,Q){D[++M]=m(B,U,Q)}),D}function qv(r){var m=Rd(r);return m.length==1&&m[0][2]?Cy(m[0][0],m[0][1]):function(M){return M===r||gd(M,r,m)}}function Gv(r,m){return Od(r)&&$y(m)?Cy(ur(r),m):function(M){var D=Ud(M,r);return D===t&&D===m?Vd(M,r):Ma(m,D,o|u)}}function vc(r,m,M,D,B){r!==m&&hd(m,function(U,Q){if(B||(B=new Ui),sn(U))tE(r,m,Q,M,vc,D,B);else{var ee=D?D(Nd(r,Q),U,Q+"",r,m,B):t;ee===t&&(ee=U),cd(r,Q,ee)}},pi)}function tE(r,m,M,D,B,U,Q){var ee=Nd(r,M),re=Nd(m,M),pe=Q.get(re);if(pe){cd(r,M,pe);return}var ge=U?U(ee,re,M+"",r,m,Q):t,ve=ge===t;if(ve){var Ae=tt(re),Fe=!Ae&&eo(re),qe=!Ae&&!Fe&&xs(re);ge=re,Ae||Fe||qe?tt(ee)?ge=ee:gn(ee)?ge=hi(ee):Fe?(ve=!1,ge=oy(re,!0)):qe?(ve=!1,ge=sy(re,!0)):ge=[]:Ra(re)||Do(re)?(ge=ee,Do(ee)?ge=nb(ee):(!sn(ee)||Cr(ee))&&(ge=Sy(re))):ve=!1}ve&&(Q.set(re,ge),B(ge,re,D,U,Q),Q.delete(re)),cd(r,M,ge)}function Yv(r,m){var M=r.length;if(M)return m+=m<0?M:0,$r(m,M)?r[m]:t}function Kv(r,m,M){m.length?m=qt(m,function(U){return tt(U)?function(Q){return Ro(Q,U.length===1?U[0]:U)}:U}):m=[fi];var D=-1;m=qt(m,Kn(Ue()));var B=Vv(r,function(U,Q,ee){var re=qt(m,function(pe){return pe(U)});return{criteria:re,index:++D,value:U}});return Gr(B,function(U,Q){return fE(U,Q,M)})}function nE(r,m){return Qv(r,m,function(M,D){return Vd(r,D)})}function Qv(r,m,M){for(var D=-1,B=m.length,U={};++D<B;){var Q=m[D],ee=Ro(r,Q);M(ee,Q)&&Ta(U,Jr(Q,r),ee)}return U}function iE(r){return function(m){return Ro(m,r)}}function yd(r,m,M,D){var B=D?Zl:br,U=-1,Q=m.length,ee=r;for(r===m&&(m=hi(m)),M&&(ee=qt(r,Kn(M)));++U<Q;)for(var re=0,pe=m[U],ge=M?M(pe):pe;(re=B(ee,ge,re,D))>-1;)ee!==r&&ac.call(ee,re,1),ac.call(r,re,1);return r}function Zv(r,m){for(var M=r?m.length:0,D=M-1;M--;){var B=m[M];if(M==D||B!==U){var U=B;$r(B)?ac.call(r,B,1):_d(r,B)}}return r}function bd(r,m){return r+uc(Lv()*(m-r+1))}function rE(r,m,M,D){for(var B=-1,U=On(cc((m-r)/(M||1)),0),Q=se(U);U--;)Q[D?U:++B]=r,r+=M;return Q}function wd(r,m){var M="";if(!r||m<1||m>H)return M;do m%2&&(M+=r),m=uc(m/2),m&&(r+=r);while(m);return M}function pt(r,m){return Fd(My(r,m,fi),r+"")}function oE(r){return Ov(_s(r))}function sE(r,m){var M=_s(r);return Mc(M,Lo(m,0,M.length))}function Ta(r,m,M,D){if(!sn(r))return r;m=Jr(m,r);for(var B=-1,U=m.length,Q=U-1,ee=r;ee!=null&&++B<U;){var re=ur(m[B]),pe=M;if(re==="__proto__"||re==="constructor"||re==="prototype")return r;if(B!=Q){var ge=ee[re];pe=D?D(ge,re,ee):t,pe===t&&(pe=sn(ge)?ge:$r(m[B+1])?[]:{})}Sa(ee,re,pe),ee=ee[re]}return r}var Jv=hc?function(r,m){return hc.set(r,m),r}:fi,aE=lc?function(r,m){return lc(r,"toString",{configurable:!0,enumerable:!1,value:Gd(m),writable:!0})}:fi;function lE(r){return Mc(_s(r))}function Oi(r,m,M){var D=-1,B=r.length;m<0&&(m=-m>B?0:B+m),M=M>B?B:M,M<0&&(M+=B),B=m>M?0:M-m>>>0,m>>>=0;for(var U=se(B);++D<B;)U[D]=r[D+m];return U}function cE(r,m){var M;return Qr(r,function(D,B,U){return M=m(D,B,U),!M}),!!M}function yc(r,m,M){var D=0,B=r==null?D:r.length;if(typeof m=="number"&&m===m&&B<=G){for(;D<B;){var U=D+B>>>1,Q=r[U];Q!==null&&!_i(Q)&&(M?Q<=m:Q<m)?D=U+1:B=U}return B}return xd(r,m,fi,M)}function xd(r,m,M,D){var B=0,U=r==null?0:r.length;if(U===0)return 0;m=M(m);for(var Q=m!==m,ee=m===null,re=_i(m),pe=m===t;B<U;){var ge=uc((B+U)/2),ve=M(r[ge]),Ae=ve!==t,Fe=ve===null,qe=ve===ve,ct=_i(ve);if(Q)var Ge=D||qe;else pe?Ge=qe&&(D||Ae):ee?Ge=qe&&Ae&&(D||!Fe):re?Ge=qe&&Ae&&!Fe&&(D||!ct):Fe||ct?Ge=!1:Ge=D?ve<=m:ve<m;Ge?B=ge+1:U=ge}return Qn(U,X)}function Xv(r,m){for(var M=-1,D=r.length,B=0,U=[];++M<D;){var Q=r[M],ee=m?m(Q):Q;if(!M||!Vi(ee,re)){var re=ee;U[B++]=Q===0?0:Q}}return U}function ey(r){return typeof r=="number"?r:_i(r)?V:+r}function xi(r){if(typeof r=="string")return r;if(tt(r))return qt(r,xi)+"";if(_i(r))return Rv?Rv.call(r):"";var m=r+"";return m=="0"&&1/r==-F?"-0":m}function Zr(r,m,M){var D=-1,B=us,U=r.length,Q=!0,ee=[],re=ee;if(M)Q=!1,B=So;else if(U>=p){var pe=m?null:wE(r);if(pe)return Te(pe);Q=!1,B=Wi,re=new Eo}else re=m?[]:ee;e:for(;++D<U;){var ge=r[D],ve=m?m(ge):ge;if(ge=M||ge!==0?ge:0,Q&&ve===ve){for(var Ae=re.length;Ae--;)if(re[Ae]===ve)continue e;m&&re.push(ve),ee.push(ge)}else B(re,ve,M)||(re!==ee&&re.push(ve),ee.push(ge))}return ee}function _d(r,m){return m=Jr(m,r),r=Ty(r,m),r==null||delete r[ur(Di(m))]}function ty(r,m,M,D){return Ta(r,m,M(Ro(r,m)),D)}function bc(r,m,M,D){for(var B=r.length,U=D?B:-1;(D?U--:++U<B)&&m(r[U],U,r););return M?Oi(r,D?0:U,D?U+1:B):Oi(r,D?U+1:0,D?B:U)}function ny(r,m){var M=r;return M instanceof _t&&(M=M.value()),Li(m,function(D,B){return B.func.apply(B.thisArg,Yn([D],B.args))},M)}function kd(r,m,M){var D=r.length;if(D<2)return D?Zr(r[0]):[];for(var B=-1,U=se(D);++B<D;)for(var Q=r[B],ee=-1;++ee<D;)ee!=B&&(U[B]=$a(U[B]||Q,r[ee],m,M));return Zr(Bn(U,1),m,M)}function iy(r,m,M){for(var D=-1,B=r.length,U=m.length,Q={};++D<B;){var ee=D<U?m[D]:t;M(Q,r[D],ee)}return Q}function Sd(r){return gn(r)?r:[]}function $d(r){return typeof r=="function"?r:fi}function Jr(r,m){return tt(r)?r:Od(r,m)?[r]:Ry(Lt(r))}var uE=pt;function Xr(r,m,M){var D=r.length;return M=M===t?D:M,!m&&M>=D?r:Oi(r,m,M)}var ry=ZT||function(r){return Ln.clearTimeout(r)};function oy(r,m){if(m)return r.slice();var M=r.length,D=Cv?Cv(M):new r.constructor(M);return r.copy(D),D}function Cd(r){var m=new r.constructor(r.byteLength);return new oc(m).set(new oc(r)),m}function hE(r,m){var M=m?Cd(r.buffer):r.buffer;return new r.constructor(M,r.byteOffset,r.byteLength)}function dE(r){var m=new r.constructor(r.source,Pr.exec(r));return m.lastIndex=r.lastIndex,m}function pE(r){return ka?et(ka.call(r)):{}}function sy(r,m){var M=m?Cd(r.buffer):r.buffer;return new r.constructor(M,r.byteOffset,r.length)}function ay(r,m){if(r!==m){var M=r!==t,D=r===null,B=r===r,U=_i(r),Q=m!==t,ee=m===null,re=m===m,pe=_i(m);if(!ee&&!pe&&!U&&r>m||U&&Q&&re&&!ee&&!pe||D&&Q&&re||!M&&re||!B)return 1;if(!D&&!U&&!pe&&r<m||pe&&M&&B&&!D&&!U||ee&&M&&B||!Q&&B||!re)return-1}return 0}function fE(r,m,M){for(var D=-1,B=r.criteria,U=m.criteria,Q=B.length,ee=M.length;++D<Q;){var re=ay(B[D],U[D]);if(re){if(D>=ee)return re;var pe=M[D];return re*(pe=="desc"?-1:1)}}return r.index-m.index}function ly(r,m,M,D){for(var B=-1,U=r.length,Q=M.length,ee=-1,re=m.length,pe=On(U-Q,0),ge=se(re+pe),ve=!D;++ee<re;)ge[ee]=m[ee];for(;++B<Q;)(ve||B<U)&&(ge[M[B]]=r[B]);for(;pe--;)ge[ee++]=r[B++];return ge}function cy(r,m,M,D){for(var B=-1,U=r.length,Q=-1,ee=M.length,re=-1,pe=m.length,ge=On(U-ee,0),ve=se(ge+pe),Ae=!D;++B<ge;)ve[B]=r[B];for(var Fe=B;++re<pe;)ve[Fe+re]=m[re];for(;++Q<ee;)(Ae||B<U)&&(ve[Fe+M[Q]]=r[B++]);return ve}function hi(r,m){var M=-1,D=r.length;for(m||(m=se(D));++M<D;)m[M]=r[M];return m}function cr(r,m,M,D){var B=!M;M||(M={});for(var U=-1,Q=m.length;++U<Q;){var ee=m[U],re=D?D(M[ee],r[ee],ee,M,r):t;re===t&&(re=r[ee]),B?_r(M,ee,re):Sa(M,ee,re)}return M}function gE(r,m){return cr(r,Id(r),m)}function mE(r,m){return cr(r,_y(r),m)}function wc(r,m){return function(M,D){var B=tt(M)?od:PA,U=m?m():{};return B(M,r,Ue(D,2),U)}}function ys(r){return pt(function(m,M){var D=-1,B=M.length,U=B>1?M[B-1]:t,Q=B>2?M[2]:t;for(U=r.length>3&&typeof U=="function"?(B--,U):t,Q&&ni(M[0],M[1],Q)&&(U=B<3?t:U,B=1),m=et(m);++D<B;){var ee=M[D];ee&&r(m,ee,D,U)}return m})}function uy(r,m){return function(M,D){if(M==null)return M;if(!di(M))return r(M,D);for(var B=M.length,U=m?B:-1,Q=et(M);(m?U--:++U<B)&&D(Q[U],U,Q)!==!1;);return M}}function hy(r){return function(m,M,D){for(var B=-1,U=et(m),Q=D(m),ee=Q.length;ee--;){var re=Q[r?ee:++B];if(M(U[re],re,U)===!1)break}return m}}function vE(r,m,M){var D=m&v,B=Aa(r);function U(){var Q=this&&this!==Ln&&this instanceof U?B:r;return Q.apply(D?M:this,arguments)}return U}function dy(r){return function(m){m=Lt(m);var M=te(m)?Ke(m):t,D=M?M[0]:m.charAt(0),B=M?Xr(M,1).join(""):m.slice(1);return D[r]()+B}}function bs(r){return function(m){return Li(ub(cb(m).replace(ca,"")),r,"")}}function Aa(r){return function(){var m=arguments;switch(m.length){case 0:return new r;case 1:return new r(m[0]);case 2:return new r(m[0],m[1]);case 3:return new r(m[0],m[1],m[2]);case 4:return new r(m[0],m[1],m[2],m[3]);case 5:return new r(m[0],m[1],m[2],m[3],m[4]);case 6:return new r(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new r(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var M=vs(r.prototype),D=r.apply(M,m);return sn(D)?D:M}}function yE(r,m,M){var D=Aa(r);function B(){for(var U=arguments.length,Q=se(U),ee=U,re=ws(B);ee--;)Q[ee]=arguments[ee];var pe=U<3&&Q[0]!==re&&Q[U-1]!==re?[]:$e(Q,re);if(U-=pe.length,U<M)return vy(r,m,xc,B.placeholder,t,Q,pe,t,t,M-U);var ge=this&&this!==Ln&&this instanceof B?D:r;return Jt(ge,this,Q)}return B}function py(r){return function(m,M,D){var B=et(m);if(!di(m)){var U=Ue(M,3);m=Hn(m),M=function(ee){return U(B[ee],ee,B)}}var Q=r(m,M,D);return Q>-1?B[U?m[Q]:Q]:t}}function fy(r){return Sr(function(m){var M=m.length,D=M,B=Ri.prototype.thru;for(r&&m.reverse();D--;){var U=m[D];if(typeof U!="function")throw new In(f);if(B&&!Q&&$c(U)=="wrapper")var Q=new Ri([],!0)}for(D=Q?D:M;++D<M;){U=m[D];var ee=$c(U),re=ee=="wrapper"?Ld(U):t;re&&Dd(re[0])&&re[1]==(T|E|k|L)&&!re[4].length&&re[9]==1?Q=Q[$c(re[0])].apply(Q,re[3]):Q=U.length==1&&Dd(U)?Q[ee]():Q.thru(U)}return function(){var pe=arguments,ge=pe[0];if(Q&&pe.length==1&&tt(ge))return Q.plant(ge).value();for(var ve=0,Ae=M?m[ve].apply(this,pe):ge;++ve<M;)Ae=m[ve].call(this,Ae);return Ae}})}function xc(r,m,M,D,B,U,Q,ee,re,pe){var ge=m&T,ve=m&v,Ae=m&b,Fe=m&(E|C),qe=m&I,ct=Ae?t:Aa(r);function Ge(){for(var bt=arguments.length,kt=se(bt),ki=bt;ki--;)kt[ki]=arguments[ki];if(Fe)var ii=ws(Ge),Si=ya(kt,ii);if(D&&(kt=ly(kt,D,B,Fe)),U&&(kt=cy(kt,U,Q,Fe)),bt-=Si,Fe&&bt<pe){var mn=$e(kt,ii);return vy(r,m,xc,Ge.placeholder,M,kt,mn,ee,re,pe-bt)}var qi=ve?M:this,Tr=Ae?qi[r]:r;return bt=kt.length,ee?kt=PE(kt,ee):qe&&bt>1&&kt.reverse(),ge&&re<bt&&(kt.length=re),this&&this!==Ln&&this instanceof Ge&&(Tr=ct||Aa(Tr)),Tr.apply(qi,kt)}return Ge}function gy(r,m){return function(M,D){return qA(M,r,m(D),{})}}function _c(r,m){return function(M,D){var B;if(M===t&&D===t)return m;if(M!==t&&(B=M),D!==t){if(B===t)return D;typeof M=="string"||typeof D=="string"?(M=xi(M),D=xi(D)):(M=ey(M),D=ey(D)),B=r(M,D)}return B}}function Md(r){return Sr(function(m){return m=qt(m,Kn(Ue())),pt(function(M){var D=this;return r(m,function(B){return Jt(B,D,M)})})})}function kc(r,m){m=m===t?" ":xi(m);var M=m.length;if(M<2)return M?wd(m,r):m;var D=wd(m,cc(r/st(m)));return te(m)?Xr(Ke(D),0,r).join(""):D.slice(0,r)}function bE(r,m,M,D){var B=m&v,U=Aa(r);function Q(){for(var ee=-1,re=arguments.length,pe=-1,ge=D.length,ve=se(ge+re),Ae=this&&this!==Ln&&this instanceof Q?U:r;++pe<ge;)ve[pe]=D[pe];for(;re--;)ve[pe++]=arguments[++ee];return Jt(Ae,B?M:this,ve)}return Q}function my(r){return function(m,M,D){return D&&typeof D!="number"&&ni(m,M,D)&&(M=D=t),m=Mr(m),M===t?(M=m,m=0):M=Mr(M),D=D===t?m<M?1:-1:Mr(D),rE(m,M,D,r)}}function Sc(r){return function(m,M){return typeof m=="string"&&typeof M=="string"||(m=Ni(m),M=Ni(M)),r(m,M)}}function vy(r,m,M,D,B,U,Q,ee,re,pe){var ge=m&E,ve=ge?Q:t,Ae=ge?t:Q,Fe=ge?U:t,qe=ge?t:U;m|=ge?k:w,m&=~(ge?w:k),m&x||(m&=~(v|b));var ct=[r,m,B,Fe,ve,qe,Ae,ee,re,pe],Ge=M.apply(t,ct);return Dd(r)&&Ay(Ge,ct),Ge.placeholder=D,Ey(Ge,r,m)}function Td(r){var m=Et[r];return function(M,D){if(M=Ni(M),D=D==null?0:Qn(at(D),292),D&&Ev(M)){var B=(Lt(M)+"e").split("e"),U=m(B[0]+"e"+(+B[1]+D));return B=(Lt(U)+"e").split("e"),+(B[0]+"e"+(+B[1]-D))}return m(M)}}var wE=gs&&1/Te(new gs([,-0]))[1]==F?function(r){return new gs(r)}:Qd;function yy(r){return function(m){var M=Zn(m);return M==gt?be(m):M==ln?Le(m):Jl(m,r(m))}}function kr(r,m,M,D,B,U,Q,ee){var re=m&b;if(!re&&typeof r!="function")throw new In(f);var pe=D?D.length:0;if(pe||(m&=~(k|w),D=B=t),Q=Q===t?Q:On(at(Q),0),ee=ee===t?ee:at(ee),pe-=B?B.length:0,m&w){var ge=D,ve=B;D=B=t}var Ae=re?t:Ld(r),Fe=[r,m,M,D,B,ge,ve,U,Q,ee];if(Ae&&DE(Fe,Ae),r=Fe[0],m=Fe[1],M=Fe[2],D=Fe[3],B=Fe[4],ee=Fe[9]=Fe[9]===t?re?0:r.length:On(Fe[9]-pe,0),!ee&&m&(E|C)&&(m&=~(E|C)),!m||m==v)var qe=vE(r,m,M);else m==E||m==C?qe=yE(r,m,ee):(m==k||m==(v|k))&&!B.length?qe=bE(r,m,M,D):qe=xc.apply(t,Fe);var ct=Ae?Jv:Ay;return Ey(ct(qe,Fe),r,m)}function by(r,m,M,D){return r===t||Vi(r,fs[M])&&!Ot.call(D,M)?m:r}function wy(r,m,M,D,B,U){return sn(r)&&sn(m)&&(U.set(m,r),vc(r,m,t,wy,U),U.delete(m)),r}function xE(r){return Ra(r)?t:r}function xy(r,m,M,D,B,U){var Q=M&o,ee=r.length,re=m.length;if(ee!=re&&!(Q&&re>ee))return!1;var pe=U.get(r),ge=U.get(m);if(pe&&ge)return pe==m&&ge==r;var ve=-1,Ae=!0,Fe=M&u?new Eo:t;for(U.set(r,m),U.set(m,r);++ve<ee;){var qe=r[ve],ct=m[ve];if(D)var Ge=Q?D(ct,qe,ve,m,r,U):D(qe,ct,ve,r,m,U);if(Ge!==t){if(Ge)continue;Ae=!1;break}if(Fe){if(!hs(m,function(bt,kt){if(!Wi(Fe,kt)&&(qe===bt||B(qe,bt,M,D,U)))return Fe.push(kt)})){Ae=!1;break}}else if(!(qe===ct||B(qe,ct,M,D,U))){Ae=!1;break}}return U.delete(r),U.delete(m),Ae}function _E(r,m,M,D,B,U,Q){switch(M){case Ie:if(r.byteLength!=m.byteLength||r.byteOffset!=m.byteOffset)return!1;r=r.buffer,m=m.buffer;case Ee:return!(r.byteLength!=m.byteLength||!U(new oc(r),new oc(m)));case me:case ye:case yt:return Vi(+r,+m);case Ce:return r.name==m.name&&r.message==m.message;case Tn:case Be:return r==m+"";case gt:var ee=be;case ln:var re=D&o;if(ee||(ee=Te),r.size!=m.size&&!re)return!1;var pe=Q.get(r);if(pe)return pe==m;D|=u,Q.set(r,m);var ge=xy(ee(r),ee(m),D,B,U,Q);return Q.delete(r),ge;case We:if(ka)return ka.call(r)==ka.call(m)}return!1}function kE(r,m,M,D,B,U){var Q=M&o,ee=Ad(r),re=ee.length,pe=Ad(m),ge=pe.length;if(re!=ge&&!Q)return!1;for(var ve=re;ve--;){var Ae=ee[ve];if(!(Q?Ae in m:Ot.call(m,Ae)))return!1}var Fe=U.get(r),qe=U.get(m);if(Fe&&qe)return Fe==m&&qe==r;var ct=!0;U.set(r,m),U.set(m,r);for(var Ge=Q;++ve<re;){Ae=ee[ve];var bt=r[Ae],kt=m[Ae];if(D)var ki=Q?D(kt,bt,Ae,m,r,U):D(bt,kt,Ae,r,m,U);if(!(ki===t?bt===kt||B(bt,kt,M,D,U):ki)){ct=!1;break}Ge||(Ge=Ae=="constructor")}if(ct&&!Ge){var ii=r.constructor,Si=m.constructor;ii!=Si&&"constructor"in r&&"constructor"in m&&!(typeof ii=="function"&&ii instanceof ii&&typeof Si=="function"&&Si instanceof Si)&&(ct=!1)}return U.delete(r),U.delete(m),ct}function Sr(r){return Fd(My(r,t,Ny),r+"")}function Ad(r){return jv(r,Hn,Id)}function Ed(r){return jv(r,pi,_y)}var Ld=hc?function(r){return hc.get(r)}:Qd;function $c(r){for(var m=r.name+"",M=ms[m],D=Ot.call(ms,m)?M.length:0;D--;){var B=M[D],U=B.func;if(U==null||U==r)return B.name}return m}function ws(r){var m=Ot.call(z,"placeholder")?z:r;return m.placeholder}function Ue(){var r=z.iteratee||Yd;return r=r===Yd?Uv:r,arguments.length?r(arguments[0],arguments[1]):r}function Cc(r,m){var M=r.__data__;return LE(m)?M[typeof m=="string"?"string":"hash"]:M.map}function Rd(r){for(var m=Hn(r),M=m.length;M--;){var D=m[M],B=r[D];m[M]=[D,B,$y(B)]}return m}function Io(r,m){var M=K(r,m);return Wv(M)?M:t}function SE(r){var m=Ot.call(r,To),M=r[To];try{r[To]=t;var D=!0}catch{}var B=ic.call(r);return D&&(m?r[To]=M:delete r[To]),B}var Id=sd?function(r){return r==null?[]:(r=et(r),ci(sd(r),function(m){return Tv.call(r,m)}))}:Zd,_y=sd?function(r){for(var m=[];r;)Yn(m,Id(r)),r=sc(r);return m}:Zd,Zn=ti;(ad&&Zn(new ad(new ArrayBuffer(1)))!=Ie||wa&&Zn(new wa)!=gt||ld&&Zn(ld.resolve())!=nn||gs&&Zn(new gs)!=ln||xa&&Zn(new xa)!=Ve)&&(Zn=function(r){var m=ti(r),M=m==Pt?r.constructor:t,D=M?Oo(M):"";if(D)switch(D){case sA:return Ie;case aA:return gt;case lA:return nn;case cA:return ln;case uA:return Ve}return m});function $E(r,m,M){for(var D=-1,B=M.length;++D<B;){var U=M[D],Q=U.size;switch(U.type){case"drop":r+=Q;break;case"dropRight":m-=Q;break;case"take":m=Qn(m,r+Q);break;case"takeRight":r=On(r,m-Q);break}}return{start:r,end:m}}function CE(r){var m=r.match(Ol);return m?m[1].split(Dl):[]}function ky(r,m,M){m=Jr(m,r);for(var D=-1,B=m.length,U=!1;++D<B;){var Q=ur(m[D]);if(!(U=r!=null&&M(r,Q)))break;r=r[Q]}return U||++D!=B?U:(B=r==null?0:r.length,!!B&&Ic(B)&&$r(Q,B)&&(tt(r)||Do(r)))}function ME(r){var m=r.length,M=new r.constructor(m);return m&&typeof r[0]=="string"&&Ot.call(r,"index")&&(M.index=r.index,M.input=r.input),M}function Sy(r){return typeof r.constructor=="function"&&!Ea(r)?vs(sc(r)):{}}function TE(r,m,M){var D=r.constructor;switch(m){case Ee:return Cd(r);case me:case ye:return new D(+r);case Ie:return hE(r,M);case Ye:case Qe:case mt:case vt:case ht:case dt:case ot:case Kt:case Vn:return sy(r,M);case gt:return new D;case yt:case Be:return new D(r);case Tn:return dE(r);case ln:return new D;case We:return pE(r)}}function AE(r,m){var M=m.length;if(!M)return r;var D=M-1;return m[D]=(M>1?"& ":"")+m[D],m=m.join(M>2?", ":" "),r.replace(Fr,`{
|
1388
|
+
/* [wrapped with `+m+`] */
|
1389
|
+
`)}function EE(r){return tt(r)||Do(r)||!!(Av&&r&&r[Av])}function $r(r,m){var M=typeof r;return m=m??H,!!m&&(M=="number"||M!="symbol"&&_n.test(r))&&r>-1&&r%1==0&&r<m}function ni(r,m,M){if(!sn(M))return!1;var D=typeof m;return(D=="number"?di(M)&&$r(m,M.length):D=="string"&&m in M)?Vi(M[m],r):!1}function Od(r,m){if(tt(r))return!1;var M=typeof r;return M=="number"||M=="symbol"||M=="boolean"||r==null||_i(r)?!0:Fn.test(r)||!fr.test(r)||m!=null&&r in et(m)}function LE(r){var m=typeof r;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?r!=="__proto__":r===null}function Dd(r){var m=$c(r),M=z[m];if(typeof M!="function"||!(m in _t.prototype))return!1;if(r===M)return!0;var D=Ld(M);return!!D&&r===D[0]}function RE(r){return!!$v&&$v in r}var IE=tc?Cr:Jd;function Ea(r){var m=r&&r.constructor,M=typeof m=="function"&&m.prototype||fs;return r===M}function $y(r){return r===r&&!sn(r)}function Cy(r,m){return function(M){return M==null?!1:M[r]===m&&(m!==t||r in et(M))}}function OE(r){var m=Lc(r,function(D){return M.size===g&&M.clear(),D}),M=m.cache;return m}function DE(r,m){var M=r[1],D=m[1],B=M|D,U=B<(v|b|T),Q=D==T&&M==E||D==T&&M==L&&r[7].length<=m[8]||D==(T|L)&&m[7].length<=m[8]&&M==E;if(!(U||Q))return r;D&v&&(r[2]=m[2],B|=M&v?0:x);var ee=m[3];if(ee){var re=r[3];r[3]=re?ly(re,ee,m[4]):ee,r[4]=re?$e(r[3],s):m[4]}return ee=m[5],ee&&(re=r[5],r[5]=re?cy(re,ee,m[6]):ee,r[6]=re?$e(r[5],s):m[6]),ee=m[7],ee&&(r[7]=ee),D&T&&(r[8]=r[8]==null?m[8]:Qn(r[8],m[8])),r[9]==null&&(r[9]=m[9]),r[0]=m[0],r[1]=B,r}function NE(r){var m=[];if(r!=null)for(var M in et(r))m.push(M);return m}function FE(r){return ic.call(r)}function My(r,m,M){return m=On(m===t?r.length-1:m,0),function(){for(var D=arguments,B=-1,U=On(D.length-m,0),Q=se(U);++B<U;)Q[B]=D[m+B];B=-1;for(var ee=se(m+1);++B<m;)ee[B]=D[B];return ee[m]=M(Q),Jt(r,this,ee)}}function Ty(r,m){return m.length<2?r:Ro(r,Oi(m,0,-1))}function PE(r,m){for(var M=r.length,D=Qn(m.length,M),B=hi(r);D--;){var U=m[D];r[D]=$r(U,M)?B[U]:t}return r}function Nd(r,m){if(!(m==="constructor"&&typeof r[m]=="function")&&m!="__proto__")return r[m]}var Ay=Ly(Jv),La=XT||function(r,m){return Ln.setTimeout(r,m)},Fd=Ly(aE);function Ey(r,m,M){var D=m+"";return Fd(r,AE(D,HE(CE(D),M)))}function Ly(r){var m=0,M=0;return function(){var D=iA(),B=_-(D-M);if(M=D,B>0){if(++m>=S)return arguments[0]}else m=0;return r.apply(t,arguments)}}function Mc(r,m){var M=-1,D=r.length,B=D-1;for(m=m===t?D:m;++M<m;){var U=bd(M,B),Q=r[U];r[U]=r[M],r[M]=Q}return r.length=m,r}var Ry=OE(function(r){var m=[];return r.charCodeAt(0)===46&&m.push(""),r.replace(tr,function(M,D,B,U){m.push(B?U.replace(gr,"$1"):D||M)}),m});function ur(r){if(typeof r=="string"||_i(r))return r;var m=r+"";return m=="0"&&1/r==-F?"-0":m}function Oo(r){if(r!=null){try{return nc.call(r)}catch{}try{return r+""}catch{}}return""}function HE(r,m){return Xn(Z,function(M){var D="_."+M[0];m&M[1]&&!us(r,D)&&r.push(D)}),r.sort()}function Iy(r){if(r instanceof _t)return r.clone();var m=new Ri(r.__wrapped__,r.__chain__);return m.__actions__=hi(r.__actions__),m.__index__=r.__index__,m.__values__=r.__values__,m}function BE(r,m,M){(M?ni(r,m,M):m===t)?m=1:m=On(at(m),0);var D=r==null?0:r.length;if(!D||m<1)return[];for(var B=0,U=0,Q=se(cc(D/m));B<D;)Q[U++]=Oi(r,B,B+=m);return Q}function jE(r){for(var m=-1,M=r==null?0:r.length,D=0,B=[];++m<M;){var U=r[m];U&&(B[D++]=U)}return B}function zE(){var r=arguments.length;if(!r)return[];for(var m=se(r-1),M=arguments[0],D=r;D--;)m[D-1]=arguments[D];return Yn(tt(M)?hi(M):[M],Bn(m,1))}var WE=pt(function(r,m){return gn(r)?$a(r,Bn(m,1,gn,!0)):[]}),UE=pt(function(r,m){var M=Di(m);return gn(M)&&(M=t),gn(r)?$a(r,Bn(m,1,gn,!0),Ue(M,2)):[]}),VE=pt(function(r,m){var M=Di(m);return gn(M)&&(M=t),gn(r)?$a(r,Bn(m,1,gn,!0),t,M):[]});function qE(r,m,M){var D=r==null?0:r.length;return D?(m=M||m===t?1:at(m),Oi(r,m<0?0:m,D)):[]}function GE(r,m,M){var D=r==null?0:r.length;return D?(m=M||m===t?1:at(m),m=D-m,Oi(r,0,m<0?0:m)):[]}function YE(r,m){return r&&r.length?bc(r,Ue(m,3),!0,!0):[]}function KE(r,m){return r&&r.length?bc(r,Ue(m,3),!0):[]}function QE(r,m,M,D){var B=r==null?0:r.length;return B?(M&&typeof M!="number"&&ni(r,m,M)&&(M=0,D=B),zA(r,m,M,D)):[]}function Oy(r,m,M){var D=r==null?0:r.length;if(!D)return-1;var B=M==null?0:at(M);return B<0&&(B=On(D+B,0)),Co(r,Ue(m,3),B)}function Dy(r,m,M){var D=r==null?0:r.length;if(!D)return-1;var B=D-1;return M!==t&&(B=at(M),B=M<0?On(D+B,0):Qn(B,D-1)),Co(r,Ue(m,3),B,!0)}function Ny(r){var m=r==null?0:r.length;return m?Bn(r,1):[]}function ZE(r){var m=r==null?0:r.length;return m?Bn(r,F):[]}function JE(r,m){var M=r==null?0:r.length;return M?(m=m===t?1:at(m),Bn(r,m)):[]}function XE(r){for(var m=-1,M=r==null?0:r.length,D={};++m<M;){var B=r[m];D[B[0]]=B[1]}return D}function Fy(r){return r&&r.length?r[0]:t}function eL(r,m,M){var D=r==null?0:r.length;if(!D)return-1;var B=M==null?0:at(M);return B<0&&(B=On(D+B,0)),br(r,m,B)}function tL(r){var m=r==null?0:r.length;return m?Oi(r,0,-1):[]}var nL=pt(function(r){var m=qt(r,Sd);return m.length&&m[0]===r[0]?fd(m):[]}),iL=pt(function(r){var m=Di(r),M=qt(r,Sd);return m===Di(M)?m=t:M.pop(),M.length&&M[0]===r[0]?fd(M,Ue(m,2)):[]}),rL=pt(function(r){var m=Di(r),M=qt(r,Sd);return m=typeof m=="function"?m:t,m&&M.pop(),M.length&&M[0]===r[0]?fd(M,t,m):[]});function oL(r,m){return r==null?"":tA.call(r,m)}function Di(r){var m=r==null?0:r.length;return m?r[m-1]:t}function sL(r,m,M){var D=r==null?0:r.length;if(!D)return-1;var B=D;return M!==t&&(B=at(M),B=B<0?On(D+B,0):Qn(B,D-1)),m===m?It(r,m,B):Co(r,fa,B,!0)}function aL(r,m){return r&&r.length?Yv(r,at(m)):t}var lL=pt(Py);function Py(r,m){return r&&r.length&&m&&m.length?yd(r,m):r}function cL(r,m,M){return r&&r.length&&m&&m.length?yd(r,m,Ue(M,2)):r}function uL(r,m,M){return r&&r.length&&m&&m.length?yd(r,m,t,M):r}var hL=Sr(function(r,m){var M=r==null?0:r.length,D=ud(r,m);return Zv(r,qt(m,function(B){return $r(B,M)?+B:B}).sort(ay)),D});function dL(r,m){var M=[];if(!(r&&r.length))return M;var D=-1,B=[],U=r.length;for(m=Ue(m,3);++D<U;){var Q=r[D];m(Q,D,r)&&(M.push(Q),B.push(D))}return Zv(r,B),M}function Pd(r){return r==null?r:oA.call(r)}function pL(r,m,M){var D=r==null?0:r.length;return D?(M&&typeof M!="number"&&ni(r,m,M)?(m=0,M=D):(m=m==null?0:at(m),M=M===t?D:at(M)),Oi(r,m,M)):[]}function fL(r,m){return yc(r,m)}function gL(r,m,M){return xd(r,m,Ue(M,2))}function mL(r,m){var M=r==null?0:r.length;if(M){var D=yc(r,m);if(D<M&&Vi(r[D],m))return D}return-1}function vL(r,m){return yc(r,m,!0)}function yL(r,m,M){return xd(r,m,Ue(M,2),!0)}function bL(r,m){var M=r==null?0:r.length;if(M){var D=yc(r,m,!0)-1;if(Vi(r[D],m))return D}return-1}function wL(r){return r&&r.length?Xv(r):[]}function xL(r,m){return r&&r.length?Xv(r,Ue(m,2)):[]}function _L(r){var m=r==null?0:r.length;return m?Oi(r,1,m):[]}function kL(r,m,M){return r&&r.length?(m=M||m===t?1:at(m),Oi(r,0,m<0?0:m)):[]}function SL(r,m,M){var D=r==null?0:r.length;return D?(m=M||m===t?1:at(m),m=D-m,Oi(r,m<0?0:m,D)):[]}function $L(r,m){return r&&r.length?bc(r,Ue(m,3),!1,!0):[]}function CL(r,m){return r&&r.length?bc(r,Ue(m,3)):[]}var ML=pt(function(r){return Zr(Bn(r,1,gn,!0))}),TL=pt(function(r){var m=Di(r);return gn(m)&&(m=t),Zr(Bn(r,1,gn,!0),Ue(m,2))}),AL=pt(function(r){var m=Di(r);return m=typeof m=="function"?m:t,Zr(Bn(r,1,gn,!0),t,m)});function EL(r){return r&&r.length?Zr(r):[]}function LL(r,m){return r&&r.length?Zr(r,Ue(m,2)):[]}function RL(r,m){return m=typeof m=="function"?m:t,r&&r.length?Zr(r,t,m):[]}function Hd(r){if(!(r&&r.length))return[];var m=0;return r=ci(r,function(M){if(gn(M))return m=On(M.length,m),!0}),un(m,function(M){return qt(r,ma(M))})}function Hy(r,m){if(!(r&&r.length))return[];var M=Hd(r);return m==null?M:qt(M,function(D){return Jt(m,t,D)})}var IL=pt(function(r,m){return gn(r)?$a(r,m):[]}),OL=pt(function(r){return kd(ci(r,gn))}),DL=pt(function(r){var m=Di(r);return gn(m)&&(m=t),kd(ci(r,gn),Ue(m,2))}),NL=pt(function(r){var m=Di(r);return m=typeof m=="function"?m:t,kd(ci(r,gn),t,m)}),FL=pt(Hd);function PL(r,m){return iy(r||[],m||[],Sa)}function HL(r,m){return iy(r||[],m||[],Ta)}var BL=pt(function(r){var m=r.length,M=m>1?r[m-1]:t;return M=typeof M=="function"?(r.pop(),M):t,Hy(r,M)});function By(r){var m=z(r);return m.__chain__=!0,m}function jL(r,m){return m(r),r}function Tc(r,m){return m(r)}var zL=Sr(function(r){var m=r.length,M=m?r[0]:0,D=this.__wrapped__,B=function(U){return ud(U,r)};return m>1||this.__actions__.length||!(D instanceof _t)||!$r(M)?this.thru(B):(D=D.slice(M,+M+(m?1:0)),D.__actions__.push({func:Tc,args:[B],thisArg:t}),new Ri(D,this.__chain__).thru(function(U){return m&&!U.length&&U.push(t),U}))});function WL(){return By(this)}function UL(){return new Ri(this.value(),this.__chain__)}function VL(){this.__values__===t&&(this.__values__=eb(this.value()));var r=this.__index__>=this.__values__.length,m=r?t:this.__values__[this.__index__++];return{done:r,value:m}}function qL(){return this}function GL(r){for(var m,M=this;M instanceof pc;){var D=Iy(M);D.__index__=0,D.__values__=t,m?B.__wrapped__=D:m=D;var B=D;M=M.__wrapped__}return B.__wrapped__=r,m}function YL(){var r=this.__wrapped__;if(r instanceof _t){var m=r;return this.__actions__.length&&(m=new _t(this)),m=m.reverse(),m.__actions__.push({func:Tc,args:[Pd],thisArg:t}),new Ri(m,this.__chain__)}return this.thru(Pd)}function KL(){return ny(this.__wrapped__,this.__actions__)}var QL=wc(function(r,m,M){Ot.call(r,M)?++r[M]:_r(r,M,1)});function ZL(r,m,M){var D=tt(r)?qr:jA;return M&&ni(r,m,M)&&(m=t),D(r,Ue(m,3))}function JL(r,m){var M=tt(r)?ci:Hv;return M(r,Ue(m,3))}var XL=py(Oy),eR=py(Dy);function tR(r,m){return Bn(Ac(r,m),1)}function nR(r,m){return Bn(Ac(r,m),F)}function iR(r,m,M){return M=M===t?1:at(M),Bn(Ac(r,m),M)}function jy(r,m){var M=tt(r)?Xn:Qr;return M(r,Ue(m,3))}function zy(r,m){var M=tt(r)?Ql:Pv;return M(r,Ue(m,3))}var rR=wc(function(r,m,M){Ot.call(r,M)?r[M].push(m):_r(r,M,[m])});function oR(r,m,M,D){r=di(r)?r:_s(r),M=M&&!D?at(M):0;var B=r.length;return M<0&&(M=On(B+M,0)),Oc(r)?M<=B&&r.indexOf(m,M)>-1:!!B&&br(r,m,M)>-1}var sR=pt(function(r,m,M){var D=-1,B=typeof m=="function",U=di(r)?se(r.length):[];return Qr(r,function(Q){U[++D]=B?Jt(m,Q,M):Ca(Q,m,M)}),U}),aR=wc(function(r,m,M){_r(r,M,m)});function Ac(r,m){var M=tt(r)?qt:Vv;return M(r,Ue(m,3))}function lR(r,m,M,D){return r==null?[]:(tt(m)||(m=m==null?[]:[m]),M=D?t:M,tt(M)||(M=M==null?[]:[M]),Kv(r,m,M))}var cR=wc(function(r,m,M){r[M?0:1].push(m)},function(){return[[],[]]});function uR(r,m,M){var D=tt(r)?Li:va,B=arguments.length<3;return D(r,Ue(m,4),M,B,Qr)}function hR(r,m,M){var D=tt(r)?$o:va,B=arguments.length<3;return D(r,Ue(m,4),M,B,Pv)}function dR(r,m){var M=tt(r)?ci:Hv;return M(r,Rc(Ue(m,3)))}function pR(r){var m=tt(r)?Ov:oE;return m(r)}function fR(r,m,M){(M?ni(r,m,M):m===t)?m=1:m=at(m);var D=tt(r)?NA:sE;return D(r,m)}function gR(r){var m=tt(r)?FA:lE;return m(r)}function mR(r){if(r==null)return 0;if(di(r))return Oc(r)?st(r):r.length;var m=Zn(r);return m==gt||m==ln?r.size:md(r).length}function vR(r,m,M){var D=tt(r)?hs:cE;return M&&ni(r,m,M)&&(m=t),D(r,Ue(m,3))}var yR=pt(function(r,m){if(r==null)return[];var M=m.length;return M>1&&ni(r,m[0],m[1])?m=[]:M>2&&ni(m[0],m[1],m[2])&&(m=[m[0]]),Kv(r,Bn(m,1),[])}),Ec=JT||function(){return Ln.Date.now()};function bR(r,m){if(typeof m!="function")throw new In(f);return r=at(r),function(){if(--r<1)return m.apply(this,arguments)}}function Wy(r,m,M){return m=M?t:m,m=r&&m==null?r.length:m,kr(r,T,t,t,t,t,m)}function Uy(r,m){var M;if(typeof m!="function")throw new In(f);return r=at(r),function(){return--r>0&&(M=m.apply(this,arguments)),r<=1&&(m=t),M}}var Bd=pt(function(r,m,M){var D=v;if(M.length){var B=$e(M,ws(Bd));D|=k}return kr(r,D,m,M,B)}),Vy=pt(function(r,m,M){var D=v|b;if(M.length){var B=$e(M,ws(Vy));D|=k}return kr(m,D,r,M,B)});function qy(r,m,M){m=M?t:m;var D=kr(r,E,t,t,t,t,t,m);return D.placeholder=qy.placeholder,D}function Gy(r,m,M){m=M?t:m;var D=kr(r,C,t,t,t,t,t,m);return D.placeholder=Gy.placeholder,D}function Yy(r,m,M){var D,B,U,Q,ee,re,pe=0,ge=!1,ve=!1,Ae=!0;if(typeof r!="function")throw new In(f);m=Ni(m)||0,sn(M)&&(ge=!!M.leading,ve="maxWait"in M,U=ve?On(Ni(M.maxWait)||0,m):U,Ae="trailing"in M?!!M.trailing:Ae);function Fe(mn){var qi=D,Tr=B;return D=B=t,pe=mn,Q=r.apply(Tr,qi),Q}function qe(mn){return pe=mn,ee=La(bt,m),ge?Fe(mn):Q}function ct(mn){var qi=mn-re,Tr=mn-pe,pb=m-qi;return ve?Qn(pb,U-Tr):pb}function Ge(mn){var qi=mn-re,Tr=mn-pe;return re===t||qi>=m||qi<0||ve&&Tr>=U}function bt(){var mn=Ec();if(Ge(mn))return kt(mn);ee=La(bt,ct(mn))}function kt(mn){return ee=t,Ae&&D?Fe(mn):(D=B=t,Q)}function ki(){ee!==t&&ry(ee),pe=0,D=re=B=ee=t}function ii(){return ee===t?Q:kt(Ec())}function Si(){var mn=Ec(),qi=Ge(mn);if(D=arguments,B=this,re=mn,qi){if(ee===t)return qe(re);if(ve)return ry(ee),ee=La(bt,m),Fe(re)}return ee===t&&(ee=La(bt,m)),Q}return Si.cancel=ki,Si.flush=ii,Si}var wR=pt(function(r,m){return Fv(r,1,m)}),xR=pt(function(r,m,M){return Fv(r,Ni(m)||0,M)});function _R(r){return kr(r,I)}function Lc(r,m){if(typeof r!="function"||m!=null&&typeof m!="function")throw new In(f);var M=function(){var D=arguments,B=m?m.apply(this,D):D[0],U=M.cache;if(U.has(B))return U.get(B);var Q=r.apply(this,D);return M.cache=U.set(B,Q)||U,Q};return M.cache=new(Lc.Cache||xr),M}Lc.Cache=xr;function Rc(r){if(typeof r!="function")throw new In(f);return function(){var m=arguments;switch(m.length){case 0:return!r.call(this);case 1:return!r.call(this,m[0]);case 2:return!r.call(this,m[0],m[1]);case 3:return!r.call(this,m[0],m[1],m[2])}return!r.apply(this,m)}}function kR(r){return Uy(2,r)}var SR=uE(function(r,m){m=m.length==1&&tt(m[0])?qt(m[0],Kn(Ue())):qt(Bn(m,1),Kn(Ue()));var M=m.length;return pt(function(D){for(var B=-1,U=Qn(D.length,M);++B<U;)D[B]=m[B].call(this,D[B]);return Jt(r,this,D)})}),jd=pt(function(r,m){var M=$e(m,ws(jd));return kr(r,k,t,m,M)}),Ky=pt(function(r,m){var M=$e(m,ws(Ky));return kr(r,w,t,m,M)}),$R=Sr(function(r,m){return kr(r,L,t,t,t,m)});function CR(r,m){if(typeof r!="function")throw new In(f);return m=m===t?m:at(m),pt(r,m)}function MR(r,m){if(typeof r!="function")throw new In(f);return m=m==null?0:On(at(m),0),pt(function(M){var D=M[m],B=Xr(M,0,m);return D&&Yn(B,D),Jt(r,this,B)})}function TR(r,m,M){var D=!0,B=!0;if(typeof r!="function")throw new In(f);return sn(M)&&(D="leading"in M?!!M.leading:D,B="trailing"in M?!!M.trailing:B),Yy(r,m,{leading:D,maxWait:m,trailing:B})}function AR(r){return Wy(r,1)}function ER(r,m){return jd($d(m),r)}function LR(){if(!arguments.length)return[];var r=arguments[0];return tt(r)?r:[r]}function RR(r){return Ii(r,c)}function IR(r,m){return m=typeof m=="function"?m:t,Ii(r,c,m)}function OR(r){return Ii(r,l|c)}function DR(r,m){return m=typeof m=="function"?m:t,Ii(r,l|c,m)}function NR(r,m){return m==null||Nv(r,m,Hn(m))}function Vi(r,m){return r===m||r!==r&&m!==m}var FR=Sc(pd),PR=Sc(function(r,m){return r>=m}),Do=zv(function(){return arguments}())?zv:function(r){return hn(r)&&Ot.call(r,"callee")&&!Tv.call(r,"callee")},tt=se.isArray,HR=Yl?Kn(Yl):GA;function di(r){return r!=null&&Ic(r.length)&&!Cr(r)}function gn(r){return hn(r)&&di(r)}function BR(r){return r===!0||r===!1||hn(r)&&ti(r)==me}var eo=eA||Jd,jR=Ei?Kn(Ei):YA;function zR(r){return hn(r)&&r.nodeType===1&&!Ra(r)}function WR(r){if(r==null)return!0;if(di(r)&&(tt(r)||typeof r=="string"||typeof r.splice=="function"||eo(r)||xs(r)||Do(r)))return!r.length;var m=Zn(r);if(m==gt||m==ln)return!r.size;if(Ea(r))return!md(r).length;for(var M in r)if(Ot.call(r,M))return!1;return!0}function UR(r,m){return Ma(r,m)}function VR(r,m,M){M=typeof M=="function"?M:t;var D=M?M(r,m):t;return D===t?Ma(r,m,t,M):!!D}function zd(r){if(!hn(r))return!1;var m=ti(r);return m==Ce||m==fe||typeof r.message=="string"&&typeof r.name=="string"&&!Ra(r)}function qR(r){return typeof r=="number"&&Ev(r)}function Cr(r){if(!sn(r))return!1;var m=ti(r);return m==lt||m==Ut||m==ae||m==er}function Qy(r){return typeof r=="number"&&r==at(r)}function Ic(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=H}function sn(r){var m=typeof r;return r!=null&&(m=="object"||m=="function")}function hn(r){return r!=null&&typeof r=="object"}var Zy=zi?Kn(zi):QA;function GR(r,m){return r===m||gd(r,m,Rd(m))}function YR(r,m,M){return M=typeof M=="function"?M:t,gd(r,m,Rd(m),M)}function KR(r){return Jy(r)&&r!=+r}function QR(r){if(IE(r))throw new He(h);return Wv(r)}function ZR(r){return r===null}function JR(r){return r==null}function Jy(r){return typeof r=="number"||hn(r)&&ti(r)==yt}function Ra(r){if(!hn(r)||ti(r)!=Pt)return!1;var m=sc(r);if(m===null)return!0;var M=Ot.call(m,"constructor")&&m.constructor;return typeof M=="function"&&M instanceof M&&nc.call(M)==YT}var Wd=ar?Kn(ar):ZA;function XR(r){return Qy(r)&&r>=-H&&r<=H}var Xy=yr?Kn(yr):JA;function Oc(r){return typeof r=="string"||!tt(r)&&hn(r)&&ti(r)==Be}function _i(r){return typeof r=="symbol"||hn(r)&&ti(r)==We}var xs=Kl?Kn(Kl):XA;function e2(r){return r===t}function t2(r){return hn(r)&&Zn(r)==Ve}function n2(r){return hn(r)&&ti(r)==ce}var i2=Sc(vd),r2=Sc(function(r,m){return r<=m});function eb(r){if(!r)return[];if(di(r))return Oc(r)?Ke(r):hi(r);if(ba&&r[ba])return de(r[ba]());var m=Zn(r),M=m==gt?be:m==ln?Te:_s;return M(r)}function Mr(r){if(!r)return r===0?r:0;if(r=Ni(r),r===F||r===-F){var m=r<0?-1:1;return m*W}return r===r?r:0}function at(r){var m=Mr(r),M=m%1;return m===m?M?m-M:m:0}function tb(r){return r?Lo(at(r),0,q):0}function Ni(r){if(typeof r=="number")return r;if(_i(r))return V;if(sn(r)){var m=typeof r.valueOf=="function"?r.valueOf():r;r=sn(m)?m+"":m}if(typeof r!="string")return r===0?r:+r;r=rn(r);var M=ir.test(r);return M||xn.test(r)?Ht(r.slice(2),M?2:8):Nl.test(r)?V:+r}function nb(r){return cr(r,pi(r))}function o2(r){return r?Lo(at(r),-H,H):r===0?r:0}function Lt(r){return r==null?"":xi(r)}var s2=ys(function(r,m){if(Ea(m)||di(m)){cr(m,Hn(m),r);return}for(var M in m)Ot.call(m,M)&&Sa(r,M,m[M])}),ib=ys(function(r,m){cr(m,pi(m),r)}),Dc=ys(function(r,m,M,D){cr(m,pi(m),r,D)}),a2=ys(function(r,m,M,D){cr(m,Hn(m),r,D)}),l2=Sr(ud);function c2(r,m){var M=vs(r);return m==null?M:Dv(M,m)}var u2=pt(function(r,m){r=et(r);var M=-1,D=m.length,B=D>2?m[2]:t;for(B&&ni(m[0],m[1],B)&&(D=1);++M<D;)for(var U=m[M],Q=pi(U),ee=-1,re=Q.length;++ee<re;){var pe=Q[ee],ge=r[pe];(ge===t||Vi(ge,fs[pe])&&!Ot.call(r,pe))&&(r[pe]=U[pe])}return r}),h2=pt(function(r){return r.push(t,wy),Jt(rb,t,r)});function d2(r,m){return pa(r,Ue(m,3),lr)}function p2(r,m){return pa(r,Ue(m,3),dd)}function f2(r,m){return r==null?r:hd(r,Ue(m,3),pi)}function g2(r,m){return r==null?r:Bv(r,Ue(m,3),pi)}function m2(r,m){return r&&lr(r,Ue(m,3))}function v2(r,m){return r&&dd(r,Ue(m,3))}function y2(r){return r==null?[]:mc(r,Hn(r))}function b2(r){return r==null?[]:mc(r,pi(r))}function Ud(r,m,M){var D=r==null?t:Ro(r,m);return D===t?M:D}function w2(r,m){return r!=null&&ky(r,m,WA)}function Vd(r,m){return r!=null&&ky(r,m,UA)}var x2=gy(function(r,m,M){m!=null&&typeof m.toString!="function"&&(m=ic.call(m)),r[m]=M},Gd(fi)),_2=gy(function(r,m,M){m!=null&&typeof m.toString!="function"&&(m=ic.call(m)),Ot.call(r,m)?r[m].push(M):r[m]=[M]},Ue),k2=pt(Ca);function Hn(r){return di(r)?Iv(r):md(r)}function pi(r){return di(r)?Iv(r,!0):eE(r)}function S2(r,m){var M={};return m=Ue(m,3),lr(r,function(D,B,U){_r(M,m(D,B,U),D)}),M}function $2(r,m){var M={};return m=Ue(m,3),lr(r,function(D,B,U){_r(M,B,m(D,B,U))}),M}var C2=ys(function(r,m,M){vc(r,m,M)}),rb=ys(function(r,m,M,D){vc(r,m,M,D)}),M2=Sr(function(r,m){var M={};if(r==null)return M;var D=!1;m=qt(m,function(U){return U=Jr(U,r),D||(D=U.length>1),U}),cr(r,Ed(r),M),D&&(M=Ii(M,l|a|c,xE));for(var B=m.length;B--;)_d(M,m[B]);return M});function T2(r,m){return ob(r,Rc(Ue(m)))}var A2=Sr(function(r,m){return r==null?{}:nE(r,m)});function ob(r,m){if(r==null)return{};var M=qt(Ed(r),function(D){return[D]});return m=Ue(m),Qv(r,M,function(D,B){return m(D,B[0])})}function E2(r,m,M){m=Jr(m,r);var D=-1,B=m.length;for(B||(B=1,r=t);++D<B;){var U=r==null?t:r[ur(m[D])];U===t&&(D=B,U=M),r=Cr(U)?U.call(r):U}return r}function L2(r,m,M){return r==null?r:Ta(r,m,M)}function R2(r,m,M,D){return D=typeof D=="function"?D:t,r==null?r:Ta(r,m,M,D)}var sb=yy(Hn),ab=yy(pi);function I2(r,m,M){var D=tt(r),B=D||eo(r)||xs(r);if(m=Ue(m,4),M==null){var U=r&&r.constructor;B?M=D?new U:[]:sn(r)?M=Cr(U)?vs(sc(r)):{}:M={}}return(B?Xn:lr)(r,function(Q,ee,re){return m(M,Q,ee,re)}),M}function O2(r,m){return r==null?!0:_d(r,m)}function D2(r,m,M){return r==null?r:ty(r,m,$d(M))}function N2(r,m,M,D){return D=typeof D=="function"?D:t,r==null?r:ty(r,m,$d(M),D)}function _s(r){return r==null?[]:Mo(r,Hn(r))}function F2(r){return r==null?[]:Mo(r,pi(r))}function P2(r,m,M){return M===t&&(M=m,m=t),M!==t&&(M=Ni(M),M=M===M?M:0),m!==t&&(m=Ni(m),m=m===m?m:0),Lo(Ni(r),m,M)}function H2(r,m,M){return m=Mr(m),M===t?(M=m,m=0):M=Mr(M),r=Ni(r),VA(r,m,M)}function B2(r,m,M){if(M&&typeof M!="boolean"&&ni(r,m,M)&&(m=M=t),M===t&&(typeof m=="boolean"?(M=m,m=t):typeof r=="boolean"&&(M=r,r=t)),r===t&&m===t?(r=0,m=1):(r=Mr(r),m===t?(m=r,r=0):m=Mr(m)),r>m){var D=r;r=m,m=D}if(M||r%1||m%1){var B=Lv();return Qn(r+B*(m-r+Sn("1e-"+((B+"").length-1))),m)}return bd(r,m)}var j2=bs(function(r,m,M){return m=m.toLowerCase(),r+(M?lb(m):m)});function lb(r){return qd(Lt(r).toLowerCase())}function cb(r){return r=Lt(r),r&&r.replace(ts,P).replace(Wr,"")}function z2(r,m,M){r=Lt(r),m=xi(m);var D=r.length;M=M===t?D:Lo(at(M),0,D);var B=M;return M-=m.length,M>=0&&r.slice(M,B)==m}function W2(r){return r=Lt(r),r&&Qh.test(r)?r.replace(Il,j):r}function U2(r){return r=Lt(r),r&&Dr.test(r)?r.replace(nr,"\\$&"):r}var V2=bs(function(r,m,M){return r+(M?"-":"")+m.toLowerCase()}),q2=bs(function(r,m,M){return r+(M?" ":"")+m.toLowerCase()}),G2=dy("toLowerCase");function Y2(r,m,M){r=Lt(r),m=at(m);var D=m?st(r):0;if(!m||D>=m)return r;var B=(m-D)/2;return kc(uc(B),M)+r+kc(cc(B),M)}function K2(r,m,M){r=Lt(r),m=at(m);var D=m?st(r):0;return m&&D<m?r+kc(m-D,M):r}function Q2(r,m,M){r=Lt(r),m=at(m);var D=m?st(r):0;return m&&D<m?kc(m-D,M)+r:r}function Z2(r,m,M){return M||m==null?m=0:m&&(m=+m),rA(Lt(r).replace(qn,""),m||0)}function J2(r,m,M){return(M?ni(r,m,M):m===t)?m=1:m=at(m),wd(Lt(r),m)}function X2(){var r=arguments,m=Lt(r[0]);return r.length<3?m:m.replace(r[1],r[2])}var eI=bs(function(r,m,M){return r+(M?"_":"")+m.toLowerCase()});function tI(r,m,M){return M&&typeof M!="number"&&ni(r,m,M)&&(m=M=t),M=M===t?q:M>>>0,M?(r=Lt(r),r&&(typeof m=="string"||m!=null&&!Wd(m))&&(m=xi(m),!m&&te(r))?Xr(Ke(r),0,M):r.split(m,M)):[]}var nI=bs(function(r,m,M){return r+(M?" ":"")+qd(m)});function iI(r,m,M){return r=Lt(r),M=M==null?0:Lo(at(M),0,r.length),m=xi(m),r.slice(M,M+m.length)==m}function rI(r,m,M){var D=z.templateSettings;M&&ni(r,m,M)&&(m=t),r=Lt(r),m=Dc({},m,D,by);var B=Dc({},m.imports,D.imports,by),U=Hn(B),Q=Mo(B,U),ee,re,pe=0,ge=m.interpolate||Gn,ve="__p += '",Ae=Rn((m.escape||Gn).source+"|"+ge.source+"|"+(ge===je?td:Gn).source+"|"+(m.evaluate||Gn).source+"|$","g"),Fe="//# sourceURL="+(Ot.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ql+"]")+`
|
1390
|
+
`;r.replace(Ae,function(Ge,bt,kt,ki,ii,Si){return kt||(kt=ki),ve+=r.slice(pe,Si).replace(bo,Y),bt&&(ee=!0,ve+=`' +
|
1391
|
+
__e(`+bt+`) +
|
1392
|
+
'`),ii&&(re=!0,ve+=`';
|
1393
|
+
`+ii+`;
|
1394
|
+
__p += '`),kt&&(ve+=`' +
|
1395
|
+
((__t = (`+kt+`)) == null ? '' : __t) +
|
1396
|
+
'`),pe=Si+Ge.length,Ge}),ve+=`';
|
1397
|
+
`;var qe=Ot.call(m,"variable")&&m.variable;if(!qe)ve=`with (obj) {
|
1398
|
+
`+ve+`
|
1399
|
+
}
|
1400
|
+
`;else if(ed.test(qe))throw new He(y);ve=(re?ve.replace(pr,""):ve).replace(ai,"$1").replace(Ys,"$1;"),ve="function("+(qe||"obj")+`) {
|
1401
|
+
`+(qe?"":`obj || (obj = {});
|
1402
|
+
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(re?`, __j = Array.prototype.join;
|
1403
|
+
function print() { __p += __j.call(arguments, '') }
|
1404
|
+
`:`;
|
1405
|
+
`)+ve+`return __p
|
1406
|
+
}`;var ct=hb(function(){return Je(U,Fe+"return "+ve).apply(t,Q)});if(ct.source=ve,zd(ct))throw ct;return ct}function oI(r){return Lt(r).toLowerCase()}function sI(r){return Lt(r).toUpperCase()}function aI(r,m,M){if(r=Lt(r),r&&(M||m===t))return rn(r);if(!r||!(m=xi(m)))return r;var D=Ke(r),B=Ke(m),U=Xl(D,B),Q=ec(D,B)+1;return Xr(D,U,Q).join("")}function lI(r,m,M){if(r=Lt(r),r&&(M||m===t))return r.slice(0,Xe(r)+1);if(!r||!(m=xi(m)))return r;var D=Ke(r),B=ec(D,Ke(m))+1;return Xr(D,0,B).join("")}function cI(r,m,M){if(r=Lt(r),r&&(M||m===t))return r.replace(qn,"");if(!r||!(m=xi(m)))return r;var D=Ke(r),B=Xl(D,Ke(m));return Xr(D,B).join("")}function uI(r,m){var M=A,D=N;if(sn(m)){var B="separator"in m?m.separator:B;M="length"in m?at(m.length):M,D="omission"in m?xi(m.omission):D}r=Lt(r);var U=r.length;if(te(r)){var Q=Ke(r);U=Q.length}if(M>=U)return r;var ee=M-st(D);if(ee<1)return D;var re=Q?Xr(Q,0,ee).join(""):r.slice(0,ee);if(B===t)return re+D;if(Q&&(ee+=re.length-ee),Wd(B)){if(r.slice(ee).search(B)){var pe,ge=re;for(B.global||(B=Rn(B.source,Lt(Pr.exec(B))+"g")),B.lastIndex=0;pe=B.exec(ge);)var ve=pe.index;re=re.slice(0,ve===t?ee:ve)}}else if(r.indexOf(xi(B),ee)!=ee){var Ae=re.lastIndexOf(B);Ae>-1&&(re=re.slice(0,Ae))}return re+D}function hI(r){return r=Lt(r),r&&Kh.test(r)?r.replace(Ks,Ne):r}var dI=bs(function(r,m,M){return r+(M?" ":"")+m.toUpperCase()}),qd=dy("toUpperCase");function ub(r,m,M){return r=Lt(r),m=M?t:m,m===t?oe(r)?Xt(r):ds(r):r.match(m)||[]}var hb=pt(function(r,m){try{return Jt(r,t,m)}catch(M){return zd(M)?M:new He(M)}}),pI=Sr(function(r,m){return Xn(m,function(M){M=ur(M),_r(r,M,Bd(r[M],r))}),r});function fI(r){var m=r==null?0:r.length,M=Ue();return r=m?qt(r,function(D){if(typeof D[1]!="function")throw new In(f);return[M(D[0]),D[1]]}):[],pt(function(D){for(var B=-1;++B<m;){var U=r[B];if(Jt(U[0],this,D))return Jt(U[1],this,D)}})}function gI(r){return BA(Ii(r,l))}function Gd(r){return function(){return r}}function mI(r,m){return r==null||r!==r?m:r}var vI=fy(),yI=fy(!0);function fi(r){return r}function Yd(r){return Uv(typeof r=="function"?r:Ii(r,l))}function bI(r){return qv(Ii(r,l))}function wI(r,m){return Gv(r,Ii(m,l))}var xI=pt(function(r,m){return function(M){return Ca(M,r,m)}}),_I=pt(function(r,m){return function(M){return Ca(r,M,m)}});function Kd(r,m,M){var D=Hn(m),B=mc(m,D);M==null&&!(sn(m)&&(B.length||!D.length))&&(M=m,m=r,r=this,B=mc(m,Hn(m)));var U=!(sn(M)&&"chain"in M)||!!M.chain,Q=Cr(r);return Xn(B,function(ee){var re=m[ee];r[ee]=re,Q&&(r.prototype[ee]=function(){var pe=this.__chain__;if(U||pe){var ge=r(this.__wrapped__),ve=ge.__actions__=hi(this.__actions__);return ve.push({func:re,args:arguments,thisArg:r}),ge.__chain__=pe,ge}return re.apply(r,Yn([this.value()],arguments))})}),r}function kI(){return Ln._===this&&(Ln._=KT),this}function Qd(){}function SI(r){return r=at(r),pt(function(m){return Yv(m,r)})}var $I=Md(qt),CI=Md(qr),MI=Md(hs);function db(r){return Od(r)?ma(ur(r)):iE(r)}function TI(r){return function(m){return r==null?t:Ro(r,m)}}var AI=my(),EI=my(!0);function Zd(){return[]}function Jd(){return!1}function LI(){return{}}function RI(){return""}function II(){return!0}function OI(r,m){if(r=at(r),r<1||r>H)return[];var M=q,D=Qn(r,q);m=Ue(m),r-=q;for(var B=un(D,m);++M<r;)m(M);return B}function DI(r){return tt(r)?qt(r,ur):_i(r)?[r]:hi(Ry(Lt(r)))}function NI(r){var m=++GT;return Lt(r)+m}var FI=_c(function(r,m){return r+m},0),PI=Td("ceil"),HI=_c(function(r,m){return r/m},1),BI=Td("floor");function jI(r){return r&&r.length?gc(r,fi,pd):t}function zI(r,m){return r&&r.length?gc(r,Ue(m,2),pd):t}function WI(r){return ga(r,fi)}function UI(r,m){return ga(r,Ue(m,2))}function VI(r){return r&&r.length?gc(r,fi,vd):t}function qI(r,m){return r&&r.length?gc(r,Ue(m,2),vd):t}var GI=_c(function(r,m){return r*m},1),YI=Td("round"),KI=_c(function(r,m){return r-m},0);function QI(r){return r&&r.length?Yr(r,fi):0}function ZI(r,m){return r&&r.length?Yr(r,Ue(m,2)):0}return z.after=bR,z.ary=Wy,z.assign=s2,z.assignIn=ib,z.assignInWith=Dc,z.assignWith=a2,z.at=l2,z.before=Uy,z.bind=Bd,z.bindAll=pI,z.bindKey=Vy,z.castArray=LR,z.chain=By,z.chunk=BE,z.compact=jE,z.concat=zE,z.cond=fI,z.conforms=gI,z.constant=Gd,z.countBy=QL,z.create=c2,z.curry=qy,z.curryRight=Gy,z.debounce=Yy,z.defaults=u2,z.defaultsDeep=h2,z.defer=wR,z.delay=xR,z.difference=WE,z.differenceBy=UE,z.differenceWith=VE,z.drop=qE,z.dropRight=GE,z.dropRightWhile=YE,z.dropWhile=KE,z.fill=QE,z.filter=JL,z.flatMap=tR,z.flatMapDeep=nR,z.flatMapDepth=iR,z.flatten=Ny,z.flattenDeep=ZE,z.flattenDepth=JE,z.flip=_R,z.flow=vI,z.flowRight=yI,z.fromPairs=XE,z.functions=y2,z.functionsIn=b2,z.groupBy=rR,z.initial=tL,z.intersection=nL,z.intersectionBy=iL,z.intersectionWith=rL,z.invert=x2,z.invertBy=_2,z.invokeMap=sR,z.iteratee=Yd,z.keyBy=aR,z.keys=Hn,z.keysIn=pi,z.map=Ac,z.mapKeys=S2,z.mapValues=$2,z.matches=bI,z.matchesProperty=wI,z.memoize=Lc,z.merge=C2,z.mergeWith=rb,z.method=xI,z.methodOf=_I,z.mixin=Kd,z.negate=Rc,z.nthArg=SI,z.omit=M2,z.omitBy=T2,z.once=kR,z.orderBy=lR,z.over=$I,z.overArgs=SR,z.overEvery=CI,z.overSome=MI,z.partial=jd,z.partialRight=Ky,z.partition=cR,z.pick=A2,z.pickBy=ob,z.property=db,z.propertyOf=TI,z.pull=lL,z.pullAll=Py,z.pullAllBy=cL,z.pullAllWith=uL,z.pullAt=hL,z.range=AI,z.rangeRight=EI,z.rearg=$R,z.reject=dR,z.remove=dL,z.rest=CR,z.reverse=Pd,z.sampleSize=fR,z.set=L2,z.setWith=R2,z.shuffle=gR,z.slice=pL,z.sortBy=yR,z.sortedUniq=wL,z.sortedUniqBy=xL,z.split=tI,z.spread=MR,z.tail=_L,z.take=kL,z.takeRight=SL,z.takeRightWhile=$L,z.takeWhile=CL,z.tap=jL,z.throttle=TR,z.thru=Tc,z.toArray=eb,z.toPairs=sb,z.toPairsIn=ab,z.toPath=DI,z.toPlainObject=nb,z.transform=I2,z.unary=AR,z.union=ML,z.unionBy=TL,z.unionWith=AL,z.uniq=EL,z.uniqBy=LL,z.uniqWith=RL,z.unset=O2,z.unzip=Hd,z.unzipWith=Hy,z.update=D2,z.updateWith=N2,z.values=_s,z.valuesIn=F2,z.without=IL,z.words=ub,z.wrap=ER,z.xor=OL,z.xorBy=DL,z.xorWith=NL,z.zip=FL,z.zipObject=PL,z.zipObjectDeep=HL,z.zipWith=BL,z.entries=sb,z.entriesIn=ab,z.extend=ib,z.extendWith=Dc,Kd(z,z),z.add=FI,z.attempt=hb,z.camelCase=j2,z.capitalize=lb,z.ceil=PI,z.clamp=P2,z.clone=RR,z.cloneDeep=OR,z.cloneDeepWith=DR,z.cloneWith=IR,z.conformsTo=NR,z.deburr=cb,z.defaultTo=mI,z.divide=HI,z.endsWith=z2,z.eq=Vi,z.escape=W2,z.escapeRegExp=U2,z.every=ZL,z.find=XL,z.findIndex=Oy,z.findKey=d2,z.findLast=eR,z.findLastIndex=Dy,z.findLastKey=p2,z.floor=BI,z.forEach=jy,z.forEachRight=zy,z.forIn=f2,z.forInRight=g2,z.forOwn=m2,z.forOwnRight=v2,z.get=Ud,z.gt=FR,z.gte=PR,z.has=w2,z.hasIn=Vd,z.head=Fy,z.identity=fi,z.includes=oR,z.indexOf=eL,z.inRange=H2,z.invoke=k2,z.isArguments=Do,z.isArray=tt,z.isArrayBuffer=HR,z.isArrayLike=di,z.isArrayLikeObject=gn,z.isBoolean=BR,z.isBuffer=eo,z.isDate=jR,z.isElement=zR,z.isEmpty=WR,z.isEqual=UR,z.isEqualWith=VR,z.isError=zd,z.isFinite=qR,z.isFunction=Cr,z.isInteger=Qy,z.isLength=Ic,z.isMap=Zy,z.isMatch=GR,z.isMatchWith=YR,z.isNaN=KR,z.isNative=QR,z.isNil=JR,z.isNull=ZR,z.isNumber=Jy,z.isObject=sn,z.isObjectLike=hn,z.isPlainObject=Ra,z.isRegExp=Wd,z.isSafeInteger=XR,z.isSet=Xy,z.isString=Oc,z.isSymbol=_i,z.isTypedArray=xs,z.isUndefined=e2,z.isWeakMap=t2,z.isWeakSet=n2,z.join=oL,z.kebabCase=V2,z.last=Di,z.lastIndexOf=sL,z.lowerCase=q2,z.lowerFirst=G2,z.lt=i2,z.lte=r2,z.max=jI,z.maxBy=zI,z.mean=WI,z.meanBy=UI,z.min=VI,z.minBy=qI,z.stubArray=Zd,z.stubFalse=Jd,z.stubObject=LI,z.stubString=RI,z.stubTrue=II,z.multiply=GI,z.nth=aL,z.noConflict=kI,z.noop=Qd,z.now=Ec,z.pad=Y2,z.padEnd=K2,z.padStart=Q2,z.parseInt=Z2,z.random=B2,z.reduce=uR,z.reduceRight=hR,z.repeat=J2,z.replace=X2,z.result=E2,z.round=YI,z.runInContext=ne,z.sample=pR,z.size=mR,z.snakeCase=eI,z.some=vR,z.sortedIndex=fL,z.sortedIndexBy=gL,z.sortedIndexOf=mL,z.sortedLastIndex=vL,z.sortedLastIndexBy=yL,z.sortedLastIndexOf=bL,z.startCase=nI,z.startsWith=iI,z.subtract=KI,z.sum=QI,z.sumBy=ZI,z.template=rI,z.times=OI,z.toFinite=Mr,z.toInteger=at,z.toLength=tb,z.toLower=oI,z.toNumber=Ni,z.toSafeInteger=o2,z.toString=Lt,z.toUpper=sI,z.trim=aI,z.trimEnd=lI,z.trimStart=cI,z.truncate=uI,z.unescape=hI,z.uniqueId=NI,z.upperCase=dI,z.upperFirst=qd,z.each=jy,z.eachRight=zy,z.first=Fy,Kd(z,function(){var r={};return lr(z,function(m,M){Ot.call(z.prototype,M)||(r[M]=m)}),r}(),{chain:!1}),z.VERSION=i,Xn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){z[r].placeholder=z}),Xn(["drop","take"],function(r,m){_t.prototype[r]=function(M){M=M===t?1:On(at(M),0);var D=this.__filtered__&&!m?new _t(this):this.clone();return D.__filtered__?D.__takeCount__=Qn(M,D.__takeCount__):D.__views__.push({size:Qn(M,q),type:r+(D.__dir__<0?"Right":"")}),D},_t.prototype[r+"Right"]=function(M){return this.reverse()[r](M).reverse()}}),Xn(["filter","map","takeWhile"],function(r,m){var M=m+1,D=M==$||M==O;_t.prototype[r]=function(B){var U=this.clone();return U.__iteratees__.push({iteratee:Ue(B,3),type:M}),U.__filtered__=U.__filtered__||D,U}}),Xn(["head","last"],function(r,m){var M="take"+(m?"Right":"");_t.prototype[r]=function(){return this[M](1).value()[0]}}),Xn(["initial","tail"],function(r,m){var M="drop"+(m?"":"Right");_t.prototype[r]=function(){return this.__filtered__?new _t(this):this[M](1)}}),_t.prototype.compact=function(){return this.filter(fi)},_t.prototype.find=function(r){return this.filter(r).head()},_t.prototype.findLast=function(r){return this.reverse().find(r)},_t.prototype.invokeMap=pt(function(r,m){return typeof r=="function"?new _t(this):this.map(function(M){return Ca(M,r,m)})}),_t.prototype.reject=function(r){return this.filter(Rc(Ue(r)))},_t.prototype.slice=function(r,m){r=at(r);var M=this;return M.__filtered__&&(r>0||m<0)?new _t(M):(r<0?M=M.takeRight(-r):r&&(M=M.drop(r)),m!==t&&(m=at(m),M=m<0?M.dropRight(-m):M.take(m-r)),M)},_t.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},_t.prototype.toArray=function(){return this.take(q)},lr(_t.prototype,function(r,m){var M=/^(?:filter|find|map|reject)|While$/.test(m),D=/^(?:head|last)$/.test(m),B=z[D?"take"+(m=="last"?"Right":""):m],U=D||/^find/.test(m);B&&(z.prototype[m]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,re=Q instanceof _t,pe=ee[0],ge=re||tt(Q),ve=function(bt){var kt=B.apply(z,Yn([bt],ee));return D&&Ae?kt[0]:kt};ge&&M&&typeof pe=="function"&&pe.length!=1&&(re=ge=!1);var Ae=this.__chain__,Fe=!!this.__actions__.length,qe=U&&!Ae,ct=re&&!Fe;if(!U&&ge){Q=ct?Q:new _t(this);var Ge=r.apply(Q,ee);return Ge.__actions__.push({func:Tc,args:[ve],thisArg:t}),new Ri(Ge,Ae)}return qe&&ct?r.apply(this,ee):(Ge=this.thru(ve),qe?D?Ge.value()[0]:Ge.value():Ge)})}),Xn(["pop","push","shift","sort","splice","unshift"],function(r){var m=wi[r],M=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",D=/^(?:pop|shift)$/.test(r);z.prototype[r]=function(){var B=arguments;if(D&&!this.__chain__){var U=this.value();return m.apply(tt(U)?U:[],B)}return this[M](function(Q){return m.apply(tt(Q)?Q:[],B)})}}),lr(_t.prototype,function(r,m){var M=z[m];if(M){var D=M.name+"";Ot.call(ms,D)||(ms[D]=[]),ms[D].push({name:m,func:M})}}),ms[xc(t,b).name]=[{name:"wrapper",func:t}],_t.prototype.clone=hA,_t.prototype.reverse=dA,_t.prototype.value=pA,z.prototype.at=zL,z.prototype.chain=WL,z.prototype.commit=UL,z.prototype.next=VL,z.prototype.plant=GL,z.prototype.reverse=YL,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=KL,z.prototype.first=z.prototype.head,ba&&(z.prototype[ba]=qL),z},jt=Bt();Pn?((Pn.exports=jt)._=jt,Ai._=jt):Ln._=jt}).call(kx)}(Ja,Ja.exports)),Ja.exports}var $x=Sx();Dn("K",Na($x)).debounce(function(){this.rebuildDisplayText()},300);var Ff={exports:{}},Pf;function Cx(){return Pf||(Pf=1,function(n,e){(function(){ace.require(["ace/mode/text"],function(t){n.exports=t})})()}(Ff)),Ff.exports}Cx();const Mx=!0,$n="u-",Tx="uplot",Ax=$n+"hz",Ex=$n+"vt",Lx=$n+"title",Rx=$n+"wrap",Ix=$n+"under",Ox=$n+"over",Dx=$n+"axis",co=$n+"off",Nx=$n+"select",Fx=$n+"cursor-x",Px=$n+"cursor-y",Hx=$n+"cursor-pt",Bx=$n+"legend",jx=$n+"live",zx=$n+"inline",Wx=$n+"series",Ux=$n+"marker",Hf=$n+"label",Vx=$n+"value",Is="width",Os="height",Ds="top",Bf="bottom",jo="left",lu="right",cu="#000",jf=cu+"0",zf="mousemove",Wf="mousedown",uu="mouseup",Uf="mouseenter",Vf="mouseleave",qf="dblclick",qx="resize",Gx="scroll",Gf="change",Xa="dppxchange",hu="--",zo=typeof window<"u",du=zo?document:null,Wo=zo?window:null,Yx=zo?navigator:null;let Ct,el;function pu(){let n=devicePixelRatio;Ct!=n&&(Ct=n,el&&mu(Gf,el,pu),el=matchMedia(`(min-resolution: ${Ct-.001}dppx) and (max-resolution: ${Ct+.001}dppx)`),uo(Gf,el,pu),Wo.dispatchEvent(new CustomEvent(Xa)))}function mi(n,e){if(e!=null){let t=n.classList;!t.contains(e)&&t.add(e)}}function fu(n,e){let t=n.classList;t.contains(e)&&t.remove(e)}function Gt(n,e,t){n.style[e]=t+"px"}function Hi(n,e,t,i){let p=du.createElement(n);return e!=null&&mi(p,e),t!=null&&t.insertBefore(p,i),p}function $i(n,e){return Hi("div",n,e)}const Yf=new WeakMap;function Qi(n,e,t,i,p){let h="translate("+e+"px,"+t+"px)",f=Yf.get(n);h!=f&&(n.style.transform=h,Yf.set(n,h),e<0||t<0||e>i||t>p?mi(n,co):fu(n,co))}const Kf=new WeakMap;function Qf(n,e,t){let i=e+t,p=Kf.get(n);i!=p&&(Kf.set(n,i),n.style.background=e,n.style.borderColor=t)}const Zf=new WeakMap;function Jf(n,e,t,i){let p=e+""+t,h=Zf.get(n);p!=h&&(Zf.set(n,p),n.style.height=t+"px",n.style.width=e+"px",n.style.marginLeft=i?-e/2+"px":0,n.style.marginTop=i?-t/2+"px":0)}const gu={passive:!0},Kx={...gu,capture:!0};function uo(n,e,t,i){e.addEventListener(n,t,i?Kx:gu)}function mu(n,e,t,i){e.removeEventListener(n,t,gu)}zo&&pu();function Bi(n,e,t,i){let p;t=t||0,i=i||e.length-1;let h=i<=2147483647;for(;i-t>1;)p=h?t+i>>1:yi((t+i)/2),e[p]<n?t=p:i=p;return n-e[t]<=e[i]-n?t:i}function Uo(n,e,t,i){for(let p=i==1?e:t;p>=e&&p<=t;p+=i)if(n[p]!=null)return p;return-1}function Qx(n,e,t,i){let p=wt,h=-wt;if(i==1)p=n[e],h=n[t];else if(i==-1)p=n[t],h=n[e];else for(let f=e;f<=t;f++){let y=n[f];y!=null&&(y<p&&(p=y),y>h&&(h=y))}return[p,h]}function Zx(n,e,t){let i=wt,p=-wt;for(let h=e;h<=t;h++){let f=n[h];f!=null&&f>0&&(f<i&&(i=f),f>p&&(p=f))}return[i,p]}function tl(n,e,t,i){let p=tg(n),h=tg(e);n==e&&(p==-1?(n*=t,e/=t):(n/=t,e*=t));let f=t==10?hr:ng,y=p==1?yi:Ci,d=h==1?Ci:yi,g=y(f(Cn(n))),s=d(f(Cn(e))),l=Vo(t,g),a=Vo(t,s);return t==10&&(g<0&&(l=Ft(l,-g)),s<0&&(a=Ft(a,-s))),i||t==2?(n=l*p,e=a*h):(n=lg(n,l),e=rl(e,a)),[n,e]}function vu(n,e,t,i){let p=tl(n,e,t,i);return n==0&&(p[0]=0),e==0&&(p[1]=0),p}const yu=.1,Xf={mode:3,pad:yu},Ns={pad:0,soft:null,mode:0},Jx={min:Ns,max:Ns};function nl(n,e,t,i){return ol(t)?eg(n,e,t):(Ns.pad=t,Ns.soft=i?0:null,Ns.mode=i?3:0,eg(n,e,Jx))}function $t(n,e){return n??e}function Xx(n,e,t){for(e=$t(e,0),t=$t(t,n.length-1);e<=t;){if(n[e]!=null)return!0;e++}return!1}function eg(n,e,t){let i=t.min,p=t.max,h=$t(i.pad,0),f=$t(p.pad,0),y=$t(i.hard,-wt),d=$t(p.hard,wt),g=$t(i.soft,wt),s=$t(p.soft,-wt),l=$t(i.mode,0),a=$t(p.mode,0),c=e-n,o=hr(c),u=zn(Cn(n),Cn(e)),v=hr(u),b=Cn(v-o);(c<1e-24||b>10)&&(c=0,(n==0||e==0)&&(c=1e-24,l==2&&g!=wt&&(h=0),a==2&&s!=-wt&&(f=0)));let x=c||u||1e3,E=hr(x),C=Vo(10,yi(E)),k=x*(c==0?n==0?.1:1:h),w=Ft(lg(n-k,C/10),24),T=n>=g&&(l==1||l==3&&w<=g||l==2&&w>=g)?g:wt,L=zn(y,w<T&&n>=T?T:Mi(T,w)),I=x*(c==0?e==0?.1:1:f),A=Ft(rl(e+I,C/10),24),N=e<=s&&(a==1||a==3&&A>=s||a==2&&A<=s)?s:-wt,S=Mi(d,A>N&&e<=N?N:zn(N,A));return L==S&&L==0&&(S=100),[L,S]}const e_=new Intl.NumberFormat(zo?Yx.language:"en-US"),bu=n=>e_.format(n),vi=Math,il=vi.PI,Cn=vi.abs,yi=vi.floor,Mn=vi.round,Ci=vi.ceil,Mi=vi.min,zn=vi.max,Vo=vi.pow,tg=vi.sign,hr=vi.log10,ng=vi.log2,t_=(n,e=1)=>vi.sinh(n)*e,wu=(n,e=1)=>vi.asinh(n/e),wt=1/0;function ig(n){return(hr((n^n>>31)-(n>>31))|0)+1}function xu(n,e,t){return Mi(zn(n,e),t)}function xt(n){return typeof n=="function"?n:()=>n}const n_=()=>{},rg=n=>n,og=(n,e)=>e,sg=n=>!0,ag=(n,e)=>n==e,i_=/\.\d*?(?=9{6,}|0{6,})/gm,ho=n=>{if(ug(n)||Ir.has(n))return n;const e=`${n}`,t=e.match(i_);if(t==null)return n;let i=t[0].length-1;if(e.indexOf("e-")!=-1){let[p,h]=e.split("e");return+`${ho(p)}e${h}`}return Ft(n,i)};function po(n,e){return ho(Ft(ho(n/e))*e)}function rl(n,e){return ho(Ci(ho(n/e))*e)}function lg(n,e){return ho(yi(ho(n/e))*e)}function Ft(n,e=0){if(ug(n))return n;let t=10**e,i=n*t*(1+Number.EPSILON);return Mn(i)/t}const Ir=new Map;function cg(n){return((""+n).split(".")[1]||"").length}function Fs(n,e,t,i){let p=[],h=i.map(cg);for(let f=e;f<t;f++){let y=Cn(f),d=Ft(Vo(n,f),y);for(let g=0;g<i.length;g++){let s=n==10?+`${i[g]}e${f}`:i[g]*d,l=(f>=0?0:y)+(f>=h[g]?0:h[g]),a=n==10?s:Ft(s,l);p.push(a),Ir.set(a,l)}}return p}const Ps={},_u=[],qo=[null,null],Or=Array.isArray,ug=Number.isInteger,r_=n=>n===void 0;function hg(n){return typeof n=="string"}function ol(n){let e=!1;if(n!=null){let t=n.constructor;e=t==null||t==Object}return e}function o_(n){return n!=null&&typeof n=="object"}const s_=Object.getPrototypeOf(Uint8Array),dg="__proto__";function Go(n,e=ol){let t;if(Or(n)){let i=n.find(p=>p!=null);if(Or(i)||e(i)){t=Array(n.length);for(let p=0;p<n.length;p++)t[p]=Go(n[p],e)}else t=n.slice()}else if(n instanceof s_)t=n.slice();else if(e(n)){t={};for(let i in n)i!=dg&&(t[i]=Go(n[i],e))}else t=n;return t}function bn(n){let e=arguments;for(let t=1;t<e.length;t++){let i=e[t];for(let p in i)p!=dg&&(ol(n[p])?bn(n[p],Go(i[p])):n[p]=Go(i[p]))}return n}const a_=0,l_=1,c_=2;function u_(n,e,t){for(let i=0,p,h=-1;i<e.length;i++){let f=e[i];if(f>h){for(p=f-1;p>=0&&n[p]==null;)n[p--]=null;for(p=f+1;p<t&&n[p]==null;)n[h=p++]=null}}}function h_(n,e){if(f_(n)){let f=n[0].slice();for(let y=1;y<n.length;y++)f.push(...n[y].slice(1));return g_(f[0])||(f=p_(f)),f}let t=new Set;for(let f=0;f<n.length;f++){let y=n[f][0],d=y.length;for(let g=0;g<d;g++)t.add(y[g])}let i=[Array.from(t).sort((f,y)=>f-y)],p=i[0].length,h=new Map;for(let f=0;f<p;f++)h.set(i[0][f],f);for(let f=0;f<n.length;f++){let y=n[f],d=y[0];for(let g=1;g<y.length;g++){let s=y[g],l=Array(p).fill(void 0),a=e?e[f][g]:l_,c=[];for(let o=0;o<s.length;o++){let u=s[o],v=h.get(d[o]);u===null?a!=a_&&(l[v]=u,a==c_&&c.push(v)):l[v]=u}u_(l,c,p),i.push(l)}}return i}const d_=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function p_(n){let e=n[0],t=e.length,i=Array(t);for(let h=0;h<i.length;h++)i[h]=h;i.sort((h,f)=>e[h]-e[f]);let p=[];for(let h=0;h<n.length;h++){let f=n[h],y=Array(t);for(let d=0;d<t;d++)y[d]=f[i[d]];p.push(y)}return p}function f_(n){let e=n[0][0],t=e.length;for(let i=1;i<n.length;i++){let p=n[i][0];if(p.length!=t)return!1;if(p!=e){for(let h=0;h<t;h++)if(p[h]!=e[h])return!1}}return!0}function g_(n,e=100){const t=n.length;if(t<=1)return!0;let i=0,p=t-1;for(;i<=p&&n[i]==null;)i++;for(;p>=i&&n[p]==null;)p--;if(p<=i)return!0;const h=zn(1,yi((p-i+1)/e));for(let f=n[i],y=i+h;y<=p;y+=h){const d=n[y];if(d!=null){if(d<=f)return!1;f=d}}return!0}const pg=["January","February","March","April","May","June","July","August","September","October","November","December"],fg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gg(n){return n.slice(0,3)}const m_=fg.map(gg),v_=pg.map(gg),y_={MMMM:pg,MMM:v_,WWWW:fg,WWW:m_};function Hs(n){return(n<10?"0":"")+n}function b_(n){return(n<10?"00":n<100?"0":"")+n}const w_={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,e)=>e.MMMM[n.getMonth()],MMM:(n,e)=>e.MMM[n.getMonth()],MM:n=>Hs(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Hs(n.getDate()),D:n=>n.getDate(),WWWW:(n,e)=>e.WWWW[n.getDay()],WWW:(n,e)=>e.WWW[n.getDay()],HH:n=>Hs(n.getHours()),H:n=>n.getHours(),h:n=>{let e=n.getHours();return e==0?12:e>12?e-12:e},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Hs(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Hs(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>b_(n.getMilliseconds())};function ku(n,e){e=e||y_;let t=[],i=/\{([a-z]+)\}|[^{]+/gi,p;for(;p=i.exec(n);)t.push(p[0][0]=="{"?w_[p[1]]:p[0]);return h=>{let f="";for(let y=0;y<t.length;y++)f+=typeof t[y]=="string"?t[y]:t[y](h,e);return f}}const x_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function __(n,e){let t;return e=="UTC"||e=="Etc/UTC"?t=new Date(+n+n.getTimezoneOffset()*6e4):e==x_?t=n:(t=new Date(n.toLocaleString("en-US",{timeZone:e})),t.setMilliseconds(n.getMilliseconds())),t}const mg=n=>n%1==0,sl=[1,2,2.5,5],k_=Fs(10,-32,0,sl),vg=Fs(10,0,32,sl),S_=vg.filter(mg),fo=k_.concat(vg),Su=`
|
1407
|
+
`,yg="{YYYY}",bg=Su+yg,wg="{M}/{D}",Bs=Su+wg,al=Bs+"/{YY}",xg="{aa}",$_="{h}:{mm}",Yo=$_+xg,_g=Su+Yo,kg=":{ss}",Tt=null;function Sg(n){let e=n*1e3,t=e*60,i=t*60,p=i*24,h=p*30,f=p*365,y=(n==1?Fs(10,0,3,sl).filter(mg):Fs(10,-3,0,sl)).concat([e,e*5,e*10,e*15,e*30,t,t*5,t*10,t*15,t*30,i,i*2,i*3,i*4,i*6,i*8,i*12,p,p*2,p*3,p*4,p*5,p*6,p*7,p*8,p*9,p*10,p*15,h,h*2,h*3,h*4,h*6,f,f*2,f*5,f*10,f*25,f*50,f*100]);const d=[[f,yg,Tt,Tt,Tt,Tt,Tt,Tt,1],[p*28,"{MMM}",bg,Tt,Tt,Tt,Tt,Tt,1],[p,wg,bg,Tt,Tt,Tt,Tt,Tt,1],[i,"{h}"+xg,al,Tt,Bs,Tt,Tt,Tt,1],[t,Yo,al,Tt,Bs,Tt,Tt,Tt,1],[e,kg,al+" "+Yo,Tt,Bs+" "+Yo,Tt,_g,Tt,1],[n,kg+".{fff}",al+" "+Yo,Tt,Bs+" "+Yo,Tt,_g,Tt,1]];function g(s){return(l,a,c,o,u,v)=>{let b=[],x=u>=f,E=u>=h&&u<f,C=s(c),k=Ft(C*n,3),w=$u(C.getFullYear(),x?0:C.getMonth(),E||x?1:C.getDate()),T=Ft(w*n,3);if(E||x){let L=E?u/h:0,I=x?u/f:0,A=k==T?k:Ft($u(w.getFullYear()+I,w.getMonth()+L,1)*n,3),N=new Date(Mn(A/n)),S=N.getFullYear(),_=N.getMonth();for(let $=0;A<=o;$++){let R=$u(S+I*$,_+L*$,1),O=R-s(Ft(R*n,3));A=Ft((+R+O)*n,3),A<=o&&b.push(A)}}else{let L=u>=p?p:u,I=yi(c)-yi(k),A=T+I+rl(k-T,L);b.push(A);let N=s(A),S=N.getHours()+N.getMinutes()/t+N.getSeconds()/i,_=u/i,$=l.axes[a]._space,R=v/$;for(;A=Ft(A+u,n==1?0:3),!(A>o);)if(_>1){let O=yi(Ft(S+_,6))%24,F=s(A).getHours()-O;F>1&&(F=-1),A-=F*i,S=(S+_)%24;let H=b[b.length-1];Ft((A-H)/u,3)*R>=.7&&b.push(A)}else b.push(A)}return b}}return[y,d,g]}const[C_,M_,T_]=Sg(1),[A_,E_,L_]=Sg(.001);Fs(2,-53,53,[1]);function $g(n,e){return n.map(t=>t.map((i,p)=>p==0||p==8||i==null?i:e(p==1||t[8]==0?i:t[1]+i)))}function Cg(n,e){return(t,i,p,h,f)=>{let y=e.find(o=>f>=o[0])||e[e.length-1],d,g,s,l,a,c;return i.map(o=>{let u=n(o),v=u.getFullYear(),b=u.getMonth(),x=u.getDate(),E=u.getHours(),C=u.getMinutes(),k=u.getSeconds(),w=v!=d&&y[2]||b!=g&&y[3]||x!=s&&y[4]||E!=l&&y[5]||C!=a&&y[6]||k!=c&&y[7]||y[1];return d=v,g=b,s=x,l=E,a=C,c=k,w(u)})}}function R_(n,e){let t=ku(e);return(i,p,h,f,y)=>p.map(d=>t(n(d)))}function $u(n,e,t){return new Date(n,e,t)}function Mg(n,e){return e(n)}const I_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Tg(n,e){return(t,i,p,h)=>h==null?hu:e(n(i))}function O_(n,e){let t=n.series[e];return t.width?t.stroke(n,e):t.points.width?t.points.stroke(n,e):null}function D_(n,e){return n.series[e].fill(n,e)}const N_={show:!0,live:!0,isolate:!1,mount:n_,markers:{show:!0,width:2,stroke:O_,fill:D_,dash:"solid"},idx:null,idxs:null,values:[]};function F_(n,e){let t=n.cursor.points,i=$i(),p=t.size(n,e);Gt(i,Is,p),Gt(i,Os,p);let h=p/-2;Gt(i,"marginLeft",h),Gt(i,"marginTop",h);let f=t.width(n,e,p);return f&&Gt(i,"borderWidth",f),i}function P_(n,e){let t=n.series[e].points;return t._fill||t._stroke}function H_(n,e){let t=n.series[e].points;return t._stroke||t._fill}function B_(n,e){return n.series[e].points.size}const Cu=[0,0];function j_(n,e,t){return Cu[0]=e,Cu[1]=t,Cu}function ll(n,e,t,i=!0){return p=>{p.button==0&&(!i||p.target==e)&&t(p)}}function Mu(n,e,t,i=!0){return p=>{(!i||p.target==e)&&t(p)}}const z_={show:!0,x:!0,y:!0,lock:!1,move:j_,points:{one:!1,show:F_,size:B_,width:0,stroke:H_,fill:P_},bind:{mousedown:ll,mouseup:ll,click:ll,dblclick:ll,mousemove:Mu,mouseleave:Mu,mouseenter:Mu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,e,t,i,p)=>i-p,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Ag={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Tu=bn({},Ag,{filter:og}),Eg=bn({},Tu,{size:10}),Lg=bn({},Ag,{show:!1}),Au='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"',Rg="bold "+Au,Ig=1.5,Og={show:!0,scale:"x",stroke:cu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Rg,side:2,grid:Tu,ticks:Eg,border:Lg,font:Au,lineGap:Ig,rotate:0},W_="Value",U_="Time",Dg={show:!0,scale:"x",auto:!1,sorted:1,min:wt,max:-wt,idxs:[]};function V_(n,e,t,i,p){return e.map(h=>h==null?"":bu(h))}function q_(n,e,t,i,p,h,f){let y=[],d=Ir.get(p)||0;t=f?t:Ft(rl(t,p),d);for(let g=t;g<=i;g=Ft(g+p,d))y.push(Object.is(g,-0)?0:g);return y}function Eu(n,e,t,i,p,h,f){const y=[],d=n.scales[n.axes[e].scale].log,g=d==10?hr:ng,s=yi(g(t));p=Vo(d,s),d==10&&(p=fo[Bi(p,fo)]);let l=t,a=p*d;d==10&&(a=fo[Bi(a,fo)]);do y.push(l),l=l+p,d==10&&!Ir.has(l)&&(l=Ft(l,Ir.get(p))),l>=a&&(p=l,a=p*d,d==10&&(a=fo[Bi(a,fo)]));while(l<=i);return y}function G_(n,e,t,i,p,h,f){let y=n.scales[n.axes[e].scale].asinh,d=i>y?Eu(n,e,zn(y,t),i,p):[y],g=i>=0&&t<=0?[0]:[];return(t<-y?Eu(n,e,zn(y,-i),-t,p):[y]).reverse().map(s=>-s).concat(g,d)}const Ng=/./,Y_=/[12357]/,K_=/[125]/,Fg=/1/,Lu=(n,e,t,i)=>n.map((p,h)=>e==4&&p==0||h%i==0&&t.test(p.toExponential()[p<0?1:0])?p:null);function Q_(n,e,t,i,p){let h=n.axes[t],f=h.scale,y=n.scales[f],d=n.valToPos,g=h._space,s=d(10,f),l=d(9,f)-s>=g?Ng:d(7,f)-s>=g?Y_:d(5,f)-s>=g?K_:Fg;if(l==Fg){let a=Cn(d(1,f)-s);if(a<g)return Lu(e.slice().reverse(),y.distr,l,Ci(g/a)).reverse()}return Lu(e,y.distr,l,1)}function Z_(n,e,t,i,p){let h=n.axes[t],f=h.scale,y=h._space,d=n.valToPos,g=Cn(d(1,f)-d(2,f));return g<y?Lu(e.slice().reverse(),3,Ng,Ci(y/g)).reverse():e}function J_(n,e,t,i){return i==null?hu:e==null?"":bu(e)}const Pg={show:!0,scale:"y",stroke:cu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Rg,side:3,grid:Tu,ticks:Eg,border:Lg,font:Au,lineGap:Ig,rotate:0};function X_(n,e){let t=3+(n||1)*2;return Ft(t*e,3)}function ek(n,e){let{scale:t,idxs:i}=n.series[0],p=n._data[0],h=n.valToPos(p[i[0]],t,!0),f=n.valToPos(p[i[1]],t,!0),y=Cn(f-h),d=n.series[e],g=y/(d.points.space*Ct);return i[1]-i[0]<=g}const Hg={scale:null,auto:!0,sorted:0,min:wt,max:-wt},Bg=(n,e,t,i,p)=>p,jg={show:!0,auto:!0,sorted:0,gaps:Bg,alpha:1,facets:[bn({},Hg,{scale:"x"}),bn({},Hg,{scale:"y"})]},zg={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Bg,alpha:1,points:{show:ek,filter:null},values:null,min:wt,max:-wt,idxs:[],path:null,clip:null};function tk(n,e,t,i,p){return t/10}const Wg={time:Mx,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},nk=bn({},Wg,{time:!1,ori:1}),Ug={};function Vg(n,e){let t=Ug[n];return t||(t={key:n,plots:[],sub(i){t.plots.push(i)},unsub(i){t.plots=t.plots.filter(p=>p!=i)},pub(i,p,h,f,y,d,g){for(let s=0;s<t.plots.length;s++)t.plots[s]!=p&&t.plots[s].pub(i,p,h,f,y,d,g)}},n!=null&&(Ug[n]=t)),t}const Ko=1,Ru=2;function go(n,e,t){const i=n.mode,p=n.series[e],h=i==2?n._data[e]:n._data,f=n.scales,y=n.bbox;let d=h[0],g=i==2?h[1]:h[e],s=i==2?f[p.facets[0].scale]:f[n.series[0].scale],l=i==2?f[p.facets[1].scale]:f[p.scale],a=y.left,c=y.top,o=y.width,u=y.height,v=n.valToPosH,b=n.valToPosV;return s.ori==0?t(p,d,g,s,l,v,b,a,c,o,u,ul,Qo,dl,Yg,Qg):t(p,d,g,s,l,b,v,c,a,u,o,hl,Zo,Du,Kg,Zg)}function Iu(n,e){let t=0,i=0,p=$t(n.bands,_u);for(let h=0;h<p.length;h++){let f=p[h];f.series[0]==e?t=f.dir:f.series[1]==e&&(f.dir==1?i|=1:i|=2)}return[t,i==1?-1:i==2?1:i==3?2:0]}function ik(n,e,t,i,p){let h=n.mode,f=n.series[e],y=h==2?f.facets[1].scale:f.scale,d=n.scales[y];return p==-1?d.min:p==1?d.max:d.distr==3?d.dir==1?d.min:d.max:0}function dr(n,e,t,i,p,h){return go(n,e,(f,y,d,g,s,l,a,c,o,u,v)=>{let b=f.pxRound;const x=g.dir*(g.ori==0?1:-1),E=g.ori==0?Qo:Zo;let C,k;x==1?(C=t,k=i):(C=i,k=t);let w=b(l(y[C],g,u,c)),T=b(a(d[C],s,v,o)),L=b(l(y[k],g,u,c)),I=b(a(h==1?s.max:s.min,s,v,o)),A=new Path2D(p);return E(A,L,I),E(A,w,I),E(A,w,T),A})}function cl(n,e,t,i,p,h){let f=null;if(n.length>0){f=new Path2D;const y=e==0?dl:Du;let d=t;for(let l=0;l<n.length;l++){let a=n[l];if(a[1]>a[0]){let c=a[0]-d;c>0&&y(f,d,i,c,i+h),d=a[1]}}let g=t+p-d,s=10;g>0&&y(f,d,i-s/2,g,i+h+s)}return f}function rk(n,e,t){let i=n[n.length-1];i&&i[0]==e?i[1]=t:n.push([e,t])}function Ou(n,e,t,i,p,h,f){let y=[],d=n.length;for(let g=p==1?t:i;g>=t&&g<=i;g+=p)if(e[g]===null){let s=g,l=g;if(p==1)for(;++g<=i&&e[g]===null;)l=g;else for(;--g>=t&&e[g]===null;)l=g;let a=h(n[s]),c=l==s?a:h(n[l]),o=s-p;a=f<=0&&o>=0&&o<d?h(n[o]):a;let u=l+p;c=f>=0&&u>=0&&u<d?h(n[u]):c,c>=a&&y.push([a,c])}return y}function qg(n){return n==0?rg:n==1?Mn:e=>po(e,n)}function Gg(n){let e=n==0?ul:hl,t=n==0?(p,h,f,y,d,g)=>{p.arcTo(h,f,y,d,g)}:(p,h,f,y,d,g)=>{p.arcTo(f,h,d,y,g)},i=n==0?(p,h,f,y,d)=>{p.rect(h,f,y,d)}:(p,h,f,y,d)=>{p.rect(f,h,d,y)};return(p,h,f,y,d,g=0,s=0)=>{g==0&&s==0?i(p,h,f,y,d):(g=Mi(g,y/2,d/2),s=Mi(s,y/2,d/2),e(p,h+g,f),t(p,h+y,f,h+y,f+d,g),t(p,h+y,f+d,h,f+d,s),t(p,h,f+d,h,f,s),t(p,h,f,h+y,f,g),p.closePath())}}const ul=(n,e,t)=>{n.moveTo(e,t)},hl=(n,e,t)=>{n.moveTo(t,e)},Qo=(n,e,t)=>{n.lineTo(e,t)},Zo=(n,e,t)=>{n.lineTo(t,e)},dl=Gg(0),Du=Gg(1),Yg=(n,e,t,i,p,h)=>{n.arc(e,t,i,p,h)},Kg=(n,e,t,i,p,h)=>{n.arc(t,e,i,p,h)},Qg=(n,e,t,i,p,h,f)=>{n.bezierCurveTo(e,t,i,p,h,f)},Zg=(n,e,t,i,p,h,f)=>{n.bezierCurveTo(t,e,p,i,f,h)};function Jg(n){return(e,t,i,p,h)=>go(e,t,(f,y,d,g,s,l,a,c,o,u,v)=>{let{pxRound:b,points:x}=f,E,C;g.ori==0?(E=ul,C=Yg):(E=hl,C=Kg);const k=Ft(x.width*Ct,3);let w=(x.size-x.width)/2*Ct,T=Ft(w*2,3),L=new Path2D,I=new Path2D,{left:A,top:N,width:S,height:_}=e.bbox;dl(I,A-T,N-T,S+T*2,_+T*2);const $=R=>{if(d[R]!=null){let O=b(l(y[R],g,u,c)),F=b(a(d[R],s,v,o));E(L,O+w,F),C(L,O,F,w,0,il*2)}};if(h)h.forEach($);else for(let R=i;R<=p;R++)$(R);return{stroke:k>0?L:null,fill:L,clip:I,flags:Ko|Ru}})}function Xg(n){return(e,t,i,p,h,f)=>{i!=p&&(h!=i&&f!=i&&n(e,t,i),h!=p&&f!=p&&n(e,t,p),n(e,t,f))}}const ok=Xg(Qo),sk=Xg(Zo);function em(n){const e=$t(n==null?void 0:n.alignGaps,0);return(t,i,p,h)=>go(t,i,(f,y,d,g,s,l,a,c,o,u,v)=>{let b=f.pxRound,x=X=>b(l(X,g,u,c)),E=X=>b(a(X,s,v,o)),C,k;g.ori==0?(C=Qo,k=ok):(C=Zo,k=sk);const w=g.dir*(g.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Ko},L=T.stroke;let I=wt,A=-wt,N,S,_,$=x(y[w==1?p:h]),R=Uo(d,p,h,1*w),O=Uo(d,p,h,-1*w),F=x(y[R]),H=x(y[O]),W=!1;for(let X=w==1?p:h;X>=p&&X<=h;X+=w){let G=x(y[X]),Z=d[X];G==$?Z!=null?(S=E(Z),I==wt&&(C(L,G,S),N=S),I=Mi(S,I),A=zn(S,A)):Z===null&&(W=!0):(I!=wt&&(k(L,$,I,A,N,S),_=$),Z!=null?(S=E(Z),C(L,G,S),I=A=N=S):(I=wt,A=-wt,Z===null&&(W=!0)),$=G)}I!=wt&&I!=A&&_!=$&&k(L,$,I,A,N,S);let[V,q]=Iu(t,i);if(f.fill!=null||V!=0){let X=T.fill=new Path2D(L),G=f.fillTo(t,i,f.min,f.max,V),Z=E(G);C(X,H,Z),C(X,F,Z)}if(!f.spanGaps){let X=[];W&&X.push(...Ou(y,d,p,h,w,x,e)),T.gaps=X=f.gaps(t,i,p,h,X),T.clip=cl(X,g.ori,c,o,u,v)}return q!=0&&(T.band=q==2?[dr(t,i,p,h,L,-1),dr(t,i,p,h,L,1)]:dr(t,i,p,h,L,q)),T})}function ak(n){const e=$t(n.align,1),t=$t(n.ascDesc,!1),i=$t(n.alignGaps,0),p=$t(n.extend,!1);return(h,f,y,d)=>go(h,f,(g,s,l,a,c,o,u,v,b,x,E)=>{let C=g.pxRound,{left:k,width:w}=h.bbox,T=V=>C(o(V,a,x,v)),L=V=>C(u(V,c,E,b)),I=a.ori==0?Qo:Zo;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Ko},N=A.stroke,S=a.dir*(a.ori==0?1:-1);y=Uo(l,y,d,1),d=Uo(l,y,d,-1);let _=L(l[S==1?y:d]),$=T(s[S==1?y:d]),R=$,O=$;p&&e==-1&&(O=k,I(N,O,_)),I(N,$,_);for(let V=S==1?y:d;V>=y&&V<=d;V+=S){let q=l[V];if(q==null)continue;let X=T(s[V]),G=L(q);e==1?I(N,X,_):I(N,R,G),I(N,X,G),_=G,R=X}let F=R;p&&e==1&&(F=k+w,I(N,F,_));let[H,W]=Iu(h,f);if(g.fill!=null||H!=0){let V=A.fill=new Path2D(N),q=g.fillTo(h,f,g.min,g.max,H),X=L(q);I(V,F,X),I(V,O,X)}if(!g.spanGaps){let V=[];V.push(...Ou(s,l,y,d,S,T,i));let q=g.width*Ct/2,X=t||e==1?q:-q,G=t||e==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),A.gaps=V=g.gaps(h,f,y,d,V),A.clip=cl(V,a.ori,v,b,x,E)}return W!=0&&(A.band=W==2?[dr(h,f,y,d,N,-1),dr(h,f,y,d,N,1)]:dr(h,f,y,d,N,W)),A})}function tm(n,e,t,i,p,h,f=wt){if(n.length>1){let y=null;for(let d=0,g=1/0;d<n.length;d++)if(e[d]!==void 0){if(y!=null){let s=Cn(n[d]-n[y]);s<g&&(g=s,f=Cn(t(n[d],i,p,h)-t(n[y],i,p,h)))}y=d}}return f}function lk(n){n=n||Ps;const e=$t(n.size,[.6,wt,1]),t=n.align||0,i=n.gap||0;let p=n.radius;p=p==null?[0,0]:typeof p=="number"?[p,0]:p;const h=xt(p),f=1-e[0],y=$t(e[1],wt),d=$t(e[2],1),g=$t(n.disp,Ps),s=$t(n.each,c=>{}),{fill:l,stroke:a}=g;return(c,o,u,v)=>go(c,o,(b,x,E,C,k,w,T,L,I,A,N)=>{let S=b.pxRound,_=t,$=i*Ct,R=y*Ct,O=d*Ct,F,H;C.ori==0?[F,H]=h(c,o):[H,F]=h(c,o);const W=C.dir*(C.ori==0?1:-1);let V=C.ori==0?dl:Du,q=C.ori==0?s:(Ve,ce,Ee,Ie,Ye,Qe,mt)=>{s(Ve,ce,Ee,Ye,Ie,mt,Qe)},X=$t(c.bands,_u).find(Ve=>Ve.series[0]==o),G=X!=null?X.dir:0,Z=b.fillTo(c,o,b.min,b.max,G),ie=S(T(Z,k,N,I)),J,ae,me,ye=A,fe=S(b.width*Ct),Ce=!1,lt=null,Ut=null,gt=null,yt=null;l!=null&&(fe==0||a!=null)&&(Ce=!0,lt=l.values(c,o,u,v),Ut=new Map,new Set(lt).forEach(Ve=>{Ve!=null&&Ut.set(Ve,new Path2D)}),fe>0&&(gt=a.values(c,o,u,v),yt=new Map,new Set(gt).forEach(Ve=>{Ve!=null&&yt.set(Ve,new Path2D)})));let{x0:fn,size:Pt}=g;if(fn!=null&&Pt!=null){_=1,x=fn.values(c,o,u,v),fn.unit==2&&(x=x.map(ce=>c.posToVal(L+ce*A,C.key,!0)));let Ve=Pt.values(c,o,u,v);Pt.unit==2?ae=Ve[0]*A:ae=w(Ve[0],C,A,L)-w(0,C,A,L),ye=tm(x,E,w,C,A,L,ye),me=ye-ae+$}else ye=tm(x,E,w,C,A,L,ye),me=ye*f+$,ae=ye-me;me<1&&(me=0),fe>=ae/2&&(fe=0),me<5&&(S=rg);let nn=me>0,er=ye-me-(nn?fe:0);ae=S(xu(er,O,R)),J=(_==0?ae/2:_==W?0:ae)-_*W*((_==0?$/2:0)+(nn?fe/2:0));const Tn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ln=Ce?null:new Path2D;let Be=null;if(X!=null)Be=c.data[X.series[1]];else{let{y0:Ve,y1:ce}=g;Ve!=null&&ce!=null&&(E=ce.values(c,o,u,v),Be=Ve.values(c,o,u,v))}let We=F*ae,cn=H*ae;for(let Ve=W==1?u:v;Ve>=u&&Ve<=v;Ve+=W){let ce=E[Ve];if(ce==null)continue;if(Be!=null){let dt=Be[Ve]??0;if(ce-dt==0)continue;ie=T(dt,k,N,I)}let Ee=C.distr!=2||g!=null?x[Ve]:Ve,Ie=w(Ee,C,A,L),Ye=T($t(ce,Z),k,N,I),Qe=S(Ie-J),mt=S(zn(Ye,ie)),vt=S(Mi(Ye,ie)),ht=mt-vt;if(ce!=null){let dt=ce<0?cn:We,ot=ce<0?We:cn;Ce?(fe>0&>[Ve]!=null&&V(yt.get(gt[Ve]),Qe,vt+yi(fe/2),ae,zn(0,ht-fe),dt,ot),lt[Ve]!=null&&V(Ut.get(lt[Ve]),Qe,vt+yi(fe/2),ae,zn(0,ht-fe),dt,ot)):V(ln,Qe,vt+yi(fe/2),ae,zn(0,ht-fe),dt,ot),q(c,o,Ve,Qe-fe/2,vt,ae+fe,ht)}}return fe>0?Tn.stroke=Ce?yt:ln:Ce||(Tn._fill=b.width==0?b._fill:b._stroke??b._fill,Tn.width=0),Tn.fill=Ce?Ut:ln,Tn})}function ck(n,e){const t=$t(e==null?void 0:e.alignGaps,0);return(i,p,h,f)=>go(i,p,(y,d,g,s,l,a,c,o,u,v,b)=>{let x=y.pxRound,E=F=>x(a(F,s,v,o)),C=F=>x(c(F,l,b,u)),k,w,T;s.ori==0?(k=ul,T=Qo,w=Qg):(k=hl,T=Zo,w=Zg);const L=s.dir*(s.ori==0?1:-1);h=Uo(g,h,f,1),f=Uo(g,h,f,-1);let I=E(d[L==1?h:f]),A=I,N=[],S=[];for(let F=L==1?h:f;F>=h&&F<=f;F+=L)if(g[F]!=null){let H=d[F],W=E(H);N.push(A=W),S.push(C(g[F]))}const _={stroke:n(N,S,k,T,w,x),fill:null,clip:null,band:null,gaps:null,flags:Ko},$=_.stroke;let[R,O]=Iu(i,p);if(y.fill!=null||R!=0){let F=_.fill=new Path2D($),H=y.fillTo(i,p,y.min,y.max,R),W=C(H);T(F,A,W),T(F,I,W)}if(!y.spanGaps){let F=[];F.push(...Ou(d,g,h,f,L,E,t)),_.gaps=F=y.gaps(i,p,h,f,F),_.clip=cl(F,s.ori,o,u,v,b)}return O!=0&&(_.band=O==2?[dr(i,p,h,f,$,-1),dr(i,p,h,f,$,1)]:dr(i,p,h,f,$,O)),_})}function uk(n){return ck(hk,n)}function hk(n,e,t,i,p,h){const f=n.length;if(f<2)return null;const y=new Path2D;if(t(y,n[0],e[0]),f==2)i(y,n[1],e[1]);else{let d=Array(f),g=Array(f-1),s=Array(f-1),l=Array(f-1);for(let a=0;a<f-1;a++)s[a]=e[a+1]-e[a],l[a]=n[a+1]-n[a],g[a]=s[a]/l[a];d[0]=g[0];for(let a=1;a<f-1;a++)g[a]===0||g[a-1]===0||g[a-1]>0!=g[a]>0?d[a]=0:(d[a]=3*(l[a-1]+l[a])/((2*l[a]+l[a-1])/g[a-1]+(l[a]+2*l[a-1])/g[a]),isFinite(d[a])||(d[a]=0));d[f-1]=g[f-2];for(let a=0;a<f-1;a++)p(y,n[a]+l[a]/3,e[a]+d[a]*l[a]/3,n[a+1]-l[a]/3,e[a+1]-d[a+1]*l[a]/3,n[a+1],e[a+1])}return y}const Nu=new Set;function nm(){for(let n of Nu)n.syncRect(!0)}zo&&(uo(qx,Wo,nm),uo(Gx,Wo,nm,!0),uo(Xa,Wo,()=>{Wn.pxRatio=Ct}));const dk=em(),pk=Jg();function im(n,e,t,i){return(i?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((p,h)=>Fu(p,h,e,t))}function fk(n,e){return n.map((t,i)=>i==0?{}:bn({},e,t))}function Fu(n,e,t,i){return bn({},e==0?t:i,n)}function rm(n,e,t){return e==null?qo:[e,t]}const gk=rm;function mk(n,e,t){return e==null?qo:nl(e,t,yu,!0)}function om(n,e,t,i){return e==null?qo:tl(e,t,n.scales[i].log,!1)}const vk=om;function sm(n,e,t,i){return e==null?qo:vu(e,t,n.scales[i].log,!1)}const yk=sm;function bk(n,e,t,i,p){let h=zn(ig(n),ig(e)),f=e-n,y=Bi(p/i*f,t);do{let d=t[y],g=i*d/f;if(g>=p&&h+(d<5?Ir.get(d):0)<=17)return[d,g]}while(++y<t.length);return[0,0]}function am(n){let e,t;return n=n.replace(/(\d+)px/,(i,p)=>(e=Mn((t=+p)*Ct))+"px"),[n,e,t]}function wk(n){n.show&&[n.font,n.labelFont].forEach(e=>{let t=Ft(e[2]*Ct,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t})}function Wn(n,e,t){const i={mode:$t(n.mode,1)},p=i.mode;function h(P,j){return((j.distr==3?hr(P>0?P:j.clamp(i,P,j.min,j.max,j.key)):j.distr==4?wu(P,j.asinh):j.distr==100?j.fwd(P):P)-j._min)/(j._max-j._min)}function f(P,j,Y,K){let te=h(P,j);return K+Y*(j.dir==-1?1-te:te)}function y(P,j,Y,K){let te=h(P,j);return K+Y*(j.dir==-1?te:1-te)}function d(P,j,Y,K){return j.ori==0?f(P,j,Y,K):y(P,j,Y,K)}i.valToPosH=f,i.valToPosV=y;let g=!1;i.status=0;const s=i.root=$i(Tx);if(n.id!=null&&(s.id=n.id),mi(s,n.class),n.title){let P=$i(Lx,s);P.textContent=n.title}const l=Hi("canvas"),a=i.ctx=l.getContext("2d"),c=$i(Rx,s);uo("click",c,P=>{P.target===u&&(ze!=Ur||Vt!=Vr)&&En.click(i,P)},!0);const o=i.under=$i(Ix,c);c.appendChild(l);const u=i.over=$i(Ox,c);n=Go(n);const v=+$t(n.pxAlign,1),b=qg(v);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(i,n)||n)});const x=n.ms||.001,E=i.series=p==1?im(n.series||[],Dg,zg,!1):fk(n.series||[null],jg),C=i.axes=im(n.axes||[],Og,Pg,!0),k=i.scales={},w=i.bands=n.bands||[];w.forEach(P=>{P.fill=xt(P.fill||null),P.dir=$t(P.dir,-1)});const T=p==2?E[1].facets[0].scale:E[0].scale,L={axes:nd,series:Hl},I=(n.drawOrder||["axes","series"]).map(P=>L[P]);function A(P){let j=k[P];if(j==null){let Y=(n.scales||Ps)[P]||Ps;if(Y.from!=null)A(Y.from),k[P]=bn({},k[Y.from],Y,{key:P});else{j=k[P]=bn({},P==T?Wg:nk,Y),j.key=P;let K=j.time,te=j.range,oe=Or(te);if((P!=T||p==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Xf:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Xf:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&ol(te))){let de=te;te=(be,ke,$e)=>ke==null?qo:nl(ke,$e,de)}j.range=xt(te||(K?gk:P==T?j.distr==3?vk:j.distr==4?yk:rm:j.distr==3?om:j.distr==4?sm:mk)),j.auto=xt(oe?!1:j.auto),j.clamp=xt(j.clamp||tk),j._min=j._max=null}}}A("x"),A("y"),p==1&&E.forEach(P=>{A(P.scale)}),C.forEach(P=>{A(P.scale)});for(let P in n.scales)A(P);const N=k[T],S=N.distr;let _,$;N.ori==0?(mi(s,Ax),_=f,$=y):(mi(s,Ex),_=y,$=f);const R={};for(let P in k){let j=k[P];(j.min!=null||j.max!=null)&&(R[P]={min:j.min,max:j.max},j.min=j.max=null)}const O=n.tzDate||(P=>new Date(Mn(P/x))),F=n.fmtDate||ku,H=x==1?T_(O):L_(O),W=Cg(O,$g(x==1?M_:E_,F)),V=Tg(O,Mg(I_,F)),q=[],X=i.legend=bn({},N_,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=xt(Z.width),Z.dash=xt(Z.dash),Z.stroke=xt(Z.stroke),Z.fill=xt(Z.fill);let ie,J,ae,me=[],ye=[],fe,Ce=!1,lt={};if(X.live){const P=E[1]?E[1].values:null;Ce=P!=null,fe=Ce?P(i,1,0):{_:0};for(let j in fe)lt[j]=hu}if(G)if(ie=Hi("table",Bx,s),ae=Hi("tbody",null,ie),X.mount(i,ie),Ce){J=Hi("thead",null,ie,ae);let P=Hi("tr",null,J);Hi("th",null,P);for(var Ut in fe)Hi("th",Hf,P).textContent=Ut}else mi(ie,zx),X.live&&mi(ie,jx);const gt={show:!0},yt={show:!1};function fn(P,j){if(j==0&&(Ce||!X.live||p==2))return qo;let Y=[],K=Hi("tr",Wx,ae,ae.childNodes[j]);mi(K,P.class),P.show||mi(K,co);let te=Hi("th",null,K);if(Z.show){let be=$i(Ux,te);if(j>0){let ke=Z.width(i,j);ke&&(be.style.border=ke+"px "+Z.dash(i,j)+" "+Z.stroke(i,j)),be.style.background=Z.fill(i,j)}}let oe=$i(Hf,te);oe.textContent=P.label,j>0&&(Z.show||(oe.style.color=P.width>0?Z.stroke(i,j):Z.fill(i,j)),nn("click",te,be=>{if(je._lock)return;fr(be);let ke=E.indexOf(P);if((be.ctrlKey||be.metaKey)!=X.isolate){let $e=E.some((Te,Le)=>Le>0&&Le!=ke&&Te.show);E.forEach((Te,Le)=>{Le>0&&Pn(Le,$e?Le==ke?gt:yt:gt,!0,rn.setSeries)})}else Pn(ke,{show:!P.show},!0,rn.setSeries)},!1),nr&&nn(Uf,te,be=>{je._lock||(fr(be),Pn(E.indexOf(P),yr,!0,rn.setSeries))},!1));for(var de in fe){let be=Hi("td",Vx,K);be.textContent="--",Y.push(be)}return[K,Y]}const Pt=new Map;function nn(P,j,Y,K=!0){const te=Pt.get(j)||{},oe=je.bind[P](i,j,Y,K);oe&&(uo(P,j,te[P]=oe),Pt.set(j,te))}function er(P,j,Y){const K=Pt.get(j)||{};for(let te in K)(P==null||te==P)&&(mu(te,j,K[te]),delete K[te]);P==null&&Pt.delete(j)}let Tn=0,ln=0,Be=0,We=0,cn=0,Ve=0,ce=cn,Ee=Ve,Ie=Be,Ye=We,Qe=0,mt=0,vt=0,ht=0;i.bbox={};let dt=!1,ot=!1,Kt=!1,Vn=!1,pr=!1,ai=!1;function Ys(P,j,Y){(Y||P!=i.width||j!=i.height)&&Ks(P,j),mr(!1),Kt=!0,ot=!0,zr()}function Ks(P,j){i.width=Tn=Be=P,i.height=ln=We=j,cn=Ve=0,Zh(),Jh();let Y=i.bbox;Qe=Y.left=po(cn*Ct,.5),mt=Y.top=po(Ve*Ct,.5),vt=Y.width=po(Be*Ct,.5),ht=Y.height=po(We*Ct,.5)}const Il=3;function Kh(){let P=!1,j=0;for(;!P;){j++;let Y=zl(j),K=Wl(j);P=j==Il||Y&&K,P||(Ks(i.width,i.height),ot=!0)}}function Qh({width:P,height:j}){Ys(P,j)}i.setSize=Qh;function Zh(){let P=!1,j=!1,Y=!1,K=!1;C.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:be}=te,ke=de%2,$e=te.label!=null?te.labelSize:0,Te=be+$e;Te>0&&(ke?(Be-=Te,de==3?(cn+=Te,K=!0):Y=!0):(We-=Te,de==0?(Ve+=Te,P=!0):j=!0))}}),gr[0]=P,gr[1]=Y,gr[2]=j,gr[3]=K,Be-=ir[1]+ir[3],cn+=ir[3],We-=ir[2]+ir[0],Ve+=ir[0]}function Jh(){let P=cn+Be,j=Ve+We,Y=cn,K=Ve;function te(oe,de){switch(oe){case 1:return P+=de,P-de;case 2:return j+=de,j-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}C.forEach((oe,de)=>{if(oe.show&&oe._show){let be=oe.side;oe._pos=te(be,oe._size),oe.label!=null&&(oe._lpos=te(be,oe.labelSize))}})}const je=i.cursor=bn({},z_,{drag:{y:p==2}},n.cursor);if(je.dataIdx==null){let P=je.hover,j=P.skip=new Set(P.skip??[]);j.add(void 0);let Y=P.prox=xt(P.prox),K=P.bias??(P.bias=0);je.dataIdx=(te,oe,de,be)=>{if(oe==0)return de;let ke=de,$e=Y(te,oe,de,be)??wt,Te=$e>=0&&$e<wt,Le=N.ori==0?Be:We,Ze=je.left,It=e[0],st=e[oe];if(j.has(st[de])){ke=null;let Ke=null,Xe=null,Ne;if(K==0||K==-1)for(Ne=de;Ke==null&&Ne-- >0;)j.has(st[Ne])||(Ke=Ne);if(K==0||K==1)for(Ne=de;Xe==null&&Ne++<st.length;)j.has(st[Ne])||(Xe=Ne);if(Ke!=null||Xe!=null)if(Te){let At=Ke==null?-1/0:_(It[Ke],N,Le,0),on=Xe==null?1/0:_(It[Xe],N,Le,0),Xt=Ze-At,Bt=on-Ze;Xt<=Bt?Xt<=$e&&(ke=Ke):Bt<=$e&&(ke=Xe)}else ke=Xe==null?Ke:Ke==null?Xe:de-Ke<=Xe-de?Ke:Xe}else Te&&Cn(Ze-_(It[de],N,Le,0))>$e&&(ke=null);return ke}}const fr=P=>{je.event=P};je.idxs=q,je._lock=!1;let Fn=je.points;Fn.show=xt(Fn.show),Fn.size=xt(Fn.size),Fn.stroke=xt(Fn.stroke),Fn.width=xt(Fn.width),Fn.fill=xt(Fn.fill);const tr=i.focus=bn({},n.focus||{alpha:.3},je.focus),nr=tr.prox>=0,Dr=nr&&Fn.one;let qn=[],Nr=[],Fr=[];function Ol(P,j){let Y=Fn.show(i,j);if(Y)return mi(Y,Hx),mi(Y,P.class),Qi(Y,-10,-10,Be,We),u.insertBefore(Y,qn[j]),Y}function Dl(P,j){if(p==1||j>0){let Y=p==1&&k[P.scale].time,K=P.value;P.value=Y?hg(K)?Tg(O,Mg(K,F)):K||V:K||J_,P.label=P.label||(Y?U_:W_)}if(Dr||j>0){P.width=P.width==null?1:P.width,P.paths=P.paths||dk,P.fillTo=xt(P.fillTo||ik),P.pxAlign=+$t(P.pxAlign,v),P.pxRound=qg(P.pxAlign),P.stroke=xt(P.stroke||null),P.fill=xt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=X_(zn(1,P.width),1),K=P.points=bn({},{size:Y,width:zn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:pk,_stroke:null,_fill:null},P.points);K.show=xt(K.show),K.filter=xt(K.filter),K.fill=xt(K.fill),K.stroke=xt(K.stroke),K.paths=xt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=fn(P,j);me.splice(j,0,Y[0]),ye.splice(j,0,Y[1]),X.values.push(null)}if(je.show){q.splice(j,0,null);let Y=null;Dr?j==0&&(Y=Ol(P,j)):j>0&&(Y=Ol(P,j)),qn.splice(j,0,Y),Nr.splice(j,0,0),Fr.splice(j,0,0)}un("addSeries",j)}function Xh(P,j){j=j??E.length,P=p==1?Fu(P,j,Dg,zg):Fu(P,j,{},jg),E.splice(j,0,P),Dl(E[j],j)}i.addSeries=Xh;function ed(P){if(E.splice(P,1),G){X.values.splice(P,1),ye.splice(P,1);let j=me.splice(P,1)[0];er(null,j.firstChild),j.remove()}je.show&&(q.splice(P,1),qn.splice(P,1)[0].remove(),Nr.splice(P,1),Fr.splice(P,1)),un("delSeries",P)}i.delSeries=ed;const gr=[!1,!1,!1,!1];function td(P,j){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?E[1].scale:T,K=k[P.scale]);let te=K.time;P.size=xt(P.size),P.space=xt(P.space),P.rotate=xt(P.rotate),Or(P.incrs)&&P.incrs.forEach(de=>{!Ir.has(de)&&Ir.set(de,cg(de))}),P.incrs=xt(P.incrs||(K.distr==2?S_:te?x==1?C_:A_:fo)),P.splits=xt(P.splits||(te&&K.distr==1?H:K.distr==3?Eu:K.distr==4?G_:q_)),P.stroke=xt(P.stroke),P.grid.stroke=xt(P.grid.stroke),P.ticks.stroke=xt(P.ticks.stroke),P.border.stroke=xt(P.border.stroke);let oe=P.values;P.values=Or(oe)&&!Or(oe[0])?xt(oe):te?Or(oe)?Cg(O,$g(oe,F)):hg(oe)?R_(O,oe):oe||W:oe||V_,P.filter=xt(P.filter||(K.distr>=3&&K.log==10?Q_:K.distr==3&&K.log==2?Z_:og)),P.font=am(P.font),P.labelFont=am(P.labelFont),P._size=P.size(i,null,j,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(gr[j]=!0,P._el=$i(Dx,c))}}function Pr(P,j,Y,K){let[te,oe,de,be]=Y,ke=j%2,$e=0;return ke==0&&(be||oe)&&($e=j==0&&!te||j==2&&!de?Mn(Og.size/3):0),ke==1&&(te||de)&&($e=j==1&&!oe||j==3&&!be?Mn(Pg.size/2):0),$e}const Nl=i.padding=(n.padding||[Pr,Pr,Pr,Pr]).map(P=>xt($t(P,Pr))),ir=i._padding=Nl.map((P,j)=>P(i,j,gr,0));let An,xn=null,_n=null;const ts=p==1?E[0].idxs:null;let Gn=null,bo=!1;function wo(P,j){if(e=P??[],i.data=i._data=e,p==2){An=0;for(let Y=1;Y<E.length;Y++)An+=e[Y][0].length}else{e.length==0&&(i.data=i._data=e=[[]]),Gn=e[0],An=Gn.length;let Y=e;if(S==2){Y=e.slice();let K=Y[0]=Array(An);for(let te=0;te<An;te++)K[te]=te}i._data=e=Y}if(mr(!0),un("setData"),S==2&&(Kt=!0),j!==!1){let Y=N;Y.auto(i,bo)?Qs():Ai(T,Y.min,Y.max),Vn=Vn||je.left>=0,ai=!0,zr()}}i.setData=wo;function Qs(){bo=!0;let P,j;p==1&&(An>0?(xn=ts[0]=0,_n=ts[1]=An-1,P=e[0][xn],j=e[0][_n],S==2?(P=xn,j=_n):P==j&&(S==3?[P,j]=tl(P,P,N.log,!1):S==4?[P,j]=vu(P,P,N.log,!1):N.time?j=P+Mn(86400/x):[P,j]=nl(P,j,yu,!0))):(xn=ts[0]=P=null,_n=ts[1]=j=null)),Ai(T,P,j)}let ns,Hr,is,rs,os,Zs,Js,Xs,ea,Ti;function ta(P,j,Y,K,te,oe){P??(P=jf),Y??(Y=_u),K??(K="butt"),te??(te=jf),oe??(oe="round"),P!=ns&&(a.strokeStyle=ns=P),te!=Hr&&(a.fillStyle=Hr=te),j!=is&&(a.lineWidth=is=j),oe!=os&&(a.lineJoin=os=oe),K!=Zs&&(a.lineCap=Zs=K),Y!=rs&&a.setLineDash(rs=Y)}function na(P,j,Y,K){j!=Hr&&(a.fillStyle=Hr=j),P!=Js&&(a.font=Js=P),Y!=Xs&&(a.textAlign=Xs=Y),K!=ea&&(a.textBaseline=ea=K)}function xo(P,j,Y,K,te=0){if(K.length>0&&P.auto(i,bo)&&(j==null||j.min==null)){let oe=$t(xn,0),de=$t(_n,K.length-1),be=Y.min==null?P.distr==3?Zx(K,oe,de):Qx(K,oe,de,te):[Y.min,Y.max];P.min=Mi(P.min,Y.min=be[0]),P.max=zn(P.max,Y.max=be[1])}}const Fl={min:null,max:null};function Pl(){for(let K in k){let te=k[K];R[K]==null&&(te.min==null||R[T]!=null&&te.auto(i,bo))&&(R[K]=Fl)}for(let K in k){let te=k[K];R[K]==null&&te.from!=null&&R[te.from]!=null&&(R[K]=Fl)}R[T]!=null&&mr(!0);let P={};for(let K in R){let te=R[K];if(te!=null){let oe=P[K]=Go(k[K],o_);if(te.min!=null)bn(oe,te);else if(K!=T||p==2)if(An==0&&oe.from==null){let de=oe.range(i,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=wt,oe.max=-wt}}if(An>0){E.forEach((K,te)=>{if(p==1){let oe=K.scale,de=R[oe];if(de==null)return;let be=P[oe];if(te==0){let ke=be.range(i,be.min,be.max,oe);be.min=ke[0],be.max=ke[1],xn=Bi(be.min,e[0]),_n=Bi(be.max,e[0]),_n-xn>1&&(e[0][xn]<be.min&&xn++,e[0][_n]>be.max&&_n--),K.min=Gn[xn],K.max=Gn[_n]}else K.show&&K.auto&&xo(be,de,K,e[te],K.sorted);K.idxs[0]=xn,K.idxs[1]=_n}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,be=oe.scale,ke=de.scale,[$e,Te]=e[te],Le=P[be],Ze=P[ke];Le!=null&&xo(Le,R[be],oe,$e,oe.sorted),Ze!=null&&xo(Ze,R[ke],de,Te,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=R[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(i,te.min==wt?null:te.min,te.max==-wt?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(i,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let j={},Y=!1;for(let K in P){let te=P[K],oe=k[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let de=oe.distr;oe._min=de==3?hr(oe.min):de==4?wu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?hr(oe.max):de==4?wu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,j[K]=Y=!0}}if(Y){E.forEach((K,te)=>{p==2?te>0&&j.y&&(K._paths=null):j[K.scale]&&(K._paths=null)});for(let K in j)Kt=!0,un("setScale",K);je.show&&je.left>=0&&(Vn=ai=!0)}for(let K in R)R[K]=null}function ss(P){let j=xu(xn-1,0,An-1),Y=xu(_n+1,0,An-1);for(;P[j]==null&&j>0;)j--;for(;P[Y]==null&&Y<An-1;)Y++;return[j,Y]}function Hl(){An>0&&(E.forEach((P,j)=>{if(j>0&&P.show&&(Bl(j,!1),Bl(j,!0),P._paths==null)){Ti!=P.alpha&&(a.globalAlpha=Ti=P.alpha);let Y=p==2?[0,e[j][0].length-1]:ss(e[j]);P._paths=P.paths(i,j,Y[0],Y[1]),Ti!=1&&(a.globalAlpha=Ti=1)}}),E.forEach((P,j)=>{if(j>0&&P.show){Ti!=P.alpha&&(a.globalAlpha=Ti=P.alpha),P._paths!=null&&ia(j,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(i,j,xn,_n,Y),te=P.points.filter(i,j,K,Y);(K||te)&&(P.points._paths=P.points.paths(i,j,xn,_n,te),ia(j,!0))}Ti!=1&&(a.globalAlpha=Ti=1),un("drawSeries",j)}}))}function Bl(P,j){let Y=j?E[P].points:E[P];Y._stroke=Y.stroke(i,P),Y._fill=Y.fill(i,P)}function ia(P,j){let Y=j?E[P].points:E[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:be=Y._stroke,_fill:ke=Y._fill,_width:$e=Y.width}=Y._paths;$e=Ft($e*Ct,3);let Te=null,Le=$e%2/2;j&&ke==null&&(ke=$e>0?"#fff":be);let Ze=Y.pxAlign==1&&Le>0;if(Ze&&a.translate(Le,Le),!j){let It=Qe-$e/2,st=mt-$e/2,Ke=vt+$e,Xe=ht+$e;Te=new Path2D,Te.rect(It,st,Ke,Xe)}j?ra(be,$e,Y.dash,Y.cap,ke,K,te,de,oe):jl(P,be,$e,Y.dash,Y.cap,ke,K,te,de,Te,oe),Ze&&a.translate(-Le,-Le)}function jl(P,j,Y,K,te,oe,de,be,ke,$e,Te){let Le=!1;ke!=0&&w.forEach((Ze,It)=>{if(Ze.series[0]==P){let st=E[Ze.series[1]],Ke=e[Ze.series[1]],Xe=(st._paths||Ps).band;Or(Xe)&&(Xe=Ze.dir==1?Xe[0]:Xe[1]);let Ne,At=null;st.show&&Xe&&Xx(Ke,xn,_n)?(At=Ze.fill(i,It)||oe,Ne=st._paths.clip):Xe=null,ra(j,Y,K,te,At,de,be,ke,$e,Te,Ne,Xe),Le=!0}}),Le||ra(j,Y,K,te,oe,de,be,ke,$e,Te)}const as=Ko|Ru;function ra(P,j,Y,K,te,oe,de,be,ke,$e,Te,Le){ta(P,j,Y,K,te),(ke||$e||Le)&&(a.save(),ke&&a.clip(ke),$e&&a.clip($e)),Le?(be&as)==as?(a.clip(Le),Te&&a.clip(Te),Br(te,de),_o(P,oe,j)):be&Ru?(Br(te,de),a.clip(Le),_o(P,oe,j)):be&Ko&&(a.save(),a.clip(Le),Te&&a.clip(Te),Br(te,de),a.restore(),_o(P,oe,j)):(Br(te,de),_o(P,oe,j)),(ke||$e||Le)&&a.restore()}function _o(P,j,Y){Y>0&&(j instanceof Map?j.forEach((K,te)=>{a.strokeStyle=ns=te,a.stroke(K)}):j!=null&&P&&a.stroke(j))}function Br(P,j){j instanceof Map?j.forEach((Y,K)=>{a.fillStyle=Hr=K,a.fill(Y)}):j!=null&&P&&a.fill(j)}function oa(P,j,Y,K){let te=C[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(i,P,j,Y,K),be=te._incrs=te.incrs(i,P,j,Y,K,de);oe=bk(j,Y,be,K,de)}return te._found=oe}function rr(P,j,Y,K,te,oe,de,be,ke,$e){let Te=de%2/2;v==1&&a.translate(Te,Te),ta(be,de,ke,$e,be),a.beginPath();let Le,Ze,It,st,Ke=te+(K==0||K==3?-oe:oe);Y==0?(Ze=te,st=Ke):(Le=te,It=Ke);for(let Xe=0;Xe<P.length;Xe++)j[Xe]!=null&&(Y==0?Le=It=P[Xe]:Ze=st=P[Xe],a.moveTo(Le,Ze),a.lineTo(It,st));a.stroke(),v==1&&a.translate(-Te,-Te)}function zl(P){let j=!0;return C.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(j=!1,Y._show=!1,mr(!1));return}else Y._show||(j=!1,Y._show=!0,mr(!1));let oe=Y.side,de=oe%2,{min:be,max:ke}=te,[$e,Te]=oa(K,be,ke,de==0?Be:We);if(Te==0)return;let Le=te.distr==2,Ze=Y._splits=Y.splits(i,K,be,ke,$e,Te,Le),It=te.distr==2?Ze.map(Ne=>Gn[Ne]):Ze,st=te.distr==2?Gn[Ze[1]]-Gn[Ze[0]]:$e,Ke=Y._values=Y.values(i,Y.filter(i,It,K,Te,st),K,Te,st);Y._rotate=oe==2?Y.rotate(i,Ke,K,Te):0;let Xe=Y._size;Y._size=Ci(Y.size(i,Ke,K,P)),Xe!=null&&Y._size!=Xe&&(j=!1)}),j}function Wl(P){let j=!0;return Nl.forEach((Y,K)=>{let te=Y(i,K,gr,P);te!=ir[K]&&(j=!1),ir[K]=te}),j}function nd(){for(let P=0;P<C.length;P++){let j=C[P];if(!j.show||!j._show)continue;let Y=j.side,K=Y%2,te,oe,de=j.stroke(i,P),be=Y==0||Y==3?-1:1;if(j.label){let Rn=j.labelGap*be,ei=Mn((j._lpos+Rn)*Ct);na(j.labelFont[0],de,"center",Y==2?Ds:Bf),a.save(),K==1?(te=oe=0,a.translate(ei,Mn(mt+ht/2)),a.rotate((Y==3?-il:il)/2)):(te=Mn(Qe+vt/2),oe=ei),a.fillText(j.label,te,oe),a.restore()}let[ke,$e]=j._found;if($e==0)continue;let Te=k[j.scale],Le=K==0?vt:ht,Ze=K==0?Qe:mt,It=Mn(j.gap*Ct),st=j._splits,Ke=Te.distr==2?st.map(Rn=>Gn[Rn]):st,Xe=Te.distr==2?Gn[st[1]]-Gn[st[0]]:ke,Ne=j.ticks,At=j.border,on=Ne.show?Mn(Ne.size*Ct):0,Xt=j._rotate*-il/180,Bt=b(j._pos*Ct),jt=(on+It)*be,ne=Bt+jt;oe=K==0?ne:0,te=K==1?ne:0;let le=j.font[0],se=j.align==1?jo:j.align==2?lu:Xt>0?jo:Xt<0?lu:K==0?"center":Y==3?lu:jo,Me=Xt||K==1?"middle":Y==2?Ds:Bf;na(le,de,se,Me);let He=j.font[1]*j.lineGap,Je=st.map(Rn=>b(d(Rn,Te,Le,Ze))),Et=j._values;for(let Rn=0;Rn<Et.length;Rn++){let ei=Et[Rn];if(ei!=null){K==0?te=Je[Rn]:oe=Je[Rn],ei=""+ei;let In=ei.indexOf(`
|
1408
|
+
`)==-1?[ei]:ei.split(/\n/gm);for(let wi=0;wi<In.length;wi++){let ui=In[wi];Xt?(a.save(),a.translate(te,oe+wi*He),a.rotate(Xt),a.fillText(ui,0,0),a.restore()):a.fillText(ui,te,oe+wi*He)}}}Ne.show&&rr(Je,Ne.filter(i,Ke,P,$e,Xe),K,Y,Bt,on,Ft(Ne.width*Ct,3),Ne.stroke(i,P),Ne.dash,Ne.cap);let et=j.grid;et.show&&rr(Je,et.filter(i,Ke,P,$e,Xe),K,K==0?2:1,K==0?mt:Qe,K==0?ht:vt,Ft(et.width*Ct,3),et.stroke(i,P),et.dash,et.cap),At.show&&rr([Bt],[1],K==0?1:0,K==0?1:2,K==1?mt:Qe,K==1?ht:vt,Ft(At.width*Ct,3),At.stroke(i,P),At.dash,At.cap)}un("drawAxes")}function mr(P){E.forEach((j,Y)=>{Y>0&&(j._paths=null,P&&(p==1?(j.min=null,j.max=null):j.facets.forEach(K=>{K.min=null,K.max=null})))})}let ko=!1,ls=!1,jr=[];function id(){ls=!1;for(let P=0;P<jr.length;P++)un(...jr[P]);jr.length=0}function zr(){ko||(d_(sa),ko=!0)}function rd(P,j=!1){ko=!0,ls=j,P(i),sa(),j&&jr.length>0&&queueMicrotask(id)}i.batch=rd;function sa(){if(dt&&(Pl(),dt=!1),Kt&&(Kh(),Kt=!1),ot){if(Gt(o,jo,cn),Gt(o,Ds,Ve),Gt(o,Is,Be),Gt(o,Os,We),Gt(u,jo,cn),Gt(u,Ds,Ve),Gt(u,Is,Be),Gt(u,Os,We),Gt(c,Is,Tn),Gt(c,Os,ln),l.width=Mn(Tn*Ct),l.height=Mn(ln*Ct),C.forEach(({_el:P,_show:j,_size:Y,_pos:K,side:te})=>{if(P!=null)if(j){let oe=te===3||te===0?Y:0,de=te%2==1;Gt(P,de?"left":"top",K-oe),Gt(P,de?"width":"height",Y),Gt(P,de?"top":"left",de?Ve:cn),Gt(P,de?"height":"width",de?We:Be),fu(P,co)}else mi(P,co)}),ns=Hr=is=os=Zs=Js=Xs=ea=rs=null,Ti=1,$o(!0),cn!=ce||Ve!=Ee||Be!=Ie||We!=Ye){mr(!1);let P=Be/Ie,j=We/Ye;if(je.show&&!Vn&&je.left>=0){je.left*=P,je.top*=j,Wr&&Qi(Wr,Mn(je.left),0,Be,We),or&&Qi(or,0,Mn(je.top),Be,We);for(let Y=0;Y<qn.length;Y++){let K=qn[Y];K!=null&&(Nr[Y]*=P,Fr[Y]*=j,Qi(K,Ci(Nr[Y]),Ci(Fr[Y]),Be,We))}}if(Ht.show&&!pr&&Ht.left>=0&&Ht.width>0){Ht.left*=P,Ht.width*=P,Ht.top*=j,Ht.height*=j;for(let Y in da)Gt(vr,Y,Ht[Y])}ce=cn,Ee=Ve,Ie=Be,Ye=We}un("setSize"),ot=!1}Tn>0&&ln>0&&(a.clearRect(0,0,l.width,l.height),un("drawClear"),I.forEach(P=>P()),un("draw")),Ht.show&&pr&&(cs(Ht),pr=!1),je.show&&Vn&&(Yn(null,!0,!1),Vn=!1),X.show&&X.live&&ai&&(So(),ai=!1),g||(g=!0,i.status=1,un("ready")),bo=!1,ko=!1}i.redraw=(P,j)=>{Kt=j||!1,P!==!1?Ai(T,N.min,N.max):zr()};function aa(P,j){let Y=k[P];if(Y.from==null){if(An==0){let K=Y.range(i,j.min,j.max,P);j.min=K[0],j.max=K[1]}if(j.min>j.max){let K=j.min;j.min=j.max,j.max=K}if(An>1&&j.min!=null&&j.max!=null&&j.max-j.min<1e-16)return;P==T&&Y.distr==2&&An>0&&(j.min=Bi(j.min,e[0]),j.max=Bi(j.max,e[0]),j.min==j.max&&j.max++),R[P]=j,dt=!0,zr()}}i.setScale=aa;let la,ca,Wr,or,Ul,Vl,Ur,Vr,ql,Dt,ze,Vt,sr=!1;const En=je.drag;let kn=En.x,Sn=En.y;je.show&&(je.x&&(la=$i(Fx,u)),je.y&&(ca=$i(Px,u)),N.ori==0?(Wr=la,or=ca):(Wr=ca,or=la),ze=je.left,Vt=je.top);const Ht=i.select=bn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),vr=Ht.show?$i(Nx,Ht.over?u:o):null;function cs(P,j){if(Ht.show){for(let Y in P)Ht[Y]=P[Y],Y in da&&Gt(vr,Y,P[Y]);j!==!1&&un("setSelect")}}i.setSelect=cs;function Ln(P,j){let Y=E[P],K=G?me[P]:null;if(Y.show)K&&fu(K,co);else{K&&mi(K,co);let te=Dr?qn[0]:qn[P];Qi(te,-10,-10,Be,We)}}function Ai(P,j,Y){aa(P,{min:j,max:Y})}function Pn(P,j,Y,K){j.focus!=null&&Kl(P),j.show!=null&&E.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=j.show,Ln(oe,j.show),p==2?(Ai(te.facets[0].scale,null,null),Ai(te.facets[1].scale,null,null)):Ai(te.scale,null,null),zr())}),Y!==!1&&un("setSeries",P,j),K&&Wi("setSeries",i,P,j)}i.setSeries=Pn;function Gl(P,j){bn(w[P],j)}function ua(P,j){P.fill=xt(P.fill||null),P.dir=$t(P.dir,-1),j=j??w.length,w.splice(j,0,P)}function li(P){P==null?w.length=0:w.splice(P,1)}i.addBand=ua,i.setBand=Gl,i.delBand=li;function Yl(P,j){E[P].alpha=j,je.show&&qn[P]&&(qn[P].style.opacity=j),G&&me[P]&&(me[P].style.opacity=j)}let Ei,zi,ar;const yr={focus:!0};function Kl(P){if(P!=ar){let j=P==null,Y=tr.alpha!=1;E.forEach((K,te)=>{if(p==1||te>0){let oe=j||te==0||te==P;K._focus=j?null:oe,Y&&Yl(te,oe?1:tr.alpha)}}),ar=P,Y&&zr()}}G&&nr&&nn(Vf,ie,P=>{je._lock||(fr(P),ar!=null&&Pn(null,yr,!0,rn.setSeries))});function Jt(P,j,Y){let K=k[j];Y&&(P=P/Ct-(K.ori==1?Ve:cn));let te=Be;K.ori==1&&(te=We,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,be=P/te,ke=oe+(de-oe)*be,$e=K.distr;return $e==3?Vo(10,ke):$e==4?t_(ke,K.asinh):$e==100?K.bwd(ke):ke}function od(P,j){let Y=Jt(P,T,j);return Bi(Y,e[0],xn,_n)}i.valToIdx=P=>Bi(P,e[0]),i.posToIdx=od,i.posToVal=Jt,i.valToPos=(P,j,Y)=>k[j].ori==0?f(P,k[j],Y?vt:Be,Y?Qe:0):y(P,k[j],Y?ht:We,Y?mt:0),i.setCursor=(P,j,Y)=>{ze=P.left,Vt=P.top,Yn(null,j,Y)};function Xn(P,j){Gt(vr,jo,Ht.left=P),Gt(vr,Is,Ht.width=j)}function Ql(P,j){Gt(vr,Ds,Ht.top=P),Gt(vr,Os,Ht.height=j)}let qr=N.ori==0?Xn:Ql,ci=N.ori==1?Xn:Ql;function us(){if(G&&X.live)for(let P=p==2?1:0;P<E.length;P++){if(P==0&&Ce)continue;let j=X.values[P],Y=0;for(let K in j)ye[P][Y++].firstChild.nodeValue=j[K]}}function So(P,j){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):r_(P.idx)||q.fill(P.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<E.length;Y++)(Y>0||p==1&&!Ce)&&qt(Y,q[Y]);us()}ai=!1,j!==!1&&un("setLegend")}i.setLegend=So;function qt(P,j){let Y=E[P],K=P==0&&S==2?Gn:e[P],te;Ce?te=Y.values(i,P,j)??lt:(te=Y.value(i,j==null?null:K[j],P,j),te=te==null?lt:{_:te}),X.values[P]=te}function Yn(P,j,Y){ql=ze,Dt=Vt,[ze,Vt]=je.move(i,ze,Vt),je.left=ze,je.top=Vt,je.show&&(Wr&&Qi(Wr,Mn(ze),0,Be,We),or&&Qi(or,0,Mn(Vt),Be,We));let K,te=xn>_n;Ei=wt,zi=null;let oe=N.ori==0?Be:We,de=N.ori==1?Be:We;if(ze<0||An==0||te){K=je.idx=null;for(let be=0;be<E.length;be++){let ke=qn[be];ke!=null&&Qi(ke,-10,-10,Be,We)}nr&&Pn(null,yr,!0,P==null&&rn.setSeries),X.live&&(q.fill(K),ai=!0)}else{let be,ke,$e;p==1&&(be=N.ori==0?ze:Vt,ke=Jt(be,T),K=je.idx=Bi(ke,e[0],xn,_n),$e=_(e[0][K],N,oe,0));let Te=-10,Le=-10,Ze=0,It=0,st=!0,Ke="",Xe="";for(let Ne=p==2?1:0;Ne<E.length;Ne++){let At=E[Ne],on=q[Ne],Xt=on==null?null:p==1?e[Ne][on]:e[Ne][1][on],Bt=je.dataIdx(i,Ne,K,ke),jt=Bt==null?null:p==1?e[Ne][Bt]:e[Ne][1][Bt];ai=ai||jt!=Xt||Bt!=on,q[Ne]=Bt;let ne=Bt==K?$e:_(p==1?e[0][Bt]:e[Ne][0][Bt],N,oe,0);if(Ne>0&&At.show){let le=jt==null?-10:$(jt,p==1?k[At.scale]:k[At.facets[1].scale],de,0);if(nr&&jt!=null){let se=N.ori==1?ze:Vt,Me=Cn(tr.dist(i,Ne,Bt,le,se));if(Me<Ei){let He=tr.bias;if(He!=0){let Je=Jt(se,At.scale),Et=jt>=0?1:-1,et=Je>=0?1:-1;et==Et&&(et==1?He==1?jt>=Je:jt<=Je:He==1?jt<=Je:jt>=Je)&&(Ei=Me,zi=Ne)}else Ei=Me,zi=Ne}}if(ai||Dr){let se,Me;N.ori==0?(se=ne,Me=le):(se=le,Me=ne);let He,Je,Et,et,Rn,ei,In=!0,wi=Fn.bbox;if(wi!=null){In=!1;let ui=wi(i,Ne);Et=ui.left,et=ui.top,He=ui.width,Je=ui.height}else Et=se,et=Me,He=Je=Fn.size(i,Ne);if(ei=Fn.fill(i,Ne),Rn=Fn.stroke(i,Ne),Dr)Ne==zi&&Ei<=tr.prox&&(Te=Et,Le=et,Ze=He,It=Je,st=In,Ke=ei,Xe=Rn);else{let ui=qn[Ne];ui!=null&&(Nr[Ne]=Et,Fr[Ne]=et,Jf(ui,He,Je,In),Qf(ui,ei,Rn),Qi(ui,Ci(Et),Ci(et),Be,We))}}}}if(Dr){let Ne=tr.prox,At=ar==null?Ei<=Ne:Ei>Ne||zi!=ar;if(ai||At){let on=qn[0];Nr[0]=Te,Fr[0]=Le,Jf(on,Ze,It,st),Qf(on,Ke,Xe),Qi(on,Ci(Te),Ci(Le),Be,We)}}}if(Ht.show&&sr)if(P!=null){let[be,ke]=rn.scales,[$e,Te]=rn.match,[Le,Ze]=P.cursor.sync.scales,It=P.cursor.drag;if(kn=It._x,Sn=It._y,kn||Sn){let{left:st,top:Ke,width:Xe,height:Ne}=P.select,At=P.scales[Le].ori,on=P.posToVal,Xt,Bt,jt,ne,le,se=be!=null&&$e(be,Le),Me=ke!=null&&Te(ke,Ze);se&&kn?(At==0?(Xt=st,Bt=Xe):(Xt=Ke,Bt=Ne),jt=k[be],ne=_(on(Xt,Le),jt,oe,0),le=_(on(Xt+Bt,Le),jt,oe,0),qr(Mi(ne,le),Cn(le-ne))):qr(0,oe),Me&&Sn?(At==1?(Xt=st,Bt=Xe):(Xt=Ke,Bt=Ne),jt=k[ke],ne=$(on(Xt,Ze),jt,de,0),le=$(on(Xt+Bt,Ze),jt,de,0),ci(Mi(ne,le),Cn(le-ne))):ci(0,de)}else ds()}else{let be=Cn(ql-Ul),ke=Cn(Dt-Vl);if(N.ori==1){let Ze=be;be=ke,ke=Ze}kn=En.x&&be>=En.dist,Sn=En.y&&ke>=En.dist;let $e=En.uni;$e!=null?kn&&Sn&&(kn=be>=$e,Sn=ke>=$e,!kn&&!Sn&&(ke>be?Sn=!0:kn=!0)):En.x&&En.y&&(kn||Sn)&&(kn=Sn=!0);let Te,Le;kn&&(N.ori==0?(Te=Ur,Le=ze):(Te=Vr,Le=Vt),qr(Mi(Te,Le),Cn(Le-Te)),Sn||ci(0,de)),Sn&&(N.ori==1?(Te=Ur,Le=ze):(Te=Vr,Le=Vt),ci(Mi(Te,Le),Cn(Le-Te)),kn||qr(0,oe)),!kn&&!Sn&&(qr(0,0),ci(0,0))}if(En._x=kn,En._y=Sn,P==null){if(Y){if(Kn!=null){let[be,ke]=rn.scales;rn.values[0]=be!=null?Jt(N.ori==0?ze:Vt,be):null,rn.values[1]=ke!=null?Jt(N.ori==1?ze:Vt,ke):null}Wi(zf,i,ze,Vt,Be,We,K)}if(nr){let be=Y&&rn.setSeries,ke=tr.prox;ar==null?Ei<=ke&&Pn(zi,yr,!0,be):Ei>ke?Pn(null,yr,!0,be):zi!=ar&&Pn(zi,yr,!0,be)}}ai&&(X.idx=K,So()),j!==!1&&un("setCursor")}let Li=null;Object.defineProperty(i,"rect",{get(){return Li==null&&$o(!1),Li}});function $o(P=!1){P?Li=null:(Li=u.getBoundingClientRect(),un("syncRect",Li))}function hs(P,j,Y,K,te,oe,de){je._lock||sr&&P!=null&&P.movementX==0&&P.movementY==0||(ha(P,j,Y,K,te,oe,de,!1,P!=null),P!=null?Yn(null,!0,!0):Yn(j,!0,!1))}function ha(P,j,Y,K,te,oe,de,be,ke){if(Li==null&&$o(!1),fr(P),P!=null)Y=P.clientX-Li.left,K=P.clientY-Li.top;else{if(Y<0||K<0){ze=-10,Vt=-10;return}let[$e,Te]=rn.scales,Le=j.cursor.sync,[Ze,It]=Le.values,[st,Ke]=Le.scales,[Xe,Ne]=rn.match,At=j.axes[0].side%2==1,on=N.ori==0?Be:We,Xt=N.ori==1?Be:We,Bt=At?oe:te,jt=At?te:oe,ne=At?K:Y,le=At?Y:K;if(st!=null?Y=Xe($e,st)?d(Ze,k[$e],on,0):-10:Y=on*(ne/Bt),Ke!=null?K=Ne(Te,Ke)?d(It,k[Te],Xt,0):-10:K=Xt*(le/jt),N.ori==1){let se=Y;Y=K,K=se}}ke&&((Y<=1||Y>=Be-1)&&(Y=po(Y,Be)),(K<=1||K>=We-1)&&(K=po(K,We))),be?(Ul=Y,Vl=K,[Ur,Vr]=je.move(i,Y,K)):(ze=Y,Vt=K)}const da={width:0,height:0,left:0,top:0};function ds(){cs(da,!1)}let pa,Co,br,Zl;function fa(P,j,Y,K,te,oe,de){sr=!0,kn=Sn=En._x=En._y=!1,ha(P,j,Y,K,te,oe,de,!0,!1),P!=null&&(nn(uu,du,ga,!1),Wi(Wf,i,Ur,Vr,Be,We,null));let{left:be,top:ke,width:$e,height:Te}=Ht;pa=be,Co=ke,br=$e,Zl=Te,ds()}function ga(P,j,Y,K,te,oe,de){sr=En._x=En._y=!1,ha(P,j,Y,K,te,oe,de,!1,!0);let{left:be,top:ke,width:$e,height:Te}=Ht,Le=$e>0||Te>0,Ze=pa!=be||Co!=ke||br!=$e||Zl!=Te;if(Le&&Ze&&cs(Ht),En.setScale&&Le&&Ze){let It=be,st=$e,Ke=ke,Xe=Te;if(N.ori==1&&(It=ke,st=Te,Ke=be,Xe=$e),kn&&Ai(T,Jt(It,T),Jt(It+st,T)),Sn)for(let Ne in k){let At=k[Ne];Ne!=T&&At.from==null&&At.min!=wt&&Ai(Ne,Jt(Ke+Xe,Ne),Jt(Ke,Ne))}ds()}else je.lock&&(je._lock=!je._lock,Yn(null,!0,!1));P!=null&&(er(uu,du),Wi(uu,i,ze,Vt,Be,We,null))}function ma(P,j,Y,K,te,oe,de){if(je._lock)return;fr(P);let be=sr;if(sr){let ke=!0,$e=!0,Te=10,Le,Ze;N.ori==0?(Le=kn,Ze=Sn):(Le=Sn,Ze=kn),Le&&Ze&&(ke=ze<=Te||ze>=Be-Te,$e=Vt<=Te||Vt>=We-Te),Le&&ke&&(ze=ze<Ur?0:Be),Ze&&$e&&(Vt=Vt<Vr?0:We),Yn(null,!0,!0),sr=!1}ze=-10,Vt=-10,Yn(null,!0,!0),be&&(sr=be)}function ps(P,j,Y,K,te,oe,de){je._lock||(fr(P),Qs(),ds(),P!=null&&Wi(qf,i,ze,Vt,Be,We,null))}function va(){C.forEach(wk),Ys(i.width,i.height,!0)}uo(Xa,Wo,va);const Gr={};Gr.mousedown=fa,Gr.mousemove=hs,Gr.mouseup=ga,Gr.dblclick=ps,Gr.setSeries=(P,j,Y,K)=>{let te=rn.match[2];Y=te(i,j,Y),Y!=-1&&Pn(Y,K,!0,!1)},je.show&&(nn(Wf,u,fa),nn(zf,u,hs),nn(Uf,u,P=>{fr(P),$o(!1)}),nn(Vf,u,ma),nn(qf,u,ps),Nu.add(i),i.syncRect=$o);const Yr=i.hooks=n.hooks||{};function un(P,j,Y){ls?jr.push([P,j,Y]):P in Yr&&Yr[P].forEach(K=>{K.call(null,i,j,Y)})}(n.plugins||[]).forEach(P=>{for(let j in P.hooks)Yr[j]=(Yr[j]||[]).concat(P.hooks[j])});const Jl=(P,j,Y)=>Y,rn=bn({key:null,setSeries:!1,filters:{pub:sg,sub:sg},scales:[T,E[1]?E[1].scale:null],match:[ag,ag,Jl],values:[null,null]},je.sync);rn.match.length==2&&rn.match.push(Jl),je.sync=rn;const Kn=rn.key,Mo=Vg(Kn);function Wi(P,j,Y,K,te,oe,de){rn.filters.pub(P,j,Y,K,te,oe,de)&&Mo.pub(P,j,Y,K,te,oe,de)}Mo.sub(i);function Xl(P,j,Y,K,te,oe,de){rn.filters.sub(P,j,Y,K,te,oe,de)&&Gr[P](null,j,Y,K,te,oe,de)}i.pub=Xl;function ec(){Mo.unsub(i),Nu.delete(i),Pt.clear(),mu(Xa,Wo,va),s.remove(),ie==null||ie.remove(),un("destroy")}i.destroy=ec;function ya(){un("init",n,e),wo(e||n.data,!1),R[T]?aa(T,R[T]):Qs(),pr=Ht.show&&(Ht.width>0||Ht.height>0),Vn=ai=!0,Ys(n.width,n.height)}return E.forEach(Dl),C.forEach(td),t?t instanceof HTMLElement?(t.appendChild(s),ya()):t(i,ya):ya(),i}Wn.assign=bn,Wn.fmtNum=bu,Wn.rangeNum=nl,Wn.rangeLog=tl,Wn.rangeAsinh=vu,Wn.orient=go,Wn.pxRatio=Ct,Wn.join=h_,Wn.fmtDate=ku,Wn.tzDate=__,Wn.sync=Vg;{Wn.addGap=rk,Wn.clipGaps=cl;let n=Wn.paths={points:Jg};n.linear=em,n.stepped=ak,n.bars=lk,n.spline=uk}var lm,cm;function xk(){return cm||(cm=1,lm=function(n,e,t,i,p){var h,f;if(i===void 0)i=0;else if(i=i|0,i<0||i>=n.length)throw new RangeError("invalid lower bound");if(p===void 0)p=n.length-1;else if(p=p|0,p<i||p>=n.length)throw new RangeError("invalid upper bound");for(;i<=p;)if(h=i+(p-i>>>1),f=+t(n[h],e,h,n),f<0)i=h+1;else if(f>0)p=h-1;else return h;return~i}),lm}var _k=xk();const iO=Dn("c",Na(_k));var Pu,um;function kk(){if(um)return Pu;um=1;function n(e,t,i){var p=-1,h=e.length;t<0&&(t=-t>h?0:h+t),i=i>h?h:i,i<0&&(i+=h),h=t>i?0:i-t>>>0,t>>>=0;for(var f=Array(h);++p<h;)f[p]=e[p+t];return f}return Pu=n,Pu}var Hu,hm;function Sk(){if(hm)return Hu;hm=1;var n=kk();function e(t,i,p){var h=t.length;return p=p===void 0?h:p,!i&&p>=h?t:n(t,i,p)}return Hu=e,Hu}var Bu,dm;function pm(){if(dm)return Bu;dm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",p=e+t+i,h="\\ufe0e\\ufe0f",f="\\u200d",y=RegExp("["+f+n+p+h+"]");function d(g){return y.test(g)}return Bu=d,Bu}var ju,fm;function $k(){if(fm)return ju;fm=1;function n(e){return e.split("")}return ju=n,ju}var zu,gm;function Ck(){if(gm)return zu;gm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",p=e+t+i,h="\\ufe0e\\ufe0f",f="["+n+"]",y="["+p+"]",d="\\ud83c[\\udffb-\\udfff]",g="(?:"+y+"|"+d+")",s="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",o=g+"?",u="["+h+"]?",v="(?:"+c+"(?:"+[s,l,a].join("|")+")"+u+o+")*",b=u+o+v,x="(?:"+[s+y+"?",y,l,a,f].join("|")+")",E=RegExp(d+"(?="+d+")|"+x+b,"g");function C(k){return k.match(E)||[]}return zu=C,zu}var Wu,mm;function Mk(){if(mm)return Wu;mm=1;var n=$k(),e=pm(),t=Ck();function i(p){return e(p)?t(p):n(p)}return Wu=i,Wu}var Uu,vm;function Tk(){if(vm)return Uu;vm=1;var n=typeof Rr=="object"&&Rr&&Rr.Object===Object&&Rr;return Uu=n,Uu}var Vu,ym;function Ak(){if(ym)return Vu;ym=1;var n=Tk(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Vu=t,Vu}var qu,bm;function Gu(){if(bm)return qu;bm=1;var n=Ak(),e=n.Symbol;return qu=e,qu}var Yu,wm;function Ek(){if(wm)return Yu;wm=1;function n(e,t){for(var i=-1,p=e==null?0:e.length,h=Array(p);++i<p;)h[i]=t(e[i],i,e);return h}return Yu=n,Yu}var Ku,xm;function Lk(){if(xm)return Ku;xm=1;var n=Array.isArray;return Ku=n,Ku}var Qu,_m;function Rk(){if(_m)return Qu;_m=1;var n=Gu(),e=Object.prototype,t=e.hasOwnProperty,i=e.toString,p=n?n.toStringTag:void 0;function h(f){var y=t.call(f,p),d=f[p];try{f[p]=void 0;var g=!0}catch{}var s=i.call(f);return g&&(y?f[p]=d:delete f[p]),s}return Qu=h,Qu}var Zu,km;function Ik(){if(km)return Zu;km=1;var n=Object.prototype,e=n.toString;function t(i){return e.call(i)}return Zu=t,Zu}var Ju,Sm;function Ok(){if(Sm)return Ju;Sm=1;var n=Gu(),e=Rk(),t=Ik(),i="[object Null]",p="[object Undefined]",h=n?n.toStringTag:void 0;function f(y){return y==null?y===void 0?p:i:h&&h in Object(y)?e(y):t(y)}return Ju=f,Ju}var Xu,$m;function Dk(){if($m)return Xu;$m=1;function n(e){return e!=null&&typeof e=="object"}return Xu=n,Xu}var eh,Cm;function Nk(){if(Cm)return eh;Cm=1;var n=Ok(),e=Dk(),t="[object Symbol]";function i(p){return typeof p=="symbol"||e(p)&&n(p)==t}return eh=i,eh}var th,Mm;function Fk(){if(Mm)return th;Mm=1;var n=Gu(),e=Ek(),t=Lk(),i=Nk(),p=1/0,h=n?n.prototype:void 0,f=h?h.toString:void 0;function y(d){if(typeof d=="string")return d;if(t(d))return e(d,y)+"";if(i(d))return f?f.call(d):"";var g=d+"";return g=="0"&&1/d==-p?"-0":g}return th=y,th}var nh,Tm;function pl(){if(Tm)return nh;Tm=1;var n=Fk();function e(t){return t==null?"":n(t)}return nh=e,nh}var ih,Am;function Pk(){if(Am)return ih;Am=1;var n=Sk(),e=pm(),t=Mk(),i=pl();function p(h){return function(f){f=i(f);var y=e(f)?t(f):void 0,d=y?y[0]:f.charAt(0),g=y?n(y,1).join(""):f.slice(1);return d[h]()+g}}return ih=p,ih}var rh,Em;function Lm(){if(Em)return rh;Em=1;var n=Pk(),e=n("toUpperCase");return rh=e,rh}var Hk=Lm();const Bk=Na(Hk);var oh,Rm;function jk(){if(Rm)return oh;Rm=1;var n=pl(),e=Lm();function t(i){return e(n(i).toLowerCase())}return oh=t,oh}var sh,Im;function zk(){if(Im)return sh;Im=1;function n(e,t,i,p){var h=-1,f=e==null?0:e.length;for(p&&f&&(i=e[++h]);++h<f;)i=t(i,e[h],h,e);return i}return sh=n,sh}var ah,Om;function Wk(){if(Om)return ah;Om=1;function n(e){return function(t){return e==null?void 0:e[t]}}return ah=n,ah}var lh,Dm;function Uk(){if(Dm)return lh;Dm=1;var n=Wk(),e={À:"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"},t=n(e);return lh=t,lh}var ch,Nm;function Vk(){if(Nm)return ch;Nm=1;var n=Uk(),e=pl(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",h="\\u20d0-\\u20ff",f=i+p+h,y="["+f+"]",d=RegExp(y,"g");function g(s){return s=e(s),s&&s.replace(t,n).replace(d,"")}return ch=g,ch}var uh,Fm;function qk(){if(Fm)return uh;Fm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(t){return t.match(n)||[]}return uh=e,uh}var hh,Pm;function Gk(){if(Pm)return hh;Pm=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(t){return n.test(t)}return hh=e,hh}var dh,Hm;function Yk(){if(Hm)return dh;Hm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",p=e+t+i,h="\\u2700-\\u27bf",f="a-z\\xdf-\\xf6\\xf8-\\xff",y="\\xac\\xb1\\xd7\\xf7",d="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",s=" \\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",l="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",c=y+d+g+s,o="['’]",u="["+c+"]",v="["+p+"]",b="\\d+",x="["+h+"]",E="["+f+"]",C="[^"+n+c+b+h+f+l+"]",k="\\ud83c[\\udffb-\\udfff]",w="(?:"+v+"|"+k+")",T="[^"+n+"]",L="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",A="["+l+"]",N="\\u200d",S="(?:"+E+"|"+C+")",_="(?:"+A+"|"+C+")",$="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",R="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=w+"?",F="["+a+"]?",H="(?:"+N+"(?:"+[T,L,I].join("|")+")"+F+O+")*",W="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+H,X="(?:"+[x,L,I].join("|")+")"+q,G=RegExp([A+"?"+E+"+"+$+"(?="+[u,A,"$"].join("|")+")",_+"+"+R+"(?="+[u,A+S,"$"].join("|")+")",A+"?"+S+"+"+$,A+"+"+R,V,W,b,X].join("|"),"g");function Z(ie){return ie.match(G)||[]}return dh=Z,dh}var ph,Bm;function Kk(){if(Bm)return ph;Bm=1;var n=qk(),e=Gk(),t=pl(),i=Yk();function p(h,f,y){return h=t(h),f=y?void 0:f,f===void 0?e(h)?i(h):n(h):h.match(f)||[]}return ph=p,ph}var fh,jm;function Qk(){if(jm)return fh;jm=1;var n=zk(),e=Vk(),t=Kk(),i="['’]",p=RegExp(i,"g");function h(f){return function(y){return n(t(e(y).replace(p,"")),f,"")}}return fh=h,fh}var gh,zm;function Zk(){if(zm)return gh;zm=1;var n=jk(),e=Qk(),t=e(function(i,p,h){return p=p.toLowerCase(),i+(h?n(p):p)});return gh=t,gh}var Jk=Zk();const Xk=Na(Jk),eS=Object.assign({"./ArrayWidget.vue":()=>De(()=>Oe.import("./ArrayWidget-BTxChSds-e9bc6948cfc94ea6c8ea.js"),void 0),"./BlockWidget.vue":()=>De(()=>Oe.import("./BlockWidget-PmjzrkXF-c80c9d1c463d83528a3d.js"),void 0),"./ButtonWidget.vue":()=>De(()=>Oe.import("./ButtonWidget-nwDlOBJT-d16fb6a24cef7c5b624b.js"),void 0),"./CanvasWidget.vue":()=>De(()=>Oe.import("./CanvasWidget-BL8930eT-7c425befd858deae2375.js"),void 0),"./CanvasdotWidget.vue":()=>De(()=>Oe.import("./CanvasdotWidget-VCf1fL-G-175f4d8d2fe3d73133b7.js"),void 0),"./CanvasimageWidget.vue":()=>De(()=>Oe.import("./CanvasimageWidget-BIw7Wbf2-675b82c793c05652c4e4.js"),void 0),"./CanvasimagevalueWidget.vue":()=>De(()=>Oe.import("./CanvasimagevalueWidget-CE3Dj5bH-4c7da53208143de275fb.js"),void 0),"./CanvaslabelWidget.vue":()=>De(()=>Oe.import("./CanvaslabelWidget-DWmb356h-27386996b1e22521d68a.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>De(()=>Oe.import("./CanvaslabelvalueWidget-CI3yYwFs-106dd8676e7059142aeb.js"),void 0),"./CanvaslineWidget.vue":()=>De(()=>Oe.import("./CanvaslineWidget-COeapH3P-454440a3cbef96b78149.js"),void 0),"./CanvaslinevalueWidget.vue":()=>De(()=>Oe.import("./CanvaslinevalueWidget-CI-Bbzfi-c196fded05e85ca64b76.js"),void 0),"./CheckbuttonWidget.vue":()=>De(()=>Oe.import("./CheckbuttonWidget-BQhggcZ2-fe79147a6042d06deb71.js"),void 0),"./ComboboxWidget.vue":()=>De(()=>Oe.import("./ComboboxWidget-BzsbOv54-19196e0faa887589be04.js"),void 0),"./DateWidget.vue":()=>De(()=>Oe.import("./DateWidget-B5R_9rA8-6d87b2b38b75a9f194f0.js"),void 0),"./DynamicWidget.vue":()=>De(()=>Oe.import("./DynamicWidget-m9EliUR2-e3f3eb1367b6fc62b4f4.js"),void 0),"./FormatvalueWidget.vue":()=>De(()=>Oe.import("./FormatvalueWidget-DZkRJce8-29bc510b6fee4be432b3.js"),void 0),"./HorizontalWidget.vue":()=>De(()=>Oe.import("./HorizontalWidget-CirtfuL8-981280ce431e3a0ea8a4.js"),void 0),"./HorizontalboxWidget.vue":()=>De(()=>Oe.import("./HorizontalboxWidget-CyTDt2nl-1db32d80217737537afb.js"),void 0),"./HorizontallineWidget.vue":()=>De(()=>Oe.import("./HorizontallineWidget-BdlNB951-08181cb1762ec42b7083.js"),void 0),"./IframeWidget.vue":()=>De(()=>Oe.import("./IframeWidget-DnJmCrCA-669adff673891b6a1695.js"),void 0),"./ImageviewerWidget.vue":()=>De(()=>Oe.import("./ImageviewerWidget-DIkmb_C9-8346469a4ad561e7a78b.js"),void 0),"./LabelWidget.vue":()=>De(()=>Oe.import("./LabelWidget-BDsypYho-e74513b75a138300eda4.js"),void 0),"./LabelledWidget.vue":()=>De(()=>Oe.import("./LabelledWidget-DjturGl5-f58bc223d97e08fd542a.js"),void 0),"./LabelprogressbarWidget.vue":()=>De(()=>Oe.import("./LabelprogressbarWidget-RADJGLj3-f059a9ff279f759d38fc.js"),void 0),"./LabelsparklineWidget.vue":()=>De(()=>Oe.import("./LabelsparklineWidget-BlJoICxu-13bf91cc93e846f7699e.js"),void 0),"./LabelvalueWidget.vue":()=>De(()=>Oe.import("./LabelvalueWidget-DVWJqnlY-b0232700037d1bb6b7b6.js"),void 0),"./LabelvaluedescWidget.vue":()=>De(()=>Oe.import("./LabelvaluedescWidget-CsUP7J4U-c46a707153bfa07e40b3.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>De(()=>Oe.import("./LabelvaluelimitsbarWidget-Blj1QXV8-b2889d7dd9e0adb31527.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>De(()=>Oe.import("./LabelvaluelimitscolumnWidget-CvCo-uCe-1725d487ee051e88eeee.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>De(()=>Oe.import("./LabelvaluerangebarWidget-DpcXhlfF-20dc9151170423e55774.js"),void 0),"./LedWidget.vue":()=>De(()=>Oe.import("./LedWidget-B_K2e5tq-e1a5d6fa7037166a47ef.js"),void 0),"./LimitsbarWidget.vue":()=>De(()=>Oe.import("./LimitsbarWidget-DXbqsi4J-d4cab330a230750fd898.js"),void 0),"./LimitscolorWidget.vue":()=>De(()=>Oe.import("./LimitscolorWidget-Ckmuw0YX-9186aec847ec6a5bfc9e.js"),void 0),"./LimitscolumnWidget.vue":()=>De(()=>Oe.import("./LimitscolumnWidget-BfY4su5U-1c6e4848809e88a5260e.js"),void 0),"./LinegraphWidget.vue":()=>De(()=>Oe.import("./LinegraphWidget-y-Qy9P0R-cd2f04586aef988a58a9.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>De(()=>Oe.import("./MatrixbycolumnsWidget-BTBColrs-fea73244eb707601aeea.js"),void 0),"./ProgressbarWidget.vue":()=>De(()=>Oe.import("./ProgressbarWidget-DpA_-vy9-a9f80bf0377e829b78e4.js"),void 0),"./RadiobuttonWidget.vue":()=>De(()=>Oe.import("./RadiobuttonWidget-BO8zpgwW-84a3f731c673059c0393.js"),void 0),"./RadiogroupWidget.vue":()=>De(()=>Oe.import("./RadiogroupWidget-Oy7V4S-V-b80e9e6044d42dbb6003.js"),void 0),"./RangebarWidget.vue":()=>De(()=>Oe.import("./RangebarWidget-DHS7S3vI-f79443d06bda1ec7b512.js"),void 0),"./RollupWidget.vue":()=>De(()=>Oe.import("./RollupWidget-CTk9Kjwr-2b0cb75af9296f391f66.js"),void 0),"./ScrollwindowWidget.vue":()=>De(()=>Oe.import("./ScrollwindowWidget-DD0TOW6s-74997dd2355435e39c51.js"),void 0),"./SignalWidget.vue":()=>De(()=>Oe.import("./SignalWidget-CC33KMTW-b72d958b3093cc84c5a8.js"),void 0),"./SpacerWidget.vue":()=>De(()=>Oe.import("./SpacerWidget-BnJe_Hq6-8227c31e3ee431aabe0b.js"),void 0),"./SparklineWidget.vue":()=>De(()=>Oe.import("./SparklineWidget-DMvMQCPm-8b9d64dc2d6f09e95fd3.js"),void 0),"./TabbookWidget.vue":()=>De(()=>Oe.import("./TabbookWidget-B3w0JtWe-dc6cbcfea02b50002ecf.js"),void 0),"./TextboxWidget.vue":()=>De(()=>Oe.import("./TextboxWidget-D2f0-eol-c677022753c77473b718.js"),void 0),"./TextfieldWidget.vue":()=>De(()=>Oe.import("./TextfieldWidget-DXSdgqVP-ee0eeca9be6f669c081c.js"),void 0),"./TimeWidget.vue":()=>De(()=>Oe.import("./TimeWidget-DvrRaEMz-d4257dcc7dac23d0f759.js"),void 0),"./TitleWidget.vue":()=>De(()=>Oe.import("./TitleWidget-DqViFQl--5330d5a64637d7951419.js"),void 0),"./ValueWidget.vue":()=>De(()=>Oe.import("./ValueWidget-KLYY8L8U-7e154a7868618ab3cca1.js"),void 0),"./ValuelimitsbarWidget.vue":()=>De(()=>Oe.import("./ValuelimitsbarWidget-SR8XNZFB-95640fde4e539f355d39.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>De(()=>Oe.import("./ValuelimitscolumnWidget-xYZSp6YZ-6f04a114c777e09665dd.js"),void 0),"./ValuerangebarWidget.vue":()=>De(()=>Oe.import("./ValuerangebarWidget-B6M02a9d-51d2f42c3985e1d08101.js"),void 0),"./VerticalWidget.vue":()=>De(()=>Oe.import("./VerticalWidget-z6xUM-ql-ae963987b8cf0c0e3f98.js"),void 0),"./VerticalboxWidget.vue":()=>De(()=>Oe.import("./VerticalboxWidget-3a9cVsW--2471ab4dfbbe133b4e9b.js"),void 0)}),tS=Object.entries(eS).reduce((n,[e,t])=>{e=e.split("/").pop();const i=Bk(Xk(e.replace(/\.\w+$/,"")));return{...n,[i]:Xd(t)}},{}),rO=Dn("B",{components:tS});function Wm(n,e){return function(){return n.apply(e,arguments)}}const{toString:nS}=Object.prototype,{getPrototypeOf:mh}=Object,fl=(n=>e=>{const t=nS.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ji=n=>(n=n.toLowerCase(),e=>fl(e)===n),gl=n=>e=>typeof e===n,{isArray:Jo}=Array,js=gl("undefined");function iS(n){return n!==null&&!js(n)&&n.constructor!==null&&!js(n.constructor)&&bi(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Um=ji("ArrayBuffer");function rS(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Um(n.buffer),e}const oS=gl("string"),bi=gl("function"),Vm=gl("number"),ml=n=>n!==null&&typeof n=="object",sS=n=>n===!0||n===!1,vl=n=>{if(fl(n)!=="object")return!1;const e=mh(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},aS=ji("Date"),lS=ji("File"),cS=ji("Blob"),uS=ji("FileList"),hS=n=>ml(n)&&bi(n.pipe),dS=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||bi(n.append)&&((e=fl(n))==="formdata"||e==="object"&&bi(n.toString)&&n.toString()==="[object FormData]"))},pS=ji("URLSearchParams"),[fS,gS,mS,vS]=["ReadableStream","Request","Response","Headers"].map(ji),yS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let i,p;if(typeof n!="object"&&(n=[n]),Jo(n))for(i=0,p=n.length;i<p;i++)e.call(null,n[i],i,n);else{const h=t?Object.getOwnPropertyNames(n):Object.keys(n),f=h.length;let y;for(i=0;i<f;i++)y=h[i],e.call(null,n[y],y,n)}}function qm(n,e){e=e.toLowerCase();const t=Object.keys(n);let i=t.length,p;for(;i-- >0;)if(p=t[i],e===p.toLowerCase())return p;return null}const mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gm=n=>!js(n)&&n!==mo;function vh(){const{caseless:n}=Gm(this)&&this||{},e={},t=(i,p)=>{const h=n&&qm(e,p)||p;vl(e[h])&&vl(i)?e[h]=vh(e[h],i):vl(i)?e[h]=vh({},i):Jo(i)?e[h]=i.slice():e[h]=i};for(let i=0,p=arguments.length;i<p;i++)arguments[i]&&zs(arguments[i],t);return e}const bS=(n,e,t,{allOwnKeys:i}={})=>(zs(e,(p,h)=>{t&&bi(p)?n[h]=Wm(p,t):n[h]=p},{allOwnKeys:i}),n),wS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),xS=(n,e,t,i)=>{n.prototype=Object.create(e.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},_S=(n,e,t,i)=>{let p,h,f;const y={};if(e=e||{},n==null)return e;do{for(p=Object.getOwnPropertyNames(n),h=p.length;h-- >0;)f=p[h],(!i||i(f,n,e))&&!y[f]&&(e[f]=n[f],y[f]=!0);n=t!==!1&&mh(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},kS=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const i=n.indexOf(e,t);return i!==-1&&i===t},SS=n=>{if(!n)return null;if(Jo(n))return n;let e=n.length;if(!Vm(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},$S=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&mh(Uint8Array)),CS=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=t.next())&&!i.done;){const p=i.value;e.call(n,p[0],p[1])}},MS=(n,e)=>{let t;const i=[];for(;(t=n.exec(e))!==null;)i.push(t);return i},TS=ji("HTMLFormElement"),AS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,i){return t.toUpperCase()+i}),Ym=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),ES=ji("RegExp"),Km=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),i={};zs(t,(p,h)=>{let f;(f=e(p,h,n))!==!1&&(i[h]=f||p)}),Object.defineProperties(n,i)},LS=n=>{Km(n,(e,t)=>{if(bi(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const i=n[t];if(bi(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},RS=(n,e)=>{const t={},i=p=>{p.forEach(h=>{t[h]=!0})};return Jo(n)?i(n):i(String(n).split(e)),t},IS=()=>{},OS=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,yh="abcdefghijklmnopqrstuvwxyz",Qm="0123456789",Zm={DIGIT:Qm,ALPHA:yh,ALPHA_DIGIT:yh+yh.toUpperCase()+Qm},DS=(n=16,e=Zm.ALPHA_DIGIT)=>{let t="";const{length:i}=e;for(;n--;)t+=e[Math.random()*i|0];return t};function NS(n){return!!(n&&bi(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const FS=n=>{const e=new Array(10),t=(i,p)=>{if(ml(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[p]=i;const h=Jo(i)?[]:{};return zs(i,(f,y)=>{const d=t(f,p+1);!js(d)&&(h[y]=d)}),e[p]=void 0,h}}return i};return t(n,0)},PS=ji("AsyncFunction"),HS=n=>n&&(ml(n)||bi(n))&&bi(n.then)&&bi(n.catch),Jm=((n,e)=>n?setImmediate:e?((t,i)=>(mo.addEventListener("message",({source:p,data:h})=>{p===mo&&h===t&&i.length&&i.shift()()},!1),p=>{i.push(p),mo.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",bi(mo.postMessage)),BS=typeof queueMicrotask<"u"?queueMicrotask.bind(mo):typeof process<"u"&&process.nextTick||Jm,he={isArray:Jo,isArrayBuffer:Um,isBuffer:iS,isFormData:dS,isArrayBufferView:rS,isString:oS,isNumber:Vm,isBoolean:sS,isObject:ml,isPlainObject:vl,isReadableStream:fS,isRequest:gS,isResponse:mS,isHeaders:vS,isUndefined:js,isDate:aS,isFile:lS,isBlob:cS,isRegExp:ES,isFunction:bi,isStream:hS,isURLSearchParams:pS,isTypedArray:$S,isFileList:uS,forEach:zs,merge:vh,extend:bS,trim:yS,stripBOM:wS,inherits:xS,toFlatObject:_S,kindOf:fl,kindOfTest:ji,endsWith:kS,toArray:SS,forEachEntry:CS,matchAll:MS,isHTMLForm:TS,hasOwnProperty:Ym,hasOwnProp:Ym,reduceDescriptors:Km,freezeMethods:LS,toObjectSet:RS,toCamelCase:AS,noop:IS,toFiniteNumber:OS,findKey:qm,global:mo,isContextDefined:Gm,ALPHABET:Zm,generateString:DS,isSpecCompliantForm:NS,toJSONObject:FS,isAsyncFn:PS,isThenable:HS,setImmediate:Jm,asap:BS};function rt(n,e,t,i,p){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),i&&(this.request=i),p&&(this.response=p,this.status=p.status?p.status:null)}he.inherits(rt,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:he.toJSONObject(this.config),code:this.code,status:this.status}}});const Xm=rt.prototype,e0={};["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(n=>{e0[n]={value:n}}),Object.defineProperties(rt,e0),Object.defineProperty(Xm,"isAxiosError",{value:!0}),rt.from=(n,e,t,i,p,h)=>{const f=Object.create(Xm);return he.toFlatObject(n,f,function(y){return y!==Error.prototype},y=>y!=="isAxiosError"),rt.call(f,n.message,e,t,i,p),f.cause=n,f.name=n.name,h&&Object.assign(f,h),f};const jS=null;function bh(n){return he.isPlainObject(n)||he.isArray(n)}function t0(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function n0(n,e,t){return n?n.concat(e).map(function(i,p){return i=t0(i),!t&&p?"["+i+"]":i}).join(t?".":""):e}function zS(n){return he.isArray(n)&&!n.some(bh)}const WS=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function yl(n,e,t){if(!he.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=he.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!he.isUndefined(o[c])});const i=t.metaTokens,p=t.visitor||g,h=t.dots,f=t.indexes,y=(t.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(e);if(!he.isFunction(p))throw new TypeError("visitor must be a function");function d(c){if(c===null)return"";if(he.isDate(c))return c.toISOString();if(!y&&he.isBlob(c))throw new rt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(c)||he.isTypedArray(c)?y&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,o,u){let v=c;if(c&&!u&&typeof c=="object"){if(he.endsWith(o,"{}"))o=i?o:o.slice(0,-2),c=JSON.stringify(c);else if(he.isArray(c)&&zS(c)||(he.isFileList(c)||he.endsWith(o,"[]"))&&(v=he.toArray(c)))return o=t0(o),v.forEach(function(b,x){!(he.isUndefined(b)||b===null)&&e.append(f===!0?n0([o],x,h):f===null?o:o+"[]",d(b))}),!1}return bh(c)?!0:(e.append(n0(u,o,h),d(c)),!1)}const s=[],l=Object.assign(WS,{defaultVisitor:g,convertValue:d,isVisitable:bh});function a(c,o){if(!he.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(c),he.forEach(c,function(u,v){(!(he.isUndefined(u)||u===null)&&p.call(e,u,he.isString(v)?v.trim():v,o,l))===!0&&a(u,o?o.concat(v):[v])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),e}function i0(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function wh(n,e){this._pairs=[],n&&yl(n,this,e)}const r0=wh.prototype;r0.append=function(n,e){this._pairs.push([n,e])},r0.toString=function(n){const e=n?function(t){return n.call(this,t,i0)}:i0;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function US(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function o0(n,e,t){if(!e)return n;const i=t&&t.encode||US;he.isFunction(t)&&(t={serialize:t});const p=t&&t.serialize;let h;if(p?h=p(e,t):h=he.isURLSearchParams(e)?e.toString():new wh(e,t).toString(i),h){const f=n.indexOf("#");f!==-1&&(n=n.slice(0,f)),n+=(n.indexOf("?")===-1?"?":"&")+h}return n}let s0=class{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,function(t){t!==null&&e(t)})}};const a0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},VS=typeof URLSearchParams<"u"?URLSearchParams:wh,qS=typeof FormData<"u"?FormData:null,GS=typeof Blob<"u"?Blob:null,YS={isBrowser:!0,classes:{URLSearchParams:VS,FormData:qS,Blob:GS},protocols:["http","https","file","blob","url","data"]},xh=typeof window<"u"&&typeof document<"u",_h=typeof navigator=="object"&&navigator||void 0,KS=xh&&(!_h||["ReactNative","NativeScript","NS"].indexOf(_h.product)<0),QS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ZS=xh&&window.location.href||"http://localhost",JS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xh,hasStandardBrowserEnv:KS,hasStandardBrowserWebWorkerEnv:QS,navigator:_h,origin:ZS},Symbol.toStringTag,{value:"Module"})),Un={...JS,...YS};function XS(n,e){return yl(n,new Un.classes.URLSearchParams,Object.assign({visitor:function(t,i,p,h){return Un.isNode&&he.isBuffer(t)?(this.append(i,t.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function e$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function t$(n){const e={},t=Object.keys(n);let i;const p=t.length;let h;for(i=0;i<p;i++)h=t[i],e[h]=n[h];return e}function l0(n){function e(t,i,p,h){let f=t[h++];if(f==="__proto__")return!0;const y=Number.isFinite(+f),d=h>=t.length;return f=!f&&he.isArray(p)?p.length:f,d?(he.hasOwnProp(p,f)?p[f]=[p[f],i]:p[f]=i,!y):((!p[f]||!he.isObject(p[f]))&&(p[f]=[]),e(t,i,p[f],h)&&he.isArray(p[f])&&(p[f]=t$(p[f])),!y)}if(he.isFormData(n)&&he.isFunction(n.entries)){const t={};return he.forEachEntry(n,(i,p)=>{e(e$(i),p,t,0)}),t}return null}function n$(n,e,t){if(he.isString(n))try{return(e||JSON.parse)(n),he.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const Ws={transitional:a0,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",i=t.indexOf("application/json")>-1,p=he.isObject(n);if(p&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return i?JSON.stringify(l0(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let h;if(p){if(t.indexOf("application/x-www-form-urlencoded")>-1)return XS(n,this.formSerializer).toString();if((h=he.isFileList(n))||t.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return yl(h?{"files[]":n}:n,f&&new f,this.formSerializer)}}return p||i?(e.setContentType("application/json",!1),n$(n)):n}],transformResponse:[function(n){const e=this.transitional||Ws.transitional,t=e&&e.forcedJSONParsing,i=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(t&&!this.responseType||i)){const p=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(h){if(p)throw h.name==="SyntaxError"?rt.from(h,rt.ERR_BAD_RESPONSE,this,null,this.response):h}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Un.classes.FormData,Blob:Un.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{Ws.headers[n]={}});const i$=he.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"]),r$=n=>{const e={};let t,i,p;return n&&n.split(`
|
1409
|
+
`).forEach(function(h){p=h.indexOf(":"),t=h.substring(0,p).trim().toLowerCase(),i=h.substring(p+1).trim(),!(!t||e[t]&&i$[t])&&(t==="set-cookie"?e[t]?e[t].push(i):e[t]=[i]:e[t]=e[t]?e[t]+", "+i:i)}),e},c0=Symbol("internals");function Us(n){return n&&String(n).trim().toLowerCase()}function bl(n){return n===!1||n==null?n:he.isArray(n)?n.map(bl):String(n)}function o$(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=t.exec(n);)e[i[1]]=i[2];return e}const s$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function kh(n,e,t,i,p){if(he.isFunction(i))return i.call(this,e,t);if(p&&(e=t),!!he.isString(e)){if(he.isString(i))return e.indexOf(i)!==-1;if(he.isRegExp(i))return i.test(e)}}function a$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}function l$(n,e){const t=he.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+t,{value:function(p,h,f){return this[i].call(this,e,p,h,f)},configurable:!0})})}let si=class{constructor(e){e&&this.set(e)}set(e,t,i){const p=this;function h(y,d,g){const s=Us(d);if(!s)throw new Error("header name must be a non-empty string");const l=he.findKey(p,s);(!l||p[l]===void 0||g===!0||g===void 0&&p[l]!==!1)&&(p[l||d]=bl(y))}const f=(y,d)=>he.forEach(y,(g,s)=>h(g,s,d));if(he.isPlainObject(e)||e instanceof this.constructor)f(e,t);else if(he.isString(e)&&(e=e.trim())&&!s$(e))f(r$(e),t);else if(he.isHeaders(e))for(const[y,d]of e.entries())h(d,y,i);else e!=null&&h(t,e,i);return this}get(e,t){if(e=Us(e),e){const i=he.findKey(this,e);if(i){const p=this[i];if(!t)return p;if(t===!0)return o$(p);if(he.isFunction(t))return t.call(this,p,i);if(he.isRegExp(t))return t.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Us(e),e){const i=he.findKey(this,e);return!!(i&&this[i]!==void 0&&(!t||kh(this,this[i],i,t)))}return!1}delete(e,t){const i=this;let p=!1;function h(f){if(f=Us(f),f){const y=he.findKey(i,f);y&&(!t||kh(i,i[y],y,t))&&(delete i[y],p=!0)}}return he.isArray(e)?e.forEach(h):h(e),p}clear(e){const t=Object.keys(this);let i=t.length,p=!1;for(;i--;){const h=t[i];(!e||kh(this,this[h],h,e,!0))&&(delete this[h],p=!0)}return p}normalize(e){const t=this,i={};return he.forEach(this,(p,h)=>{const f=he.findKey(i,h);if(f){t[f]=bl(p),delete t[h];return}const y=e?a$(h):String(h).trim();y!==h&&delete t[h],t[y]=bl(p),i[y]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(i,p)=>{i!=null&&i!==!1&&(t[p]=e&&he.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
1410
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(p=>i.set(p)),i}static accessor(e){const t=(this[c0]=this[c0]={accessors:{}}).accessors,i=this.prototype;function p(h){const f=Us(h);t[f]||(l$(i,h),t[f]=!0)}return he.isArray(e)?e.forEach(p):p(e),this}};si.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(si.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(i){this[t]=i}}}),he.freezeMethods(si);function Sh(n,e){const t=this||Ws,i=e||t,p=si.from(i.headers);let h=i.data;return he.forEach(n,function(f){h=f.call(t,h,p.normalize(),e?e.status:void 0)}),p.normalize(),h}function u0(n){return!!(n&&n.__CANCEL__)}function Xo(n,e,t){rt.call(this,n??"canceled",rt.ERR_CANCELED,e,t),this.name="CanceledError"}he.inherits(Xo,rt,{__CANCEL__:!0});function h0(n,e,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?n(t):e(new rt("Request failed with status code "+t.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function c$(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function u$(n,e){n=n||10;const t=new Array(n),i=new Array(n);let p=0,h=0,f;return e=e!==void 0?e:1e3,function(y){const d=Date.now(),g=i[h];f||(f=d),t[p]=y,i[p]=d;let s=h,l=0;for(;s!==p;)l+=t[s++],s=s%n;if(p=(p+1)%n,p===h&&(h=(h+1)%n),d-f<e)return;const a=g&&d-g;return a?Math.round(l*1e3/a):void 0}}function h$(n,e){let t=0,i=1e3/e,p,h;const f=(y,d=Date.now())=>{t=d,p=null,h&&(clearTimeout(h),h=null),n.apply(null,y)};return[(...y)=>{const d=Date.now(),g=d-t;g>=i?f(y,d):(p=y,h||(h=setTimeout(()=>{h=null,f(p)},i-g)))},()=>p&&f(p)]}const wl=(n,e,t=3)=>{let i=0;const p=u$(50,250);return h$(h=>{const f=h.loaded,y=h.lengthComputable?h.total:void 0,d=f-i,g=p(d),s=f<=y;i=f;const l={loaded:f,total:y,progress:y?f/y:void 0,bytes:d,rate:g||void 0,estimated:g&&y&&s?(y-f)/g:void 0,event:h,lengthComputable:y!=null,[e?"download":"upload"]:!0};n(l)},t)},d0=(n,e)=>{const t=n!=null;return[i=>e[0]({lengthComputable:t,total:n,loaded:i}),e[1]]},p0=n=>(...e)=>he.asap(()=>n(...e)),d$=Un.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Un.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Un.origin),Un.navigator&&/(msie|trident)/i.test(Un.navigator.userAgent)):()=>!0,p$=Un.hasStandardBrowserEnv?{write(n,e,t,i,p,h){const f=[n+"="+encodeURIComponent(e)];he.isNumber(t)&&f.push("expires="+new Date(t).toGMTString()),he.isString(i)&&f.push("path="+i),he.isString(p)&&f.push("domain="+p),h===!0&&f.push("secure"),document.cookie=f.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function f$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function g$(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function f0(n,e){return n&&!f$(e)?g$(n,e):e}const g0=n=>n instanceof si?{...n}:n;function vo(n,e){e=e||{};const t={};function i(g,s,l,a){return he.isPlainObject(g)&&he.isPlainObject(s)?he.merge.call({caseless:a},g,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function p(g,s,l,a){if(he.isUndefined(s)){if(!he.isUndefined(g))return i(void 0,g,l,a)}else return i(g,s,l,a)}function h(g,s){if(!he.isUndefined(s))return i(void 0,s)}function f(g,s){if(he.isUndefined(s)){if(!he.isUndefined(g))return i(void 0,g)}else return i(void 0,s)}function y(g,s,l){if(l in e)return i(g,s);if(l in n)return i(void 0,g)}const d={url:h,method:h,data:h,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:y,headers:(g,s,l)=>p(g0(g),g0(s),l,!0)};return he.forEach(Object.keys(Object.assign({},n,e)),function(g){const s=d[g]||p,l=s(n[g],e[g],g);he.isUndefined(l)&&s!==y||(t[g]=l)}),t}const m0=n=>{const e=vo({},n);let{data:t,withXSRFToken:i,xsrfHeaderName:p,xsrfCookieName:h,headers:f,auth:y}=e;e.headers=f=si.from(f),e.url=o0(f0(e.baseURL,e.url),n.params,n.paramsSerializer),y&&f.set("Authorization","Basic "+btoa((y.username||"")+":"+(y.password?unescape(encodeURIComponent(y.password)):"")));let d;if(he.isFormData(t)){if(Un.hasStandardBrowserEnv||Un.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((d=f.getContentType())!==!1){const[g,...s]=d?d.split(";").map(l=>l.trim()).filter(Boolean):[];f.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Un.hasStandardBrowserEnv&&(i&&he.isFunction(i)&&(i=i(e)),i||i!==!1&&d$(e.url))){const g=p&&h&&p$.read(h);g&&f.set(p,g)}return e},m$=typeof XMLHttpRequest<"u",v$=m$&&function(n){return new Promise(function(e,t){const i=m0(n);let p=i.data;const h=si.from(i.headers).normalize();let{responseType:f,onUploadProgress:y,onDownloadProgress:d}=i,g,s,l,a,c;function o(){a&&a(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function v(){if(!u)return;const x=si.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),E={data:!f||f==="text"||f==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};h0(function(C){e(C),o()},function(C){t(C),o()},E),u=null}"onloadend"in u?u.onloadend=v:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(v)},u.onabort=function(){u&&(t(new rt("Request aborted",rt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new rt("Network Error",rt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||a0;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),t(new rt(x,E.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,n,u)),u=null},p===void 0&&h.setContentType(null),"setRequestHeader"in u&&he.forEach(h.toJSON(),function(x,E){u.setRequestHeader(E,x)}),he.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),f&&f!=="json"&&(u.responseType=i.responseType),d&&([l,c]=wl(d,!0),u.addEventListener("progress",l)),y&&u.upload&&([s,a]=wl(y),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(i.cancelToken||i.signal)&&(g=x=>{u&&(t(!x||x.type?new Xo(null,n,u):x),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const b=c$(i.url);if(b&&Un.protocols.indexOf(b)===-1){t(new rt("Unsupported protocol "+b+":",rt.ERR_BAD_REQUEST,n));return}u.send(p||null)})},y$=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let i=new AbortController,p;const h=function(g){if(!p){p=!0,y();const s=g instanceof Error?g:this.reason;i.abort(s instanceof rt?s:new Xo(s instanceof Error?s.message:s))}};let f=e&&setTimeout(()=>{f=null,h(new rt(`timeout ${e} of ms exceeded`,rt.ETIMEDOUT))},e);const y=()=>{n&&(f&&clearTimeout(f),f=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),n=null)};n.forEach(g=>g.addEventListener("abort",h));const{signal:d}=i;return d.unsubscribe=()=>he.asap(y),d}},b$=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let i=0,p;for(;i<t;)p=i+e,yield n.slice(i,p),i=p},w$=async function*(n,e){for await(const t of x$(n))yield*b$(t,e)},x$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},v0=(n,e,t,i)=>{const p=w$(n,e);let h=0,f,y=d=>{f||(f=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:g,value:s}=await p.next();if(g){y(),d.close();return}let l=s.byteLength;if(t){let a=h+=l;t(a)}d.enqueue(new Uint8Array(s))}catch(g){throw y(g),g}},cancel(d){return y(d),p.return()}},{highWaterMark:2})},xl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",y0=xl&&typeof ReadableStream=="function",_$=xl&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),b0=(n,...e)=>{try{return!!n(...e)}catch{return!1}},k$=y0&&b0(()=>{let n=!1;const e=new Request(Un.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),w0=64*1024,$h=y0&&b0(()=>he.isReadableStream(new Response("").body)),_l={stream:$h&&(n=>n.body)};xl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!_l[e]&&(_l[e]=he.isFunction(n[e])?t=>t[e]():(t,i)=>{throw new rt(`Response type '${e}' is not supported`,rt.ERR_NOT_SUPPORT,i)})})})(new Response);const S$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Un.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(he.isArrayBufferView(n)||he.isArrayBuffer(n))return n.byteLength;if(he.isURLSearchParams(n)&&(n=n+""),he.isString(n))return(await _$(n)).byteLength},$$=async(n,e)=>he.toFiniteNumber(n.getContentLength())??S$(e),C$=xl&&(async n=>{let{url:e,method:t,data:i,signal:p,cancelToken:h,timeout:f,onDownloadProgress:y,onUploadProgress:d,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:a}=m0(n);g=g?(g+"").toLowerCase():"text";let c=y$([p,h&&h.toAbortSignal()],f),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let v;try{if(d&&k$&&t!=="get"&&t!=="head"&&(v=await $$(s,i))!==0){let k=new Request(e,{method:"POST",body:i,duplex:"half"}),w;if(he.isFormData(i)&&(w=k.headers.get("content-type"))&&s.setContentType(w),k.body){const[T,L]=d0(v,wl(p0(d)));i=v0(k.body,w0,T,L)}}he.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;o=new Request(e,{...a,signal:c,method:t.toUpperCase(),headers:s.normalize().toJSON(),body:i,duplex:"half",credentials:b?l:void 0});let x=await fetch(o);const E=$h&&(g==="stream"||g==="response");if($h&&(y||E&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const w=he.toFiniteNumber(x.headers.get("content-length")),[T,L]=y&&d0(w,wl(p0(y),!0))||[];x=new Response(v0(x.body,w0,T,()=>{L&&L(),u&&u()}),k)}g=g||"text";let C=await _l[he.findKey(_l,g)||"text"](x,n);return!E&&u&&u(),await new Promise((k,w)=>{h0(k,w,{data:C,headers:si.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(b){throw u&&u(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,n,o),{cause:b.cause||b}):rt.from(b,b&&b.code,n,o)}}),Ch={http:jS,xhr:v$,fetch:C$};he.forEach(Ch,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const x0=n=>`- ${n}`,M$=n=>he.isFunction(n)||n===null||n===!1,_0={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:e}=n;let t,i;const p={};for(let h=0;h<e;h++){t=n[h];let f;if(i=t,!M$(t)&&(i=Ch[(f=String(t)).toLowerCase()],i===void 0))throw new rt(`Unknown adapter '${f}'`);if(i)break;p[f||"#"+h]=i}if(!i){const h=Object.entries(p).map(([y,d])=>`adapter ${y} `+(d===!1?"is not supported by the environment":"is not available in the build"));let f=e?h.length>1?`since :
|
1411
|
+
`+h.map(x0).join(`
|
1412
|
+
`):" "+x0(h[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return i},adapters:Ch};function Mh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Xo(null,n)}function k0(n){return Mh(n),n.headers=si.from(n.headers),n.data=Sh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),_0.getAdapter(n.adapter||Ws.adapter)(n).then(function(e){return Mh(n),e.data=Sh.call(n,n.transformResponse,e),e.headers=si.from(e.headers),e},function(e){return u0(e)||(Mh(n),e&&e.response&&(e.response.data=Sh.call(n,n.transformResponse,e.response),e.response.headers=si.from(e.response.headers))),Promise.reject(e)})}const S0="1.7.9",kl={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{kl[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const $0={};kl.transitional=function(n,e,t){function i(p,h){return"[Axios v"+S0+"] Transitional option '"+p+"'"+h+(t?". "+t:"")}return(p,h,f)=>{if(n===!1)throw new rt(i(h," has been removed"+(e?" in "+e:"")),rt.ERR_DEPRECATED);return e&&!$0[h]&&($0[h]=!0,console.warn(i(h," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(p,h,f):!0}},kl.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function T$(n,e,t){if(typeof n!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let p=i.length;for(;p-- >0;){const h=i[p],f=e[h];if(f){const y=n[h],d=y===void 0||f(y,h,n);if(d!==!0)throw new rt("option "+h+" must be "+d,rt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new rt("Unknown option "+h,rt.ERR_BAD_OPTION)}}const Sl={assertOptions:T$,validators:kl},Zi=Sl.validators;let yo=class{constructor(e){this.defaults=e,this.interceptors={request:new s0,response:new s0}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let p={};Error.captureStackTrace?Error.captureStackTrace(p):p=new Error;const h=p.stack?p.stack.replace(/^.+\n/,""):"";try{i.stack?h&&!String(i.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
1413
|
+
`+h):i.stack=h}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=vo(this.defaults,t);const{transitional:i,paramsSerializer:p,headers:h}=t;i!==void 0&&Sl.assertOptions(i,{silentJSONParsing:Zi.transitional(Zi.boolean),forcedJSONParsing:Zi.transitional(Zi.boolean),clarifyTimeoutError:Zi.transitional(Zi.boolean)},!1),p!=null&&(he.isFunction(p)?t.paramsSerializer={serialize:p}:Sl.assertOptions(p,{encode:Zi.function,serialize:Zi.function},!0)),Sl.assertOptions(t,{baseUrl:Zi.spelling("baseURL"),withXsrfToken:Zi.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let f=h&&he.merge(h.common,h[t.method]);h&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),t.headers=si.concat(f,h);const y=[];let d=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(t)===!1||(d=d&&o.synchronous,y.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!d){const o=[k0.bind(this),void 0];for(o.unshift.apply(o,y),o.push.apply(o,g),a=o.length,s=Promise.resolve(t);l<a;)s=s.then(o[l++],o[l++]);return s}a=y.length;let c=t;for(l=0;l<a;){const o=y[l++],u=y[l++];try{c=o(c)}catch(v){u.call(this,v);break}}try{s=k0.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,a=g.length;l<a;)s=s.then(g[l++],g[l++]);return s}getUri(e){e=vo(this.defaults,e);const t=f0(e.baseURL,e.url);return o0(t,e.params,e.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){yo.prototype[n]=function(e,t){return this.request(vo(t||{},{method:n,url:e,data:(t||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function e(t){return function(i,p,h){return this.request(vo(h||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:p}))}}yo.prototype[n]=e(),yo.prototype[n+"Form"]=e(!0)});let A$=class fb{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(p){t=p});const i=this;this.promise.then(p=>{if(!i._listeners)return;let h=i._listeners.length;for(;h-- >0;)i._listeners[h](p);i._listeners=null}),this.promise.then=p=>{let h;const f=new Promise(y=>{i.subscribe(y),h=y}).then(p);return f.cancel=function(){i.unsubscribe(h)},f},e(function(p,h,f){i.reason||(i.reason=new Xo(p,h,f),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=i=>{e.abort(i)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new fb(function(t){e=t}),cancel:e}}};function E$(n){return function(e){return n.apply(null,e)}}function L$(n){return he.isObject(n)&&n.isAxiosError===!0}const Th={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(Th).forEach(([n,e])=>{Th[e]=n});function C0(n){const e=new yo(n),t=Wm(yo.prototype.request,e);return he.extend(t,yo.prototype,e,{allOwnKeys:!0}),he.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return C0(vo(n,i))},t}const wn=Dn("S",C0(Ws));wn.Axios=yo,wn.CanceledError=Xo,wn.CancelToken=A$,wn.isCancel=u0,wn.VERSION=S0,wn.toFormData=yl,wn.AxiosError=rt,wn.Cancel=wn.CanceledError,wn.all=function(n){return Promise.all(n)},wn.spread=E$,wn.isAxiosError=L$,wn.mergeConfig=vo,wn.AxiosHeaders=si,wn.formToJSON=n=>l0(he.isHTMLForm(n)?new FormData(n):n),wn.getAdapter=_0.getAdapter,wn.HttpStatusCode=Th,wn.default=wn;function R$(n,e,t){const i=Zt(n,void 0);return i.setTime(i.getTime()+e*Oa),i}function M0(){return Object.assign({},No())}function I$(n,e){const t=()=>vn(void 0,NaN),i=F$(n);let p;if(i.date){const d=P$(i.date,2);p=H$(d.restDateString,d.year)}if(!p||isNaN(+p))return t();const h=+p;let f=0,y;if(i.time&&(f=B$(i.time),isNaN(f)))return t();if(i.timezone){if(y=j$(i.timezone),isNaN(y))return t()}else{const d=new Date(h+f),g=Zt(0,void 0);return g.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),g.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),g}return Zt(h+f+y,void 0)}const $l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},O$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,D$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,N$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function F$(n){const e={},t=n.split($l.dateTimeDelimiter);let i;if(t.length>2)return e;if(/:/.test(t[0])?i=t[0]:(e.date=t[0],i=t[1],$l.timeZoneDelimiter.test(e.date)&&(e.date=n.split($l.timeZoneDelimiter)[0],i=n.substr(e.date.length,n.length))),i){const p=$l.timezone.exec(i);p?(e.time=i.replace(p[1],""),e.timezone=p[1]):e.time=i}return e}function P$(n,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=n.match(t);if(!i)return{year:NaN,restDateString:""};const p=i[1]?parseInt(i[1]):null,h=i[2]?parseInt(i[2]):null;return{year:h===null?p:h*100,restDateString:n.slice((i[1]||i[2]).length)}}function H$(n,e){if(e===null)return new Date(NaN);const t=n.match(O$);if(!t)return new Date(NaN);const i=!!t[4],p=Vs(t[1]),h=Vs(t[2])-1,f=Vs(t[3]),y=Vs(t[4]),d=Vs(t[5])-1;if(i)return q$(e,y,d)?z$(e,y,d):new Date(NaN);{const g=new Date(0);return!U$(e,h,f)||!V$(e,p)?new Date(NaN):(g.setUTCFullYear(e,h,Math.max(p,f)),g)}}function Vs(n){return n?parseInt(n):1}function B$(n){const e=n.match(D$);if(!e)return NaN;const t=Ah(e[1]),i=Ah(e[2]),p=Ah(e[3]);return G$(t,i,p)?t*Hc+i*Oa+p*1e3:NaN}function Ah(n){return n&&parseFloat(n.replace(",","."))||0}function j$(n){if(n==="Z")return 0;const e=n.match(N$);if(!e)return 0;const t=e[1]==="+"?-1:1,i=parseInt(e[2]),p=e[3]&&parseInt(e[3])||0;return Y$(i,p)?t*(i*Hc+p*Oa):NaN}function z$(n,e,t){const i=new Date(0);i.setUTCFullYear(n,0,4);const p=i.getUTCDay()||7,h=(e-1)*7+t+1-p;return i.setUTCDate(i.getUTCDate()+h),i}const W$=[31,null,31,30,31,30,31,31,30,31,30,31];function T0(n){return n%400===0||n%4===0&&n%100!==0}function U$(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(W$[e]||(T0(n)?29:28))}function V$(n,e){return e>=1&&e<=(T0(n)?366:365)}function q$(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function G$(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function Y$(n,e){return e>=0&&e<=59}function K$(n,e,t){return R$(n,-e)}function A0(n,e,t){const i=M0(),p=J$(n,t.timeZone,t.locale??i.locale);return"formatToParts"in p?Q$(p,e):Z$(p,e)}function Q$(n,e){const t=n.formatToParts(e);for(let i=t.length-1;i>=0;--i)if(t[i].type==="timeZoneName")return t[i].value}function Z$(n,e){const t=n.format(e).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(t);return i?i[0].substr(1):""}function J$(n,e,t){return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:e,timeZoneName:n})}function X$(n,e){const t=rC(e);return"formatToParts"in t?tC(t,n):nC(t,n)}const eC={year:0,month:1,day:2,hour:3,minute:4,second:5};function tC(n,e){try{const t=n.formatToParts(e),i=[];for(let p=0;p<t.length;p++){const h=eC[t[p].type];h!==void 0&&(i[h]=parseInt(t[p].value,10))}return i}catch(t){if(t instanceof RangeError)return[NaN];throw t}}function nC(n,e){const t=n.format(e),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);return[parseInt(i[3],10),parseInt(i[1],10),parseInt(i[2],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)]}const Eh={},E0=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")),iC=E0==="06/25/2014, 00:00:00"||E0==="06/25/2014 00:00:00";function rC(n){return Eh[n]||(Eh[n]=iC?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Eh[n]}function L0(n,e,t,i,p,h,f){const y=new Date(0);return y.setUTCFullYear(n,e,t),y.setUTCHours(i,p,h,f),y}const R0=36e5,oC=6e4,Lh={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Rh(n,e,t){if(!n)return 0;let i=Lh.timezoneZ.exec(n);if(i)return 0;let p,h;if(i=Lh.timezoneHH.exec(n),i)return p=parseInt(i[1],10),I0(p)?-(p*R0):NaN;if(i=Lh.timezoneHHMM.exec(n),i){p=parseInt(i[2],10);const f=parseInt(i[3],10);return I0(p,f)?(h=Math.abs(p)*R0+f*oC,i[1]==="+"?-h:h):NaN}if(lC(n)){e=new Date(e||Date.now());const f=t?e:sC(e),y=Ih(f,n);return-(t?y:aC(e,y,n))}return NaN}function sC(n){return L0(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Ih(n,e){const t=X$(n,e),i=L0(t[0],t[1]-1,t[2],t[3]%24,t[4],t[5],0).getTime();let p=n.getTime();const h=p%1e3;return p-=h>=0?h:1e3+h,i-p}function aC(n,e,t){let i=n.getTime()-e;const p=Ih(new Date(i),t);if(e===p)return e;i-=p-e;const h=Ih(new Date(i),t);return p===h?p:Math.max(p,h)}function I0(n,e){return-23<=n&&n<=23&&(e==null||0<=e&&e<=59)}const O0={};function lC(n){if(O0[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),O0[n]=!0,!0}catch{return!1}}const cC=60*1e3,uC={X:function(n,e,t){const i=Oh(t.timeZone,n);if(i===0)return"Z";switch(e){case"X":return D0(i);case"XXXX":case"XX":return es(i);case"XXXXX":case"XXX":default:return es(i,":")}},x:function(n,e,t){const i=Oh(t.timeZone,n);switch(e){case"x":return D0(i);case"xxxx":case"xx":return es(i);case"xxxxx":case"xxx":default:return es(i,":")}},O:function(n,e,t){const i=Oh(t.timeZone,n);switch(e){case"O":case"OO":case"OOO":return"GMT"+hC(i,":");case"OOOO":default:return"GMT"+es(i,":")}},z:function(n,e,t){switch(e){case"z":case"zz":case"zzz":return A0("short",n,t);case"zzzz":default:return A0("long",n,t)}}};function Oh(n,e){const t=n?Rh(n,e,!0)/cC:(e==null?void 0:e.getTimezoneOffset())??0;if(Number.isNaN(t))throw new RangeError("Invalid time zone specified: "+n);return t}function Cl(n,e){const t=n<0?"-":"";let i=Math.abs(n).toString();for(;i.length<e;)i="0"+i;return t+i}function es(n,e=""){const t=n>0?"-":"+",i=Math.abs(n),p=Cl(Math.floor(i/60),2),h=Cl(Math.floor(i%60),2);return t+p+e+h}function D0(n,e){return n%60===0?(n>0?"-":"+")+Cl(Math.abs(n)/60,2):es(n,e)}function hC(n,e=""){const t=n>0?"-":"+",i=Math.abs(n),p=Math.floor(i/60),h=i%60;return h===0?t+String(p):t+String(p)+e+Cl(h,2)}function N0(n){const e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+n-+e}const dC=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Dh=36e5,F0=6e4,pC=2,Jn={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:dC};function P0(n,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const t=e.additionalDigits==null?pC:Number(e.additionalDigits);if(t!==2&&t!==1&&t!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const i=fC(n),{year:p,restDateString:h}=gC(i.date,t),f=mC(h,p);if(f===null||isNaN(f.getTime()))return new Date(NaN);if(f){const y=f.getTime();let d=0,g;if(i.time&&(d=vC(i.time),d===null||isNaN(d)))return new Date(NaN);if(i.timeZone||e.timeZone){if(g=Rh(i.timeZone||e.timeZone,new Date(y+d)),isNaN(g))return new Date(NaN)}else g=N0(new Date(y+d)),g=N0(new Date(y+d+g));return new Date(y+d+g)}else return new Date(NaN)}function fC(n){const e={};let t=Jn.dateTimePattern.exec(n),i;if(t?(e.date=t[1],i=t[3]):(t=Jn.datePattern.exec(n),t?(e.date=t[1],i=t[2]):(e.date=null,i=n)),i){const p=Jn.timeZone.exec(i);p?(e.time=i.replace(p[1],""),e.timeZone=p[1].trim()):e.time=i}return e}function gC(n,e){if(n){const t=Jn.YYY[e],i=Jn.YYYYY[e];let p=Jn.YYYY.exec(n)||i.exec(n);if(p){const h=p[1];return{year:parseInt(h,10),restDateString:n.slice(h.length)}}if(p=Jn.YY.exec(n)||t.exec(n),p){const h=p[1];return{year:parseInt(h,10)*100,restDateString:n.slice(h.length)}}}return{year:null}}function mC(n,e){if(e===null)return null;let t,i,p;if(!n||!n.length)return t=new Date(0),t.setUTCFullYear(e),t;let h=Jn.MM.exec(n);if(h)return t=new Date(0),i=parseInt(h[1],10)-1,j0(e,i)?(t.setUTCFullYear(e,i),t):new Date(NaN);if(h=Jn.DDD.exec(n),h){t=new Date(0);const f=parseInt(h[1],10);return wC(e,f)?(t.setUTCFullYear(e,0,f),t):new Date(NaN)}if(h=Jn.MMDD.exec(n),h){t=new Date(0),i=parseInt(h[1],10)-1;const f=parseInt(h[2],10);return j0(e,i,f)?(t.setUTCFullYear(e,i,f),t):new Date(NaN)}if(h=Jn.Www.exec(n),h)return p=parseInt(h[1],10)-1,z0(p)?H0(e,p):new Date(NaN);if(h=Jn.WwwD.exec(n),h){p=parseInt(h[1],10)-1;const f=parseInt(h[2],10)-1;return z0(p,f)?H0(e,p,f):new Date(NaN)}return null}function vC(n){let e,t,i=Jn.HH.exec(n);if(i)return e=parseFloat(i[1].replace(",",".")),Nh(e)?e%24*Dh:NaN;if(i=Jn.HHMM.exec(n),i)return e=parseInt(i[1],10),t=parseFloat(i[2].replace(",",".")),Nh(e,t)?e%24*Dh+t*F0:NaN;if(i=Jn.HHMMSS.exec(n),i){e=parseInt(i[1],10),t=parseInt(i[2],10);const p=parseFloat(i[3].replace(",","."));return Nh(e,t,p)?e%24*Dh+t*F0+p*1e3:NaN}return null}function H0(n,e,t){e=e||0,t=t||0;const i=new Date(0);i.setUTCFullYear(n,0,4);const p=i.getUTCDay()||7,h=e*7+t+1-p;return i.setUTCDate(i.getUTCDate()+h),i}const yC=[31,28,31,30,31,30,31,31,30,31,30,31],bC=[31,29,31,30,31,30,31,31,30,31,30,31];function B0(n){return n%400===0||n%4===0&&n%100!==0}function j0(n,e,t){if(e<0||e>11)return!1;if(t!=null){if(t<1)return!1;const i=B0(n);if(i&&t>bC[e]||!i&&t>yC[e])return!1}return!0}function wC(n,e){if(e<1)return!1;const t=B0(n);return!(t&&e>366||!t&&e>365)}function z0(n,e){return!(n<0||n>52||e!=null&&(e<0||e>6))}function Nh(n,e,t){return!(n<0||n>=25||e!=null&&(e<0||e>=60)||t!=null&&(t<0||t>=60))}const xC=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function _C(n,e,t={}){e=String(e);const i=e.match(xC);if(i){const p=P0(t.originalDate||n,t);e=i.reduce(function(h,f){if(f[0]==="'")return h;const y=h.indexOf(f),d=h[y-1]==="'",g=h.replace(f,"'"+uC[f[0]](p,f,t)+"'");return d?g.substring(0,y-1)+g.substring(y+1):g},e)}return Lr(n,e,t)}function kC(n,e,t){n=P0(n,t);const i=Rh(e,n,!0),p=new Date(n.getTime()-i),h=new Date(0);return h.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),h.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),h}function Fh(n,e,t,i){return i={...i,timeZone:e,originalDate:n},_C(kC(n,e,{timeZone:i.timeZone}),t,i)}const Ph="yyyy-MM-dd",W0="HH:mm:ss.SSS",SC="HH:mm:ss",Ml=`${Ph} ${W0}`,oO=Dn("P",{methods:{parseDateTime(n,e){return n.includes(" ")&&(n=n.replace(" ","T")),e&&e==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,e){return Lr(!e||e==="local"?K$(n,n.getTimezoneOffset()):n,Ml)},formatDateTime(n,e){return!e||e==="local"?Lr(n,Ml):Fh(n,e,Ml)},formatDate:function(n,e){return!e||e==="local"?Lr(n,Ph):Fh(n,this.timeZone,Ph)},formatTime:function(n,e,t=W0){return!e||e==="local"?Lr(n,t):Fh(n,this.timeZone,t)},formatTimeHMS:function(n,e){return this.formatTime(n,e,SC)},formatTimestamp(n,e){return this.formatDateTime(I$(n),e)},formatSeconds(n,e){return this.formatDateTime(new Date(n*1e3),e)},formatNanoseconds(n,e){return this.formatDateTime(new Date(parseInt(n)/1e6),e)}}});var $C=Object.defineProperty,CC=(n,e,t)=>e in n?$C(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Re=(n,e,t)=>CC(n,typeof e!="symbol"?e+"":e,t);function Hh(n,e,t){const i=Zt(n,t==null?void 0:t.in);return isNaN(e)?vn((t==null?void 0:t.in)||n,NaN):(e&&i.setDate(i.getDate()+e),i)}function MC(n,e){const t=Zt(n,void 0).getDay();return t===0?7:t}function TC(n,e){const t=AC(e)?new e(0):vn(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function AC(n){var e;return typeof n=="function"&&((e=n.prototype)==null?void 0:e.constructor)===n}const EC=10;let U0=class{constructor(){Re(this,"subPriority",0)}validate(e,t){return!0}},LC=class extends U0{constructor(e,t,i,p,h){super(),this.value=e,this.validateValue=t,this.setValue=i,this.priority=p,h&&(this.subPriority=h)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,i){return this.setValue(e,t,this.value,i)}},RC=class extends U0{constructor(e,t){super(),Re(this,"priority",EC),Re(this,"subPriority",-1),this.context=e||(i=>vn(t,i))}set(e,t){return t.timestampIsSet?e:vn(e,TC(e,this.context))}};class Mt{run(e,t,i,p){const h=this.parse(e,t,i,p);return h?{setter:new LC(h.value,this.validate,this.set,this.priority,this.subPriority),rest:h.rest}:null}validate(e,t,i){return!0}}let IC=class extends Mt{constructor(){super(...arguments),Re(this,"priority",140),Re(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,i){switch(t){case"G":case"GG":case"GGG":return i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"});case"GGGGG":return i.era(e,{width:"narrow"});case"GGGG":default:return i.era(e,{width:"wide"})||i.era(e,{width:"abbreviated"})||i.era(e,{width:"narrow"})}}set(e,t,i){return t.era=i,e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}};const dn={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}/},Ji={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 pn(n,e){return n&&{value:e(n.value),rest:n.rest}}function tn(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Xi(n,e){const t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const i=t[1]==="+"?1:-1,p=t[2]?parseInt(t[2],10):0,h=t[3]?parseInt(t[3],10):0,f=t[5]?parseInt(t[5],10):0;return{value:i*(p*Hc+h*Oa+f*Cb),rest:e.slice(t[0].length)}}function V0(n){return tn(dn.anyDigitsSigned,n)}function an(n,e){switch(n){case 1:return tn(dn.singleDigit,e);case 2:return tn(dn.twoDigits,e);case 3:return tn(dn.threeDigits,e);case 4:return tn(dn.fourDigits,e);default:return tn(new RegExp("^\\d{1,"+n+"}"),e)}}function q0(n,e){switch(n){case 1:return tn(dn.singleDigitSigned,e);case 2:return tn(dn.twoDigitsSigned,e);case 3:return tn(dn.threeDigitsSigned,e);case 4:return tn(dn.fourDigitsSigned,e);default:return tn(new RegExp("^-?\\d{1,"+n+"}"),e)}}function Bh(n){switch(n){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 G0(n,e){const t=e>0,i=t?e:1-e;let p;if(i<=50)p=n||100;else{const h=i+50,f=Math.trunc(h/100)*100,y=n>=h%100;p=n+f-(y?100:0)}return t?p:1-p}function Y0(n){return n%400===0||n%4===0&&n%100!==0}let OC=class extends Mt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,i){const p=h=>({year:h,isTwoDigitYear:t==="yy"});switch(t){case"y":return pn(an(4,e),p);case"yo":return pn(i.ordinalNumber(e,{unit:"year"}),p);default:return pn(an(t.length,e),p)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,i){const p=e.getFullYear();if(i.isTwoDigitYear){const f=G0(i.year,p);return e.setFullYear(f,0,1),e.setHours(0,0,0,0),e}const h=!("era"in t)||t.era===1?i.year:1-i.year;return e.setFullYear(h,0,1),e.setHours(0,0,0,0),e}},DC=class extends Mt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,i){const p=h=>({year:h,isTwoDigitYear:t==="YY"});switch(t){case"Y":return pn(an(4,e),p);case"Yo":return pn(i.ordinalNumber(e,{unit:"year"}),p);default:return pn(an(t.length,e),p)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,i,p){const h=jc(e,p);if(i.isTwoDigitYear){const y=G0(i.year,h);return e.setFullYear(y,0,p.firstWeekContainsDate),e.setHours(0,0,0,0),Ar(e,p)}const f=!("era"in t)||t.era===1?i.year:1-i.year;return e.setFullYear(f,0,p.firstWeekContainsDate),e.setHours(0,0,0,0),Ar(e,p)}};class NC extends Mt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return q0(t==="R"?4:t.length,e)}set(e,t,i){const p=vn(e,0);return p.setFullYear(i,0,4),p.setHours(0,0,0,0),Fo(p)}}class FC extends Mt{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return q0(t==="u"?4:t.length,e)}set(e,t,i){return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class PC extends Mt{constructor(){super(...arguments),Re(this,"priority",120),Re(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,i){switch(t){case"Q":case"QQ":return an(t.length,e);case"Qo":return i.ordinalNumber(e,{unit:"quarter"});case"QQQ":return i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(e,{width:"wide",context:"formatting"})||i.quarter(e,{width:"abbreviated",context:"formatting"})||i.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}}let HC=class extends Mt{constructor(){super(...arguments),Re(this,"priority",120),Re(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,i){switch(t){case"q":case"qq":return an(t.length,e);case"qo":return i.ordinalNumber(e,{unit:"quarter"});case"qqq":return i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(e,{width:"wide",context:"standalone"})||i.quarter(e,{width:"abbreviated",context:"standalone"})||i.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,i){return e.setMonth((i-1)*3,1),e.setHours(0,0,0,0),e}};class BC extends Mt{constructor(){super(...arguments),Re(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Re(this,"priority",110)}parse(e,t,i){const p=h=>h-1;switch(t){case"M":return pn(tn(dn.month,e),p);case"MM":return pn(an(2,e),p);case"Mo":return pn(i.ordinalNumber(e,{unit:"month"}),p);case"MMM":return i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(e,{width:"wide",context:"formatting"})||i.month(e,{width:"abbreviated",context:"formatting"})||i.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}}class jC extends Mt{constructor(){super(...arguments),Re(this,"priority",110),Re(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,i){const p=h=>h-1;switch(t){case"L":return pn(tn(dn.month,e),p);case"LL":return pn(an(2,e),p);case"Lo":return pn(i.ordinalNumber(e,{unit:"month"}),p);case"LLL":return i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(e,{width:"wide",context:"standalone"})||i.month(e,{width:"abbreviated",context:"standalone"})||i.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,i){return e.setMonth(i,1),e.setHours(0,0,0,0),e}}function zC(n,e,t){const i=Zt(n,t==null?void 0:t.in),p=Sp(i,t)-e;return i.setDate(i.getDate()-p*7),Zt(i,t==null?void 0:t.in)}class WC extends Mt{constructor(){super(...arguments),Re(this,"priority",100),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,i){switch(t){case"w":return tn(dn.week,e);case"wo":return i.ordinalNumber(e,{unit:"week"});default:return an(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,i,p){return Ar(zC(e,i,p),p)}}function UC(n,e,t){const i=Zt(n,void 0),p=kp(i)-e;return i.setDate(i.getDate()-p*7),i}class VC extends Mt{constructor(){super(...arguments),Re(this,"priority",100),Re(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,i){switch(t){case"I":return tn(dn.week,e);case"Io":return i.ordinalNumber(e,{unit:"week"});default:return an(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,i){return Fo(UC(e,i))}}const qC=[31,28,31,30,31,30,31,31,30,31,30,31],GC=[31,29,31,30,31,30,31,31,30,31,30,31];class YC extends Mt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"subPriority",1),Re(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,i){switch(t){case"d":return tn(dn.date,e);case"do":return i.ordinalNumber(e,{unit:"date"});default:return an(t.length,e)}}validate(e,t){const i=e.getFullYear(),p=Y0(i),h=e.getMonth();return p?t>=1&&t<=GC[h]:t>=1&&t<=qC[h]}set(e,t,i){return e.setDate(i),e.setHours(0,0,0,0),e}}class KC extends Mt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"subpriority",1),Re(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,i){switch(t){case"D":case"DD":return tn(dn.dayOfYear,e);case"Do":return i.ordinalNumber(e,{unit:"date"});default:return an(t.length,e)}}validate(e,t){const i=e.getFullYear();return Y0(i)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,i){return e.setMonth(0,i),e.setHours(0,0,0,0),e}}function jh(n,e,t){var i,p,h,f;const y=No(),d=(t==null?void 0:t.weekStartsOn)??((p=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:p.weekStartsOn)??y.weekStartsOn??((f=(h=y.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)??0,g=Zt(n,t==null?void 0:t.in),s=g.getDay(),l=(e%7+7)%7,a=7-d,c=e<0||e>6?e-(s+a)%7:(l+a)%7-(s+a)%7;return Hh(g,c,t)}class QC extends Mt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,i){switch(t){case"E":case"EE":case"EEE":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,i,p){return e=jh(e,i,p),e.setHours(0,0,0,0),e}}class ZC extends Mt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,i,p){const h=f=>{const y=Math.floor((f-1)/7)*7;return(f+p.weekStartsOn+6)%7+y};switch(t){case"e":case"ee":return pn(an(t.length,e),h);case"eo":return pn(i.ordinalNumber(e,{unit:"day"}),h);case"eee":return i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeeee":return i.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,i,p){return e=jh(e,i,p),e.setHours(0,0,0,0),e}}class JC extends Mt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,i,p){const h=f=>{const y=Math.floor((f-1)/7)*7;return(f+p.weekStartsOn+6)%7+y};switch(t){case"c":case"cc":return pn(an(t.length,e),h);case"co":return pn(i.ordinalNumber(e,{unit:"day"}),h);case"ccc":return i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"ccccc":return i.day(e,{width:"narrow",context:"standalone"});case"cccccc":return i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(e,{width:"wide",context:"standalone"})||i.day(e,{width:"abbreviated",context:"standalone"})||i.day(e,{width:"short",context:"standalone"})||i.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,i,p){return e=jh(e,i,p),e.setHours(0,0,0,0),e}}function XC(n,e,t){const i=Zt(n,void 0),p=MC(i),h=e-p;return Hh(i,h,t)}class eM extends Mt{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,i){const p=h=>h===0?7:h;switch(t){case"i":case"ii":return an(t.length,e);case"io":return i.ordinalNumber(e,{unit:"day"});case"iii":return pn(i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),p);case"iiiii":return pn(i.day(e,{width:"narrow",context:"formatting"}),p);case"iiiiii":return pn(i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),p);case"iiii":default:return pn(i.day(e,{width:"wide",context:"formatting"})||i.day(e,{width:"abbreviated",context:"formatting"})||i.day(e,{width:"short",context:"formatting"})||i.day(e,{width:"narrow",context:"formatting"}),p)}}validate(e,t){return t>=1&&t<=7}set(e,t,i){return e=XC(e,i),e.setHours(0,0,0,0),e}}class tM extends Mt{constructor(){super(...arguments),Re(this,"priority",80),Re(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,i){switch(t){case"a":case"aa":case"aaa":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,i){return e.setHours(Bh(i),0,0,0),e}}class nM extends Mt{constructor(){super(...arguments),Re(this,"priority",80),Re(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,i){switch(t){case"b":case"bb":case"bbb":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,i){return e.setHours(Bh(i),0,0,0),e}}class iM extends Mt{constructor(){super(...arguments),Re(this,"priority",80),Re(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,i){switch(t){case"B":case"BB":case"BBB":return i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(e,{width:"wide",context:"formatting"})||i.dayPeriod(e,{width:"abbreviated",context:"formatting"})||i.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,i){return e.setHours(Bh(i),0,0,0),e}}class rM extends Mt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,i){switch(t){case"h":return tn(dn.hour12h,e);case"ho":return i.ordinalNumber(e,{unit:"hour"});default:return an(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,i){const p=e.getHours()>=12;return p&&i<12?e.setHours(i+12,0,0,0):!p&&i===12?e.setHours(0,0,0,0):e.setHours(i,0,0,0),e}}class oM extends Mt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,i){switch(t){case"H":return tn(dn.hour23h,e);case"Ho":return i.ordinalNumber(e,{unit:"hour"});default:return an(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,i){return e.setHours(i,0,0,0),e}}class sM extends Mt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,i){switch(t){case"K":return tn(dn.hour11h,e);case"Ko":return i.ordinalNumber(e,{unit:"hour"});default:return an(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,i){return e.getHours()>=12&&i<12?e.setHours(i+12,0,0,0):e.setHours(i,0,0,0),e}}class aM extends Mt{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,i){switch(t){case"k":return tn(dn.hour24h,e);case"ko":return i.ordinalNumber(e,{unit:"hour"});default:return an(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,i){const p=i<=24?i%24:i;return e.setHours(p,0,0,0),e}}class lM extends Mt{constructor(){super(...arguments),Re(this,"priority",60),Re(this,"incompatibleTokens",["t","T"])}parse(e,t,i){switch(t){case"m":return tn(dn.minute,e);case"mo":return i.ordinalNumber(e,{unit:"minute"});default:return an(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,i){return e.setMinutes(i,0,0),e}}class cM extends Mt{constructor(){super(...arguments),Re(this,"priority",50),Re(this,"incompatibleTokens",["t","T"])}parse(e,t,i){switch(t){case"s":return tn(dn.second,e);case"so":return i.ordinalNumber(e,{unit:"second"});default:return an(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,i){return e.setSeconds(i,0),e}}class uM extends Mt{constructor(){super(...arguments),Re(this,"priority",30),Re(this,"incompatibleTokens",["t","T"])}parse(e,t){const i=p=>Math.trunc(p*Math.pow(10,-t.length+3));return pn(an(t.length,e),i)}set(e,t,i){return e.setMilliseconds(i),e}}class hM extends Mt{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Xi(Ji.basicOptionalMinutes,e);case"XX":return Xi(Ji.basic,e);case"XXXX":return Xi(Ji.basicOptionalSeconds,e);case"XXXXX":return Xi(Ji.extendedOptionalSeconds,e);case"XXX":default:return Xi(Ji.extended,e)}}set(e,t,i){return t.timestampIsSet?e:vn(e,e.getTime()-Da(e)-i)}}class dM extends Mt{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Xi(Ji.basicOptionalMinutes,e);case"xx":return Xi(Ji.basic,e);case"xxxx":return Xi(Ji.basicOptionalSeconds,e);case"xxxxx":return Xi(Ji.extendedOptionalSeconds,e);case"xxx":default:return Xi(Ji.extended,e)}}set(e,t,i){return t.timestampIsSet?e:vn(e,e.getTime()-Da(e)-i)}}class pM extends Mt{constructor(){super(...arguments),Re(this,"priority",40),Re(this,"incompatibleTokens","*")}parse(e){return V0(e)}set(e,t,i){return[vn(e,i*1e3),{timestampIsSet:!0}]}}class fM extends Mt{constructor(){super(...arguments),Re(this,"priority",20),Re(this,"incompatibleTokens","*")}parse(e){return V0(e)}set(e,t,i){return[vn(e,i),{timestampIsSet:!0}]}}const gM={G:new IC,y:new OC,Y:new DC,R:new NC,u:new FC,Q:new PC,q:new HC,M:new BC,L:new jC,w:new WC,I:new VC,d:new YC,D:new KC,E:new QC,e:new ZC,c:new JC,i:new eM,a:new tM,b:new nM,B:new iM,h:new rM,H:new oM,K:new sM,k:new aM,m:new lM,s:new cM,S:new uM,X:new hM,x:new dM,t:new pM,T:new fM},mM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yM=/^'([^]*?)'?$/,bM=/''/g,wM=/\S/,xM=/[a-zA-Z]/;function _M(n,e,t,i){var p,h,f,y;const d=()=>vn(t,NaN),g=M0(),s=g.locale??_p,l=g.firstWeekContainsDate??((h=(p=g.locale)==null?void 0:p.options)==null?void 0:h.firstWeekContainsDate)??1,a=g.weekStartsOn??((y=(f=g.locale)==null?void 0:f.options)==null?void 0:y.weekStartsOn)??0;if(!e)return n?d():Zt(t,void 0);const c={firstWeekContainsDate:l,weekStartsOn:a,locale:s},o=[new RC(void 0,t)],u=e.match(vM).map(C=>{const k=C[0];if(k in zc){const w=zc[k];return w(C,s.formatLong)}return C}).join("").match(mM),v=[];for(let C of u){Lp(C)&&Wc(C,e,n),Ep(C)&&Wc(C,e,n);const k=C[0],w=gM[k];if(w){const{incompatibleTokens:T}=w;if(Array.isArray(T)){const I=v.find(A=>T.includes(A.token)||A.token===k);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${C}\` at the same time`)}else if(w.incompatibleTokens==="*"&&v.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);v.push({token:k,fullToken:C});const L=w.run(n,C,s.match,c);if(!L)return d();o.push(L.setter),n=L.rest}else{if(k.match(xM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(C==="''"?C="'":k==="'"&&(C=kM(C)),n.indexOf(C)===0)n=n.slice(C.length);else return d()}}if(n.length>0&&wM.test(n))return d();const b=o.map(C=>C.priority).sort((C,k)=>k-C).filter((C,k,w)=>w.indexOf(C)===k).map(C=>o.filter(k=>k.priority===C).sort((k,w)=>w.subPriority-k.subPriority)).map(C=>C[0]);let x=Zt(t,void 0);if(isNaN(+x))return d();const E={};for(const C of b){if(!C.validate(x,c))return d();const k=C.set(x,E,c);Array.isArray(k)?(x=k[0],Object.assign(E,k[1])):x=k}return x}function kM(n){return n.match(yM)[1].replace(bM,"'")}const SM={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function $M(n,e,t,i,p,h){const f=Se("rux-icon");return Pe(),St(f,{size:t.size,icon:t.icon,style:to(h.colorStyle)},null,8,["size","icon","style"])}const CM=Yi(SM,[["render",$M],["__scopeId","data-v-9af48e85"]]),MM="/icons/status-dark.png",TM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return MM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=RM.indexOf(K0[this.status]),e=1-(n-1)*.05,t=224*this.scaleFactor*e,i=32*this.scaleFactor*e,p=32*this.scaleFactor*e;return[`background-image: url(${this.icons});`,`background-position-x: -${n*p}px;`,`background-size: ${t}px ${i}px;`,`height: ${p}px;`,`width: ${p}px;`,`padding-top: ${n-1}px;`].join("")}}};function AM(n,e,t,i,p,h){return Pe(),Nt("div",{style:to(h.iconStyle)},null,4)}const EM=Yi(TM,[["render",AM]]),K0={fatal:"critical",FATAL:"critical",error:"critical",ERROR:"critical",warn:"caution",WARN:"caution",info:"normal",INFO:"normal",debug:"off",DEBUG:"off",critical:"critical",CRITICAL:"critical",serious:"serious",SERIOUS:"serious",caution:"caution",CAUTION:"caution",normal:"normal",NORMAL:"normal",standby:"standby",STANDBY:"standby",off:"off",OFF:"OFF"},zh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},LM=function(n){const e="#000000",t="#ffffff",i=zh[K0[n]];if(i){const p=+`0x${i.slice(1,3)}`,h=+`0x${i.slice(3,5)}`,f=+`0x${i.slice(5,7)}`;if((p*299+h*587+f*114)/1e3>128)return e}return t},RM=Object.keys(zh),IM={astro:{component:n=>ks(CM,{...n})},"astro-status":{component:n=>ks(EM,{...n,status:n.icon})}},OM={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(n){return n.replaceAll(" ","-").toLowerCase()},subMenuClick(n){n.command(n),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},DM={class:"app-title mr-2"};function NM(n,e,t,i,p,h){const f=Se("v-col"),y=Se("v-row"),d=Se("v-icon"),g=Se("v-btn"),s=Se("v-divider"),l=Se("v-list-item-title"),a=Se("v-list-item"),c=Se("v-list"),o=Se("v-menu"),u=Se("v-radio"),v=Se("v-list-item-action"),b=Se("v-radio-group"),x=Se("v-checkbox");return Pe(),St(ep,{to:"#openc3-menu"},[_e(y,{"no-gutters":""},{default:xe(()=>[_e(f,{"align-self":"end"},{default:xe(()=>[Nn("span",DM,Qt(t.title),1)]),_:1})]),_:1}),_e(y,{dense:"",class:"flex-nowrap"},{default:xe(()=>[(Pe(!0),Nt(Fi,null,Gi(t.menus,(E,C)=>(Pe(),St(o,{ref_for:!0,ref:"topmenu",key:C},{activator:xe(({props:k})=>[_e(g,Ss({ref_for:!0},k,{variant:"outlined",class:"mx-1 menu-button",text:E.label,"data-test":h.formatDT(`${t.title} ${E.label}`)}),{append:xe(()=>[_e(d,{class:"menu-button-icon"},{default:xe(()=>e[0]||(e[0]=[ft(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:xe(()=>[_e(c,null,{default:xe(()=>[(Pe(!0),Nt(Fi,null,Gi(E.items,(k,w)=>(Pe(),Nt(Fi,null,[k.divider?(Pe(),St(s,{key:w+"-divider"})):k.subMenu&&k.subMenu.length>0?(Pe(),Nt("div",{key:w+"-submenu"},[(Pe(),St(o,{"open-on-hover":"",location:"right",key:w},{activator:xe(({props:T})=>[(Pe(),St(a,Ss({ref_for:!0},T,{disabled:k.disabled,key:w}),Nc({append:xe(()=>[_e(d,null,{default:xe(()=>e[1]||(e[1]=[ft(" mdi-chevron-right ")])),_:1})]),default:xe(()=>[!k.radio&&!k.checkbox?(Pe(),St(l,{key:0,style:to("cursor: pointer;"+(k.disabled?"opacity: 0.2":""))},{default:xe(()=>[ft(Qt(k.label),1)]),_:2},1032,["style"])):ri("",!0)]),_:2},[k.icon?{name:"prepend",fn:xe(()=>[_e(d,{disabled:k.disabled},{default:xe(()=>[ft(Qt(k.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:xe(()=>[_e(c,null,{default:xe(()=>[(Pe(!0),Nt(Fi,null,Gi(k.subMenu,(T,L)=>(Pe(),St(a,{key:L,"prepend-icon":T.icon,onClick:I=>h.subMenuClick(T)},{default:xe(()=>[_e(l,null,{default:xe(()=>[ft(Qt(T.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):k.radioGroup?(Pe(),St(b,{"model-value":k.value,"onUpdate:modelValue":k.command,key:w+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:xe(()=>[(Pe(!0),Nt(Fi,null,Gi(k.choices,(T,L)=>(Pe(),St(a,{key:L+"-choice"},{default:xe(()=>[_e(v,{class:"list-action"},{default:xe(()=>[_e(u,{color:"secondary",label:T.label,value:T.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(Pe(),St(a,{onClick:T=>k.command(k),disabled:k.disabled,"data-test":h.formatDT(`${t.title} ${E.label} ${k.label}`),key:w+"-list"},Nc({default:xe(()=>[k.checkbox?(Pe(),St(v,{key:0,class:"list-action"},{default:xe(()=>[_e(x,{modelValue:k.checked,"onUpdate:modelValue":T=>k.checked=T,label:k.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ri("",!0),!k.radio&&!k.checkbox?(Pe(),St(l,{key:1,style:to("cursor: pointer;"+(k.disabled?"opacity: 0.2":""))},{default:xe(()=>[ft(Qt(k.label),1)]),_:2},1032,["style"])):ri("",!0)]),_:2},[k.icon?{name:"prepend",fn:xe(()=>[_e(d,{icon:k.icon,disabled:k.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const FM=Yi(OM,[["render",NM],["__scopeId","data-v-4d454b93"]]),Q0="single-spa:app-change",PM={data(){return{show:!1}},created(){window.addEventListener(Q0,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=pp().length===0},150)},unmounted(){window.removeEventListener(Q0,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},HM={class:"mx-1"};function BM(n,e,t,i,p,h){const f=Se("v-card-title"),y=Se("v-card-text"),d=Se("v-card");return p.show?(Pe(),St(d,{key:0},{default:xe(()=>[_e(f,null,{default:xe(()=>e[0]||(e[0]=[ft(" 404 Not Found ")])),_:1}),_e(y,{class:"d-flex align-center mt-3"},{default:xe(()=>[e[1]||(e[1]=ft(" The requested URL ")),Nn("code",HM,Qt(n.$route.fullPath),1),e[2]||(e[2]=ft(" was not routable. ")),e[3]||(e[3]=Nn("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):ri("",!0)}const jM=Yi(PM,[["render",BM]]),zM={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const n=/\w+.gem/;return this.response.tree.filter(e=>n.exec(e.path)).map(e=>({name:e.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`}))},getResponse:function(){this.disableSearch=!0,wn.get(this.url).then(n=>{this.response=n.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(n){const e=document.createElement("a");e.href=n.url,e.setAttribute("download",n.name),e.click(),e.remove()}}},WM={class:"pa-3"},UM={class:"px-2"},VM={key:0,class:"mt-4"},qM={key:1,class:"mt-4"},GM={key:0},YM={key:1};function KM(n,e,t,i,p,h){const f=Se("v-spacer"),y=Se("v-toolbar"),d=Se("v-row"),g=Se("v-icon"),s=Se("v-btn"),l=Se("v-col"),a=Se("v-list-item-title"),c=Se("v-progress-circular"),o=Se("v-tooltip"),u=Se("v-list-item"),v=Se("v-divider"),b=Se("v-card-text"),x=Se("v-card"),E=Se("v-dialog");return Pe(),St(E,{modelValue:h.show,"onUpdate:modelValue":e[0]||(e[0]=C=>h.show=C),width:"600"},{default:xe(()=>[_e(x,null,{default:xe(()=>[_e(y,{height:"24"},{default:xe(()=>[_e(f),e[1]||(e[1]=Nn("span",null," Download Gems ",-1)),_e(f)]),_:1}),_e(b,null,{default:xe(()=>[Nn("div",WM,[_e(d,{class:"my-2"},{default:xe(()=>e[2]||(e[2]=[ft(" Select a download option ")])),_:1}),_e(d,null,{default:xe(()=>[_e(l,null,{default:xe(()=>[Nn("div",UM,[_e(s,{onClick:h.searchGithub,block:"","data-test":"searchGithub",color:"primary",disabled:p.disableSearch},{default:xe(()=>[e[4]||(e[4]=ft(" Github ")),_e(g,{end:"",theme:"dark"},{default:xe(()=>e[3]||(e[3]=[ft(" mdi-github ")])),_:1})]),_:1},8,["onClick","disabled"])])]),_:1})]),_:1}),_e(d,{class:"mt-5"},{default:xe(()=>e[5]||(e[5]=[ft(" Community Gems ")])),_:1}),h.listData.length<1?(Pe(),Nt("div",VM,[_e(d,{class:"mx-2"},{default:xe(()=>e[6]||(e[6]=[Nn("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(Pe(),Nt("div",qM,[(Pe(!0),Nt(Fi,null,Gi(h.listData,(C,k)=>(Pe(),Nt("div",{key:k},[_e(u,null,{default:xe(()=>[_e(a,null,{default:xe(()=>[ft(Qt(C.name),1)]),_:2},1024),_e(u,{icon:""},{default:xe(()=>[p.activeDownload?(Pe(),Nt("div",GM,[_e(c,{indeterminate:"",color:"primary"})])):(Pe(),Nt("div",YM,[_e(o,{location:"top"},{activator:xe(({props:w})=>[_e(g,Ss({ref_for:!0},w,{onClick:T=>h.downloadGem(C),disabled:p.activeDownload}),{default:xe(()=>e[7]||(e[7]=[ft(" mdi-cloud-download ")])),_:2},1040,["onClick","disabled"])]),default:xe(()=>[e[8]||(e[8]=Nn("span",null,"Download Gem",-1))]),_:2},1024)]))]),_:2},1024)]),_:2},1024),k<h.listData.length-1?(Pe(),St(v,{key:k})):ri("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const sO=Dn("b",Yi(zM,[["render",KM]])),QM={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},created(){for(const n of this.targets)ux.get(`/openc3-api/targets/${n.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:n.name,files:e.data})})}};function ZM(n,e,t,i,p,h){const f=Se("v-spacer"),y=Se("v-toolbar"),d=Se("v-list-item-title"),g=Se("v-list-item-subtitle"),s=Se("v-list-item"),l=Se("v-checkbox"),a=Se("v-card-text"),c=Se("v-btn"),o=Se("v-card-actions"),u=Se("v-card"),v=Se("v-dialog");return Pe(),St(v,{modelValue:h.show,"onUpdate:modelValue":e[3]||(e[3]=b=>h.show=b),width:"600"},{default:xe(()=>[_e(u,null,{default:xe(()=>[_e(y,{height:"24"},{default:xe(()=>[_e(f),e[4]||(e[4]=Nn("span",null," Modified Plugin ",-1)),_e(f)]),_:1}),_e(a,{class:"pa-3"},{default:xe(()=>[Nn("div",null," Plugin "+Qt(t.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(Pe(!0),Nt(Fi,null,Gi(p.modifiedTargets,(b,x)=>(Pe(),St(s,{lines:"two",key:x},{default:xe(()=>[_e(d,null,{default:xe(()=>[ft(Qt(b.name),1)]),_:2},1024),(Pe(!0),Nt(Fi,null,Gi(b.files,(E,C)=>(Pe(),St(g,{key:C},{default:xe(()=>[ft(Qt(E),1)]),_:2},1024))),128))]),_:2},1024))),128)),_e(l,{modelValue:p.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=b=>p.deleteModified=b),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),_e(o,{class:"px-2"},{default:xe(()=>[_e(f),_e(c,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:e[1]||(e[1]=()=>{h.show=!1,n.$emit("cancel")})},{default:xe(()=>e[5]||(e[5]=[ft(" Cancel ")])),_:1}),_e(c,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[2]||(e[2]=()=>{h.show=!1,n.$emit("submit",p.deleteModified)})},{default:xe(()=>e[6]||(e[6]=[ft(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const aO=Dn("w",Yi(QM,[["render",ZM]])),Wh=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>De(()=>Oe.import("./PluginsTab-Dli9v-0R-a1399af85f2fd990e133.js"),void 0)},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>De(()=>Oe.import("./TargetsTab-CxiGJ2P2-85a21e098266facf4e02.js"),void 0)},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>De(()=>Oe.import("./InterfacesTab-jtIK4SaM-d37991d03f54f16d4184.js"),void 0)},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>De(()=>Oe.import("./RoutersTab-DVCaPPmy-b9d80c9b1e7bdc67d92b.js"),void 0)},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>De(()=>Oe.import("./MicroservicesTab-D8GGVvwc-c1bb51519a9905e693db.js"),void 0)},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>De(()=>Oe.import("./PackagesTab-CkHqLuVL-a1723ff9378b042895e7.js"),void 0)},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>De(()=>Oe.import("./ToolsTab-B3gDjVxE-e0c39fb43d32b4a57698.js"),void 0)},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>De(()=>Oe.import("./RedisTab-B3fY9we7-760bc2333036ad71e6e2.js"),void 0)},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>De(()=>Oe.import("./SecretsTab-BuC3n5C4-b50ed27afdc2414dc4e1.js"),void 0)},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>De(()=>Oe.import("./SettingsTab-CYb9hSNx-9497e6025bffab0bc5be.js"),void 0)}],JM={components:{TopBar:FM},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return Wh.map(n=>({displayName:n.displayName,path:{name:n.name}}))}}};function XM(n,e,t,i,p,h){const f=Se("top-bar"),y=Se("v-tab"),d=Se("v-tabs"),g=Se("router-view"),s=Se("v-card");return Pe(),Nt("div",null,[_e(f,{title:p.title},null,8,["title"]),_e(s,null,{default:xe(()=>[_e(d,{modelValue:p.curTab,"onUpdate:modelValue":e[0]||(e[0]=l=>p.curTab=l),"fixed-tabs":""},{default:xe(()=>[(Pe(!0),Nt(Fi,null,Gi(h.tabs,(l,a)=>(Pe(),St(y,{key:a,to:l.path},{default:xe(()=>[ft(Qt(l.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),_e(g)]),_:1})])}const eT=Yi(JM,[["render",XM]]);var we=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},zt=-1,Yt=1,ut=0;we.Diff=function(n,e){this[0]=n,this[1]=e},we.Diff.prototype.length=2,we.Diff.prototype.toString=function(){return this[0]+","+this[1]},we.prototype.diff_main=function(n,e,t,i){typeof i>"u"&&(this.Diff_Timeout<=0?i=Number.MAX_VALUE:i=new Date().getTime()+this.Diff_Timeout*1e3);var p=i;if(n==null||e==null)throw new Error("Null input. (diff_main)");if(n==e)return n?[new we.Diff(ut,n)]:[];typeof t>"u"&&(t=!0);var h=t,f=this.diff_commonPrefix(n,e),y=n.substring(0,f);n=n.substring(f),e=e.substring(f),f=this.diff_commonSuffix(n,e);var d=n.substring(n.length-f);n=n.substring(0,n.length-f),e=e.substring(0,e.length-f);var g=this.diff_compute_(n,e,h,p);return y&&g.unshift(new we.Diff(ut,y)),d&&g.push(new we.Diff(ut,d)),this.diff_cleanupMerge(g),g},we.prototype.diff_compute_=function(n,e,t,i){var p;if(!n)return[new we.Diff(Yt,e)];if(!e)return[new we.Diff(zt,n)];var h=n.length>e.length?n:e,f=n.length>e.length?e:n,y=h.indexOf(f);return y!=-1?(p=[new we.Diff(Yt,h.substring(0,y)),new we.Diff(ut,f),new we.Diff(Yt,h.substring(y+f.length))],n.length>e.length&&(p[0][0]=p[2][0]=zt),p):f.length==1?[new we.Diff(zt,n),new we.Diff(Yt,e)]:t&&n.length>100&&e.length>100?this.diff_lineMode_(n,e,i):this.diff_bisect_(n,e,i)},we.prototype.diff_lineMode_=function(n,e,t){var i=this.diff_linesToChars_(n,e);n=i.chars1,e=i.chars2;var p=i.lineArray,h=this.diff_main(n,e,!1,t);this.diff_charsToLines_(h,p),this.diff_cleanupSemantic(h),h.push(new we.Diff(ut,""));for(var f=0,y=0,d=0,g="",s="";f<h.length;){switch(h[f][0]){case Yt:d++,s+=h[f][1];break;case zt:y++,g+=h[f][1];break;case ut:if(y>=1&&d>=1){h.splice(f-y-d,y+d),f=f-y-d;for(var l=this.diff_main(g,s,!1,t),a=l.length-1;a>=0;a--)h.splice(f,0,l[a]);f=f+l.length}d=0,y=0,g="",s="";break}f++}return h.pop(),h},we.prototype.diff_bisect_=function(n,e,t){for(var i=n.length,p=e.length,h=Math.ceil((i+p)/2),f=h,y=2*h,d=new Array(y),g=new Array(y),s=0;s<y;s++)d[s]=-1,g[s]=-1;d[f+1]=0,g[f+1]=0;for(var l=i-p,a=l%2!=0,c=0,o=0,u=0,v=0,b=0;b<h&&!(new Date().getTime()>t);b++){for(var x=-b+c;x<=b-o;x+=2){var E=f+x,C;x==-b||x!=b&&d[E-1]<d[E+1]?C=d[E+1]:C=d[E-1]+1;for(var k=C-x;C<i&&k<p&&n.charAt(C)==e.charAt(k);)C++,k++;if(d[E]=C,C>i)o+=2;else if(k>p)c+=2;else if(a){var w=f+l-x;if(w>=0&&w<y&&g[w]!=-1){var T=i-g[w];if(C>=T)return this.diff_bisectSplit_(n,e,C,k,t)}}}for(var L=-b+u;L<=b-v;L+=2){var w=f+L,T;L==-b||L!=b&&g[w-1]<g[w+1]?T=g[w+1]:T=g[w-1]+1;for(var I=T-L;T<i&&I<p&&n.charAt(i-T-1)==e.charAt(p-I-1);)T++,I++;if(g[w]=T,T>i)v+=2;else if(I>p)u+=2;else if(!a){var E=f+l-L;if(E>=0&&E<y&&d[E]!=-1){var C=d[E],k=f+C-E;if(T=i-T,C>=T)return this.diff_bisectSplit_(n,e,C,k,t)}}}}return[new we.Diff(zt,n),new we.Diff(Yt,e)]},we.prototype.diff_bisectSplit_=function(n,e,t,i,p){var h=n.substring(0,t),f=e.substring(0,i),y=n.substring(t),d=e.substring(i),g=this.diff_main(h,f,!1,p),s=this.diff_main(y,d,!1,p);return g.concat(s)},we.prototype.diff_linesToChars_=function(n,e){var t=[],i={};t[0]="";function p(d){for(var g="",s=0,l=-1,a=t.length;l<d.length-1;){l=d.indexOf(`
|
1414
|
+
`,s),l==-1&&(l=d.length-1);var c=d.substring(s,l+1);(i.hasOwnProperty?i.hasOwnProperty(c):i[c]!==void 0)?g+=String.fromCharCode(i[c]):(a==h&&(c=d.substring(s),l=d.length),g+=String.fromCharCode(a),i[c]=a,t[a++]=c),s=l+1}return g}var h=4e4,f=p(n);h=65535;var y=p(e);return{chars1:f,chars2:y,lineArray:t}},we.prototype.diff_charsToLines_=function(n,e){for(var t=0;t<n.length;t++){for(var i=n[t][1],p=[],h=0;h<i.length;h++)p[h]=e[i.charCodeAt(h)];n[t][1]=p.join("")}},we.prototype.diff_commonPrefix=function(n,e){if(!n||!e||n.charAt(0)!=e.charAt(0))return 0;for(var t=0,i=Math.min(n.length,e.length),p=i,h=0;t<p;)n.substring(h,p)==e.substring(h,p)?(t=p,h=t):i=p,p=Math.floor((i-t)/2+t);return p},we.prototype.diff_commonSuffix=function(n,e){if(!n||!e||n.charAt(n.length-1)!=e.charAt(e.length-1))return 0;for(var t=0,i=Math.min(n.length,e.length),p=i,h=0;t<p;)n.substring(n.length-p,n.length-h)==e.substring(e.length-p,e.length-h)?(t=p,h=t):i=p,p=Math.floor((i-t)/2+t);return p},we.prototype.diff_commonOverlap_=function(n,e){var t=n.length,i=e.length;if(t==0||i==0)return 0;t>i?n=n.substring(t-i):t<i&&(e=e.substring(0,t));var p=Math.min(t,i);if(n==e)return p;for(var h=0,f=1;;){var y=n.substring(p-f),d=e.indexOf(y);if(d==-1)return h;f+=d,(d==0||n.substring(p-f)==e.substring(0,f))&&(h=f,f++)}},we.prototype.diff_halfMatch_=function(n,e){if(this.Diff_Timeout<=0)return null;var t=n.length>e.length?n:e,i=n.length>e.length?e:n;if(t.length<4||i.length*2<t.length)return null;var p=this;function h(o,u,v){for(var b=o.substring(v,v+Math.floor(o.length/4)),x=-1,E="",C,k,w,T;(x=u.indexOf(b,x+1))!=-1;){var L=p.diff_commonPrefix(o.substring(v),u.substring(x)),I=p.diff_commonSuffix(o.substring(0,v),u.substring(0,x));E.length<I+L&&(E=u.substring(x-I,x)+u.substring(x,x+L),C=o.substring(0,v-I),k=o.substring(v+L),w=u.substring(0,x-I),T=u.substring(x+L))}return E.length*2>=o.length?[C,k,w,T,E]:null}var f=h(t,i,Math.ceil(t.length/4)),y=h(t,i,Math.ceil(t.length/2)),d;if(!f&&!y)return null;y?f?d=f[4].length>y[4].length?f:y:d=y:d=f;var g,s,l,a;n.length>e.length?(g=d[0],s=d[1],l=d[2],a=d[3]):(l=d[0],a=d[1],g=d[2],s=d[3]);var c=d[4];return[g,s,l,a,c]},we.prototype.diff_cleanupSemantic=function(n){for(var e=!1,t=[],i=0,p=null,h=0,f=0,y=0,d=0,g=0;h<n.length;)n[h][0]==ut?(t[i++]=h,f=d,y=g,d=0,g=0,p=n[h][1]):(n[h][0]==Yt?d+=n[h][1].length:g+=n[h][1].length,p&&p.length<=Math.max(f,y)&&p.length<=Math.max(d,g)&&(n.splice(t[i-1],0,new we.Diff(zt,p)),n[t[i-1]+1][0]=Yt,i--,i--,h=i>0?t[i-1]:-1,f=0,y=0,d=0,g=0,p=null,e=!0)),h++;for(e&&this.diff_cleanupMerge(n),this.diff_cleanupSemanticLossless(n),h=1;h<n.length;){if(n[h-1][0]==zt&&n[h][0]==Yt){var s=n[h-1][1],l=n[h][1],a=this.diff_commonOverlap_(s,l),c=this.diff_commonOverlap_(l,s);a>=c?(a>=s.length/2||a>=l.length/2)&&(n.splice(h,0,new we.Diff(ut,l.substring(0,a))),n[h-1][1]=s.substring(0,s.length-a),n[h+1][1]=l.substring(a),h++):(c>=s.length/2||c>=l.length/2)&&(n.splice(h,0,new we.Diff(ut,s.substring(0,c))),n[h-1][0]=Yt,n[h-1][1]=l.substring(0,l.length-c),n[h+1][0]=zt,n[h+1][1]=s.substring(c),h++),h++}h++}},we.prototype.diff_cleanupSemanticLossless=function(n){function e(c,o){if(!c||!o)return 6;var u=c.charAt(c.length-1),v=o.charAt(0),b=u.match(we.nonAlphaNumericRegex_),x=v.match(we.nonAlphaNumericRegex_),E=b&&u.match(we.whitespaceRegex_),C=x&&v.match(we.whitespaceRegex_),k=E&&u.match(we.linebreakRegex_),w=C&&v.match(we.linebreakRegex_),T=k&&c.match(we.blanklineEndRegex_),L=w&&o.match(we.blanklineStartRegex_);return T||L?5:k||w?4:b&&!E&&C?3:E||C?2:b||x?1:0}for(var t=1;t<n.length-1;){if(n[t-1][0]==ut&&n[t+1][0]==ut){var i=n[t-1][1],p=n[t][1],h=n[t+1][1],f=this.diff_commonSuffix(i,p);if(f){i[i.length-f]===`
|
1415
|
+
`&&(f-=1);var y=p.substring(p.length-f);i=i.substring(0,i.length-f),p=y+p.substring(0,p.length-f),h=y+h}for(var d=i,g=p,s=h,l=e(i,p)+e(p,h);p.charAt(0)===h.charAt(0);){i+=p.charAt(0),p=p.substring(1)+h.charAt(0),h=h.substring(1);var a=e(i,p)+e(p,h);a>=l&&(l=a,d=i,g=p,s=h)}n[t-1][1]!=d&&(d?n[t-1][1]=d:(n.splice(t-1,1),t--),n[t][1]=g,s?n[t+1][1]=s:(n.splice(t+1,1),t--))}t++}},we.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,we.whitespaceRegex_=/\s/,we.linebreakRegex_=/[\r\n]/,we.blanklineEndRegex_=/\n\r?\n$/,we.blanklineStartRegex_=/^\r?\n\r?\n/,we.prototype.diff_cleanupEfficiency=function(n){for(var e=!1,t=[],i=0,p=null,h=0,f=!1,y=!1,d=!1,g=!1;h<n.length;)n[h][0]==ut?(n[h][1].length<this.Diff_EditCost&&(d||g)?(t[i++]=h,f=d,y=g,p=n[h][1]):(i=0,p=null),d=g=!1):(n[h][0]==zt?g=!0:d=!0,p&&(f&&y&&d&&g||p.length<this.Diff_EditCost/2&&f+y+d+g==3)&&(n.splice(t[i-1],0,new we.Diff(zt,p)),n[t[i-1]+1][0]=Yt,i--,p=null,f&&y?(d=g=!0,i=0):(i--,h=i>0?t[i-1]:-1,d=g=!1),e=!0)),h++;e&&this.diff_cleanupMerge(n)},we.prototype.diff_cleanupMerge=function(n){n.push(new we.Diff(ut,""));for(var e=0,t=0,i=0,p="",h="",f;e<n.length;)switch(n[e][0]){case Yt:i++,h+=n[e][1],e++;break;case zt:t++,p+=n[e][1],e++;break;case ut:t+i>1?(t!==0&&i!==0&&(f=this.diff_commonPrefix(h,p),f!==0&&(e-t-i>0&&n[e-t-i-1][0]==ut?n[e-t-i-1][1]+=h.substring(0,f):(n.splice(0,0,new we.Diff(ut,h.substring(0,f))),e++),h=h.substring(f),p=p.substring(f)),f=this.diff_commonSuffix(h,p),f!==0&&(n[e][1]=h.substring(h.length-f)+n[e][1],h=h.substring(0,h.length-f),p=p.substring(0,p.length-f))),e-=t+i,n.splice(e,t+i),p.length&&(n.splice(e,0,new we.Diff(zt,p)),e++),h.length&&(n.splice(e,0,new we.Diff(Yt,h)),e++),e++):e!==0&&n[e-1][0]==ut?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,i=0,t=0,p="",h="";break}n[n.length-1][1]===""&&n.pop();var y=!1;for(e=1;e<n.length-1;)n[e-1][0]==ut&&n[e+1][0]==ut&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)==n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),y=!0):n[e][1].substring(0,n[e+1][1].length)==n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),y=!0)),e++;y&&this.diff_cleanupMerge(n)},we.prototype.diff_cleanupSplitSurrogates=function(n){for(var e,t=0;t<n.length;t++){var i=n[t],p=i[1][0],h=i[1][i[1].length-1];if(i[1].length===0){n.splice(t--,1);continue}if(h&&this.isHighSurrogate(h)&&(e=h,i[1]=i[1].slice(0,-1)),e&&p&&this.isHighSurrogate(e)&&this.isLowSurrogate(p)&&(i[1]=e+i[1]),i[1].length===0){n.splice(t--,1);continue}}return n},we.prototype.isHighSurrogate=function(n){var e=n.charCodeAt(0);return e>=55296&&e<=56319},we.prototype.isLowSurrogate=function(n){var e=n.charCodeAt(0);return e>=56320&&e<=57343},we.prototype.digit16=function(n){switch(n){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"A":case"a":return 10;case"B":case"b":return 11;case"C":case"c":return 12;case"D":case"d":return 13;case"E":case"e":return 14;case"F":case"f":return 15;default:throw new Error("Invalid hex-code")}},we.prototype.decodeURI=function(n){try{return decodeURI(n)}catch{for(var e=0,t="";e<n.length;){if(n[e]!=="%"){t+=n[e++];continue}var i=(this.digit16(n[e+1])<<4)+this.digit16(n[e+2]);if(!(i&128)){t+=String.fromCharCode(i),e+=3;continue}if(n[e+3]!=="%")throw new URIError("URI malformed");var p=(this.digit16(n[e+4])<<4)+this.digit16(n[e+5]);if((p&192)!==128)throw new URIError("URI malformed");if(p=p&63,(i&224)===192){t+=String.fromCharCode((i&31)<<6|p),e+=6;continue}if(n[e+6]!=="%")throw new URIError("URI malformed");var h=(this.digit16(n[e+7])<<4)+this.digit16(n[e+8]);if((h&192)!==128)throw new URIError("URI malformed");if(h=h&63,(i&240)===224){t+=String.fromCharCode((i&15)<<12|p<<6|h),e+=9;continue}if(n[e+9]!=="%")throw new URIError("URI malformed");var f=(this.digit16(n[e+10])<<4)+this.digit16(n[e+11]);if((f&192)!==128)throw new URIError("URI malformed");if(f=f&63,(i&248)===240){var y=(i&7)<<18|p<<12|h<<6|f;if(y>=65536&&y<=1114111){t+=String.fromCharCode((y&65535)>>>10&1023|55296),t+=String.fromCharCode(56320|y&65535&1023),e+=12;continue}}throw new URIError("URI malformed")}return t}},we.prototype.diff_xIndex=function(n,e){var t=0,i=0,p=0,h=0,f;for(f=0;f<n.length&&(n[f][0]!==Yt&&(t+=n[f][1].length),n[f][0]!==zt&&(i+=n[f][1].length),!(t>e));f++)p=t,h=i;return n.length!=f&&n[f][0]===zt?h:h+(e-p)},we.prototype.diff_prettyHtml=function(n){n=this.diff_cleanupSplitSurrogates(n);for(var e=[],t=/&/g,i=/</g,p=/>/g,h=/\n/g,f=0;f<n.length;f++){var y=n[f][0],d=n[f][1],g=d.replace(t,"&").replace(i,"<").replace(p,">").replace(h,"¶<br>");switch(y){case Yt:e[f]='<ins style="background:#e6ffe6;">'+g+"</ins>";break;case zt:e[f]='<del style="background:#ffe6e6;">'+g+"</del>";break;case ut:e[f]="<span>"+g+"</span>";break}}return e.join("")},we.prototype.diff_text1=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==Yt&&(e[t]=n[t][1]);return e.join("")},we.prototype.diff_text2=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==zt&&(e[t]=n[t][1]);return e.join("")},we.prototype.diff_levenshtein=function(n){for(var e=0,t=0,i=0,p=0;p<n.length;p++){var h=n[p][0],f=n[p][1];switch(h){case Yt:t+=f.length;break;case zt:i+=f.length;break;case ut:e+=Math.max(t,i),t=0,i=0;break}}return e+=Math.max(t,i),e},we.prototype.diff_toDelta=function(n){n=this.diff_cleanupSplitSurrogates(n);for(var e=[],t=0;t<n.length;t++)switch(n[t][0]){case Yt:e[t]="+"+encodeURI(n[t][1]);break;case zt:e[t]="-"+n[t][1].length;break;case ut:e[t]="="+n[t][1].length;break}return e.join(" ").replace(/%20/g," ")},we.prototype.diff_fromDelta=function(n,e){for(var t=[],i=0,p=0,h=e.split(/\t/g),f=0;f<h.length;f++){var y=h[f].substring(1);switch(h[f].charAt(0)){case"+":try{t[i++]=new we.Diff(Yt,this.decodeURI(y))}catch{throw new Error("Illegal escape in diff_fromDelta: "+y)}break;case"-":case"=":var d=parseInt(y,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+y);var g=n.substring(p,p+=d);h[f].charAt(0)=="="?t[i++]=new we.Diff(ut,g):t[i++]=new we.Diff(zt,g);break;default:if(h[f])throw new Error("Invalid diff operation in diff_fromDelta: "+h[f])}}if(p!=n.length)throw new Error("Delta length ("+p+") does not equal source text length ("+n.length+").");return t},we.prototype.match_main=function(n,e,t){if(n==null||e==null||t==null)throw new Error("Null input. (match_main)");return t=Math.max(0,Math.min(t,n.length)),n==e?0:n.length?n.substring(t,t+e.length)==e?t:this.match_bitap_(n,e,t):-1},we.prototype.match_bitap_=function(n,e,t){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(e),p=this;function h(C,k){var w=C/e.length,T=Math.abs(t-k);return p.Match_Distance?w+T/p.Match_Distance:T?1:w}var f=this.Match_Threshold,y=n.indexOf(e,t);y!=-1&&(f=Math.min(h(0,y),f),y=n.lastIndexOf(e,t+e.length),y!=-1&&(f=Math.min(h(0,y),f)));var d=1<<e.length-1;y=-1;for(var g,s,l=e.length+n.length,a,c=0;c<e.length;c++){for(g=0,s=l;g<s;)h(c,t+s)<=f?g=s:l=s,s=Math.floor((l-g)/2+g);l=s;var o=Math.max(1,t-s+1),u=Math.min(t+s,n.length)+e.length,v=Array(u+2);v[u+1]=(1<<c)-1;for(var b=u;b>=o;b--){var x=i[n.charAt(b-1)];if(c===0?v[b]=(v[b+1]<<1|1)&x:v[b]=(v[b+1]<<1|1)&x|((a[b+1]|a[b])<<1|1)|a[b+1],v[b]&d){var E=h(c,b-1);if(E<=f)if(f=E,y=b-1,y>t)o=Math.max(1,2*t-y);else break}}if(h(c+1,t)>f)break;a=v}return y},we.prototype.match_alphabet_=function(n){for(var e={},t=0;t<n.length;t++)e[n.charAt(t)]=0;for(var t=0;t<n.length;t++)e[n.charAt(t)]|=1<<n.length-t-1;return e},we.prototype.patch_addContext_=function(n,e){if(e.length!=0){if(n.start2===null)throw Error("patch not initialized");for(var t=e.substring(n.start2,n.start2+n.length1),i=0;e.indexOf(t)!=e.lastIndexOf(t)&&t.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,t=e.substring(n.start2-i,n.start2+n.length1+i);i+=this.Patch_Margin,n.start2-i>0&&we.prototype.isLowSurrogate(e[n.start2-i])&&i++;var p=e.substring(n.start2-i,n.start2);p&&n.diffs.unshift(new we.Diff(ut,p)),n.start2+n.length1+i<e.length&&we.prototype.isHighSurrogate(e[n.start2+n.length1+i])&&i++;var h=e.substring(n.start2+n.length1,n.start2+n.length1+i);h&&n.diffs.push(new we.Diff(ut,h)),n.start1-=p.length,n.start2-=p.length,n.length1+=p.length+h.length,n.length2+=p.length+h.length}},we.prototype.patch_make=function(n,e,t){var i,p;if(typeof n=="string"&&typeof e=="string"&&typeof t>"u")i=n,p=this.diff_main(i,e,!0),p.length>2&&(this.diff_cleanupSemantic(p),this.diff_cleanupEfficiency(p));else if(n&&typeof n=="object"&&typeof e>"u"&&typeof t>"u")p=n,i=this.diff_text1(p);else if(typeof n=="string"&&e&&typeof e=="object"&&typeof t>"u")i=n,p=e;else if(typeof n=="string"&&typeof e=="string"&&t&&typeof t=="object")i=n,p=t;else throw new Error("Unknown call format to patch_make.");if(p.length===0)return[];p=this.diff_cleanupSplitSurrogates(p);for(var h=[],f=new we.patch_obj,y=0,d=0,g=0,s=i,l=i,a=0;a<p.length;a++){var c=p[a][0],o=p[a][1];switch(!y&&c!==ut&&(f.start1=d,f.start2=g),c){case Yt:f.diffs[y++]=p[a],f.length2+=o.length,l=l.substring(0,g)+o+l.substring(g);break;case zt:f.length1+=o.length,f.diffs[y++]=p[a],l=l.substring(0,g)+l.substring(g+o.length);break;case ut:o.length<=2*this.Patch_Margin&&y&&p.length!=a+1?(f.diffs[y++]=p[a],f.length1+=o.length,f.length2+=o.length):o.length>=2*this.Patch_Margin&&y&&(this.patch_addContext_(f,s),h.push(f),f=new we.patch_obj,y=0,s=l,d=g);break}c!==Yt&&(d+=o.length),c!==zt&&(g+=o.length)}return y&&(this.patch_addContext_(f,s),h.push(f)),h},we.prototype.patch_deepCopy=function(n){for(var e=[],t=0;t<n.length;t++){var i=n[t],p=new we.patch_obj;p.diffs=[];for(var h=0;h<i.diffs.length;h++)p.diffs[h]=new we.Diff(i.diffs[h][0],i.diffs[h][1]);p.start1=i.start1,p.start2=i.start2,p.length1=i.length1,p.length2=i.length2,e[t]=p}return e},we.prototype.patch_apply=function(n,e){if(n.length==0)return[e,[]];n=this.patch_deepCopy(n);var t=this.patch_addPadding(n);e=t+e+t,this.patch_splitMax(n);for(var i=0,p=[],h=0;h<n.length;h++){var f=n[h].start2+i,y=this.diff_text1(n[h].diffs),d,g=-1;if(y.length>this.Match_MaxBits?(d=this.match_main(e,y.substring(0,this.Match_MaxBits),f),d!=-1&&(g=this.match_main(e,y.substring(y.length-this.Match_MaxBits),f+y.length-this.Match_MaxBits),(g==-1||d>=g)&&(d=-1))):d=this.match_main(e,y,f),d==-1)p[h]=!1,i-=n[h].length2-n[h].length1;else{p[h]=!0,i=d-f;var s;if(g==-1?s=e.substring(d,d+y.length):s=e.substring(d,g+this.Match_MaxBits),y==s)e=e.substring(0,d)+this.diff_text2(n[h].diffs)+e.substring(d+y.length);else{var l=this.diff_main(y,s,!1);if(y.length>this.Match_MaxBits&&this.diff_levenshtein(l)/y.length>this.Patch_DeleteThreshold)p[h]=!1;else{this.diff_cleanupSemanticLossless(l);for(var a=0,c,o=0;o<n[h].diffs.length;o++){var u=n[h].diffs[o];u[0]!==ut&&(c=this.diff_xIndex(l,a)),u[0]===Yt?e=e.substring(0,d+c)+u[1]+e.substring(d+c):u[0]===zt&&(e=e.substring(0,d+c)+e.substring(d+this.diff_xIndex(l,a+u[1].length))),u[0]!==zt&&(a+=u[1].length)}}}}}return e=e.substring(t.length,e.length-t.length),[e,p]},we.prototype.patch_addPadding=function(n){for(var e=this.Patch_Margin,t="",i=1;i<=e;i++)t+=String.fromCharCode(i);for(var i=0;i<n.length;i++)n[i].start1+=e,n[i].start2+=e;var p=n[0],h=p.diffs;if(h.length==0||h[0][0]!=ut)h.unshift(new we.Diff(ut,t)),p.start1-=e,p.start2-=e,p.length1+=e,p.length2+=e;else if(e>h[0][1].length){var f=e-h[0][1].length;h[0][1]=t.substring(h[0][1].length)+h[0][1],p.start1-=f,p.start2-=f,p.length1+=f,p.length2+=f}if(p=n[n.length-1],h=p.diffs,h.length==0||h[h.length-1][0]!=ut)h.push(new we.Diff(ut,t)),p.length1+=e,p.length2+=e;else if(e>h[h.length-1][1].length){var f=e-h[h.length-1][1].length;h[h.length-1][1]+=t.substring(0,f),p.length1+=f,p.length2+=f}return t},we.prototype.patch_splitMax=function(n){for(var e=this.Match_MaxBits,t=0;t<n.length;t++)if(!(n[t].length1<=e)){var i=n[t];n.splice(t--,1);for(var p=i.start1,h=i.start2,f="";i.diffs.length!==0;){var y=new we.patch_obj,d=!0;for(y.start1=p-f.length,y.start2=h-f.length,f!==""&&(y.length1=y.length2=f.length,y.diffs.push(new we.Diff(ut,f)));i.diffs.length!==0&&y.length1<e-this.Patch_Margin;){var g=i.diffs[0][0],s=i.diffs[0][1];g===Yt?(y.length2+=s.length,h+=s.length,y.diffs.push(i.diffs.shift()),d=!1):g===zt&&y.diffs.length==1&&y.diffs[0][0]==ut&&s.length>2*e?(y.length1+=s.length,p+=s.length,d=!1,y.diffs.push(new we.Diff(g,s)),i.diffs.shift()):(s=s.substring(0,e-y.length1-this.Patch_Margin),y.length1+=s.length,p+=s.length,g===ut?(y.length2+=s.length,h+=s.length):d=!1,y.diffs.push(new we.Diff(g,s)),s==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(s.length))}f=this.diff_text2(y.diffs),f=f.substring(f.length-this.Patch_Margin);var l=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);l!==""&&(y.length1+=l.length,y.length2+=l.length,y.diffs.length!==0&&y.diffs[y.diffs.length-1][0]===ut?y.diffs[y.diffs.length-1][1]+=l:y.diffs.push(new we.Diff(ut,l))),d||n.splice(++t,0,y)}}},we.prototype.patch_toText=function(n){for(var e=[],t=0;t<n.length;t++)e[t]=n[t];return e.join("")},we.prototype.patch_fromText=function(n){var e=[];if(!n)return e;for(var t=n.split(`
|
1416
|
+
`),i=0,p=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<t.length;){var h=t[i].match(p);if(!h)throw new Error("Invalid patch string: "+t[i]);var f=new we.patch_obj;for(e.push(f),f.start1=parseInt(h[1],10),h[2]===""?(f.start1--,f.length1=1):h[2]=="0"?f.length1=0:(f.start1--,f.length1=parseInt(h[2],10)),f.start2=parseInt(h[3],10),h[4]===""?(f.start2--,f.length2=1):h[4]=="0"?f.length2=0:(f.start2--,f.length2=parseInt(h[4],10)),i++;i<t.length;){var y=t[i].charAt(0);try{var d=decodeURI(t[i].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+d)}if(y=="-")f.diffs.push(new we.Diff(zt,d));else if(y=="+")f.diffs.push(new we.Diff(Yt,d));else if(y==" ")f.diffs.push(new we.Diff(ut,d));else{if(y=="@")break;if(y!=="")throw new Error('Invalid patch mode "'+y+'" in: '+d)}i++}}return e},we.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},we.patch_obj.prototype.toString=function(){var n,e;this.length1===0?n=this.start1+",0":this.length1==1?n=this.start1+1:n=this.start1+1+","+this.length1,this.length2===0?e=this.start2+",0":this.length2==1?e=this.start2+1:e=this.start2+1+","+this.length2;var t=["@@ -"+n+" +"+e+` @@
|
1417
|
+
`],i;we.prototype.diff_cleanupSplitSurrogates(this.diffs);for(var p=0;p<this.diffs.length;p++){switch(this.diffs[p][0]){case Yt:i="+";break;case zt:i="-";break;case ut:i=" ";break}t[p+1]=i+encodeURI(this.diffs[p][1])+`
|
1418
|
+
`}return t.join("").replace(/%20/g," ")};function Tl(n){return n&&typeof n=="object"&&!Array.isArray(n)&&n!==null}function Uh(n,e){return Tl(n)&&Tl(e)&&Object.keys(e).forEach(t=>{Tl(e[t])?((!n[t]||!Tl(n[t]))&&(n[t]=e[t]),Uh(n[t],e[t])):Object.assign(n,{[t]:e[t]})}),n}function Z0(n,e,t=!1){let i=null,p=!0;return(...h)=>{const f=t&&p,y=()=>{n.apply(this,h),i=null};f&&(p=!1,y()),i||(i=setTimeout(y,e))}}function tT(n,e){let t;return(...i)=>{const p=this;clearTimeout(t),t=setTimeout(()=>n.apply(p,i),e)}}function J0(n=""){return n.replace(/\r\n/g,`
|
1419
|
+
`)}function X0(n,e,t,i){const p=t-n,h=n+p/2;return`M ${n} ${e} C ${h},${e} ${h},${i} ${t},${i}`}const Wt={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function ev(n,e){let{mode:t}=n.options;return e===Wt.EDITOR_LEFT&&n.options.left.mode!==null&&(t=n.options.left.mode),e===Wt.EDITOR_RIGHT&&n.options.right.mode!==null&&(t=n.options.right.mode),t}function tv(n,e){let{theme:t}=n.options;return e===Wt.EDITOR_LEFT&&n.options.left.theme!==null&&(t=n.options.left.theme),e===Wt.EDITOR_RIGHT&&n.options.right.theme!==null&&(t=n.options.right.theme),t}function nv(n,e){return n.ace.getSession().doc.getLine(e)}function nT(n){return document.getElementById(n.options.left.id).offsetHeight}function iv(n){const e=document.createElement("div"),t={class:n.className,style:`top:${n.topOffset}px`,title:n.tooltip,"data-diff-index":n.diffIndex};for(const i in t)e.setAttribute(i,t[i]);return e.innerHTML=n.arrowContent,e}function Vh(n,e){const t=Math.random().toString(36).substr(2,5),i=`js-${e}-${t}`,p=n.querySelector(`.${e}`);if(p)return p.id=p.id||i,p.id;const h=document.createElement("div");return n.appendChild(h),h.className=e,h.id=i,h.id}function rv(n,e,t,i){const p=n==="document"?document:document.querySelector(n);p.addEventListener(e,h=>{const f=p.querySelectorAll(t),{target:y}=h;for(let d=0,g=f.length;d<g;d+=1){let s=y;const l=f[d];for(;s&&s!==p;)s===l&&i.call(l,h),s=s.parentNode}})}let Al;function iT(n){if(n.Range)return n.Range;const e=n.acequire||n.require;return e?e("ace/range"):!1}function El(n={}){if(!(this instanceof El))return new El(n);const e=this,t=()=>window?window.ace:void 0;e.options=Uh({ace:t(),mode:null,theme:null,element:null,diffGranularity:Wt.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"→",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"←",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},n);const{ace:i}=e.options;if(!i){const p="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(p),new Error(p)}if(Al=iT(i),!Al){const p="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(p),new Error(p)}if(e.options.element===null){const p="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(p),new Error(p)}if(e.options.element instanceof HTMLElement?e.el=e.options.element:e.el=document.body.querySelector(e.options.element),!e.el){const p=`Can't find the specified element ${e.options.element}`;return console.error(p),new Error(p)}e.options.left.id=Vh(e.el,"acediff__left"),e.options.classes.gutterID=Vh(e.el,"acediff__gutter"),e.options.right.id=Vh(e.el,"acediff__right"),e.el.innerHTML=`<div class="acediff__wrap">${e.el.innerHTML}</div>`,e.editors={left:{ace:i.edit(e.options.left.id),markers:[],lineLengths:[]},right:{ace:i.edit(e.options.right.id),markers:[],lineLengths:[]},editorHeight:null},e.editors.left.ace.getSession().setMode(ev(e,Wt.EDITOR_LEFT)),e.editors.right.ace.getSession().setMode(ev(e,Wt.EDITOR_RIGHT)),e.editors.left.ace.setReadOnly(!e.options.left.editable),e.editors.right.ace.setReadOnly(!e.options.right.editable),e.editors.left.ace.setTheme(tv(e,Wt.EDITOR_LEFT)),e.editors.right.ace.setTheme(tv(e,Wt.EDITOR_RIGHT)),e.editors.left.ace.setValue(J0(e.options.left.content),-1),e.editors.right.ace.setValue(J0(e.options.right.content),-1),e.editors.editorHeight=nT(e),setTimeout(()=>{e.lineHeight=e.editors.left.ace.renderer.lineHeight,rT(e),lT(e),fv(e),e.diff()},1)}El.prototype={setOptions(n){Uh(this.options,n),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const n=new we,e=this.editors.left.ace.getSession().getValue(),t=this.editors.right.ace.getSession().getValue(),i=n.diff_main(t,e);n.diff_cleanupSemantic(i),this.editors.left.lineLengths=av(this.editors.left),this.editors.right.lineLengths=av(this.editors.right);const p=[],h={left:0,right:0};i.forEach(f=>{const y=f[0];let d=f[1];d.length!==0&&(y===Wt.DIFF_EQUAL?(h.left+=d.length,h.right+=d.length):y===Wt.DIFF_DELETE?(p.push(hv(this,Wt.DIFF_DELETE,h.left,h.right,d)),h.right+=d.length):y===Wt.DIFF_INSERT&&(p.push(hv(this,Wt.DIFF_INSERT,h.left,h.right,d)),h.left+=d.length))},this),this.diffs=hT(this,p),!(this.diffs.length>this.options.maxDiffs)&&(uv(this),mv(this))},destroy(){const n=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let e=this.editors.left.ace.container,t=e.cloneNode(!1);t.textContent=n,e.parentNode.replaceChild(t,e);const i=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),e=this.editors.right.ace.container,t=e.cloneNode(!1),t.textContent=i,e.parentNode.replaceChild(t,e),document.getElementById(this.options.classes.gutterID).innerHTML="",ov()}};let ov=()=>{};function rT(n){n.editors.left.ace.getSession().on("changeScrollTop",Z0(()=>{cv(n)},16)),n.editors.right.ace.getSession().on("changeScrollTop",Z0(()=>{cv(n)},16));const e=n.diff.bind(n);n.editors.left.ace.on("change",e),n.editors.right.ace.on("change",e),n.options.left.copyLinkEnabled&&rv(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.newCodeConnectorLink}`,i=>{sv(n,i,Wt.LTR)}),n.options.right.copyLinkEnabled&&rv(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.deletedCodeConnectorLink}`,i=>{sv(n,i,Wt.RTL)});const t=tT(()=>{n.editors.availableHeight=document.getElementById(n.options.left.id).offsetHeight,n.diff()},250);window.addEventListener("resize",t),ov=()=>{window.removeEventListener("resize",t)}}function sv(n,e,t){const i=parseInt(e.target.getAttribute("data-diff-index"),10),p=n.diffs[i];let h,f,y,d,g,s;t===Wt.LTR?(h=n.editors.left,f=n.editors.right,y=p.leftStartLine,d=p.leftEndLine,g=p.rightStartLine,s=p.rightEndLine):(h=n.editors.right,f=n.editors.left,y=p.rightStartLine,d=p.rightEndLine,g=p.leftStartLine,s=p.leftEndLine);let l="";for(let c=y;c<d;c+=1)l+=nv(h,c),c===y&&l===""&&g!=0&&(l+=`
|
1420
|
+
`),c<h.ace.getSession().getLength()-1&&(l+=`
|
1421
|
+
`);const a=f.ace.getSession().getScrollTop();f.ace.getSession().replace(new Al(g,0,s,0),l),f.ace.getSession().setScrollTop(parseInt(a,10)),n.diff()}function av(n){const e=n.ace.getSession().doc.getAllLines(),t=[];return e.forEach(i=>{t.push(i.length+1)}),t}function lv(n,e,t,i,p){const h=n.editors[e];i<t&&(i=t);const f=`${p} ${i>t?"lines":"targetOnly"}`;i>t&&(i-=1),h.markers.push(h.ace.session.addMarker(new Al(t,0,i,1),f,"fullLine"))}function cv(n){uv(n),mv(n),aT(n)}function uv(n){n.editors.left.markers.forEach(e=>{n.editors.left.ace.getSession().removeMarker(e)},n),n.editors.right.markers.forEach(e=>{n.editors.right.ace.getSession().removeMarker(e)},n)}function oT(n,e,t,i,p){const h=n.editors.left.ace.getSession().getScrollTop(),f=n.editors.right.ace.getSession().getScrollTop();n.connectorYOffset=1;const y=-1,d=e*n.lineHeight-h+.5,g=n.gutterWidth+1,s=i*n.lineHeight-f+.5,l=-1,a=t*n.lineHeight-h+n.connectorYOffset+.5,c=n.gutterWidth+1,o=p*n.lineHeight-f+n.connectorYOffset+.5,u=X0(y,d,g,s),v=X0(c,o,l,a),b=`L${g},${s} ${c},${o}`,x=`L${l},${a} ${y},${d}`,E=`${u} ${b} ${v} ${x}`,C=document.createElementNS(Wt.SVG_NS,"path");C.setAttribute("d",E),C.setAttribute("class",n.options.classes.connector),n.gutterSVG.appendChild(C)}function sT(n,e,t){if(e.leftEndLine>e.leftStartLine&&n.options.left.copyLinkEnabled){const i=iv({className:n.options.classes.newCodeConnectorLink,topOffset:e.leftStartLine*n.lineHeight,tooltip:"Copy to right",diffIndex:t,arrowContent:n.options.classes.newCodeConnectorLinkContent});n.copyRightContainer.appendChild(i)}if(e.rightEndLine>e.rightStartLine&&n.options.right.copyLinkEnabled){const i=iv({className:n.options.classes.deletedCodeConnectorLink,topOffset:e.rightStartLine*n.lineHeight,tooltip:"Copy to left",diffIndex:t,arrowContent:n.options.classes.deletedCodeConnectorLinkContent});n.copyLeftContainer.appendChild(i)}}function aT(n){const e=n.editors.left.ace.getSession().getScrollTop(),t=n.editors.right.ace.getSession().getScrollTop();n.copyRightContainer.style.cssText=`top: ${-e}px`,n.copyLeftContainer.style.cssText=`top: ${-t}px`}function hv(n,e,t,i,p){let h={};if(e===Wt.DIFF_INSERT){let f=dv(n.editors.left,t,p),y=pv(n.editors.right,i),d=qs(n.editors.right,y);const g=qs(n.editors.left,f.startLine);let s=y,l=f.startLine===f.endLine,a=0;(f.startChar>0||l&&p.length<g)&&d>0&&f.startChar<g&&a++,h={leftStartLine:f.startLine,leftEndLine:f.endLine+1,rightStartLine:s,rightEndLine:s+a}}else{let f=dv(n.editors.right,i,p),y=pv(n.editors.left,t),d=qs(n.editors.left,y);const g=qs(n.editors.right,f.startLine);let s=y,l=f.startLine===f.endLine,a=0;(f.startChar>0||l&&p.length<g)&&d>0&&f.startChar<g&&a++,h={leftStartLine:s,leftEndLine:s+a,rightStartLine:f.startLine,rightEndLine:f.endLine+1}}return h}function dv(n,e,t){const i={startLine:0,startChar:0,endLine:0,endChar:0},p=e+t.length;let h=0,f=!1,y=!1;n.lineLengths.forEach((g,s)=>{h+=g,!f&&e<h&&(i.startLine=s,i.startChar=e-h+g,f=!0),!y&&p<=h&&(i.endLine=s,i.endChar=p-h+g,y=!0)}),i.startChar>0&&qs(n,i.startLine)===i.startChar&&(i.startLine++,i.startChar=0),i.endChar===0&&i.endLine--;const d=/\n$/.test(t);return i.startChar>0&&d&&i.endLine++,i}function qs(n,e){return nv(n,e).length}function pv(n,e){const t=n.ace.getSession().doc.getAllLines();let i=0,p=0;for(let h=0;h<t.length;h+=1)if(p+=t[h].length+1,e<p){i=h;break}return p>n.ace.getSession().getValue().length&&(i+=1),i}function fv(n){n.gutterHeight=document.getElementById(n.options.classes.gutterID).clientHeight,n.gutterWidth=document.getElementById(n.options.classes.gutterID).clientWidth;const e=gv(n,Wt.EDITOR_LEFT),t=gv(n,Wt.EDITOR_RIGHT),i=Math.max(e,t,n.gutterHeight);n.gutterSVG=document.createElementNS(Wt.SVG_NS,"svg"),n.gutterSVG.setAttribute("width",n.gutterWidth),n.gutterSVG.setAttribute("height",i),document.getElementById(n.options.classes.gutterID).appendChild(n.gutterSVG)}function gv(n,e){return(e===Wt.EDITOR_LEFT?n.editors.left:n.editors.right).ace.getSession().getLength()*n.lineHeight}function lT(n){n.copyRightContainer=document.createElement("div"),n.copyRightContainer.setAttribute("class",n.options.classes.copyRightContainer),n.copyLeftContainer=document.createElement("div"),n.copyLeftContainer.setAttribute("class",n.options.classes.copyLeftContainer),document.getElementById(n.options.classes.gutterID).appendChild(n.copyRightContainer),document.getElementById(n.options.classes.gutterID).appendChild(n.copyLeftContainer)}function cT(n){document.getElementById(n.options.classes.gutterID).removeChild(n.gutterSVG),fv(n)}function uT(n){n.copyLeftContainer.innerHTML="",n.copyRightContainer.innerHTML=""}function hT(n,e){const t=[];function i(h){return n.options.diffGranularity===Wt.DIFF_GRANULARITY_SPECIFIC?h<1:h<=1}e.forEach((h,f)=>{if(f===0){t.push(h);return}let y=!1;for(let d=0;d<t.length;d+=1)if(i(Math.abs(h.leftStartLine-t[d].leftEndLine))&&i(Math.abs(h.rightStartLine-t[d].rightEndLine))){t[d].leftStartLine=Math.min(h.leftStartLine,t[d].leftStartLine),t[d].rightStartLine=Math.min(h.rightStartLine,t[d].rightStartLine),t[d].leftEndLine=Math.max(h.leftEndLine,t[d].leftEndLine),t[d].rightEndLine=Math.max(h.rightEndLine,t[d].rightEndLine),y=!0;break}y||t.push(h)});const p=[];return t.forEach(h=>{h.leftStartLine===h.leftEndLine&&h.rightStartLine===h.rightEndLine||p.push(h)}),p}function mv(n){cT(n),uT(n),n.diffs.forEach((e,t)=>{n.options.showDiffs&&(lv(n,Wt.EDITOR_LEFT,e.leftStartLine,e.leftEndLine,n.options.classes.diff),lv(n,Wt.EDITOR_RIGHT,e.rightStartLine,e.rightEndLine,n.options.classes.diff),n.options.showConnectors&&oT(n,e.leftStartLine,e.leftEndLine,e.rightStartLine,e.rightEndLine),sT(n,e,t))},n)}const dT={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1},modelValue:Boolean},data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null}},mounted(){const n=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=oo.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new n),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),this.editor.focus()):(this.tab=1,this.differ=new El({element:this.$refs.editor,mode:new n,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let n=this.differ.diffs[this.curDiff].leftStartLine,e=this.differ.diffs[this.curDiff].rightStartLine;n>5&&(n-=5),e>5&&(e-=5),this.differ.getEditors().left.scrollToLine(n),this.differ.getEditors().right.scrollToLine(e)},buildPluginMode(){let n=oo.require("ace/lib/oop"),e=oo.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,t=["VARIABLE"],i=new RegExp(`(\\b${t.join("\\b|\\b")}\\b)`),p=function(){e.call(this);for(let s in this.$rules)this.$rules[s].unshift({regex:i,token:"support.function"})};n.inherits(p,e);let h=oo.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,f=oo.require("ace/mode/behaviour/cstyle").CstyleBehaviour,y=oo.require("ace/mode/folding/ruby").FoldMode,d=function(){this.HighlightRules=p,this.$outdent=new h,this.$behaviour=new f,this.foldingRules=new y,this.indentKeywords=this.foldingRules.indentKeywords},g=oo.require("ace/mode/ruby").Mode;return n.inherits(d,g),(function(){this.$id="ace/mode/openc3"}).call(d.prototype),d},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
|
1422
|
+
`)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
1423
|
+
`)):this.$dialog.confirm("Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",{okText:"Install",cancelText:"Cancel"}).then(n=>{this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
1424
|
+
`))}).catch(n=>{})},emitSubmit(n){let e={name:this.pluginName,variables:tp(this.localVariables),plugin_txt_lines:n};this.$emit("callback",e)},close:function(){this.show=!this.show}}},pT={style:{flex:"1"}},fT={class:"pa-3"},gT={ref:"editor",class:"editor"},mT={ref:"editor",class:"editor"},vT={key:0};function yT(n,e,t,i,p,h){const f=Se("v-card-title"),y=Se("v-icon"),d=Se("v-row"),g=Se("v-tab"),s=Se("v-tabs"),l=Se("v-text-field"),a=Se("v-col"),c=Se("v-window-item"),o=Se("v-window"),u=Se("v-btn"),v=Se("v-spacer"),b=Se("v-card-actions"),x=Se("v-card-text"),E=Se("v-card"),C=Se("v-dialog");return Pe(),St(C,{persistent:"",modelValue:h.show,"onUpdate:modelValue":e[3]||(e[3]=k=>h.show=k),width:"80vw"},{default:xe(()=>[_e(E,null,{default:xe(()=>[_e(x,null,{default:xe(()=>[_e(f,null,{default:xe(()=>[ft(Qt(t.pluginName),1)]),_:1}),t.existingPluginTxt!==null?(Pe(),St(d,{key:0,class:"notice d-flex flex-row"},{default:xe(()=>[_e(y,{size:"x-large",start:"",color:"yellow"},{default:xe(()=>e[4]||(e[4]=[ft(" mdi-alert-box ")])),_:1}),Nn("div",pT," The existing plugin.txt is different from the "+Qt(t.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+Qt(t.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):ri("",!0),_e(d,{class:"pb-3 pr-3"},{default:xe(()=>[_e(s,{modelValue:p.tab,"onUpdate:modelValue":e[0]||(e[0]=k=>p.tab=k),class:"ml-3"},{default:xe(()=>[(Pe(),St(g,{key:0},{default:xe(()=>e[5]||(e[5]=[ft(" Variables ")])),_:1})),(Pe(),St(g,{key:1},{default:xe(()=>e[6]||(e[6]=[ft(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),Nn("form",{onSubmit:e[2]||(e[2]=Ia((...k)=>n.onSubmit&&n.onSubmit(...k),["prevent"]))},[_e(o,{modelValue:p.tab,"onUpdate:modelValue":e[1]||(e[1]=k=>p.tab=k)},{default:xe(()=>[(Pe(),St(c,{key:0,eager:"true",class:"tab"},{default:xe(()=>[Nn("div",fT,[_e(d,{class:"mt-3"},{default:xe(()=>[(Pe(!0),Nt(Fi,null,Gi(p.localVariables,(k,w)=>(Pe(),Nt("div",{key:w},[_e(a,{style:{width:"220px"}},{default:xe(()=>[_e(l,{clearable:"",type:"text",label:w,modelValue:p.localVariables[w],"onUpdate:modelValue":T=>p.localVariables[w]=T},null,8,["label","modelValue","onUpdate:modelValue"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),t.existingPluginTxt===null?(Pe(),St(c,{key:"1-new",eager:"true",class:"tab"},{default:xe(()=>[_e(d,{class:"pa-3"},{default:xe(()=>[_e(a,null,{default:xe(()=>e[7]||(e[7]=[ft(" This can be edited before installation. ")])),_:1})]),_:1}),Nn("pre",gT,null,512)]),_:1})):(Pe(),St(c,{key:"1-existing",eager:"true",class:"tab"},{default:xe(()=>[_e(d,{class:"pa-3"},{default:xe(()=>[_e(a,null,{default:xe(()=>e[8]||(e[8]=[ft(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),_e(a,{class:"ml-6"},{default:xe(()=>e[9]||(e[9]=[ft(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),Nn("pre",mT,null,512)]),_:1}))]),_:1},8,["modelValue"]),_e(b,{class:"px-2 mt-2"},{default:xe(()=>[t.existingPluginTxt!==null?(Pe(),Nt("div",vT,[_e(u,{variant:"text",onClick:h.nextDiff},{default:xe(()=>e[10]||(e[10]=[ft(" Next Diff ")])),_:1},8,["onClick"]),_e(u,{variant:"text",onClick:h.previousDiff},{default:xe(()=>e[11]||(e[11]=[ft(" Previous Diff ")])),_:1},8,["onClick"])])):ri("",!0),_e(v),_e(u,{variant:"outlined",onClick:Ia(h.close,["prevent"]),"data-test":"edit-cancel"},{default:xe(()=>e[12]||(e[12]=[ft(" Cancel ")])),_:1},8,["onClick"]),_e(u,{variant:"flat",onClick:h.submit,"data-test":"edit-submit"},{default:xe(()=>e[13]||(e[13]=[ft(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const lO=Dn("x",Yi(dT,[["render",yT],["__scopeId","data-v-4a504453"]])),bT=Wh.find(n=>n.name==="PluginsTab"),vv=[{path:"/",component:eT,children:[{component:bT.component,path:""},...Wh]},{path:"/:pathMatch(.*)*",name:"NotFound",component:jM}];vv.forEach(vp);const wT=hp({history:dp(),routes:vv}),xT={dark:!0,colors:{primary:"#005A8F",secondary:"#4DACFF",tertiary:"#BBC1C9","openc3-green":"#56f000","openc3-yellow":"#fce83a","openc3-red":"#ff3838","openc3-blue":"#2dccff","openc3-purple":"#c800c8","openc3-black":"#ffffff","openc3-white":"#ffffff"}},_T={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,e,t){this.params=n,this.show=!0,this.resolve=e,this.reject=t},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},kT=["innerHTML"],ST={key:2},$T={key:3,class:"validate mt-4"};function CT(n,e,t,i,p,h){const f=Se("v-spacer"),y=Se("v-toolbar"),d=Se("v-icon"),g=Se("v-text-field"),s=Se("v-card-text"),l=Se("v-btn"),a=Se("v-card-actions"),c=Se("v-card"),o=Se("v-dialog"),u=Se("v-app");return Pe(),St(u,null,{default:xe(()=>[_e(o,{modelValue:n.show,"onUpdate:modelValue":e[1]||(e[1]=v=>n.show=v),width:"600"},{default:xe(()=>[_e(c,null,{default:xe(()=>[_e(y,{height:"24"},{default:xe(()=>[_e(f),Nn("span",null,Qt(n.params.title),1),_e(f)]),_:1}),_e(s,{class:"mt-4 pa-3"},{default:xe(()=>[n.params.validateText?(Pe(),St(d,{key:0,class:"mr-2"},{default:xe(()=>e[2]||(e[2]=[ft(" mdi-alert ")])),_:1})):ri("",!0),n.params.html?(Pe(),Nt("span",{key:1,innerHTML:n.params.text},null,8,kT)):(Pe(),Nt("span",ST,Qt(n.params.text),1)),n.params.validateText?(Pe(),Nt("div",$T,[ft(" Enter "+Qt(n.params.validateText)+" to confirm! ",1),_e(g,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":e[0]||(e[0]=v=>n.validationText=v),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):ri("",!0)]),_:1}),_e(a,{class:"px-2"},{default:xe(()=>[_e(f),n.params.cancelText?(Pe(),St(l,{key:0,variant:"outlined","data-test":h.dataTestCancel,onClick:h.cancel},{default:xe(()=>[ft(Qt(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):ri("",!0),_e(l,{variant:"flat",color:n.params.okClass,"data-test":h.dataTestOk,onClick:h.ok},{default:xe(()=>[ft(Qt(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const MT=Yi(_T,[["render",CT],["__scopeId","data-v-581c0293"]]);class TT{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const e=window.Vue.createApp(MT);e.use(Gh);const t=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(t),this.$root=e.mount(t),this.mounted=!0}open({title:e,text:t,okText:i,okClass:p,validateText:h,cancelText:f,html:y}){return this.mount(),new Promise((d,g)=>{this.$root.dialog({title:e,text:t,okText:i,okClass:p,validateText:h,cancelText:f,html:y},d,g)})}confirm(e,{okText:t="Ok",cancelText:i="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:p,validateText:null,cancelText:i,html:!1})}alert(e,{okText:t="Ok",html:i=!1,okClass:p="primary"}){return this.open({title:"Alert",text:e,okText:t,okClass:p,validateText:null,cancelText:null,html:i})}validate(e,{okText:t="Ok",validateText:i="CONFIRM",cancelText:p="Cancel",okClass:h="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:h,validateText:i,cancelText:p,html:!1})}}const AT={install(n,e){const t=new TT;n.provide("dialog",t),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=t)}},ET={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
|
1425
|
+
--toast-bg-color:${zh[this.toastNotification.level]};
|
1426
|
+
--toast-fg-color:${LM(this.toastNotification.level)};
|
1427
|
+
`},contentStyle:function(){return`
|
1428
|
+
white-space: ${this.expanded?"normal":"nowrap"};
|
1429
|
+
overflow-x: ${this.expanded?"visible":"hidden"};
|
1430
|
+
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
1431
|
+
`}},methods:{toast:function(n,e){this.noToastPaths.includes(window.location.pathname)||(e===void 0&&(e=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),e&&(this.timeout=setTimeout(()=>{this.hide()},e)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},LT={key:0,class:"text-subtitle-1 mr-1 notification-text"},RT={key:1,class:"text-body-2 notification-text"},IT={key:2,class:"text-body-2 notification-text"};function OT(n,e,t,i,p,h){const f=Se("v-icon"),y=Se("v-spacer"),d=Se("v-btn"),g=Se("v-sheet"),s=Se("v-slide-y-transition");return Pe(),St(s,null,{default:xe(()=>[cp(_e(g,{style:to(h.toastStyle),class:"toast-notification",onClick:h.expand},{default:xe(()=>[_e(f,{class:"mr-1 notification-text"},{default:xe(()=>[ft(Qt(h.toastNotificationIcon),1)]),_:1}),Nn("div",{class:"toast-content",style:to(h.contentStyle)},[n.toastNotification.title?(Pe(),Nt("span",LT,Qt(n.toastNotification.title)+": ",1)):ri("",!0),n.toastNotification.body?(Pe(),Nt("span",RT,Qt(n.toastNotification.body),1)):ri("",!0),n.toastNotification.message?(Pe(),Nt("span",IT,Qt(n.toastNotification.message),1)):ri("",!0)],4),_e(y),_e(d,{variant:"text",onClick:Ia(h.hide,["stop"]),class:"notification-text"},{default:xe(()=>e[0]||(e[0]=[ft(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[up,n.showToast]])]),_:1})}const DT=Yi(ET,[["render",OT],["__scopeId","data-v-b0459ba8"]]);class NT{constructor(e={}){var t;this.$store=e.store,this.mounted=!1,this.$root=null,(t=window.$cosmosNotify)!=null&&t.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const e=Pc(DT);e.use(Gh);const t=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(t),this.$root=e.mount(t),this.mounted=!0}open({method:e,title:t,body:i,message:p,level:h,duration:f,type:y="alert",logToConsole:d=!1,saveToHistory:g=!0}){this.mount(),d&&console.log(p?`${h.toUpperCase()} - ${p}`:`${h.toUpperCase()} - ${t}: ${i}`),g&&this.$store.commit("notifyAddHistory",{title:t,body:i,message:p,level:h}),this[e]({title:t,body:i,message:p,level:h,duration:f,type:y})}toast({title:e,body:t,message:i,level:p,duration:h,type:f}){this.$root.toast({title:e,body:t,message:i,level:p,type:f},h)}critical({title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y}){this.open({method:"toast",level:"critical",title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y})}FATAL(e){this.critical(e)}ERROR(e){this.critical(e)}serious({title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y}){this.open({method:"toast",level:"serious",title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y})}caution({title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y}){this.open({method:"toast",level:"caution",title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y})}WARN(e){this.caution(e)}normal({title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y}){this.open({method:"toast",level:"normal",title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y})}INFO(e){this.normal(e)}DEBUG(e){this.normal(e)}standby({title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y}){this.open({method:"toast",level:"standby",title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y})}off({title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y}){this.open({method:"toast",level:"off",title:e,body:t,message:i,type:p,duration:h,logToConsole:f,saveToHistory:y})}}const FT={install(n,e){const t=new NT(e);n.provide("notify",t),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=t)}},yv=100,bv=fp({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>e=>n.namedWidgets[e]},mutations:{notifyAddHistory:(n,e)=>{n.notifyHistory.length>=yv&&(n.notifyHistory.length=yv-1),n.notifyHistory.unshift(e)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,e)=>{Object.assign(n.namedWidgets,e)},clearNamedWidget:(n,e)=>{delete n.namedWidgets[e]}},modules:{}});function wv(n){let e;return n!==null&&typeof n=="object"&&((e=Object.getPrototypeOf(n))===Object.prototype||e===null)}function PT(n,e){const t={},i=new Set(Object.keys(n));for(const p of e)i.has(p)&&(t[p]=n[p]);return t}function xv(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const i={};for(const p in n)i[p]=n[p];for(const p in e){const h=n[p],f=e[p];if(wv(h)&&wv(f)){i[p]=xv(h,f,t);continue}if(t&&Array.isArray(h)&&Array.isArray(f)){i[p]=t(h,f);continue}i[p]=f}return i}function Gs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Gs.cache.has(n))return Gs.cache.get(n);const e=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Gs.cache.set(n,e),e}Gs.cache=new Map;function HT(n){ip(`Vuetify: ${n}`)}function _v(n,e){return t=>Object.keys(n).reduce((i,p)=>{const h=typeof n[p]=="object"&&n[p]!=null&&!Array.isArray(n[p])?n[p]:{type:n[p]};return t&&p in t?i[p]={...h,default:t[p]}:i[p]=h,e&&!i[p].source&&(i[p].source=e),i},{})}function kv(n,e){const t=ap();if(!t)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return t}function BT(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kv("injectSelf");const{provides:t}=e;if(t&&n in t)return t[n]}const qh=Symbol.for("vuetify:defaults");function Sv(){const n=rp(qh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function jT(n,e){var t,i;return typeof((t=n.props)==null?void 0:t[e])<"u"||typeof((i=n.props)==null?void 0:i[Gs(e)])<"u"}function zT(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sv();const i=kv("useDefaults");if(e=e??i.type.name??i.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const p=Fc(()=>{var d;return(d=t.value)==null?void 0:d[n._as??e]}),h=new Proxy(n,{get(d,g){var s,l,a,c,o,u,v;const b=Reflect.get(d,g);return g==="class"||g==="style"?[(s=p.value)==null?void 0:s[g],b].filter(x=>x!=null):typeof g=="string"&&!jT(i.vnode,g)?((l=p.value)==null?void 0:l[g])!==void 0?(a=p.value)==null?void 0:a[g]:((o=(c=t.value)==null?void 0:c.global)==null?void 0:o[g])!==void 0?(v=(u=t.value)==null?void 0:u.global)==null?void 0:v[g]:b:b}}),f=op();sp(()=>{if(p.value){const d=Object.entries(p.value).filter(g=>{let[s]=g;return s.startsWith(s[0].toUpperCase())});f.value=d.length?Object.fromEntries(d):void 0}else f.value=void 0});function y(){const d=BT(qh,i);lp(qh,Fc(()=>f.value?xv((d==null?void 0:d.value)??{},f.value):d==null?void 0:d.value))}return{props:h,provideSubDefaults:y}}function Ll(n){if(n._setup=n._setup??n.setup,!n.name)return HT("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=_v(n.props??{},n.name)();const e=Object.keys(n.props).filter(t=>t!=="class"&&t!=="style");n.filterProps=function(t){return PT(t,e)},n.props._as=String,n.setup=function(t,i){const p=Sv();if(!p.value)return n._setup(t,i);const{props:h,provideSubDefaults:f}=zT(t,t._as??n.name,p),y=n._setup(h,i);return f(),y}}return n}function WT(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(n?Ll:np)(e)}const UT=[String,Function,Object,Array],Rl=_v({icon:{type:UT},tag:{type:String,required:!0}},"icon");WT()({name:"VComponentIcon",props:Rl(),setup(n,e){let{slots:t}=e;return()=>{const i=n.icon;return _e(n.tag,null,{default:()=>{var p;return[n.icon?_e(i,null,null):(p=t.default)==null?void 0:p.call(t)]}})}}}),Ll({name:"VSvgIcon",inheritAttrs:!1,props:Rl(),setup(n,e){let{attrs:t}=e;return()=>_e(n.tag,Ss(t,{style:null}),{default:()=>[_e("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(i=>Array.isArray(i)?_e("path",{d:i[0],"fill-opacity":i[1]},null):_e("path",{d:i},null)):_e("path",{d:n.icon},null)])]})}}),Ll({name:"VLigatureIcon",props:Rl(),setup(n){return()=>_e(n.tag,null,{default:()=>[n.icon]})}});const VT=Ll({name:"VClassIcon",props:Rl(),setup(n){return()=>_e(n.tag,{class:n.icon},null)}}),qT={component:n=>ks(VT,{...n,class:"mdi"})},Gh=gp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:xT}},icons:{defaultSet:"mdi",sets:{mdi:qT,...IM}}}),Yh=vb({createApp:Pc,appOptions:{render(){return ks($b,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(wT),n.use(bv),n.use(Gh),n.use(AT),n.use(FT,{store:bv})}}),cO=Dn("f",Yh.bootstrap),uO=Dn("m",Yh.mount),hO=Dn("u",Yh.unmount)}}});
|