openc3-cosmos-tool-admin 6.2.1 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/admin/{ArrayWidget-BxEO5hEG-5c784cf69c59ef56f770.js → ArrayWidget-BbsN1dzF-45b3f0b1b85d0816b4d6.js} +2 -2
- data/tools/admin/{ArrayplotWidget-B_VPoV4v-4c480a3fcc426de0cb30.js → ArrayplotWidget-CCKEyYIx-c2e9f297af8994f10499.js} +1 -1
- data/tools/admin/{BarColumn-C9dkpg2O-e489648e1026c2be35d5.js → BarColumn-C6p07yWK-7ae551032c38dd002d95.js} +1 -1
- data/tools/admin/BlockWidget-DlCHbqZX-d57a3ba05924d0dc73ce.js +2 -0
- data/tools/admin/{ButtonWidget-B6HM0Doo-668706e3573526170916.js → ButtonWidget-CtfJzCBR-15be1cfe08491243621a.js} +2 -2
- data/tools/admin/{CanvasWidget-DZQGG-yQ-9208dd10b8d9bf8fa386.js → CanvasWidget-CqRlXc4r-79ff690f6ab0548bac3b.js} +1 -1
- data/tools/admin/CanvasdotWidget--Xr_KsZs-5a996c74c5a7ef6bfffa.js +1 -0
- data/tools/admin/{CanvasimageWidget-mhcPpAuN-524715bd9e4a9c84bf1a.js → CanvasimageWidget-BPlj5QYK-d8e96ebe13755da5ca94.js} +1 -1
- data/tools/admin/{CanvasimagevalueWidget-Cx-dH8Gc-127608d7211ba8c85eee.js → CanvasimagevalueWidget-DVFGLt8f-382d16c4c919b192bb21.js} +1 -1
- data/tools/admin/CanvaslabelWidget-CYNqmyP0-d63731e0f2c639a94217.js +1 -0
- data/tools/admin/{CanvaslabelvalueWidget-CwmYDCjr-50109c3b06e5e4acd0e2.js → CanvaslabelvalueWidget-B7yIDmsn-da8a435cddcb14c4220d.js} +1 -1
- data/tools/admin/CanvaslineWidget-BICdxX0Q-e6d7b79766b82eb0aa5f.js +1 -0
- data/tools/admin/{CanvaslinevalueWidget-C3sJnjLQ-ffa8ee418ab1756d7518.js → CanvaslinevalueWidget-Cq-Ddh0P-dd25267d6fe776a0eb4d.js} +1 -1
- data/tools/admin/CheckbuttonWidget-B74AWeaW-e5eac04dabbe8e75a50f.js +1 -0
- data/tools/admin/ComboboxWidget-CtyKbEWb-a3645988bb8f618c30b7.js +1 -0
- data/tools/admin/DateWidget-BEVSczU8-a8f6e93811962f188e0e.js +1 -0
- data/tools/admin/{DetailsDialog-BvbziA7Y-ee21a12298c291aba619.js → DetailsDialog-DmEC5BTs-f202c65b40d62e0a0258.js} +1 -1
- data/tools/admin/{DynamicWidget-gFSYxzvT-1236326c70d40ef4d209.js → DynamicWidget-CfMtj7H8-5d1fe4151a3a13875e72.js} +1 -1
- data/tools/admin/{FormatvalueWidget-CGpnTqVH-1965b1425ac5713160a7.js → FormatvalueWidget-DN12xymS-a183974bad17bb7102f9.js} +1 -1
- data/tools/admin/Graph-Bgo0cjl3-b73fb6638f6aac6b1a30.js +1 -0
- data/tools/admin/{GraphWidget-Dycey-mj-a42606ece40c58355625.js → GraphWidget-DurWDmpg-ebee4b7d87defdaf5d8f.js} +1 -1
- data/tools/admin/{HorizontalWidget-D31NRWy5-f726d836b7dd777022b8.js → HorizontalWidget-Cd_wl1b3-fba8f18453014a0565ad.js} +1 -1
- data/tools/admin/HorizontalboxWidget-BcMTFBU--324c3dc4fd5e49eab722.js +1 -0
- data/tools/admin/HorizontallineWidget-CXFqHclf-7ca376904e3068703325.js +1 -0
- data/tools/admin/{IframeWidget-Ctj8OIcG-cc657bab62ca5f6f87d1.js → IframeWidget-BPerHCCa-3abc66888f871f2424e0.js} +1 -1
- data/tools/admin/{ImageLoader-BrNrCBvi-2b1da3a869462ca330c6.js → ImageLoader-4N-7Gj61-d96791fc6c7c24e20145.js} +1 -1
- data/tools/admin/ImageviewerWidget-Cw_H_HmZ-abc4b56b182850c2b4b0.js +1 -0
- data/tools/admin/InterfacesTab-B4glsR9Z-d5c7b16796e27515e044.js +1 -0
- data/tools/admin/{LabelWidget-t7I87dp7-152d5a9b96441cbd8510.js → LabelWidget-xrmcVeq8-894f83570ba8b552e75c.js} +1 -1
- data/tools/admin/LabelledWidget-D48QoyMk-9c821f58c796d7ea4c9b.js +1 -0
- data/tools/admin/LabelprogressbarWidget-C_950t6g-5966ce8bbecbd42abbc8.js +1 -0
- data/tools/admin/LabelsparklineWidget-0KXQyPoU-3930edb58cf690a58dd4.js +1 -0
- data/tools/admin/{LabelvalueWidget-Zx_yHCtl-381f386667d56a433fb9.js → LabelvalueWidget-CQ06wWDK-330aee93b235b971e95c.js} +1 -1
- data/tools/admin/{LabelvaluedescWidget-BBSBh4vI-f245b73d7fee8fc3c134.js → LabelvaluedescWidget-Bo8zT01X-e92f203c5cc5204caebd.js} +1 -1
- data/tools/admin/{LabelvaluelimitsbarWidget-CZueHYWG-ae89b48f0240d8c4b536.js → LabelvaluelimitsbarWidget-BucTw8Yk-ef66fe7faa51e1c7fc96.js} +1 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-Dflb1hNd-bb82c73da598c7e933c6.js +1 -0
- data/tools/admin/{LabelvaluerangebarWidget-BhYTBgDq-7f89e5b9ff7b9b67c0f1.js → LabelvaluerangebarWidget-D8cbfXFM-92fab7f5051516ce528f.js} +1 -1
- data/tools/admin/{Layout-Bh7VzCZd-e80015c167b538416f2a.js → Layout-Tf--nruw-e15025d3ca9d03d87e1b.js} +1 -1
- data/tools/admin/LedWidget-qH_FthkK-a5e74d98a22307a883a8.js +1 -0
- data/tools/admin/{LimitsbarWidget-Djui0IpK-424433c6317281d1676d.js → LimitsbarWidget-B9lAB2RD-96157ffc116593888b48.js} +1 -1
- data/tools/admin/{LimitscolorWidget-DdmvKzmx-65f584394050c5139c9d.js → LimitscolorWidget-c6Qa6su7-c2b237b1468b716361cd.js} +1 -1
- data/tools/admin/{LimitscolumnWidget-Cc19IEjq-f2597f39e20f5fa18747.js → LimitscolumnWidget-CcLs_443-944fa38b9446f615b635.js} +1 -1
- data/tools/admin/LinegraphWidget-BSVYLFo1-27291b3efda84e682c36.js +1 -0
- data/tools/admin/{MatrixbycolumnsWidget-DnExVRF8-b4be1b437c0b336a1e23.js → MatrixbycolumnsWidget-DXFpZTre-1ca1fd46ec81aa27bdea.js} +1 -1
- data/tools/admin/{MicroservicesTab-IbTmbPxO-69cd3eeece33f36c8a8f.js → MicroservicesTab-mCdS0v39-72fa5667b8c938eb27e1.js} +1 -1
- data/tools/admin/OutputDialog-zVPZiZay-5273ae10027e2cc87949.js +1 -0
- data/tools/admin/{PackagesTab-BX8YP3H1-72f20ce8b559d7fcc13a.js → PackagesTab-SWcXumpK-e5ccc20003b13ccdbc6e.js} +1 -1
- data/tools/admin/{PluginsTab-Ds3jk64b-831383858209ff2c2d5e.js → PluginsTab-B64OvayB-be8b8a771af3d6802e37.js} +4 -4
- data/tools/admin/{ProgressbarWidget-DIfqhHRE-2775a9cde5a45b0de086.js → ProgressbarWidget-iYGw8-Dc-d9aad79edecffa90902a.js} +1 -1
- data/tools/admin/RadiobuttonWidget-ytmoVZ3u-3b94c9dfedbb30542025.js +1 -0
- data/tools/admin/{RadiogroupWidget-Ci9sCX39-e97afc1a22909e8b2b26.js → RadiogroupWidget-CusMBhKH-ee1c8dc1c59df58fd825.js} +1 -1
- data/tools/admin/{RangebarWidget-CN0YuHqy-e1cb05b7f6b1118dd2d0.js → RangebarWidget-D_zGTtCa-7d82a5779754daf85f09.js} +1 -1
- data/tools/admin/RedisTab-CyPo6ADN-aa1a495b5fb6171666f5.js +1 -0
- data/tools/admin/{RollupWidget-y4jBtJB2-bab638d154a5f2fd2c1e.js → RollupWidget-Dolsixyt-199f99293bbff747842b.js} +1 -1
- data/tools/admin/RoutersTab-Cs2dFVNA-aa50a4a447fca3f826bf.js +1 -0
- data/tools/admin/ScrollwindowWidget-DV2nZuNi-2918384639e5b480f5b0.js +1 -0
- data/tools/admin/{SecretsTab-BjviaTxh-33a36e028d57e1378d98.js → SecretsTab-DVyyyGlG-4344d670cf905ab60969.js} +1 -1
- data/tools/admin/SettingsTab-g29K6FyC-fc78aa7aefc9b0f48986.js +2 -0
- data/tools/admin/{SignalWidget-DQ5Uc2uV-1e83f917599853ee7901.js → SignalWidget-d9-6h85k-e129c862ab2e2862b245.js} +1 -1
- data/tools/admin/{SimpleTextDialog-CheuP_ls-d5f5a08e31cdf07b9a61.js → SimpleTextDialog-pwN8oRy1-2e2addd7ce31747515d9.js} +1 -1
- data/tools/admin/SpacerWidget-BH0p2OLi-b5ab05a35a2d859ed908.js +1 -0
- data/tools/admin/{SparklineWidget-CZtvu2ss-588212b5617f199fcd2e.js → SparklineWidget-coxi9r2g-8feb089ce863bd78d520.js} +1 -1
- data/tools/admin/TabbookWidget-B1XKplGH-73f77b706b86971b4ebc.js +1 -0
- data/tools/admin/{TargetsTab-Cd8U1aN_-968369f75aa684d02f9b.js → TargetsTab-BkBkXn9A-8425521e65f5456c008e.js} +1 -1
- data/tools/admin/TextboxWidget-C-_M2M4l-b9bef00f2cfe98fb3bf1.js +1 -0
- data/tools/admin/{TextfieldWidget-Df0ANSiU-766eb0d82b44a91ec200.js → TextfieldWidget-C08N4JE8-af5bb035574b2bdb1e55.js} +1 -1
- data/tools/admin/TimeWidget-DtwdEcFg-d89f9fbaa3072936e270.js +1 -0
- data/tools/admin/TitleWidget-CT-aLcNb-f3785ae131a4a7667761.js +1 -0
- data/tools/admin/{ToolsTab-Cgpb2nAW-5b5a3d23a36b0fdcce3c.js → ToolsTab-NveeVXz2-a2a58dfa69fac13c80e8.js} +2 -2
- data/tools/admin/{VWidget-C4spAawK-c884f9cea073da6d8ce9.js → VWidget-DQqb7NVW-878e082a9a9ab2278496.js} +1 -1
- data/tools/admin/ValueWidget-C6RanBj3-da5499cb68372d5227fc.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-B3bvjfxc-fad1586e079efff45c2c.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-QvhI6EcE-b6e11e56e8ab9113b662.js +1 -0
- data/tools/admin/ValuerangebarWidget-Dt3K9BnC-4cb31018f254cafc9a8a.js +1 -0
- data/tools/admin/{VerticalWidget-D8jUFxjS-264cdd61b0515fa3092c.js → VerticalWidget-BIIViZgI-bbb379db718beaa2bc28.js} +1 -1
- data/tools/admin/VerticalboxWidget-DY72fLHW-69a1841223e1274653e7.js +1 -0
- data/tools/admin/{Widget-fRCERxGf-f53f0043a8d9f927971c.js → Widget-oyqWpFXJ-f34bf053b788271413fe.js} +1 -1
- data/tools/admin/main-fbb6d24d6c6c7aea815c.js +1508 -0
- data/tools/admin/main.js +1 -1
- metadata +81 -84
- data/tools/admin/BlockWidget-CuefOin6-b962c353c9f0eebc7117.js +0 -2
- data/tools/admin/CanvasdotWidget-6wuCSnw_-7a088d1c0dab274586f1.js +0 -1
- data/tools/admin/CanvaslabelWidget-CQZCeohU-e4296f8d11d95bf27acd.js +0 -1
- data/tools/admin/CanvaslineWidget-nTP3fJB4-9766cead6e6c429a7994.js +0 -1
- data/tools/admin/CheckbuttonWidget-5-8YDsQL-66299903b9cda3bd6623.js +0 -1
- data/tools/admin/ComboboxWidget-DzBL8h9f-f7b29907644dd0f506de.js +0 -1
- data/tools/admin/DateWidget-CW7Od7lB-adfa70f44dccea31a863.js +0 -1
- data/tools/admin/Graph-3rkhFP3G-6869b66611e6318604a7.js +0 -1
- data/tools/admin/HorizontalboxWidget-Br8dSVHD-d4aab2761ca77fa24390.js +0 -1
- data/tools/admin/HorizontallineWidget-CbxREBYI-ba4ec78147ff36e4335d.js +0 -1
- data/tools/admin/ImageviewerWidget-XrsqxmLo-9d5e7238e3c5ecd8748c.js +0 -1
- data/tools/admin/InterfacesTab-DAeNlGlB-e1c02697b38318186672.js +0 -1
- data/tools/admin/LabelledWidget-C7TDf92M-b20b3274d1d4e3403870.js +0 -1
- data/tools/admin/LabelprogressbarWidget-wwLURt1u-a3f647cb3382587c6885.js +0 -1
- data/tools/admin/LabelsparklineWidget-B3awLUyP-ef73c33807cdf20c1632.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-BTvzyQMq-4ee9e762abc78c9e5e22.js +0 -1
- data/tools/admin/LedWidget-CxJjJBBS-956a4190d5e60484cfa9.js +0 -1
- data/tools/admin/LinegraphWidget-BtieJxeL-a423148ceca6c5ff74e5.js +0 -1
- data/tools/admin/OutputDialog-Ci5OT_fH-68240dca0ee2eb272d32.js +0 -1
- data/tools/admin/RadiobuttonWidget-QzIkNP7m-959594855f51f05f1572.js +0 -1
- data/tools/admin/RedisTab-CVimDkIE-975b87301f5a5bcafa9c.js +0 -1
- data/tools/admin/RoutersTab-Dki_66av-ce7a2a94f241858d86d6.js +0 -1
- data/tools/admin/ScrollwindowWidget-CBzYk4Y3-20a2b344d6594be94af9.js +0 -1
- data/tools/admin/SettingsTab-Bo_dYXgb-b0ac92a82847e85fa46f.js +0 -2
- data/tools/admin/SpacerWidget-6rsc_dSM-5d0821a4a5e5cc101d3a.js +0 -1
- data/tools/admin/TabbookWidget-DNALU0jl-cc4c87c03bc6b35b8920.js +0 -1
- data/tools/admin/TextboxWidget-5hqPj74D-603dfe11a4dc847120f1.js +0 -1
- data/tools/admin/TimeWidget-C6XQMUG2-3bd332a4cb0aac40e4ec.js +0 -1
- data/tools/admin/TitleWidget-B9SPUlbW-d60e09a2b1e080a21e01.js +0 -1
- data/tools/admin/ValueWidget-D4RrYVEK-c14156e71f8c70447418.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-Bc9_Vj_f-5cefd3afaa0f3983b22f.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-DHKIL7sf-5f23f60b788a106ce9ac.js +0 -1
- data/tools/admin/ValuerangebarWidget-CecQRIok-c389d01eb001b34d9382.js +0 -1
- data/tools/admin/VerticalboxWidget-B4eGUSYH-8e7497fac1b85d79028a.js +0 -1
- data/tools/admin/main-89bee744bbd6e4811043.js +0 -1432
@@ -1,1432 +0,0 @@
|
|
1
|
-
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Rn,Me){"use strict";var _e,At,Pe,xe,Ae,cf,Cs,Ot,Zi,uf,Mn,qt,Lr,Ur,ft,_s,Hc,er,Oa,hf,df,ff,gf,Wc,pf,mf,yf,vf,jc,wf,bf,xf,Af,Cf,_f,kf;return{setters:[nt=>{_e=nt.resolveComponent,At=nt.createBlock,Pe=nt.openBlock,xe=nt.withCtx,Ae=nt.createVNode,cf=nt.defineAsyncComponent,Cs=nt.h,Ot=nt.createElementBlock,Zi=nt.normalizeStyle,uf=nt.Teleport,Mn=nt.createElementVNode,qt=nt.toDisplayString,Lr=nt.Fragment,Ur=nt.renderList,ft=nt.createTextVNode,_s=nt.mergeProps,Hc=nt.createSlots,er=nt.createCommentVNode,Oa=nt.withModifiers,hf=nt.toRaw,df=nt.defineComponent,ff=nt.warn,gf=nt.inject,Wc=nt.computed,pf=nt.shallowRef,mf=nt.watchEffect,yf=nt.getCurrentInstance,vf=nt.provide,jc=nt.createApp,wf=nt.withDirectives,bf=nt.vShow},nt=>{xf=nt.createRouter,Af=nt.createWebHistory},nt=>{Cf=nt.getMountedApps},nt=>{_f=nt.createStore},nt=>{kf=nt.createVuetify}],execute:function(){Rn({$:Rf,A:Hn,e:tI,l:Gt,p:to,y:pn,z:Yh});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sf(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),t.push.apply(t,r)}return t}function Ji(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Sf(Object(t),!0).forEach(function(r){jw(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Sf(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function jw(n,e,t){return(e=function(r){var d=function(h,g){if(Xi(h)!=="object"||h===null)return h;var v=h[Symbol.toPrimitive];if(v!==void 0){var u=v.call(h,g);if(Xi(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(h)}(r,"string");return Xi(d)==="symbol"?d:String(d)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Xi(n){return Xi=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},Xi(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 r,d=String(t),h=d.length,g=-1,v="",u=d.charCodeAt(0);++g<h;)(r=d.charCodeAt(g))!=0?v+=r>=1&&r<=31||r==127||g==0&&r>=48&&r<=57||g==1&&r>=48&&r<=57&&u==45?"\\"+r.toString(16)+" ":g==0&&h==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+d.charAt(g):d.charAt(g):v+="�";return v};n.CSS||(n.CSS={}),n.CSS.escape=e})(nt);var Bw={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function zw(n){if(Xi(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var e=Ji(Ji({},Bw),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(Xi(e.appOptions.el)));e.createApp=e.createApp||e.Vue&&e.Vue.createApp;var t={};return{bootstrap:Uw.bind(null,e,t),mount:Vw.bind(null,e,t),unmount:Gw.bind(null,e,t),update:qw.bind(null,e,t)}}function Uw(n){return n.loadRootComponent?n.loadRootComponent().then(function(e){return n.rootComponent=e}):Promise.resolve()}function Vw(n,e,t){var r={};return Promise.resolve().then(function(){return function(d,h){return typeof d.appOptions=="function"?d.appOptions(h):Promise.resolve(Ji({},d.appOptions))}(n,t).then(function(d){var h;if(t.domElement&&!d.el&&(d.el=t.domElement),d.el)if(typeof d.el=="string"){if(!(h=document.querySelector(d.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(d.el))}else(h=d.el).id||(h.id="single-spa-application:".concat(t.name)),d.el="#".concat(CSS.escape(h.id));else{var g="single-spa-application:".concat(t.name);d.el="#".concat(CSS.escape(g)),(h=document.getElementById(g))||((h=document.createElement("div")).id=g,document.body.appendChild(h))}if(!n.replaceMode&&(d.el=d.el+" .single-spa-container",!h.querySelector(".single-spa-container"))){var v=document.createElement("div");v.className="single-spa-container",h.appendChild(v)}r.domEl=h,d.render||d.template||!n.rootComponent||(d.render=function(p){return p(n.rootComponent)}),d.data||(d.data={});var u=d.data;if(d.data=function(){return Ji(Ji({},typeof u=="function"?u.call(this,this):u),t)},n.createApp){if(r.vueInstance=n.createApp(d),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return r.root=r.vueInstance.mount(d.el),e[t.name]=r,r.vueInstance});r.root=r.vueInstance.mount(d.el)}else if(r.vueInstance=new n.Vue(d),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return e[t.name]=r,r.vueInstance});return e[t.name]=r,r.vueInstance})})}function qw(n,e,t){return Promise.resolve().then(function(){var r=e[t.name],d=Ji(Ji({},n.appOptions.data||{}),t),h=r.root||r.vueInstance;for(var g in d)h[g]=d[g]})}function Gw(n,e,t){return Promise.resolve().then(function(){var r=e[t.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const Yw=(n,e)=>{const t=n.__vccOpts||n;for(const[r,d]of e)t[r]=d;return t},Kw={};function Qw(n,e){const t=_e("router-view"),r=_e("v-app");return Pe(),At(r,{id:"innerapp"},{default:xe(()=>[Ae(t)]),_:1})}const Zw=Yw(Kw,[["render",Qw]]),$f=function(n){var e;!n.name!=="NotFound"&&(n.path=`/tools/admin/${n.path.replace(/^\//,"")}`),(e=n.children)==null||e.forEach($f)},RD="modulepreload",MD=function(n){return"/"+n},LD={},Le=function(e,t,r){let d=Promise.resolve();function h(g){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=g,window.dispatchEvent(v),!v.defaultPrevented)throw g}return d.then(g=>{for(const v of g||[])v.status==="rejected"&&h(v.reason);return e().catch(h)})},Vr=Rn("s",(n,e)=>{const t=n.__vccOpts||n;for(const[r,d]of e)t[r]=d;return t}),Da=6e4,Bc=36e5,Jw=1e3,Tf=Symbol.for("constructDateFrom");function pn(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&Tf in n?n[Tf](e):n instanceof Date?new n.constructor(e):new Date(e)}function Gt(n,e){return pn(e||n,n)}let Xw={};function Do(){return Xw}function Si(n,e){var t,r,d,h;const g=Do(),v=(e==null?void 0:e.weekStartsOn)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.weekStartsOn)??g.weekStartsOn??((h=(d=g.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,u=Gt(n,e==null?void 0:e.in),p=u.getDay(),s=(p<v?7:0)+p-v;return u.setDate(u.getDate()-s),u.setHours(0,0,0,0),u}function No(n,e){return Si(n,{...e,weekStartsOn:1})}function If(n,e){const t=Gt(n,void 0),r=t.getFullYear(),d=pn(t,0);d.setFullYear(r+1,0,4),d.setHours(0,0,0,0);const h=No(d),g=pn(t,0);g.setFullYear(r,0,4),g.setHours(0,0,0,0);const v=No(g);return t.getTime()>=h.getTime()?r+1:t.getTime()>=v.getTime()?r:r-1}function Na(n){const e=Gt(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 eb(n,...e){const t=pn.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function Ef(n,e){const t=Gt(n,void 0);return t.setHours(0,0,0,0),t}function tb(n,e,t){const[r,d]=eb(void 0,n,e),h=Ef(r),g=Ef(d),v=+h-Na(h),u=+g-Na(g);return Math.round((v-u)/864e5)}function nb(n,e){const t=If(n),r=pn(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),No(r)}function rb(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Rf(n){return!(!rb(n)&&typeof n!="number"||isNaN(+Gt(n)))}function ib(n,e){const t=Gt(n,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const ob={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"}},sb=(n,e,t)=>{let r;const d=ob[n];return typeof d=="string"?r=d:e===1?r=d.one:r=d.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function zc(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const ab={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ub={date:zc({formats:ab,defaultWidth:"full"}),time:zc({formats:lb,defaultWidth:"full"}),dateTime:zc({formats:cb,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"},db=(n,e,t,r)=>hb[n];function ks(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let d;if(r==="formatting"&&n.formattingValues){const g=n.defaultFormattingWidth||n.defaultWidth,v=t!=null&&t.width?String(t.width):g;d=n.formattingValues[v]||n.formattingValues[g]}else{const g=n.defaultWidth,v=t!=null&&t.width?String(t.width):n.defaultWidth;d=n.values[v]||n.values[g]}const h=n.argumentCallback?n.argumentCallback(e):e;return d[h]}}const fb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pb={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"]},mb={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"]},yb={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"}},vb={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"}},wb=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},bb={ordinalNumber:wb,era:ks({values:fb,defaultWidth:"wide"}),quarter:ks({values:gb,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ks({values:pb,defaultWidth:"wide"}),day:ks({values:mb,defaultWidth:"wide"}),dayPeriod:ks({values:yb,defaultWidth:"wide",formattingValues:vb,defaultFormattingWidth:"wide"})};function Ss(n){return(e,t={})=>{const r=t.width,d=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],h=e.match(d);if(!h)return null;const g=h[0],v=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],u=Array.isArray(v)?Ab(v,l=>l.test(g)):xb(v,l=>l.test(g));let p;p=n.valueCallback?n.valueCallback(u):u,p=t.valueCallback?t.valueCallback(p):p;const s=e.slice(g.length);return{value:p,rest:s}}}function xb(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function Ab(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function Cb(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const d=r[0],h=e.match(n.parsePattern);if(!h)return null;let g=n.valueCallback?n.valueCallback(h[0]):h[0];g=t.valueCallback?t.valueCallback(g):g;const v=e.slice(d.length);return{value:g,rest:v}}}const _b=/^(\d+)(th|st|nd|rd)?/i,kb=/\d+/i,Sb={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},$b={any:[/^b/i,/^(a|c)/i]},Tb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ib={any:[/1/i,/2/i,/3/i,/4/i]},Eb={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},Rb={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]},Mb={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},Lb={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]},Ob={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},Db={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}},Nb={ordinalNumber:Cb({matchPattern:_b,parsePattern:kb,valueCallback:n=>parseInt(n,10)}),era:Ss({matchPatterns:Sb,defaultMatchWidth:"wide",parsePatterns:$b,defaultParseWidth:"any"}),quarter:Ss({matchPatterns:Tb,defaultMatchWidth:"wide",parsePatterns:Ib,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Ss({matchPatterns:Eb,defaultMatchWidth:"wide",parsePatterns:Rb,defaultParseWidth:"any"}),day:Ss({matchPatterns:Mb,defaultMatchWidth:"wide",parsePatterns:Lb,defaultParseWidth:"any"}),dayPeriod:Ss({matchPatterns:Ob,defaultMatchWidth:"any",parsePatterns:Db,defaultParseWidth:"any"})},Mf={code:"en-US",formatDistance:sb,formatLong:ub,formatRelative:db,localize:bb,match:Nb,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Fb(n,e){const t=Gt(n,void 0);return tb(t,ib(t))+1}function Lf(n,e){const t=Gt(n,void 0),r=+No(t)-+nb(t);return Math.round(r/6048e5)+1}function Uc(n,e){var t,r,d,h;const g=Gt(n,e==null?void 0:e.in),v=g.getFullYear(),u=Do(),p=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??u.firstWeekContainsDate??((h=(d=u.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,s=pn((e==null?void 0:e.in)||n,0);s.setFullYear(v+1,0,p),s.setHours(0,0,0,0);const l=Si(s,e),a=pn((e==null?void 0:e.in)||n,0);a.setFullYear(v,0,p),a.setHours(0,0,0,0);const c=Si(a,e);return+g>=+l?v+1:+g>=+c?v:v-1}function Pb(n,e){var t,r,d,h;const g=Do(),v=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??g.firstWeekContainsDate??((h=(d=g.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,u=Uc(n,e),p=pn((e==null?void 0:e.in)||n,0);return p.setFullYear(u,0,v),p.setHours(0,0,0,0),Si(p,e)}function Of(n,e){const t=Gt(n,e==null?void 0:e.in),r=+Si(t,e)-+Pb(t,e);return Math.round(r/6048e5)+1}function Et(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const $i={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return Et(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):Et(t+1,2)},d(n,e){return Et(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 Et(n.getHours()%12||12,e.length)},H(n,e){return Et(n.getHours(),e.length)},m(n,e){return Et(n.getMinutes(),e.length)},s(n,e){return Et(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),d=Math.trunc(r*Math.pow(10,t-3));return Et(d,e.length)}},Fo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Df={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),d=r>0?r:1-r;return t.ordinalNumber(d,{unit:"year"})}return $i.y(n,e)},Y:function(n,e,t,r){const d=Uc(n,r),h=d>0?d:1-d;if(e==="YY"){const g=h%100;return Et(g,2)}return e==="Yo"?t.ordinalNumber(h,{unit:"year"}):Et(h,e.length)},R:function(n,e){const t=If(n);return Et(t,e.length)},u:function(n,e){const t=n.getFullYear();return Et(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Et(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Et(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return $i.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return Et(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const d=Of(n,r);return e==="wo"?t.ordinalNumber(d,{unit:"week"}):Et(d,e.length)},I:function(n,e,t){const r=Lf(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):Et(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):$i.d(n,e)},D:function(n,e,t){const r=Fb(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):Et(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const d=n.getDay(),h=(d-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(h);case"ee":return Et(h,2);case"eo":return t.ordinalNumber(h,{unit:"day"});case"eee":return t.day(d,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(d,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(d,{width:"short",context:"formatting"});case"eeee":default:return t.day(d,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const d=n.getDay(),h=(d-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(h);case"cc":return Et(h,e.length);case"co":return t.ordinalNumber(h,{unit:"day"});case"ccc":return t.day(d,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(d,{width:"narrow",context:"standalone"});case"cccccc":return t.day(d,{width:"short",context:"standalone"});case"cccc":default:return t.day(d,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),d=r===0?7:r;switch(e){case"i":return String(d);case"ii":return Et(d,e.length);case"io":return t.ordinalNumber(d,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const r=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let d;switch(r===12?d=Fo.noon:r===0?d=Fo.midnight:d=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(d,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let d;switch(r>=17?d=Fo.evening:r>=12?d=Fo.afternoon:r>=4?d=Fo.morning:d=Fo.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(d,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return $i.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):$i.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):Et(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):Et(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):$i.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):$i.s(n,e)},S:function(n,e){return $i.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Ff(r);case"XXXX":case"XX":return eo(r);case"XXXXX":case"XXX":default:return eo(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return Ff(r);case"xxxx":case"xx":return eo(r);case"xxxxx":case"xxx":default:return eo(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Nf(r,":");case"OOOO":default:return"GMT"+eo(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Nf(r,":");case"zzzz":default:return"GMT"+eo(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return Et(r,e.length)},T:function(n,e,t){return Et(+n,e.length)}};function Nf(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Math.trunc(r/60),h=r%60;return h===0?t+String(d):t+String(d)+e+Et(h,2)}function Ff(n,e){return n%60===0?(n>0?"-":"+")+Et(Math.abs(n)/60,2):eo(n,e)}function eo(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Et(Math.trunc(r/60),2),h=Et(r%60,2);return t+d+e+h}const Pf=(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"})}},Hf=(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"})}},Hb=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],d=t[2];if(!d)return Pf(n,e);let h;switch(r){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}}",Pf(r,e)).replace("{{time}}",Hf(d,e))},Vc={p:Hf,P:Hb},Wb=/^D+$/,jb=/^Y+$/,Bb=["D","DD","YY","YYYY"];function Wf(n){return Wb.test(n)}function jf(n){return jb.test(n)}function qc(n,e,t){const r=zb(n,e,t);if(console.warn(r),Bb.includes(n))throw new RangeError(r)}function zb(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ub=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qb=/^'([^]*?)'?$/,Gb=/''/g,Yb=/[a-zA-Z]/;function to(n,e,t){var r,d,h,g,v,u,p,s;const l=Do(),a=(t==null?void 0:t.locale)??l.locale??Mf,c=(t==null?void 0:t.firstWeekContainsDate)??((d=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:d.firstWeekContainsDate)??l.firstWeekContainsDate??((g=(h=l.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,o=(t==null?void 0:t.weekStartsOn)??((u=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:u.weekStartsOn)??l.weekStartsOn??((s=(p=l.locale)==null?void 0:p.options)==null?void 0:s.weekStartsOn)??0,f=Gt(n,t==null?void 0:t.in);if(!Rf(f))throw new RangeError("Invalid time value");let y=e.match(Vb).map(x=>{const E=x[0];if(E==="p"||E==="P"){const S=Vc[E];return S(x,a.formatLong)}return x}).join("").match(Ub).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const E=x[0];if(E==="'")return{isToken:!1,value:Kb(x)};if(Df[E])return{isToken:!0,value:x};if(E.match(Yb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(y=a.localize.preprocessor(f,y));const w={firstWeekContainsDate:c,weekStartsOn:o,locale:a};return y.map(x=>{if(!x.isToken)return x.value;const E=x.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&jf(E)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Wf(E))&&qc(E,e,String(n));const S=Df[E[0]];return S(f,E,a.localize,w)}).join("")}function Kb(n){const e=n.match(qb);return e?e[1].replace(Gb,"'"):n}var Ti=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Bf={exports:{}},zf;function Qb(){return zf||(zf=1,function(n,e){(function(){var t="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var d=function(s,l,a){if(typeof s!="string"){d.original?d.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=l),d.modules[s]||(d.payloads[s]=a,d.modules[s]=null)};d.modules={},d.payloads={};var h=function(s,l,a){if(typeof l=="string"){var c=u(s,l);if(c!=null)return a&&a(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],f=0,y=l.length;f<y;++f){var w=u(s,l[f]);if(w==null&&g.original)return;o.push(w)}return a&&a.apply(null,o)||!0}},g=function(s,l){var a=h("",s,l);return a==null&&g.original?g.original.apply(this,arguments):a},v=function(s,l){if(l.indexOf("!")!==-1){var a=l.split("!");return v(s,a[0])+"!"+v(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},u=function(s,l){l=v(s,l);var a=d.modules[l];if(!a){if(a=d.payloads[l],typeof a=="function"){var c={},o={id:l,uri:"",exports:c,packaged:!0},f=function(w,x){return h(l,w,x)},y=a(f,c,o);c=y||o.exports,d.modules[l]=c,delete d.payloads[l]}a=d.modules[l]=c||a}return a};function p(s){var l=r;r[s]||(r[s]={}),l=r[s],(!l.define||!l.define.packaged)&&(d.original=l.define,l.define=d,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(g.original=l.require,l.require=g,l.require.packaged=!0)}p(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,r,d){function h(g,v,u){Object.defineProperty(g,v,{value:u,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||h(String.prototype,"startsWith",function(g,v){return v=v||0,this.lastIndexOf(g,v)===v}),String.prototype.endsWith||h(String.prototype,"endsWith",function(g,v){var u=this;(v===void 0||v>u.length)&&(v=u.length),v-=g.length;var p=u.indexOf(g,v);return p!==-1&&p===v}),String.prototype.repeat||h(String.prototype,"repeat",function(g){for(var v="",u=this;g>0;)g&1&&(v+=u),(g>>=1)&&(u+=u);return v}),String.prototype.includes||h(String.prototype,"includes",function(g,v){return this.indexOf(g,v)!=-1}),Object.assign||(Object.assign=function(g){if(g==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(g),u=1;u<arguments.length;u++){var p=arguments[u];p!=null&&Object.keys(p).forEach(function(s){v[s]=p[s]})}return v}),Object.values||(Object.values=function(g){return Object.keys(g).map(function(v){return g[v]})}),Array.prototype.find||h(Array.prototype,"find",function(g){for(var v=this.length,u=arguments[1],p=0;p<v;p++){var s=this[p];if(g.call(u,s,p,this))return s}}),Array.prototype.findIndex||h(Array.prototype,"findIndex",function(g){for(var v=this.length,u=arguments[1],p=0;p<v;p++){var s=this[p];if(g.call(u,s,p,this))return p}}),Array.prototype.includes||h(Array.prototype,"includes",function(g,v){return this.indexOf(g,v)!=-1}),Array.prototype.fill||h(Array.prototype,"fill",function(g){for(var v=this,u=v.length>>>0,p=arguments[1],s=p>>0,l=s<0?Math.max(u+s,0):Math.min(s,u),a=arguments[2],c=a===void 0?u:a>>0,o=c<0?Math.max(u+c,0):Math.min(c,u);l<o;)v[l]=g,l++;return v}),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,r,d){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,r,d){r.deepCopy=function h(g){if(typeof g!="object"||!g)return g;var v;if(Array.isArray(g)){v=[];for(var u=0;u<g.length;u++)v[u]=h(g[u]);return v}if(Object.prototype.toString.call(g)!=="[object Object]")return g;v={};for(var u in g)v[u]=h(g[u]);return v}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,r,d){r.last=function(v){return v[v.length-1]},r.stringReverse=function(v){return v.split("").reverse().join("")},r.stringRepeat=function(v,u){for(var p="";u>0;)u&1&&(p+=v),(u>>=1)&&(v+=v);return p};var h=/^\s\s*/,g=/\s\s*$/;r.stringTrimLeft=function(v){return v.replace(h,"")},r.stringTrimRight=function(v){return v.replace(g,"")},r.copyObject=function(v){var u={};for(var p in v)u[p]=v[p];return u},r.copyArray=function(v){for(var u=[],p=0,s=v.length;p<s;p++)v[p]&&typeof v[p]=="object"?u[p]=this.copyObject(v[p]):u[p]=v[p];return u},r.deepCopy=t("./deep_copy").deepCopy,r.arrayToMap=function(v){for(var u={},p=0;p<v.length;p++)u[v[p]]=1;return u},r.createMap=function(v){var u=Object.create(null);for(var p in v)u[p]=v[p];return u},r.arrayRemove=function(v,u){for(var p=0;p<=v.length;p++)u===v[p]&&v.splice(p,1)},r.escapeRegExp=function(v){return v.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(v){return(""+v).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(v,u){var p=[];return v.replace(u,function(s){p.push({offset:arguments[arguments.length-2],length:s.length})}),p},r.deferredCall=function(v){var u=null,p=function(){u=null,v()},s=function(l){return s.cancel(),u=setTimeout(p,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),v(),s},s.cancel=function(){return clearTimeout(u),u=null,s},s.isPending=function(){return u},s},r.delayedCall=function(v,u){var p=null,s=function(){p=null,v()},l=function(a){p==null&&(p=setTimeout(s,a||u))};return l.delay=function(a){p&&clearTimeout(p),p=setTimeout(s,a||u)},l.schedule=l,l.call=function(){this.cancel(),v()},l.cancel=function(){p&&clearTimeout(p),p=null},l.isPending=function(){return p},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(v,u,p){return p&&v.codePointAt(u)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,r,d){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var h=typeof navigator=="object"?navigator:{},g=(/mac|win|linux/i.exec(h.platform)||["other"])[0].toLowerCase(),v=h.userAgent||"",u=h.appName||"";r.isWin=g=="win",r.isMac=g=="mac",r.isLinux=g=="linux",r.isIE=u=="Microsoft Internet Explorer"||u.indexOf("MSAppHost")>=0?parseFloat((v.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((v.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=v.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(v.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(v.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(v.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(v.split(" Edge/")[1])||void 0,r.isAIR=v.indexOf("AdobeAIR")>=0,r.isAndroid=v.indexOf("Android")>=0,r.isChromeOS=v.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(v)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,r,d){var h=t("./useragent"),g="http://www.w3.org/1999/xhtml";r.buildDom=function a(c,o,f){if(typeof c=="string"&&c){var y=document.createTextNode(c);return o&&o.appendChild(y),y}if(!Array.isArray(c))return c&&c.appendChild&&o&&o.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var w=[],x=0;x<c.length;x++){var E=a(c[x],o,f);E&&w.push(E)}return w}var S=document.createElement(c[0]),C=c[1],b=1;C&&typeof C=="object"&&!Array.isArray(C)&&(b=2);for(var x=b;x<c.length;x++)a(c[x],S,f);return b==2&&Object.keys(C).forEach(function(T){var R=C[T];T==="class"?S.className=Array.isArray(R)?R.join(" "):R:typeof R=="function"||T=="value"||T[0]=="$"?S[T]=R:T==="ref"?f&&(f[R]=S):T==="style"?typeof R=="string"&&(S.style.cssText=R):R!=null&&S.setAttribute(T,R)}),o&&o.appendChild(S),S},r.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},r.createElement=function(a,c){return document.createElementNS?document.createElementNS(c||g,a):document.createElement(a)},r.removeChildren=function(a){a.innerHTML=""},r.createTextNode=function(a,c){var o=c?c.ownerDocument:document;return o.createTextNode(a)},r.createFragment=function(a){var c=a?a.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(a,c){var o=(a.className+"").split(/\s+/g);return o.indexOf(c)!==-1},r.addCssClass=function(a,c){r.hasCssClass(a,c)||(a.className+=" "+c)},r.removeCssClass=function(a,c){for(var o=a.className.split(/\s+/g);;){var f=o.indexOf(c);if(f==-1)break;o.splice(f,1)}a.className=o.join(" ")},r.toggleCssClass=function(a,c){for(var o=a.className.split(/\s+/g),f=!0;;){var y=o.indexOf(c);if(y==-1)break;f=!1,o.splice(y,1)}return f&&o.push(c),a.className=o.join(" "),f},r.setCssClass=function(a,c,o){o?r.addCssClass(a,c):r.removeCssClass(a,c)},r.hasCssString=function(a,c){var o=0,f;if(c=c||document,f=c.querySelectorAll("style")){for(;o<f.length;)if(f[o++].id===a)return!0}},r.removeElementById=function(a,c){c=c||document,c.getElementById(a)&&c.getElementById(a).remove()};var v,u=[];r.useStrictCSP=function(a){v=a,a==!1?p():u||(u=[])};function p(){var a=u;u=null,a&&a.forEach(function(c){s(c[0],c[1])})}function s(a,c,o){if(!(typeof document>"u")){if(u){if(o)p();else if(o===!1)return u.push([a,c])}if(!v){var f=o;!o||!o.getRootNode?f=document:(f=o.getRootNode(),(!f||f==o)&&(f=document));var y=f.ownerDocument||f;if(c&&r.hasCssString(c,f))return null;c&&(a+=`
|
2
|
-
/*# sourceURL=ace/css/`+c+" */");var w=r.createElement("style");w.appendChild(y.createTextNode(a)),c&&(w.id=c),f==y&&(f=r.getDocumentHead(y)),f.insertBefore(w,f.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(a,c){r.buildDom(["link",{rel:"stylesheet",href:a}],r.getDocumentHead(c))},r.scrollbarWidth=function(a){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var o=r.createElement("ace_outer"),f=o.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",o.appendChild(c);var y=a&&a.documentElement||document&&document.documentElement;if(!y)return 0;y.appendChild(o);var w=c.offsetWidth;f.overflow="scroll";var x=c.offsetWidth;return w===x&&(x=o.clientWidth),y.removeChild(o),w-x},r.computedStyle=function(a,c){return window.getComputedStyle(a,"")||{}},r.setStyle=function(a,c,o){a[c]!==o&&(a[c]=o)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=h.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,h.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!h.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(a,c,o){a.style.transform="translate("+Math.round(c)+"px, "+Math.round(o)+"px)"}:r.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,r,d){/*
|
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");r.get=function(g,v){var u=new XMLHttpRequest;u.open("GET",g,!0),u.onreadystatechange=function(){u.readyState===4&&v(u.responseText)},u.send(null)},r.loadScript=function(g,v){var u=h.getDocumentHead(),p=document.createElement("script");p.src=g,u.appendChild(p),p.onload=p.onreadystatechange=function(s,l){(l||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,l||v())}},r.qualifyURL=function(g){var v=document.createElement("a");return v.href=g,v.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,r,d){r.inherits=function(h,g){h.super_=g,h.prototype=Object.create(g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(h,g){for(var v in g)h[v]=g[v];return h},r.implement=function(h,g){r.mixin(h,g)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,r,d){var h={},g=function(){this.propagationStopped=!0},v=function(){this.defaultPrevented=!0};h._emit=h._dispatchEvent=function(u,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[u]||[],l=this._defaultHandlers[u];if(!(!s.length&&!l)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=u),p.stopPropagation||(p.stopPropagation=g),p.preventDefault||(p.preventDefault=v),s=s.slice();for(var a=0;a<s.length&&(s[a](p,this),!p.propagationStopped);a++);if(l&&!p.defaultPrevented)return l(p,this)}},h._signal=function(u,p){var s=(this._eventRegistry||{})[u];if(s){s=s.slice();for(var l=0;l<s.length;l++)s[l](p,this)}},h.once=function(u,p){var s=this;if(this.on(u,function l(){s.off(u,l),p.apply(null,arguments)}),!p)return new Promise(function(l){p=l})},h.setDefaultHandler=function(u,p){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[u]){var l=s[u],a=s._disabled_[u];a||(s._disabled_[u]=a=[]),a.push(l);var c=a.indexOf(p);c!=-1&&a.splice(c,1)}s[u]=p},h.removeDefaultHandler=function(u,p){var s=this._defaultHandlers;if(s){var l=s._disabled_[u];if(s[u]==p)l&&this.setDefaultHandler(u,l.pop());else if(l){var a=l.indexOf(p);a!=-1&&l.splice(a,1)}}},h.on=h.addEventListener=function(u,p,s){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[u];return l||(l=this._eventRegistry[u]=[]),l.indexOf(p)==-1&&l[s?"unshift":"push"](p),p},h.off=h.removeListener=h.removeEventListener=function(u,p){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[u];if(s){var l=s.indexOf(p);l!==-1&&s.splice(l,1)}},h.removeAllListeners=function(u){u||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[u]=void 0),this._defaultHandlers&&(this._defaultHandlers[u]=void 0)},r.EventEmitter=h}),ace.define("ace/lib/report_error",["require","exports","module"],function(t,r,d){r.reportError=function(h,g){var v=new Error(h);v.data=g,typeof console=="object"&&console.error&&console.error(v),setTimeout(function(){throw v})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(t,r,d){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 gutter","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"};r.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,r,d){"no use strict";var h=t("./oop"),g=t("./event_emitter").EventEmitter,v=t("./report_error").reportError,u=t("./default_english_messages").defaultEnglishMessages,p={setOptions:function(o){Object.keys(o).forEach(function(f){this.setOption(f,o[f])},this)},getOptions:function(o){var f={};if(o)Array.isArray(o)||(f=o,o=Object.keys(f));else{var y=this.$options;o=Object.keys(y).filter(function(w){return!y[w].hidden})}return o.forEach(function(w){f[w]=this.getOption(w)},this),f},setOption:function(o,f){if(this["$"+o]!==f){var y=this.$options[o];if(!y)return s('misspelled option "'+o+'"');if(y.forwardTo)return this[y.forwardTo]&&this[y.forwardTo].setOption(o,f);y.handlesSet||(this["$"+o]=f),y&&y.set&&y.set.call(this,f)}},getOption:function(o){var f=this.$options[o];return f?f.forwardTo?this[f.forwardTo]&&this[f.forwardTo].getOption(o):f&&f.get?f.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=u,a="dollarSigns"}return o.prototype.defineOptions=function(f,y,w){return f.$options||(this.$defaultOptions[y]=f.$options={}),Object.keys(w).forEach(function(x){var E=w[x];typeof E=="string"&&(E={forwardTo:E}),E.name||(E.name=x),f.$options[E.name]=E,"initialValue"in E&&(f["$"+E.name]=E.initialValue)}),h.implement(f,p),this},o.prototype.resetOptions=function(f){Object.keys(f.$options).forEach(function(y){var w=f.$options[y];"value"in w&&f.setOption(y,w.value)})},o.prototype.setDefaultValue=function(f,y,w){if(!f){for(f in this.$defaultOptions)if(this.$defaultOptions[f][y])break;if(!this.$defaultOptions[f][y])return!1}var x=this.$defaultOptions[f]||(this.$defaultOptions[f]={});x[y]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,y,w):x[y].value=w)},o.prototype.setDefaultValues=function(f,y){Object.keys(y).forEach(function(w){this.setDefaultValue(f,w,y[w])},this)},o.prototype.setMessages=function(f,y){l=f,y&&y.placeholders&&(a=y.placeholders)},o.prototype.nls=function(f,y,w){l[f]||(s("No message found for the key '"+f+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+y+"'."),l[y]||s("No message found for the default string '"+y+"' in the provided messages. Falling back to the default English message."));var x=l[f]||l[y]||y;return w&&(a==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(E,S){return S=="$"?"$":w[S]})),a==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(E,S){return w[S]}))),x},o}();c.prototype.warn=s,c.prototype.reportError=v,h.implement(c.prototype,g),r.AppConfig=c}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(t,r,d){d.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,r,d){r.isDark=!1,r.cssClass="ace-tm",r.cssText=t("./textmate-css"),r.$id="ace/theme/textmate";var h=t("../lib/dom");h.importCssString(r.cssText,r.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,r,d){"no use strict";var h=t("./lib/lang"),g=t("./lib/net"),v=t("./lib/dom"),u=t("./lib/app_config").AppConfig;d.exports=r=new u;var p={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!p.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return p[c]},r.set=function(c,o){if(p.hasOwnProperty(c))p[c]=o;else if(this.setDefaultValue("",c,o)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&v.useStrictCSP(o)},r.all=function(){return h.copyObject(p)},r.$modes={},r.moduleUrl=function(c,o){if(p.$moduleUrls[c])return p.$moduleUrls[c];var f=c.split("/");o=o||f[f.length-2]||"";var y=o=="snippets"?"/":"-",w=f[f.length-1];if(o=="worker"&&y=="-"){var x=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");w=w.replace(x,"")}(!w||w==o)&&f.length>1&&(w=f[f.length-2]);var E=p[o+"Path"];return E==null?E=p.basePath:y=="/"&&(o=y=""),E&&E.slice(-1)!="/"&&(E+="/"),E+o+y+w+this.get("suffix")},r.setModuleUrl=function(c,o){return p.$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;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,o){var f;if(Array.isArray(c))var y=c[0],w=c[1];else if(typeof c=="string")var w=c;var x=function(E){if(E&&!r.$loading[w])return o&&o(E);if(r.$loading[w]||(r.$loading[w]=[]),r.$loading[w].push(o),!(r.$loading[w].length>1)){var S=function(){s(w,function(C,b){b&&(r.$loaded[w]=b),r._emit("load.module",{name:w,module:b});var T=r.$loading[w];r.$loading[w]=null,T.forEach(function(R){R&&R(b)})})};if(!r.get("packaged"))return S();g.loadScript(r.moduleUrl(w,y),S),a()}};if(r.dynamicModules[w])r.dynamicModules[w]().then(function(E){E.default?x(E.default):x(E)});else{try{f=this.$require(w)}catch{}x(f||r.$loaded[w])}},r.$require=function(c){if(typeof d.require=="function"){var o="require";return d[o](c)}},r.setModuleLoader=function(c,o){r.dynamicModules[c]=o};var a=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$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(){})};r.version="1.38.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,r,d){t("./lib/fixoldbrowsers");var h=t("./config");h.setLoader(function(p,s){t([p],function(l){s(null,l)})});var g=function(){return this||typeof window<"u"&&window}();d.exports=function(p){h.init=v,h.$require=t,p.require=t},v(!0);function v(p){if(!(!g||!g.document)){h.set("packaged",p||t.packaged||d.packaged||g.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"),f=0;f<o.length;f++){var y=o[f],w=y.src||y.getAttribute("src");if(w){for(var x=y.attributes,E=0,S=x.length;E<S;E++){var C=x[E];C.name.indexOf("data-ace-")===0&&(s[u(C.name.replace(/^data-ace-/,""))]=C.value)}var b=w.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(l=b[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 u(p){return p.replace(/-(.)/g,function(s,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(t,r,d){var h=function(){function g(v,u,p,s){this.start={row:v,column:u},this.end={row:p,column:s}}return g.prototype.isEqual=function(v){return this.start.row===v.start.row&&this.end.row===v.end.row&&this.start.column===v.start.column&&this.end.column===v.end.column},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(v,u){return this.compare(v,u)==0},g.prototype.compareRange=function(v){var u,p=v.end,s=v.start;return u=this.compare(p.row,p.column),u==1?(u=this.compare(s.row,s.column),u==1?2:u==0?1:0):u==-1?-2:(u=this.compare(s.row,s.column),u==-1?-1:u==1?42:0)},g.prototype.comparePoint=function(v){return this.compare(v.row,v.column)},g.prototype.containsRange=function(v){return this.comparePoint(v.start)==0&&this.comparePoint(v.end)==0},g.prototype.intersects=function(v){var u=this.compareRange(v);return u==-1||u==0||u==1},g.prototype.isEnd=function(v,u){return this.end.row==v&&this.end.column==u},g.prototype.isStart=function(v,u){return this.start.row==v&&this.start.column==u},g.prototype.setStart=function(v,u){typeof v=="object"?(this.start.column=v.column,this.start.row=v.row):(this.start.row=v,this.start.column=u)},g.prototype.setEnd=function(v,u){typeof v=="object"?(this.end.column=v.column,this.end.row=v.row):(this.end.row=v,this.end.column=u)},g.prototype.inside=function(v,u){return this.compare(v,u)==0?!(this.isEnd(v,u)||this.isStart(v,u)):!1},g.prototype.insideStart=function(v,u){return this.compare(v,u)==0?!this.isEnd(v,u):!1},g.prototype.insideEnd=function(v,u){return this.compare(v,u)==0?!this.isStart(v,u):!1},g.prototype.compare=function(v,u){return!this.isMultiLine()&&v===this.start.row?u<this.start.column?-1:u>this.end.column?1:0:v<this.start.row?-1:v>this.end.row?1:this.start.row===v?u>=this.start.column?0:-1:this.end.row===v?u<=this.end.column?0:1:0},g.prototype.compareStart=function(v,u){return this.start.row==v&&this.start.column==u?-1:this.compare(v,u)},g.prototype.compareEnd=function(v,u){return this.end.row==v&&this.end.column==u?1:this.compare(v,u)},g.prototype.compareInside=function(v,u){return this.end.row==v&&this.end.column==u?1:this.start.row==v&&this.start.column==u?-1:this.compare(v,u)},g.prototype.clipRows=function(v,u){if(this.end.row>u)var p={row:u+1,column:0};else if(this.end.row<v)var p={row:v,column:0};if(this.start.row>u)var s={row:u+1,column:0};else if(this.start.row<v)var s={row:v,column:0};return g.fromPoints(s||this.start,p||this.end)},g.prototype.extend=function(v,u){var p=this.compare(v,u);if(p==0)return this;if(p==-1)var s={row:v,column:u};else var l={row:v,column:u};return g.fromPoints(s||this.start,l||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(v){var u=v.documentToScreenPosition(this.start),p=v.documentToScreenPosition(this.end);return new g(u.row,u.column,p.row,p.column)},g.prototype.moveBy=function(v,u){this.start.row+=v,this.start.column+=u,this.end.row+=v,this.end.column+=u},g}();h.fromPoints=function(g,v){return new h(g.row,g.column,v.row,v.column)},h.comparePoints=function(g,v){return g.row-v.row||g.column-v.column},r.Range=h}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,r,d){for(var h=t("./oop"),g={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:"*"}},v={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},u=0;u<10;u++)v["Digit"+u]=48+u,v["Numpad"+u]=96+u,g.PRINTABLE_KEYS[48+u]=""+u,g.FUNCTION_KEYS[96+u]="Numpad"+u;for(var u=65;u<91;u++){var p=String.fromCharCode(u+32);v["Key"+p.toUpperCase()]=u,g.PRINTABLE_KEYS[u]=p}for(var u=1;u<13;u++)v["F"+u]=111+u,g.FUNCTION_KEYS[111+u]="F"+u;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var l in s)v[l]=v[l+"Left"]=v[l+"Right"]=s[l];r.$codeToKeyCode=v,g.PRINTABLE_KEYS[173]="-";for(var a in g.FUNCTION_KEYS){var c=g.FUNCTION_KEYS[a].toLowerCase();g[c]=parseInt(a,10)}for(var a in g.PRINTABLE_KEYS){var c=g.PRINTABLE_KEYS[a].toLowerCase();g[c]=parseInt(a,10)}h.mixin(g,g.MODIFIER_KEYS),h.mixin(g,g.PRINTABLE_KEYS),h.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,function(){for(var o=["cmd","ctrl","alt","shift"],f=Math.pow(2,o.length);f--;)g.KEY_MODS[f]=o.filter(function(y){return f&g.KEY_MODS[y]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",h.mixin(r,g),r.default=r,r.keyCodeToString=function(o){var f=g[o];return typeof f!="string"&&(f=String.fromCharCode(o)),f.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,d){var h=t("./keys"),g=t("./useragent"),v=null,u=0,p;function s(){p=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return p={passive:!1},!0}})}catch{}}function l(){return p==null&&s(),p}function a(E,S,C){this.elem=E,this.type=S,this.callback=C}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(E,S,C,b){E.addEventListener(S,C,l()),b&&b.$toDestroy.push(new a(E,S,C))},o=r.removeListener=function(E,S,C){E.removeEventListener(S,C,l())};r.stopEvent=function(E){return r.stopPropagation(E),r.preventDefault(E),!1},r.stopPropagation=function(E){E.stopPropagation&&E.stopPropagation()},r.preventDefault=function(E){E.preventDefault&&E.preventDefault()},r.getButton=function(E){return E.type=="dblclick"?0:E.type=="contextmenu"||g.isMac&&E.ctrlKey&&!E.altKey&&!E.shiftKey?2:E.button},r.capture=function(E,S,C){var b=E&&E.ownerDocument||document;function T(R){S&&S(R),C&&C(R),o(b,"mousemove",S),o(b,"mouseup",T),o(b,"dragstart",T)}return c(b,"mousemove",S),c(b,"mouseup",T),c(b,"dragstart",T),T},r.addMouseWheelListener=function(E,S,C){c(E,"wheel",function(b){var T=.15,R=b.deltaX||0,L=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=R*T,b.wheelY=L*T;break;case b.DOM_DELTA_LINE:var I=15;b.wheelX=R*I,b.wheelY=L*I;break;case b.DOM_DELTA_PAGE:var N=150;b.wheelX=R*N,b.wheelY=L*N;break}S(b)},C)},r.addMultiMouseDownListener=function(E,S,C,b,T){var R=0,L,I,N,k={2:"dblclick",3:"tripleclick",4:"quadclick"};function A(_){if(r.getButton(_)!==0?R=0:_.detail>1?(R++,R>4&&(R=1)):R=1,g.isIE){var M=Math.abs(_.clientX-L)>5||Math.abs(_.clientY-I)>5;(!N||M)&&(R=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},S[R-1]||600),R==1&&(L=_.clientX,I=_.clientY)}if(_._clicks=R,C[b]("mousedown",_),R>4)R=0;else if(R>1)return C[b](k[R],_)}Array.isArray(E)||(E=[E]),E.forEach(function(_){c(_,"mousedown",A,T)})};function f(E){return 0|(E.ctrlKey?1:0)|(E.altKey?2:0)|(E.shiftKey?4:0)|(E.metaKey?8:0)}r.getModifierString=function(E){return h.KEY_MODS[f(E)]};function y(E,S,C){var b=f(S);if(!C&&S.code&&(C=h.$codeToKeyCode[S.code]||C),!g.isMac&&v){if(S.getModifierState&&(S.getModifierState("OS")||S.getModifierState("Win"))&&(b|=8),v.altGr)if((3&b)!=3)v.altGr=0;else return;if(C===18||C===17){var T=S.location;if(C===17&&T===1)v[C]==1&&(u=S.timeStamp);else if(C===18&&b===3&&T===2){var R=S.timeStamp-u;R<50&&(v.altGr=!0)}}}if(C in h.MODIFIER_KEYS&&(C=-1),!(!b&&C===13&&S.location===3&&(E(S,b,-C),S.defaultPrevented))){if(g.isChromeOS&&b&8){if(E(S,b,C),S.defaultPrevented)return;b&=-9}return!b&&!(C in h.FUNCTION_KEYS)&&!(C in h.PRINTABLE_KEYS)?!1:E(S,b,C)}}r.addCommandKeyListener=function(E,S,C){var b=null;c(E,"keydown",function(T){v[T.keyCode]=(v[T.keyCode]||0)+1;var R=y(S,T,T.keyCode);return b=T.defaultPrevented,R},C),c(E,"keypress",function(T){b&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(r.stopEvent(T),b=null)},C),c(E,"keyup",function(T){v[T.keyCode]=null},C),v||(w(),c(window,"focus",w))};function w(){v=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!g.isOldIE){var x=1;r.nextTick=function(E,S){S=S||window;var C="zero-timeout-message-"+x++,b=function(T){T.data==C&&(r.stopPropagation(T),o(S,"message",b),E())};c(S,"message",b),S.postMessage(C,"*")}}r.$idleBlocked=!1,r.onIdle=function(E,S){return setTimeout(function C(){r.$idleBlocked?setTimeout(C,100):E()},S)},r.$idleBlockId=null,r.blockIdle=function(E){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},E||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(E){setTimeout(E,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,r,d){var h;d.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,r,d){var h=t("../lib/event"),g=t("../config").nls,v=t("../lib/useragent"),u=t("../lib/dom"),p=t("../lib/lang"),s=t("../clipboard"),l=v.isChrome<18,a=v.isIE,c=v.isChrome>63,o=400,f=t("../lib/keys"),y=f.KEY_MODS,w=v.isIOS,x=w?/\s/:/\n/,E=v.isMobile,S;S=function(C,b){var T=u.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",C.insertBefore(T,C.firstChild);var R=!1,L=!1,I=!1,N=!1,k="";E||(T.style.fontSize="1px");var A=!1,_=!1,M="",O=0,F=0,H=0,z=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(z=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(b.$textInputAriaLabel&&(ce+="".concat(b.$textInputAriaLabel,", ")),b.session){var Ee=b.session.selection.cursor.row;ce+=g("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",g("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),h.addListener(T,"blur",function(ce){_||(b.onBlur(ce),X=!1)},b),h.addListener(T,"focus",function(ce){if(!_){if(X=!0,v.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(ce),v.isEdge?setTimeout(Z):Z()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),k||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 De=[];if(Ee)for(var Ye=T.parentElement;Ye&&Ye.nodeType==1;)De.push(Ye),Ye.setAttribute("ace_nocontext","true"),!Ye.parentElement&&Ye.getRootNode?Ye=Ye.getRootNode().host:Ye=Ye.parentElement;T.focus({preventScroll:!0}),Ee&&De.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},b.on("beforeEndOperation",function(){var ce=b.curOp,Ee=ce&&ce.command&&ce.command.name;if(Ee!="insertstring"){var De=Ee&&(ce.docChanged||ce.selectionChanged);I&&De&&(M=T.value="",Jt()),Z()}}),b.on("changeSelection",this.setAriaLabel);var G=function(ce,Ee){for(var De=Ee,Ye=1;Ye<=ce-z&&Ye<2*q+1;Ye++)De+=b.session.getLine(ce-Ye).length+1;return De},Z=w?function(ce){if(!(!X||R&&!ce||N)){ce||(ce="");var Ee=`
|
167
|
-
ab`+ce+`cde fg
|
168
|
-
`;Ee!=T.value&&(T.value=M=Ee);var De=4,Ye=4+(ce.length||(b.selection.isEmpty()?0:1));(O!=De||F!=Ye)&&T.setSelectionRange(De,Ye),O=De,F=Ye}}:function(){if(!(I||N)&&!(!X&&!me)){I=!0;var ce=0,Ee=0,De="";if(b.session){var Ye=b.selection,Qe=Ye.getRange(),pt=Ye.cursor.row;pt===V+1?(z=V+1,V=z+2*q):pt===z-1?(V=z-1,z=V-2*q):(pt<z-1||pt>V+1)&&(z=pt>q?pt-q:0,V=pt>q?pt+q:2*q);for(var mt=[],ut=z;ut<=V;ut++)mt.push(b.session.getLine(ut));if(De=mt.join(`
|
169
|
-
`),ce=G(Qe.start.row,Qe.start.column),Ee=G(Qe.end.row,Qe.end.column),Qe.start.row<z){var ht=b.session.getLine(z-1);ce=Qe.start.row<z-1?0:ce,Ee+=ht.length+1,De=ht+`
|
170
|
-
`+De}else if(Qe.end.row>V){var ot=b.session.getLine(V+1);Ee=Qe.end.row>V+1?ot.length:Qe.end.column,Ee+=De.length+1,De=De+`
|
171
|
-
`+ot}else E&&pt>0&&(De=`
|
172
|
-
`+De,Ee+=1,ce+=1);De.length>o&&(ce<o&&Ee<o?De=De.slice(0,o):(De=`
|
173
|
-
`,ce==Ee?ce=Ee=0:(ce=0,Ee=1)));var Vt=De+`
|
174
|
-
|
175
|
-
`;Vt!=M&&(T.value=M=Vt,O=F=Vt.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{}I=!1}};this.resetSelection=Z,X&&b.onFocus();var re=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=M.length&&ce.value===M&&M&&ce.selectionEnd!==F},J=function(ce){I||(R?R=!1:re(T)?(b.selectAll(),Z()):E&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,ve=function(ce,Ee){if(me&&(me=!1),L)return Z(),ce&&b.onPaste(ce),L=!1,"";for(var De=T.selectionStart,Ye=T.selectionEnd,Qe=O,pt=M.length-F,mt=ce,ut=ce.length-De,ht=ce.length-Ye,ot=0;Qe>0&&M[ot]==ce[ot];)ot++,Qe--;for(mt=mt.slice(ot),ot=1;pt>0&&M.length-ot>O-1&&M[M.length-ot]==ce[ce.length-ot];)ot++,pt--;ut-=ot-1,ht-=ot-1;var Vt=mt.length-ot+1;if(Vt<0&&(Qe=-Vt,Vt=0),mt=mt.slice(0,Vt),!Ee&&!mt&&!ut&&!Qe&&!pt&&!ht)return"";N=!0;var jn=!1;return v.isAndroid&&mt==". "&&(mt=" ",jn=!0),mt&&!Qe&&!pt&&!ut&&!ht||A?b.onTextInput(mt):b.onTextInput(mt,{extendLeft:Qe,extendRight:pt,restoreStart:ut,restoreEnd:ht}),N=!1,M=ce,O=De,F=Ye,H=ht,jn?`
|
176
|
-
`:mt},ge=function(ce){if(I)return Nt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return b.execCommand("undo");if(ce.inputType=="historyRedo")return b.execCommand("redo")}var Ee=T.value,De=ve(Ee,!0);(Ee.length>o+100||x.test(De)||E&&O<1&&O==F)&&Z()},Se=function(ce,Ee,De){var Ye=ce.clipboardData||window.clipboardData;if(!(!Ye||l)){var Qe=a||De?"Text":"text/plain";try{return Ee?Ye.setData(Qe,Ee)!==!1:Ye.getData(Qe)}catch(pt){if(!De)return Se(pt,Ee,!0)}}},lt=function(ce,Ee){var De=b.getCopyText();if(!De)return h.preventDefault(ce);Se(ce,De)?(w&&(Z(De),R=De,setTimeout(function(){R=!1},10)),Ee?b.onCut():b.onCopy(),h.preventDefault(ce)):(R=!0,T.value=De,T.select(),setTimeout(function(){R=!1,Z(),Ee?b.onCut():b.onCopy()}))},jt=function(ce){lt(ce,!0)},gt=function(ce){lt(ce,!1)},yt=function(ce){var Ee=Se(ce);s.pasteCancelled()||(typeof Ee=="string"?(Ee&&b.onPaste(Ee,ce),v.isIE&&setTimeout(Z),h.preventDefault(ce)):(T.value="",L=!0))};h.addCommandKeyListener(T,function(ce,Ee,De){if(!I)return b.onCommandKey(ce,Ee,De)},b),h.addListener(T,"select",J,b),h.addListener(T,"input",ge,b),h.addListener(T,"cut",jt,b),h.addListener(T,"copy",gt,b),h.addListener(T,"paste",yt,b),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&h.addListener(C,"keydown",function(ce){if(!(v.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:gt(ce);break;case 86:yt(ce);break;case 88:jt(ce);break}},b);var dn=function(ce){if(!(I||!b.onCompositionStart||b.$readOnly)&&(I={},!A)){ce.data&&(I.useTextareaForIME=!1),setTimeout(Nt,0),b._signal("compositionStart"),b.on("mousedown",Zr);var Ee=b.getSelectionRange();Ee.end.row=Ee.start.row,Ee.end.column=Ee.start.column,I.markerRange=Ee,I.selectionStart=O,b.onCompositionStart(I),I.useTextareaForIME?(M=T.value="",O=0,F=0):(T.msGetInputContext&&(I.context=T.msGetInputContext()),T.getInputContext&&(I.context=T.getInputContext()))}},Nt=function(){if(!(!I||!b.onCompositionUpdate||b.$readOnly)){if(A)return Zr();if(I.useTextareaForIME)b.onCompositionUpdate(T.value);else{var ce=T.value;ve(ce),I.markerRange&&(I.context&&(I.markerRange.start.column=I.selectionStart=I.context.compositionStartOffset),I.markerRange.end.column=I.markerRange.start.column+F-I.selectionStart+H)}}},Jt=function(ce){!b.onCompositionEnd||b.$readOnly||(I=!1,b.onCompositionEnd(),b.off("mousedown",Zr),ce&&ge())};function Zr(){_=!0,T.blur(),T.focus(),_=!1}var _n=p.delayedCall(Nt,50).schedule.bind(null,null);function rn(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(I||(M=T.value),O=F=-1,Z()),_n()}h.addListener(T,"compositionstart",dn,b),h.addListener(T,"compositionupdate",Nt,b),h.addListener(T,"keyup",rn,b),h.addListener(T,"keydown",_n,b),h.addListener(T,"compositionend",Jt,b),this.getElement=function(){return T},this.setCommandMode=function(ce){A=ce,T.readOnly=!1},this.setReadOnly=function(ce){A||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),b._emit("nativecontextmenu",{target:b,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Ee){k||(k=T.style.cssText),T.style.cssText=(Ee?"z-index:100000;":"")+(v.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*b.renderer.characterWidth*.5+"px;";var De=b.container.getBoundingClientRect(),Ye=u.computedStyle(b.container),Qe=De.top+(parseInt(Ye.borderTopWidth)||0),pt=De.left+(parseInt(Ye.borderLeftWidth)||0),mt=De.bottom-Qe-T.clientHeight-2,ut=function(ht){u.translate(T,ht.clientX-pt-2,Math.min(ht.clientY-Qe-2,mt))};ut(ce),ce.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(We),v.isWin&&h.capture(b.container,ut,ze))},this.onContextMenuClose=ze;var We;function ze(){clearTimeout(We),We=setTimeout(function(){k&&(T.style.cssText=k,k=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var on=function(ce){b.textInput.onContextMenu(ce),ze()};h.addListener(T,"mouseup",on,b),h.addListener(T,"mousedown",function(ce){ce.preventDefault(),ze()},b),h.addListener(b.renderer.scroller,"contextmenu",on,b),h.addListener(T,"contextmenu",on,b),w&&Ve(C,b,T);function Ve(ce,Ee,De){var Ye=null,Qe=!1;De.addEventListener("keydown",function(mt){Ye&&clearTimeout(Ye),Qe=!0},!0),De.addEventListener("keyup",function(mt){Ye=setTimeout(function(){Qe=!1},100)},!0);var pt=function(mt){if(document.activeElement===De&&!(Qe||I||Ee.$mouseHandler.isMousePressed)&&!R){var ut=De.selectionStart,ht=De.selectionEnd,ot=null,Vt=0;if(ut==0?ot=f.up:ut==1?ot=f.home:ht>F&&M[ht]==`
|
177
|
-
`?ot=f.end:ut<O&&M[ut-1]==" "?(ot=f.left,Vt=y.option):ut<O||ut==O&&F!=O&&ut==ht?ot=f.left:ht>F&&M.slice(0,ht).split(`
|
178
|
-
`).length>2?ot=f.down:ht>F&&M[ht-1]==" "?(ot=f.right,Vt=y.option):(ht>F||ht==F&&F!=O&&ut==ht)&&(ot=f.right),ut!==ht&&(Vt|=y.shift),ot){var jn=Ee.onCommandKey({},Vt,ot);if(!jn&&Ee.commands){ot=f.keyCodeToString(ot);var ui=Ee.commands.findKeyCommand(Vt,ot);ui&&Ee.execCommand(ui)}O=ut,F=ht,Z("")}}};document.addEventListener("selectionchange",pt),Ee.on("destroy",function(){document.removeEventListener("selectionchange",pt)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},r.TextInput=S,r.$setUserAgentForTests=function(C,b){E=C,w=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,r,d){var h=t("../lib/useragent"),g=0,v=550,u=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(f){a[f]=this[f]},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 f=this.editor,y=a.getButton();if(y!==0){var w=f.getSelectionRange(),x=w.isEmpty();(x||y==1)&&f.selection.moveToPosition(o),y==2&&(f.textInput.onContextMenu(a.domEvent),h.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.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 f=this.$clickSelection.comparePoint(o);if(f==-1)a=this.$clickSelection.end;else if(f==1)a=this.$clickSelection.start;else{var y=s(this.$clickSelection,o);o=y.cursor,a=y.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,f=o.renderer.screenToTextCoordinates(this.x,this.y),y=o.selection[a](f.row,f.column);if(this.$clickSelection){var w=this.$clickSelection.comparePoint(y.start),x=this.$clickSelection.comparePoint(y.end);if(w==-1&&x<=0)c=this.$clickSelection.end,(y.end.row!=f.row||y.end.column!=f.column)&&(f=y.start);else if(x==1&&w>=0)c=this.$clickSelection.start,(y.start.row!=f.row||y.start.column!=f.column)&&(f=y.end);else if(w==-1&&x==1)f=y.end,c=y.start;else{var E=s(this.$clickSelection,f);f=E.cursor,c=E.anchor}o.selection.setSelectionAnchor(c.row,c.column)}o.selection.selectToPosition(f),o.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var a=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(a>g||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(a){var c=a.getDocumentPosition(),o=this.editor,f=o.session,y=f.getBracketRange(c);y?(y.isEmpty()&&(y.start.column--,y.end.column++),this.setState("select")):(y=o.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=y,this.select()},l.prototype.onTripleClick=function(a){var c=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var f=o.getSelectionRange();f.isMultiLine()&&f.contains(c.row,c.column)?(this.$clickSelection=o.selection.getLineRange(f.start.row),this.$clickSelection.end=o.selection.getLineRange(f.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,f=a.domEvent.timeStamp,y=f-o.t,w=y?a.wheelX/y:o.vx,x=y?a.wheelY/y:o.vy;y<v&&(w=(w+o.vx)/2,x=(x+o.vy)/2);var E=Math.abs(w/x),S=!1;if(E>=1&&c.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(S=!0),E<=1&&c.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(S=!0),S)o.allowed=f;else if(f-o.allowed<v){var C=Math.abs(w)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);C?(S=!0,o.allowed=f):o.allowed=0}if(o.t=f,o.vx=w,o.vy=x,S)return c.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},l}();u.prototype.selectEnd=u.prototype.selectByLinesEnd,u.prototype.selectAllEnd=u.prototype.selectByLinesEnd,u.prototype.selectByWordsEnd=u.prototype.selectByLinesEnd,r.DefaultHandlers=u;function p(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,r,d){r.preventParentScroll=function(h){h.stopPropagation();var g=h.currentTarget,v=g.scrollHeight>g.clientHeight;v||h.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,r,d){var h=this&&this.__extends||function(){var f=function(y,w){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(x[S]=E[S])},f(y,w)};return function(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");f(y,w);function x(){this.constructor=y}y.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),g=this&&this.__values||function(f){var y=typeof Symbol=="function"&&Symbol.iterator,w=y&&f[y],x=0;if(w)return w.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&x>=f.length&&(f=void 0),{value:f&&f[x++],done:!f}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},v=t("./lib/dom");t("./lib/event");var u=t("./range").Range,p=t("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function f(y){this.isOpen=!1,this.$element=null,this.$parentNode=y}return f.prototype.$init=function(){return this.$element=v.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},f.prototype.getElement=function(){return this.$element||this.$init()},f.prototype.setText=function(y){this.getElement().textContent=y},f.prototype.setHtml=function(y){this.getElement().innerHTML=y},f.prototype.setPosition=function(y,w){this.getElement().style.left=y+"px",this.getElement().style.top=w+"px"},f.prototype.setClassName=function(y){v.addCssClass(this.getElement(),y)},f.prototype.setTheme=function(y){this.$element.className=s+" "+(y.isDark?"ace_dark ":"")+(y.cssClass||"")},f.prototype.show=function(y,w,x){y!=null&&this.setText(y),w!=null&&x!=null&&this.setPosition(w,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},f.prototype.hide=function(y){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},f.prototype.getHeight=function(){return this.getElement().offsetHeight},f.prototype.getWidth=function(){return this.getElement().offsetWidth},f.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},f}(),a=function(){function f(){this.popups=[]}return f.prototype.addPopup=function(y){this.popups.push(y),this.updatePopups()},f.prototype.removePopup=function(y){var w=this.popups.indexOf(y);w!==-1&&(this.popups.splice(w,1),this.updatePopups())},f.prototype.updatePopups=function(){var y,w,x,E;this.popups.sort(function(k,A){return A.priority-k.priority});var S=[];try{for(var C=g(this.popups),b=C.next();!b.done;b=C.next()){var T=b.value,R=!0;try{for(var L=(x=void 0,g(S)),I=L.next();!I.done;I=L.next()){var N=I.value;if(this.doPopupsOverlap(N,T)){R=!1;break}}}catch(k){x={error:k}}finally{try{I&&!I.done&&(E=L.return)&&E.call(L)}finally{if(x)throw x.error}}R?S.push(T):T.hide()}}catch(k){y={error:k}}finally{try{b&&!b.done&&(w=C.return)&&w.call(C)}finally{if(y)throw y.error}}},f.prototype.doPopupsOverlap=function(y,w){var x=y.getElement().getBoundingClientRect(),E=w.getElement().getBoundingClientRect();return x.left<E.right&&x.right>E.left&&x.top<E.bottom&&x.bottom>E.top},f}(),c=new a;r.popupManager=c,r.Tooltip=l;var o=function(f){h(y,f);function y(w){w===void 0&&(w=document.body);var x=f.call(this,w)||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",p),x}return y.prototype.addToEditor=function(w){w.on("mousemove",this.onMouseMove),w.on("mousedown",this.hide),w.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},y.prototype.removeFromEditor=function(w){w.off("mousemove",this.onMouseMove),w.off("mousedown",this.hide),w.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},y.prototype.onMouseMove=function(w,x){this.lastEvent=w,this.lastT=Date.now();var E=x.$mouseHandler.isMousePressed;if(this.isOpen){var S=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(S.row,S.column)||E||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||E||(this.lastEvent=w,this.timeout=setTimeout(this.waitForHover,this.idleTime))},y.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var w=Date.now()-this.lastT;if(this.idleTime-w>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-w);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},y.prototype.isOutsideOfText=function(w){var x=w.editor,E=w.getDocumentPosition(),S=x.session.getLine(E.row);if(E.column==S.length){var C=x.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),b=x.session.documentToScreenPosition(E.row,E.column);if(b.column!=C.column||b.row!=C.row)return!0}return!1},y.prototype.setDataProvider=function(w){this.$gatherData=w},y.prototype.showForRange=function(w,x,E,S){var C=10;if(!(S&&S!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=w.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(x,w.session),this.range=u.fromPoints(x.start,x.end);var T=b.textToScreenCoordinates(x.start.row,x.start.column),R=b.scroller.getBoundingClientRect();T.pageX<R.left&&(T.pageX=R.left);var L=this.getElement();L.innerHTML="",L.appendChild(E),L.style.maxHeight="",L.style.display="block";var I=L.clientHeight,N=L.clientWidth,k=window.innerHeight-T.pageY-b.lineHeight,A=!0;T.pageY-I<0&&T.pageY<k&&(A=!1),L.style.maxHeight=(A?T.pageY:k)-C+"px",L.style.top=A?"":T.pageY+b.lineHeight+"px",L.style.bottom=A?window.innerHeight-T.pageY+"px":"",L.style.left=Math.min(T.pageX,window.innerWidth-N-C)+"px"}},y.prototype.addMarker=function(w,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(w,"ace_highlight-marker","text")},y.prototype.hide=function(w){!w&&document.activeElement==this.getElement()||w&&w.target&&(w.type!="keydown"||w.ctrlKey||w.metaKey)&&this.$element.contains(w.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)))},y.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},y.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},y.prototype.onMouseOut=function(w){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||w.relatedTarget.classList.contains("ace_content")||this.hide())},y}(l);r.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,r,d){var h=this&&this.__extends||function(){var c=function(o,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(y[x]=w[x])},c(o,f)};return function(o,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(o,f);function y(){this.constructor=o}o.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),g=this&&this.__values||function(c){var o=typeof Symbol=="function"&&Symbol.iterator,f=o&&c[o],y=0;if(f)return f.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&y>=c.length&&(c=void 0),{value:c&&c[y++],done:!c}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},v=t("../lib/dom"),u=t("../lib/event"),p=t("../tooltip").Tooltip,s=t("../config").nls;t("../lib/lang");function l(c){var o=c.editor,f=o.renderer.$gutterLayer,y=new a(o);c.editor.setDefaultHandler("guttermousedown",function(b){if(!(!o.isFocused()||b.getButton()!=0)){var T=f.getRegion(b);if(T!="foldWidgets"){var R=b.getDocumentPosition().row,L=o.session.selection;if(b.getShiftKey())L.selectTo(R,0);else{if(b.domEvent.detail==2)return o.selectAll(),b.preventDefault();c.$clickSelection=o.selection.getLineRange(R)}return c.setState("selectByLines"),c.captureMouse(b),b.preventDefault()}}});var w,x;function E(){var b=x.getDocumentPosition().row,T=o.session.getLength();if(b==T){var R=o.renderer.pixelToScreenCoordinates(0,x.y).row,L=x.$pos;if(R>o.session.documentToScreenRow(L.row,L.column))return S()}if(y.showTooltip(b),!!y.isOpen)if(o.on("mousewheel",S),c.$tooltipFollowsMouse)C(x);else{var I=x.getGutterRow(),N=f.$lines.get(I);if(N){var k=N.element.querySelector(".ace_gutter_annotation"),A=k.getBoundingClientRect(),_=y.getElement().style;_.left=A.right+"px",_.top=A.bottom+"px"}else C(x)}}function S(){w&&(w=clearTimeout(w)),y.isOpen&&(y.hideTooltip(),o.off("mousewheel",S))}function C(b){y.setPosition(b.x,b.y)}c.editor.setDefaultHandler("guttermousemove",function(b){var T=b.domEvent.target||b.domEvent.srcElement;if(v.hasCssClass(T,"ace_fold-widget"))return S();y.isOpen&&c.$tooltipFollowsMouse&&C(b),x=b,!w&&(w=setTimeout(function(){w=null,x&&!c.isMousePressed?E():S()},50))}),u.addListener(o.renderer.$gutter,"mouseout",function(b){x=null,!(!y.isOpen||w)&&(w=setTimeout(function(){w=null,S()},50))},o),o.on("changeSession",S),o.on("input",S)}r.GutterHandler=l;var a=function(c){h(o,c);function o(f){var y=c.call(this,f.container)||this;return y.editor=f,y.visibleTooltipRow,y}return o.prototype.setPosition=function(f,y){var w=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,E=this.getWidth(),S=this.getHeight();f+=15,y+=15,f+E>w&&(f-=f+E-w),y+S>x&&(y-=20+S),p.prototype.setPosition.call(this,f,y)},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(f){var y,w=this.editor.renderer.$gutterLayer,x=w.$annotations[f],E;x?E={displayText:Array.from(x.displayText),type:Array.from(x.type)}:E={displayText:[],type:[]};var S=w.session.getFoldLine(f);if(S&&w.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},T,R=f+1;R<=S.end.row;R++)if(w.$annotations[R])for(var L=0;L<w.$annotations[R].text.length;L++){var I=w.$annotations[R].type[L];C[I].push(w.$annotations[R].text[L]),(!T||b[I]<b[T])&&(T=I)}if(["error","security","warning"].includes(T)){var N="".concat(o.annotationsToSummaryString(C)," in folded code.");E.displayText.push(N),E.type.push(T+"_fold")}}if(E.displayText.length===0)return this.hideTooltip();for(var k={error:[],security:[],warning:[],info:[],hint:[]},A=w.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<E.displayText.length;R++){var _=v.createElement("span"),M=v.createElement("span");(y=M.classList).add.apply(y,["ace_".concat(E.type[R]),A]),M.setAttribute("aria-label","".concat(o.annotationLabels[E.type[R].replace("_fold","")].singular)),M.setAttribute("role","img"),M.appendChild(v.createTextNode(" ")),_.appendChild(M),_.appendChild(v.createTextNode(E.displayText[R])),_.appendChild(v.createElement("br")),k[E.type[R].replace("_fold","")].push(_)}var O=this.getElement();v.removeChildren(O),k.error.forEach(function(F){return O.appendChild(F)}),k.security.forEach(function(F){return O.appendChild(F)}),k.warning.forEach(function(F){return O.appendChild(F)}),k.info.forEach(function(F){return O.appendChild(F)}),k.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.visibleTooltipRow=f,this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.isOpen&&(this.$element.removeAttribute("aria-live"),this.hide(),this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this))},o.annotationsToSummaryString=function(f){var y,w,x=[],E=["error","security","warning","info","hint"];try{for(var S=g(E),C=S.next();!C.done;C=S.next()){var b=C.value;if(f[b].length){var T=f[b].length===1?o.annotationLabels[b].singular:o.annotationLabels[b].plural;x.push("".concat(f[b].length," ").concat(T))}}}catch(R){y={error:R}}finally{try{C&&!C.done&&(w=S.return)&&w.call(S)}finally{if(y)throw y.error}}return x.join(", ")},o}(p);r.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,d){var h=t("../lib/event"),g=t("../lib/useragent"),v=function(){function u(p,s){this.speed,this.wheelX,this.wheelY,this.domEvent=p,this.editor=s,this.x=this.clientX=p.clientX,this.y=this.clientY=p.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return u.prototype.stopPropagation=function(){h.stopPropagation(this.domEvent),this.propagationStopped=!0},u.prototype.preventDefault=function(){h.preventDefault(this.domEvent),this.defaultPrevented=!0},u.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},u.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},u.prototype.getGutterRow=function(){var p=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(p,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},u.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var p=this.editor,s=p.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},u.prototype.getButton=function(){return h.getButton(this.domEvent)},u.prototype.getShiftKey=function(){return this.domEvent.shiftKey},u.prototype.getAccelKey=function(){return g.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},u}();r.MouseEvent=v}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,r,d){var h=t("../lib/dom"),g=t("../lib/event"),v=t("../lib/useragent"),u=200,p=200,s=5;function l(c){var o=c.editor,f=h.createElement("div");f.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",f.textContent=" ";var y=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];y.forEach(function(G){c[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(c));var w=o.container,x,E,S,C,b,T,R=0,L,I,N,k,A;this.onDragStart=function(G){if(this.cancelDrag||!w.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}b=o.getSelectionRange();var re=G.dataTransfer;re.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(f),re.setDragImage&&re.setDragImage(f,0,0),setTimeout(function(){o.container.removeChild(f)}),re.clearData(),re.setData("Text",o.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(G){if(w.draggable=!1,I=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!L&&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,S=G.clientY,x||F(),R++,G.dataTransfer.dropEffect=L=X(G),g.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return E=G.clientX,S=G.clientY,x||(F(),R++),z!==null&&(z=null),G.dataTransfer.dropEffect=L=X(G),g.preventDefault(G)},this.onDragLeave=function(G){if(R--,R<=0&&x)return H(),L=null,g.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(I)switch(L){case"move":b.contains(T.row,T.column)?b={start:T,end:T}:b=o.moveText(b,T);break;case"copy":b=o.moveText(b,T,!0);break}else{var re=Z.getData("Text");b={start:T,end:o.session.insert(T,re)},o.focus(),L=null}return H(),g.preventDefault(G)}},g.addListener(w,"dragstart",this.onDragStart.bind(c),o),g.addListener(w,"dragend",this.onDragEnd.bind(c),o),g.addListener(w,"dragenter",this.onDragEnter.bind(c),o),g.addListener(w,"dragover",this.onDragOver.bind(c),o),g.addListener(w,"dragleave",this.onDragLeave.bind(c),o),g.addListener(w,"drop",this.onDrop.bind(c),o);function _(G,Z){var re=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!k||J||ae)o.moveCursorToPosition(G),k=re,A={x:E,y:S};else{var me=a(A.x,A.y,E,S);me>s?k=null:re-k>=p&&(o.renderer.scrollCursorIntoView(),k=null)}}function M(G,Z){var re=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),ve={x:{left:E-me.left,right:me.right-E},y:{top:S-me.top,bottom:me.bottom-S}},ge=Math.min(ve.x.left,ve.x.right),Se=Math.min(ve.y.top,ve.y.bottom),lt={row:G.row,column:G.column};ge/ae<=2&&(lt.column+=ve.x.left<ve.x.right?-3:2),Se/J<=1&&(lt.row+=ve.y.top<ve.y.bottom?-1:1);var jt=G.row!=lt.row,gt=G.column!=lt.column,yt=!Z||G.row!=Z.row;jt||gt&&!yt?N?re-N>=u&&o.renderer.scrollCursorIntoView(lt):N=re:N=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(E,S),_(T,G),M(T,G)}function F(){b=o.selection.toOrientedRange(),x=o.session.addMarker(b,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(C),O(),C=setInterval(O,20),R=0,g.addListener(document,"mousemove",V)}function H(){clearInterval(C),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(b),o.isFocused()&&!I&&o.$resetCursorStyle(),b=null,T=null,R=0,N=null,k=null,g.removeListener(document,"mousemove",V)}var z=null;function V(){z==null&&(z=setTimeout(function(){z!=null&&x&&H()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(re){return re=="text/plain"||re=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],re=["move","copymove","linkmove","all","uninitialized"],J=v.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":re.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 f=v.isWin?"default":"move";c.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(c){var o=this.editor.container;if(v.isIE&&this.state=="dragReady"){var f=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&o.dragDrop()}if(this.state==="dragWait"){var f=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var o=this.editor,f=c.inSelection(),y=c.getButton(),w=c.domEvent.detail||1;if(w===1&&y===0&&f){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(v.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,f,y){return Math.sqrt(Math.pow(f-c,2)+Math.pow(y-o,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,r,d){var h=t("./mouse_event").MouseEvent,g=t("../lib/event"),v=t("../lib/dom");r.addTouchListeners=function(u,p){var s="scroll",l,a,c,o,f,y,w=0,x,E=0,S=0,C=0,b,T;function R(){var _=window.navigator&&window.navigator.clipboard,M=!1,O=function(){var z=p.getCopyText(),V=p.session.getUndoManager().hasUndo();T.replaceChild(v.buildDom(M?["span",!z&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],z&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],z&&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(z){return p.commands.canExecute(z,p)},H=function(z){var V=z.target.getAttribute("action");if(V=="more"||!M)return M=!M,O();V=="paste"?_.readText().then(function(q){p.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(_?_.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(V)),T.firstChild.style.display="none",M=!1,V!="openCommandPalette"&&p.focus()};T=v.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(z){s="menu",z.stopPropagation(),z.preventDefault(),p.textInput.focus()},ontouchend:function(z){z.stopPropagation(),z.preventDefault(),H(z)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function L(){if(!p.getOption("enableMobileMenu")){T&&I();return}T||R();var _=p.selection.cursor,M=p.renderer.textToScreenCoordinates(_.row,_.column),O=p.renderer.textToScreenCoordinates(0,0).pageX,F=p.renderer.scrollLeft,H=p.container.getBoundingClientRect();T.style.top=M.pageY-H.top-3+"px",M.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",p.on("input",I)}function I(_){T&&(T.style.display="none"),p.off("input",I)}function N(){f=null,clearTimeout(f);var _=p.selection.getRange(),M=_.contains(x.row,x.column);(_.isEmpty()||!M)&&(p.selection.moveToPosition(x),p.selection.selectWord()),s="wait",L()}function k(){f=null,clearTimeout(f),p.selection.moveToPosition(x);var _=E>=2?p.selection.getLineRange(x.row):p.session.getBracketRange(x);_&&!_.isEmpty()?p.selection.setRange(_):p.selection.selectWord(),s="wait"}g.addListener(u,"contextmenu",function(_){if(b){var M=p.textInput.getElement();M.focus()}},p),g.addListener(u,"touchstart",function(_){var M=_.touches;if(f||M.length>1){clearTimeout(f),f=null,c=-1,s="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var O=p.renderer.layerConfig.lineHeight,F=p.renderer.layerConfig.lineHeight,H=_.timeStamp;o=H;var z=M[0],V=z.clientX,q=z.clientY;Math.abs(l-V)+Math.abs(a-q)>O&&(c=-1),l=_.clientX=V,a=_.clientY=q,S=C=0;var X=new h(_,p);if(x=X.getDocumentPosition(),H-c<500&&M.length==1&&!w)E++,_.preventDefault(),_.button=0,k();else{E=0;var G=p.selection.cursor,Z=p.selection.isEmpty()?G:p.selection.anchor,re=p.renderer.$cursorLayer.getPixelPosition(G,!0),J=p.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=p.renderer.scroller.getBoundingClientRect(),me=p.renderer.layerConfig.offset,ve=p.renderer.scrollLeft,ge=function(jt,gt){return jt=jt/F,gt=gt/O-.75,jt*jt+gt*gt};if(_.clientX<ae.left){s="zoom";return}var Se=ge(_.clientX-ae.left-re.left+ve,_.clientY-ae.top-re.top+me),lt=ge(_.clientX-ae.left-J.left+ve,_.clientY-ae.top-J.top+me);Se<3.5&<<3.5&&(s=Se>lt?"cursor":"anchor"),lt<3.5?s="anchor":Se<3.5?s="cursor":s="scroll",f=setTimeout(N,450)}c=H},p),g.addListener(u,"touchend",function(_){b=p.$mouseHandler.isMousePressed=!1,y&&clearInterval(y),s=="zoom"?(s="",w=0):f?(p.selection.moveToPosition(x),w=0,L()):s=="scroll"?(A(),I()):L(),clearTimeout(f),f=null},p),g.addListener(u,"touchmove",function(_){f&&(clearTimeout(f),f=null);var M=_.touches;if(!(M.length>1||s=="zoom")){var O=M[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 z=_.timeStamp,V=z-o;if(o=z,s=="scroll"){var q=new h(_,p);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&&(S=F/V,C=H/V),p._emit("mousewheel",q),q.propagationStopped||(S=C=0)}else{var X=new h(_,p),G=X.getDocumentPosition();s=="cursor"?p.selection.moveCursorToPosition(G):s=="anchor"&&p.selection.setSelectionAnchor(G.row,G.column),p.renderer.scrollCursorIntoView(G),_.preventDefault()}}},p);function A(){w+=60,y=setInterval(function(){w--<=0&&(clearInterval(y),y=null),Math.abs(S)<.01&&(S=0),Math.abs(C)<.01&&(C=0),w<20&&(S=.9*S),w<20&&(C=.9*C);var _=p.session.getScrollTop();p.renderer.scrollBy(10*S,10*C),_==p.session.getScrollTop()&&(w=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,r,d){var h=t("../lib/event"),g=t("../lib/useragent"),v=t("./default_handlers").DefaultHandlers,u=t("./default_gutter_handler").GutterHandler,p=t("./mouse_event").MouseEvent,s=t("./dragdrop_handler").DragdropHandler,l=t("./touch_handler").addTouchListeners,a=t("../config"),c=function(){function o(f){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var y=this;this.editor=f,new v(this),new u(this),new s(this);var w=function(S){var C=!document.hasFocus||!document.hasFocus()||!f.isFocused()&&document.activeElement==(f.textInput&&f.textInput.getElement());C&&window.focus(),f.focus(),setTimeout(function(){f.isFocused()||f.focus()})},x=f.renderer.getMouseEventTarget();h.addListener(x,"click",this.onMouseEvent.bind(this,"click"),f),h.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),f),h.addMultiMouseDownListener([x,f.renderer.scrollBarV&&f.renderer.scrollBarV.inner,f.renderer.scrollBarH&&f.renderer.scrollBarH.inner,f.textInput&&f.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",f),h.addMouseWheelListener(f.container,this.onMouseWheel.bind(this,"mousewheel"),f),l(f.container,f);var E=f.renderer.$gutter;h.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),f),h.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),f),h.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),f),h.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),f),h.addListener(x,"mousedown",w,f),h.addListener(E,"mousedown",w,f),g.isIE&&f.renderer.scrollBarV&&(h.addListener(f.renderer.scrollBarV.element,"mousedown",w,f),h.addListener(f.renderer.scrollBarH.element,"mousedown",w,f)),f.on("mousemove",function(S){if(!(y.state||y.$dragDelay||!y.$dragEnabled)){var C=f.renderer.screenToTextCoordinates(S.x,S.y),b=f.session.selection.getRange(),T=f.renderer;!b.isEmpty()&&b.insideStart(C.row,C.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},f)}return o.prototype.onMouseEvent=function(f,y){this.editor.session&&this.editor._emit(f,new p(y,this.editor))},o.prototype.onMouseMove=function(f,y){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!w||!w.length||this.editor._emit(f,new p(y,this.editor))},o.prototype.onMouseWheel=function(f,y){var w=new p(y,this.editor);w.speed=this.$scrollSpeed*2,w.wheelX=y.wheelX,w.wheelY=y.wheelY,this.editor._emit(f,w)},o.prototype.setState=function(f){this.state=f},o.prototype.captureMouse=function(f,y){this.x=f.x,this.y=f.y,this.isMousePressed=!0;var w=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var E=this,S=function(L){if(L){if(g.isWebKit&&!L.which&&E.releaseMouse)return E.releaseMouse();E.x=L.clientX,E.y=L.clientY,y&&y(L),E.mouseEvent=new p(L,E.editor),E.$mouseMoved=!0}},C=function(L){w.off("beforeEndOperation",T),clearInterval(R),w.session&&b(),E[E.state+"End"]&&E[E.state+"End"](L),E.state="",E.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,L&&E.onMouseEvent("mouseup",L),w.endOperation()},b=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(g.isOldIE&&f.domEvent.type=="dblclick")return setTimeout(function(){C(f)});var T=function(L){E.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};w.on("beforeEndOperation",T),w.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=S,E.releaseMouse=h.capture(this.editor.container,S,C);var R=setInterval(b,20)},o.prototype.cancelContextMenu=function(){var f=(function(y){y&&y.domEvent&&y.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",f),y&&y.domEvent&&h.stopEvent(y.domEvent))}).bind(this);setTimeout(f,10),this.editor.on("nativecontextmenu",f)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();c.prototype.releaseMouse=null,a.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:g.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,r,d){var h=t("../lib/dom"),g=function(){function v(u){u.on("click",function(p){var s=p.getDocumentPosition(),l=u.session,a=l.getFoldAt(s.row,s.column,1);a&&(p.getAccelKey()?l.removeFold(a):l.expandFold(a),p.stop());var c=p.domEvent&&p.domEvent.target;c&&h.hasCssClass(c,"ace_inline_button")&&h.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),u.renderer.scrollCursorIntoView())}),u.on("gutterclick",function(p){var s=u.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var l=p.getDocumentPosition().row,a=u.session;a.foldWidgets&&a.foldWidgets[l]&&u.session.onFoldWidgetClick(l,p),u.isFocused()||u.focus(),p.stop()}}),u.on("gutterdblclick",function(p){var s=u.renderer.$gutterLayer.getRegion(p);if(s=="foldWidgets"){var l=p.getDocumentPosition().row,a=u.session,c=a.getParentFoldRangeData(l,!0),o=c.range||c.firstRange;if(o){l=o.start.row;var f=a.getFoldAt(l,a.getLine(l).length,1);f?a.removeFold(f):(a.addFold("...",o),u.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}p.stop()}})}return v}();r.FoldHandler=g}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,r,d){var h=t("../lib/keys"),g=t("../lib/event"),v=function(){function u(p){this.$editor=p,this.$data={editor:p},this.$handlers=[],this.setDefaultHandler(p.commands)}return u.prototype.setDefaultHandler=function(p){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=p,this.addKeyboardHandler(p,0)},u.prototype.setKeyboardHandler=function(p){var s=this.$handlers;if(s[s.length-1]!=p){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(p,1)}},u.prototype.addKeyboardHandler=function(p,s){if(p){typeof p=="function"&&!p.handleKeyboard&&(p.handleKeyboard=p);var l=this.$handlers.indexOf(p);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(p):this.$handlers.splice(s,0,p),l==-1&&p.attach&&p.attach(this.$editor)}},u.prototype.removeKeyboardHandler=function(p){var s=this.$handlers.indexOf(p);return s==-1?!1:(this.$handlers.splice(s,1),p.detach&&p.detach(this.$editor),!0)},u.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},u.prototype.getStatusText=function(){var p=this.$data,s=p.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,p)||""}).filter(Boolean).join(" ")},u.prototype.$callKeyboardHandlers=function(p,s,l,a){for(var c,o=!1,f=this.$editor.commands,y=this.$handlers.length;y--&&(c=this.$handlers[y].handleKeyboard(this.$data,p,s,l,a),!(!(!c||!c.command)&&(c.command=="null"?o=!0:o=f.exec(c.command,this.$editor,c.args,a),o&&a&&p!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&g.stopEvent(a),o))););return!o&&p==-1&&(c={command:"insertstring"},o=f.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),o},u.prototype.onCommandKey=function(p,s,l){var a=h.keyCodeToString(l);return this.$callKeyboardHandlers(s,a,l,p)},u.prototype.onTextInput=function(p){return this.$callKeyboardHandlers(-1,p)},u}();r.KeyBinding=v}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,r,d){var h=0,g=0,v=!1,u=!1,p=!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,f=1,y=2,w=3,x=4,E=5,S=6,C=7,b=8,T=9,R=10,L=11,I=12,N=13,k=14,A=15,_=16,M=17,O=18,F=[O,O,O,O,O,O,O,O,O,S,E,S,b,E,O,O,O,O,O,O,O,O,O,O,O,O,O,O,E,E,E,S,b,x,x,L,L,L,x,x,x,x,x,R,T,R,T,T,y,y,y,y,y,y,y,y,y,y,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,L,L,L,L,x,x,x,x,o,x,x,O,x,x,L,L,y,y,x,o,x,x,x,y,o,x,x,x,x,x],H=[b,b,b,b,b,b,b,b,b,b,b,O,O,O,o,f,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,b,E,N,k,A,_,M,T,L,L,L,L,L,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,b];function z(G,Z,re,J){var ae=h?l:s,me=null,ve=null,ge=null,Se=0,lt=null,jt=null,gt=-1,yt=null,dn=null,Nt=[];if(!J)for(yt=0,J=[];yt<re;yt++)J[yt]=X(G[yt]);for(g=h,v=!1,u=!1,p=!1,dn=0;dn<re;dn++){if(me=Se,Nt[dn]=ve=q(G,J,Nt,dn),Se=ae[me][ve],lt=Se&240,Se&=15,Z[dn]=ge=ae[Se][5],lt>0)if(lt==16){for(yt=gt;yt<dn;yt++)Z[yt]=1;gt=-1}else gt=-1;if(jt=ae[Se][6],jt)gt==-1&&(gt=dn);else if(gt>-1){for(yt=gt;yt<dn;yt++)Z[yt]=ge;gt=-1}J[dn]==E&&(Z[dn]=0),g|=ge}if(p){for(yt=0;yt<re;yt++)if(J[yt]==S){Z[yt]=h;for(var Jt=yt-1;Jt>=0&&J[Jt]==b;Jt--)Z[Jt]=h}}}function V(G,Z,re){if(!(g<G)){if(G==1&&h==c&&!u){re.reverse();return}for(var J=re.length,ae=0,me,ve,ge,Se;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(ve=ae,ge=me-1;ve<ge;ve++,ge--)Se=re[ve],re[ve]=re[ge],re[ge]=Se;ae=me}ae++}}}function q(G,Z,re,J){var ae=Z[J],me,ve,ge,Se;switch(ae){case o:case f:v=!1;case x:case w:return ae;case y:return v?w:y;case C:return v=!0,f;case b:return x;case T:return J<1||J+1>=Z.length||(me=re[J-1])!=y&&me!=w||(ve=Z[J+1])!=y&&ve!=w?x:(v&&(ve=w),ve==me?ve:x);case R:return me=J>0?re[J-1]:E,me==y&&J+1<Z.length&&Z[J+1]==y?y:x;case L:if(J>0&&re[J-1]==y)return y;if(v)return x;for(Se=J+1,ge=Z.length;Se<ge&&Z[Se]==L;)Se++;return Se<ge&&Z[Se]==y?y:x;case I:for(ge=Z.length,Se=J+1;Se<ge&&Z[Se]==I;)Se++;if(Se<ge){var lt=G[J],jt=lt>=1425&<<=2303||lt==64286;if(me=Z[Se],jt&&(me==f||me==C))return f}return J<1||(me=Z[J-1])==E?x:re[J-1];case E:return v=!1,u=!0,h;case S:return p=!0,x;case N:case k:case _:case M:case A:v=!1;case O:return x}}function X(G){var Z=G.charCodeAt(0),re=Z>>8;return re==0?Z>191?o:F[Z]:re==5?/[\u0591-\u05f4]/.test(G)?f:o:re==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?I:/[\u0660-\u0669\u066b-\u066c]/.test(G)?w:Z==1642?L:/[\u06f0-\u06f9]/.test(G)?y:C:re==32&&Z<=8287?H[Z&255]:re==254&&Z>=65136?C:x}r.L=o,r.R=f,r.EN=y,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(G,Z,re){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),ve=[];h=re?c:a,z(J,ve,J.length,Z);for(var ge=0;ge<ae.length;ae[ge]=ge,ge++);V(2,ve,ae),V(1,ve,ae);for(var ge=0;ge<ae.length-1;ge++)Z[ge]===w?ve[ge]=r.AN:ve[ge]===f&&(Z[ge]>C&&Z[ge]<N||Z[ge]===x||Z[ge]===O)?ve[ge]=r.ON_R:ge>0&&J[ge-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[ge])&&(ve[ge-1]=ve[ge]=r.R_H,ge++);J[J.length-1]===r.DOT&&(ve[J.length-1]=r.B),J[0]===""&&(ve[0]=r.RLE);for(var ge=0;ge<ae.length;ge++)me[ge]=ve[ae[ge]];return{logicalFromVisual:ae,bidiLevels:me}},r.hasBidiCharacters=function(G,Z){for(var re=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!re&&(Z[J]==f||Z[J]==C||Z[J]==w)&&(re=!0);return re},r.getVisualFromLogicalIdx=function(G,Z){for(var re=0;re<Z.logicalFromVisual.length;re++)if(Z.logicalFromVisual[re]==G)return re;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(t,r,d){var h=t("./lib/bidiutil"),g=t("./lib/lang"),v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,u=function(){function p(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=v.test(s.getValue())}return p.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},p.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&v.test(s.lines.join(`
|
179
|
-
`))&&(this.seenBidi=!0,this.currentRow=null)},p.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},p.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},p.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 f=this.session,y=0,w;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,E){return x===" "||f.isFullWidth(x.charCodeAt(0))?(w=x===" "?f.getScreenTabSize(E+y):2,y+=w-1,g.stringRepeat(h.DOT,w)):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)},p.prototype.updateBidiMap=function(){var s=[];h.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=h.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},p.prototype.markAsDirty=function(){this.currentRow=null},p.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}},p.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},p.prototype.setEolChar=function(s){this.EOL=s},p.prototype.setContentWidth=function(s){this.contentWidth=s},p.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},p.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)},p.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,f=0;!this.session.getOverwrite()&&s<=l&&o[c]%2!==0&&c++;for(var y=0;y<c;y++)f+=this.charWidths[o[y]];return!this.session.getOverwrite()&&s>l&&o[c]%2===0&&(f+=this.charWidths[o[c]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},p.prototype.getSelections=function(s,l){var a=this.bidiMap,c=a.bidiLevels,o,f=[],y=0,w=Math.min(s,l)-this.wrapIndent,x=Math.max(s,l)-this.wrapIndent,E=!1,S=!1,C=0;this.wrapIndent&&(y+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,T=0;T<c.length;T++)b=a.logicalFromVisual[T],o=c[T],E=b>=w&&b<x,E&&!S?C=y:!E&&S&&f.push({left:C,width:y-C}),y+=this.charWidths[o],S=E;if(E&&T===c.length&&f.push({left:C,width:y-C}),this.isRtlDir)for(var R=0;R<f.length;R++)f[R].left+=this.rtlLineOffset;return f},p.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var l=0,a=Math.max(a,0),c=0,o=0,f=this.bidiMap.bidiLevels,y=this.charWidths[f[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>c+y/2;){if(c+=y,o===f.length-1){y=0;break}y=this.charWidths[f[++o]]}return o>0&&f[o-1]%2!==0&&f[o]%2===0?(a<c&&o--,l=this.bidiMap.logicalFromVisual[o]):o>0&&f[o-1]%2===0&&f[o]%2!==0?l=1+(a>c?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===f.length-1&&y===0&&f[o-1]%2===0||!this.isRtlDir&&o===0&&f[o]%2!==0?l=1+this.bidiMap.logicalFromVisual[o]:(o>0&&f[o-1]%2!==0&&y!==0&&o--,l=this.bidiMap.logicalFromVisual[o]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},p}();r.BidiHandler=u}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,r,d){var h=t("./lib/oop"),g=t("./lib/lang"),v=t("./lib/event_emitter").EventEmitter,u=t("./range").Range,p=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?u.fromPoints(a,a):this.isBackwards()?u.fromPoints(a,l):u.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 f=this.$isEmpty,y=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,a),this.cursor.setPosition(c,o),this.$isEmpty=!u.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||y)&&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,f=this.session.getFoldLine(c);return f?(c=f.start.row,o=f.end.row):o=c,a===!0?new u(c,0,o,this.session.getLine(o).length):new u(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,f=l.column+a;return c<0&&(o=l.column-a,f=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(o,f).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),f=this.session.getDisplayLine(l,null,o.row,o.column),y=f.match(/^\s*/);y[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=y[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 f=this.session.getFoldAt(l,a,1);if(f){this.moveCursorTo(f.end.row,f.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 f=g.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(f)&&(a-=this.session.nonTokenRe.lastIndex,f=f.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(f)&&(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/,f=this.session.tokenRe;if(f.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(f.lastIndex=0;(c=l[a])&&!f.test(c);)if(f.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 f.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),f=this.session.getFoldAt(l,a,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(a==c.length){var y=this.doc.getLength();do l++,o=this.doc.getLine(l);while(l<y&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var w=this.$shortWordEndIndex(o);this.moveCursorTo(l,a+w)},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 f=g.stringReverse(o),y=this.$shortWordEndIndex(f);return this.moveCursorTo(l,a-y)},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 f=this.session.lineWidgets[this.lead.row];l<0?l-=f.rowsAbove||0:l>0&&(l+=f.rowCount-(f.rowsAbove||0))}var y=this.session.screenToDocumentPosition(c.row+l,c.column,o);l!==0&&a===0&&y.row===this.lead.row&&(y.column,this.lead.column),this.moveCursorTo(y.row,y.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 f=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(f.charAt(a))&&f.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 u.fromPoints(a,c)}catch{return u.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=u.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}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,h.implement(p.prototype,v),r.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,r,d){var h=t("./lib/report_error").reportError,g=2e3,v=function(){function u(p){this.splitRegex,this.states=p,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"},f="g",y=[],w=0;w<l.length;w++){var x=l[w];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&f.indexOf("i")===-1&&(f+="i"),x.unicode&&f.indexOf("u")===-1&&(f+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var E=x.regex,S=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||S==1?x.token=x.token[0]:S-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:S-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(S>1?x.onMatch=this.$applyToken:x.onMatch=x.token),S>1&&(/\\\d/.test(x.regex)?E=x.regex.replace(/\\([0-9]+)/g,function(C,b){return"\\"+(parseInt(b,10)+c+1)}):(S=1,E=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&y.push(x)),o[c]=w,c+=S,a.push(E),x.onMatch||(x.onMatch=null)}}a.length||(o[0]=0,a.push("$")),y.forEach(function(C){C.splitRegex=this.createSplitterRegexp(C.regex,f)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",f)}}return u.prototype.$setMaxTokenCount=function(p){g=p|0},u.prototype.$applyToken=function(p){var s=this.splitRegex.exec(p).slice(1),l=this.token.apply(this,s);if(typeof l=="string")return[{type:l,value:p}];for(var a=[],c=0,o=l.length;c<o;c++)s[c]&&(a[a.length]={type:l[c],value:s[c]});return a},u.prototype.$arrayTokens=function(p){if(!p)return[];var s=this.splitRegex.exec(p);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},u.prototype.removeCapturingGroups=function(p){var s=p.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,a){return a?"(?:":l});return s},u.prototype.createSplitterRegexp=function(p,s){if(p.indexOf("(?=")!=-1){var l=0,a=!1,c={};p.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,f,y,w,x,E){return a?a=x!="]":x?a=!0:w?(l==c.stack&&(c.end=E+1,c.stack=-1),l--):y&&(l++,y.length!=1&&(c.stack=l,c.start=E)),o}),c.end!=null&&/^\)*$/.test(p.substr(c.end))&&(p=p.substring(0,c.start)+p.substr(c.end))}return p.charAt(0)!="^"&&(p="^"+p),p.charAt(p.length-1)!="$"&&(p+="$"),new RegExp(p,(s||"").replace("g",""))},u.prototype.getLineTokens=function(p,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],f=this.regExps[a];f.lastIndex=0;for(var y,w=[],x=0,E=0,S={type:null,value:""};y=f.exec(p);){var C=o.defaultToken,b=null,T=y[0],R=f.lastIndex;if(R-T.length>x){var L=p.substring(x,R-T.length);S.type==C?S.value+=L:(S.type&&w.push(S),S={type:C,value:L})}for(var I=0;I<y.length-2;I++)if(y[I+1]!==void 0){b=c[o[I]],b.onMatch?C=b.onMatch(T,a,l,p):C=b.token,b.next&&(typeof b.next=="string"?a=b.next:a=b.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=R,f=this.regExps[a],f.lastIndex=R),b.consumeLineEnd&&(x=R);break}if(T){if(typeof C=="string")(!b||b.merge!==!1)&&S.type===C?S.value+=T:(S.type&&w.push(S),S={type:C,value:T});else if(C){S.type&&w.push(S),S={type:null,value:""};for(var I=0;I<C.length;I++)w.push(C[I])}}if(x==p.length)break;if(x=R,E++>g){for(E>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:p});x<p.length;)S.type&&w.push(S),S={value:p.substring(x,x+=500),type:"overflow"};a="start",l=[];break}}return S.type&&w.push(S),l.length>1&&l[0]!==a&&l.unshift("#tmp",a),{tokens:w,state:l.length?l:a}},u}();v.prototype.reportError=h,r.Tokenizer=v}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,r,d){var h=t("../lib/deep_copy").deepCopy,g;g=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,s){if(!s){for(var l in p)this.$rules[l]=p[l];return}for(var l in p){for(var a=p[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(p,s,l,a,c){var o=typeof p=="function"?new p().getRules():p;if(a)for(var f=0;f<a.length;f++)a[f]=s+a[f];else{a=[];for(var y in o)a.push(s+y)}if(this.addRules(o,s),l)for(var w=Array.prototype[c?"push":"unshift"],f=0;f<a.length;f++)w.apply(this.$rules[a[f]],h(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var v=function(p,s){return(p!="start"||s.length)&&s.unshift(this.nextState,p),this.nextState},u=function(p,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var p=0,s=this.$rules;function l(a){var c=s[a];c.processed=!0;for(var o=0;o<c.length;o++){var f=c[o],y=null;Array.isArray(f)&&(y=f,f={}),!f.regex&&f.start&&(f.regex=f.start,f.next||(f.next=[]),f.next.push({defaultToken:f.token},{token:f.token+".end",regex:f.end||f.start,next:"pop"}),f.token=f.token+".start",f.push=!0);var w=f.next||f.push;if(w&&Array.isArray(w)){var x=f.stateName;x||(x=f.token,typeof x!="string"&&(x=x[0]||""),s[x]&&(x+=p++)),s[x]=w,f.next=x,l(x)}else w=="pop"&&(f.next=u);if(f.push&&(f.nextState=f.next||f.push,f.next=v,delete f.push),f.rules)for(var E in f.rules)s[E]?s[E].push&&s[E].push.apply(s[E],f.rules[E]):s[E]=f.rules[E];var S=typeof f=="string"?f:f.include;if(S&&(S==="$self"&&(S="start"),Array.isArray(S)?y=S.map(function(b){return s[b]}):y=s[S]),y){var C=[o,1].concat(y);f.noEscape&&(C=C.filter(function(b){return!b.next})),c.splice.apply(c,C),o--}f.keywordMap&&(f.token=this.createKeywordMapper(f.keywordMap,f.defaultToken||"text",f.caseInsensitive),delete f.defaultToken)}}Object.keys(s).forEach(l,this)},this.createKeywordMapper=function(p,s,l,a){var c=Object.create(null);return this.$keywordList=[],Object.keys(p).forEach(function(o){for(var f=p[o],y=f.split(a||"|"),w=y.length;w--;){var x=y[w];this.$keywordList.push(x),l&&(x=x.toLowerCase()),c[x]=o}},this),p=null,l?function(o){return c[o.toLowerCase()]||s}:function(o){return c[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(g.prototype),r.TextHighlightRules=g}),ace.define("ace/mode/behaviour",["require","exports","module"],function(t,r,d){var h;h=function(){this.$behaviours={}},(function(){this.add=function(g,v,u){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[g]:this.$behaviours[g]={}}this.$behaviours[g][v]=u},this.addBehaviours=function(g){for(var v in g)for(var u in g[v])this.add(v,u,g[v][u])},this.remove=function(g){this.$behaviours&&this.$behaviours[g]&&delete this.$behaviours[g]},this.inherit=function(g,v){if(typeof g=="function")var u=new g().getBehaviours(v);else var u=g.getBehaviours(v);this.addBehaviours(u)},this.getBehaviours=function(g){if(g){for(var v={},u=0;u<g.length;u++)this.$behaviours[g[u]]&&(v[g[u]]=this.$behaviours[g[u]]);return v}else return this.$behaviours}}).call(h.prototype),r.Behaviour=h}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(t,r,d){var h=t("./range").Range,g=function(){function v(u,p,s){this.$session=u,this.$row=p,this.$rowTokens=u.getTokens(p);var l=u.getTokenAt(p,s);this.$tokenIndex=l?l.index:-1}return v.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]},v.prototype.stepForward=function(){this.$tokenIndex+=1;for(var u;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,u||(u=this.$session.getLength()),this.$row>=u)return this.$row=u-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},v.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},v.prototype.getCurrentTokenRow=function(){return this.$row},v.prototype.getCurrentTokenColumn=function(){var u=this.$rowTokens,p=this.$tokenIndex,s=u[p].start;if(s!==void 0)return s;for(s=0;p>0;)p-=1,s+=u[p].value.length;return s},v.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},v.prototype.getCurrentTokenRange=function(){var u=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new h(this.$row,p,this.$row,p+u.value.length)},v}();r.TokenIterator=g}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,r,d){var h=t("../../lib/oop"),g=t("../behaviour").Behaviour,v=t("../../token_iterator").TokenIterator,u=t("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,a={},c={'"':'"',"'":"'"},o=function(w){var x=-1;if(w.multiSelect&&(x=w.selection.index,a.rangeCount!=w.multiSelect.rangeCount&&(a={rangeCount:w.multiSelect.rangeCount})),a[x])return l=a[x];l=a[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(w,x,E,S){var C=w.end.row-w.start.row;return{text:E+x+S,selection:[0,w.start.column+1,C,w.end.column+(C?0:1)]}},y;y=function(w){w=w||{},this.add("braces","insertion",function(x,E,S,C,b){var T=S.getCursorPosition(),R=C.doc.getLine(T.row);if(b=="{"){o(S);var L=S.getSelectionRange(),I=C.doc.getTextRange(L),N=C.getTokenAt(T.row,T.column);if(I!==""&&I!=="{"&&S.getWrapBehavioursEnabled())return f(L,I,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var k=[/tag\-(?:open|name)/,/attribute\-name/];return k.some(function(z){return z.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[T.column-N.start-1]!=="$"?void 0:(y.recordAutoInsert(S,C,"}"),{text:"{}",selection:[1,1]})}else if(y.isSaneInsertion(S,C))return/[\]\}\)]/.test(R[T.column])||S.inMultiSelectMode||w.braces?(y.recordAutoInsert(S,C,"}"),{text:"{}",selection:[1,1]}):(y.recordMaybeInsert(S,C,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){o(S);var A=R.substring(T.column,T.column+1);if(A=="}"){var _=C.$findOpeningBracket("}",{column:T.column+1,row:T.row});if(_!==null&&y.isAutoInsertedClosing(T,R,b))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
|
180
|
-
`||b==`\r
|
181
|
-
`){o(S);var M="";y.isMaybeInsertedClosing(T,R)&&(M=u.stringRepeat("}",l.maybeInsertedBrackets),y.clearMaybeInsertedClosing());var A=R.substring(T.column,T.column+1);if(A==="}"){var O=C.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(C.getLine(O.row))}else if(M)var F=this.$getIndent(R);else{y.clearMaybeInsertedClosing();return}var H=F+C.getTabString();return{text:`
|
182
|
-
`+H+`
|
183
|
-
`+F+M,selection:[1,H.length,1,H.length]}}else y.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,E,S,C,b){var T=C.doc.getTextRange(b);if(!b.isMultiLine()&&T=="{"){o(S);var R=C.doc.getLine(b.start.row),L=R.substring(b.end.column,b.end.column+1);if(L=="}")return b.end.column++,b;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,E,S,C,b){if(b=="("){o(S);var T=S.getSelectionRange(),R=C.doc.getTextRange(T);if(R!==""&&S.getWrapBehavioursEnabled())return f(T,R,"(",")");if(y.isSaneInsertion(S,C))return y.recordAutoInsert(S,C,")"),{text:"()",selection:[1,1]}}else if(b==")"){o(S);var L=S.getCursorPosition(),I=C.doc.getLine(L.row),N=I.substring(L.column,L.column+1);if(N==")"){var k=C.$findOpeningBracket(")",{column:L.column+1,row:L.row});if(k!==null&&y.isAutoInsertedClosing(L,I,b))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,E,S,C,b){var T=C.doc.getTextRange(b);if(!b.isMultiLine()&&T=="("){o(S);var R=C.doc.getLine(b.start.row),L=R.substring(b.start.column+1,b.start.column+2);if(L==")")return b.end.column++,b}}),this.add("brackets","insertion",function(x,E,S,C,b){if(b=="["){o(S);var T=S.getSelectionRange(),R=C.doc.getTextRange(T);if(R!==""&&S.getWrapBehavioursEnabled())return f(T,R,"[","]");if(y.isSaneInsertion(S,C))return y.recordAutoInsert(S,C,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){o(S);var L=S.getCursorPosition(),I=C.doc.getLine(L.row),N=I.substring(L.column,L.column+1);if(N=="]"){var k=C.$findOpeningBracket("]",{column:L.column+1,row:L.row});if(k!==null&&y.isAutoInsertedClosing(L,I,b))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,E,S,C,b){var T=C.doc.getTextRange(b);if(!b.isMultiLine()&&T=="["){o(S);var R=C.doc.getLine(b.start.row),L=R.substring(b.start.column+1,b.start.column+2);if(L=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(x,E,S,C,b){var T=C.$mode.$quotes||c;if(b.length==1&&T[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;o(S);var R=b,L=S.getSelectionRange(),I=C.doc.getTextRange(L);if(I!==""&&(I.length!=1||!T[I])&&S.getWrapBehavioursEnabled())return f(L,I,R,R);if(!I){var N=S.getCursorPosition(),k=C.doc.getLine(N.row),A=k.substring(N.column-1,N.column),_=k.substring(N.column,N.column+1),M=C.getTokenAt(N.row,N.column),O=C.getTokenAt(N.row,N.column+1);if(A=="\\"&&M&&/escape/.test(M.type))return null;var F=M&&/string|escape/.test(M.type),H=!O||/string|escape/.test(O.type),z;if(_==R)z=F!==H,z&&/string\.end/.test(O.type)&&(z=!1);else{if(F&&!H||F&&H)return null;var V=C.$mode.tokenRe;V.lastIndex=0;var q=V.test(A);V.lastIndex=0;var X=V.test(_),G=C.$mode.$pairQuotesAfter,Z=G&&G[R]&&G[R].test(A);if(!Z&&q||X||_&&!/[\s;,.})\]\\]/.test(_))return null;var re=k[N.column-2];if(A==R&&(re==R||V.test(re)))return null;z=!0}return{text:z?R+R:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,E,S,C,b){var T=C.$mode.$quotes||c,R=C.doc.getTextRange(b);if(!b.isMultiLine()&&T.hasOwnProperty(R)){o(S);var L=C.doc.getLine(b.start.row),I=L.substring(b.start.column+1,b.start.column+2);if(I==R)return b.end.column++,b}}),w.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,E,S,C,b){if(x==="doc-start"&&(b===`
|
184
|
-
`||b===`\r
|
185
|
-
`)&&S.selection.isEmpty()){var T=S.getCursorPosition();if(T.column===0)return;for(var R=C.doc.getLine(T.row),L=C.doc.getLine(T.row+1),I=C.getTokens(T.row),N=0,k=0;k<I.length;k++){N+=I[k].value.length;var A=I[k];if(N>=T.column){if(N===T.column){if(!/\.doc/.test(A.type))return;if(/\*\//.test(A.value)){var _=I[k+1];if(!_||!/\.doc/.test(_.type))return}}var M=T.column-(N-A.value.length),O=A.value.indexOf("*/"),F=A.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&M>F&&M<F+3||O!==-1&&F!==-1&&M>=O&&M<=F||!/\.doc/.test(A.type))return;break}}var H=this.$getIndent(R);if(/\s*\*/.test(L))return/^\s*\*/.test(R)?{text:b+H+"* ",selection:[1,2+H.length,1,2+H.length]}:{text:b+H+" * ",selection:[1,3+H.length,1,3+H.length]};if(/\/\*\*/.test(R.substring(0,T.column)))return{text:b+H+" * "+b+" "+H+"*/",selection:[1,4+H.length,1,4+H.length]}}})},y.isSaneInsertion=function(w,x){var E=w.getCursorPosition(),S=new v(x,E.row,E.column);if(!this.$matchTokenType(S.getCurrentToken()||"text",p)){if(/[)}\]]/.test(w.session.getLine(E.row)[E.column]))return!0;var C=new v(x,E.row,E.column+1);if(!this.$matchTokenType(C.getCurrentToken()||"text",p))return!1}return S.stepForward(),S.getCurrentTokenRow()!==E.row||this.$matchTokenType(S.getCurrentToken()||"text",s)},y.$matchTokenType=function(w,x){return x.indexOf(w.type||w)>-1},y.recordAutoInsert=function(w,x,E){var S=w.getCursorPosition(),C=x.doc.getLine(S.row);this.isAutoInsertedClosing(S,C,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=S.row,l.autoInsertedLineEnd=E+C.substr(S.column),l.autoInsertedBrackets++},y.recordMaybeInsert=function(w,x,E){var S=w.getCursorPosition(),C=x.doc.getLine(S.row);this.isMaybeInsertedClosing(S,C)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=S.row,l.maybeInsertedLineStart=C.substr(0,S.column)+E,l.maybeInsertedLineEnd=C.substr(S.column),l.maybeInsertedBrackets++},y.isAutoInsertedClosing=function(w,x,E){return l.autoInsertedBrackets>0&&w.row===l.autoInsertedRow&&E===l.autoInsertedLineEnd[0]&&x.substr(w.column)===l.autoInsertedLineEnd},y.isMaybeInsertedClosing=function(w,x){return l.maybeInsertedBrackets>0&&w.row===l.maybeInsertedRow&&x.substr(w.column)===l.maybeInsertedLineEnd&&x.substr(0,w.column)==l.maybeInsertedLineStart},y.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},y.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},h.inherits(y,g),r.CstyleBehaviour=y}),ace.define("ace/unicode",["require","exports","module"],function(t,r,d){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],g=0,v=[],u=0;u<h.length;u+=2)v.push(g+=h[u]),h[u+1]&&v.push(45,g+=h[u+1]);r.wordChars=String.fromCharCode.apply(null,v)}),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,r,d){var h=t("../config"),g=t("../tokenizer").Tokenizer,v=t("./text_highlight_rules").TextHighlightRules,u=t("./behaviour/cstyle").CstyleBehaviour,p=t("../unicode"),s=t("../lib/lang"),l=t("../token_iterator").TokenIterator,a=t("../range").Range,c;c=function(){this.HighlightRules=v},(function(){this.$defaultBehaviour=new u,this.tokenRe=new RegExp("^["+p.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+p.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new g(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,f,y,w){var x=f.doc,E=!0,S=!0,C=1/0,b=f.getTabSize(),T=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var R=this.lineCommentStart.map(s.escapeRegExp).join("|"),L=this.lineCommentStart[0];else var R=s.escapeRegExp(this.lineCommentStart),L=this.lineCommentStart;R=new RegExp("^(\\s*)(?:"+R+") ?"),T=f.getUseSoftTabs();var I=function(z,V){var q=z.match(R);if(q){var X=q[1].length,G=q[0].length;!_(z,X,G)&&q[0][G-1]==" "&&G--,x.removeInLine(V,X,G)}},N=L+" ",k=function(z,V){(!E||/\S/.test(z))&&(_(z,C,C)?x.insertInLine({row:V,column:C},N):x.insertInLine({row:V,column:C},L))},A=function(z,V){return R.test(z)},_=function(z,V,q){for(var X=0;V--&&z.charAt(V)==" ";)X++;if(X%b!=0)return!1;for(var X=0;z.charAt(q++)==" ";)X++;return b>2?X%b!=b-1:X%b==0}}else{if(!this.blockComment)return!1;var L=this.blockComment.start,M=this.blockComment.end,R=new RegExp("^(\\s*)(?:"+s.escapeRegExp(L)+")"),O=new RegExp("(?:"+s.escapeRegExp(M)+")\\s*$"),k=function(Z,re){A(Z,re)||(!E||/\S/.test(Z))&&(x.insertInLine({row:re,column:Z.length},M),x.insertInLine({row:re,column:C},L))},I=function(Z,re){var J;(J=Z.match(O))&&x.removeInLine(re,Z.length-J[0].length,Z.length),(J=Z.match(R))&&x.removeInLine(re,J[1].length,J[0].length)},A=function(Z,re){if(R.test(Z))return!0;for(var J=f.getTokens(re),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(z){for(var V=y;V<=w;V++)z(x.getLine(V),V)}var H=1/0;F(function(z,V){var q=z.search(/\S/);q!==-1?(q<C&&(C=q),S&&!A(z,V)&&(S=!1)):H>z.length&&(H=z.length)}),C==1/0&&(C=H,E=!1,S=!1),T&&C%b!=0&&(C=Math.floor(C/b)*b),F(S?I:k)},this.toggleBlockComment=function(o,f,y,w){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var E=new l(f,w.row,w.column),S=E.getCurrentToken();f.selection;var C=f.selection.toOrientedRange(),b,T;if(S&&/comment/.test(S.type)){for(var R,L;S&&/comment/.test(S.type);){var I=S.value.indexOf(x.start);if(I!=-1){var N=E.getCurrentTokenRow(),k=E.getCurrentTokenColumn()+I;R=new a(N,k,N,k+x.start.length);break}S=E.stepBackward()}for(var E=new l(f,w.row,w.column),S=E.getCurrentToken();S&&/comment/.test(S.type);){var I=S.value.indexOf(x.end);if(I!=-1){var N=E.getCurrentTokenRow(),k=E.getCurrentTokenColumn()+I;L=new a(N,k,N,k+x.end.length);break}S=E.stepForward()}L&&f.remove(L),R&&(f.remove(R),b=R.start.row,T=-x.start.length)}else T=x.start.length,b=y.start.row,f.insert(y.end,x.end),f.insert(y.start,x.start);C.start.row==b&&(C.start.column+=T),C.end.row==b&&(C.end.column+=T),f.selection.fromOrientedRange(C)}},this.getNextLineIndent=function(o,f,y){return this.$getIndent(f)},this.checkOutdent=function(o,f,y){return!1},this.autoOutdent=function(o,f,y){},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 f in o)if(o[f]){var y=o[f],w=y.prototype.$id,x=h.$modes[w];x||(h.$modes[w]=x=new y),h.$modes[f]||(h.$modes[f]=x),this.$embeds.push(f),this.$modes[f]=x}for(var E=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],S=function(T){(function(R){var L=E[T],I=R[L];R[E[T]]=function(){return this.$delegator(L,arguments,I)}})(C)},C=this,f=0;f<E.length;f++)S(f)},this.$delegator=function(o,f,y){var w=f[0]||"start";if(typeof w!="string"){if(Array.isArray(w[2])){var x=w[2][w[2].length-1],E=this.$modes[x];if(E)return E[o].apply(E,[w[1]].concat([].slice.call(f,1)))}w=w[0]||"start"}for(var S=0;S<this.$embeds.length;S++)if(this.$modes[this.$embeds[S]]){var C=w.split(this.$embeds[S]);if(!C[0]&&C[1]){f[0]=C[1];var E=this.$modes[this.$embeds[S]];return E[o].apply(E,f)}}var b=y.apply(this,f);return y?b:void 0},this.transformAction=function(o,f,y,w,x){if(this.$behaviour){var E=this.$behaviour.getBehaviours();for(var S in E)if(E[S][f]){var C=E[S][f].apply(this,arguments);if(C)return C}}},this.getKeywords=function(o){if(!this.completionKeywords){var f=this.$tokenizer.rules,y=[];for(var w in f)for(var x=f[w],E=0,S=x.length;E<S;E++)if(typeof x[E].token=="string")/keyword|support|storage/.test(x[E].token)&&y.push(x[E].regex);else if(typeof x[E].token=="object"){for(var C=0,b=x[E].token.length;C<b;C++)if(/keyword|support|storage/.test(x[E].token[C])){var w=x[E].regex.match(/\(.+?\)/g)[C];y.push(w.substr(1,w.length-2))}}this.completionKeywords=y}return o?y.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,f,y,w){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),r.Mode=c}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(t,r,d){var h=t("./lib/dom"),g=function(){function v(u){this.session=u,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 v.prototype.getRowLength=function(u){var p;return this.lineWidgets?p=this.lineWidgets[u]&&this.lineWidgets[u].rowCount||0:p=0,!this.$useWrapMode||!this.$wrapData[u]?1+p:this.$wrapData[u].length+1+p},v.prototype.$getWidgetScreenLength=function(){var u=0;return this.lineWidgets.forEach(function(p){p&&p.rowCount&&!p.hidden&&(u+=p.rowCount)}),u},v.prototype.$onChangeEditor=function(u){this.attach(u.editor)},v.prototype.attach=function(u){u&&u.widgetManager&&u.widgetManager!=this&&u.widgetManager.detach(),this.editor!=u&&(this.detach(),this.editor=u,u&&(u.widgetManager=this,u.renderer.on("beforeRender",this.measureWidgets),u.renderer.on("afterRender",this.renderWidgets)))},v.prototype.detach=function(u){var p=this.editor;if(p){this.editor=null,p.widgetManager=null,p.renderer.off("beforeRender",this.measureWidgets),p.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))})}},v.prototype.updateOnFold=function(u,p){var s=p.lineWidgets;if(!(!s||!u.action)){for(var l=u.data,a=l.start.row,c=l.end.row,o=u.action=="add",f=a+1;f<c;f++)s[f]&&(s[f].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))}},v.prototype.updateOnChange=function(u){var p=this.session.lineWidgets;if(p){var s=u.start.row,l=u.end.row-s;if(l!==0)if(u.action=="remove"){var a=p.splice(s+1,l);!p[s]&&a[a.length-1]&&(p[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var c=new Array(l);p[s]&&p[s].column!=null&&u.start.column>p[s].column&&s++,c.unshift(s,0),p.splice.apply(p,c),this.$updateRows()}}},v.prototype.$updateRows=function(){var u=this.session.lineWidgets;if(u){var p=!0;u.forEach(function(s,l){if(s)for(p=!1,s.row=l;s.$oldWidget;)s.$oldWidget.row=l,s=s.$oldWidget}),p&&(this.session.lineWidgets=null)}},v.prototype.$registerLineWidget=function(u){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[u.row];return p&&(u.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[u.row]=u,u},v.prototype.addLineWidget=function(u){if(this.$registerLineWidget(u),u.session=this.session,!this.editor)return u;var p=this.editor.renderer;u.html&&!u.el&&(u.el=h.createElement("div"),u.el.innerHTML=u.html),u.text&&!u.el&&(u.el=h.createElement("div"),u.el.textContent=u.text),u.el&&(h.addCssClass(u.el,"ace_lineWidgetContainer"),u.className&&h.addCssClass(u.el,u.className),u.el.style.position="absolute",u.el.style.zIndex="5",p.container.appendChild(u.el),u._inDocument=!0,u.coverGutter||(u.el.style.zIndex="3"),u.pixelHeight==null&&(u.pixelHeight=u.el.offsetHeight)),u.rowCount==null&&(u.rowCount=u.pixelHeight/p.layerConfig.lineHeight);var s=this.session.getFoldAt(u.row,0);if(u.$fold=s,s){var l=this.session.lineWidgets;u.row==s.end.row&&!l[s.start.row]?l[s.start.row]=u:u.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:u.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(u),u},v.prototype.removeLineWidget=function(u){if(u._inDocument=!1,u.session=null,u.el&&u.el.parentNode&&u.el.parentNode.removeChild(u.el),u.editor&&u.editor.destroy)try{u.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[u.row];if(p==u)this.session.lineWidgets[u.row]=u.$oldWidget,u.$oldWidget&&this.onWidgetChanged(u.$oldWidget);else for(;p;){if(p.$oldWidget==u){p.$oldWidget=u.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:u.row}}}),this.$updateRows()},v.prototype.getWidgetsAtRow=function(u){for(var p=this.session.lineWidgets,s=p&&p[u],l=[];s;)l.push(s),s=s.$oldWidget;return l},v.prototype.onWidgetChanged=function(u){this.session._changedWidgets.push(u),this.editor&&this.editor.renderer.updateFull()},v.prototype.measureWidgets=function(u,p){var s=this.session._changedWidgets,l=p.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,p.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 f=o.h/l.lineHeight;o.coverLine&&(f-=this.session.getRowLineCount(o.row),f<0&&(f=0)),o.rowCount!=f&&(o.rowCount=f,o.row<a&&(a=o.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},v.prototype.renderWidgets=function(u,p){var s=p.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,p.$cursorLayer.config=s;for(var o=a;o<=c;o++){var f=l[o];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,p.container.appendChild(f.el));var y=p.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;f.coverLine||(y+=s.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=y-s.offset+"px";var w=f.coverGutter?0:p.gutterWidth;f.fixedWidth||(w-=p.scrollLeft),f.el.style.left=w+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=s.width+2*s.padding+"px"),f.fixedWidth?f.el.style.right=p.scrollBar.getWidth()+"px":f.el.style.right=""}}}},v}();r.LineWidgets=g}),ace.define("ace/apply_delta",["require","exports","module"],function(t,r,d){r.applyDelta=function(h,g,v){var u=g.start.row,p=g.start.column,s=h[u]||"";switch(g.action){case"insert":var l=g.lines;if(l.length===1)h[u]=s.substring(0,p)+g.lines[0]+s.substring(p);else{var a=[u,1].concat(g.lines);h.splice.apply(h,a),h[u]=s.substring(0,p)+h[u],h[u+g.lines.length-1]+=s.substring(p)}break;case"remove":var c=g.end.column,o=g.end.row;u===o?h[u]=s.substring(0,p)+s.substring(c):h.splice(u,o-u+1,s.substring(0,p)+h[o].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,d){var h=t("./lib/oop"),g=t("./lib/event_emitter").EventEmitter,v=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=p(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 f={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:f,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}();v.prototype.$insertRight=!1,h.implement(v.prototype,g);function u(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 p(s,l,a){var c=s.action=="insert",o=(c?1:-1)*(s.end.row-s.start.row),f=(c?1:-1)*(s.end.column-s.start.column),y=s.start,w=c?y:s.end;return u(l,y,a)?{row:l.row,column:l.column}:u(w,l,!a)?{row:l.row+o,column:l.column+(l.row==w.row?f:0)}:{row:y.row,column:y.column}}r.Anchor=v}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(t,r,d){var h=t("./lib/oop"),g=t("./apply_delta").applyDelta,v=t("./lib/event_emitter").EventEmitter,u=t("./range").Range,p=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 u(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 p(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),f=this.pos(a.row,a.column+c.length);return this.applyDelta({start:o,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},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 f=this.getLine(a);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.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),f={row:o.row+c.length-1,column:(c.length==1?o.column:0)+c[c.length-1].length};return this.applyDelta({start:o,end:f,action:"insert",lines:c}),this.clonePos(f)},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 f=this.clippedPos(a,c),y=this.clippedPos(a,o);return this.applyDelta({start:f,end:y,action:"remove",lines:this.getLinesForRange({start:f,end:y})},!0),this.clonePos(f)},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,f=c<this.getLength()-1,y=o?a-1:a,w=o?this.getLine(y).length:0,x=f?c+1:c,E=f?0:this.getLine(x).length,S=new u(y,w,x,E),C=this.$lines.slice(a,c+1);return this.applyDelta({start:S.start,end:S.end,action:"remove",lines:this.getLinesForRange(S)}),C},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 u||(a=u.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]:!u.comparePoints(a.start,a.end))||(o&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(g(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,f=o.length-c+1,y=a.start.row,w=a.start.column,x=0,E=0;x<f;x=E){E+=c-1;var S=o.slice(x,E);S.push(""),this.applyDelta({start:this.pos(y+x,w),end:this.pos(y+E,w=0),action:a.action,lines:S},!0)}a.lines=o.slice(x),a.start.row=y+x,a.start.column=w,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(),f=this.getNewLineCharacter().length,y=c||0,w=o.length;y<w;y++)if(a-=o[y].length+f,a<0)return{row:y,column:a+o[y].length+f};return{row:w-1,column:a+o[w-1].length+f}},l.prototype.positionToIndex=function(a,c){for(var o=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,y=0,w=Math.min(a.row,o.length),x=c||0;x<w;++x)y+=o[x].length+f;return y+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,v),r.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,d){var h=t("./lib/oop"),g=t("./lib/event_emitter").EventEmitter,v=function(){function u(p,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=p;var l=this;this.$worker=function(){if(l.running){for(var a=new Date,c=l.currentLine,o=-1,f=l.doc,y=c;l.lines[c];)c++;var w=f.getLength(),x=0;for(l.running=!1;c<w;){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),y<=o&&l.fireUpdateEvent(y,o)}}}return u.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},u.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},u.prototype.fireUpdateEvent=function(p,s){var l={first:p,last:s};this._signal("update",{data:l})},u.prototype.start=function(p){this.currentLine=Math.min(p||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)},u.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},u.prototype.$updateOnChange=function(p){var s=p.start.row,l=p.end.row-s;if(l===0)this.lines[s]=null;else if(p.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()},u.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},u.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},u.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},u.prototype.$tokenizeRow=function(p){var s=this.doc.getLine(p),l=this.states[p-1],a=this.tokenizer.getLineTokens(s,l,p);return this.states[p]+""!=a.state+""?(this.states[p]=a.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=a.tokens},u.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},u}();h.implement(v.prototype,g),r.BackgroundTokenizer=v}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(t,r,d){var h=t("./lib/lang"),g=t("./range").Range,v=function(){function u(p,s,l){l===void 0&&(l="text"),this.setRegexp(p),this.clazz=s,this.type=l}return u.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},u.prototype.update=function(p,s,l,a){if(this.regExp)for(var c=a.firstRow,o=a.lastRow,f={},y=c;y<=o;y++){var w=this.cache[y];w==null&&(w=h.getMatchOffsets(l.getLine(y),this.regExp),w.length>this.MAX_RANGES&&(w=w.slice(0,this.MAX_RANGES)),w=w.map(function(C){return new g(y,C.offset,y,C.offset+C.length)}),this.cache[y]=w.length?w:"");for(var x=w.length;x--;){var E=w[x].toScreenRange(l),S=E.toString();f[S]||(f[S]=!0,s.drawSingleLineMarker(p,E,this.clazz,a))}}},u}();v.prototype.MAX_RANGES=500,r.SearchHighlight=v}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,r,d){var h=function(){function C(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return C.prototype.addSession=function(b){this.$session=b},C.prototype.add=function(b,T,R){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),T===!1||!this.lastDeltas){this.lastDeltas=[];var L=this.$undoStack.length;L>this.$undoDepth-1&&this.$undoStack.splice(0,L-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},C.prototype.addSelection=function(b,T){this.selections.push({value:b,rev:T||this.$rev})},C.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},C.prototype.markIgnored=function(b,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,L=R.length;L--;){var I=R[L][0];if(I.id<=b)break;I.id<T&&(I.ignore=!0)}this.lastDeltas=null},C.prototype.getSelection=function(b,T){for(var R=this.selections,L=R.length;L--;){var I=R[L];if(I.rev<b)return T&&(I=R[L+1]),I}},C.prototype.getRevision=function(){return this.$rev},C.prototype.getDeltas=function(b,T){T==null&&(T=this.$rev+1);for(var R=this.$undoStack,L=null,I=0,N=R.length;N--;){var k=R[N][0];if(k.id<T&&!L&&(L=N+1),k.id<=b){I=N+1;break}}return R.slice(I,L)},C.prototype.getChangedRanges=function(b,T){T==null&&(T=this.$rev+1)},C.prototype.getChangedLines=function(b,T){T==null&&(T=this.$rev+1)},C.prototype.undo=function(b,T){this.lastDeltas=null;var R=this.$undoStack;if(g(R,R.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var L=R.pop(),I=null;return L&&(I=b.undoChanges(L,T),this.$redoStack.push(L),this.$syncRev()),this.$fromUndo=!1,I}},C.prototype.redo=function(b,T){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var R=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);S(this.$redoStack,R),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var L=this.$redoStack.pop(),I=null;return L&&(I=b.redoChanges(L,T),this.$undoStack.push(L),this.$syncRev()),this.$fromUndo=!1,I},C.prototype.$syncRev=function(){var b=this.$undoStack,T=b[b.length-1],R=T&&T[0].id||0;this.$redoStackBaseRev=R,this.$rev=R},C.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=[]},C.prototype.canUndo=function(){return this.$undoStack.length>0},C.prototype.canRedo=function(){return this.$redoStack.length>0},C.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},C.prototype.isAtBookmark=function(){return this.$rev===this.mark},C.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},C.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},C.prototype.$prettyPrint=function(b){return b?l(b):l(this.$undoStack)+`
|
192
|
-
---
|
193
|
-
`+l(this.$redoStack)},C}();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 g(C,b){for(var T=b;T--;){var R=C[T];if(R&&!R[0].ignore){for(;T<b-1;){var L=o(C[T],C[T+1]);C[T]=L[0],C[T+1]=L[1],T++}return!0}}}var v=t("./range").Range,u=v.comparePoints;v.comparePoints;function p(C){return{row:C.row,column:C.column}}function s(C){return{start:p(C.start),end:p(C.end),action:C.action,lines:C.lines.slice()}}function l(C){if(C=C||this,Array.isArray(C))return C.map(l).join(`
|
194
|
-
`);var b="";return C.action?(b=C.action=="insert"?"+":"-",b+="["+C.lines+"]"):C.value&&(Array.isArray(C.value)?b=C.value.map(a).join(`
|
195
|
-
`):b=a(C.value)),C.start&&(b+=a(C)),(C.id||C.rev)&&(b+=" ("+(C.id||C.rev)+")"),b}function a(C){return C.start.row+":"+C.start.column+"=>"+C.end.row+":"+C.end.column}function c(C,b){var T=C.action=="insert",R=b.action=="insert";if(T&&R)if(u(b.start,C.end)>=0)y(b,C,-1);else if(u(b.start,C.start)<=0)y(C,b,1);else return null;else if(T&&!R)if(u(b.start,C.end)>=0)y(b,C,-1);else if(u(b.end,C.start)<=0)y(C,b,-1);else return null;else if(!T&&R)if(u(b.start,C.start)>=0)y(b,C,1);else if(u(b.start,C.start)<=0)y(C,b,1);else return null;else if(!T&&!R)if(u(b.start,C.start)>=0)y(b,C,1);else if(u(b.end,C.start)<=0)y(C,b,-1);else return null;return[b,C]}function o(C,b){for(var T=C.length;T--;)for(var R=0;R<b.length;R++)if(!c(C[T],b[R])){for(;T<C.length;){for(;R--;)c(b[R],C[T]);R=b.length,T++}return[C,b]}return C.selectionBefore=b.selectionBefore=C.selectionAfter=b.selectionAfter=null,[b,C]}function f(C,b){var T=C.action=="insert",R=b.action=="insert";if(T&&R)u(C.start,b.start)<0?y(b,C,1):y(C,b,1);else if(T&&!R)u(C.start,b.end)>=0?y(C,b,-1):(u(C.start,b.start)<=0||y(C,v.fromPoints(b.start,C.start),-1),y(b,C,1));else if(!T&&R)u(b.start,C.end)>=0?y(b,C,-1):(u(b.start,C.start)<=0||y(b,v.fromPoints(C.start,b.start),-1),y(C,b,1));else if(!T&&!R)if(u(b.start,C.end)>=0)y(b,C,-1);else if(u(b.end,C.start)<=0)y(C,b,-1);else{var L,I;return u(C.start,b.start)<0&&(L=C,C=x(C,b.start)),u(C.end,b.end)>0&&(I=x(C,b.end)),w(b.end,C.start,C.end,-1),I&&!L&&(C.lines=I.lines,C.start=I.start,C.end=I.end,I=C),[b,L,I].filter(Boolean)}return[b,C]}function y(C,b,T){w(C.start,b.start,b.end,T),w(C.end,b.start,b.end,T)}function w(C,b,T,R){C.row==(R==1?b:T).row&&(C.column+=R*(T.column-b.column)),C.row+=R*(T.row-b.row)}function x(C,b){var T=C.lines,R=C.end;C.end=p(b);var L=C.end.row-C.start.row,I=T.splice(L,T.length),N=L?b.column:b.column-C.start.column;T.push(I[0].substring(0,N)),I[0]=I[0].substr(N);var k={start:p(b),end:R,lines:I,action:C.action};return k}function E(C,b){b=s(b);for(var T=C.length;T--;){for(var R=C[T],L=0;L<R.length;L++){var I=R[L],N=f(I,b);b=N[0],N.length!=2&&(N[2]?(R.splice(L+1,1,N[1],N[2]),L++):N[1]||(R.splice(L,1),L--))}R.length||C.splice(T,1)}return C}function S(C,b){for(var T=0;T<b.length;T++)for(var R=b[T],L=0;L<R.length;L++)E(C,R[L])}r.UndoManager=h}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(t,r,d){var h=t("../range").Range,g=function(){function v(u,p){this.foldData=u,Array.isArray(p)?this.folds=p:p=this.folds=[p];var s=p[p.length-1];this.range=new h(p[0].start.row,p[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 v.prototype.shiftRow=function(u){this.start.row+=u,this.end.row+=u,this.folds.forEach(function(p){p.start.row+=u,p.end.row+=u})},v.prototype.addFold=function(u){if(u.sameRow){if(u.start.row<this.startRow||u.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(u),this.folds.sort(function(p,s){return-p.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(u.start.row,u.start.column)>0?(this.end.row=u.end.row,this.end.column=u.end.column):this.range.compareStart(u.end.row,u.end.column)<0&&(this.start.row=u.start.row,this.start.column=u.start.column)}else if(u.start.row==this.end.row)this.folds.push(u),this.end.row=u.end.row,this.end.column=u.end.column;else if(u.end.row==this.start.row)this.folds.unshift(u),this.start.row=u.start.row,this.start.column=u.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");u.foldLine=this},v.prototype.containsRow=function(u){return u>=this.start.row&&u<=this.end.row},v.prototype.walk=function(u,p,s){var l=0,a=this.folds,c,o,f,y=!0;p==null&&(p=this.end.row,s=this.end.column);for(var w=0;w<a.length;w++){if(c=a[w],o=c.range.compareStart(p,s),o==-1){u(null,p,s,l,y);return}if(f=u(null,c.start.row,c.start.column,l,y),f=!f&&u(c.placeholder,c.start.row,c.start.column,l),f||o===0)return;y=!c.sameRow,l=c.end.column}u(null,p,s,l,y)},v.prototype.getNextFoldTo=function(u,p){for(var s,l,a=0;a<this.folds.length;a++){if(s=this.folds[a],l=s.range.compareEnd(u,p),l==-1)return{fold:s,kind:"after"};if(l===0)return{fold:s,kind:"inside"}}return null},v.prototype.addRemoveChars=function(u,p,s){var l=this.getNextFoldTo(u,p),a,c;if(l){if(a=l.fold,l.kind=="inside"&&a.start.column!=p&&a.start.row!=u)window.console&&window.console.log(u,p,a);else if(a.start.row==u){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}}},v.prototype.split=function(u,p){var s=this.getNextFoldTo(u,p);if(!s||s.kind=="inside")return null;var l=s.fold,a=this.folds,c=this.foldData,o=a.indexOf(l),f=a[o-1];this.end.row=f.end.row,this.end.column=f.end.column,a=a.splice(o,a.length-o);var y=new v(c,a);return c.splice(c.indexOf(this)+1,0,y),y},v.prototype.merge=function(u){for(var p=u.folds,s=0;s<p.length;s++)this.addFold(p[s]);var l=this.foldData;l.splice(l.indexOf(u),1)},v.prototype.toString=function(){var u=[this.range.toString()+": ["];return this.folds.forEach(function(p){u.push(" "+p.toString())}),u.push("]"),u.join(`
|
196
|
-
`)},v.prototype.idxToPosition=function(u){for(var p=0,s=0;s<this.folds.length;s++){var l=this.folds[s];if(u-=l.start.column-p,u<0)return{row:l.start.row,column:l.start.column+u};if(u-=l.placeholder.length,u<0)return l.start;p=l.end.column}return{row:this.end.row,column:this.end.column+u}},v}();r.FoldLine=g}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(t,r,d){var h=t("./range").Range,g=h.comparePoints,v=function(){function u(){this.ranges=[],this.$bias=1}return u.prototype.pointIndex=function(p,s,l){for(var a=this.ranges,c=l||0;c<a.length;c++){var o=a[c],f=g(p,o.end);if(!(f>0)){var y=g(p,o.start);return f===0?s&&y!==0?-c-2:c:y>0||y===0&&!s?c:-c-1}}return-c-1},u.prototype.add=function(p){var s=!p.isEmpty(),l=this.pointIndex(p.start,s);l<0&&(l=-l-1);var a=this.pointIndex(p.end,s,l);return a<0?a=-a-1:a++,this.ranges.splice(l,a-l,p)},u.prototype.addList=function(p){for(var s=[],l=p.length;l--;)s.push.apply(s,this.add(p[l]));return s},u.prototype.substractPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges.splice(s,1)},u.prototype.merge=function(){var p=[],s=this.ranges;s=s.sort(function(f,y){return g(f.start,y.start)});for(var l=s[0],a,c=1;c<s.length;c++){a=l,l=s[c];var o=g(a.end,l.start);o<0||o==0&&!a.isEmpty()&&!l.isEmpty()||(g(a.end,l.end)<0&&(a.end.row=l.end.row,a.end.column=l.end.column),s.splice(c,1),p.push(l),l=a,c--)}return this.ranges=s,p},u.prototype.contains=function(p,s){return this.pointIndex({row:p,column:s})>=0},u.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},u.prototype.rangeAtPoint=function(p){var s=this.pointIndex(p);if(s>=0)return this.ranges[s]},u.prototype.clipRows=function(p,s){var l=this.ranges;if(l[0].start.row>s||l[l.length-1].start.row<p)return[];var a=this.pointIndex({row:p,column:0});a<0&&(a=-a-1);var c=this.pointIndex({row:s,column:0},a);c<0&&(c=-c-1);for(var o=[],f=a;f<c;f++)o.push(l[f]);return o},u.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},u.prototype.attach=function(p){this.session&&this.detach(),this.session=p,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},u.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},u.prototype.$onChange=function(p){for(var s=p.start,l=p.end,a=s.row,c=l.row,o=this.ranges,f=0,y=o.length;f<y;f++){var w=o[f];if(w.end.row>=a)break}if(p.action=="insert")for(var x=c-a,E=-s.column+l.column;f<y;f++){var w=o[f];if(w.start.row>a)break;if(w.start.row==a&&w.start.column>=s.column&&(w.start.column==s.column&&this.$bias<=0||(w.start.column+=E,w.start.row+=x)),w.end.row==a&&w.end.column>=s.column){if(w.end.column==s.column&&this.$bias<0)continue;w.end.column==s.column&&E>0&&f<y-1&&w.end.column>w.start.column&&w.end.column==o[f+1].start.column&&(w.end.column-=E),w.end.column+=E,w.end.row+=x}}else for(var x=a-c,E=s.column-l.column;f<y;f++){var w=o[f];if(w.start.row>c)break;w.end.row<c&&(a<w.end.row||a==w.end.row&&s.column<w.end.column)?(w.end.row=a,w.end.column=s.column):w.end.row==c?w.end.column<=l.column?(x||w.end.column>s.column)&&(w.end.column=s.column,w.end.row=s.row):(w.end.column+=E,w.end.row+=x):w.end.row>c&&(w.end.row+=x),w.start.row<c&&(a<w.start.row||a==w.start.row&&s.column<w.start.column)?(w.start.row=a,w.start.column=s.column):w.start.row==c?w.start.column<=l.column?(x||w.start.column>s.column)&&(w.start.column=s.column,w.start.row=s.row):(w.start.column+=E,w.start.row+=x):w.start.row>c&&(w.start.row+=x)}if(x!=0&&f<y)for(;f<y;f++){var w=o[f];w.start.row+=x,w.end.row+=x}},u}();v.prototype.comparePoints=g,r.RangeList=v}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(t,r,d){var h=this&&this.__extends||function(){var a=function(c,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,y){f.__proto__=y}||function(f,y){for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(f[w]=y[w])},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 f(){this.constructor=c}c.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}}(),g=t("../range_list").RangeList,v=function(a){h(c,a);function c(o,f){var y=a.call(this)||this;return y.foldLine=null,y.placeholder=f,y.range=o,y.start=o.start,y.end=o.end,y.sameRow=o.start.row==o.end.row,y.subFolds=y.ranges=[],y}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(f){f.setFoldLine(o)})},c.prototype.clone=function(){var o=this.range.clone(),f=new c(o,this.placeholder);return this.subFolds.forEach(function(y){f.subFolds.push(y.clone())}),f.collapseChildren=this.collapseChildren,f},c.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){p(o,this.start);for(var f=o.start.row,y=o.start.column,w=0,x=-1;w<this.subFolds.length&&(x=this.subFolds[w].range.compare(f,y),x==1);w++);var E=this.subFolds[w],S=0;if(x==0){if(E.range.containsRange(o))return E.addSubFold(o);S=1}for(var f=o.range.end.row,y=o.range.end.column,C=w,x=-1;C<this.subFolds.length&&(x=this.subFolds[C].range.compare(f,y),x==1);C++);x==0&&C++;for(var b=this.subFolds.splice(w,C-w,o),T=x==0?b.length-1:b.length,R=S;R<T;R++)o.addSubFold(b[R]);return o.setFoldLine(this.foldLine),o}},c.prototype.restoreRange=function(o){return l(o,this.start)},c}(g);function u(a,c){a.row-=c.row,a.row==0&&(a.column-=c.column)}function p(a,c){u(a.start,c),u(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)}r.Fold=v}),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,r,d){var h=t("../range").Range,g=t("./fold_line").FoldLine,v=t("./fold").Fold,u=t("../token_iterator").TokenIterator,p=t("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(l,a,c){var o=this.getFoldLine(l);if(!o)return null;for(var f=o.folds,y=0;y<f.length;y++){var w=f[y].range;if(w.contains(l,a)){if(c==1&&w.isEnd(l,a)&&!w.isEmpty()||c==-1&&w.isStart(l,a)&&!w.isEmpty())continue;return f[y]}}},this.getFoldsInRange=function(l){var a=l.start,c=l.end,o=this.$foldData,f=[];a.column+=1,c.column-=1;for(var y=0;y<o.length;y++){var w=o[y].range.compareRange(l);if(w!=2){if(w==-2)break;for(var x=o[y].folds,E=0;E<x.length;E++){var S=x[E];if(w=S.range.compareRange(l),w==-2)break;if(w!=2){if(w==42)break;f.push(S)}}}}return a.column-=1,c.column+=1,f},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 f={end:{column:0}},y,w,x=0;x<o.folds.length;x++){w=o.folds[x];var E=w.range.compareEnd(l,a);if(E==-1){y=this.getLine(w.start.row).substring(f.end.column,w.start.column);break}else if(E===0)return null;f=w}return y||(y=this.getLine(w.start.row).substring(f.end.column)),c==-1?y.substring(0,a-f.end.column):c==1?y.substring(a-f.end.column):y},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 f=c[o];if(f.start.row<=l&&f.end.row>=l)return f;if(f.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 f=c[o];if(f.end.row>=l)return f}return null},this.getFoldedRowCount=function(l,a){for(var c=this.$foldData,o=a-l+1,f=0;f<c.length;f++){var y=c[f],w=y.end.row,x=y.start.row;if(w>=a){x<a&&(x>=l?o-=a-x:o=0);break}else w>=l&&(x>=l?o-=w-x:o-=w-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,f;l instanceof v?f=l:(f=new v(a,l),f.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(f.range);var y=f.start.row,w=f.start.column,x=f.end.row,E=f.end.column,S=this.getFoldAt(y,w,1),C=this.getFoldAt(x,E,-1);if(S&&C==S)return S.addSubFold(f);S&&!S.range.isStart(y,w)&&this.removeFold(S),C&&!C.range.isEnd(x,E)&&this.removeFold(C);var b=this.getFoldsInRange(f.range);b.length>0&&(this.removeFolds(b),f.collapseChildren||b.forEach(function(I){f.addSubFold(I)}));for(var T=0;T<c.length;T++){var R=c[T];if(x==R.start.row){R.addFold(f),o=!0;break}else if(y==R.end.row){if(R.addFold(f),o=!0,!f.sameRow){var L=c[T+1];if(L&&L.start.row==x){R.merge(L);break}}break}else if(x<=R.start.row)break}return o||(R=this.$addFoldLine(new g(this.$foldData,f))),this.$useWrapMode?this.$updateWrapData(R.start.row,R.start.row):this.$updateRowLengthCache(R.start.row,R.start.row),this.$modified=!0,this._signal("changeFold",{data:f,action:"add"}),f},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,f=this.$foldData,y=a.folds;if(y.length==1)f.splice(f.indexOf(a),1);else if(a.range.isEnd(l.end.row,l.end.column))y.pop(),a.end.row=y[y.length-1].end.row,a.end.column=y[y.length-1].end.column;else if(a.range.isStart(l.start.row,l.start.column))y.shift(),a.start.row=y[0].start.row,a.start.column=y[0].start.column;else if(l.sameRow)y.splice(y.indexOf(l),1);else{var w=a.split(l.start.row,l.start.column);y=w.folds,y.shift(),w.start.row=y[0].start.row,w.start.column=y[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(y){o=o.concat(this.unfold(y))},this),o;c=l}o=this.getFoldsInRangeList(c);for(var f=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),f.length)return f},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,f){o==null&&(o=l.start.row),f==null&&(f=0),a==null&&(a=l.end.row),c==null&&(c=this.getLine(a).length);var y=this.doc,w="";return l.walk(function(x,E,S,C){if(!(E<o)){if(E==o){if(S<f)return;C=Math.max(f,C)}x!=null?w+=x:w+=y.getLine(E).substring(C,S)}},a,c),w},this.getDisplayLine=function(l,a,c,o){var f=this.getFoldLine(l);if(f)return this.getFoldDisplayLine(f,l,a,c,o);var y;return y=this.doc.getLine(l),y.substring(o||0,a||y.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 g(l,c)}),l},this.toggleFold=function(l){var a=this.selection,c=a.getRange(),o,f;if(c.isEmpty()){var y=c.start;if(o=this.getFoldAt(y.row,y.column),o){this.expandFold(o);return}else(f=this.findMatchingBracket(y))?c.comparePoint(f)==1?c.end=f:(c.start=f,c.start.column++,c.end.column--):(f=this.findMatchingBracket({row:y.row,column:y.column+1}))?(c.comparePoint(f)==1?c.end=f:c.start=f,c.start.column++):c=this.getCommentFoldRange(y.row,y.column)||c}else{var w=this.getFoldsInRange(c);if(l&&w.length){this.expandFolds(w);return}else w.length==1&&(o=w[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 u(this,l,a),f=o.getCurrentToken(),y=f&&f.type;if(f&&/^comment|string/.test(y)){y=y.match(/comment|string/)[0],y=="comment"&&(y+="|doc-start|\\.doc");var w=new RegExp(y),x=new h;if(c!=1){do f=o.stepBackward();while(f&&w.test(f.type));f=o.stepForward()}x.start.row=o.getCurrentTokenRow(),x.start.column=o.getCurrentTokenColumn()+f.value.length,o=new u(this,l,a);var E=this.getState(o.$row);if(c!=-1){var S=-1;do if(f=o.stepForward(),S==-1){var C=this.getState(o.$row);E.toString()!==C.toString()&&(S=o.$row)}else if(o.$row>S)break;while(f&&w.test(f.type));f=o.stepBackward()}else f=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 f=this.foldWidgets;if(f){a=a||this.getLength(),l=l||0;for(var y=l;y<a;y++)if(f[y]==null&&(f[y]=this.getFoldWidget(y)),f[y]=="start"&&!(o&&!o(y))){var w=this.getFoldWidgetRange(y);w&&w.isMultiLine()&&w.end.row<=a&&w.start.row>=l&&(y=w.end.row,w.collapseChildren=c,this.addFold("...",w))}}},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 f=c[o];if(!(f.type=="text"&&/^\s+$/.test(f.value)))return!!/comment/.test(f.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,f;o>=0;){var y=c[o];if(y==null&&(y=c[o]=this.getFoldWidget(o)),y=="start"){var w=this.getFoldWidgetRange(o);if(f||(f=w),w&&w.end.row>=l)break}o--}return{range:o!==-1&&w,firstRange:f}},this.onFoldWidgetClick=function(l,a){a instanceof p&&(a=a.domEvent);var c={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(l,c);if(!o){var f=a.target||a.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,a){if(this.getFoldWidget){var c=this.getFoldWidget(l),o=this.getLine(l),f=c==="end"?-1:1,y=this.getFoldAt(l,f===-1?0:o.length,f);if(y)return a.children||a.all?this.removeFold(y):this.expandFold(y),y;var w=this.getFoldWidgetRange(l,!0);if(w&&!w.isMultiLine()&&(y=this.getFoldAt(w.start.row,w.start.column,1),y&&w.isEqual(y.range)))return this.removeFold(y),y;if(a.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var E=x.range.start.row+1,S=x.range.end.row;this.foldAll(E,S,a.all?1e4:0)}else a.children?(S=w?w.end.row:this.getLength(),this.foldAll(l+1,S,a.all?1e4:0)):w&&(a.all&&(w.collapseChildren=1e4),this.addFold("...",w));return w}},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 f=this.getFoldAt(a,this.getLine(a).length,1);f?this.removeFold(f):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)}}r.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(t,r,d){var h=t("../token_iterator").TokenIterator,g=t("../range").Range;function v(){this.findMatchingBracket=function(u,p){if(u.column==0)return null;var s=p||this.getLine(u.row).charAt(u.column-1);if(s=="")return null;var l=s.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],u):this.$findOpeningBracket(l[2],u):null},this.getBracketRange=function(u){var p=this.getLine(u.row),s=!0,l,a=p.charAt(u.column-1),c=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(c||(a=p.charAt(u.column),u={row:u.row,column:u.column+1},c=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!c)return null;if(c[1]){var o=this.$findClosingBracket(c[1],u);if(!o)return null;l=g.fromPoints(u,o),s||(l.end.column++,l.start.column--),l.cursor=l.end}else{var o=this.$findOpeningBracket(c[2],u);if(!o)return null;l=g.fromPoints(o,u),s||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(u,p){var s=this.getLine(u.row),l=/([\(\[\{])|([\)\]\}])/,a=!p&&s.charAt(u.column-1),c=a&&a.match(l);if(c||(a=(p===void 0||p)&&s.charAt(u.column),u={row:u.row,column:u.column+1},c=a&&a.match(l)),!c)return null;var o=new g(u.row,u.column-1,u.row,u.column),f=c[1]?this.$findClosingBracket(c[1],u):this.$findOpeningBracket(c[2],u);if(!f)return[o];var y=new g(f.row,f.column,f.row,f.column+1);return[o,y]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(u,p,s){var l=this.$brackets[u],a=1,c=new h(this,p.row,p.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 f=p.column-c.getCurrentTokenColumn()-2,y=o.value;;){for(;f>=0;){var w=y.charAt(f);if(w==l){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else w==u&&(a+=1);f-=1}do o=c.stepBackward();while(o&&!s.test(o.type));if(o==null)break;y=o.value,f=y.length-1}return null}},this.$findClosingBracket=function(u,p,s){var l=this.$brackets[u],a=1,c=new h(this,p.row,p.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 f=p.column-c.getCurrentTokenColumn();;){for(var y=o.value,w=y.length;f<w;){var x=y.charAt(f);if(x==l){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:f+c.getCurrentTokenColumn()}}else x==u&&(a+=1);f+=1}do o=c.stepForward();while(o&&!s.test(o.type));if(o==null)break;f=0}return null}},this.getMatchingTags=function(u){var p=new h(this,u.row,u.column),s=this.$findTagName(p);if(s){var l=p.stepBackward();return l.value==="<"?this.$findClosingTag(p,s):this.$findOpeningTag(p,s)}},this.$findTagName=function(u){var p=u.getCurrentToken(),s=!1,l=!1;if(p&&p.type.indexOf("tag-name")===-1)do l?p=u.stepBackward():p=u.stepForward(),p&&(p.value==="/>"?l=!0:p.type.indexOf("tag-name")!==-1&&(s=!0));while(p&&!s);return p},this.$findClosingTag=function(u,p){var s,l=p.value,a=p.value,c=0,o=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);p=u.stepForward();var f=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+p.value.length),y=!1;do{if(s=p,s.type.indexOf("tag-close")!==-1&&!y){var w=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);y=!0}if(p=u.stepForward(),p){if(p.value===">"&&!y){var w=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);y=!0}if(p.type.indexOf("tag-name")!==-1){if(l=p.value,a===l){if(s.value==="<")c++;else if(s.value==="</"&&(c--,c<0)){u.stepBackward();var x=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+2);p=u.stepForward();var E=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=u.stepForward()),p&&p.value===">")var S=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);else return}}}else if(a===l&&p.value==="/>"&&(c--,c<0))var x=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+2),E=x,S=E,w=new g(f.end.row,f.end.column,f.end.row,f.end.column+1)}}while(p&&c>=0);if(o&&w&&x&&S&&f&&E)return{openTag:new g(o.start.row,o.start.column,w.end.row,w.end.column),closeTag:new g(x.start.row,x.start.column,S.end.row,S.end.column),openTagName:f,closeTagName:E}},this.$findOpeningTag=function(u,p){var s=u.getCurrentToken(),l=p.value,a=0,c=u.getCurrentTokenRow(),o=u.getCurrentTokenColumn(),f=o+2,y=new g(c,o,c,f);u.stepForward();var w=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=u.stepForward()),!(!p||p.value!==">")){var x=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);u.stepBackward(),u.stepBackward();do if(p=s,c=u.getCurrentTokenRow(),o=u.getCurrentTokenColumn(),f=o+p.value.length,s=u.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(l===p.value)if(s.value==="<"){if(a++,a>0){var E=new g(c,o,c,f),S=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1);do p=u.stepForward();while(p&&p.value!==">");var C=new g(u.getCurrentTokenRow(),u.getCurrentTokenColumn(),u.getCurrentTokenRow(),u.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(p.value==="/>"){for(var b=0,T=s;T;){if(T.type.indexOf("tag-name")!==-1&&T.value===l){a--;break}else if(T.value==="<")break;T=u.stepBackward(),b++}for(var R=0;R<b;R++)u.stepForward()}}while(s&&a<=0);if(S&&C&&y&&x&&E&&w)return{openTag:new g(S.start.row,S.start.column,C.end.row,C.end.column),closeTag:new g(y.start.row,y.start.column,x.end.row,x.end.column),openTagName:E,closeTagName:w}}}}r.BracketMatch=v}),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,r,d){var h=t("./lib/oop"),g=t("./lib/lang"),v=t("./bidihandler").BidiHandler,u=t("./config"),p=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,f=t("./background_tokenizer").BackgroundTokenizer,y=t("./search_highlight").SearchHighlight,w=t("./undomanager").UndoManager,x=function(){function k(A,_){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"+ ++k.$uid,this.$foldData.toString=function(){return this.join(`
|
197
|
-
`)},this.bgTokenizer=new f(new l().getTokenizer(),this);var M=this;this.bgTokenizer.on("update",function(O){M._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof A!="object"||!A.getLine)&&(A=new o(A)),this.setDocument(A),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 v(this),u.resetOptions(this),this.setMode(_),u._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return k.prototype.$initOperationListeners=function(){var A=this;this.curOp=null,this.on("change",function(){A.curOp||(A.startOperation(),A.curOp.selectionBefore=A.$lastSel),A.curOp.docChanged=!0},!0),this.on("changeSelection",function(){A.curOp||(A.startOperation(),A.curOp.selectionBefore=A.$lastSel),A.curOp.selectionChanged=!0},!0),this.$operationResetTimer=g.delayedCall(this.endOperation.bind(this,!0))},k.prototype.startOperation=function(A){if(this.curOp){if(!A||this.curOp.command)return;this.prevOp=this.curOp}A||(A={}),this.$operationResetTimer.schedule(),this.curOp={command:A.command||{},args:A.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",A)},k.prototype.endOperation=function(A){if(this.curOp){if(A&&A.returnValue===!1){this.curOp=null,this._signal("endOperation",A);return}if(A==!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",A)}},k.prototype.setDocument=function(A){this.doc&&this.doc.off("change",this.$onChange),this.doc=A,A.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},k.prototype.getDocument=function(){return this.doc},Object.defineProperty(k.prototype,"widgetManager",{get:function(){var A=new c(this);return this.widgetManager=A,this.$editor&&A.attach(this.$editor),A},set:function(A){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:A})},enumerable:!1,configurable:!0}),k.prototype.$resetRowCache=function(A){if(!A){this.$docRowCache=[],this.$screenRowCache=[];return}var _=this.$docRowCache.length,M=this.$getRowCacheIndex(this.$docRowCache,A)+1;_>M&&(this.$docRowCache.splice(M,_),this.$screenRowCache.splice(M,_))},k.prototype.$getRowCacheIndex=function(A,_){for(var M=0,O=A.length-1;M<=O;){var F=M+O>>1,H=A[F];if(_>H)M=F+1;else if(_<H)O=F-1;else return F}return M-1},k.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},k.prototype.onChangeFold=function(A){var _=A.data;this.$resetRowCache(_.start.row)},k.prototype.onChange=function(A){this.$modified=!0,this.$bidiHandler.onChange(A),this.$resetRowCache(A.start.row);var _=this.$updateInternalDataOnChange(A);!this.$fromUndo&&this.$undoManager&&(_&&_.length&&(this.$undoManager.add({action:"removeFolds",folds:_},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(A,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(A),this._signal("change",A)},k.prototype.onSelectionChange=function(){this._signal("changeSelection")},k.prototype.setValue=function(A){this.doc.setValue(A),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},k.fromJSON=function(A){typeof A=="string"&&(A=JSON.parse(A));var _=new w;_.$undoStack=A.history.undo,_.$redoStack=A.history.redo,_.mark=A.history.mark,_.$rev=A.history.rev;var M=new k(A.value);return A.folds.forEach(function(O){M.addFold("...",a.fromPoints(O.start,O.end))}),M.setAnnotations(A.annotations),M.setBreakpoints(A.breakpoints),M.setMode(A.mode),M.setScrollLeft(A.scrollLeft),M.setScrollTop(A.scrollTop),M.setUndoManager(_),M.selection.fromJSON(A.selection),M},k.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(A){return A.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},k.prototype.toString=function(){return this.doc.getValue()},k.prototype.getSelection=function(){return this.selection},k.prototype.getState=function(A){return this.bgTokenizer.getState(A)},k.prototype.getTokens=function(A){return this.bgTokenizer.getTokens(A)},k.prototype.getTokenAt=function(A,_){var M=this.bgTokenizer.getTokens(A),O,F=0;if(_==null){var H=M.length-1;F=this.getLine(A).length}else for(var H=0;H<M.length&&(F+=M[H].value.length,!(F>=_));H++);return O=M[H],O?(O.index=H,O.start=F-O.value.length,O):null},k.prototype.setUndoManager=function(A){if(this.$undoManager=A,this.$informUndoManager&&this.$informUndoManager.cancel(),A){var _=this;A.addSession(this),this.$syncInformUndoManager=function(){_.$informUndoManager.cancel(),_.mergeUndoDeltas=!1},this.$informUndoManager=g.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},k.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},k.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},k.prototype.getTabString=function(){return this.getUseSoftTabs()?g.stringRepeat(" ",this.getTabSize()):" "},k.prototype.setUseSoftTabs=function(A){this.setOption("useSoftTabs",A)},k.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},k.prototype.setTabSize=function(A){this.setOption("tabSize",A)},k.prototype.getTabSize=function(){return this.$tabSize},k.prototype.isTabStop=function(A){return this.$useSoftTabs&&A.column%this.$tabSize===0},k.prototype.setNavigateWithinSoftTabs=function(A){this.setOption("navigateWithinSoftTabs",A)},k.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},k.prototype.setOverwrite=function(A){this.setOption("overwrite",A)},k.prototype.getOverwrite=function(){return this.$overwrite},k.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},k.prototype.addGutterDecoration=function(A,_){this.$decorations[A]||(this.$decorations[A]=""),this.$decorations[A]+=" "+_,this._signal("changeBreakpoint",{})},k.prototype.removeGutterDecoration=function(A,_){this.$decorations[A]=(this.$decorations[A]||"").replace(" "+_,""),this._signal("changeBreakpoint",{})},k.prototype.getBreakpoints=function(){return this.$breakpoints},k.prototype.setBreakpoints=function(A){this.$breakpoints=[];for(var _=0;_<A.length;_++)this.$breakpoints[A[_]]="ace_breakpoint";this._signal("changeBreakpoint",{})},k.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},k.prototype.setBreakpoint=function(A,_){_===void 0&&(_="ace_breakpoint"),_?this.$breakpoints[A]=_:delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},k.prototype.clearBreakpoint=function(A){delete this.$breakpoints[A],this._signal("changeBreakpoint",{})},k.prototype.addMarker=function(A,_,M,O){var F=this.$markerId++,H={range:A,type:M||"line",renderer:typeof M=="function"?M:null,clazz:_,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=H,this._signal("changeFrontMarker")):(this.$backMarkers[F]=H,this._signal("changeBackMarker")),F},k.prototype.addDynamicMarker=function(A,_){if(A.update){var M=this.$markerId++;return A.id=M,A.inFront=!!_,_?(this.$frontMarkers[M]=A,this._signal("changeFrontMarker")):(this.$backMarkers[M]=A,this._signal("changeBackMarker")),A}},k.prototype.removeMarker=function(A){var _=this.$frontMarkers[A]||this.$backMarkers[A];if(_){var M=_.inFront?this.$frontMarkers:this.$backMarkers;delete M[A],this._signal(_.inFront?"changeFrontMarker":"changeBackMarker")}},k.prototype.getMarkers=function(A){return A?this.$frontMarkers:this.$backMarkers},k.prototype.highlight=function(A){if(!this.$searchHighlight){var _=new y(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(_)}this.$searchHighlight.setRegexp(A)},k.prototype.highlightLines=function(A,_,M,O){typeof _!="number"&&(M=_,_=A),M||(M="ace_step");var F=new a(A,0,_,1/0);return F.id=this.addMarker(F,M,"fullLine",O),F},k.prototype.setAnnotations=function(A){this.$annotations=A,this._signal("changeAnnotation",{})},k.prototype.getAnnotations=function(){return this.$annotations||[]},k.prototype.clearAnnotations=function(){this.setAnnotations([])},k.prototype.$detectNewLine=function(A){var _=A.match(/^.*?(\r?\n)/m);_?this.$autoNewLine=_[1]:this.$autoNewLine=`
|
198
|
-
`},k.prototype.getWordRange=function(A,_){var M=this.getLine(A),O=!1;if(_>0&&(O=!!M.charAt(_-1).match(this.tokenRe)),O||(O=!!M.charAt(_).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(M.slice(_-1,_+1)))var F=/\s/;else var F=this.nonTokenRe;var H=_;if(H>0){do H--;while(H>=0&&M.charAt(H).match(F));H++}for(var z=_;z<M.length&&M.charAt(z).match(F);)z++;return new a(A,H,A,z)},k.prototype.getAWordRange=function(A,_){for(var M=this.getWordRange(A,_),O=this.getLine(M.end.row);O.charAt(M.end.column).match(/[ \t]/);)M.end.column+=1;return M},k.prototype.setNewLineMode=function(A){this.doc.setNewLineMode(A)},k.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},k.prototype.setUseWorker=function(A){this.setOption("useWorker",A)},k.prototype.getUseWorker=function(){return this.$useWorker},k.prototype.onReloadTokenizer=function(A){var _=A.data;this.bgTokenizer.start(_.first),this._signal("tokenizerUpdate",A)},k.prototype.setMode=function(A,_){if(A&&typeof A=="object"){if(A.getTokenizer)return this.$onChangeMode(A);var M=A,O=M.path}else O=A||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[O]&&!M){this.$onChangeMode(this.$modes[O]),_&&_();return}this.$modeId=O,u.loadModule(["mode",O],(function(F){if(!this.destroyed){if(this.$modeId!==O)return _&&_();this.$modes[O]&&!M?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(M),M||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),_&&_()}}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},k.prototype.$onChangeMode=function(A,_){if(_||(this.$modeId=A.$id),this.$mode!==A){var M=this.$mode;this.$mode=A,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=A.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=A.tokenRe,this.nonTokenRe=A.nonTokenRe,_||(A.attachToSession&&A.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(A.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:M,mode:A}))}},k.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},k.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(A){u.warn("Could not load worker",A),this.$worker=null}},k.prototype.getMode=function(){return this.$mode},k.prototype.setScrollTop=function(A){this.$scrollTop===A||isNaN(A)||(this.$scrollTop=A,this._signal("changeScrollTop",A))},k.prototype.getScrollTop=function(){return this.$scrollTop},k.prototype.setScrollLeft=function(A){this.$scrollLeft===A||isNaN(A)||(this.$scrollLeft=A,this._signal("changeScrollLeft",A))},k.prototype.getScrollLeft=function(){return this.$scrollLeft},k.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},k.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var A=0;return this.lineWidgets.forEach(function(_){_&&_.screenWidth>A&&(A=_.screenWidth)}),this.lineWidgetWidth=A},k.prototype.$computeWidth=function(A){if(this.$modified||A){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var _=this.doc.getAllLines(),M=this.$rowLengthCache,O=0,F=0,H=this.$foldData[F],z=H?H.start.row:1/0,V=_.length,q=0;q<V;q++){if(q>z){if(q=H.end.row+1,q>=V)break;H=this.$foldData[F++],z=H?H.start.row:1/0}M[q]==null&&(M[q]=this.$getStringScreenWidth(_[q])[0]),M[q]>O&&(O=M[q])}this.screenWidth=O}},k.prototype.getLine=function(A){return this.doc.getLine(A)},k.prototype.getLines=function(A,_){return this.doc.getLines(A,_)},k.prototype.getLength=function(){return this.doc.getLength()},k.prototype.getTextRange=function(A){return this.doc.getTextRange(A||this.selection.getRange())},k.prototype.insert=function(A,_){return this.doc.insert(A,_)},k.prototype.remove=function(A){return this.doc.remove(A)},k.prototype.removeFullLines=function(A,_){return this.doc.removeFullLines(A,_)},k.prototype.undoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var M=A.length-1;M!=-1;M--){var O=A[M];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!_&&this.$undoSelect&&(A.selectionBefore?this.selection.fromJSON(A.selectionBefore):this.selection.setRange(this.$getUndoSelection(A,!0))),this.$fromUndo=!1}},k.prototype.redoChanges=function(A,_){if(A.length){this.$fromUndo=!0;for(var M=0;M<A.length;M++){var O=A[M];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!_&&this.$undoSelect&&(A.selectionAfter?this.selection.fromJSON(A.selectionAfter):this.selection.setRange(this.$getUndoSelection(A,!1))),this.$fromUndo=!1}},k.prototype.setUndoSelect=function(A){this.$undoSelect=A},k.prototype.$getUndoSelection=function(A,_){function M(V){return _?V.action!=="insert":V.action==="insert"}for(var O,F,H=0;H<A.length;H++){var z=A[H];if(z.start){if(!O){M(z)?O=a.fromPoints(z.start,z.end):O=a.fromPoints(z.start,z.start);continue}M(z)?(F=z.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=z.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=z.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(z.start,z.start)))}}return O},k.prototype.replace=function(A,_){return this.doc.replace(A,_)},k.prototype.moveText=function(A,_,M){var O=this.getTextRange(A),F=this.getFoldsInRange(A),H=a.fromPoints(_,_);if(!M){this.remove(A);var z=A.start.row-A.end.row,V=z?-A.end.column:A.start.column-A.end.column;V&&(H.start.row==A.end.row&&H.start.column>A.end.column&&(H.start.column+=V),H.end.row==A.end.row&&H.end.column>A.end.column&&(H.end.column+=V)),z&&H.start.row>=A.end.row&&(H.start.row+=z,H.end.row+=z)}if(H.end=this.insert(H.start,O),F.length){var q=A.start,X=H.start,z=X.row-q.row,V=X.column-q.column;this.addFolds(F.map(function(re){return re=re.clone(),re.start.row==q.row&&(re.start.column+=V),re.end.row==q.row&&(re.end.column+=V),re.start.row+=z,re.end.row+=z,re}))}return H},k.prototype.indentRows=function(A,_,M){M=M.replace(/\t/g,this.getTabString());for(var O=A;O<=_;O++)this.doc.insertInLine({row:O,column:0},M)},k.prototype.outdentRows=function(A){for(var _=A.collapseRows(),M=new a(0,0,0,0),O=this.getTabSize(),F=_.start.row;F<=_.end.row;++F){var H=this.getLine(F);M.start.row=F,M.end.row=F;for(var z=0;z<O&&H.charAt(z)==" ";++z);z<O&&H.charAt(z)==" "?(M.start.column=z,M.end.column=z+1):(M.start.column=0,M.end.column=z),this.remove(M)}},k.prototype.$moveLines=function(A,_,M){if(A=this.getRowFoldStart(A),_=this.getRowFoldEnd(_),M<0){var O=this.getRowFoldStart(A+M);if(O<0)return 0;var F=O-A}else if(M>0){var O=this.getRowFoldEnd(_+M);if(O>this.doc.getLength()-1)return 0;var F=O-_}else{A=this.$clipRowToDocument(A),_=this.$clipRowToDocument(_);var F=_-A+1}var H=new a(A,0,_,Number.MAX_VALUE),z=this.getFoldsInRange(H).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=M==0?this.doc.getLines(A,_):this.doc.removeFullLines(A,_);return this.doc.insertFullLines(A+F,V),z.length&&this.addFolds(z),F},k.prototype.moveLinesUp=function(A,_){return this.$moveLines(A,_,-1)},k.prototype.moveLinesDown=function(A,_){return this.$moveLines(A,_,1)},k.prototype.duplicateLines=function(A,_){return this.$moveLines(A,_,0)},k.prototype.$clipRowToDocument=function(A){return Math.max(0,Math.min(A,this.doc.getLength()-1))},k.prototype.$clipColumnToRow=function(A,_){return _<0?0:Math.min(this.doc.getLine(A).length,_)},k.prototype.$clipPositionToDocument=function(A,_){if(_=Math.max(0,_),A<0)A=0,_=0;else{var M=this.doc.getLength();A>=M?(A=M-1,_=this.doc.getLine(M-1).length):_=Math.min(this.doc.getLine(A).length,_)}return{row:A,column:_}},k.prototype.$clipRangeToDocument=function(A){A.start.row<0?(A.start.row=0,A.start.column=0):A.start.column=this.$clipColumnToRow(A.start.row,A.start.column);var _=this.doc.getLength()-1;return A.end.row>_?(A.end.row=_,A.end.column=this.doc.getLine(_).length):A.end.column=this.$clipColumnToRow(A.end.row,A.end.column),A},k.prototype.setUseWrapMode=function(A){if(A!=this.$useWrapMode){if(this.$useWrapMode=A,this.$modified=!0,this.$resetRowCache(0),A){var _=this.getLength();this.$wrapData=Array(_),this.$updateWrapData(0,_-1)}this._signal("changeWrapMode")}},k.prototype.getUseWrapMode=function(){return this.$useWrapMode},k.prototype.setWrapLimitRange=function(A,_){(this.$wrapLimitRange.min!==A||this.$wrapLimitRange.max!==_)&&(this.$wrapLimitRange={min:A,max:_},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},k.prototype.adjustWrapLimit=function(A,_){var M=this.$wrapLimitRange;M.max<0&&(M={min:_,max:_});var O=this.$constrainWrapLimit(A,M.min,M.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},k.prototype.$constrainWrapLimit=function(A,_,M){return _&&(A=Math.max(_,A)),M&&(A=Math.min(M,A)),A},k.prototype.getWrapLimit=function(){return this.$wrapLimit},k.prototype.setWrapLimit=function(A){this.setWrapLimitRange(A,A)},k.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},k.prototype.$updateInternalDataOnChange=function(A){var _=this.$useWrapMode,M=A.action,O=A.start,F=A.end,H=O.row,z=F.row,V=z-H,q=null;if(this.$updating=!0,V!=0)if(M==="remove"){this[_?"$wrapData":"$rowLengthCache"].splice(H,V);var X=this.$foldData;q=this.getFoldsInRange(A),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 re=this.getFoldLine(H);re&&re!==G&&(re.merge(G),G=re),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-V)}z=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(z,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(A.start.column-A.end.column),M==="remove"&&(q=this.getFoldsInRange(A),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,z):this.$updateRowLengthCache(H,z),q},k.prototype.$updateRowLengthCache=function(A,_){this.$rowLengthCache[A]=null,this.$rowLengthCache[_]=null},k.prototype.$updateWrapData=function(A,_){var M=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,H=this.$wrapLimit,z,V,q=A;for(_=Math.min(_,M.length-1);q<=_;)V=this.getFoldLine(q,V),V?(z=[],V.walk((function(X,G,Z,re){var J;if(X!=null){J=this.$getDisplayTokens(X,z.length),J[0]=C;for(var ae=1;ae<J.length;ae++)J[ae]=b}else J=this.$getDisplayTokens(M[G].substring(re,Z),z.length);z=z.concat(J)}).bind(this),V.end.row,M[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(z,H,O),q=V.end.row+1):(z=this.$getDisplayTokens(M[q]),F[q]=this.$computeWrapSplits(z,H,O),q++)},k.prototype.$computeWrapSplits=function(A,_,M){if(A.length==0)return[];var O=[],F=A.length,H=0,z=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,X=_<=Math.max(2*M,8)||q===!1?0:Math.floor(_/2);function G(){var me=0;if(X===0)return me;if(q)for(var ve=0;ve<A.length;ve++){var ge=A[ve];if(ge==R)me+=1;else if(ge==L)me+=M;else{if(ge==I)continue;break}}return V&&q!==!1&&(me+=M),Math.min(me,X)}function Z(me){for(var ve=me-H,ge=H;ge<me;ge++){var Se=A[ge];(Se===12||Se===2)&&(ve-=1)}O.length||(re=G(),O.indent=re),z+=ve,O.push(z),H=me}for(var re=0;F-H>_-re;){var J=H+_-re;if(A[J-1]>=R&&A[J]>=R){Z(J);continue}if(A[J]==C||A[J]==b){for(J;J!=H-1&&A[J]!=C;J--);if(J>H){Z(J);continue}for(J=H+_,J;J<A.length&&A[J]==b;J++);if(J==A.length)break;Z(J);continue}for(var ae=Math.max(J-(_-(_>>2)),H-1);J>ae&&A[J]<C;)J--;if(V){for(;J>ae&&A[J]<C;)J--;for(;J>ae&&A[J]==T;)J--}else for(;J>ae&&A[J]<R;)J--;if(J>ae){Z(++J);continue}J=H+_,A[J]==S&&J--,Z(J-re)}return O},k.prototype.$getDisplayTokens=function(A,_){var M=[],O;_=_||0;for(var F=0;F<A.length;F++){var H=A.charCodeAt(F);if(H==9){O=this.getScreenTabSize(M.length+_),M.push(L);for(var z=1;z<O;z++)M.push(I)}else H==32?M.push(R):H>39&&H<48||H>57&&H<64?M.push(T):H>=4352&&N(H)?M.push(E,S):M.push(E)}return M},k.prototype.$getStringScreenWidth=function(A,_,M){if(_==0)return[0,0];_==null&&(_=1/0),M=M||0;var O,F;for(F=0;F<A.length&&(O=A.charCodeAt(F),O==9?M+=this.getScreenTabSize(M):O>=4352&&N(O)?M+=2:M+=1,!(M>_));F++);return[M,F]},k.prototype.getRowLength=function(A){var _=1;return this.lineWidgets&&(_+=this.lineWidgets[A]&&this.lineWidgets[A].rowCount||0),!this.$useWrapMode||!this.$wrapData[A]?_:this.$wrapData[A].length+_},k.prototype.getRowLineCount=function(A){return!this.$useWrapMode||!this.$wrapData[A]?1:this.$wrapData[A].length+1},k.prototype.getRowWrapIndent=function(A){if(this.$useWrapMode){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE),M=this.$wrapData[_.row];return M.length&&M[0]<_.column?M.indent:0}else return 0},k.prototype.getScreenLastRowColumn=function(A){var _=this.screenToDocumentPosition(A,Number.MAX_VALUE);return this.documentToScreenColumn(_.row,_.column)},k.prototype.getDocumentLastRowColumn=function(A,_){var M=this.documentToScreenRow(A,_);return this.getScreenLastRowColumn(M)},k.prototype.getDocumentLastRowColumnPosition=function(A,_){var M=this.documentToScreenRow(A,_);return this.screenToDocumentPosition(M,Number.MAX_VALUE/10)},k.prototype.getRowSplitData=function(A){if(this.$useWrapMode)return this.$wrapData[A]},k.prototype.getScreenTabSize=function(A){return this.$tabSize-(A%this.$tabSize|0)},k.prototype.screenToDocumentRow=function(A,_){return this.screenToDocumentPosition(A,_).row},k.prototype.screenToDocumentColumn=function(A,_){return this.screenToDocumentPosition(A,_).column},k.prototype.screenToDocumentPosition=function(A,_,M){if(A<0)return{row:0,column:0};var O,Z=0,F=0,H,G=0,z=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,A),X=V.length;if(X&&q>=0)var G=V[q],Z=this.$docRowCache[q],re=A>V[X-1];else var re=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),me=ae?ae.start.row:1/0;G<=A&&(z=this.getRowLength(Z),!(G+z>A||Z>=J));)G+=z,Z++,Z>me&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),me=ae?ae.start.row:1/0),re&&(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+z<=A||Z>J)return{row:J,column:this.getLine(J).length};O=this.getLine(Z),ae=null}var ve=0,ge=Math.floor(A-G);if(this.$useWrapMode){var Se=this.$wrapData[Z];Se&&(H=Se[ge],ge>0&&Se.length&&(ve=Se.indent,F=Se[ge-1]||Se[Se.length-1],O=O.substring(F)))}return M!==void 0&&this.$bidiHandler.isBidiRow(G+ge,Z,ge)&&(_=this.$bidiHandler.offsetToCol(M)),F+=this.$getStringScreenWidth(O,_-ve)[1],this.$useWrapMode&&F>=H&&(F=H-1),ae?ae.idxToPosition(F):{row:Z,column:F}},k.prototype.documentToScreenPosition=function(A,_){if(typeof _>"u")var M=this.$clipPositionToDocument(A.row,A.column);else M=this.$clipPositionToDocument(A,_);A=M.row,_=M.column;var G=0,O=null,F=null;F=this.getFoldAt(A,_,1),F&&(A=F.start.row,_=F.start.column);var H,X=0,z=this.$docRowCache,V=this.$getRowCacheIndex(z,A),q=z.length;if(q&&V>=0)var X=z[V],G=this.$screenRowCache[V],Z=A>z[q-1];else var Z=!q;for(var re=this.getNextFoldLine(X),J=re?re.start.row:1/0;X<A;){if(X>=J){if(H=re.end.row+1,H>A)break;re=this.getNextFoldLine(H,re),J=re?re.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="";re&&X>=J?(ae=this.getFoldDisplayLine(re,A,_),O=re.start.row):(ae=this.getLine(A).substring(0,_),O=A);var me=0;if(this.$useWrapMode){var ve=this.$wrapData[O];if(ve){for(var ge=0;ae.length>=ve[ge];)G++,ge++;ae=ae.substring(ve[ge-1]||0,ae.length),me=ge>0?ve.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]}},k.prototype.documentToScreenColumn=function(A,_){return this.documentToScreenPosition(A,_).column},k.prototype.documentToScreenRow=function(A,_){return this.documentToScreenPosition(A,_).row},k.prototype.getScreenLength=function(){var A=0,_=null;if(this.$useWrapMode)for(var M=this.$wrapData.length,O=0,F=0,_=this.$foldData[F++],H=_?_.start.row:1/0;O<M;){var z=this.$wrapData[O];A+=z?z.length+1:1,O++,O>H&&(O=_.end.row+1,_=this.$foldData[F++],H=_?_.start.row:1/0)}else{A=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)_=V[F],A-=_.end.row-_.start.row}return this.lineWidgets&&(A+=this.$getWidgetScreenLength()),A},k.prototype.$setFontMetrics=function(A){this.$enableVarChar&&(this.$getStringScreenWidth=function(_,M,O){if(M===0)return[0,0];M||(M=1/0),O=O||0;var F,H;for(H=0;H<_.length&&(F=_.charAt(H),F===" "?O+=this.getScreenTabSize(O):O+=A.getCharacterWidth(F),!(O>M));H++);return[O,H]})},k.prototype.getPrecedingCharacter=function(){var A=this.selection.getCursor();if(A.column===0)return A.row===0?"":this.doc.getNewLineCharacter();var _=this.getLine(A.row);return _[A.column-1]},k.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()},k}();x.$uid=0,x.prototype.$modes=u.$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,p);var E=1,S=2,C=3,b=4,T=9,R=10,L=11,I=12;function N(k){return k<4352?!1:k>=4352&&k<=4447||k>=4515&&k<=4519||k>=4602&&k<=4607||k>=9001&&k<=9002||k>=11904&&k<=11929||k>=11931&&k<=12019||k>=12032&&k<=12245||k>=12272&&k<=12283||k>=12288&&k<=12350||k>=12353&&k<=12438||k>=12441&&k<=12543||k>=12549&&k<=12589||k>=12593&&k<=12686||k>=12688&&k<=12730||k>=12736&&k<=12771||k>=12784&&k<=12830||k>=12832&&k<=12871||k>=12880&&k<=13054||k>=13056&&k<=19903||k>=19968&&k<=42124||k>=42128&&k<=42182||k>=43360&&k<=43388||k>=44032&&k<=55203||k>=55216&&k<=55238||k>=55243&&k<=55291||k>=63744&&k<=64255||k>=65040&&k<=65049||k>=65072&&k<=65106||k>=65108&&k<=65126||k>=65128&&k<=65131||k>=65281&&k<=65376||k>=65504&&k<=65510}t("./edit_session/folding").Folding.call(x.prototype),t("./edit_session/bracket_match").BracketMatch.call(x.prototype),u.defineOptions(x.prototype,"session",{wrap:{set:function(k){if(!k||k=="off"?k=!1:k=="free"?k=!0:k=="printMargin"?k=-1:typeof k=="string"&&(k=parseInt(k,10)||!1),this.$wrap!=k)if(this.$wrap=k,!k)this.setUseWrapMode(!1);else{var A=typeof k=="number"?k:null;this.setWrapLimitRange(A,A),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(k){k=k=="auto"?this.$mode.type!="text":k!="text",k!=this.$wrapAsCode&&(this.$wrapAsCode=k,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(k){this.$useWorker=k,this.$stopWorker(),k&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(k){k=parseInt(k),k>0&&this.$tabSize!==k&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=k,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(k){this.setFoldStyle(k)},handlesSet:!0},overwrite:{set:function(k){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(k){this.doc.setNewLineMode(k)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(k){this.setMode(k)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,r,d){var h=t("./lib/lang"),g=t("./lib/oop"),v=t("./range").Range,u=function(){function s(){this.$options={}}return s.prototype.set=function(l){return g.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(f,y,w,x){return o=new v(f,y,w,x),y==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(),f=[],y=a.re;if(a.$isMultiLine){var w=y.length,x=o.length-w,E;e:for(var S=y.offset||0;S<=x;S++){for(var C=0;C<w;C++)if(o[S+C].search(y[C])==-1)continue e;var b=o[S],T=o[S+w-1],R=b.length-b.match(y[0])[0].length,L=T.match(y[w-1])[0].length;E&&E.end.row===S&&E.end.column>R||(f.push(E=new v(S,R,S+w-1,L)),w>2&&(S=S+w-2))}}else for(var I=0;I<o.length;I++)for(var N=h.getMatchOffsets(o[I],y),C=0;C<N.length;C++){var k=N[C];f.push(new v(I,k.offset,I,k.offset+k.length))}if(c){for(var A=c.start.column,_=c.end.column,I=0,C=f.length-1;I<C&&f[I].start.column<A&&f[I].start.row==0;)I++;for(var M=c.end.row-c.start.row;I<C&&f[C].end.column>_&&f[C].end.row==M;)C--;for(f=f.slice(I,C+1),I=0,C=f.length;I<C;I++)f[I].start.row+=c.start.row,f[I].end.row+=c.start.row}return f},s.prototype.replace=function(l,a){var c=this.$options,o=this.$assembleRegExp(c);if(c.$isMultiLine)return a;if(o){var f=o.exec(l);if(!f||f[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 y=Math.min(l.length,l.length);y--;){var w=l[y];w&&w.toLowerCase()!=w?a[y]=a[y].toUpperCase():a[y]=a[y].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=p(c,l)),l.$isMultiLine=!a&&/[\n\r]/.test(c),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(c,o);try{var f=new RegExp(c,o)}catch{f=!1}return l.re=f},s.prototype.$assembleMultilineRegExp=function(l,a){for(var c=l.replace(/\r\n|\r|\n/g,`$
|
199
|
-
^`).split(`
|
200
|
-
`),o=[],f=0;f<c.length;f++)try{o.push(new RegExp(c[f],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,f=a.skipCurrent!=!1,y=c.unicode,w=a.range,x=a.start;x||(x=w?w[o?"end":"start"]:l.selection.getRange()),x.start&&(x=x[f!=o?"end":"start"]);var E=w?w.start.row:0,S=w?w.end.row:l.getLength()-1;if(o)var C=function(R){var L=x.row;if(!T(L,x.column,R)){for(L--;L>=E;L--)if(T(L,Number.MAX_VALUE,R))return;if(a.wrap!=!1){for(L=S,E=x.row;L>=E;L--)if(T(L,Number.MAX_VALUE,R))return}}};else var C=function(R){var L=x.row;if(!T(L,x.column,R)){for(L=L+1;L<=S;L++)if(T(L,0,R))return;if(a.wrap!=!1){for(L=E,S=x.row;L<=S;L++)if(T(L,0,R))return}}};if(a.$isMultiLine)var b=c.length,T=function(R,L,I){var N=o?R-b+1:R;if(!(N<0||N+b>l.getLength())){var k=l.getLine(N),A=k.search(c[0]);if(!(!o&&A<L||A===-1)){for(var _=1;_<b;_++)if(k=l.getLine(N+_),k.search(c[_])==-1)return;var M=k.match(c[b-1])[0].length;if(!(o&&M>L)&&I(N,A,N+b-1,M))return!0}}};else if(o)var T=function(R,L,I){var N=l.getLine(R),k=[],A,_=0;for(c.lastIndex=0;A=c.exec(N);){var M=A[0].length;if(_=A.index,!M){if(_>=N.length)break;c.lastIndex=_+=h.skipEmptyMatch(N,_,y)}if(A.index+M>L)break;k.push(A.index,M)}for(var O=k.length-1;O>=0;O-=2){var F=k[O-1],M=k[O];if(I(R,F,R,F+M))return!0}};else var T=function(R,L,I){var N=l.getLine(R),k,A;for(c.lastIndex=L;A=c.exec(N);){var _=A[0].length;if(k=A.index,I(R,k,R,k+_))return!0;if(!_&&(c.lastIndex=k+=h.skipEmptyMatch(N,k,y),k>=N.length))return!1}};return{forEach:C}},s}();function p(s,l){var a=h.supportsLookbehind();function c(w,x){x===void 0&&(x=!0);var E=a&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return E.test(w)||l.regExp?a&&l.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),f=o[0],y=o[o.length-1];return c(f)+s+c(y,!1)}r.Search=u}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,d){var h=this&&this.__extends||function(){var a=function(c,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,y){f.__proto__=y}||function(f,y){for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(f[w]=y[w])},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 f(){this.constructor=c}c.prototype=o===null?Object.create(o):(f.prototype=o.prototype,new f)}}(),g=t("../lib/keys"),v=t("../lib/useragent"),u=g.KEY_MODS,p=function(){function a(c,o){this.$init(c,o,!1)}return a.prototype.$init=function(c,o,f){this.platform=o||(v.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=f},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 f=c&&(typeof c=="string"?c:c.name);c=this.commands[f],o||delete this.commands[f];var y=this.commandKeyBinding;for(var w in y){var x=y[w];if(x==c)delete y[w];else if(Array.isArray(x)){var E=x.indexOf(c);E!=-1&&(x.splice(E,1),x.length==1&&(y[w]=x[0]))}}},a.prototype.bindKey=function(c,o,f){if(typeof c=="object"&&c&&(f==null&&(f=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(y){var w="";if(y.indexOf(" ")!=-1){var x=y.split(/\s+/);y=x.pop(),x.forEach(function(C){var b=this.parseKeys(C),T=u[b.hashId]+b.key;w+=(w?" ":"")+T,this._addCommandToBinding(w,"chainKeys")},this),w+=" "}var E=this.parseKeys(y),S=u[E.hashId]+E.key;this._addCommandToBinding(w+S,o,f)},this)}},a.prototype._addCommandToBinding=function(c,o,f){var y=this.commandKeyBinding,w;if(!o)delete y[c];else if(!y[c]||this.$singleCommand)y[c]=o;else{Array.isArray(y[c])?(w=y[c].indexOf(o))!=-1&&y[c].splice(w,1):y[c]=[y[c]],typeof f!="number"&&(f=s(o));var x=y[c];for(w=0;w<x.length;w++){var E=x[w],S=s(E);if(S>f)break}x.splice(w,0,o)}},a.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(o){var f=c[o];if(f){if(typeof f=="string")return this.bindKey(f,o);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=o),this.addCommand(f))}},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(S){return S}),f=o.pop(),y=g[f];if(g.FUNCTION_KEYS[y])f=g.FUNCTION_KEYS[y].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var w=0,x=o.length;x--;){var E=g.KEY_MODS[o[x]];if(E==null)return typeof console<"u"&&console.error("invalid modifier "+o[x]+" in "+c),!1;w|=E}return{key:f,hashId:w}},a.prototype.findKeyCommand=function(c,o){var f=u[c]+o;return this.commandKeyBinding[f]},a.prototype.handleKeyboard=function(c,o,f,y){if(!(y<0)){var w=u[o]+f,x=this.commandKeyBinding[w];return c.$keyChain&&(c.$keyChain+=" "+w,x=this.commandKeyBinding[c.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||w,{command:"null"}):(c.$keyChain&&((!o||o==4)&&f.length==1?c.$keyChain=c.$keyChain.slice(0,-w.length-1):(o==-1||y>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,f){var y=a.call(this,o,f)||this;return y.$singleCommand=!0,y}return c}(p);l.call=function(a,c,o){p.prototype.$init.call(a,c,o,!0)},p.call=function(a,c,o){p.prototype.$init.call(a,c,o,!1)},r.HashHandler=l,r.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,r,d){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 f in o)Object.prototype.hasOwnProperty.call(o,f)&&(c[f]=o[f])},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)}}(),g=t("../lib/oop"),v=t("../keyboard/hash_handler").MultiHashHandler,u=t("../lib/event_emitter").EventEmitter,p=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(f){return f.args?f.command.exec(f.editor,f.args,f.event,!1):f.command.exec(f.editor,{},f.event,!0)}),o}return l.prototype.exec=function(a,c,o){if(Array.isArray(a)){for(var f=a.length;f--;)if(this.exec(a[f],c,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,c))return!1;var y={editor:c,command:a,args:o};return y.returnValue=this._emit("exec",y),this._signal("afterExec",y),y.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}(v);g.implement(p.prototype,u),r.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,r,d){var h=t("../lib/lang"),g=t("../config"),v=t("../range").Range;function u(s,l){return{win:s,mac:l}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:u("Ctrl-,","Command-,"),exec:function(s){g.loadModule("ace/ext/settings_menu",function(l){l.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:u("Alt-E","F4"),exec:function(s){g.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:u("Alt-Shift-E","Shift-F4"),exec:function(s){g.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:u("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:u(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:u("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:u("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:u("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:u("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:u("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:u(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:u("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:u("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:u("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:u("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:u("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:u("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:u("Ctrl-F","Command-F"),exec:function(s){g.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:u("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:u("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:u("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:u("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:u("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:u("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:u("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:u("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:u("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:u("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:u("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:u("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:u("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:u("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:u("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:u("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:u("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:u("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:u("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:u("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:u(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:u("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:u(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:u("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:u("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:u("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:u("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:u("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:u("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:u("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:u(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:u("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:u("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:u("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:u("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:u("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:u("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:u("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:u("Ctrl-H","Command-Option-F"),exec:function(s){g.loadModule("ace/ext/searchbox",function(l){l.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:u("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:u("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:u("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:u("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:u("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:u("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:u("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:u("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:u("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:u("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:u("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:u("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:u("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:u("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:u("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:u("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:u("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:u("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:u("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:u(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:u("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:u("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:u("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:u(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:u("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:u("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:u(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,f=s.session.doc.getTextRange(s.selection.getRange()),y=f.replace(/\n\s*/," ").length,w=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),w+=E}c.row+1<s.session.doc.getLength()-1&&(w+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new v(a.row,0,c.row+2,0),w),y>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+y)):(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:u(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 f=0;f<c.length;f++)f==c.length-1&&(c[f].end.row===l&&c[f].end.column===a||o.push(new v(c[f].end.row,c[f].end.column,l,a))),f===0?c[f].start.row===0&&c[f].start.column===0||o.push(new v(0,0,c[f].start.row,c[f].start.column)):o.push(new v(c[f-1].end.row,c[f-1].end.column,c[f].start.row,c[f].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var f=0;f<o.length;f++)s.selection.addRange(o[f],!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:u("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:u(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var p=1;p<9;p++)r.commands.push({name:"foldToLevel"+p,description:"Fold To Level "+p,level:p,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,r,d){var h=t("../lib/keys"),g=t("../mouse/default_gutter_handler").GutterTooltip,v=function(){function p(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 g(this.editor)}return p.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))},p.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))},p.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 u(s,this))}).bind(this),10)},p.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}},p.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()},p.prototype.$isFoldWidgetVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return l&&a},p.prototype.$isAnnotationVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return l&&a},p.prototype.$getFoldWidget=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[1]},p.prototype.$getAnnotation=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[2]},p.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},p.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},p.prototype.$focusFoldWidget=function(s){if(s!=null){var l=this.$getFoldWidget(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},p.prototype.$focusAnnotation=function(s){if(s!=null){var l=this.$getAnnotation(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},p.prototype.$blurFoldWidget=function(s){var l=this.$getFoldWidget(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},p.prototype.$blurAnnotation=function(s){var l=this.$getAnnotation(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},p.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}},p.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}},p.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}},p.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}},p.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}},p.prototype.$rowIndexToRow=function(s){var l=this.lines.get(s);return l?l.row:null},p.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},p}();r.GutterKeyboardHandler=v;var u=function(){function p(s,l){this.gutterKeyboardHandler=l,this.domEvent=s}return p.prototype.getKey=function(){return h.keyCodeToString(this.domEvent.keyCode)},p.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},p.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},p.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},p}();r.GutterKeyboardEvent=u}),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,r,d){var h=this&&this.__values||function(k){var A=typeof Symbol=="function"&&Symbol.iterator,_=A&&k[A],M=0;if(_)return _.call(k);if(k&&typeof k.length=="number")return{next:function(){return k&&M>=k.length&&(k=void 0),{value:k&&k[M++],done:!k}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")},g=t("./lib/oop"),v=t("./lib/dom"),u=t("./lib/lang"),p=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,f=t("./search").Search,y=t("./range").Range,w=t("./lib/event_emitter").EventEmitter,x=t("./commands/command_manager").CommandManager,E=t("./commands/default_commands").commands,S=t("./config"),C=t("./token_iterator").TokenIterator,b=t("./keyboard/gutter_handler").GutterKeyboardHandler,T=t("./config").nls,R=t("./clipboard"),L=t("./lib/keys"),I=function(){function k(A,_,M){this.session,this.$toDestroy=[];var O=A.getContainerElement();this.container=O,this.renderer=A,this.id="editor"+ ++k.$uid,this.commands=new x(p.isMac?"mac":"win",E),typeof document=="object"&&(this.textInput=new s(A.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new a(this)),this.keyBinding=new c(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=u.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(_||M&&M.session||new o("")),S.resetOptions(this),M&&this.setOptions(M),S._signal("editor",this)}return k.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},k.prototype.startOperation=function(A){this.session.startOperation(A)},k.prototype.endOperation=function(A){this.session.endOperation(A)},k.prototype.onStartOperation=function(A){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,A||(this.previousCommand=null)},k.prototype.onEndOperation=function(A){if(this.curOp&&this.session){if(A&&A.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var _=this.curOp.command,M=_&&_.scrollIntoView;if(M){switch(M){case"center-animate":M="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}M=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},k.prototype.$historyTracker=function(A){if(this.$mergeUndoDeltas){var _=this.prevOp,M=this.$mergeableCommands,O=_.command&&A.command.name==_.command.name;if(A.command.name=="insertstring"){var F=A.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(_.args)),this.mergeNextCommand=!0}else O=O&&M.indexOf(A.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:M.indexOf(A.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},k.prototype.setKeyboardHandler=function(A,_){if(A&&typeof A=="string"&&A!="ace"){this.$keybindingId=A;var M=this;S.loadModule(["keybinding",A],function(O){M.$keybindingId==A&&M.keyBinding.setKeyboardHandler(O&&O.handler),_&&_()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(A),_&&_()},k.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},k.prototype.setSession=function(A){if(this.session!=A){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 M=this.session.getSelection();M.off("changeCursor",this.$onCursorChange),M.off("changeSelection",this.$onSelectionChange)}this.session=A,A?(this.$onDocumentChange=this.onDocumentChange.bind(this),A.on("change",this.$onDocumentChange),this.renderer.setSession(A),this.$onChangeMode=this.onChangeMode.bind(this),A.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),A.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),A.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),A.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),A.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),A.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=A.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(A)),this._signal("changeSession",{session:A,oldSession:_}),this.curOp=null,_&&_._signal("changeEditor",{oldEditor:this}),_&&(_.$editor=null),A&&A._signal("changeEditor",{editor:this}),A&&(A.$editor=this),A&&!A.destroyed&&A.bgTokenizer.scheduleStart()}},k.prototype.getSession=function(){return this.session},k.prototype.setValue=function(A,_){return this.session.doc.setValue(A),_?_==1?this.navigateFileEnd():_==-1&&this.navigateFileStart():this.selectAll(),A},k.prototype.getValue=function(){return this.session.getValue()},k.prototype.getSelection=function(){return this.selection},k.prototype.resize=function(A){this.renderer.onResize(A)},k.prototype.setTheme=function(A,_){this.renderer.setTheme(A,_)},k.prototype.getTheme=function(){return this.renderer.getTheme()},k.prototype.setStyle=function(A){this.renderer.setStyle(A)},k.prototype.unsetStyle=function(A){this.renderer.unsetStyle(A)},k.prototype.getFontSize=function(){return this.getOption("fontSize")||v.computedStyle(this.container).fontSize},k.prototype.setFontSize=function(A){this.setOption("fontSize",A)},k.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var A=this;this.$highlightPending=!0,setTimeout(function(){A.$highlightPending=!1;var _=A.session;if(!(!_||_.destroyed)){_.$bracketHighlight&&(_.$bracketHighlight.markerIds.forEach(function(G){_.removeMarker(G)}),_.$bracketHighlight=null);var M=A.getCursorPosition(),O=A.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(A),H=_.getMatchingBracketRanges(M,F);if(!H){var z=new C(_,M.row,M.column),V=z.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=_.getMatchingTags(M);q&&(H=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!H&&_.$mode.getMatching&&(H=_.$mode.getMatching(A.session)),!H){A.getHighlightIndentGuides()&&A.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(H)?H.length==1&&(X="ace_error_bracket"):H=[H],H.length==2&&(y.comparePoints(H[0].end,H[1].start)==0?H=[y.fromPoints(H[0].start,H[1].end)]:y.comparePoints(H[0].start,H[1].end)==0&&(H=[y.fromPoints(H[1].start,H[0].end)])),_.$bracketHighlight={ranges:H,markerIds:H.map(function(G){return _.addMarker(G,X,"text")})},A.getHighlightIndentGuides()&&A.renderer.$textLayer.$highlightIndentGuide()}},50)}},k.prototype.focus=function(){this.textInput.focus()},k.prototype.isFocused=function(){return this.textInput.isFocused()},k.prototype.blur=function(){this.textInput.blur()},k.prototype.onFocus=function(A){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",A))},k.prototype.onBlur=function(A){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",A))},k.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},k.prototype.onDocumentChange=function(A){var _=this.session.$useWrapMode,M=A.start.row==A.end.row?A.end.row:1/0;this.renderer.updateLines(A.start.row,M,_),this._signal("change",A),this.$cursorChange()},k.prototype.onTokenizerUpdate=function(A){var _=A.data;this.renderer.updateLines(_.first,_.last)},k.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},k.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},k.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},k.prototype.$updateHighlightActiveLine=function(){var A=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)),A.$highlightLineMarker&&!_)A.removeMarker(A.$highlightLineMarker.id),A.$highlightLineMarker=null;else if(!A.$highlightLineMarker&&_){var M=new y(_.row,_.column,_.row,1/0);M.id=A.addMarker(M,"ace_active-line","screenLine"),A.$highlightLineMarker=M}else _&&(A.$highlightLineMarker.start.row=_.row,A.$highlightLineMarker.end.row=_.row,A.$highlightLineMarker.start.column=_.column,A._signal("changeBackMarker"))},k.prototype.onSelectionChange=function(A){var _=this.session;if(_.$selectionMarker&&_.removeMarker(_.$selectionMarker),_.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var M=this.selection.getRange(),O=this.getSelectionStyle();_.$selectionMarker=_.addMarker(M,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},k.prototype.$getSelectionHighLightRegexp=function(){var A=this.session,_=this.getSelectionRange();if(!(_.isEmpty()||_.isMultiLine())){var M=_.start.column,O=_.end.column,F=A.getLine(_.start.row),H=F.substring(M,O);if(!(H.length>5e3||!/[\w\d]/.test(H))){var z=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:H}),V=F.substring(M-1,O+1);if(z.test(V))return z}}},k.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},k.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},k.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},k.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},k.prototype.onChangeMode=function(A){this.renderer.updateText(),this._emit("changeMode",A)},k.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},k.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},k.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},k.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},k.prototype.getCopyText=function(){var A=this.getSelectedText(),_=this.session.doc.getNewLineCharacter(),M=!1;if(!A&&this.$copyWithEmptySelection){M=!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||(A+=this.session.getLine(H.start.row)+_)}}var z={text:A};return this._signal("copy",z),R.lineMode=M?z.text:!1,z.text},k.prototype.onCopy=function(){this.commands.exec("copy",this)},k.prototype.onCut=function(){this.commands.exec("cut",this)},k.prototype.onPaste=function(A,_){var M={text:A,event:_};this.commands.exec("paste",this,M)},k.prototype.$handlePaste=function(A){typeof A=="string"&&(A={text:A}),this._signal("paste",A);var _=A.text,M=_===R.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)M?O.insert({row:this.selection.lead.row,column:0},_):this.insert(_);else if(M)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,z=F.length==2&&(!F[0]||!F[1]);if(F.length!=H.length||z)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])}}},k.prototype.execCommand=function(A,_){return this.commands.exec(A,this,_)},k.prototype.insert=function(A,_){var M=this.session,O=M.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!_){var H=O.transformAction(M.getState(F.row),"insertion",this,M,A);H&&(A!==H.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),A=H.text)}if(A==" "&&(A=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&A.indexOf(`
|
203
|
-
`)==-1){var z=y.fromPoints(F,F);z.end.column+=A.length,this.session.remove(z)}}else{var z=this.getSelectionRange();F=this.session.remove(z),this.clearSelection()}if(A==`
|
204
|
-
`||A==`\r
|
205
|
-
`){var G=M.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);M.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,X=M.getState(F.row),G=M.getLine(F.row),Z=O.checkOutdent(X,G,A);if(M.insert(F,A),H&&H.selection&&(H.selection.length==2?this.selection.setSelectionRange(new y(F.row,q+H.selection[0],F.row,q+H.selection[1])):this.selection.setSelectionRange(new y(F.row+H.selection[0],H.selection[1],F.row+H.selection[2],H.selection[3]))),this.$enableAutoIndent){if(M.getDocument().isNewLine(A)){var re=O.getNextLineIndent(X,G.slice(0,F.column),M.getTabString());M.insert({row:F.row+1,column:0},re)}Z&&O.autoOutdent(X,M,F.row)}},k.prototype.autoIndent=function(){for(var A=this.session,_=A.getMode(),M=this.selection.isEmpty()?[new y(0,0,A.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",H="",z=A.getTabString(),V=0;V<M.length;V++)for(var q=M[V].start.row,X=M[V].end.row,G=q;G<=X;G++){G>0&&(O=A.getState(G-1),F=A.getLine(G-1),H=_.getNextLineIndent(O,F,z));var Z=A.getLine(G),re=_.$getIndent(Z);if(H!==re){if(re.length>0){var J=new y(G,0,G,re.length);A.remove(J)}H.length>0&&A.insert({row:G,column:0},H)}_.autoOutdent(O,A,G)}},k.prototype.onTextInput=function(A,_){if(!_)return this.keyBinding.onTextInput(A);this.startOperation({command:{name:"insertstring"}});var M=this.applyComposition.bind(this,A,_);this.selection.rangeCount?this.forEachSelection(M):M(),this.endOperation()},k.prototype.applyComposition=function(A,_){if(_.extendLeft||_.extendRight){var M=this.selection.getRange();M.start.column-=_.extendLeft,M.end.column+=_.extendRight,M.start.column<0&&(M.start.row--,M.start.column+=this.session.getLine(M.start.row).length+1),this.selection.setRange(M),!A&&!M.isEmpty()&&this.remove()}if((A||!this.selection.isEmpty())&&this.insert(A,!0),_.restoreStart||_.restoreEnd){var M=this.selection.getRange();M.start.column-=_.restoreStart,M.end.column-=_.restoreEnd,this.selection.setRange(M)}},k.prototype.onCommandKey=function(A,_,M){return this.keyBinding.onCommandKey(A,_,M)},k.prototype.setOverwrite=function(A){this.session.setOverwrite(A)},k.prototype.getOverwrite=function(){return this.session.getOverwrite()},k.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},k.prototype.setScrollSpeed=function(A){this.setOption("scrollSpeed",A)},k.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},k.prototype.setDragDelay=function(A){this.setOption("dragDelay",A)},k.prototype.getDragDelay=function(){return this.getOption("dragDelay")},k.prototype.setSelectionStyle=function(A){this.setOption("selectionStyle",A)},k.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},k.prototype.setHighlightActiveLine=function(A){this.setOption("highlightActiveLine",A)},k.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},k.prototype.setHighlightGutterLine=function(A){this.setOption("highlightGutterLine",A)},k.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},k.prototype.setHighlightSelectedWord=function(A){this.setOption("highlightSelectedWord",A)},k.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},k.prototype.setAnimatedScroll=function(A){this.renderer.setAnimatedScroll(A)},k.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},k.prototype.setShowInvisibles=function(A){this.renderer.setShowInvisibles(A)},k.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},k.prototype.setDisplayIndentGuides=function(A){this.renderer.setDisplayIndentGuides(A)},k.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},k.prototype.setHighlightIndentGuides=function(A){this.renderer.setHighlightIndentGuides(A)},k.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},k.prototype.setShowPrintMargin=function(A){this.renderer.setShowPrintMargin(A)},k.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},k.prototype.setPrintMarginColumn=function(A){this.renderer.setPrintMarginColumn(A)},k.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},k.prototype.setReadOnly=function(A){this.setOption("readOnly",A)},k.prototype.getReadOnly=function(){return this.getOption("readOnly")},k.prototype.setBehavioursEnabled=function(A){this.setOption("behavioursEnabled",A)},k.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},k.prototype.setWrapBehavioursEnabled=function(A){this.setOption("wrapBehavioursEnabled",A)},k.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},k.prototype.setShowFoldWidgets=function(A){this.setOption("showFoldWidgets",A)},k.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},k.prototype.setFadeFoldWidgets=function(A){this.setOption("fadeFoldWidgets",A)},k.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},k.prototype.remove=function(A){this.selection.isEmpty()&&(A=="left"?this.selection.selectLeft():this.selection.selectRight());var _=this.getSelectionRange();if(this.getBehavioursEnabled()){var M=this.session,O=M.getState(_.start.row),F=M.getMode().transformAction(O,"deletion",this,M,_);if(_.end.column===0){var H=M.getTextRange(_);if(H[H.length-1]==`
|
206
|
-
`){var z=M.getLine(_.end.row);/^\s+$/.test(z)&&(_.end.column=z.length)}}F&&(_=F)}this.session.remove(_),this.clearSelection()},k.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},k.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},k.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},k.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var A=this.getSelectionRange();A.start.column==A.end.column&&A.start.row==A.end.row&&(A.end.column=0,A.end.row++),this.session.remove(A),this.clearSelection()},k.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var A=this.getCursorPosition();this.insert(`
|
207
|
-
`),this.moveCursorToPosition(A)},k.prototype.setGhostText=function(A,_){this.renderer.setGhostText(A,_)},k.prototype.removeGhostText=function(){this.renderer.removeGhostText()},k.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var A=this.getCursorPosition(),_=A.column;if(_!==0){var M=this.session.getLine(A.row),O,F;_<M.length?(O=M.charAt(_)+M.charAt(_-1),F=new y(A.row,_-1,A.row,_+1)):(O=M.charAt(_-1)+M.charAt(_-2),F=new y(A.row,_-2,A.row,_)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},k.prototype.toLowerCase=function(){var A=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var _=this.getSelectionRange(),M=this.session.getTextRange(_);this.session.replace(_,M.toLowerCase()),this.selection.setSelectionRange(A)},k.prototype.toUpperCase=function(){var A=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var _=this.getSelectionRange(),M=this.session.getTextRange(_);this.session.replace(_,M.toUpperCase()),this.selection.setSelectionRange(A)},k.prototype.indent=function(){var A=this.session,_=this.getSelectionRange();if(_.start.row<_.end.row){var M=this.$getSelectedRows();A.indentRows(M.first,M.last," ");return}else if(_.start.column<_.end.column){var O=A.getTextRange(_);if(!/^\s+$/.test(O)){var M=this.$getSelectedRows();A.indentRows(M.first,M.last," ");return}}var F=A.getLine(_.start.row),H=_.start,z=A.getTabSize(),V=A.documentToScreenColumn(H.row,H.column);if(this.session.getUseSoftTabs())var q=z-V%z,X=u.stringRepeat(" ",q);else{for(var q=V%z;F[_.start.column-1]==" "&&q;)_.start.column--,q--;this.selection.setSelectionRange(_),X=" "}return this.insert(X)},k.prototype.blockIndent=function(){var A=this.$getSelectedRows();this.session.indentRows(A.first,A.last," ")},k.prototype.blockOutdent=function(){var A=this.session.getSelection();this.session.outdentRows(A.getRange())},k.prototype.sortLines=function(){for(var A=this.$getSelectedRows(),_=this.session,M=[],O=A.first;O<=A.last;O++)M.push(_.getLine(O));M.sort(function(z,V){return z.toLowerCase()<V.toLowerCase()?-1:z.toLowerCase()>V.toLowerCase()?1:0});for(var F=new y(0,0,0,0),O=A.first;O<=A.last;O++){var H=_.getLine(O);F.start.row=O,F.end.row=O,F.end.column=H.length,_.replace(F,M[O-A.first])}},k.prototype.toggleCommentLines=function(){var A=this.session.getState(this.getCursorPosition().row),_=this.$getSelectedRows();this.session.getMode().toggleCommentLines(A,this.session,_.first,_.last)},k.prototype.toggleBlockComment=function(){var A=this.getCursorPosition(),_=this.session.getState(A.row),M=this.getSelectionRange();this.session.getMode().toggleBlockComment(_,this.session,M,A)},k.prototype.getNumberAt=function(A,_){var M=/[\-]?[0-9]+(?:\.[0-9]+)?/g;M.lastIndex=0;for(var O=this.session.getLine(A);M.lastIndex<_;){var F=M.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},k.prototype.modifyNumber=function(A){var _=this.selection.getCursor().row,M=this.selection.getCursor().column,O=new y(_,M-1,_,M),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var H=this.getNumberAt(_,M);if(H){var z=H.value.indexOf(".")>=0?H.start+H.value.indexOf(".")+1:H.end,V=H.start+H.value.length-z,q=parseFloat(H.value);q*=Math.pow(10,V),z!==H.end&&M<z?A*=Math.pow(10,H.end-M-1):A*=Math.pow(10,H.end-M),q+=A,q/=Math.pow(10,V);var X=q.toFixed(V),G=new y(_,H.start,_,H.end);this.session.replace(G,X),this.moveCursorTo(_,Math.max(H.start+1,M+X.length-H.value.length))}}else this.toggleWord()},k.prototype.toggleWord=function(){var A=this.selection.getCursor().row,_=this.selection.getCursor().column;this.selection.selectWord();var M=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=M.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),H=_-O-1;H<0&&(H=0);var z=0,V=0,q=this;M.match(/[A-Za-z0-9_]+/)&&F.forEach(function(ge,Se){V=z+ge.length,H>=z&&H<=V&&(M=ge,q.selection.clearSelection(),q.moveCursorTo(A,z+O),q.selection.selectTo(A,V+O)),z=V});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var re=X[Z],J=0;J<=1;J++){var ae=+!J,me=M.match(new RegExp("^\\s?_?("+u.escapeRegExp(re[J])+")\\s?$","i"));if(me){var ve=M.match(new RegExp("([_]|^|\\s)("+u.escapeRegExp(me[1])+")($|\\s)","g"));ve&&(G=M.replace(new RegExp(u.escapeRegExp(re[J]),"i"),function(ge){var Se=re[ae];return ge.toUpperCase()==ge?Se=Se.toUpperCase():ge.charAt(0).toUpperCase()==ge.charAt(0)&&(Se=Se.substr(0,0)+re[ae].charAt(0).toUpperCase()+Se.substr(1)),Se}),this.insert(G),G="")}}},k.prototype.findLinkAt=function(A,_){var M,O,F=this.session.getLine(A),H=F.split(/((?:https?|ftp):\/\/[\S]+)/),z=_;z<0&&(z=0);var V=0,q=0,X;try{for(var G=h(H),Z=G.next();!Z.done;Z=G.next()){var re=Z.value;if(q=V+re.length,z>=V&&z<=q&&re.match(/((?:https?|ftp):\/\/[\S]+)/)){X=re.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(J){M={error:J}}finally{try{Z&&!Z.done&&(O=G.return)&&O.call(G)}finally{if(M)throw M.error}}return X},k.prototype.openLink=function(){var A=this.selection.getCursor(),_=this.findLinkAt(A.row,A.column);return _&&window.open(_,"_blank"),_!=null},k.prototype.removeLines=function(){var A=this.$getSelectedRows();this.session.removeFullLines(A.first,A.last),this.clearSelection()},k.prototype.duplicateSelection=function(){var A=this.selection,_=this.session,M=A.getRange(),O=A.isBackwards();if(M.isEmpty()){var F=M.start.row;_.duplicateLines(F,F)}else{var H=O?M.start:M.end,z=_.insert(H,_.getTextRange(M));M.start=H,M.end=z,A.setSelectionRange(M,O)}},k.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},k.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},k.prototype.moveText=function(A,_,M){return this.session.moveText(A,_,M)},k.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},k.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},k.prototype.$moveLines=function(A,_){var M,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var H=F.toOrientedRange();M=this.$getSelectedRows(H),O=this.session.$moveLines(M.first,M.last,_?0:A),_&&A==-1&&(O=0),H.moveBy(O,0),F.fromOrientedRange(H)}else{var z=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,X=z.length,G=0;G<X;G++){var Z=G;z[G].moveBy(V,0),M=this.$getSelectedRows(z[G]);for(var re=M.first,J=M.last;++G<X;){q&&z[G].moveBy(q,0);var ae=this.$getSelectedRows(z[G]);if(_&&ae.first!=J||!_&&ae.first>J+1)break;J=ae.last}for(G--,V=this.session.$moveLines(re,J,_?0:A),_&&A==-1&&(Z=G+1);Z<=G;)z[Z].moveBy(V,0),Z++;_||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},k.prototype.$getSelectedRows=function(A){return A=(A||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(A.start.row),last:this.session.getRowFoldEnd(A.end.row)}},k.prototype.onCompositionStart=function(A){this.renderer.showComposition(A)},k.prototype.onCompositionUpdate=function(A){this.renderer.setCompositionText(A)},k.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},k.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},k.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},k.prototype.isRowVisible=function(A){return A>=this.getFirstVisibleRow()&&A<=this.getLastVisibleRow()},k.prototype.isRowFullyVisible=function(A){return A>=this.renderer.getFirstFullyVisibleRow()&&A<=this.renderer.getLastFullyVisibleRow()},k.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},k.prototype.$moveByPage=function(A,_){var M=this.renderer,O=this.renderer.layerConfig,F=A*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=M.scrollTop;M.scrollBy(0,F*O.lineHeight),_!=null&&M.scrollCursorIntoView(null,.5),M.animateScrolling(H)},k.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},k.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},k.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},k.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},k.prototype.scrollPageDown=function(){this.$moveByPage(1)},k.prototype.scrollPageUp=function(){this.$moveByPage(-1)},k.prototype.scrollToRow=function(A){this.renderer.scrollToRow(A)},k.prototype.scrollToLine=function(A,_,M,O){this.renderer.scrollToLine(A,_,M,O)},k.prototype.centerSelection=function(){var A=this.getSelectionRange(),_={row:Math.floor(A.start.row+(A.end.row-A.start.row)/2),column:Math.floor(A.start.column+(A.end.column-A.start.column)/2)};this.renderer.alignCursor(_,.5)},k.prototype.getCursorPosition=function(){return this.selection.getCursor()},k.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},k.prototype.getSelectionRange=function(){return this.selection.getRange()},k.prototype.selectAll=function(){this.selection.selectAll()},k.prototype.clearSelection=function(){this.selection.clearSelection()},k.prototype.moveCursorTo=function(A,_){this.selection.moveCursorTo(A,_)},k.prototype.moveCursorToPosition=function(A){this.selection.moveCursorToPosition(A)},k.prototype.jumpToMatching=function(A,_){var M=this.getCursorPosition(),O=new C(this.session,M.row,M.column),F=O.getCurrentToken(),H=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var z=F||O.stepForward();if(z){var V,q=!1,X={},G=M.column-z.start,Z,re={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(z.value.match(/[{}()\[\]]/g)){for(;G<z.value.length&&!q;G++)if(re[z.value[G]])switch(Z=re[z.value[G]]+"."+z.type.replace("rparen","lparen"),isNaN(X[Z])&&(X[Z]=0),z.value[G]){case"(":case"[":case"{":X[Z]++;break;case")":case"]":case"}":X[Z]--,X[Z]===-1&&(V="bracket",q=!0);break}}else z.type.indexOf("tag-name")!==-1&&(isNaN(X[z.value])&&(X[z.value]=0),F.value==="<"&&H>1?X[z.value]++:F.value==="</"&&X[z.value]--,X[z.value]===-1&&(V="tag",q=!0));q||(F=z,H++,z=O.stepForward(),G=0)}while(z&&!q);if(V){var J,ae;if(V==="bracket")J=this.session.getBracketRange(M),J||(J=new y(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=J.start,(_||ae.row===M.row&&Math.abs(ae.column-M.column)<2)&&(J=this.session.getBracketRange(ae)));else if(V==="tag"){if(!z||z.type.indexOf("tag-name")===-1)return;if(J=new y(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),J.compare(M.row,M.column)===0){var me=this.session.getMatchingTags(M);me&&(me.openTag.contains(M.row,M.column)?(J=me.closeTag,ae=J.start):(J=me.openTag,me.closeTag.start.row===M.row&&me.closeTag.start.column===M.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(A?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))}}},k.prototype.gotoLine=function(A,_,M){this.selection.clearSelection(),this.session.unfold({row:A-1,column:_||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(A-1,_||0),this.isRowFullyVisible(A-1)||this.scrollToLine(A-1,!0,M)},k.prototype.navigateTo=function(A,_){this.selection.moveTo(A,_)},k.prototype.navigateUp=function(A){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var _=this.selection.anchor.getPosition();return this.moveCursorToPosition(_)}this.selection.clearSelection(),this.selection.moveCursorBy(-A||-1,0)},k.prototype.navigateDown=function(A){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var _=this.selection.anchor.getPosition();return this.moveCursorToPosition(_)}this.selection.clearSelection(),this.selection.moveCursorBy(A||1,0)},k.prototype.navigateLeft=function(A){if(this.selection.isEmpty())for(A=A||1;A--;)this.selection.moveCursorLeft();else{var _=this.getSelectionRange().start;this.moveCursorToPosition(_)}this.clearSelection()},k.prototype.navigateRight=function(A){if(this.selection.isEmpty())for(A=A||1;A--;)this.selection.moveCursorRight();else{var _=this.getSelectionRange().end;this.moveCursorToPosition(_)}this.clearSelection()},k.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},k.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},k.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},k.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},k.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},k.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},k.prototype.replace=function(A,_){_&&this.$search.set(_);var M=this.$search.find(this.session),O=0;return M&&(this.$tryReplace(M,A)&&(O=1),this.selection.setSelectionRange(M),this.renderer.scrollSelectionIntoView(M.start,M.end)),O},k.prototype.replaceAll=function(A,_){_&&this.$search.set(_);var M=this.$search.findAll(this.session),O=0;if(!M.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var H=M.length-1;H>=0;--H)this.$tryReplace(M[H],A)&&O++;return this.selection.setSelectionRange(F),O},k.prototype.$tryReplace=function(A,_){var M=this.session.getTextRange(A);return _=this.$search.replace(M,_),_!==null?(A.end=this.session.replace(A,_),A):null},k.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},k.prototype.find=function(A,_,M){_||(_={}),typeof A=="string"||A instanceof RegExp?_.needle=A:typeof A=="object"&&g.mixin(_,A);var O=this.selection.getRange();_.needle==null&&(A=this.session.getTextRange(O)||this.$search.$options.needle,A||(O=this.session.getWordRange(O.start.row,O.start.column),A=this.session.getTextRange(O)),this.$search.set({needle:A})),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,M),F;_.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},k.prototype.findNext=function(A,_){this.find({skipCurrent:!0,backwards:!1},A,_)},k.prototype.findPrevious=function(A,_){this.find(A,{skipCurrent:!0,backwards:!0},_)},k.prototype.revealRange=function(A,_){this.session.unfold(A),this.selection.setSelectionRange(A);var M=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(A.start,A.end,.5),_!==!1&&this.renderer.animateScrolling(M)},k.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},k.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},k.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(A){A.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()},k.prototype.setAutoScrollEditorIntoView=function(A){if(A){var _,M=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}),z=this.renderer.on("beforeRender",function(){O&&(_=M.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&_&&(M.isFocused()||M.searchBox&&M.searchBox.isFocused())){var q=M.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",z))}}},k.prototype.$resetCursorStyle=function(){var A=this.$cursorStyle||"ace",_=this.renderer.$cursorLayer;_&&(_.setSmoothBlinking(/smooth/.test(A)),_.isBlinking=!this.$readOnly&&A!="wide",v.setCssClass(_.element,"ace_slim-cursors",/slim/.test(A)))},k.prototype.prompt=function(A,_,M){var O=this;S.loadModule("ace/ext/prompt",function(F){F.prompt(O,A,_,M)})},k}();I.$uid=0,I.prototype.curOp=null,I.prototype.prevOp={},I.prototype.$mergeableCommands=["backspace","del","insertstring"],I.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"],["&&","||"],["==","!="]],g.implement(I.prototype,w),S.defineOptions(I.prototype,"editor",{selectionStyle:{set:function(k){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:k})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(k){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(k){this.textInput.setReadOnly(k),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(k){this.textInput.setCopyWithEmptySelection(k)},initialValue:!1},cursorStyle:{set:function(k){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(k){this.setAutoScrollEditorIntoView(k)}},keyboardHandler:{set:function(k){this.setKeyboardHandler(k)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(k){this.session.setValue(k)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(k){this.setSession(k)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(k){this.renderer.$gutterLayer.setShowLineNumbers(k),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),k&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(k){this.$showLineNumbers&&k?N.attach(this):N.detach(this)}},placeholder:{set:function(k){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var A=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(A&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),v.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!A&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),v.addCssClass(this.container,"ace_hasPlaceholder");var _=v.createElement("div");_.className="ace_placeholder",_.textContent=this.$placeholder||"",this.renderer.placeholderNode=_,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!A&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(k){var A={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===L.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},M;k?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.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(A),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 gutter")),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),M||(M=new b(this)),M.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(A),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),M&&M.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(k){this.$textInputAriaLabel=k},initialValue:""},enableMobileMenu:{set:function(k){this.$enableMobileMenu=k},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(k,A){return(Math.abs(k.selection.lead.row-A)||A+1+(A<9?"·":""))+""},getWidth:function(k,A,_){return Math.max(A.toString().length,(_.lastRow+1).toString().length,2)*_.characterWidth},update:function(k,A){A.renderer.$loop.schedule(A.renderer.CHANGE_GUTTER)},attach:function(k){k.renderer.$gutterLayer.$renderer=this,k.on("changeSelection",this.update),this.update(null,k)},detach:function(k){k.renderer.$gutterLayer.$renderer==this&&(k.renderer.$gutterLayer.$renderer=null),k.off("changeSelection",this.update),this.update(null,k)}};r.Editor=I}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,r,d){var h=t("../lib/dom"),g=function(){function v(u,p){this.element=u,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return v.prototype.moveContainer=function(u){h.translate(this.element,0,-(u.firstRowScreen*u.lineHeight%this.canvasHeight)-u.offset*this.$offsetCoefficient)},v.prototype.pageChanged=function(u,p){return Math.floor(u.firstRowScreen*u.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},v.prototype.computeLineTop=function(u,p,s){var l=p.firstRowScreen*p.lineHeight,a=Math.floor(l/this.canvasHeight),c=s.documentToScreenRow(u,0)*p.lineHeight;return c-a*this.canvasHeight},v.prototype.computeLineHeight=function(u,p,s){return p.lineHeight*s.getRowLineCount(u)},v.prototype.getLength=function(){return this.cells.length},v.prototype.get=function(u){return this.cells[u]},v.prototype.shift=function(){this.$cacheCell(this.cells.shift())},v.prototype.pop=function(){this.$cacheCell(this.cells.pop())},v.prototype.push=function(u){if(Array.isArray(u)){this.cells.push.apply(this.cells,u);for(var p=h.createFragment(this.element),s=0;s<u.length;s++)p.appendChild(u[s].element);this.element.appendChild(p)}else this.cells.push(u),this.element.appendChild(u.element)},v.prototype.unshift=function(u){if(Array.isArray(u)){this.cells.unshift.apply(this.cells,u);for(var p=h.createFragment(this.element),s=0;s<u.length;s++)p.appendChild(u[s].element);this.element.firstChild?this.element.insertBefore(p,this.element.firstChild):this.element.appendChild(p)}else this.cells.unshift(u),this.element.insertAdjacentElement("afterbegin",u.element)},v.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},v.prototype.$cacheCell=function(u){u&&(u.element.remove(),this.cellCache.push(u))},v.prototype.createCell=function(u,p,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:u}}return a.row=u,a},v}();r.Lines=g}),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,r,d){var h=t("../lib/dom"),g=t("../lib/oop"),v=t("../lib/lang"),u=t("../lib/event_emitter").EventEmitter,p=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 p(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,f){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,f)},c.prototype.removeGutterDecoration=function(o,f){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,f)},c.prototype.setAnnotations=function(o){this.$annotations=[];for(var f=0;f<o.length;f++){var y=o[f],w=y.row,x=this.$annotations[w];x||(x=this.$annotations[w]={text:[],type:[],displayText:[]});var E=y.text,S=y.text,C=y.type;E=E?v.escapeHTML(E):y.html||"",S=S||y.html||"",x.text.indexOf(E)===-1&&(x.text.push(E),x.type.push(C),x.displayText.push(S));var b=y.className;b?x.className=b:C==="error"?x.className=" ace_error":C==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":C==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":C==="info"&&!x.className?x.className=" ace_info":C==="hint"&&!x.className&&(x.className=" ace_hint")}},c.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var f=o.start.row,y=o.end.row-f;if(y!==0)if(o.action=="remove")this.$annotations.splice(f,y+1,null);else{var w=new Array(y+1);w.unshift(f,1),this.$annotations.splice.apply(this.$annotations,w)}}},c.prototype.update=function(o){this.config=o;var f=this.session,y=o.firstRow,w=Math.min(o.lastRow+o.gutterOffset,f.getLength()-1);this.oldLastRow=w,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var x=f.getNextFoldLine(y),E=x?x.start.row:1/0,S=null,C=-1,b=y;;){if(b>E&&(b=x.end.row+1,x=f.getNextFoldLine(b,x),E=x?x.start.row:1/0),b>w){for(;this.$lines.getLength()>C+1;)this.$lines.pop();break}S=this.$lines.get(++C),S?S.row=b:(S=this.$lines.createCell(b,o,this.session,a),this.$lines.push(S)),this.$renderCell(S,o,x,b),b++}this._signal("afterRender"),this.$updateGutterWidth(o)},c.prototype.$updateGutterWidth=function(o){var f=this.session,y=f.gutterRenderer||this.$renderer,w=f.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(x=f.getLength()+w-1);var E=y?y.getWidth(f,x,o):x.toString().length*o.characterWidth,S=this.$padding||this.$computePadding();E+=S.left+S.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 f=this.$lines.cells;this.$cursorCell=null;for(var y=0;y<f.length;y++){var w=f[y];if(w.row>=this.$cursorRow){if(w.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(y>0&&x&&x.start.row==f[y-1].row)w=f[y-1];else break}w.element.className="ace_gutter-active-line "+w.element.className,this.$cursorCell=w;break}}}}},c.prototype.scrollLines=function(o){var f=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(f,o))return this.update(o);this.$lines.moveContainer(o);var y=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),w=this.oldLastRow;if(this.oldLastRow=y,!f||w<o.firstRow)return this.update(o);if(y<f.firstRow)return this.update(o);if(f.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(f.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(w>y)for(var x=this.session.getFoldedRowCount(y+1,w);x>0;x--)this.$lines.pop();o.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,f.firstRow-1)),y>w&&this.$lines.push(this.$renderLines(o,w+1,y)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},c.prototype.$renderLines=function(o,f,y){for(var w=[],x=f,E=this.session.getNextFoldLine(x),S=E?E.start.row:1/0;x>S&&(x=E.end.row+1,E=this.session.getNextFoldLine(x,E),S=E?E.start.row:1/0),!(x>y);){var C=this.$lines.createCell(x,o,this.session,a);this.$renderCell(C,o,E,x),w.push(C),x++}return w},c.prototype.$renderCell=function(o,f,y,w){var x=o.element,E=this.session,S=x.childNodes[0],C=x.childNodes[1],b=x.childNodes[2],T=b.firstChild,R=E.$firstLineNumber,L=E.$breakpoints,I=E.$decorations,N=E.gutterRenderer||this.$renderer,k=this.$showFoldWidgets&&E.foldWidgets,A=y?y.start.row:Number.MAX_VALUE,_=f.lineHeight+"px",M=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(E,w):w+R).toString();if(this.$highlightGutterLine&&(w==this.$cursorRow||y&&w<this.$cursorRow&&w>=A&&this.$cursorRow<=y.end.row)&&(M+="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)),L[w]&&(M+=L[w]),I[w]&&(M+=I[w]),this.$annotations[w]&&w!==A&&(M+=this.$annotations[w].className),k){var H=k[w];H==null&&(H=k[w]=E.getFoldWidget(w))}if(H){var z="ace_fold-widget ace_"+H,V=H=="start"&&w==A&&w<y.end.row;if(V){z+=" ace_closed";for(var q="",X=!1,G=w+1;G<=y.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")}M+=q}else z+=" ace_open";C.className!=z&&(C.className=z),h.setStyle(C.style,"height",_),h.setStyle(C.style,"display","inline-block"),C.setAttribute("role","button"),C.setAttribute("tabindex","-1");var Z=E.getFoldWidgetRange(w);Z?C.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])):y?C.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[y.start.row+1,y.end.row+1])):C.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[w+1])),V?(C.setAttribute("aria-expanded","false"),C.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(C.setAttribute("aria-expanded","true"),C.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else C&&(h.setStyle(C.style,"display","none"),C.setAttribute("tabindex","0"),C.removeAttribute("role"),C.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",T.className=O,T.className+=q,h.setStyle(T.style,"height",_),h.setStyle(b.style,"display","block"),h.setStyle(b.style,"height",_);var re;switch(q){case" ace_error_fold":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}b.setAttribute("aria-label",re),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[w]){b.className="ace_gutter_annotation",T.className=O,this.$useSvgGutterIcons?T.className+=this.$annotations[w].className:x.classList.add(this.$annotations[w].className.replace(" ","")),h.setStyle(T.style,"height",_),h.setStyle(b.style,"display","block"),h.setStyle(b.style,"height",_);var re;switch(this.$annotations[w].className){case" ace_error":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":re=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":re=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}b.setAttribute("aria-label",re),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else h.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return F!==S.data&&(S.data=F),x.className!=M&&(x.className=M),h.setStyle(o.element.style,"height",this.$lines.computeLineHeight(w,f,E)+"px"),h.setStyle(o.element.style,"top",this.$lines.computeLineTop(w,f,E)+"px"),o.text=F,b.style.display==="none"&&C.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 f=this.$padding||this.$computePadding(),y=this.element.getBoundingClientRect();if(o.x<f.left+y.left)return"markers";if(this.$showFoldWidgets&&o.x>y.right-f.right)return"foldWidgets"},c}();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,g.implement(l.prototype,u);function a(c){var o=document.createTextNode("");c.appendChild(o);var f=h.createElement("span");c.appendChild(f);var y=h.createElement("span");c.appendChild(y);var w=h.createElement("span");return y.appendChild(w),c}r.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,r,d){var h=t("../range").Range,g=t("../lib/dom"),v=function(){function p(s){this.element=g.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return p.prototype.setPadding=function(s){this.$padding=s},p.prototype.setSession=function(s){this.session=s},p.prototype.setMarkers=function(s){this.markers=s},p.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},p.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 f=this.$getTop(o.start.row,s),y=this.$padding+o.start.column*s.characterWidth;c.renderer(l,o,y,f,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)}},p.prototype.$getTop=function(s,l){return(s-l.firstRowScreen)*l.lineHeight},p.prototype.drawTextMarker=function(s,l,a,c,o){for(var f=this.session,y=l.start.row,w=l.end.row,x=y,E=0,S=0,C=f.getScreenLastRowColumn(x),b=new h(x,l.start.column,x,S);x<=w;x++)b.start.row=b.end.row=x,b.start.column=x==y?l.start.column:f.getRowWrapIndent(x),b.end.column=C,E=S,S=C,C=x+1<w?f.getScreenLastRowColumn(x+1):x==w?0:l.end.column,this.drawSingleLineMarker(s,b,a+(x==y?" ace_start":"")+" ace_br"+u(x==y||x==y+1&&l.start.column,E<S,S>C,x==w),c,x==w?0:1,o)},p.prototype.drawMultiLineMarker=function(s,l,a,c,o){var f=this.$padding,y=c.lineHeight,w=this.$getTop(l.start.row,c),x=f+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:"+y+"px;right:"+f+"px;top:"+w+"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{w=this.$getTop(l.end.row,c);var S=l.end.column*c.characterWidth;this.elt(a+" ace_br12","height:"+y+"px;width:"+S+"px;top:"+w+"px;left:"+f+"px;"+(o||""))}if(y=(l.end.row-l.start.row-1)*c.lineHeight,!(y<=0)){w=this.$getTop(l.start.row+1,c);var C=(l.start.column?1:0)|(l.end.column?0:8);this.elt(a+(C?" ace_br"+C:""),"height:"+y+"px;right:"+f+"px;top:"+w+"px;left:"+f+"px;"+(o||""))}},p.prototype.drawSingleLineMarker=function(s,l,a,c,o,f){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(s,l,a,c,o,f);var y=c.lineHeight,w=(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:"+y+"px;width:"+w+"px;top:"+x+"px;left:"+E+"px;"+(f||""))},p.prototype.drawBidiSingleLineMarker=function(s,l,a,c,o,f){var y=c.lineHeight,w=this.$getTop(l.start.row,c),x=this.$padding,E=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);E.forEach(function(S){this.elt(a,"height:"+y+"px;width:"+(S.width+(o||0))+"px;top:"+w+"px;left:"+(x+S.left)+"px;"+(f||""))},this)},p.prototype.drawFullLineMarker=function(s,l,a,c,o){var f=this.$getTop(l.start.row,c),y=c.lineHeight;l.start.row!=l.end.row&&(y+=this.$getTop(l.end.row,c)-f),this.elt(a,"height:"+y+"px;top:"+f+"px;left:0;right:0;"+(o||""))},p.prototype.drawScreenLineMarker=function(s,l,a,c,o){var f=this.$getTop(l.start.row,c),y=c.lineHeight;this.elt(a,"height:"+y+"px;top:"+f+"px;left:0;right:0;"+(o||""))},p}();v.prototype.$padding=0;function u(p,s,l,a){return(p?1:0)|(s?2:0)|(l?4:0)|(a?8:0)}r.Marker=v}),ace.define("ace/layer/text_util",["require","exports","module"],function(t,r,d){var h=new Set(["text","rparen","lparen"]);r.isTextToken=function(g){return h.has(g)}}),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,r,d){var h=t("../lib/oop"),g=t("../lib/dom"),v=t("../lib/lang"),u=t("./lines").Lines,p=t("../lib/event_emitter").EventEmitter,s=t("../config").nls,l=t("./text_util").isTextToken,a=function(){function c(o){this.dom=g,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 u(this.element)}return c.prototype.$updateEolChar=function(){var o=this.session.doc,f=o.getNewLineCharacter()==`
|
208
|
-
`&&o.getNewLineMode()!="windows",y=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=y)return this.EOL_CHAR=y,!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(f){this._signal("changeCharacterSize",f)}).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 f=this.$tabStrings=[0],y=1;y<o+1;y++)if(this.showTabs){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_tab",w.textContent=v.stringRepeat(this.TAB_CHAR,y),f.push(w)}else f.push(this.dom.createTextNode(v.stringRepeat(" ",y),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":"",S=this.showSpaces?v.stringRepeat(this.SPACE_CHAR,this.tabSize):v.stringRepeat(" ",this.tabSize),C=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?v.stringRepeat(this.TAB_CHAR,this.tabSize):S,w=this.dom.createElement("span");w.className=x+E,w.textContent=S,this.$tabStrings[" "]=w;var w=this.dom.createElement("span");w.className=x+C,w.textContent=b,this.$tabStrings[" "]=w}},c.prototype.updateLines=function(o,f,y){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var w=Math.max(f,o.firstRow),x=Math.min(y,o.lastRow),E=this.element.childNodes,S=0,C=o.firstRow;C<w;C++){var b=this.session.getFoldLine(C);if(b)if(b.containsRow(w)){w=b.start.row;break}else C=b.end.row;S++}for(var T=!1,C=w,b=this.session.getNextFoldLine(C),R=b?b.start.row:1/0;C>R&&(C=b.end.row+1,b=this.session.getNextFoldLine(C,b),R=b?b.start.row:1/0),!(C>x);){var L=E[S++];if(L){this.dom.removeChildren(L),this.$renderLine(L,C,C==R?b:!1),T&&(L.style.top=this.$lines.computeLineTop(C,o,this.session)+"px");var I=o.lineHeight*this.session.getRowLength(C)+"px";L.style.height!=I&&(T=!0,L.style.height=I)}C++}if(T)for(;S<this.$lines.cells.length;){var N=this.$lines.cells[S++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},c.prototype.scrollLines=function(o){var f=this.config;if(this.config=o,this.$lines.pageChanged(f,o))return this.update(o);this.$lines.moveContainer(o);var y=o.lastRow,w=f?f.lastRow:-1;if(!f||w<o.firstRow)return this.update(o);if(y<f.firstRow)return this.update(o);if(!f||f.lastRow<o.firstRow)return this.update(o);if(o.lastRow<f.firstRow)return this.update(o);if(f.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(f.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(f.lastRow>o.lastRow)for(var x=this.session.getFoldedRowCount(o.lastRow+1,f.lastRow);x>0;x--)this.$lines.pop();o.firstRow<f.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,f.firstRow-1)),o.lastRow>f.lastRow&&this.$lines.push(this.$renderLinesFragment(o,f.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(o,f,y){for(var w=[],x=f,E=this.session.getNextFoldLine(x),S=E?E.start.row:1/0;x>S&&(x=E.end.row+1,E=this.session.getNextFoldLine(x,E),S=E?E.start.row:1/0),!(x>y);){var C=this.$lines.createCell(x,o,this.session),b=C.element;this.dom.removeChildren(b),g.setStyle(b.style,"height",this.$lines.computeLineHeight(x,o,this.session)+"px"),g.setStyle(b.style,"top",this.$lines.computeLineTop(x,o,this.session)+"px"),this.$renderLine(b,x,x==S?E:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",w.push(C),x++}return w},c.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var f=o.firstRow,y=o.lastRow,w=this.$lines;w.getLength();)w.pop();w.push(this.$renderLinesFragment(o,f,y))},c.prototype.$renderToken=function(o,f,y,w){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,S=this.dom.createFragment(this.element),C,b=0;C=E.exec(w);){var T=C[1],R=C[2],L=C[3],I=C[4],N=C[5];if(!(!x.showSpaces&&R)){var k=b!=C.index?w.slice(b,C.index):"";if(b=C.index+C[0].length,k&&S.appendChild(this.dom.createTextNode(k,this.element)),T){var A=x.session.getScreenTabSize(f+C.index);S.appendChild(x.$tabStrings[A].cloneNode(!0)),f+=A-1}else if(R)if(x.showSpaces){var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_space",_.textContent=v.stringRepeat(x.SPACE_CHAR,R.length),S.appendChild(_)}else S.appendChild(this.dom.createTextNode(R,this.element));else if(L){var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_space ace_invalid",_.textContent=v.stringRepeat(x.SPACE_CHAR,L.length),S.appendChild(_)}else if(I){f+=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:I,S.appendChild(_)}else if(N){f+=1;var _=this.dom.createElement("span");_.style.width=x.config.characterWidth*2+"px",_.className="ace_cjk",_.textContent=N,S.appendChild(_)}}}if(S.appendChild(this.dom.createTextNode(b?w.slice(b):w,this.element)),l(y.type))o.appendChild(S);else{var M="ace_"+y.type.replace(/\./g," ace_"),_=this.dom.createElement("span");y.type=="fold"&&(_.style.width=y.value.length*this.config.characterWidth+"px",_.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),_.className=M,_.appendChild(S),o.appendChild(_)}return f+w.length},c.prototype.renderIndentGuide=function(o,f,y){var w=f.search(this.$indentGuideRe);if(w<=0||w>=y)return f;if(f[0]==" "){w-=w%this.tabSize;for(var x=w/this.tabSize,E=0;E<x;E++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(w)}else if(f[0]==" "){for(var E=0;E<w;E++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),f.substr(w)}return this.$highlightIndentGuide(),f},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 f=this.session.selection.getCursor(),y=/^\s*/.exec(this.session.doc.getLine(f.row))[0].length,w=Math.floor(y/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:w,start:f.row};var x=this.session.$bracketHighlight;if(x){for(var E=this.session.$bracketHighlight.ranges,S=0;S<E.length;S++)if(f.row!==E[S].start.row){this.$highlightIndentGuideMarker.end=E[S].start.row+1,f.row>E[S].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[f.row]!==""&&f.column===o[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var S=f.row+1;S<o.length;S++){var C=o[S],b=/^\s*/.exec(C)[0].length;if(C!==""&&(this.$highlightIndentGuideMarker.end=S,b<=y))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){var o=this.element.querySelectorAll(".ace_indent-guide-active");o.forEach(function(f){f.classList.remove("ace_indent-guide-active")})},c.prototype.$setIndentGuideActive=function(o,f){var y=this.session.doc.getLine(o.row);if(y!==""){var w=o.element;if(o.element.classList&&o.element.classList.contains("ace_line_group"))if(o.element.childNodes.length>0)w=o.element.childNodes[0];else return;var x=w.childNodes;if(x){var E=x[f-1];E&&E.classList&&E.classList.contains("ace_indent-guide")&&E.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var f=this.$highlightIndentGuideMarker.indentLevel;if(f!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var y=0;y<o.length;y++){var w=o[y];if(this.$highlightIndentGuideMarker.end&&w.row>=this.$highlightIndentGuideMarker.start+1){if(w.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,f)}}else for(var y=o.length-1;y>=0;y--){var w=o[y];if(this.$highlightIndentGuideMarker.end&&w.row<this.$highlightIndentGuideMarker.start){if(w.row<this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(w,f)}}}},c.prototype.$createLineElement=function(o){var f=this.dom.createElement("div");return f.className="ace_line",f.style.height=this.config.lineHeight+"px",f},c.prototype.$renderWrappedLine=function(o,f,y){var w=0,x=0,E=y[0],S=0,C=this.$createLineElement();o.appendChild(C);for(var b=0;b<f.length;b++){var T=f[b],R=T.value;if(b==0&&this.displayIndentGuides){if(w=R.length,R=this.renderIndentGuide(C,R,E),!R)continue;w-=R.length}if(w+R.length<E)S=this.$renderToken(C,S,T,R),w+=R.length;else{for(;w+R.length>=E;)S=this.$renderToken(C,S,T,R.substring(0,E-w)),R=R.substring(E-w),w=E,C=this.$createLineElement(),o.appendChild(C),C.appendChild(this.dom.createTextNode(v.stringRepeat(" ",y.indent),this.element)),x++,S=0,E=y[x]||Number.MAX_VALUE;R.length!=0&&(w+=R.length,S=this.$renderToken(C,S,T,R))}}y[y.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(C,S,null,"",!0)},c.prototype.$renderSimpleLine=function(o,f){for(var y=0,w=0;w<f.length;w++){var x=f[w],E=x.value;if(!(w==0&&this.displayIndentGuides&&(E=this.renderIndentGuide(o,E),!E))){if(y+E.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,y,x,E);y=this.$renderToken(o,y,x,E)}}},c.prototype.$renderOverflowMessage=function(o,f,y,w,x){y&&this.$renderToken(o,f,y,w.slice(0,this.MAX_LINE_LENGTH-f));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,f,y){if(!y&&y!=!1&&(y=this.session.getFoldLine(f)),y)var w=this.$getFoldLineTokens(f,y);else var w=this.session.getTokens(f);var x=o;if(w.length){var E=this.session.getRowSplitData(f);if(E&&E.length){this.$renderWrappedLine(o,w,E);var x=o.lastChild}else{var x=o;this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x)),this.$renderSimpleLine(x,w)}}else this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x));if(this.showEOL&&x){y&&(f=y.end.row);var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_eol",S.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(S)}},c.prototype.$getFoldLineTokens=function(o,f){var y=this.session,w=[];function x(S,C,b){for(var T=0,R=0;R+S[T].value.length<C;)if(R+=S[T].value.length,T++,T==S.length)return;if(R!=C){var L=S[T].value.substring(C-R);L.length>b-C&&(L=L.substring(0,b-C)),w.push({type:S[T].type,value:L}),R=C+L.length,T+=1}for(;R<b&&T<S.length;){var L=S[T].value;L.length+R>b?w.push({type:S[T].type,value:L.substring(0,b-R)}):w.push(S[T]),R+=L.length,T+=1}}var E=y.getTokens(o);return f.walk(function(S,C,b,T,R){S!=null?w.push({type:"fold",value:S}):(R&&(E=y.getTokens(C)),E.length&&x(E,T,b))},f.end.row,this.session.getLine(f.end.row).length),w},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,p),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,r,d){var h=t("../lib/dom"),g=function(){function v(u){this.element=h.createElement("div"),this.element.className="ace_layer ace_cursor-layer",u.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 v.prototype.$updateOpacity=function(u){for(var p=this.cursors,s=p.length;s--;)h.setStyle(p[s].style,"opacity",u?"":"0")},v.prototype.$startCssAnimation=function(){for(var u=this.cursors,p=u.length;p--;)u[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&h.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},v.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,h.removeCssClass(this.element,"ace_animate-blinking")},v.prototype.setPadding=function(u){this.$padding=u},v.prototype.setSession=function(u){this.session=u},v.prototype.setBlinking=function(u){u!=this.isBlinking&&(this.isBlinking=u,this.restartTimer())},v.prototype.setBlinkInterval=function(u){u!=this.blinkInterval&&(this.blinkInterval=u,this.restartTimer())},v.prototype.setSmoothBlinking=function(u){u!=this.smoothBlinking&&(this.smoothBlinking=u,h.setCssClass(this.element,"ace_smooth-blinking",u),this.$updateCursors(!0),this.restartTimer())},v.prototype.addCursor=function(){var u=h.createElement("div");return u.className="ace_cursor",this.element.appendChild(u),this.cursors.push(u),u},v.prototype.removeCursor=function(){if(this.cursors.length>1){var u=this.cursors.pop();return u.parentNode.removeChild(u),u}},v.prototype.hideCursor=function(){this.isVisible=!1,h.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.showCursor=function(){this.isVisible=!0,h.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.restartTimer=function(){var u=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,h.removeCssClass(this.element,"ace_smooth-blinking")),u(!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 p=(function(){this.timeoutId=setTimeout(function(){u(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){u(!0),p()},this.blinkInterval),p()}},v.prototype.getPixelPosition=function(u,p){if(!this.config||!this.session)return{left:0,top:0};u||(u=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(u),l=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,u.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:a}},v.prototype.isCursorInView=function(u,p){return u.top>=0&&u.top<p.maxHeight},v.prototype.update=function(u){this.config=u;var p=this.session.$selectionMarkers,s=0,l=0;(p===void 0||p.length===0)&&(p=[{cursor:null}]);for(var s=0,a=p.length;s<a;s++){var c=this.getPixelPosition(p[s].cursor,!0);if(!((c.top>u.height+u.offset||c.top<0)&&s>1)){var o=this.cursors[l++]||this.addCursor(),f=o.style;this.drawCursor?this.drawCursor(o,c,u,p[s],this.session):this.isCursorInView(c,u)?(h.setStyle(f,"display","block"),h.translate(o,c.left,c.top),h.setStyle(f,"width",Math.round(u.characterWidth)+"px"),h.setStyle(f,"height",u.lineHeight+"px")):h.setStyle(f,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var y=this.session.getOverwrite();this.$setOverwrite(y),this.$pixelPos=c,this.restartTimer()},v.prototype.$setOverwrite=function(u){u!=this.overwrite&&(this.overwrite=u,u?h.addCssClass(this.element,"ace_overwrite-cursors"):h.removeCssClass(this.element,"ace_overwrite-cursors"))},v.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},v}();g.prototype.$padding=0,g.prototype.drawCursor=null,r.Cursor=g}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,r,d){var h=this&&this.__extends||function(){var o=function(f,y){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(w[E]=x[E])},o(f,y)};return function(f,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");o(f,y);function w(){this.constructor=f}f.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),g=t("./lib/oop"),v=t("./lib/dom"),u=t("./lib/event"),p=t("./lib/event_emitter").EventEmitter,s=32768,l=function(){function o(f,y){this.element=v.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+y,this.inner=v.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,u.addListener(this.element,"scroll",this.onScroll.bind(this)),u.addListener(this.element,"mousedown",u.preventDefault)}return o.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},o}();g.implement(l.prototype,p);var a=function(o){h(f,o);function f(y,w){var x=o.call(this,y,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,w.$scrollbarWidth=x.width=v.scrollbarWidth(y.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var y=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-y)/(this.coeff-y)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(y){this.element.style.height=y+"px"},f.prototype.setScrollHeight=function(y){this.scrollHeight=y,y>s?(this.coeff=s/y,y=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=y+"px"},f.prototype.setScrollTop=function(y){this.scrollTop!=y&&(this.skipEvent=!0,this.scrollTop=y,this.element.scrollTop=y*this.coeff)},f}(l);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var c=function(o){h(f,o);function f(y,w){var x=o.call(this,y,"-h")||this;return x.scrollLeft=0,x.height=w.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(y){this.element.style.width=y+"px"},f.prototype.setInnerWidth=function(y){this.inner.style.width=y+"px"},f.prototype.setScrollWidth=function(y){this.inner.style.width=y+"px"},f.prototype.setScrollLeft=function(y){this.scrollLeft!=y&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=y)},f}(l);r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=c,r.VScrollBar=a,r.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,r,d){var h=this&&this.__extends||function(){var c=function(o,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(y[x]=w[x])},c(o,f)};return function(o,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");c(o,f);function y(){this.constructor=o}o.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),g=t("./lib/oop"),v=t("./lib/dom"),u=t("./lib/event"),p=t("./lib/event_emitter").EventEmitter;v.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,f){this.element=v.createElement("div"),this.element.className="ace_sb"+f,this.inner=v.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,u.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}();g.implement(s.prototype,p);var l=function(c){h(o,c);function o(f,y){var w=c.call(this,f,"-v")||this;return w.scrollTop=0,w.scrollHeight=0,w.parent=f,w.width=w.VScrollWidth,w.renderer=y,w.inner.style.width=w.element.style.width=(w.width||15)+"px",w.$minWidth=0,w}return o.prototype.onMouseDown=function(f,y){if(f==="mousedown"&&!(u.getButton(y)!==0||y.detail===2)){if(y.target===this.inner){var w=this,x=y.clientY,E=function(I){x=I.clientY},S=function(){clearInterval(R)},C=y.clientY,b=this.thumbTop,T=function(){if(x!==void 0){var I=w.scrollTopFromThumbTop(b+x-C);I!==w.scrollTop&&w._emit("scroll",{data:I})}};u.capture(this.inner,E,S);var R=setInterval(T,20);return u.preventDefault(y)}var L=y.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(L)}),u.preventDefault(y)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(f){var y=f*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return y=y>>0,y<0?y=0:y>this.pageHeight-this.viewHeight&&(y=this.pageHeight-this.viewHeight),y},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(f,y){this.pageHeight===f&&!y||(this.pageHeight=f,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(f){this.scrollTop=f,f<0&&(f=0),this.thumbTop=f*(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(f,y){var w=c.call(this,f,"-h")||this;return w.scrollLeft=0,w.scrollWidth=0,w.height=w.HScrollHeight,w.inner.style.height=w.element.style.height=(w.height||12)+"px",w.renderer=y,w}return o.prototype.onMouseDown=function(f,y){if(f==="mousedown"&&!(u.getButton(y)!==0||y.detail===2)){if(y.target===this.inner){var w=this,x=y.clientX,E=function(I){x=I.clientX},S=function(){clearInterval(R)},C=y.clientX,b=this.thumbLeft,T=function(){if(x!==void 0){var I=w.scrollLeftFromThumbLeft(b+x-C);I!==w.scrollLeft&&w._emit("scroll",{data:I})}};u.capture(this.inner,E,S);var R=setInterval(T,20);return u.preventDefault(y)}var L=y.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(L)}),u.preventDefault(y)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(f){var y=f*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return y=y>>0,y<0?y=0:y>this.pageWidth-this.viewWidth&&(y=this.pageWidth-this.viewWidth),y},o.prototype.setWidth=function(f){this.width=Math.max(0,f),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(f,y){this.pageWidth===f&&!y||(this.pageWidth=f,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(f){this.scrollLeft=f,f<0&&(f=0),this.thumbLeft=f*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(s);a.prototype.setInnerWidth=a.prototype.setScrollWidth,r.ScrollBar=l,r.ScrollBarV=l,r.ScrollBarH=a,r.VScrollBar=l,r.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(t,r,d){var h=t("./lib/event"),g=function(){function v(u,p){this.onRender=u,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||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 v.prototype.schedule=function(u){this.changes=this.changes|u,this.changes&&!this.pending&&(h.nextFrame(this._flush),this.pending=!0)},v.prototype.clear=function(u){var p=this.changes;return this.changes=0,p},v}();r.RenderLoop=g}),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,r,d){var h=t("../lib/oop"),g=t("../lib/dom"),v=t("../lib/lang"),u=t("../lib/event"),p=t("../lib/useragent"),s=t("../lib/event_emitter").EventEmitter,l=512,a=typeof ResizeObserver=="function",c=200,o=function(){function f(y){this.el=g.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=g.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=g.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),y.appendChild(this.el),this.$measureNode.textContent=v.stringRepeat("X",l),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(y,w){y.width=y.height="auto",y.left=y.top="0px",y.visibility="hidden",y.position="absolute",y.whiteSpace="pre",p.isIE<8?y["font-family"]="inherit":y.font="inherit",y.overflow=w?"hidden":"visible"},f.prototype.checkForSizeChanges=function(y){if(y===void 0&&(y=this.$measureSizes()),y&&(this.$characterSize.width!==y.width||this.$characterSize.height!==y.height)){this.$measureNode.style.fontWeight="bold";var w=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=y,this.charSizes=Object.create(null),this.allowBoldFonts=w&&w.width===y.width&&w.height===y.height,this._emit("changeCharacterSize",{data:y})}},f.prototype.$addObserver=function(){var y=this;this.$observer=new window.ResizeObserver(function(w){y.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var y=this;return this.$pollSizeChangesTimer=u.onIdle(function w(){y.checkForSizeChanges(),u.onIdle(w,500)},500)},f.prototype.setPolling=function(y){y?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(y){var w={height:(y||this.$measureNode).clientHeight,width:(y||this.$measureNode).clientWidth/l};return w.width===0||w.height===0?null:w},f.prototype.$measureCharWidth=function(y){this.$main.textContent=v.stringRepeat(y,l);var w=this.$main.getBoundingClientRect();return w.width/l},f.prototype.getCharacterWidth=function(y){var w=this.charSizes[y];return w===void 0&&(w=this.charSizes[y]=this.$measureCharWidth(y)/this.$characterSize.width),w},f.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},f.prototype.$getZoom=function(y){return!y||!y.parentElement?1:(Number(window.getComputedStyle(y).zoom)||1)*this.$getZoom(y.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var y=function(w,x){return["div",{style:"position: absolute;top:"+w+"px;left:"+x+"px;"}]};this.els=g.buildDom([y(0,0),y(c,0),y(0,c),y(c,c)],this.el)},f.prototype.transformCoordinates=function(y,w){if(y){var x=this.$getZoom(this.el);y=b(1/x,y)}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 S(V,q){return[V[0]-q[0],V[1]-q[1]]}function C(V,q){return[V[0]+q[0],V[1]+q[1]]}function b(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 R=T(this.els[0]),L=T(this.els[1]),I=T(this.els[2]),N=T(this.els[3]),k=E(S(N,L),S(N,I),S(C(L,I),C(N,R))),A=b(1+k[0],S(L,R)),_=b(1+k[1],S(I,R));if(w){var M=w,O=k[0]*M[0]/c+k[1]*M[1]/c+1,F=C(b(M[0],A),b(M[1],_));return C(b(1/O/c,F),R)}var H=S(y,R),z=E(S(A,b(k[0],H)),S(_,b(k[1],H)),H);return b(c,z)},f}();o.prototype.$characterSize={width:0,height:0},h.implement(o.prototype,s),r.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(t,r,d){d.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,r,d){var h=t("../lib/dom"),g=t("../lib/oop"),v=t("../lib/event_emitter").EventEmitter,u=function(){function p(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 p.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,k){return N.priority<k.priority?-1:N.priority>k.priority?1:0}var f=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),f){var y={info:1,warning:2,error:3};f.forEach(function(N){N.priority=y[N.type]||null}),f=f.sort(o);for(var w=this.renderer.session.$foldData,x=0;x<f.length;x++){var E=f[x].row,S=this.compensateFoldRows(E,w),C=Math.round((E-S)*this.lineHeight*this.heightRatio),b=Math.round((E-S)*this.lineHeight*this.heightRatio),T=Math.round(((E-S)*this.lineHeight+this.lineHeight)*this.heightRatio),R=T-b;if(R<this.minDecorationHeight){var L=(b+T)/2|0;L<this.halfMinDecorationHeight?L=this.halfMinDecorationHeight:L+this.halfMinDecorationHeight>this.canvasHeight&&(L=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(L-this.halfMinDecorationHeight),T=Math.round(L+this.halfMinDecorationHeight)}c.fillStyle=l[f[x].type]||null,c.fillRect(0,C,this.canvasWidth,T-b)}}var I=this.renderer.session.selection.getCursor();if(I){var S=this.compensateFoldRows(I.row,w),C=Math.round((I.row-S)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,C,this.canvasWidth,2)}},p.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},p}();g.implement(u.prototype,v),r.Decorator=u}),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,r,d){var h=t("./lib/oop"),g=t("./lib/dom"),v=t("./lib/lang"),u=t("./config"),p=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,f=t("./scrollbar_custom").HScrollBar,y=t("./scrollbar_custom").VScrollBar,w=t("./renderloop").RenderLoop,x=t("./layer/font_metrics").FontMetrics,E=t("./lib/event_emitter").EventEmitter,S=t("./css/editor-css"),C=t("./layer/decorators").Decorator,b=t("./lib/useragent"),T=t("./layer/text_util").isTextToken;g.importCssString(S,"ace_editor.css",!1);var R=function(){function L(I,N){var k=this;this.container=I||g.createElement("div"),g.addCssClass(this.container,"ace_editor"),g.HI_DPI&&g.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),u.get("useStrictCSP")==null&&u.set("useStrictCSP",!1),this.$gutter=g.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=g.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=g.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var A=this.$textLayer=new l(this.content);this.canvas=A.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(_){k.$scrollAnimation||k.session.setScrollTop(_.data-k.scrollMargin.top)}),this.scrollBarH.on("scroll",function(_){k.$scrollAnimation||k.session.setScrollLeft(_.data-k.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(_){k.updateCharacterSize(),k.onResize(!0,k.gutterWidth,k.$size.width,k.$size.height),k._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=!b.isIOS,this.$loop=new w(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),u.resetOptions(this),u._signal("renderer",this)}return L.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(),g.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(I){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=I,I&&this.scrollMargin.top&&I.getScrollTop()<=0&&I.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(I),this.$markerBack.setSession(I),this.$markerFront.setSession(I),this.$gutterLayer.setSession(I),this.$textLayer.setSession(I),I&&(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))},L.prototype.updateLines=function(I,N,k){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>I&&(this.$changedLines.firstRow=I),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:I,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if(k)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},L.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},L.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},L.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},L.prototype.updateFull=function(I){I?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(I,N,k,A){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=I?1:0;var _=this.container;A||(A=_.clientHeight||_.scrollHeight),!A&&this.$maxLines&&this.lineHeight>1&&(!_.style.height||_.style.height=="0px")&&(_.style.height="1px",A=_.clientHeight||_.scrollHeight),k||(k=_.clientWidth||_.scrollWidth);var M=this.$updateCachedSize(I,N,k,A);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!k&&!A)return this.resizing=0;I&&(this.$gutterLayer.$padding=null),I?this.$renderChanges(M|this.$changes,!0):this.$loop.schedule(M|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(I,N,k,A){A-=this.$extraHeight||0;var _=0,M=this.$size,O={width:M.width,height:M.height,scrollerHeight:M.scrollerHeight,scrollerWidth:M.scrollerWidth};if(A&&(I||M.height!=A)&&(M.height=A,_|=this.CHANGE_SIZE,M.scrollerHeight=M.height,this.$horizScroll&&(M.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(M.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",_=_|this.CHANGE_SCROLL),k&&(I||M.width!=k)){_|=this.CHANGE_SIZE,M.width=k,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,g.setStyle(this.scrollBarH.element.style,"left",N+"px"),g.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),M.scrollerWidth=Math.max(0,k-N-this.scrollBarV.getWidth()-this.margin.h),g.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";g.setStyle(this.scrollBarH.element.style,"right",F),g.setStyle(this.scroller.style,"right",F),g.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(M.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||I)&&(_|=this.CHANGE_FULL)}return M.$dirty=!k||!A,_&&this._signal("resize",O),_},L.prototype.onGutterResize=function(I){var N=this.$showGutter?I: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()},L.prototype.adjustWrapLimit=function(){var I=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(I/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(I){this.setOption("animatedScroll",I)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(I){this.setOption("showInvisibles",I),this.session.$bidiHandler.setShowInvisibles(I)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(I){this.setOption("displayIndentGuides",I)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(I){this.setOption("highlightIndentGuides",I)},L.prototype.setShowPrintMargin=function(I){this.setOption("showPrintMargin",I)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(I){this.setOption("printMarginColumn",I)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(I){return this.setOption("showGutter",I)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(I){this.setOption("fadeFoldWidgets",I)},L.prototype.setHighlightGutterLine=function(I){this.setOption("highlightGutterLine",I)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var I=g.createElement("div");I.className="ace_layer ace_print-margin-layer",this.$printMarginEl=g.createElement("div"),this.$printMarginEl.className="ace_print-margin",I.appendChild(this.$printMarginEl),this.content.insertBefore(I,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()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var I=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){g.translate(this.textarea,-100,0);return}var k=this.$cursorLayer.$pixelPos;if(k){N&&N.markerRange&&(k=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var A=this.layerConfig,_=k.top,M=k.left;_-=A.offset;var O=N&&N.useTextareaForIME||b.isMobile?this.lineHeight:1;if(_<0||_>A.height-O){g.translate(this.textarea,0,0);return}var F=1,H=this.$size.height-O;if(!N)_+=this.lineHeight;else if(N.useTextareaForIME){var z=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(z)[0]}else _+=this.lineHeight+2;M-=this.scrollLeft,M>this.$size.scrollerWidth-F&&(M=this.$size.scrollerWidth-F),M+=this.gutterWidth+this.margin.left,g.setStyle(I,"height",O+"px"),g.setStyle(I,"width",F+"px"),g.translate(this.textarea,Math.min(M,this.$size.scrollerWidth-F),Math.min(_,H))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var I=this.layerConfig,N=I.lastRow,k=this.session.documentToScreenRow(N,0)*I.lineHeight;return k-this.session.getScrollTop()>I.height-I.lineHeight?N-1:N},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(I){this.$padding=I,this.$textLayer.setPadding(I),this.$cursorLayer.setPadding(I),this.$markerFront.setPadding(I),this.$markerBack.setPadding(I),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(I,N,k,A){var _=this.scrollMargin;_.top=I|0,_.bottom=N|0,_.right=A|0,_.left=k|0,_.v=_.top+_.bottom,_.h=_.left+_.right,_.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-_.top),this.updateFull()},L.prototype.setMargin=function(I,N,k,A){var _=this.margin;_.top=I|0,_.bottom=N|0,_.right=A|0,_.left=k|0,_.v=_.top+_.bottom,_.h=_.left+_.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(I){this.setOption("hScrollBarAlwaysVisible",I)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(I){this.setOption("vScrollBarAlwaysVisible",I)},L.prototype.$updateScrollBarV=function(){var I=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(I-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>I-N&&(I=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(I+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(I,N){if(this.$changes&&(I|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!I&&!N){this.$changes|=I;return}if(this.$size.$dirty)return this.$changes|=I,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",I),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var k=this.layerConfig;if(I&this.CHANGE_FULL||I&this.CHANGE_SIZE||I&this.CHANGE_TEXT||I&this.CHANGE_LINES||I&this.CHANGE_SCROLL||I&this.CHANGE_H_SCROLL){if(I|=this.$computeLayerConfig()|this.$loop.clear(),k.firstRow!=this.layerConfig.firstRow&&k.firstRowScreen==this.layerConfig.firstRowScreen){var A=this.scrollTop+(k.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;A>0&&(this.scrollTop=A,I=I|this.CHANGE_SCROLL,I|=this.$computeLayerConfig()|this.$loop.clear())}k=this.layerConfig,this.$updateScrollBarV(),I&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),g.translate(this.content,-this.scrollLeft,-k.offset);var _=k.width+2*this.$padding+"px",M=k.minHeight+"px";g.setStyle(this.content.style,"width",_),g.setStyle(this.content.style,"height",M)}if(I&this.CHANGE_H_SCROLL&&(g.translate(this.content,-this.scrollLeft,-k.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),I&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(k),this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k),this.$markerBack.update(k),this.$markerFront.update(k),this.$cursorLayer.update(k),this.$moveTextAreaToCursor(),this._signal("afterRender",I);return}if(I&this.CHANGE_SCROLL){this.$changedLines=null,I&this.CHANGE_TEXT||I&this.CHANGE_LINES?this.$textLayer.update(k):this.$textLayer.scrollLines(k),this.$showGutter&&(I&this.CHANGE_GUTTER||I&this.CHANGE_LINES?this.$gutterLayer.update(k):this.$gutterLayer.scrollLines(k)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k),this.$markerBack.update(k),this.$markerFront.update(k),this.$cursorLayer.update(k),this.$moveTextAreaToCursor(),this._signal("afterRender",I);return}I&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(k),this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):I&this.CHANGE_LINES?((this.$updateLines()||I&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):I&this.CHANGE_TEXT||I&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):I&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)),I&this.CHANGE_CURSOR&&(this.$cursorLayer.update(k),this.$moveTextAreaToCursor()),I&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(k),I&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(k),this._signal("afterRender",I)},L.prototype.$autosize=function(){var I=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,k=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,I))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(k+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&k>this.$maxPixelHeight&&(k=this.$maxPixelHeight);var A=k<=2*this.lineHeight,_=!A&&I>N;if(k!=this.desiredHeight||this.$size.height!=this.desiredHeight||_!=this.$vScroll){_!=this.$vScroll&&(this.$vScroll=_,this.scrollBarV.setVisible(_));var M=this.container.clientWidth;this.container.style.height=k+"px",this.$updateCachedSize(!0,this.$gutterWidth,M,k),this.desiredHeight=k,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var I=this.session,N=this.$size,k=N.height<=2*this.lineHeight,A=this.session.getScreenLength(),_=A*this.lineHeight,M=this.$getLongestLine(),O=!k&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-M-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(),k=N.height<=2*this.lineHeight);var z=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,M+2*this.$padding-N.scrollerWidth+q.right)));var X=!k&&(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,re=Math.ceil(z/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+re,me,ve,ge=this.lineHeight;J=I.screenToDocumentRow(J,0);var Se=I.getFoldLine(J);Se&&(J=Se.start.row),me=I.documentToScreenRow(J,0),ve=I.getRowLength(J)*ge,ae=Math.min(I.screenToDocumentRow(ae,0),I.getLength()-1),z=N.scrollerHeight+I.getRowLength(ae)*ge+ve,Z=this.scrollTop-me*ge;var lt=0;return(this.layerConfig.width!=M||F)&&(lt=this.CHANGE_H_SCROLL),(F||G)&&(lt|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(M=this.$getLongestLine())),this.layerConfig={width:M,padding:this.$padding,firstRow:J,firstRowScreen:me,lastRow:ae,lineHeight:ge,characterWidth:this.characterWidth,minHeight:z,maxHeight:_,offset:Z,gutterOffset:ge?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/ge)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(M-this.$padding),lt},L.prototype.$updateLines=function(){if(this.$changedLines){var I=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var k=this.layerConfig;if(!(I>k.lastRow+1)&&!(N<k.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(k),this.$textLayer.update(k);return}return this.$textLayer.updateLines(k,I,N),!0}}},L.prototype.$getLongestLine=function(){var I=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(I+=1),this.$textLayer&&I>this.$textLayer.MAX_LINE_LENGTH&&(I=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(I*this.characterWidth))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(I,N){this.$gutterLayer.addGutterDecoration(I,N)},L.prototype.removeGutterDecoration=function(I,N){this.$gutterLayer.removeGutterDecoration(I,N)},L.prototype.updateBreakpoints=function(I){this._rows=I,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(I){this.$gutterLayer.setAnnotations(I),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(I,N,k){this.scrollCursorIntoView(I,k),this.scrollCursorIntoView(N,k)},L.prototype.scrollCursorIntoView=function(I,N,k){if(this.$size.scrollerHeight!==0){var A=this.$cursorLayer.getPixelPosition(I),_=A.left,M=A.top,O=k&&k.top||0,F=k&&k.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var H=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;H+O>M?(N&&H+O>M+this.lineHeight&&(M-=N*this.$size.scrollerHeight),M===0&&(M=-this.scrollMargin.top),this.session.setScrollTop(M)):H+this.$size.scrollerHeight-F<M+this.lineHeight&&(N&&H+this.$size.scrollerHeight-F<M-this.lineHeight&&(M+=N*this.$size.scrollerHeight),this.session.setScrollTop(M+this.lineHeight+F-this.$size.scrollerHeight));var z=this.scrollLeft,V=2*this.layerConfig.characterWidth;_-V<z?(_-=V,_<this.$padding+V&&(_=-this.scrollMargin.left),this.session.setScrollLeft(_)):(_+=V,z+this.$size.scrollerWidth<_+this.characterWidth?this.session.setScrollLeft(Math.round(_+this.characterWidth-this.$size.scrollerWidth)):z<=this.$padding&&_-z<this.characterWidth&&this.session.setScrollLeft(0))}},L.prototype.getScrollTop=function(){return this.session.getScrollTop()},L.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},L.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},L.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},L.prototype.scrollToRow=function(I){this.session.setScrollTop(I*this.lineHeight)},L.prototype.alignCursor=function(I,N){typeof I=="number"&&(I={row:I,column:0});var k=this.$cursorLayer.getPixelPosition(I),A=this.$size.scrollerHeight-this.lineHeight,_=k.top-A*(N||0);return this.session.setScrollTop(_),_},L.prototype.$calcSteps=function(I,N){var k=0,A=this.STEPS,_=[],M=function(O,F,H){return H*(Math.pow(O-1,3)+1)+F};for(k=0;k<A;++k)_.push(M(k/this.STEPS,I,N-I));return _},L.prototype.scrollToLine=function(I,N,k,A){var _=this.$cursorLayer.getPixelPosition({row:I,column:0}),M=_.top;N&&(M-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(M),k!==!1&&this.animateScrolling(O,A)},L.prototype.animateScrolling=function(I,N){var k=this.scrollTop;if(!this.$animatedScroll)return;var A=this;if(I==k)return;if(this.$scrollAnimation){var _=this.$scrollAnimation.steps;if(_.length&&(I=_[0],I==k))return}var M=A.$calcSteps(I,k);this.$scrollAnimation={from:I,to:k,steps:M},clearInterval(this.$timer),A.session.setScrollTop(M.shift()),A.session.$scrollTop=k;function O(){A.$timer=clearInterval(A.$timer),A.$scrollAnimation=null,A.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(A.$stopAnimation){O();return}if(!A.session)return clearInterval(A.$timer);M.length?(A.session.setScrollTop(M.shift()),A.session.$scrollTop=k):k!=null?(A.session.$scrollTop=-1,A.session.setScrollTop(k),k=null):O()},10)},L.prototype.scrollToY=function(I){this.scrollTop!==I&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=I)},L.prototype.scrollToX=function(I){this.scrollLeft!==I&&(this.scrollLeft=I),this.$loop.schedule(this.CHANGE_H_SCROLL)},L.prototype.scrollTo=function(I,N){this.session.setScrollTop(N),this.session.setScrollLeft(I)},L.prototype.scrollBy=function(I,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),I&&this.session.setScrollLeft(this.session.getScrollLeft()+I)},L.prototype.isScrollableBy=function(I,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||I<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||I>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(I,N){var k;if(this.$hasCssTransforms){k={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([I,N]);I=A[1]-this.gutterWidth-this.margin.left,N=A[0]}else k=this.scroller.getBoundingClientRect();var _=I+this.scrollLeft-k.left-this.$padding,M=_/this.characterWidth,O=Math.floor((N+this.scrollTop-k.top)/this.lineHeight),F=this.$blockCursor?Math.floor(M):Math.round(M);return{row:O,column:F,side:M-F>0?1:-1,offsetX:_}},L.prototype.screenToTextCoordinates=function(I,N){var k;if(this.$hasCssTransforms){k={top:0,left:0};var A=this.$fontMetrics.transformCoordinates([I,N]);I=A[1]-this.gutterWidth-this.margin.left,N=A[0]}else k=this.scroller.getBoundingClientRect();var _=I+this.scrollLeft-k.left-this.$padding,M=_/this.characterWidth,O=this.$blockCursor?Math.floor(M):Math.round(M),F=Math.floor((N+this.scrollTop-k.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),_)},L.prototype.textToScreenCoordinates=function(I,N){var k=this.scroller.getBoundingClientRect(),A=this.session.documentToScreenPosition(I,N),_=this.$padding+(this.session.$bidiHandler.isBidiRow(A.row,I)?this.session.$bidiHandler.getPosLeft(A.column):Math.round(A.column*this.characterWidth)),M=A.row*this.lineHeight;return{pageX:k.left+_-this.scrollLeft,pageY:k.top+M-this.scrollTop}},L.prototype.visualizeFocus=function(){g.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){g.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(I){this.$composition=I,I.cssText||(I.cssText=this.textarea.style.cssText),I.useTextareaForIME==null&&(I.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(g.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):I.markerId=this.session.addMarker(I.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(I){var N=this.session.selection.cursor;this.addToken(I,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),g.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var I=this.session.selection.cursor;this.removeExtraToken(I.row,I.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(I,N){var k=this.session.selection.cursor,A=N||{row:k.row,column:k.column};this.removeGhostText();var _=this.$calculateWrappedTextChunks(I,A);this.addToken(_[0].text,"ghost_text",A.row,A.column),this.$ghostText={text:I,position:{row:A.row,column:A.column}};var M=g.createElement("div");if(_.length>1){var O=this.hideTokensAfterPosition(A.row,A.column),F;_.slice(1).forEach(function(G){var Z=g.createElement("div"),re=g.createElement("span");re.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),re.appendChild(g.createTextNode(G.text)),Z.appendChild(re),M.appendChild(Z),F=Z}),O.forEach(function(G){var Z=g.createElement("span");T(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(g.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:M,row:A.row,column:A.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var H=this.$cursorLayer.getPixelPosition(A,!0),z=this.container,V=z.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(A.row)}},L.prototype.$calculateWrappedTextChunks=function(I,N){var k=this.$size.scrollerWidth-this.$padding*2,A=Math.floor(k/this.characterWidth)-2;A=A<=0?60:A;for(var _=I.split(/\r?\n/),M=[],O=0;O<_.length;O++){var F=this.session.$getDisplayTokens(_[O],N.column),H=this.session.$computeWrapSplits(F,A,this.session.$tabSize);if(H.length>0){var z=0;H.push(_[O].length);for(var V=0;V<H.length;V++){var q=_[O].slice(z,H[V]);M.push({text:q,wrapped:!0}),z=H[V]}}else M.push({text:_[O],wrapped:!1})}return M},L.prototype.removeGhostText=function(){if(this.$ghostText){var I=this.$ghostText.position;this.removeExtraToken(I.row,I.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},L.prototype.addToken=function(I,N,k,A){var _=this.session;_.bgTokenizer.lines[k]=null;var M={type:N,value:I},O=_.getTokens(k);if(A==null||!O.length)O.push(M);else for(var F=0,H=0;H<O.length;H++){var z=O[H];if(F+=z.value.length,A<=F){var V=z.value.length-(F-A),q=z.value.slice(0,V),X=z.value.slice(V);O.splice(H,1,{type:z.type,value:q},M,{type:z.type,value:X});break}}this.updateLines(k,k)},L.prototype.hideTokensAfterPosition=function(I,N){for(var k=this.session.getTokens(I),A=0,_=!1,M=[],O=0;O<k.length;O++){var F=k[O];if(A+=F.value.length,F.type!=="ghost_text"){if(_){M.push({type:F.type,value:F.value}),F.type="hidden_token";continue}A===N&&(_=!0)}}return this.updateLines(I,I),M},L.prototype.removeExtraToken=function(I,N){this.session.bgTokenizer.lines[I]=null,this.updateLines(I,I)},L.prototype.setTheme=function(I,N){var k=this;if(this.$themeId=I,k._dispatchEvent("themeChange",{theme:I}),!I||typeof I=="string"){var A=I||this.$options.theme.initialValue;u.loadModule(["theme",A],_)}else _(I);function _(M){if(k.$themeId!=I)return N&&N();if(!M||!M.cssClass)throw new Error("couldn't load module "+I+" or it didn't call define");M.$id&&(k.$themeId=M.$id),g.importCssString(M.cssText,M.cssClass,k.container),k.theme&&g.removeCssClass(k.container,k.theme.cssClass);var O="padding"in M?M.padding:"padding"in(k.theme||{})?4:k.$padding;k.$padding&&O!=k.$padding&&k.setPadding(O),k.$theme=M.cssClass,k.theme=M,g.addCssClass(k.container,M.cssClass),g.setCssClass(k.container,"ace_dark",M.isDark),k.$size&&(k.$size.width=0,k.$updateSizeAsync()),k._dispatchEvent("themeLoaded",{theme:M}),N&&N(),b.isSafari&&k.scroller&&(k.scroller.style.background="red",k.scroller.style.background="")}},L.prototype.getTheme=function(){return this.$themeId},L.prototype.setStyle=function(I,N){g.setCssClass(this.container,I,N!==!1)},L.prototype.unsetStyle=function(I){g.removeCssClass(this.container,I)},L.prototype.setCursorStyle=function(I){g.setStyle(this.scroller.style,"cursor",I)},L.prototype.setMouseCursor=function(I){g.setStyle(this.scroller.style,"cursor",I)},L.prototype.attachToShadowRoot=function(){g.importCssString(S,"ace_editor.css",this.container)},L.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},L.prototype.$updateCustomScrollbar=function(I){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,I===!0?(this.scrollBarV=new y(this.container,this),this.scrollBarH=new f(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(k){N.$scrollAnimation||N.session.setScrollTop(k.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(k){N.$scrollAnimation||N.session.setScrollLeft(k.data-N.scrollMargin.left)}),this.$scrollDecorator=new C(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(k){N.$scrollAnimation||N.session.setScrollTop(k.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(k){N.$scrollAnimation||N.session.setScrollLeft(k.data-N.scrollMargin.left)}))},L.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var I=this;this.$resizeTimer=v.delayedCall(function(){I.destroyed||I.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var k=N[0].contentRect.width,A=N[0].contentRect.height;Math.abs(I.$size.width-k)>1||Math.abs(I.$size.height-A)>1?I.$resizeTimer.delay():I.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();R.prototype.CHANGE_CURSOR=1,R.prototype.CHANGE_MARKER=2,R.prototype.CHANGE_GUTTER=4,R.prototype.CHANGE_SCROLL=8,R.prototype.CHANGE_LINES=16,R.prototype.CHANGE_TEXT=32,R.prototype.CHANGE_SIZE=64,R.prototype.CHANGE_MARKER_BACK=128,R.prototype.CHANGE_MARKER_FRONT=256,R.prototype.CHANGE_FULL=512,R.prototype.CHANGE_H_SCROLL=1024,R.prototype.$changes=0,R.prototype.$padding=null,R.prototype.$frozen=!1,R.prototype.STEPS=8,h.implement(R.prototype,E),u.defineOptions(R.prototype,"renderer",{useResizeObserver:{set:function(L){!L&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):L&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(L){this.$textLayer.setShowInvisibles(L)&&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(L){typeof L=="number"&&(this.$printMarginColumn=L),this.$showPrintMargin=!!L,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(L){this.$gutter.style.display=L?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(L){this.$gutterLayer.$useSvgGutterIcons=L},initialValue:!1},showFoldedAnnotations:{set:function(L){this.$gutterLayer.$showFoldedAnnotations=L},initialValue:!1},fadeFoldWidgets:{set:function(L){g.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),r.VirtualRenderer=R}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,r,d){var h=t("../lib/oop"),g=t("../lib/net"),v=t("../lib/event_emitter").EventEmitter,u=t("../config");function p(c){var o="importScripts('"+g.qualifyURL(c)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,y=new f;return y.append(o),y.getBlob("application/javascript")}}function s(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(u.get("loadWorkerFromBlob")){var o=p(c),f=window.URL||window.webkitURL,y=f.createObjectURL(o);return new Worker(y)}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,v),this.$createWorkerFromOldConfig=function(c,o,f,y,w){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),u.get("packaged")||!t.toUrl)y=y||u.moduleUrl(o,"worker");else{var x=this.$normalizePath;y=y||x(t.toUrl("ace/worker/worker.js",null,"_"));var E={};c.forEach(function(S){E[S]=x(t.toUrl(S,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(y),w&&this.send("importScripts",w),this.$worker.postMessage({init:!0,tlns:E,module:o,classname:f}),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 f=this.callbacks[o.id];f&&(f(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 g.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,f){if(f){var y=this.callbackId++;this.callbacks[y]=f,o.push(y)}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(f){console.error(f.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,f){var y=null,w=!1,x=Object.create(v),E=[],S=new l({messageBuffer:E,terminate:function(){},postMessage:function(b){E.push(b),y&&(w?setTimeout(C):C())}});S.setEmitSync=function(b){w=b};var C=function(){var b=E.shift();b.command?y[b.command].apply(y,b.args):b.event&&x._signal(b.event,b.data)};return x.postMessage=function(b){S.onMessage({data:b})},x.callback=function(b,T){this.postMessage({type:"call",id:T,data:b})},x.emit=function(b,T){this.postMessage({type:"event",name:b,data:T})},u.loadModule(["worker",o],function(b){for(y=new b[f](x);E.length;)C()}),S};r.UIWorkerClient=a,r.WorkerClient=l,r.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(t,r,d){var h=t("./range").Range,g=t("./lib/event_emitter").EventEmitter,v=t("./lib/oop"),u=function(){function p(s,l,a,c,o,f){var y=this;this.length=l,this.session=s,this.doc=s.getDocument(),this.mainClass=o,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){y.onCursorChange()})},this.$pos=a;var w=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=w.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return p.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 f=l.createAnchor(o.row,o.column);f.$insertRight=!0,f.detach(),s.others.push(f)}),a.setUndoSelect(!1)},p.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)})}},p.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)}},p.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 f=this.others.length-1;f>=0;f--){var y=this.others[f],w={row:y.row,column:y.column+o};this.doc.insertMergedLines(w,s.lines)}else if(s.action==="remove")for(var f=this.others.length-1;f>=0;f--){var y=this.others[f],w={row:y.row,column:y.column+o};this.doc.remove(new h(w.row,w.column,w.row,w.column-a))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var l=this.others.length;l--;)this.others[l].onChange(s);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var s=this,l=this.session,a=function(o,f){l.removeMarker(o.markerId),o.markerId=l.addMarker(new h(o.row,o.column,o.row,o.column+s.length),f,null,!1)};a(this.pos,this.mainClass);for(var c=this.others.length;c--;)a(this.others[c],this.othersClass)}},p.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))}},p.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},p.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)}},p}();v.implement(u.prototype,g),r.PlaceHolder=u}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,d){var h=t("../lib/event"),g=t("../lib/useragent");function v(p,s){return p.row==s.row&&p.column==s.column}function u(p){var s=p.domEvent,l=s.altKey,a=s.shiftKey,c=s.ctrlKey,o=p.getAccelKey(),f=p.getButton();if(c&&g.isMac&&(f=s.button),p.editor.inMultiSelectMode&&f==2){p.editor.textInput.onContextMenu(p.domEvent);return}if(!c&&!l&&!o){f===0&&p.editor.inMultiSelectMode&&p.editor.exitMultiSelectMode();return}if(f===0){var y=p.editor,w=y.selection,x=y.inMultiSelectMode,E=p.getDocumentPosition(),S=w.getCursor(),C=p.inSelection()||w.isEmpty()&&v(E,S),b=p.x,T=p.y,R=function(q){b=q.clientX,T=q.clientY},L=y.session,I=y.renderer.pixelToScreenCoordinates(b,T),N=I,k;if(y.$mouseHandler.$enableJumpToDef)c&&l||o&&l?k=a?"block":"add":l&&y.$blockSelectEnabled&&(k="block");else if(o&&!l){if(k="add",!x&&a)return}else l&&y.$blockSelectEnabled&&(k="block");if(k&&g.isMac&&s.ctrlKey&&y.$mouseHandler.cancelContextMenu(),k=="add"){if(!x&&C)return;if(!x){var A=w.toOrientedRange();y.addSelectionMarker(A)}var _=w.rangeList.rangeAtPoint(E);y.inVirtualSelectionMode=!0,a&&(_=null,A=w.ranges[0]||A,y.removeSelectionMarker(A)),y.once("mouseup",function(){var q=w.toOrientedRange();_&&q.isEmpty()&&v(_.cursor,q.cursor)?w.substractPoint(q.cursor):(a?w.substractPoint(A.cursor):A&&(y.removeSelectionMarker(A),w.addRange(A)),w.addRange(q)),y.inVirtualSelectionMode=!1})}else if(k=="block"){p.stop(),y.inVirtualSelectionMode=!0;var M,O=[],F=function(){var q=y.renderer.pixelToScreenCoordinates(b,T),X=L.screenToDocumentPosition(q.row,q.column,q.offsetX);v(N,q)&&v(X,w.lead)||(N=q,y.selection.moveToPosition(X),y.renderer.scrollCursorIntoView(),y.removeSelectionMarkers(O),O=w.rectangularRangeBlock(N,I),y.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=y.$mouseHandler.$clickSelection.clone()),O.forEach(y.addSelectionMarker,y),y.updateSelectionMarkers())};x&&!o?w.toSingleRange():!x&&o&&(M=w.toOrientedRange(),y.addSelectionMarker(M)),a?I=L.documentToScreenPosition(w.lead):w.moveToPosition(E),N={row:-1,column:-1};var H=function(q){F(),clearInterval(V),y.removeSelectionMarkers(O),O.length||(O=[w.toOrientedRange()]),M&&(y.removeSelectionMarker(M),w.toSingleRange(M));for(var X=0;X<O.length;X++)w.addRange(O[X]);y.inVirtualSelectionMode=!1,y.$mouseHandler.$clickSelection=null},z=F;h.capture(y.container,R,H);var V=setInterval(function(){z()},20);return p.preventDefault()}}}r.onMouseDown=u}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(t,r,d){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(g){g.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(g){g.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(g){g.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(g){g.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(g){g.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(g){g.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(g){g.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(g){g.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(g){g.multiSelect.rangeCount>1?g.multiSelect.joinSelections():g.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(g){g.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(g){g.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(g){g.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(g){g.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(g){return g&&g.inMultiSelectMode}}];var h=t("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new h(r.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,r,d){var h=t("./range_list").RangeList,g=t("./range").Range,v=t("./selection").Selection,u=t("./mouse/multi_select_handler").onMouseDown,p=t("./lib/event"),s=t("./lib/lang"),l=t("./commands/multi_select_commands");r.commands=l.defaultCommands.concat(l.multiSelectCommands);var a=t("./search").Search,c=new a;function o(S,C,b){return c.$options.wrap=!0,c.$options.needle=C,c.$options.backwards=b==-1,c.find(S)}var f=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(S,C){if(S){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(S),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),C||this.fromOrientedRange(S);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}S.cursor||(S.cursor=S.end);var T=this.rangeList.add(S);return this.$onAddRange(S),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)),C||this.fromOrientedRange(S)}},this.toSingleRange=function(S){S=S||this.ranges[0];var C=this.rangeList.removeAll();C.length&&this.$onRemoveRange(C),S&&this.fromOrientedRange(S)},this.substractPoint=function(S){var C=this.rangeList.substractPoint(S);if(C)return this.$onRemoveRange(C),C[0]},this.mergeOverlappingRanges=function(){var S=this.rangeList.merge();S.length&&this.$onRemoveRange(S)},this.$onAddRange=function(S){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(S),this._signal("addRange",{range:S})},this.$onRemoveRange=function(S){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var C=this.rangeList.ranges.pop();S.push(C),this.rangeCount=0}for(var b=S.length;b--;){var T=this.ranges.indexOf(S[b]);this.ranges.splice(T,1)}this._signal("removeRange",{ranges:S}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),C=C||this.ranges[0],C&&!C.isEqual(this.getRange())&&this.fromOrientedRange(C)},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 S=this.ranges.length?this.ranges:[this.getRange()],C=[],b=0;b<S.length;b++){var T=S[b],R=T.start.row,L=T.end.row;if(R===L)C.push(T.clone());else{for(C.push(new g(R,T.start.column,R,this.session.getLine(R).length));++R<L;)C.push(this.getLineRange(R,!0));C.push(new g(L,0,L,T.end.column))}b==0&&!this.isBackwards()&&(C=C.reverse())}this.toSingleRange();for(var b=C.length;b--;)this.addRange(C[b])},this.joinSelections=function(){var S=this.rangeList.ranges,C=S[S.length-1],b=g.fromPoints(S[0].start,C.end);this.toSingleRange(),this.setSelectionRange(b,C.cursor==C.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var S=this.rangeList.ranges,C=S[S.length-1],b=g.fromPoints(S[0].start,C.end);this.toSingleRange(),this.setSelectionRange(b,C.cursor==C.start)}else{var T=this.session.documentToScreenPosition(this.cursor),R=this.session.documentToScreenPosition(this.anchor),L=this.rectangularRangeBlock(T,R);L.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(S,C,b){var T=[],R=S.column<C.column;if(R)var L=S.column,I=C.column,N=S.offsetX,k=C.offsetX;else var L=C.column,I=S.column,N=C.offsetX,k=S.offsetX;var A=S.row<C.row;if(A)var _=S.row,M=C.row;else var _=C.row,M=S.row;L<0&&(L=0),_<0&&(_=0),_==M&&(b=!0);for(var O,F=_;F<=M;F++){var H=g.fromPoints(this.session.screenToDocumentPosition(F,L,N),this.session.screenToDocumentPosition(F,I,k));if(H.isEmpty()){if(O&&w(H.end,O))break;O=H.end}H.cursor=R?H.start:H.end,T.push(H)}if(A&&T.reverse(),!b){for(var z=T.length-1;T[z].isEmpty()&&z>0;)z--;if(z>0)for(var V=0;T[V].isEmpty();)V++;for(var q=z;q>=V;q--)T[q].isEmpty()&&T.splice(q,1)}return T}}).call(v.prototype);var y=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(S){S.cursor||(S.cursor=S.end);var C=this.getSelectionStyle();return S.marker=this.session.addMarker(S,"ace_selection",C),this.session.$selectionMarkers.push(S),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,S},this.removeSelectionMarker=function(S){if(S.marker){this.session.removeMarker(S.marker);var C=this.session.$selectionMarkers.indexOf(S);C!=-1&&this.session.$selectionMarkers.splice(C,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(S){for(var C=this.session.$selectionMarkers,b=S.length;b--;){var T=S[b];if(T.marker){this.session.removeMarker(T.marker);var R=C.indexOf(T);R!=-1&&C.splice(R,1)}}this.session.selectionMarkerCount=C.length},this.$onAddRange=function(S){this.addSelectionMarker(S.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(S){this.removeSelectionMarkers(S.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(S){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(S){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(S){var C=S.command,b=S.editor;if(b.multiSelect){if(C.multiSelectAction)C.multiSelectAction=="forEach"?T=b.forEachSelection(C,S.args):C.multiSelectAction=="forEachLine"?T=b.forEachSelection(C,S.args,!0):C.multiSelectAction=="single"?(b.exitMultiSelectMode(),T=C.exec(b,S.args||{})):T=C.multiSelectAction(b,S.args||{});else{var T=C.exec(b,S.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return T}},this.forEachSelection=function(S,C,b){if(!this.inVirtualSelectionMode){var T=b&&b.keepOrder,R=b==!0||b&&b.$byLines,L=this.session,I=this.selection,N=I.rangeList,k=(T?I:N).ranges,A;if(!k.length)return S.exec?S.exec(this,C||{}):S(this,C||{});var _=I._eventRegistry;I._eventRegistry={};var M=new v(L);this.inVirtualSelectionMode=!0;for(var O=k.length;O--;){if(R)for(;O>0&&k[O].start.row==k[O-1].end.row;)O--;M.fromOrientedRange(k[O]),M.index=O,this.selection=L.selection=M;var F=S.exec?S.exec(this,C||{}):S(this,C||{});!A&&F!==void 0&&(A=F),M.toOrientedRange(k[O])}M.detach(),this.selection=L.selection=I,this.inVirtualSelectionMode=!1,I._eventRegistry=_,I.mergeOverlappingRanges(),I.ranges[0]&&I.fromOrientedRange(I.ranges[0]);var H=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),H&&H.from==H.to&&this.renderer.animateScrolling(H.from),A}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var S="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var C=this.multiSelect.rangeList.ranges,b=[],T=0;T<C.length;T++)b.push(this.session.getTextRange(C[T]));var R=this.session.getDocument().getNewLineCharacter();S=b.join(R),S.length==(b.length-1)*R.length&&(S="")}else this.selection.isEmpty()||(S=this.session.getTextRange(this.getSelectionRange()));return S},this.$checkMultiselectChange=function(S,C){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&C==this.multiSelect.anchor)return;var T=C==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;T.row!=C.row||this.session.$clipPositionToDocument(T.row,T.column).column!=C.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(S,C,b){if(C=C||{},C.needle=S||C.needle,C.needle==null){var T=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();C.needle=this.session.getTextRange(T)}this.$search.set(C);var R=this.$search.findAll(this.session);if(!R.length)return 0;var L=this.multiSelect;b||L.toSingleRange(R[0]);for(var I=R.length;I--;)L.addRange(R[I],!0);return T&&L.rangeList.rangeAtPoint(T.start)&&L.addRange(T,!0),R.length},this.selectMoreLines=function(S,C){var b=this.selection.toOrientedRange(),T=b.cursor==b.end,R=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(R.column=this.selection.$desiredColumn);var L=this.session.screenToDocumentPosition(R.row+S,R.column);if(b.isEmpty())var N=L;else var I=this.session.documentToScreenPosition(T?b.end:b.start),N=this.session.screenToDocumentPosition(I.row+S,I.column);if(T){var k=g.fromPoints(L,N);k.cursor=k.start}else{var k=g.fromPoints(N,L);k.cursor=k.end}if(k.desiredColumn=R.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(C)var A=b.cursor;this.selection.addRange(k),A&&this.selection.substractPoint(A)},this.transposeSelections=function(S){for(var C=this.session,b=C.multiSelect,T=b.ranges,R=T.length;R--;){var L=T[R];if(L.isEmpty()){var I=C.getWordRange(L.start.row,L.start.column);L.start.row=I.start.row,L.start.column=I.start.column,L.end.row=I.end.row,L.end.column=I.end.column}}b.mergeOverlappingRanges();for(var N=[],R=T.length;R--;){var L=T[R];N.unshift(C.getTextRange(L))}S<0?N.unshift(N.pop()):N.push(N.shift());for(var R=T.length;R--;){var L=T[R],k=L.clone();C.replace(L,N[R]),L.start.row=k.start.row,L.start.column=k.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(S,C,b){var T=this.session,R=T.multiSelect,L=R.toOrientedRange();if(!(L.isEmpty()&&(L=T.getWordRange(L.start.row,L.start.column),L.cursor=S==-1?L.start:L.end,this.multiSelect.addRange(L),b))){var I=T.getTextRange(L),N=o(T,I,S);N&&(N.cursor=S==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),C&&this.multiSelect.substractPoint(L.cursor)}},this.alignCursors=function(){var S=this.session,C=S.multiSelect,b=C.ranges,T=-1,R=b.filter(function(z){if(z.cursor.row==T)return!0;T=z.cursor.row});if(!b.length||R.length==b.length-1){var L=this.selection.getRange(),I=L.start.row,N=L.end.row,k=I==N;if(k){var A=this.session.getLength(),_;do _=this.session.getLine(N);while(/[=:]/.test(_)&&++N<A);do _=this.session.getLine(I);while(/[=:]/.test(_)&&--I>0);I<0&&(I=0),N>=A&&(N=A-1)}var M=this.session.removeFullLines(I,N);M=this.$reAlignText(M,k),this.session.insert({row:I,column:0},M.join(`
|
936
|
-
`)+`
|
937
|
-
`),k||(L.start.column=0,L.end.column=M[M.length-1].length),this.selection.setRange(L)}else{R.forEach(function(z){C.substractPoint(z.cursor)});var O=0,F=1/0,H=b.map(function(z){var V=z.cursor,q=S.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});b.forEach(function(z,V){var q=z.cursor,X=O-q.column,G=H[V]-F;X>G?S.insert(q,s.stringRepeat(" ",X-G)):S.remove(new g(q.row,q.column,q.row,q.column-X+G)),z.start.column=z.end.column=O,z.start.row=z.end.row=q.row,z.cursor=z.end}),C.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(S,C){var b=!0,T=!0,R,L,I;return S.map(function(M){var O=M.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?R==null?(R=O[1].length,L=O[2].length,I=O[3].length,O):(R+L+I!=O[1].length+O[2].length+O[3].length&&(T=!1),R!=O[1].length&&(b=!1),R>O[1].length&&(R=O[1].length),L<O[2].length&&(L=O[2].length),I>O[3].length&&(I=O[3].length),O):[M]}).map(C?k:b?T?A:k:_);function N(M){return s.stringRepeat(" ",M)}function k(M){return M[2]?N(R)+M[2]+N(L-M[2].length+I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function A(M){return M[2]?N(R+L-M[2].length)+M[2]+N(I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}function _(M){return M[2]?N(R)+M[2]+N(I)+M[4].replace(/^([=:])\s+/,"$1 "):M[0]}}}).call(y.prototype);function w(S,C){return S.row==C.row&&S.column==C.column}r.onSessionChange=function(S){var C=S.session;C&&!C.multiSelect&&(C.$selectionMarkers=[],C.selection.$initRangeList(),C.multiSelect=C.selection),this.multiSelect=C&&C.multiSelect;var b=S.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),C&&(C.multiSelect.on("addRange",this.$onAddRange),C.multiSelect.on("removeRange",this.$onRemoveRange),C.multiSelect.on("multiSelect",this.$onMultiSelect),C.multiSelect.on("singleSelect",this.$onSingleSelect),C.multiSelect.lead.on("change",this.$checkMultiselectChange),C.multiSelect.anchor.on("change",this.$checkMultiselectChange)),C&&this.inMultiSelectMode!=C.selection.inMultiSelectMode&&(C.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(S){S.$multiselectOnSessionChange||(S.$onAddRange=S.$onAddRange.bind(S),S.$onRemoveRange=S.$onRemoveRange.bind(S),S.$onMultiSelect=S.$onMultiSelect.bind(S),S.$onSingleSelect=S.$onSingleSelect.bind(S),S.$multiselectOnSessionChange=r.onSessionChange.bind(S),S.$checkMultiselectChange=S.$checkMultiselectChange.bind(S),S.$multiselectOnSessionChange(S),S.on("changeSession",S.$multiselectOnSessionChange),S.on("mousedown",u),S.commands.addCommands(l.defaultCommands),E(S))}function E(S){if(!S.textInput)return;var C=S.textInput.getElement(),b=!1;p.addListener(C,"keydown",function(R){var L=R.keyCode==18&&!(R.ctrlKey||R.shiftKey||R.metaKey);S.$blockSelectEnabled&&L?b||(S.renderer.setMouseCursor("crosshair"),b=!0):b&&T()},S),p.addListener(C,"keyup",T,S),p.addListener(C,"blur",T,S);function T(R){b&&(S.renderer.setMouseCursor(""),b=!1)}}r.MultiSelect=x,t("./config").defineOptions(y.prototype,"editor",{enableMultiselect:{set:function(S){x(this),S?this.on("mousedown",u):this.off("mousedown",u)},value:!0},enableBlockSelect:{set:function(S){this.$blockSelectEnabled=S},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,r,d){var h=t("../../range").Range,g=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(v,u,p){var s=v.getLine(p);return this.foldingStartMarker.test(s)?"start":u=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(v,u,p){return null},this.indentationBlock=function(v,u,p){var s=/\S/,l=v.getLine(u),a=l.search(s);if(a!=-1){for(var c=p||l.length,o=v.getLength(),f=u,y=u;++u<o;){var w=v.getLine(u).search(s);if(w!=-1){if(w<=a){var x=v.getTokenAt(u,0);if(!x||x.type!=="string")break}y=u}}if(y>f){var E=v.getLine(y).length;return new h(f,c,y,E)}}},this.openingBracketBlock=function(v,u,p,s,l){var a={row:p,column:s+1},c=v.$findClosingBracket(u,a,l);if(c){var o=v.foldWidgets[c.row];return o==null&&(o=v.getFoldWidget(c.row)),o=="start"&&c.row>a.row&&(c.row--,c.column=v.getLine(c.row).length),h.fromPoints(a,c)}},this.closingBracketBlock=function(v,u,p,s,l){var a={row:p,column:s},c=v.$findOpeningBracket(u,a);if(c)return c.column++,a.column--,h.fromPoints(c,a)}}).call(g.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(t,r,d){var h=t("../lib/dom"),g=t("../range").Range,v=t("../config").nls;function u(s,l,a){for(var c=0,o=s.length-1;c<=o;){var f=c+o>>1,y=a(l,s[f]);if(y>0)c=f+1;else if(y<0)o=f-1;else return f}return-(c+1)}function p(s,l,a){var c=s.getAnnotations().sort(g.comparePoints);if(c.length){var o=u(c,{row:l,column:-1},g.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 f=c[o];if(!(!f||!a)){if(f.row===l){do f=c[o+=a];while(f&&f.row===l);if(!f)return c.slice()}var y=[];l=f.row;do y[a<0?"unshift":"push"](f),f=c[o+=a];while(f&&f.row==l);return y.length&&y}}}r.showErrorMarker=function(s,l){var a=s.session,c=s.getCursorPosition(),o=c.row,f=a.widgetManager.getWidgetsAtRow(o).filter(function(R){return R.type=="errorMarker"})[0];f?f.destroy():o-=l;var y=p(a,o,l),w;if(y){var x=y[0];c.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,c.row=x.row,w=s.renderer.$gutterLayer.$annotations[c.row]}else{if(f)return;w={displayText:[v("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"},S=E.el.appendChild(h.createElement("div")),C=E.el.appendChild(h.createElement("div"));C.className="error_widget_arrow "+w.className;var b=s.renderer.$cursorLayer.getPixelPosition(c).left;C.style.left=b+s.renderer.gutterWidth-5+"px",E.el.className="error_widget_wrapper",S.className="error_widget "+w.className,w.displayText.forEach(function(R,L){S.appendChild(h.createTextNode(R)),L<w.displayText.length-1&&S.appendChild(h.createElement("br"))}),S.appendChild(h.createElement("div"));var T=function(R,L,I){if(L===0&&(I==="esc"||I==="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,r,d){t("./loader_build")(r);var h=t("./lib/dom"),g=t("./range").Range,v=t("./editor").Editor,u=t("./edit_session").EditSession,p=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"),r.config=t("./config"),r.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 v)return a.env.editor;var f="";if(a&&/input|textarea/i.test(a.tagName)){var y=a;f=y.value,a=h.createElement("pre"),y.parentNode.replaceChild(a,y)}else a&&(f=a.textContent,a.innerHTML="");var w=r.createEditSession(f),x=new v(new s(a),w,c),E={document:w,editor:x,onResize:x.resize.bind(x,null)};return y&&(E.textarea=y),x.on("destroy",function(){E.editor.container.env=null}),x.container.env=x.env=E,x},r.createEditSession=function(a,c){var o=new u(a,c);return o.setUndoManager(new p),o},r.Range=g,r.Editor=v,r.EditSession=u,r.UndoManager=p,r.VirtualRenderer=s;var l=r.config.version;r.version=l}),function(){ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=t);for(var d in t)t.hasOwnProperty(d)&&(r.ace[d]=t[d]);r.ace.default=r.ace,n&&(n.exports=r.ace)})}()}(Bf)),Bf.exports}var no=Rn("b",Qb()),Uf={exports:{}},Vf;function Zb(){return Vf||(Vf=1,function(n,e){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,d){var h=t("../lib/oop"),g=t("./text_highlight_rules").TextHighlightRules,v=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var u=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},p=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},a=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},f=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},y=function(){var w="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",S="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",C=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":E,"variable.language":S,"support.function":w,"invalid.deprecated":"debugger"},"identifier"),b=`\\\\(?: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:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:b},{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(R,L,I){I.length&&(I=[]);var N=R[R.length-1];return I.unshift(N,L),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(R,L,I){I.length&&(I=[]);var N=R[R.length-1];return I.unshift(N,L),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(R,L,I){I.length&&(I=[]);var N=R[R.length-1];return I.unshift(N,L),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(R,L,I){I.length&&(I=[]);var N=R[R.length-1];return I.unshift(N,L),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(R,L,I){I.length&&(I=[]);var N=R[R.length-1];return I.unshift(N,L),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},f,{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\\?(?:"+b+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,c,v,u,o,p,s,l,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:C,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(R,L,I){var N=R[2]=="-"||R[2]=="~"?"indentedHeredoc":"heredoc",k=R.split(this.splitRegex);return I.push(N,k[3]),[{type:"constant",value:k[1]},{type:"string",value:k[2]},{type:"support.class",value:k[3]},{type:"string",value:k[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(R,L,I){return R===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(R,L,I){return R===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(R,L){return L[0]==="heredoc"||L[0]==="indentedHeredoc"?L[0]:R}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(R,L,I){return this.next="",R=="}"&&I.length>1&&I[1]!="start"&&(I.shift(),this.next=I.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(R,L,I){return I.length&&R===I[0]?(I.unshift(R,L),this.token):"string"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,L,I){return I.length&&R===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(R,L,I){return I.length&&R===I[0]?(I.unshift(R,L),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(R,L,I){return I.length&&R===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,L,I){return I.length&&R===I[0]?(I.unshift(R,L),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,L,I){return I.length&&R===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(R,L,I){return I.length&&R===I[0]?(I.unshift(R,L),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(R,L,I){return I.length&&R===T[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(R,L,I){return I.length&&R===I[0]?(I.unshift(R,L),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(R,L,I){return I.length&&R[0]===T[I[0]]?(I.shift(),this.next=I.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(y,g),r.RubyHighlightRules=y}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,d){var h=t("../range").Range,g=function(){};(function(){this.checkOutdent=function(v,u){return/^\s+$/.test(v)?/^\s*\}/.test(u):!1},this.autoOutdent=function(v,u){var p=v.getLine(u),s=p.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=v.findMatchingBracket({row:u,column:l});if(!a||a.row==u)return 0;var c=this.$getIndent(v.getLine(a.row));v.replace(new h(u,0,u,l-1),c)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(t,r,d){var h=t("../../lib/oop"),g=t("./fold_mode").FoldMode,v=t("../../range").Range,u=t("../../token_iterator").TokenIterator,p=r.FoldMode=function(){};h.inherits(p,g),(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),f=this.foldingStopMarker.test(c);if(o&&!f){var y=c.match(this.foldingStartMarker);if(y[1]){if((y[1]=="if"||y[1]=="else"||y[1]=="while"||y[1]=="until"||y[1]=="unless")&&(y[1]=="else"&&/^\s*else\s*$/.test(c)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(c)===!1)||y[1]=="when"&&/\sthen\s/.test(c)===!0)return;if(s.getTokenAt(a,y.index+2).type==="keyword")return"start"}else if(!y[3]||s.getTokenAt(a,y.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!f||o&&f)return"";var y=c.match(this.foldingStopMarker);if(y[3]==="end"){if(s.getTokenAt(a,y.index+1).type==="keyword")return"end"}else if(!y[1]||s.getTokenAt(a,y.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 u(s,l,a),f=o.getCurrentToken();if(!(!f||f.type!="keyword"&&f.type!="comment.multiline")){var y=f.value,w=s.getLine(l);switch(f.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+f.value);if(!x.test(w))return;var E=this.indentKeywords[y];break;case"when":if(/\sthen\s/.test(w))return;case"elsif":case"rescue":case"ensure":var E=1;break;case"else":var x=new RegExp("^\\s*"+f.value+"\\s*$");if(!x.test(w))return;var E=1;break;default:var E=this.indentKeywords[y]}var S=[y];if(E){var C=E===-1?s.getLine(l-1).length:s.getLine(l).length,b=l,T=[];if(T.push(o.getCurrentTokenRange()),o.step=E===-1?o.stepBackward:o.stepForward,f.type=="comment.multiline"){for(;f=o.step();)if(f.type==="comment.multiline"){if(E==1){if(C=6,f.value=="=end")break}else if(f.value=="=begin")break}}else for(;f=o.step();){var R=!1;if(f.type==="keyword"){var L=E*this.indentKeywords[f.value];switch(w=s.getLine(o.getCurrentTokenRow()),f.value){case"do":for(var I=o.$tokenIndex-1;I>=0;I--){var N=o.$rowTokens[I];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){L=0;break}}break;case"else":var x=new RegExp("^\\s*"+f.value+"\\s*$");(!x.test(w)||y=="case")&&(L=0,R=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+f.value);x.test(w)||(L=0,R=!0);break;case"when":(/\sthen\s/.test(w)||y=="case")&&(L=0,R=!0)}if(L>0)S.unshift(f.value);else if(L<=0&&R===!1){if(S.shift(),!S.length&&((y=="while"||y=="until"||y=="for")&&f.value!="do"||f.value=="do"&&E==-1&&L!=0||f.value!="do"))break;L===0&&S.unshift(f.value)}}}if(!f)return null;if(c)return T.push(o.getCurrentTokenRange()),T;var l=o.getCurrentTokenRow();if(E===-1){if(f.type==="comment.multiline")var k=6;else var k=s.getLine(l).length;return new v(l,k,b-1,C)}return new v(b,C,l-1,s.getLine(l-1).length)}}}}).call(p.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,r,d){var h=t("../lib/oop"),g=t("./text").Mode,v=t("./ruby_highlight_rules").RubyHighlightRules,u=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("../range").Range,s=t("./folding/ruby").FoldMode,l=function(){this.HighlightRules=v,this.$outdent=new u,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};h.inherits(l,g),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,c,o){var f=this.$getIndent(c),y=this.getTokenizer().getLineTokens(c,a),w=y.tokens;if(w.length&&w[w.length-1].type=="comment")return f;if(a=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),E=c.match(/^\s*(class|def|module)\s.*$/),S=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),C=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||E||S||C)&&(f+=o)}return f},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 f=c.getLine(o);if(/}/.test(f))return this.$outdent.autoOutdent(c,o);var y=this.$getIndent(f),w=c.getLine(o-1),x=this.$getIndent(w),E=c.getTabString();x.length<=y.length&&y.slice(-E.length)==E&&c.remove(new p(o,y.length-E.length,o,y.length))},this.getMatching=function(a,c,o){if(c==null){var f=a.selection.lead;o=f.column,c=f.row}var y=a.getTokenAt(c,o);if(y&&y.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),r.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(t){n&&(n.exports=t)})}()}(Uf)),Uf.exports}Zb();var qf={exports:{}},Gf;function Jb(){return Gf||(Gf=1,function(n,e){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,d){var h=t("../lib/oop"),g=t("./text_highlight_rules").TextHighlightRules,v=function(){var u="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",p="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":p,keyword:u},"identifier"),a="[uU]?",c="[rR]",o="[fF]",f="(?:[rR][fF]|[fF][rR])",y="(?:(?:[1-9]\\d*)|(?:0))",w="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",E="(?:0[bB][01]+)",S="(?:"+y+"|"+w+"|"+x+"|"+E+")",C="(?:[eE][+-]?\\d+)",b="(?:\\.\\d+)",T="(?:\\d+)",R="(?:(?:"+T+"?"+b+")|(?:"+T+"\\.))",L="(?:(?:"+R+"|"+T+")"+C+")",I="(?:"+L+"|"+R+")",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:f+'"{3}',next:"rfqqstring3"},{token:"string",regex:f+'"(?=.)',next:"rfqqstring"},{token:"string",regex:f+"'{3}",next:"rfqstring3"},{token:"string",regex:f+"'(?=.)",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:"(?:"+I+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:I},{token:"constant.numeric",regex:S+"[lL]\\b"},{token:"constant.numeric",regex:S+"\\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(v,g),r.PythonHighlightRules=v}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,d){var h=t("../../lib/oop"),g=t("./fold_mode").FoldMode,v=r.FoldMode=function(u){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+u+")(?:\\s*)(?:#.*)?$")};h.inherits(v,g),(function(){this.getFoldWidgetRange=function(u,p,s){var l=u.getLine(s),a=l.match(this.foldingStartMarker);if(a)return a[1]?this.openingBracketBlock(u,a[1],s,a.index):a[2]?this.indentationBlock(u,s,a.index+a[2].length):this.indentationBlock(u,s)}}).call(v.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,r,d){var h=t("../lib/oop"),g=t("./text").Mode,v=t("./python_highlight_rules").PythonHighlightRules,u=t("./folding/pythonic").FoldMode,p=t("../range").Range,s=function(){this.HighlightRules=v,this.foldingRules=new u("\\:"),this.$behaviour=this.$defaultBehaviour};h.inherits(s,g),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,c,o){var f=this.$getIndent(c),y=this.getTokenizer().getLineTokens(c,a),w=y.tokens;if(w.length&&w[w.length-1].type=="comment")return f;if(a=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(f+=o)}return f};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 f=this.getTokenizer().getLineTokens(c.trim(),a).tokens;if(!f)return!1;do var y=f.pop();while(y&&(y.type=="comment"||y.type=="text"&&y.value.match(/^\s+$/)));return y?y.type=="keyword"&&l[y.value]:!1},this.autoOutdent=function(a,c,o){o+=1;var f=this.$getIndent(c.getLine(o)),y=c.getTabString();f.slice(-y.length)==y&&c.remove(new p(o,f.length-y.length,o,f.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/python"],function(t){n&&(n.exports=t)})}()}(qf)),qf.exports}Jb();var Yf={exports:{}},Kf;function Xb(){return Kf||(Kf=1,function(n,e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,d){var h=t("../lib/oop"),g=t("./text_highlight_rules").TextHighlightRules,v=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(v,g),r.JsonHighlightRules=v}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,d){var h=t("../range").Range,g=function(){};(function(){this.checkOutdent=function(v,u){return/^\s+$/.test(v)?/^\s*\}/.test(u):!1},this.autoOutdent=function(v,u){var p=v.getLine(u),s=p.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=v.findMatchingBracket({row:u,column:l});if(!a||a.row==u)return 0;var c=this.$getIndent(v.getLine(a.row));v.replace(new h(u,0,u,l-1),c)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,d){var h=t("../../lib/oop"),g=t("../../range").Range,v=t("./fold_mode").FoldMode,u=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end)))};h.inherits(u,v),(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(p,s,l){var a=p.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var c=this._getFoldWidgetBase(p,s,l);return!c&&this.startRegionRe.test(a)?"start":c},this.getFoldWidgetRange=function(p,s,l,a){var c=p.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(p,c,l);var o=c.match(this.foldingStartMarker);if(o){var f=o.index;if(o[1])return this.openingBracketBlock(p,o[1],l,f);var y=p.getCommentFoldRange(l,f+o[0].length,1);return y&&!y.isMultiLine()&&(a?y=this.getSectionRange(p,l):s!="all"&&(y=null)),y}if(s!=="markbegin"){var o=c.match(this.foldingStopMarker);if(o){var f=o.index+o[0].length;return o[1]?this.closingBracketBlock(p,o[1],l,f):p.getCommentFoldRange(l,f,-1)}}},this.getSectionRange=function(p,s){var l=p.getLine(s),a=l.search(/\S/),c=s,o=l.length;s+=1;for(var f=s,y=p.getLength();++s<y;){l=p.getLine(s);var w=l.search(/\S/);if(w!==-1){if(a>w)break;var x=this.getFoldWidgetRange(p,"all",s);if(x){if(x.start.row<=c)break;if(x.isMultiLine())s=x.end.row;else if(a==w)break}f=s}}return new g(c,o,f,p.getLine(f).length)},this.getCommentRegionBlock=function(p,s,l){for(var a=s.search(/\s*$/),c=p.getLength(),o=l,f=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,y=1;++l<c;){s=p.getLine(l);var w=f.exec(s);if(w&&(w[1]?y--:y++,!y))break}var x=l;if(x>o)return new g(o,a,x,s.length)}}).call(u.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,r,d){var h=t("../lib/oop"),g=t("./text").Mode,v=t("./json_highlight_rules").JsonHighlightRules,u=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("./folding/cstyle").FoldMode,s=t("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=v,this.$outdent=new u,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new p};h.inherits(l,g),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,c,o){var f=this.$getIndent(c);if(a=="start"){var y=c.match(/^.*[\{\(\[]\s*$/);y&&(f+=o)}return f},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),r.Mode=l}),function(){ace.require(["ace/mode/json"],function(t){n&&(n.exports=t)})}()}(Yf)),Yf.exports}Xb();var Qf={exports:{}},Zf;function e1(){return Zf||(Zf=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,r,d){var h=t("../lib/oop");t("../lib/lang");var g=t("./text_highlight_rules").TextHighlightRules,v=r.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",u=r.supportFunction="rgb|rgba|url|attr|counter|counters",p=r.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=r.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=r.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=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=r.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",f=function(){var y=this.createKeywordMapper({"support.function":u,"support.constant":p,"support.type":v,"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:y,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(f,g),r.CssHighlightRules=f}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,d){var h=t("../lib/oop"),g=t("./text_highlight_rules").TextHighlightRules,v=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|$)"},v.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};h.inherits(v,g),v.getTagRule=function(u){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},v.getStartRule=function(u){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:u}},v.getEndRule=function(u){return{token:"comment.doc",regex:"\\*\\/",next:u}},r.JsDocCommentHighlightRules=v}),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,r,d){function h(){var a=s.replace("\\d","\\d\\-"),c={onMatch:function(f,y,w){var x=f.charAt(1)=="/"?2:1;return x==1?(y!=this.nextState?w.unshift(this.next,this.nextState,0):w.unshift(this.next),w[2]++):x==2&&y==this.nextState&&(w[1]--,(!w[1]||w[1]<0)&&(w.shift(),w.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:f.slice(0,x)},{type:"meta.tag.tag-name.xml",value:f.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(f,y,w){return y==w[0]&&w.shift(),f.length==2&&(w[0]==this.nextState&&w[1]--,(!w[1]||w[1]<0)&&w.splice(0,2)),this.next=w[0]||"start",[{type:this.token,value:f}]},nextState:"jsx"},o,g("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 g(a){return[{token:"comment",regex:/\/\*/,next:[u.getTagRule(),{token:"comment",regex:"\\*\\/",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[u.getTagRule(),{token:"comment",regex:"$|^",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var v=t("../lib/oop"),u=t("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,p=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"),f="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",y="\\\\(?: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]?|.)",w="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(c).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[u.getStartRule("doc-start"),g("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*)"+w+"(\\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*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+w+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+f+")\\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:w+"(\\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:[u.getStartRule("doc-start"),g("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:[g("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:y},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:y},{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,S,C){if(this.next=E=="{"?this.nextState:"",E=="{"&&C.length)C.unshift("start",S);else if(E=="}"&&C.length&&(C.shift(),this.next=C.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:y},{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(u,"doc-",[u.getEndRule("no_regex")]),this.normalizeRules()};v.inherits(l,p),r.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,d){var h=t("../lib/oop"),g=t("./text_highlight_rules").TextHighlightRules,v=function(u){var p="[_: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:"(<\\?)("+p+")",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:p},{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:"(<\\!)("+p+")",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:"(?:(<)|(</))((?:"+p+":)?"+p+")",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:p},{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===v&&this.normalizeRules()};(function(){this.embedTagRules=function(u,p,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:p+"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(u,p,[{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(g.prototype),h.inherits(v,g),r.XmlHighlightRules=v}),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,r,d){var h=t("../lib/oop"),g=t("../lib/lang"),v=t("./css_highlight_rules").CssHighlightRules,u=t("./javascript_highlight_rules").JavaScriptHighlightRules,p=t("./xml_highlight_rules").XmlHighlightRules,s=g.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(){p.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(v,"css-","style"),this.embedTagRules(new u({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};h.inherits(l,p),r.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,r,d){var h=t("../config").$modes,g=t("../lib/oop"),v=t("../lib/lang"),u=t("./text_highlight_rules").TextHighlightRules,p=t("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+v.escapeRegExp(a)+"\\\\]|\\\\.)*"},l=function(){p.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,f,y,w){var x=o.match(/^(\s*)([`~]+)(.*)/),E=/[\w-]+|$/.exec(x[3])[0];return h[E]||(E=""),y.unshift("githubblock",[],[x[1],x[2],E],f),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(o,f,y,w){var x=y[1],E=y[2][0],S=y[2][1],C=y[2][2],b=/^(\s*)(`+|~+)\s*$/.exec(o);if(b&&b[1].length<E.length+3&&b[2].length>=S.length&&b[2][0]==S[0])return y.splice(0,3),this.next=y.shift(),this.token;if(this.next="",C&&h[C]){var T=h[C].getTokenizer().getLineTokens(o,x.slice(0));return y[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()};g.inherits(l,u),r.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(t,r,d){var h=t("../../lib/oop"),g=t("./fold_mode").FoldMode,v=t("../../range").Range,u=r.FoldMode=function(){};h.inherits(u,g),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(p,s,l){var a=p.getLine(l);return this.foldingStartMarker.test(a)?a[0]=="`"&&p.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(p,s,l){function a(R){return E=p.getTokens(R)[0],E&&E.type.lastIndexOf(S,0)===0}function c(){var R=E.value[0];return R=="="?6:R=="-"?5:7-E.value.search(/[^#]|$/)}var o=p.getLine(l),f=o.length,y=p.getLength(),w=l,x=l;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(p.bgTokenizer.getState(l)!=="start"){for(;++l<y&&(o=p.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(w,f,l,0)}for(;l-- >0&&(o=p.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(l,o.length,w,0)}var E,S="markup.heading";if(a(l)){for(var C=c();++l<y;)if(a(l)){var b=c();if(b>=C)break}if(x=l-(!E||["=","-"].indexOf(E.value[0])==-1?1:2),x>w)for(;x>w&&/^\s*$/.test(p.getLine(x));)x--;if(x>w){var T=p.getLine(x).length;return new v(w,f,x,T)}}}}}).call(u.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,d){var h=t("../range").Range,g=function(){};(function(){this.checkOutdent=function(v,u){return/^\s+$/.test(v)?/^\s*\}/.test(u):!1},this.autoOutdent=function(v,u){var p=v.getLine(u),s=p.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=v.findMatchingBracket({row:u,column:l});if(!a||a.row==u)return 0;var c=this.$getIndent(v.getLine(a.row));v.replace(new h(u,0,u,l-1),c)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(g.prototype),r.MatchingBraceOutdent=g}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(t,r,d){function h(s,l){return s&&s.type.lastIndexOf(l+".xml")>-1}var g=t("../../lib/oop"),v=t("../behaviour").Behaviour,u=t("../../token_iterator").TokenIterator,p=function(){this.add("string_dquotes","insertion",function(s,l,a,c,o){if(o=='"'||o=="'"){var f=o,y=c.doc.getTextRange(a.getSelectionRange());if(y!==""&&y!=="'"&&y!='"'&&a.getWrapBehavioursEnabled())return{text:f+y+f,selection:!1};var w=a.getCursorPosition(),x=c.doc.getLine(w.row),E=x.substring(w.column,w.column+1),S=new u(c,w.row,w.column),C=S.getCurrentToken();if(E==f&&(h(C,"attribute-value")||h(C,"string")))return{text:"",selection:[1,1]};if(C||(C=S.stepBackward()),!C)return;for(;h(C,"tag-whitespace")||h(C,"whitespace");)C=S.stepBackward();var b=!E||E.match(/\s/);if(h(C,"attribute-equals")&&(b||E==">")||h(C,"decl-attribute-equals")&&(b||E=="?"))return{text:f+f,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,l,a,c,o){var f=c.doc.getTextRange(o);if(!o.isMultiLine()&&(f=='"'||f=="'")){var y=c.doc.getLine(o.start.row),w=y.substring(o.start.column+1,o.start.column+2);if(w==f)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,l,a,c,o){if(o==">"){var f=a.getSelectionRange().start,y=new u(c,f.row,f.column),w=y.getCurrentToken()||y.stepBackward();if(!w||!(h(w,"tag-name")||h(w,"tag-whitespace")||h(w,"attribute-name")||h(w,"attribute-equals")||h(w,"attribute-value"))||h(w,"reference.attribute-value"))return;if(h(w,"attribute-value")){var x=y.getCurrentTokenColumn()+w.value.length;if(f.column<x)return;if(f.column==x){var E=y.stepForward();if(E&&h(E,"attribute-value"))return;y.stepBackward()}}if(/^\s*>/.test(c.getLine(f.row).slice(f.column)))return;for(;!h(w,"tag-name");)if(w=y.stepBackward(),w.value=="<"){w=y.stepForward();break}var S=y.getCurrentTokenRow(),C=y.getCurrentTokenColumn();if(h(y.stepBackward(),"end-tag-open"))return;var b=w.value;return S==f.row&&(b=b.substring(0,f.column-C)),this.voidElements&&this.voidElements.hasOwnProperty(b.toLowerCase())?void 0:{text:"></"+b+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,l,a,c,o){if(o==`
|
973
|
-
`){var f=a.getCursorPosition(),y=c.getLine(f.row),w=new u(c,f.row,f.column),x=w.getCurrentToken();if(h(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=w.stepBackward();if(!x)return;var E=x.value,S=w.getCurrentTokenRow();if(x=w.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[E]||!this.voidElements){var C=c.getTokenAt(f.row,f.column+1),y=c.getLine(S),b=this.$getIndent(y),T=b+c.getTabString();return C&&C.value==="</"?{text:`
|
974
|
-
`+T+`
|
975
|
-
`+b,selection:[1,T.length,1,T.length]}:{text:`
|
976
|
-
`+T}}}}})};g.inherits(p,v),r.XmlBehaviour=p}),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,r,d){var h=t("../../lib/oop"),g=t("../../token_iterator").TokenIterator,v=t("../behaviour/cstyle").CstyleBehaviour,u=t("../behaviour/xml").XmlBehaviour,p=function(){var s=new u({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(v),this.add("autoclosing-fragment","insertion",function(l,a,c,o,f){if(f==">"){var y=c.getSelectionRange().start,w=new g(o,y.row,y.column),x=w.getCurrentToken()||w.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};h.inherits(p,v),r.JavaScriptBehaviour=p}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,d){function h(l,a){return l.type.lastIndexOf(a+".xml")>-1}var g=t("../../lib/oop"),v=t("../../range").Range,u=t("./fold_mode").FoldMode,p=r.FoldMode=function(l,a){u.call(this),this.voidElements=l||{},this.optionalEndTags=g.mixin({},this.voidElements),a&&g.mixin(this.optionalEndTags,a)};g.inherits(p,u);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,f=0;f<c.length;f++){var y=c[f];if(h(y,"tag-open")){if(o.end.column=o.start.column+y.value.length,o.closing=h(y,"end-tag-open"),y=c[++f],!y)return null;if(o.tagName=y.value,y.value===""){if(y=c[++f],!y)return null;o.tagName=y.value}for(o.end.column+=y.value.length,f++;f<c.length;f++)if(y=c[f],o.end.column+=y.value.length,h(y,"tag-close")){o.selfClosing=y.value=="/>";break}return o}if(h(y,"tag-close"))return o.selfClosing=y.value=="/>",o;o.start.column+=y.value.length}return null},this._findEndTagInLine=function(l,a,c,o){for(var f=l.getTokens(a),y=0,w=0;w<f.length;w++){var x=f[w];if(y+=x.value.length,!(y<o-1)&&h(x,"end-tag-open")&&(x=f[w+1],h(x,"tag-name")&&x.value===""&&(x=f[w+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 f=l.getMatchingTags({row:c,column:0});if(f)return new v(f.openTag.end.row,f.openTag.end.column,f.closeTag.start.row,f.closeTag.start.column)}}).call(p.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,d){var h=t("../../lib/oop"),g=t("../../range").Range,v=t("./fold_mode").FoldMode,u=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end)))};h.inherits(u,v),(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(p,s,l){var a=p.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var c=this._getFoldWidgetBase(p,s,l);return!c&&this.startRegionRe.test(a)?"start":c},this.getFoldWidgetRange=function(p,s,l,a){var c=p.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(p,c,l);var o=c.match(this.foldingStartMarker);if(o){var f=o.index;if(o[1])return this.openingBracketBlock(p,o[1],l,f);var y=p.getCommentFoldRange(l,f+o[0].length,1);return y&&!y.isMultiLine()&&(a?y=this.getSectionRange(p,l):s!="all"&&(y=null)),y}if(s!=="markbegin"){var o=c.match(this.foldingStopMarker);if(o){var f=o.index+o[0].length;return o[1]?this.closingBracketBlock(p,o[1],l,f):p.getCommentFoldRange(l,f,-1)}}},this.getSectionRange=function(p,s){var l=p.getLine(s),a=l.search(/\S/),c=s,o=l.length;s+=1;for(var f=s,y=p.getLength();++s<y;){l=p.getLine(s);var w=l.search(/\S/);if(w!==-1){if(a>w)break;var x=this.getFoldWidgetRange(p,"all",s);if(x){if(x.start.row<=c)break;if(x.isMultiLine())s=x.end.row;else if(a==w)break}f=s}}return new g(c,o,f,p.getLine(f).length)},this.getCommentRegionBlock=function(p,s,l){for(var a=s.search(/\s*$/),c=p.getLength(),o=l,f=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,y=1;++l<c;){s=p.getLine(l);var w=f.exec(s);if(w&&(w[1]?y--:y++,!y))break}var x=l;if(x>o)return new g(o,a,x,s.length)}}).call(u.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(t,r,d){var h=t("../../lib/oop"),g=t("./xml").FoldMode,v=t("./cstyle").FoldMode,u=r.FoldMode=function(p){p&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+p.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+p.end))),this.xmlFoldMode=new g};h.inherits(u,v),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(p,s,l){var a=this.getFoldWidgetBase(p,s,l);return a||this.xmlFoldMode.getFoldWidget(p,s,l)},this.getFoldWidgetRange=function(p,s,l,a){var c=this.getFoldWidgetRangeBase(p,s,l,a);return c||this.xmlFoldMode.getFoldWidgetRange(p,s,l)}}).call(u.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,r,d){var h=t("../lib/oop"),g=t("./text").Mode,v=t("./javascript_highlight_rules").JavaScriptHighlightRules,u=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("../worker/worker_client").WorkerClient,s=t("./behaviour/javascript").JavaScriptBehaviour,l=t("./folding/javascript").FoldMode,a=function(){this.HighlightRules=v,this.$outdent=new u,this.$behaviour=new s,this.foldingRules=new l};h.inherits(a,g),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(c,o,f){var y=this.$getIndent(o),w=this.getTokenizer().getLineTokens(o,c),x=w.tokens,E=w.state;if(x.length&&x[x.length-1].type=="comment")return y;if(c=="start"||c=="no_regex"){var S=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);S&&(y+=f)}else if(c=="doc-start"&&(E=="start"||E=="no_regex"))return"";return y},this.checkOutdent=function(c,o,f){return this.$outdent.checkOutdent(o,f)},this.autoOutdent=function(c,o,f){this.$outdent.autoOutdent(o,f)},this.createWorker=function(c){var o=new p(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(c.getDocument()),o.on("annotate",function(f){c.setAnnotations(f.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(t,r,d){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}},g=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var v=document.createElement("c").style;for(var u in v)if(typeof v[u]=="string"){var p=u.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});h.hasOwnProperty(p)||(h[p]=1)}}this.completionsDefined=!0},this.getCompletions=function(v,u,p,s){if(this.completionsDefined||this.defineCompletions(),v==="ruleset"||u.$mode.$id=="ace/mode/scss"){var l=u.getLine(p.row).substr(0,p.column),a=/\([^)]*$/.test(l);return a&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(v,u,p,s):this.getPropertyCompletions(v,u,p,s,a)}return[]},this.getPropertyCompletions=function(v,u,p,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(v,u,p,s){var l=u.getLine(p.row).substr(0,p.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(g.prototype),r.CssCompletions=g}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(t,r,d){var h=t("../../lib/oop");t("../behaviour").Behaviour;var g=t("./cstyle").CstyleBehaviour,v=t("../../token_iterator").TokenIterator,u=function(){this.inherit(g),this.add("colon","insertion",function(p,s,l,a,c){if(c===":"&&l.selection.isEmpty()){var o=l.getCursorPosition(),f=new v(a,o.row,o.column),y=f.getCurrentToken();if(y&&y.value.match(/\s+/)&&(y=f.stepBackward()),y&&y.type==="support.type"){var w=a.doc.getLine(o.row),x=w.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(w.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(p,s,l,a,c){var o=a.doc.getTextRange(c);if(!c.isMultiLine()&&o===":"){var f=l.getCursorPosition(),y=new v(a,f.row,f.column),w=y.getCurrentToken();if(w&&w.value.match(/\s+/)&&(w=y.stepBackward()),w&&w.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(p,s,l,a,c){if(c===";"&&l.selection.isEmpty()){var o=l.getCursorPosition(),f=a.doc.getLine(o.row),y=f.substring(o.column,o.column+1);if(y===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(p,s,l,a,c){if(c==="!"&&l.selection.isEmpty()){var o=l.getCursorPosition(),f=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(f.substring(o.column)))return{text:"!important",selection:[10,10]}}})};h.inherits(u,g),r.CssBehaviour=u}),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,r,d){var h=t("../lib/oop"),g=t("./text").Mode,v=t("./css_highlight_rules").CssHighlightRules,u=t("./matching_brace_outdent").MatchingBraceOutdent,p=t("../worker/worker_client").WorkerClient,s=t("./css_completions").CssCompletions,l=t("./behaviour/css").CssBehaviour,a=t("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=v,this.$outdent=new u,this.$behaviour=new l,this.$completer=new s,this.foldingRules=new a};h.inherits(c,g),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,f,y){var w=this.$getIndent(f),x=this.getTokenizer().getLineTokens(f,o).tokens;if(x.length&&x[x.length-1].type=="comment")return w;var E=f.match(/^.*\{\s*$/);return E&&(w+=y),w},this.checkOutdent=function(o,f,y){return this.$outdent.checkOutdent(f,y)},this.autoOutdent=function(o,f,y){this.$outdent.autoOutdent(f,y)},this.getCompletions=function(o,f,y,w){return this.$completer.getCompletions(o,f,y,w)},this.createWorker=function(o){var f=new p(["ace"],"ace/mode/css_worker","Worker");return f.attachToDocument(o.getDocument()),f.on("annotate",function(y){o.setAnnotations(y.data)}),f.on("terminate",function(){o.clearAnnotations()}),f},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(c.prototype),r.Mode=c}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,d){var h=t("../../lib/oop"),g=t("./fold_mode").FoldMode,v=r.FoldMode=function(u,p){this.defaultMode=u,this.subModes=p};h.inherits(v,g),(function(){this.$getMode=function(u){typeof u!="string"&&(u=u[0]);for(var p in this.subModes)if(u.indexOf(p)===0)return this.subModes[p];return null},this.$tryMode=function(u,p,s,l){var a=this.$getMode(u);return a?a.getFoldWidget(p,s,l):""},this.getFoldWidget=function(u,p,s){return this.$tryMode(u.getState(s-1),u,p,s)||this.$tryMode(u.getState(s),u,p,s)||this.defaultMode.getFoldWidget(u,p,s)},this.getFoldWidgetRange=function(u,p,s){var l=this.$getMode(u.getState(s-1));return(!l||!l.getFoldWidget(u,p,s))&&(l=this.$getMode(u.getState(s))),(!l||!l.getFoldWidget(u,p,s))&&(l=this.defaultMode),l.getFoldWidgetRange(u,p,s)}}).call(v.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,r,d){var h=t("../../lib/oop"),g=t("./mixed").FoldMode,v=t("./xml").FoldMode,u=t("./cstyle").FoldMode,p=r.FoldMode=function(s,l){g.call(this,new v(s,l),{"js-":new u,"css-":new u})};h.inherits(p,g)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(t,r,d){function h(f,y){return f.type.lastIndexOf(y+".xml")>-1}function g(f,y){for(var w=new u(f,y.row,y.column),x=w.getCurrentToken();x&&!h(x,"tag-name");)x=w.stepBackward();if(x)return x.value}function v(f,y){for(var w=new u(f,y.row,y.column),x=w.getCurrentToken();x&&!h(x,"attribute-name");)x=w.stepBackward();if(x)return x.value}var u=t("../token_iterator").TokenIterator,p=["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=p.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(f,y,w,x){var E=y.getTokenAt(w.row,w.column);if(!E)return[];if(h(E,"tag-name")||h(E,"tag-open")||h(E,"end-tag-open"))return this.getTagCompletions(f,y,w,x);if(h(E,"tag-whitespace")||h(E,"attribute-name"))return this.getAttributeCompletions(f,y,w,x);if(h(E,"attribute-value"))return this.getAttributeValueCompletions(f,y,w,x);var S=y.getLine(w.row).substr(0,w.column);return/&[a-z]*$/i.test(S)?this.getHTMLEntityCompletions(f,y,w,x):[]},this.getTagCompletions=function(f,y,w,x){return c.map(function(E){return{value:E,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(f,y,w,x){var E=g(y,w);if(!E)return[];var S=l;return E in a&&(S=S.concat(Object.keys(a[E]))),S.map(function(C){return{caption:C,snippet:C+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(f,y,w,x){var E=g(y,w),S=v(y,w);if(!E)return[];var C=[];return E in a&&S in a[E]&&typeof a[E][S]=="object"&&(C=Object.keys(a[E][S])),C.map(function(b){return{caption:b,snippet:b,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(f,y,w,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(S){return{caption:S,snippet:S,meta:"html entity",score:1e6}})}}).call(o.prototype),r.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,r,d){var h=t("../lib/oop"),g=t("../lib/lang"),v=t("./text").Mode,u=t("./javascript").Mode,p=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,f=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],y=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],w=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=s,this.$behaviour=new l,this.$completer=new c,this.createModeDelegates({"js-":u,"css-":p}),this.foldingRules=new a(this.voidElements,g.arrayToMap(y))};h.inherits(w,v),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=g.arrayToMap(f),this.getNextLineIndent=function(x,E,S){return this.$getIndent(E)},this.checkOutdent=function(x,E,S){return!1},this.getCompletions=function(x,E,S,C){return this.$completer.getCompletions(x,E,S,C)},this.createWorker=function(x){if(this.constructor==w){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(S){x.setAnnotations(S.data)}),E.on("terminate",function(){x.clearAnnotations()}),E}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(w.prototype),r.Mode=w}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,d){var h=t("../lib/oop"),g=t("./text_highlight_rules").TextHighlightRules,v=r.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",u=r.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",p=function(){var s=this.createKeywordMapper({keyword:v,"support.function.builtin":u,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",c="(?:\\d+)",o="(?:(?:"+c+"?"+a+")|(?:"+c+"\\.))",f="(?:(?:"+o+"|"+c+"))",y="(?:"+f+"|"+o+")",w="(?:&"+c+")",x="[a-zA-Z_][a-zA-Z0-9_]*",E="(?:"+x+"(?==))",S="(?:\\$(?:SHLVL|\\$|\\!|\\?))",C="(?:"+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(b,T,R){var L=b[2]=="-"?"indentedHeredoc":"heredoc",I=b.split(this.splitRegex);return R.push(L,I[4]),[{type:"constant",value:I[1]},{type:"text",value:I[2]},{type:"string",value:I[3]},{type:"support.class",value:I[4]},{type:"string",value:I[5]}]},rules:{heredoc:[{onMatch:function(b,T,R){return b===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(b,T,R){return b===R[1]?(R.shift(),R.shift(),this.next=R[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(b,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:b}},{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:S},{token:"variable",regex:E},{include:"variables"},{token:"support.function",regex:C},{token:"support.function",regex:w},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:y},{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(p,g),r.ShHighlightRules=p}),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,r,d){var h=t("../lib/oop"),g=t("./text").Mode,v=t("./sh_highlight_rules").ShHighlightRules,u=t("../range").Range,p=t("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=v,this.foldingRules=new p,this.$behaviour=this.$defaultBehaviour};h.inherits(s,g),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,c,o){var f=this.$getIndent(c),y=this.getTokenizer().getLineTokens(c,a),w=y.tokens;if(w.length&&w[w.length-1].type=="comment")return f;if(a=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(f+=o)}return f};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 f=this.getTokenizer().getLineTokens(c.trim(),a).tokens;if(!f)return!1;do var y=f.pop();while(y&&(y.type=="comment"||y.type=="text"&&y.value.match(/^\s+$/)));return y?y.type=="keyword"&&l[y.value]:!1},this.autoOutdent=function(a,c,o){o+=1;var f=this.$getIndent(c.getLine(o)),y=c.getTabString();f.slice(-y.length)==y&&c.remove(new u(o,f.length-y.length,o,f.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),r.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,r,d){var h=t("../lib/oop"),g=t("../lib/lang"),v=t("./text").Mode,u=t("./xml_highlight_rules").XmlHighlightRules,p=t("./behaviour/xml").XmlBehaviour,s=t("./folding/xml").FoldMode,l=t("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=u,this.$behaviour=new p,this.foldingRules=new s};h.inherits(a,v),(function(){this.voidElements=g.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(f){c.setAnnotations(f.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(a.prototype),r.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,r,d){var h=t("../lib/oop"),g=t("./behaviour/cstyle").CstyleBehaviour,v=t("./text").Mode,u=t("./markdown_highlight_rules").MarkdownHighlightRules,p=t("./folding/markdown").FoldMode,s=function(){this.HighlightRules=u,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 p,this.$behaviour=new g({braces:!0})};h.inherits(s,v),(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 f=o[2];return f||(f=parseInt(o[3],10)+1+"."),o[1]+f+o[4]}return this.$getIndent(a)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/markdown"],function(t){n&&(n.exports=t)})}()}(Qf)),Qf.exports}e1();var Jf={exports:{}},Xf;function t1(){return Xf||(Xf=1,function(n,e){ace.define("ace/theme/twilight-css",["require","exports","module"],function(t,r,d){d.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,r,d){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=t("./twilight-css");var h=t("../lib/dom");h.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(t){n&&(n.exports=t)})}()}(Jf)),Jf.exports}t1();var eg={exports:{}},tg;function n1(){return tg||(tg=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,r,d){function h(b){var T=new Date().toLocaleString("en-us",b);return T.length==1?"0"+T:T}var g=t("./lib/dom"),v=t("./lib/oop"),u=t("./lib/event_emitter").EventEmitter,p=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"),f={CURRENT_WORD:function(b){return b.session.getTextRange(b.session.getWordRange())},SELECTION:function(b,T,R){var L=b.session.getTextRange();return R?L.replace(/\n\r?([ \t]*\S)/g,`
|
1109
|
-
`+R+"$1"):L},CURRENT_LINE:function(b){return b.session.getLine(b.getCursorPosition().row)},PREV_LINE:function(b){return b.session.getLine(b.getCursorPosition().row-1)},LINE_INDEX:function(b){return b.getCursorPosition().row},LINE_NUMBER:function(b){return b.getCursorPosition().row+1},SOFT_TABS:function(b){return b.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(b){return b.session.getTabSize()},CLIPBOARD:function(b){return o.getText&&o.getText()},FILENAME:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0]},FILENAME_BASE:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(b){return this.FILEPATH(b).replace(/[^/\\]*$/,"")},FILEPATH:function(b){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(b){var T=b.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"})};f.SELECTED_TEXT=f.SELECTION;var y=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=f}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function T(I){return I=I.substr(1),/^\d+$/.test(I)?[{tabstopId:parseInt(I,10)}]:[{text:I}]}function R(I){return"(?:[^\\\\"+I+"]|\\\\.)"}var L={regex:"/("+R("/")+"+)/",onMatch:function(I,N,k){var A=k[0];return A.fmtString=!0,A.guard=I.slice(1,-1),A.flag="",""},next:"formatString"};return b.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(I,N,k){var A=I[1];return(A=="}"&&k.length||"`$\\".indexOf(A)!=-1)&&(I=A),[I]}},{regex:/}/,onMatch:function(I,N,k){return[k.length?k.shift():I]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(I,N,k){var A=T(I.substr(1));return k.unshift(A[0]),A},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+R("\\|")+"*\\|",onMatch:function(I,N,k){var A=I.slice(1,-1).replace(/\\[,|\\]|,/g,function(_){return _.length==2?_[1]:"\0"}).split("\0").map(function(_){return{value:_}});return k[0].choices=A,[A[0]]},next:"start"},L,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(I,N,k){return k.length&&k[0].expectElse?(k[0].expectElse=!1,k[0].ifEnd={elseEnd:k[0]},[k[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(I,N,k){var A=I[1];return A=="}"&&k.length||"`$\\".indexOf(A)!=-1?I=A:A=="n"?I=`
|
1110
|
-
`:A=="t"?I=" ":"ulULE".indexOf(A)!=-1&&(I={changeCase:A,local:A>"a"}),[I]}},{regex:"/\\w*}",onMatch:function(I,N,k){var A=k.shift();return A&&(A.flag=I.slice(1,-1)),this.next=A&&A.tabstopId?"start":"",[A||I]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(I,N,k){return[{text:I.slice(1)}]}},{regex:/\${\w+/,onMatch:function(I,N,k){var A={text:I.slice(2)};return k.unshift(A),[A]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(I,N,k){var A=k.shift();return this.next=A&&A.tabstopId?"start":"",[A||I]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(I,N,k){var A=k[0];return A.formatFunction=I.slice(2,-1),[k.shift()]},next:"formatString"},L,{regex:/:[\?\-+]?/,onMatch:function(I,N,k){I[1]=="+"&&(k[0].ifEnd=k[0]),I[1]=="?"&&(k[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(T,R){return this.getTokenizer().getLineTokens(T,R).tokens.map(function(L){return L.value||L})},b.prototype.getVariableValue=function(T,R,L){if(/^\d+$/.test(R))return(this.variables.__||{})[R]||"";if(/^[A-Z]\d+$/.test(R))return(this.variables[R[0]+"__"]||{})[R.substr(1)]||"";if(R=R.replace(/^TM_/,""),!this.variables.hasOwnProperty(R))return"";var I=this.variables[R];return typeof I=="function"&&(I=this.variables[R](T,R,L)),I??""},b.prototype.tmStrFormat=function(T,R,L){if(!R.fmt)return T;var I=R.flag||"",N=R.guard;N=new RegExp(N,I.replace(/[^gim]/g,""));var k=typeof R.fmt=="string"?this.tokenizeTmSnippet(R.fmt,"formatString"):R.fmt,A=this,_=T.replace(N,function(){var M=A.variables.__;A.variables.__=[].slice.call(arguments);for(var O=A.resolveVariables(k,L),F="E",H=0;H<O.length;H++){var z=O[H];if(typeof z=="object")if(O[H]="",z.changeCase&&z.local){var V=O[H+1];V&&typeof V=="string"&&(z.changeCase=="u"?O[H]=V[0].toUpperCase():O[H]=V[0].toLowerCase(),O[H+1]=V.substr(1))}else z.changeCase&&(F=z.changeCase);else F=="U"?O[H]=z.toUpperCase():F=="L"&&(O[H]=z.toLowerCase())}return A.variables.__=M,O.join("")});return _},b.prototype.tmFormatFunction=function(T,R,L){return R.formatFunction=="upcase"?T.toUpperCase():R.formatFunction=="downcase"?T.toLowerCase():T},b.prototype.resolveVariables=function(T,R){function L(F){var H=T.indexOf(F,A+1);H!=-1&&(A=H)}for(var I=[],N="",k=!0,A=0;A<T.length;A++){var _=T[A];if(typeof _=="string"){I.push(_),_==`
|
1111
|
-
`?(k=!0,N=""):k&&(N=/^\t*/.exec(_)[0],k=/\S/.test(_));continue}if(_){if(k=!1,_.fmtString){var M=T.indexOf(_,A+1);M==-1&&(M=T.length),_.fmt=T.slice(A+1,M),A=M}if(_.text){var O=this.getVariableValue(R,_.text,N)+"";_.fmtString&&(O=this.tmStrFormat(O,_,R)),_.formatFunction&&(O=this.tmFormatFunction(O,_,R)),O&&!_.ifEnd?(I.push(O),L(_)):!O&&_.ifEnd&&L(_.ifEnd)}else _.elseEnd?L(_.elseEnd):(_.tabstopId!=null||_.changeCase!=null)&&I.push(_)}}return I},b.prototype.getDisplayTextForSnippet=function(T,R){var L=w.call(this,T,R);return L.text},b.prototype.insertSnippetForSelection=function(T,R,L){L===void 0&&(L={});var I=w.call(this,T,R,L),N=T.getSelectionRange(),k=T.session.replace(N,I.text),A=new x(T),_=T.inVirtualSelectionMode&&T.selection.index;A.addTabstops(I.tabstops,N.start,k,_)},b.prototype.insertSnippet=function(T,R,L){L===void 0&&(L={});var I=this;if(T.inVirtualSelectionMode)return I.insertSnippetForSelection(T,R,L);T.forEachSelection(function(){I.insertSnippetForSelection(T,R,L)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},b.prototype.$getScope=function(T){var R=T.session.$mode.$id||"";if(R=R.split("/").pop(),R==="html"||R==="php"){R==="php"&&!T.session.$mode.inlinePhp&&(R="html");var L=T.getCursorPosition(),I=T.session.getState(L.row);typeof I=="object"&&(I=I[0]),I.substring&&(I.substring(0,3)=="js-"?R="javascript":I.substring(0,4)=="css-"?R="css":I.substring(0,4)=="php-"&&(R="php"))}return R},b.prototype.getActiveScopes=function(T){var R=this.$getScope(T),L=[R],I=this.snippetMap;return I[R]&&I[R].includeScopes&&L.push.apply(L,I[R].includeScopes),L.push("_"),L},b.prototype.expandWithTab=function(T,R){var L=this,I=T.forEachSelection(function(){return L.expandSnippetForSelection(T,R)},null,{keepOrder:!0});return I&&T.tabstopManager&&T.tabstopManager.tabNext(),I},b.prototype.expandSnippetForSelection=function(T,R){var L=T.getCursorPosition(),I=T.session.getLine(L.row),N=I.substring(0,L.column),k=I.substr(L.column),A=this.snippetMap,_;return this.getActiveScopes(T).some(function(M){var O=A[M];return O&&(_=this.findMatchingSnippet(O,N,k)),!!_},this),_?(R&&R.dryRun||(T.session.doc.removeInLine(L.row,L.column-_.replaceBefore.length,L.column+_.replaceAfter.length),this.variables.M__=_.matchBefore,this.variables.T__=_.matchAfter,this.insertSnippetForSelection(T,_.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(T,R,L){for(var I=T.length;I--;){var N=T[I];if(!(N.startRe&&!N.startRe.test(R))&&!(N.endRe&&!N.endRe.test(L))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(R):[""],N.matchAfter=N.endRe?N.endRe.exec(L):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(R)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(L)[0]:"",N}},b.prototype.register=function(T,R){function L(M){return M&&!/^\^?\(.*\)\$?$|^\\b$/.test(M)&&(M="(?:"+M+")"),M||""}function I(M,O,F){return M=L(M),O=L(O),M=O+M,M&&M[M.length-1]!="$"&&(M+="$"),new RegExp(M)}function N(M){M.scope||(M.scope=R||"_"),R=M.scope,k[R]||(k[R]=[],A[R]={});var O=A[R];if(M.name){var F=O[M.name];F&&_.unregister(F),O[M.name]=M}k[R].push(M),M.prefix&&(M.tabTrigger=M.prefix),!M.content&&M.body&&(M.content=Array.isArray(M.body)?M.body.join(`
|
1112
|
-
`):M.body),M.tabTrigger&&!M.trigger&&(!M.guard&&/^\w/.test(M.tabTrigger)&&(M.guard="\\b"),M.trigger=p.escapeRegExp(M.tabTrigger)),!(!M.trigger&&!M.guard&&!M.endTrigger&&!M.endGuard)&&(M.startRe=I(M.trigger,M.guard),M.triggerRe=new RegExp(M.trigger),M.endRe=I(M.endTrigger,M.endGuard),M.endTriggerRe=new RegExp(M.endTrigger))}var k=this.snippetMap,A=this.snippetNameMap,_=this;T||(T=[]),Array.isArray(T)?T.forEach(N):Object.keys(T).forEach(function(M){N(T[M])}),this._signal("registerSnippets",{scope:R})},b.prototype.unregister=function(T,R){function L(k){var A=N[k.scope||R];if(A&&A[k.name]){delete A[k.name];var _=I[k.scope||R],M=_&&_.indexOf(k);M>=0&&_.splice(M,1)}}var I=this.snippetMap,N=this.snippetNameMap;T.content?L(T):Array.isArray(T)&&T.forEach(L)},b.prototype.parseSnippetFile=function(T){T=T.replace(/\r/g,"");for(var R=[],L={},I=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=I.exec(T);){if(N[1])try{L=JSON.parse(N[1]),R.push(L)}catch{}if(N[4])L.content=N[4].replace(/^\t/gm,""),R.push(L),L={};else{var k=N[2],A=N[3];if(k=="regex"){var _=/\/((?:[^\/\\]|\\.)*)|$/g;L.guard=_.exec(A)[1],L.trigger=_.exec(A)[1],L.endTrigger=_.exec(A)[1],L.endGuard=_.exec(A)[1]}else k=="snippet"?(L.tabTrigger=A.match(/^\S*/)[0],L.name||(L.name=A)):k&&(L[k]=A)}}return R},b.prototype.getSnippetByName=function(T,R){var L=this.snippetNameMap,I;return this.getActiveScopes(R).some(function(N){var k=L[N];return k&&(I=k[T]),!!I},this),I},b}();v.implement(y.prototype,u);var w=function(b,T,R){function L(J){for(var ae=[],me=0;me<J.length;me++){var ve=J[me];if(typeof ve=="object"){if(O[ve.tabstopId])continue;var ge=J.lastIndexOf(ve,me-1);ve=ae[ge]||{tabstopId:ve.tabstopId}}ae[me]=ve}return ae}R===void 0&&(R={});var I=b.getCursorPosition(),N=b.session.getLine(I.row),k=b.session.getTabString(),A=N.match(/^\s*/)[0];I.column<A.length&&(A=A.slice(0,I.column)),T=T.replace(/\r/g,"");var _=this.tokenizeTmSnippet(T);_=this.resolveVariables(_,b),_=_.map(function(J){return J==`
|
1113
|
-
`&&!R.excludeExtraIndent?J+A:typeof J=="string"?J.replace(/\t/g,k):J});var M=[];_.forEach(function(J,ae){if(typeof J=="object"){var me=J.tabstopId,ve=M[me];if(ve||(ve=M[me]=[],ve.index=me,ve.value="",ve.parents={}),ve.indexOf(J)===-1){J.choices&&!ve.choices&&(ve.choices=J.choices),ve.push(J);var ge=_.indexOf(J,ae+1);if(ge!==-1){var Se=_.slice(ae+1,ge),lt=Se.some(function(jt){return typeof jt=="object"});lt&&!ve.value?ve.value=Se:Se.length&&(!ve.value||typeof ve.value!="string")&&(ve.value=Se.join(""))}}}}),M.forEach(function(J){J.length=0});for(var O={},F=0;F<_.length;F++){var H=_[F];if(typeof H=="object"){var z=H.tabstopId,V=M[z],q=_.indexOf(H,F+1);if(O[z]){O[z]===H&&(delete O[z],Object.keys(O).forEach(function(J){V.parents[J]=!0}));continue}O[z]=H;var X=V.value;typeof X!="string"?X=L(X):H.fmt&&(X=this.tmStrFormat(X,H,b)),_.splice.apply(_,[F+1,Math.max(0,q-F)].concat(X,H)),V.indexOf(H)===-1&&V.push(H)}}var G=0,Z=0,re="";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,re+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:re,tabstops:M,tokens:_}},x=function(){function b(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=p.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(T)}return b.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)},b.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},b.prototype.onChange=function(T){for(var R=T.action[0]=="r",L=this.selectedTabstop||{},I=L.parents||{},N=this.tabstops.slice(),k=0;k<N.length;k++){var A=N[k],_=A==L||I[A.index];if(A.rangeList.$bias=_?0:1,T.action=="remove"&&A!==L){var M=A.parents&&A.parents[L.index],O=A.rangeList.pointIndex(T.start,M);O=O<0?-O-1:O+1;var F=A.rangeList.pointIndex(T.end,M);F=F<0?-F-1:F-1;for(var H=A.rangeList.ranges.slice(O,F),z=0;z<H.length;z++)this.removeRange(H[z])}A.rangeList.$onChange(T)}var V=this.session;!this.$inChange&&R&&V.getLength()==1&&!V.getValue()&&this.detach()},b.prototype.updateLinkedFields=function(){var T=this.selectedTabstop;if(!(!T||!T.hasLinkedRanges||!T.firstNonLinked)){this.$inChange=!0;for(var R=this.session,L=R.getTextRange(T.firstNonLinked),I=0;I<T.length;I++){var N=T[I];if(N.linked){var k=N.original,A=r.snippetManager.tmStrFormat(L,k,this.editor);R.replace(N,A)}}this.$inChange=!1}},b.prototype.onAfterExec=function(T){T.command&&!T.command.readOnly&&this.updateLinkedFields()},b.prototype.onChangeSelection=function(){if(this.editor){for(var T=this.editor.selection.lead,R=this.editor.selection.anchor,L=this.editor.selection.isEmpty(),I=0;I<this.ranges.length;I++)if(!this.ranges[I].linked){var N=this.ranges[I].contains(T.row,T.column),k=L||this.ranges[I].contains(R.row,R.column);if(N&&k)return}this.detach()}},b.prototype.onChangeSession=function(){this.detach()},b.prototype.tabNext=function(T){var R=this.tabstops.length,L=this.index+(T||1);L=Math.min(Math.max(L,1),R),L==R&&(L=0),this.selectTabstop(L),this.updateTabstopMarkers(),L===0&&this.detach()},b.prototype.selectTabstop=function(T){this.$openTabstops=null;var R=this.tabstops[this.index];if(R&&this.addTabstopMarkers(R),this.index=T,R=this.tabstops[this.index],!(!R||!R.length)){this.selectedTabstop=R;var L=R.firstNonLinked||R;if(R.choices&&(L.cursor=L.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(L);else{var I=this.editor.multiSelect;I.toSingleRange(L);for(var N=0;N<R.length;N++)R.hasLinkedRanges&&R[N].linked||I.addRange(R[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},b.prototype.addTabstops=function(T,R,L){var I=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!T[0]){var N=s.fromPoints(L,L);S(N.start,R),S(N.end,R),T[0]=[N],T[0].index=0}var k=this.index,A=[k+1,0],_=this.ranges,M=this.snippetId=(this.snippetId||0)+1;T.forEach(function(O,F){var H=this.$openTabstops[F]||O;H.snippetId=M;for(var z=0;z<O.length;z++){var V=O[z],q=s.fromPoints(V.start,V.end||V.start);E(q.start,R),E(q.end,R),q.original=V,q.tabstop=H,_.push(q),H!=O?H.unshift(q):H[z]=q,V.fmtString||H.firstNonLinked&&I?(q.linked=!0,H.hasLinkedRanges=!0):H.firstNonLinked||(H.firstNonLinked=q)}H.firstNonLinked||(H.hasLinkedRanges=!1),H===O&&(A.push(H),this.$openTabstops[F]=H),this.addTabstopMarkers(H),H.rangeList=H.rangeList||new l,H.rangeList.$bias=0,H.rangeList.addList(H)},this),A.length>2&&(this.tabstops.length&&A.push(A.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,A))},b.prototype.addTabstopMarkers=function(T){var R=this.session;T.forEach(function(L){L.markerId||(L.markerId=R.addMarker(L,"ace_snippet-marker","text"))})},b.prototype.removeTabstopMarkers=function(T){var R=this.session;T.forEach(function(L){R.removeMarker(L.markerId),L.markerId=null})},b.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var T=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&T--,this.tabstops.forEach(function(R){R.snippetId===T?this.addTabstopMarkers(R):this.removeTabstopMarkers(R)},this)}},b.prototype.removeRange=function(T){var R=T.tabstop.indexOf(T);R!=-1&&T.tabstop.splice(R,1),R=this.ranges.indexOf(T),R!=-1&&this.ranges.splice(R,1),R=T.tabstop.rangeList.ranges.indexOf(T),R!=-1&&T.tabstop.splice(R,1),this.session.removeMarker(T.markerId),T.tabstop.length||(R=this.tabstops.indexOf(T.tabstop),R!=-1&&this.tabstops.splice(R,1),this.tabstops.length||this.detach())},b}();x.prototype.keyboardHandler=new a,x.prototype.keyboardHandler.bindKeys({Tab:function(b){r.snippetManager&&r.snippetManager.expandWithTab(b)||(b.tabstopManager.tabNext(1),b.renderer.scrollCursorIntoView())},"Shift-Tab":function(b){b.tabstopManager.tabNext(-1),b.renderer.scrollCursorIntoView()},Esc:function(b){b.tabstopManager.detach()}});var E=function(b,T){b.row==0&&(b.column+=T.column),b.row+=T.row},S=function(b,T){b.row==T.row&&(b.column-=T.column),b.row-=T.row};g.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),r.snippetManager=new y;var C=t("./editor").Editor;(function(){this.insertSnippet=function(b,T){return r.snippetManager.insertSnippet(this,b,T)},this.expandSnippet=function(b){return r.snippetManager.expandWithTab(this,b)}}).call(C.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,r,d){var h=t("../virtual_renderer").VirtualRenderer,g=t("../editor").Editor,v=t("../range").Range,u=t("../lib/event"),p=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",f=a.isSafari?"menuitem":"option",y=a.isSafari?"aria-current":"aria-selected",w=function(E){var S=new h(E);S.$maxLines=4;var C=new g(S);return C.setHighlightActiveLine(!1),C.setShowPrintMargin(!1),C.renderer.setShowGutter(!1),C.renderer.setHighlightGutterLine(!1),C.$mouseHandler.$focusTimeout=0,C.$highlightTagPending=!0,C},x=function(){function E(S){var C=s.createElement("div"),b=w(C);S&&S.appendChild(C),C.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.renderer.$textLayer.element.setAttribute("role",o),b.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),b.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),b.renderer.textarea.setAttribute("aria-hidden","true"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var T=function(){};b.focus=T,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=T,b.renderer.$cursorLayer.element.style.opacity="0",b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function(_){var M=_.getDocumentPosition();b.selection.moveToPosition(M),I.start.row=I.end.row=M.row,_.stop()});var R,L=new v(-1,0,-1,1/0),I=new v(-1,0,-1,1/0);I.id=b.session.addMarker(I,"ace_active-line","fullLine"),b.setSelectOnHover=function(_){_?L.id&&(b.session.removeMarker(L.id),L.id=null):L.id=b.session.addMarker(L,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(_){if(!R){R=_;return}if(!(R.x==_.x&&R.y==_.y)){R=_,R.scrollTop=b.renderer.scrollTop,b.isMouseOver=!0;var M=R.getDocumentPosition().row;L.start.row!=M&&(L.id||b.setRow(M),k(M))}}),b.renderer.on("beforeRender",function(){if(R&&L.start.row!=-1){R.$pos=null;var _=R.getDocumentPosition().row;L.id||b.setRow(_),k(_,!0)}}),b.renderer.on("afterRender",function(){for(var _=b.renderer.$textLayer,M=_.config.firstRow,O=_.config.lastRow;M<=O;M++){var F=_.element.childNodes[M-_.config.firstRow],H=b.getData(M),z="".concat(H.caption||H.value).concat(H.meta?", ".concat(H.meta):"");F.setAttribute("role",f),F.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),F.setAttribute("aria-label",z),F.setAttribute("aria-setsize",b.data.length),F.setAttribute("aria-describedby","doc-tooltip"),F.setAttribute("aria-posinset",M+1);var V=F.querySelectorAll(".ace_completion-highlight");V.forEach(function(q){q.setAttribute("role","mark")})}}),b.renderer.on("afterRender",function(){var _=b.getRow(),M=b.renderer.$textLayer,O=M.element.childNodes[_-M.config.firstRow],F=document.activeElement;if(O!==b.selectedNode&&b.selectedNode&&(s.removeCssClass(b.selectedNode,"ace_selected"),b.selectedNode.removeAttribute(y),b.selectedNode.removeAttribute("id")),F.removeAttribute("aria-activedescendant"),b.selectedNode=O,O){var H=c(_);s.addCssClass(O,"ace_selected"),O.id=H,M.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),O.setAttribute(y,"true")}});var N=function(){k(-1)},k=function(_,M){_!==L.start.row&&(L.start.row=L.end.row=_,M||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return L.start.row},u.addListener(b.container,"mouseout",function(){b.isMouseOver=!1,N()}),b.on("hide",N),b.on("changeSelection",N),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function(_){var M=b.data[_];return typeof M=="string"?M:M&&M.value||""};var A=b.session.bgTokenizer;return A.$tokenizeRow=function(_){function M(J,ae){J&&F.push({type:(O.className||"")+(ae||""),value:J})}var O=b.data[_],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var H=O.caption||O.value||O.name,z=H.toLowerCase(),V=(b.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 re=z.indexOf(Z,q);if(re==-1)continue;M(H.slice(q,re),""),q=re+Z.length,M(H.slice(re,q),"completion-highlight")}return M(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},A.$updateOnChange=T,A.start=T,b.session.$computeWidth=function(){return this.screenWidth=0},b.isOpen=!1,b.isTopdown=!1,b.autoSelect=!0,b.filterText="",b.isMouseOver=!1,b.data=[],b.setData=function(_,M){b.filterText=M||"",b.setValue(p.stringRepeat(`
|
1122
|
-
`,_.length),-1),b.data=_||[],b.setRow(0)},b.getData=function(_){return b.data[_]},b.getRow=function(){return I.start.row},b.setRow=function(_){_=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,_)),I.start.row!=_&&(b.selection.clearSelection(),I.start.row=I.end.row=_||0,b.session._emit("changeBackMarker"),b.moveCursorTo(_||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",b.anchorPos=null,b.anchor=null,b.isOpen&&(b.isOpen=!1,this._signal("hide"))},b.tryShow=function(_,M,O,F){if(!F&&b.isOpen&&b.anchorPos&&b.anchor&&b.anchorPos.top===_.top&&b.anchorPos.left===_.left&&b.anchor===O)return!0;var H=this.container,z=window.innerHeight,V=window.innerWidth,q=this.renderer,X=q.$maxLines*M*1.4,G={top:0,bottom:0},Z=z-_.top-3*this.$borderSize-M,re=_.top-3*this.$borderSize;O||(re<=Z||Z>=X?O="bottom":O="top"),O==="top"?(G.bottom=_.top-this.$borderSize,G.top=G.bottom-X):O==="bottom"&&(G.top=_.top+M+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=z;if(!F&&!J)return!1;J?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=re:q.$maxPixelHeight=Z,O==="top"?(H.style.top="",H.style.bottom=z-G.bottom+"px",b.isTopdown=!1):(H.style.top=G.top+"px",H.style.bottom="",b.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="",b.isOpen||(b.isOpen=!0,this._signal("show"),R=null),b.anchorPos=_,b.anchor=O,!0},b.show=function(_,M,O){this.tryShow(_,M,O?"bottom":void 0,!0)},b.goTo=function(_){var M=this.getRow(),O=this.session.getLength()-1;switch(_){case"up":M=M<=0?O:M-1;break;case"down":M=M>=O?-1:M+1;break;case"start":M=0;break;case"end":M=O}this.setRow(M)},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b}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),r.AcePopup=x,r.$singleLineEditor=w,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(t,r,d){var h=function(){function g(v){this.editor=v,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return g.prototype.setScreenReaderContent=function(v){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var p=this.popup.getRow(),s=this.popup.renderer.$textLayer,l=s.element.childNodes[p-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=v.split(/\r\n|\r|\n/);var u=this.createCodeBlock();this.screenReaderDiv.appendChild(u)},g.prototype.destroy=function(){this.screenReaderDiv.remove()},g.prototype.createCodeBlock=function(){var v=document.createElement("pre");v.setAttribute("id","ace-inline-screenreader");for(var u=0;u<this._lines.length;u++){var p=document.createElement("code");p.setAttribute("id","ace-inline-screenreader-line-".concat(u));var s=document.createTextNode(this._lines[u]);p.appendChild(s),v.appendChild(p)}return v},g}();r.AceInlineScreenReader=h}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(t,r,d){var h=t("../snippets").snippetManager,g=t("./inline_screenreader").AceInlineScreenReader,v=function(){function u(){this.editor=null}return u.prototype.show=function(p,s,l){if(l=l||"",p&&this.editor&&this.editor!==p&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!p||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new g(p));var a=s.snippet?h.getDisplayTextForSnippet(p,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(l)?!1:(this.editor=p,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(l.length),a===""?p.removeGhostText():p.setGhostText(a),!0)},u.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},u.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},u.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},u}();r.AceInline=v}),ace.define("ace/autocomplete/util",["require","exports","module"],function(t,r,d){r.parForEach=function(g,v,u){var p=0,s=g.length;s===0&&u();for(var l=0;l<s;l++)v(g[l],function(a,c){p++,p===s&&u(a,c)})};var h=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(g,v,u){u=u||h;for(var p=[],s=v-1;s>=0&&u.test(g[s]);s--)p.push(g[s]);return p.reverse().join("")},r.retrieveFollowingIdentifier=function(g,v,u){u=u||h;for(var p=[],s=v;s<g.length&&u.test(g[s]);s++)p.push(g[s]);return p},r.getCompletionPrefix=function(g){var v=g.getCursorPosition(),u=g.session.getLine(v.row),p;return g.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(l){!p&&l&&(p=this.retrievePrecedingIdentifier(u,v.column,l))}).bind(this))}).bind(this)),p||this.retrievePrecedingIdentifier(u,v.column)},r.triggerAutocomplete=function(g,u){var u=u??g.session.getPrecedingCharacter();return g.completers.some(function(p){if(p.triggerCharacters&&Array.isArray(p.triggerCharacters))return p.triggerCharacters.includes(u)})}}),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,r,d){var h=t("./keyboard/hash_handler").HashHandler,g=t("./autocomplete/popup").AcePopup,v=t("./autocomplete/inline").AceInline,u=t("./autocomplete/popup").getAriaId,p=t("./autocomplete/util"),s=t("./lib/lang"),l=t("./lib/dom"),a=t("./snippets").snippetManager,c=t("./config"),o=t("./lib/event"),f=t("./lib/scroll").preventParentScroll,y=function(S,C){C.completer&&C.completer.destroy()},w=function(){function S(){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 C=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!C||this.editor.completers.length===0||(this.completions=new E(S.completionsForLoading),this.openPopup(this.editor,C.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(S,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),S.prototype.$init=function(){return this.popup=new g(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(C){this.insertMatch(),C.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},S.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new v,this.inlineRenderer},S.prototype.getPopup=function(){return this.popup||this.$init()},S.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},S.prototype.$seen=function(C){!this.hasSeen.has(C)&&C&&C.completer&&C.completer.onSeen&&typeof C.completer.onSeen=="function"&&(C.completer.onSeen(this.editor,C),this.hasSeen.add(C))},S.prototype.$onPopupChange=function(C){if(this.inlineRenderer&&this.inlineEnabled){var b=C?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(b),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)},S.prototype.$updateGhostText=function(C){var b=this.base.row,T=this.base.column,R=this.editor.getCursorPosition().column,L=this.editor.session.getLine(b).slice(T,R);this.inlineRenderer.show(this.editor,C,L)?this.$seen(C):this.inlineRenderer.hide()},S.prototype.$onPopupRender=function(){var C=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var b=this.popup.getFirstVisibleRow();b<=this.popup.getLastVisibleRow();b++){var T=this.popup.getData(b);T&&(!C||T.hideInlinePreview)&&this.$seen(T)}},S.prototype.$onPopupShow=function(C){this.$onPopupChange(C),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},S.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var C=this.editor.container.parentNode,b=[];C;)b.push(C),C.addEventListener("scroll",this.onLayoutChange,{passive:!0}),C=C.parentNode;this.$elements=b}},S.prototype.unObserveLayoutChanges=function(){var C=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(b){b.removeEventListener("scroll",C.onLayoutChange,{passive:!0})}),this.$elements=null},S.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},S.prototype.$updatePopupPosition=function(){var C=this.editor,b=C.renderer,T=b.layerConfig.lineHeight,R=b.$cursorLayer.getPixelPosition(this.base,!0);R.left-=this.popup.getTextLeftOffset();var L=C.container.getBoundingClientRect();R.top+=L.top-b.layerConfig.offset,R.left+=L.left-C.renderer.scrollLeft,R.left+=b.gutterWidth;var I={top:R.top,left:R.left};b.$ghostText&&b.$ghostTextWidget&&this.base.row===b.$ghostText.position.row&&(I.top+=b.$ghostTextWidget.el.offsetHeight);var N=C.container.getBoundingClientRect().bottom-T,k=N<I.top?{top:N,left:I.left}:I;this.popup.tryShow(k,T,"bottom")||this.popup.tryShow(R,T,"top")||this.popup.show(R,T)},S.prototype.openPopup=function(C,b,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 R=this.popup.getRow(),L=this.popup.data[R];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:u(this.popup.getRow()),inline:this.inlineEnabled}),C.keyBinding.addKeyboardHandler(this.keyboardHandler);var I;this.stickySelection&&(I=this.popup.data.indexOf(L)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===R&&L!==this.completions.filtered[I]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(I===R&&N){var k=this.popup.getData(this.popup.getRow());this.$updateGhostText(k)}T||(this.popup.setTheme(C.getTheme()),this.popup.setFontSize(C.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},S.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()},S.prototype.changeListener=function(C){var b=this.editor.selection.lead;(b.row!=this.base.row||b.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},S.prototype.blurListener=function(C){var b=document.activeElement,T=this.editor.textInput.getElement(),R=C.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(C.relatedTarget),L=this.popup&&this.popup.container;b!=T&&b.parentNode!=L&&!R&&b!=this.tooltipNode&&C.relatedTarget!=T&&this.detach()},S.prototype.mousedownListener=function(C){this.detach()},S.prototype.mousewheelListener=function(C){this.popup&&!this.popup.isMouseOver&&this.detach()},S.prototype.mouseOutListener=function(C){this.popup.isOpen&&this.$updatePopupPosition()},S.prototype.goTo=function(C){this.popup.goTo(C)},S.prototype.insertMatch=function(C,b){if(C||(C=this.popup.getData(this.popup.getRow())),!C)return!1;if(C.value==="")return this.detach();var T=this.completions,R=this.getCompletionProvider().insertMatch(this.editor,C,T.filterText,b);return this.completions==T&&this.detach(),R},S.prototype.showPopup=function(C,b){this.editor&&this.detach(),this.activated=!0,this.editor=C,C.completer!=this&&(C.completer&&C.completer.detach(),C.completer=this),C.on("changeSelection",this.changeListener),C.on("blur",this.blurListener),C.on("mousedown",this.mousedownListener),C.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,b)},S.prototype.getCompletionProvider=function(C){return this.completionProvider||(this.completionProvider=new x(C)),this.completionProvider},S.prototype.gatherCompletions=function(C,b){return this.getCompletionProvider().gatherCompletions(C,b)},S.prototype.updateCompletions=function(C,b){if(C&&this.base&&this.completions){var R=this.editor.getCursorPosition(),L=this.editor.session.getTextRange({start:this.base,end:R});if(L==this.completions.filterText)return;if(this.completions.setFilter(L),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==L&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,L,C);return}if(b&&b.matches){var R=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(R.row,R.column),this.base.$insertRight=!0,this.completions=new E(b.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",C)}var T=this.editor.getSession(),R=this.editor.getCursorPosition(),L=p.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(R.row,R.column-L.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:L,pos:R}).provideCompletions(this.editor,I,(function(N,k,A){var _=k.filtered,M=p.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),A){if(!_.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(M)),O){var F=[{caption:O,value:""}];this.completions=new E(F),this.openPopup(this.editor,M,C),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(_.length==1&&_[0].value==M&&!_[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&_.length==1)return this.insertMatch(_[0])}this.completions=!A&&this.showLoadingState?new E(S.completionsForLoading.concat(_),k.filterText):k,this.openPopup(this.editor,M,C),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!A)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},S.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},S.prototype.updateDocTooltip=function(){var C=this.popup,b=this.completions.filtered,T=b&&(b[C.getHoveredRow()]||b[C.getRow()]),R=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var L=this.editor.completers.length,I=0;I<L;I++){var N=this.editor.completers[I];if(N.getDocTooltip&&T.completerId===N.id){R=N.getDocTooltip(T);break}}if(!R&&typeof T!="string"&&(R=T),typeof R=="string"&&(R={docText:R}),!R||!R.docHTML&&!R.docText)return this.hideDocTooltip();this.showDocTooltip(R)},S.prototype.showDocTooltip=function(C){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",f));var b=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(b.isDark?"ace_dark ":"")+(b.cssClass||"");var T=this.tooltipNode;C.docHTML?T.innerHTML=C.docHTML:C.docText&&(T.textContent=C.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var R=this.popup,L=R.container.getBoundingClientRect();T.style.top=R.container.style.top,T.style.bottom=R.container.style.bottom,T.style.display="block",window.innerWidth-L.right<320?L.left<320?R.isTopdown?(T.style.top=L.bottom+"px",T.style.left=L.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=R.container.offsetTop-T.offsetHeight+"px",T.style.left=L.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-L.left+"px",T.style.left=""):(T.style.left=L.right+1+"px",T.style.right="")},S.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var C=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==C&&this.editor.focus(),this.tooltipNode=null,C.parentNode&&C.parentNode.removeChild(C)}},S.prototype.onTooltipClick=function(C){for(var b=C.target;b&&b!=this.tooltipNode;){if(b.nodeName=="A"&&b.href){b.rel="noreferrer",b.target="_blank";break}b=b.parentNode}},S.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var C=this.popup.container;C&&C.parentNode&&C.parentNode.removeChild(C)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",y),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},S.for=function(C){return C.completer instanceof S||(C.completer&&(C.completer.destroy(),C.completer=null),c.get("sharedPopups")?(S.$sharedInstance||(S.$sharedInstance=new S),C.completer=S.$sharedInstance):(C.completer=new S,C.once("destroy",y))),C.completer},S}();w.prototype.commands={Up:function(S){S.completer.goTo("up")},Down:function(S){S.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(S){S.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(S){S.completer.goTo("end")},Esc:function(S){S.completer.detach()},Return:function(S){return S.completer.insertMatch()},"Shift-Return":function(S){S.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(S){var C=S.completer.insertMatch();if(C||S.tabstopManager)return C;S.completer.goTo("down")},Backspace:function(S){S.execCommand("backspace");var C=p.getCompletionPrefix(S);!C&&S.completer&&S.completer.detach()},PageUp:function(S){S.completer.popup.gotoPageUp()},PageDown:function(S){S.completer.popup.gotoPageDown()}},w.startCommand={name:"startAutocomplete",exec:function(S,C){var b=w.for(S);b.autoInsert=!1,b.autoSelect=!0,b.autoShown=!1,b.showPopup(S,C),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function S(C){this.initialPosition=C,this.active=!0}return S.prototype.insertByIndex=function(C,b,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(C,this.completions.filtered[b],T)},S.prototype.insertMatch=function(C,b,T){if(!b)return!1;if(C.startOperation({command:{name:"insertMatch"}}),b.completer&&b.completer.insertMatch)b.completer.insertMatch(C,b);else{if(!this.completions)return!1;var R=this.completions.filterText.length,L=0;if(b.range&&b.range.start.row===b.range.end.row&&(R-=this.initialPosition.prefix.length,R+=this.initialPosition.pos.column-b.range.start.column,L+=b.range.end.column-this.initialPosition.pos.column),R||L){var I;C.selection.getAllRanges?I=C.selection.getAllRanges():I=[C.getSelectionRange()];for(var N=0,k;k=I[N];N++)k.start.column-=R,k.end.column+=L,C.session.remove(k)}b.snippet?a.insertSnippet(C,b.snippet):this.$insertString(C,b),b.completer&&b.completer.onInsert&&typeof b.completer.onInsert=="function"&&b.completer.onInsert(C,b),b.command&&b.command==="startAutocomplete"&&C.execCommand(b.command)}return C.endOperation(),!0},S.prototype.$insertString=function(C,b){var T=b.value||b;C.execCommand("insertstring",T)},S.prototype.gatherCompletions=function(C,b){var T=C.getSession(),R=C.getCursorPosition(),L=p.getCompletionPrefix(C),I=[];this.completers=C.completers;var N=C.completers.length;return C.completers.forEach(function(k,A){k.getCompletions(C,T,R,L,function(_,M){k.hideInlinePreview&&(M=M.map(function(O){return Object.assign(O,{hideInlinePreview:k.hideInlinePreview})})),!_&&M&&(I=I.concat(M)),b(null,{prefix:p.getCompletionPrefix(C),matches:I,finished:--N===0})})}),!0},S.prototype.provideCompletions=function(C,b,T){var R=(function(k){var A=k.prefix,_=k.matches;this.completions=new E(_),b.exactMatch&&(this.completions.exactMatch=!0),b.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(A),(k.finished||this.completions.filtered.length)&&T(null,this.completions,k.finished)}).bind(this),L=!0,I=null;if(this.gatherCompletions(C,(function(k,A){if(this.active){k&&(T(k,[],!0),this.detach());var _=A.prefix;if(_.indexOf(A.prefix)===0){if(L){I=A;return}R(A)}}}).bind(this)),L=!1,I){var N=I;I=null,R(N)}},S.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(C){typeof C.cancel=="function"&&C.cancel()})},S}(),E=function(){function S(C,b){this.all=C,this.filtered=C,this.filterText=b||"",this.exactMatch=!1,this.ignoreCaption=!1}return S.prototype.setFilter=function(C){if(C.length>this.filterText&&C.lastIndexOf(this.filterText,0)===0)var b=this.filtered;else var b=this.all;this.filterText=C,b=this.filterCompletions(b,this.filterText),b=b.sort(function(R,L){return L.exactMatch-R.exactMatch||L.$score-R.$score||(R.caption||R.value).localeCompare(L.caption||L.value)});var T=null;b=b.filter(function(R){var L=R.snippet||R.caption||R.value;return L===T?!1:(T=L,!0)}),this.filtered=b},S.prototype.filterCompletions=function(C,b){var T=[],R=b.toUpperCase(),L=b.toLowerCase();e:for(var I=0,N;N=C[I];I++){if(N.skipFilter){T.push(N);continue}var k=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(k){var A=-1,_=0,M=0,O,F;if(this.exactMatch){if(b!==k.substr(0,b.length))continue e}else{var H=k.toLowerCase().indexOf(L);if(H>-1)M=H;else for(var z=0;z<b.length;z++){var V=k.indexOf(L[z],A+1),q=k.indexOf(R[z],A+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-A-1,F>0&&(A===-1&&(M+=10),M+=F,_|=1<<z),A=O}}N.matchMask=_,N.exactMatch=M?0:1,N.$score=(N.score||0)-M,T.push(N)}}return T},S}();r.Autocomplete=w,r.CompletionProvider=x,r.FilteredList=E}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(t,r,d){function h(p,s){var l=p.getTextRange(v.fromPoints({row:0,column:0},s));return l.split(u).length-1}function g(p,s){var l=h(p,s),a=p.getValue().split(u),c=Object.create(null),o=a[l];return a.forEach(function(f,y){if(!(!f||f===o)){var w=Math.abs(l-y),x=a.length-w;c[f]?c[f]=Math.max(x,c[f]):c[f]=x}}),c}var v=t("../range").Range,u=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(p,s,l,a,c){var o=g(s,l),f=Object.keys(o);c(null,f.map(function(y){return{caption:y,value:y,score:o[y],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,r,d){var h=t("../snippets").snippetManager,g=t("../autocomplete").Autocomplete,v=t("../config"),u=t("../lib/lang"),p=t("../autocomplete/util"),s=t("../autocomplete/text_completer"),l={getCompletions:function(R,L,I,N,k){if(L.$mode.completer)return L.$mode.completer.getCompletions(R,L,I,N,k);var A=R.session.getState(I.row),_=L.$mode.getCompletions(A,L,I,N);_=_.map(function(M){return M.completerId=l.id,M}),k(null,_)},id:"keywordCompleter"},a=function(R){var L={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(I,N,k,A){return L[N]=A||""}).replace(/\$(\d+?)/g,function(I,N){return L[N]})},c={getCompletions:function(R,L,I,N,k){var A=[],_=L.getTokenAt(I.row,I.column);_&&_.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?A.push("html-tag"):A=h.getActiveScopes(R);var M=h.snippetMap,O=[];A.forEach(function(F){for(var H=M[F]||[],z=H.length;z--;){var V=H[z],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),k(null,O)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",u.escapeHTML(R.caption),"</b>","<hr></hr>",u.escapeHTML(a(R.snippet))].join(""))},id:"snippetCompleter"},o=[c,s,l];r.setCompleters=function(R){o.length=0,R&&o.push.apply(o,R)},r.addCompleter=function(R){o.push(R)},r.textCompleter=s,r.keyWordCompleter=l,r.snippetCompleter=c;var f={name:"expandSnippet",exec:function(R){return h.expandWithTab(R)},bindKey:"Tab"},y=function(R,L){w(L.session.$mode)},w=function(R){typeof R=="string"&&(R=v.$modes[R]),R&&(h.files||(h.files={}),x(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(w))},x=function(R,L){!L||!R||h.files[R]||(h.files[R]={},v.loadModule(L,function(I){I&&(h.files[R]=I,!I.snippets&&I.snippetText&&(I.snippets=h.parseSnippetFile(I.snippetText)),h.register(I.snippets||[],I.scope),I.includeScopes&&(h.snippetMap[I.scope].includeScopes=I.includeScopes,I.includeScopes.forEach(function(N){w("ace/mode/"+N)})))}))},E=function(R){var L=R.editor,I=L.completer&&L.completer.activated;if(R.command.name==="backspace")I&&!p.getCompletionPrefix(L)&&L.completer.detach();else if(R.command.name==="insertstring"&&!I){S=R;var N=R.editor.$liveAutocompletionDelay;N?C.delay(N):b(R)}},S,C=u.delayedCall(function(){b(S)},0),b=function(R){var L=R.editor,I=p.getCompletionPrefix(L),N=R.args,k=p.triggerAutocomplete(L,N);if(I&&I.length>=L.$liveAutocompletionThreshold||k){var A=g.for(L);A.autoShown=!0,A.showPopup(L)}},T=t("../editor").Editor;t("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.addCommand(g.startCommand)):this.commands.removeCommand(g.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:o),this.commands.on("afterExec",E)):this.commands.off("afterExec",E)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(f),this.on("changeMode",y),y(null,this)):(this.commands.removeCommand(f),this.off("changeMode",y))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(t){n&&(n.exports=t)})}()}(eg)),eg.exports}n1();var ng={exports:{}},rg;function r1(){return rg||(rg=1,function(n,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(t,r,d){d.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,r,d){var h=t("../lib/dom"),g=t("../lib/lang"),v=t("../lib/event"),u=t("./searchbox-css"),p=t("../keyboard/hash_handler").HashHandler,s=t("../lib/keys"),l=t("../config").nls,a=999;h.importCssString(u,"ace_searchbox",!1);var c=function(){function y(w,x,E){this.activeInput;var S=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"]]],S),this.element=S.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(w),h.importCssString(u,"ace_searchbox",w.container)}return y.prototype.setEditor=function(w){w.searchBox=this,w.renderer.scroller.appendChild(this.element),this.editor=w},y.prototype.setSession=function(w){this.searchRange=null,this.$syncOptions(!0)},y.prototype.$initElements=function(w){this.searchBox=w.querySelector(".ace_search_form"),this.replaceBox=w.querySelector(".ace_replace_form"),this.searchOption=w.querySelector("[action=searchInSelection]"),this.replaceOption=w.querySelector("[action=toggleReplace]"),this.regExpOption=w.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=w.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=w.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=w.querySelector(".ace_search_counter")},y.prototype.$init=function(){var w=this.element;this.$initElements(w);var x=this;v.addListener(w,"mousedown",function(E){setTimeout(function(){x.activeInput.focus()},0),v.stopPropagation(E)}),v.addListener(w,"click",function(E){var S=E.target||E.srcElement,C=S.getAttribute("action");C&&x[C]?x[C]():x.$searchBarKb.commands[C]&&x.$searchBarKb.commands[C].exec(x),v.stopPropagation(E)}),v.addCommandKeyListener(w,function(E,S,C){var b=s.keyCodeToString(C),T=x.$searchBarKb.findKeyCommand(S,b);T&&T.exec&&(T.exec(x),v.stopEvent(E))}),this.$onChange=g.delayedCall(function(){x.find(!1,!1)}),v.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),v.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),v.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},y.prototype.setSearchRange=function(w){this.searchRange=w,w?this.searchRangeMarker=this.editor.session.addMarker(w,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},y.prototype.$syncOptions=function(w){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,w)},y.prototype.highlight=function(w){this.editor.session.highlight(w||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},y.prototype.find=function(w,x,E){var S=this.editor.find(this.searchInput.value,{skipCurrent:w,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:E,range:this.searchRange}),C=!S&&this.searchInput.value;h.setCssClass(this.searchBox,"ace_nomatch",C),this.editor._emit("findSearchBox",{match:!C}),this.highlight(),this.updateCounter()},y.prototype.updateCounter=function(){var w=this.editor,x=w.$search.$options.re,E=x.unicode,S=0,C=0;if(x){var b=this.searchRange?w.session.getTextRange(this.searchRange):w.getValue(),T=w.session.doc.positionToIndex(w.selection.anchor);this.searchRange&&(T-=w.session.doc.positionToIndex(this.searchRange.start));for(var R=x.lastIndex=0,L;(L=x.exec(b))&&(S++,R=L.index,R<=T&&C++,!(S>a||!L[0]&&(x.lastIndex=R+=g.skipEmptyMatch(b,R,E),R>=b.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[C,S>a?a+"+":S])},y.prototype.findNext=function(){this.find(!0,!1)},y.prototype.findPrev=function(){this.find(!0,!0)},y.prototype.findAll=function(){var w=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!w&&this.searchInput.value;h.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},y.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},y.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},y.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},y.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()},y.prototype.show=function(w,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,w&&(this.searchInput.value=w),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},y.prototype.isFocused=function(){var w=document.activeElement;return w==this.searchInput||w==this.replaceInput},y}(),o=new p;o.bindKeys({"Ctrl-f|Command-f":function(y){var w=y.isReplace=!y.isReplace;y.replaceBox.style.display=w?"":"none",y.replaceOption.checked=!1,y.$syncOptions(),y.searchInput.focus()},"Ctrl-H|Command-Option-F":function(y){y.editor.getReadOnly()||(y.replaceOption.checked=!0,y.$syncOptions(),y.replaceInput.focus())},"Ctrl-G|Command-G":function(y){y.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(y){y.findPrev()},esc:function(y){setTimeout(function(){y.hide()})},Return:function(y){y.activeInput==y.replaceInput&&y.replace(),y.findNext()},"Shift-Return":function(y){y.activeInput==y.replaceInput&&y.replace(),y.findPrev()},"Alt-Return":function(y){y.activeInput==y.replaceInput&&y.replaceAll(),y.findAll()},Tab:function(y){(y.activeInput==y.replaceInput?y.searchInput:y.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(y){y.regExpOption.checked=!y.regExpOption.checked,y.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(y){y.caseSensitiveOption.checked=!y.caseSensitiveOption.checked,y.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(y){y.wholeWordOption.checked=!y.wholeWordOption.checked,y.$syncOptions()}},{name:"toggleReplace",exec:function(y){y.replaceOption.checked=!y.replaceOption.checked,y.$syncOptions()}},{name:"searchInSelection",exec:function(y){y.searchOption.checked=!y.searchRange,y.setSearchRange(y.searchOption.checked&&y.editor.getSelectionRange()),y.$syncOptions()}}]);var f=new p([{bindKey:"Esc",name:"closeSearchBar",exec:function(y){y.searchBox.hide()}}]);c.prototype.$searchBarKb=o,c.prototype.$closeSearchBarKb=f,r.SearchBox=c,r.Search=function(y,w){var x=y.searchBox||new c(y);x.show(y.session.getTextRange(),w)}}),function(){ace.require(["ace/ext/searchbox"],function(t){n&&(n.exports=t)})}()}(ng)),ng.exports}r1();var i1=Object.defineProperty,o1=(n,e,t)=>e in n?i1(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Pa=(n,e,t)=>o1(n,typeof e!="symbol"?e+"":e,t);function ig(n,e){return function(){return n.apply(e,arguments)}}const{toString:s1}=Object.prototype,{getPrototypeOf:Gc}=Object,Ha=(n=>e=>{const t=s1.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Or=n=>(n=n.toLowerCase(),e=>Ha(e)===n),Wa=n=>e=>typeof e===n,{isArray:Po}=Array,$s=Wa("undefined");function a1(n){return n!==null&&!$s(n)&&n.constructor!==null&&!$s(n.constructor)&&hr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const og=Or("ArrayBuffer");function l1(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&og(n.buffer),e}const c1=Wa("string"),hr=Wa("function"),sg=Wa("number"),ja=n=>n!==null&&typeof n=="object",u1=n=>n===!0||n===!1,Ba=n=>{if(Ha(n)!=="object")return!1;const e=Gc(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},h1=Or("Date"),d1=Or("File"),f1=Or("Blob"),g1=Or("FileList"),p1=n=>ja(n)&&hr(n.pipe),m1=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||hr(n.append)&&((e=Ha(n))==="formdata"||e==="object"&&hr(n.toString)&&n.toString()==="[object FormData]"))},y1=Or("URLSearchParams"),[v1,w1,b1,x1]=["ReadableStream","Request","Response","Headers"].map(Or),A1=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 r,d;if(typeof n!="object"&&(n=[n]),Po(n))for(r=0,d=n.length;r<d;r++)e.call(null,n[r],r,n);else{const h=t?Object.getOwnPropertyNames(n):Object.keys(n),g=h.length;let v;for(r=0;r<g;r++)v=h[r],e.call(null,n[v],v,n)}}function ag(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,d;for(;r-- >0;)if(d=t[r],e===d.toLowerCase())return d;return null}const ro=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lg=n=>!$s(n)&&n!==ro;function Yc(){const{caseless:n}=lg(this)&&this||{},e={},t=(r,d)=>{const h=n&&ag(e,d)||d;Ba(e[h])&&Ba(r)?e[h]=Yc(e[h],r):Ba(r)?e[h]=Yc({},r):Po(r)?e[h]=r.slice():e[h]=r};for(let r=0,d=arguments.length;r<d;r++)arguments[r]&&Ts(arguments[r],t);return e}const C1=(n,e,t,{allOwnKeys:r}={})=>(Ts(e,(d,h)=>{t&&hr(d)?n[h]=ig(d,t):n[h]=d},{allOwnKeys:r}),n),_1=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),k1=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},S1=(n,e,t,r)=>{let d,h,g;const v={};if(e=e||{},n==null)return e;do{for(d=Object.getOwnPropertyNames(n),h=d.length;h-- >0;)g=d[h],(!r||r(g,n,e))&&!v[g]&&(e[g]=n[g],v[g]=!0);n=t!==!1&&Gc(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},$1=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},T1=n=>{if(!n)return null;if(Po(n))return n;let e=n.length;if(!sg(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},I1=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Gc(Uint8Array)),E1=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const d=r.value;e.call(n,d[0],d[1])}},R1=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},M1=Or("HTMLFormElement"),L1=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),cg=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),O1=Or("RegExp"),ug=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};Ts(t,(d,h)=>{let g;(g=e(d,h,n))!==!1&&(r[h]=g||d)}),Object.defineProperties(n,r)},D1=n=>{ug(n,(e,t)=>{if(hr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(hr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},N1=(n,e)=>{const t={},r=d=>{d.forEach(h=>{t[h]=!0})};return Po(n)?r(n):r(String(n).split(e)),t},F1=()=>{},P1=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,Kc="abcdefghijklmnopqrstuvwxyz",hg="0123456789",dg={DIGIT:hg,ALPHA:Kc,ALPHA_DIGIT:Kc+Kc.toUpperCase()+hg},H1=(n=16,e=dg.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function W1(n){return!!(n&&hr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const j1=n=>{const e=new Array(10),t=(r,d)=>{if(ja(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[d]=r;const h=Po(r)?[]:{};return Ts(r,(g,v)=>{const u=t(g,d+1);!$s(u)&&(h[v]=u)}),e[d]=void 0,h}}return r};return t(n,0)},B1=Or("AsyncFunction"),z1=n=>n&&(ja(n)||hr(n))&&hr(n.then)&&hr(n.catch),fg=((n,e)=>n?setImmediate:e?((t,r)=>(ro.addEventListener("message",({source:d,data:h})=>{d===ro&&h===t&&r.length&&r.shift()()},!1),d=>{r.push(d),ro.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",hr(ro.postMessage)),U1=typeof queueMicrotask<"u"?queueMicrotask.bind(ro):typeof process<"u"&&process.nextTick||fg,ue={isArray:Po,isArrayBuffer:og,isBuffer:a1,isFormData:m1,isArrayBufferView:l1,isString:c1,isNumber:sg,isBoolean:u1,isObject:ja,isPlainObject:Ba,isReadableStream:v1,isRequest:w1,isResponse:b1,isHeaders:x1,isUndefined:$s,isDate:h1,isFile:d1,isBlob:f1,isRegExp:O1,isFunction:hr,isStream:p1,isURLSearchParams:y1,isTypedArray:I1,isFileList:g1,forEach:Ts,merge:Yc,extend:C1,trim:A1,stripBOM:_1,inherits:k1,toFlatObject:S1,kindOf:Ha,kindOfTest:Or,endsWith:$1,toArray:T1,forEachEntry:E1,matchAll:R1,isHTMLForm:M1,hasOwnProperty:cg,hasOwnProp:cg,reduceDescriptors:ug,freezeMethods:D1,toObjectSet:N1,toCamelCase:L1,noop:F1,toFiniteNumber:P1,findKey:ag,global:ro,isContextDefined:lg,ALPHABET:dg,generateString:H1,isSpecCompliantForm:W1,toJSONObject:j1,isAsyncFn:B1,isThenable:z1,setImmediate:fg,asap:U1};function rt(n,e,t,r,d){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),r&&(this.request=r),d&&(this.response=d,this.status=d.status?d.status:null)}ue.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:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const gg=rt.prototype,pg={};["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=>{pg[n]={value:n}}),Object.defineProperties(rt,pg),Object.defineProperty(gg,"isAxiosError",{value:!0}),rt.from=(n,e,t,r,d,h)=>{const g=Object.create(gg);return ue.toFlatObject(n,g,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),rt.call(g,n.message,e,t,r,d),g.cause=n,g.name=n.name,h&&Object.assign(g,h),g};const V1=null;function Qc(n){return ue.isPlainObject(n)||ue.isArray(n)}function mg(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function yg(n,e,t){return n?n.concat(e).map(function(r,d){return r=mg(r),!t&&d?"["+r+"]":r}).join(t?".":""):e}function q1(n){return ue.isArray(n)&&!n.some(Qc)}const G1=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function za(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 r=t.metaTokens,d=t.visitor||p,h=t.dots,g=t.indexes,v=(t.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(e);if(!ue.isFunction(d))throw new TypeError("visitor must be a function");function u(c){if(c===null)return"";if(ue.isDate(c))return c.toISOString();if(!v&&ue.isBlob(c))throw new rt("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(c)||ue.isTypedArray(c)?v&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function p(c,o,f){let y=c;if(c&&!f&&typeof c=="object"){if(ue.endsWith(o,"{}"))o=r?o:o.slice(0,-2),c=JSON.stringify(c);else if(ue.isArray(c)&&q1(c)||(ue.isFileList(c)||ue.endsWith(o,"[]"))&&(y=ue.toArray(c)))return o=mg(o),y.forEach(function(w,x){!(ue.isUndefined(w)||w===null)&&e.append(g===!0?yg([o],x,h):g===null?o:o+"[]",u(w))}),!1}return Qc(c)?!0:(e.append(yg(f,o,h),u(c)),!1)}const s=[],l=Object.assign(G1,{defaultVisitor:p,convertValue:u,isVisitable:Qc});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(f,y){(!(ue.isUndefined(f)||f===null)&&d.call(e,f,ue.isString(y)?y.trim():y,o,l))===!0&&a(f,o?o.concat(y):[y])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),e}function vg(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Zc(n,e){this._pairs=[],n&&za(n,this,e)}const wg=Zc.prototype;wg.append=function(n,e){this._pairs.push([n,e])},wg.toString=function(n){const e=n?function(t){return n.call(this,t,vg)}:vg;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function Y1(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bg(n,e,t){if(!e)return n;const r=t&&t.encode||Y1;ue.isFunction(t)&&(t={serialize:t});const d=t&&t.serialize;let h;if(d?h=d(e,t):h=ue.isURLSearchParams(e)?e.toString():new Zc(e,t).toString(r),h){const g=n.indexOf("#");g!==-1&&(n=n.slice(0,g)),n+=(n.indexOf("?")===-1?"?":"&")+h}return n}class xg{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.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 Ag={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},K1=typeof URLSearchParams<"u"?URLSearchParams:Zc,Q1=typeof FormData<"u"?FormData:null,Z1=typeof Blob<"u"?Blob:null,J1={isBrowser:!0,classes:{URLSearchParams:K1,FormData:Q1,Blob:Z1},protocols:["http","https","file","blob","url","data"]},Jc=typeof window<"u"&&typeof document<"u",Xc=typeof navigator=="object"&&navigator||void 0,X1=Jc&&(!Xc||["ReactNative","NativeScript","NS"].indexOf(Xc.product)<0),ex=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tx=Jc&&window.location.href||"http://localhost",nx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jc,hasStandardBrowserEnv:X1,hasStandardBrowserWebWorkerEnv:ex,navigator:Xc,origin:tx},Symbol.toStringTag,{value:"Module"})),Fn={...nx,...J1};function rx(n,e){return za(n,new Fn.classes.URLSearchParams,Object.assign({visitor:function(t,r,d,h){return Fn.isNode&&ue.isBuffer(t)?(this.append(r,t.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function ix(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ox(n){const e={},t=Object.keys(n);let r;const d=t.length;let h;for(r=0;r<d;r++)h=t[r],e[h]=n[h];return e}function Cg(n){function e(t,r,d,h){let g=t[h++];if(g==="__proto__")return!0;const v=Number.isFinite(+g),u=h>=t.length;return g=!g&&ue.isArray(d)?d.length:g,u?(ue.hasOwnProp(d,g)?d[g]=[d[g],r]:d[g]=r,!v):((!d[g]||!ue.isObject(d[g]))&&(d[g]=[]),e(t,r,d[g],h)&&ue.isArray(d[g])&&(d[g]=ox(d[g])),!v)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const t={};return ue.forEachEntry(n,(r,d)=>{e(ix(r),d,t,0)}),t}return null}function sx(n,e,t){if(ue.isString(n))try{return(e||JSON.parse)(n),ue.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Is={transitional:Ag,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,d=ue.isObject(n);if(d&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return r?JSON.stringify(Cg(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(d){if(t.indexOf("application/x-www-form-urlencoded")>-1)return rx(n,this.formSerializer).toString();if((h=ue.isFileList(n))||t.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return za(h?{"files[]":n}:n,g&&new g,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),sx(n)):n}],transformResponse:[function(n){const e=this.transitional||Is.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(t&&!this.responseType||r)){const d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(h){if(d)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:Fn.classes.FormData,Blob:Fn.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=>{Is.headers[n]={}});const ax=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"]),lx=n=>{const e={};let t,r,d;return n&&n.split(`
|
1376
|
-
`).forEach(function(h){d=h.indexOf(":"),t=h.substring(0,d).trim().toLowerCase(),r=h.substring(d+1).trim(),!(!t||e[t]&&ax[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},_g=Symbol("internals");function Es(n){return n&&String(n).trim().toLowerCase()}function Ua(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Ua):String(n)}function cx(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const ux=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function eu(n,e,t,r,d){if(ue.isFunction(r))return r.call(this,e,t);if(d&&(e=t),!!ue.isString(e)){if(ue.isString(r))return e.indexOf(r)!==-1;if(ue.isRegExp(r))return r.test(e)}}function hx(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function dx(n,e){const t=ue.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(d,h,g){return this[r].call(this,e,d,h,g)},configurable:!0})})}let tr=class{constructor(e){e&&this.set(e)}set(e,t,r){const d=this;function h(v,u,p){const s=Es(u);if(!s)throw new Error("header name must be a non-empty string");const l=ue.findKey(d,s);(!l||d[l]===void 0||p===!0||p===void 0&&d[l]!==!1)&&(d[l||u]=Ua(v))}const g=(v,u)=>ue.forEach(v,(p,s)=>h(p,s,u));if(ue.isPlainObject(e)||e instanceof this.constructor)g(e,t);else if(ue.isString(e)&&(e=e.trim())&&!ux(e))g(lx(e),t);else if(ue.isHeaders(e))for(const[v,u]of e.entries())h(u,v,r);else e!=null&&h(t,e,r);return this}get(e,t){if(e=Es(e),e){const r=ue.findKey(this,e);if(r){const d=this[r];if(!t)return d;if(t===!0)return cx(d);if(ue.isFunction(t))return t.call(this,d,r);if(ue.isRegExp(t))return t.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Es(e),e){const r=ue.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||eu(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let d=!1;function h(g){if(g=Es(g),g){const v=ue.findKey(r,g);v&&(!t||eu(r,r[v],v,t))&&(delete r[v],d=!0)}}return ue.isArray(e)?e.forEach(h):h(e),d}clear(e){const t=Object.keys(this);let r=t.length,d=!1;for(;r--;){const h=t[r];(!e||eu(this,this[h],h,e,!0))&&(delete this[h],d=!0)}return d}normalize(e){const t=this,r={};return ue.forEach(this,(d,h)=>{const g=ue.findKey(r,h);if(g){t[g]=Ua(d),delete t[h];return}const v=e?hx(h):String(h).trim();v!==h&&delete t[h],t[v]=Ua(d),r[v]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ue.forEach(this,(r,d)=>{r!=null&&r!==!1&&(t[d]=e&&ue.isArray(r)?r.join(", "):r)}),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 r=new this(e);return t.forEach(d=>r.set(d)),r}static accessor(e){const t=(this[_g]=this[_g]={accessors:{}}).accessors,r=this.prototype;function d(h){const g=Es(h);t[g]||(dx(r,h),t[g]=!0)}return ue.isArray(e)?e.forEach(d):d(e),this}};tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(tr.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),ue.freezeMethods(tr);function tu(n,e){const t=this||Is,r=e||t,d=tr.from(r.headers);let h=r.data;return ue.forEach(n,function(g){h=g.call(t,h,d.normalize(),e?e.status:void 0)}),d.normalize(),h}function kg(n){return!!(n&&n.__CANCEL__)}function Ho(n,e,t){rt.call(this,n??"canceled",rt.ERR_CANCELED,e,t),this.name="CanceledError"}ue.inherits(Ho,rt,{__CANCEL__:!0});function Sg(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(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 fx(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function gx(n,e){n=n||10;const t=new Array(n),r=new Array(n);let d=0,h=0,g;return e=e!==void 0?e:1e3,function(v){const u=Date.now(),p=r[h];g||(g=u),t[d]=v,r[d]=u;let s=h,l=0;for(;s!==d;)l+=t[s++],s=s%n;if(d=(d+1)%n,d===h&&(h=(h+1)%n),u-g<e)return;const a=p&&u-p;return a?Math.round(l*1e3/a):void 0}}function px(n,e){let t=0,r=1e3/e,d,h;const g=(v,u=Date.now())=>{t=u,d=null,h&&(clearTimeout(h),h=null),n.apply(null,v)};return[(...v)=>{const u=Date.now(),p=u-t;p>=r?g(v,u):(d=v,h||(h=setTimeout(()=>{h=null,g(d)},r-p)))},()=>d&&g(d)]}const Va=(n,e,t=3)=>{let r=0;const d=gx(50,250);return px(h=>{const g=h.loaded,v=h.lengthComputable?h.total:void 0,u=g-r,p=d(u),s=g<=v;r=g;const l={loaded:g,total:v,progress:v?g/v:void 0,bytes:u,rate:p||void 0,estimated:p&&v&&s?(v-g)/p:void 0,event:h,lengthComputable:v!=null,[e?"download":"upload"]:!0};n(l)},t)},$g=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Tg=n=>(...e)=>ue.asap(()=>n(...e)),mx=Fn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Fn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Fn.origin),Fn.navigator&&/(msie|trident)/i.test(Fn.navigator.userAgent)):()=>!0,yx=Fn.hasStandardBrowserEnv?{write(n,e,t,r,d,h){const g=[n+"="+encodeURIComponent(e)];ue.isNumber(t)&&g.push("expires="+new Date(t).toGMTString()),ue.isString(r)&&g.push("path="+r),ue.isString(d)&&g.push("domain="+d),h===!0&&g.push("secure"),document.cookie=g.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 vx(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function wx(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Ig(n,e){return n&&!vx(e)?wx(n,e):e}const Eg=n=>n instanceof tr?{...n}:n;function io(n,e){e=e||{};const t={};function r(p,s,l,a){return ue.isPlainObject(p)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},p,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function d(p,s,l,a){if(ue.isUndefined(s)){if(!ue.isUndefined(p))return r(void 0,p,l,a)}else return r(p,s,l,a)}function h(p,s){if(!ue.isUndefined(s))return r(void 0,s)}function g(p,s){if(ue.isUndefined(s)){if(!ue.isUndefined(p))return r(void 0,p)}else return r(void 0,s)}function v(p,s,l){if(l in e)return r(p,s);if(l in n)return r(void 0,p)}const u={url:h,method:h,data:h,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:v,headers:(p,s,l)=>d(Eg(p),Eg(s),l,!0)};return ue.forEach(Object.keys(Object.assign({},n,e)),function(p){const s=u[p]||d,l=s(n[p],e[p],p);ue.isUndefined(l)&&s!==v||(t[p]=l)}),t}const Rg=n=>{const e=io({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:h,headers:g,auth:v}=e;e.headers=g=tr.from(g),e.url=bg(Ig(e.baseURL,e.url),n.params,n.paramsSerializer),v&&g.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let u;if(ue.isFormData(t)){if(Fn.hasStandardBrowserEnv||Fn.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((u=g.getContentType())!==!1){const[p,...s]=u?u.split(";").map(l=>l.trim()).filter(Boolean):[];g.setContentType([p||"multipart/form-data",...s].join("; "))}}if(Fn.hasStandardBrowserEnv&&(r&&ue.isFunction(r)&&(r=r(e)),r||r!==!1&&mx(e.url))){const p=d&&h&&yx.read(h);p&&g.set(d,p)}return e},bx=typeof XMLHttpRequest<"u",xx=bx&&function(n){return new Promise(function(e,t){const r=Rg(n);let d=r.data;const h=tr.from(r.headers).normalize();let{responseType:g,onUploadProgress:v,onDownloadProgress:u}=r,p,s,l,a,c;function o(){a&&a(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(p),r.signal&&r.signal.removeEventListener("abort",p)}let f=new XMLHttpRequest;f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout;function y(){if(!f)return;const x=tr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),E={data:!g||g==="text"||g==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:n,request:f};Sg(function(S){e(S),o()},function(S){t(S),o()},E),f=null}"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(y)},f.onabort=function(){f&&(t(new rt("Request aborted",rt.ECONNABORTED,n,f)),f=null)},f.onerror=function(){t(new rt("Network Error",rt.ERR_NETWORK,n,f)),f=null},f.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||Ag;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),t(new rt(x,E.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,n,f)),f=null},d===void 0&&h.setContentType(null),"setRequestHeader"in f&&ue.forEach(h.toJSON(),function(x,E){f.setRequestHeader(E,x)}),ue.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),g&&g!=="json"&&(f.responseType=r.responseType),u&&([l,c]=Va(u,!0),f.addEventListener("progress",l)),v&&f.upload&&([s,a]=Va(v),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(p=x=>{f&&(t(!x||x.type?new Ho(null,n,f):x),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(p),r.signal&&(r.signal.aborted?p():r.signal.addEventListener("abort",p)));const w=fx(r.url);if(w&&Fn.protocols.indexOf(w)===-1){t(new rt("Unsupported protocol "+w+":",rt.ERR_BAD_REQUEST,n));return}f.send(d||null)})},Ax=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,d;const h=function(p){if(!d){d=!0,v();const s=p instanceof Error?p:this.reason;r.abort(s instanceof rt?s:new Ho(s instanceof Error?s.message:s))}};let g=e&&setTimeout(()=>{g=null,h(new rt(`timeout ${e} of ms exceeded`,rt.ETIMEDOUT))},e);const v=()=>{n&&(g&&clearTimeout(g),g=null,n.forEach(p=>{p.unsubscribe?p.unsubscribe(h):p.removeEventListener("abort",h)}),n=null)};n.forEach(p=>p.addEventListener("abort",h));const{signal:u}=r;return u.unsubscribe=()=>ue.asap(v),u}},Cx=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,d;for(;r<t;)d=r+e,yield n.slice(r,d),r=d},_x=async function*(n,e){for await(const t of kx(n))yield*Cx(t,e)},kx=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Mg=(n,e,t,r)=>{const d=_x(n,e);let h=0,g,v=u=>{g||(g=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:p,value:s}=await d.next();if(p){v(),u.close();return}let l=s.byteLength;if(t){let a=h+=l;t(a)}u.enqueue(new Uint8Array(s))}catch(p){throw v(p),p}},cancel(u){return v(u),d.return()}},{highWaterMark:2})},qa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Lg=qa&&typeof ReadableStream=="function",Sx=qa&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Og=(n,...e)=>{try{return!!n(...e)}catch{return!1}},$x=Lg&&Og(()=>{let n=!1;const e=new Request(Fn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Dg=64*1024,nu=Lg&&Og(()=>ue.isReadableStream(new Response("").body)),Ga={stream:nu&&(n=>n.body)};qa&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ga[e]&&(Ga[e]=ue.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new rt(`Response type '${e}' is not supported`,rt.ERR_NOT_SUPPORT,r)})})})(new Response);const Tx=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(Fn.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 Sx(n)).byteLength},Ix=async(n,e)=>ue.toFiniteNumber(n.getContentLength())??Tx(e),Ex=qa&&(async n=>{let{url:e,method:t,data:r,signal:d,cancelToken:h,timeout:g,onDownloadProgress:v,onUploadProgress:u,responseType:p,headers:s,withCredentials:l="same-origin",fetchOptions:a}=Rg(n);p=p?(p+"").toLowerCase():"text";let c=Ax([d,h&&h.toAbortSignal()],g),o;const f=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let y;try{if(u&&$x&&t!=="get"&&t!=="head"&&(y=await Ix(s,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),b;if(ue.isFormData(r)&&(b=C.headers.get("content-type"))&&s.setContentType(b),C.body){const[T,R]=$g(y,Va(Tg(u)));r=Mg(C.body,Dg,T,R)}}ue.isString(l)||(l=l?"include":"omit");const w="credentials"in Request.prototype;o=new Request(e,{...a,signal:c,method:t.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:w?l:void 0});let x=await fetch(o);const E=nu&&(p==="stream"||p==="response");if(nu&&(v||E&&f)){const C={};["status","statusText","headers"].forEach(L=>{C[L]=x[L]});const b=ue.toFiniteNumber(x.headers.get("content-length")),[T,R]=v&&$g(b,Va(Tg(v),!0))||[];x=new Response(Mg(x.body,Dg,T,()=>{R&&R(),f&&f()}),C)}p=p||"text";let S=await Ga[ue.findKey(Ga,p)||"text"](x,n);return!E&&f&&f(),await new Promise((C,b)=>{Sg(C,b,{data:S,headers:tr.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(w){throw f&&f(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,n,o),{cause:w.cause||w}):rt.from(w,w&&w.code,n,o)}}),ru={http:V1,xhr:xx,fetch:Ex};ue.forEach(ru,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Ng=n=>`- ${n}`,Rx=n=>ue.isFunction(n)||n===null||n===!1,Fg={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:e}=n;let t,r;const d={};for(let h=0;h<e;h++){t=n[h];let g;if(r=t,!Rx(t)&&(r=ru[(g=String(t)).toLowerCase()],r===void 0))throw new rt(`Unknown adapter '${g}'`);if(r)break;d[g||"#"+h]=r}if(!r){const h=Object.entries(d).map(([v,u])=>`adapter ${v} `+(u===!1?"is not supported by the environment":"is not available in the build"));let g=e?h.length>1?`since :
|
1378
|
-
`+h.map(Ng).join(`
|
1379
|
-
`):" "+Ng(h[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return r},adapters:ru};function iu(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ho(null,n)}function Pg(n){return iu(n),n.headers=tr.from(n.headers),n.data=tu.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Fg.getAdapter(n.adapter||Is.adapter)(n).then(function(e){return iu(n),e.data=tu.call(n,n.transformResponse,e),e.headers=tr.from(e.headers),e},function(e){return kg(e)||(iu(n),e&&e.response&&(e.response.data=tu.call(n,n.transformResponse,e.response),e.response.headers=tr.from(e.response.headers))),Promise.reject(e)})}const Hg="1.7.9",Ya={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Ya[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Wg={};Ya.transitional=function(n,e,t){function r(d,h){return"[Axios v"+Hg+"] Transitional option '"+d+"'"+h+(t?". "+t:"")}return(d,h,g)=>{if(n===!1)throw new rt(r(h," has been removed"+(e?" in "+e:"")),rt.ERR_DEPRECATED);return e&&!Wg[h]&&(Wg[h]=!0,console.warn(r(h," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(d,h,g):!0}},Ya.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function Mx(n,e,t){if(typeof n!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let d=r.length;for(;d-- >0;){const h=r[d],g=e[h];if(g){const v=n[h],u=v===void 0||g(v,h,n);if(u!==!0)throw new rt("option "+h+" must be "+u,rt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new rt("Unknown option "+h,rt.ERR_BAD_OPTION)}}const Ka={assertOptions:Mx,validators:Ya},qr=Ka.validators;let oo=class{constructor(n){this.defaults=n,this.interceptors={request:new xg,response:new xg}}async request(n,e){try{return await this._request(n,e)}catch(t){if(t instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const d=r.stack?r.stack.replace(/^.+\n/,""):"";try{t.stack?d&&!String(t.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(t.stack+=`
|
1380
|
-
`+d):t.stack=d}catch{}}throw t}}_request(n,e){typeof n=="string"?(e=e||{},e.url=n):e=n||{},e=io(this.defaults,e);const{transitional:t,paramsSerializer:r,headers:d}=e;t!==void 0&&Ka.assertOptions(t,{silentJSONParsing:qr.transitional(qr.boolean),forcedJSONParsing:qr.transitional(qr.boolean),clarifyTimeoutError:qr.transitional(qr.boolean)},!1),r!=null&&(ue.isFunction(r)?e.paramsSerializer={serialize:r}:Ka.assertOptions(r,{encode:qr.function,serialize:qr.function},!0)),Ka.assertOptions(e,{baseUrl:qr.spelling("baseURL"),withXsrfToken:qr.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let h=d&&ue.merge(d.common,d[e.method]);d&&ue.forEach(["delete","get","head","post","put","patch","common"],c=>{delete d[c]}),e.headers=tr.concat(h,d);const g=[];let v=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(e)===!1||(v=v&&c.synchronous,g.unshift(c.fulfilled,c.rejected))});const u=[];this.interceptors.response.forEach(function(c){u.push(c.fulfilled,c.rejected)});let p,s=0,l;if(!v){const c=[Pg.bind(this),void 0];for(c.unshift.apply(c,g),c.push.apply(c,u),l=c.length,p=Promise.resolve(e);s<l;)p=p.then(c[s++],c[s++]);return p}l=g.length;let a=e;for(s=0;s<l;){const c=g[s++],o=g[s++];try{a=c(a)}catch(f){o.call(this,f);break}}try{p=Pg.call(this,a)}catch(c){return Promise.reject(c)}for(s=0,l=u.length;s<l;)p=p.then(u[s++],u[s++]);return p}getUri(n){n=io(this.defaults,n);const e=Ig(n.baseURL,n.url);return bg(e,n.params,n.paramsSerializer)}};ue.forEach(["delete","get","head","options"],function(n){oo.prototype[n]=function(e,t){return this.request(io(t||{},{method:n,url:e,data:(t||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function e(t){return function(r,d,h){return this.request(io(h||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}oo.prototype[n]=e(),oo.prototype[n+"Form"]=e(!0)});let Lx=class Hw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(d){t=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](d);r._listeners=null}),this.promise.then=d=>{let h;const g=new Promise(v=>{r.subscribe(v),h=v}).then(d);return g.cancel=function(){r.unsubscribe(h)},g},e(function(d,h,g){r.reason||(r.reason=new Ho(d,h,g),t(r.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=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Hw(function(t){e=t}),cancel:e}}};function Ox(n){return function(e){return n.apply(null,e)}}function Dx(n){return ue.isObject(n)&&n.isAxiosError===!0}const ou={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(ou).forEach(([n,e])=>{ou[e]=n});function jg(n){const e=new oo(n),t=ig(oo.prototype.request,e);return ue.extend(t,oo.prototype,e,{allOwnKeys:!0}),ue.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return jg(io(n,r))},t}const ln=jg(Is);ln.Axios=oo,ln.CanceledError=Ho,ln.CancelToken=Lx,ln.isCancel=kg,ln.VERSION=Hg,ln.toFormData=za,ln.AxiosError=rt,ln.Cancel=ln.CanceledError,ln.all=function(n){return Promise.all(n)},ln.spread=Ox,ln.isAxiosError=Dx,ln.mergeConfig=io,ln.AxiosHeaders=tr,ln.formToJSON=n=>Cg(ue.isHTMLForm(n)?new FormData(n):n),ln.getAdapter=Fg.getAdapter,ln.HttpStatusCode=ou,ln.default=ln;const{Axios:OD,AxiosError:DD,CanceledError:ND,isCancel:FD,CancelToken:PD,VERSION:HD,all:WD,Cancel:jD,isAxiosError:BD,spread:zD,toFormData:UD,AxiosHeaders:VD,HttpStatusCode:qD,formToJSON:GD,getAdapter:YD,mergeConfig:KD}=ln,su=ln.create({baseURL:location.origin,timeout:6e4,params:{}});su.interceptors.response.use(n=>n,n=>{var e,t,r,d,h,g,v,u,p,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} `),(r=(t=n.response)==null?void 0:t.config)!=null&&r.data&&(a+=`${n.response.config.data} `),(h=(d=n.response)==null?void 0:d.data)!=null&&h.message?a+=`${n.response.data.message}`:(v=(g=n.response)==null?void 0:g.data)!=null&&v.exception?a+=`${n.response.data.exception}`:(s=(p=(u=n.response)==null?void 0:u.data)==null?void 0:p.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 Qa=async function(n,e,{data:t,params:r={},headers:d,noAuth:h=!1,noScope:g=!1,onUploadProgress:v=!1}={}){if(!h){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}d.Authorization=localStorage.openc3Token}return d.manual=!0,!g&&!r.scope&&(r.scope=window.openc3Scope),su({method:n,url:e,data:t,params:r,headers:d,onUploadProgress:v})},au={Accept:"application/json"},Bg={...au,"Content-Type":"application/json"},Nx=Rn("E",{get:function(n,{params:e,headers:t=au,noScope:r,noAuth:d,onUploadProgress:h}={}){return Qa("get",n,{params:e,headers:t,noScope:r,noAuth:d,onUploadProgress:h})},put:function(n,{data:e,params:t,headers:r=Bg,noScope:d,noAuth:h,onUploadProgress:g}={}){return Qa("put",n,{data:e,params:t,headers:r,noScope:d,noAuth:h,onUploadProgress:g})},post:function(n,{data:e,params:t,headers:r=Bg,noScope:d,noAuth:h,onUploadProgress:g}={}){return Qa("post",n,{data:e,params:t,headers:r,noScope:d,noAuth:h,onUploadProgress:g})},delete:function(n,{params:e,headers:t=au,noScope:r,noAuth:d,onUploadProgress:h}={}){return Qa("delete",n,{params:e,headers:t,noScope:r,noAuth:d,onUploadProgress:h})}});let Za=()=>({emit(n,...e){for(let t=this.events[n]||[],r=0,d=t.length;r<d;r++)t[r](...e)},events:{},on(n,e){var t;return((t=this.events)[n]||(t[n]=[])).push(e),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(d=>e!==d)}}});class Rs extends Error{constructor(e,t){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=t,this.name="ReasonError"}}class lu extends Rs{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class Fx extends Rs{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Dr extends Rs{constructor(e,t){t?super(e,t):super("Disconnected",e),this.name="DisconnectedError"}}class Px extends Dr{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function zg(n){return n?`{${Object.keys(n).sort().filter(e=>n[e]!==void 0).map(e=>{let t=JSON.stringify(n[e]);return`${JSON.stringify(e)}:${t}`}).join(",")}}`:""}class Hx{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,t){if(!this._info)return this._info={id:e,info:t},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((t,{id:r,info:d})=>(t[r]=d,t),{})}}const so=Symbol("state");class Ug{constructor(e={}){this.emitter=Za(),this.params=Object.freeze(e),this.presence=new Hx(this),this.initialConnect=!0,this[so]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=zg({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[so]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[so]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[so]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[so]="connected";let e=!0,t=!0;this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[so]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[so]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,t){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,t)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(t){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",t)}}receive(e,t){this.emit("message",e,t)}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...d)=>{r(),t(...d)});return r}emit(e,...t){return this.emitter.emit(e,...t)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,t)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(d=>d()),e()})),r.push(this.on("close",d=>{r.forEach(h=>h()),t(d||new Rs("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class Wx{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let t=this.channels.indexOf(e);t>-1&&this.channels.splice(t,1)}notify(e,...t){this.state=e==="restored"?"connected":e,t.length===1?this.channels.forEach(r=>r[e](t[0])):this.channels.forEach(r=>r[e]())}pending(e){this._checkIntent(e);let t=this._pendings[0];return!t||t.intent!==e?Promise.resolve():t.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let t,r={promise:new Promise(h=>{t=h}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),t(r)},canceled:!1,acquired:!1},d=this._pendingTop;return this._pendings.push(r),d&&await d.promise,this.gvl&&await this.gvl.acquire(r,e),r.acquired=!0,r}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let t=this._pendingTop;return!t||t.acquired||t.intent!==e?!1:(this._pendings.pop(),t.canceled=!0,!0)}}class jx{constructor(){this.queue=[]}async acquire(e,t){t==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class Bx{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new jx),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:t,unsubscribe:r}){let d=this._subscriptions[e]=new Wx(e);return d.remoteId=this._localToRemote[e],d.subscriber=t,d.unsubscriber=r,d.gvl=this.glv,d}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,t){this._localToRemote[e]=t;let r=this.get(e);r&&(r.remoteId=t)}}class zx{constructor(e={}){this.subscriptions=new Bx(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,t){this._remoteToLocal[t]=e,this.subscriptions.storeRemoteId(e,t),this.flush(t)}unsubscribe(e){let t=this.subscriptions.get(e);if(!t)return;let r=t.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(e)}transmit(e,t,r){let d=this._remoteToLocal[e];if(!d){this._pendingMessages.push([e,t,r]);return}let h=this.subscriptions.get(d);h&&h.channels.forEach(g=>{g.receive(t,r)})}notify(e,t,r){let d=this._remoteToLocal[e];if(!d)return;let h=this.subscriptions.get(d);h&&h.channels.forEach(g=>g.emit(t,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let t=[];for(let r of this._pendingMessages)r[0]===e?this.transmit(r[0],r[1],r[2]):t.push(r);this._pendingMessages=t}}const Vg={debug:0,info:1,warn:2,error:3};class qg{constructor(e){this.level=e||"warn"}log(e,t,r){Vg[e]<Vg[this.level]||this.writeLogEntry(e,t,r)}writeLogEntry(){throw Error("Not implemented")}debug(e,t){this.log("debug",e,t)}info(e,t){this.log("info",e,t)}warn(e,t){this.log("warn",e,t)}error(e,t){this.log("error",e,t)}}class Ms extends qg{writeLogEntry(){}}class Ux{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let Vx=0;class Gg{constructor(e={}){let{logger:t}=e;this.logger=t||new Ms,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,t){let r={channel:e};t&&Object.assign(r,t);let d=zg(r);if(this.pendingUnsubscriptions[d]){let g=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${g}`,d),new Promise(v=>{setTimeout(()=>{v(this.subscribe(e,t))},g)})}if(this.pendingSubscriptions[d])return this.logger.warn("subscription is already pending, skipping",d),Promise.reject(Error("Already subscribing"));let h=this.subscribeRetryInterval;return new Promise((g,v)=>{let u=++Vx;this.pendingSubscriptions[d]={resolve:g,reject:v,id:u},this.cable.send(this.buildSubscribeRequest(d)),this.maybeRetrySubscribe(u,d,h)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,t,r){setTimeout(()=>{let d=this.pendingSubscriptions[t];d&&d.id===e&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,t),this.cable.send(this.buildSubscribeRequest(t)),this.maybeExpireSubscribe(e,t,r))},r)}maybeExpireSubscribe(e,t,r){setTimeout(()=>{let d=this.pendingSubscriptions[t];d&&d.id===e&&(delete this.pendingSubscriptions[t],d.reject(new Fx(`Haven't received subscription ack in ${r*2}ms for ${t}`)))},r)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,t,r){return t==="$whisper"?this.whisper(e,r):(r||(r={}),r.action=t,this.cable.send({command:"message",identifier:e,data:JSON.stringify(r)}),Promise.resolve())}whisper(e,t){return this.cable.send({command:"whisper",identifier:e,data:t}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:t,identifier:r,message:d,reason:h,reconnect:g}=e;if(t==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),t==="welcome"){let v=e.sid;return v&&this.cable.setSessionId(v),this.cable.connected()}if(t==="disconnect"){let v=new Dr(h);this.reset(v),g===!1?this.cable.closed(v):this.cable.disconnected(v);return}if(t==="confirm_subscription"){let v=this.pendingSubscriptions[r];if(!v){this.logger.error("subscription not found, unsubscribing",{type:t,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],v.resolve(r)}if(t==="reject_subscription"){let v=this.pendingSubscriptions[r];return v?(delete this.pendingSubscriptions[r],v.reject(new lu)):this.logger.error("subscription not found",{type:t,identifier:r})}if(d)return{identifier:r,message:d};this.logger.warn(`unknown message type: ${t}`,{message:e})}reset(e){for(let t in this.pendingSubscriptions)this.pendingSubscriptions[t].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const Yg=()=>Date.now()/1e3|0;class qx extends Gg{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=Yg()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let t in this.pendingPresence)this.pendingPresence[t].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:t,identifier:r,message:d}=e;if(t==="disconnect"||t==="reject_subscription")return super.receive(e);if(t==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(e);if(t==="ping")return this.restoreSince&&(this.restoreSince=Yg()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),t==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",r);return}if(t==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",r);return}if(t==="welcome"){if(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),e.restored){let h=e.restored_ids||Object.keys(this.subscriptionStreams);for(let g of h)this.cable.send({identifier:g,command:"history",history:this.historyRequestFor(g)}),this.presenceInfo[g]&&this.cable.send({identifier:g,command:"join",presence:this.presenceInfo[g]});return this.cable.restored(h)}return this.cable.connected(this.sessionId)}if(t==="presence"){let h=d.type;if(h==="info"){let g=this.pendingPresence[r];g&&(delete this.pendingPresence[r],g.resolve(d))}else if(h==="error"){let g=this.pendingPresence[r];g&&(delete this.pendingPresence[r],g.reject(new Error("failed to retrieve presence")))}return{type:t,identifier:r,message:d}}if(d){let h=this.trackStreamPosition(r,e.stream_id,e.epoch,e.offset);return{identifier:r,message:d,meta:h}}this.logger.warn(`unknown message type: ${t}`,{message:e})}perform(e,t,r){switch(t){case"$presence:join":return this.join(e,r);case"$presence:leave":return this.leave(e,r);case"$presence:info":return this.presence(e,r)}return super.perform(e,t,r)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let t=super.buildSubscribeRequest(e),r=this.historyRequestFor(e);r&&(t.history=r,this.pendingHistory[e]=!0);let d=this.presenceInfo[e];return d&&(t.presence=d),t}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let t={},r=!1;if(this.subscriptionStreams[e])for(let d of this.subscriptionStreams[e]){let h=this.streamsPositions[d];h&&(r=!0,t[d]=h)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:t}}trackStreamPosition(e,t,r,d){if(!(!t||!r))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(t),this.streamsPositions[t]={epoch:r,offset:d},{stream:t,epoch:r,offset:d}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,t){return this.presenceInfo[e]=t,this.cable.send({command:"join",identifier:e,presence:t}),Promise.resolve()}async leave(e,t){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:t}),Promise.resolve()}presence(e,t){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((r,d)=>{this.pendingPresence[e]={resolve:r,reject:d},this.cable.send({command:"presence",identifier:e,data:t})})}}class Gx extends Rs{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class cu extends Ug{constructor(e,t){super(t),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}Pa(cu,"identifier","__ghost__");const Yx="$pubsub";class uu extends Ug{async perform(e,t){if(e.startsWith("$"))return super.perform(e,t);throw Error("not implemented")}}Pa(uu,"identifier",Yx);const ao=Symbol("state");let Kx=class{constructor({transport:n,protocol:e,encoder:t,logger:r,lazy:d,hubOptions:h,performFailures:g,transportConfigurator:v}){this.emitter=Za(),this.transport=n,this.encoder=t,this.logger=r||new Ms,this.protocol=e,this.performFailures=g||"throw",this.protocol.attached(this),this.hub=new zx(h||{}),this[ao]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=v,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,d===!1&&this.connect().catch(()=>{})}get state(){return this[ao]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[ao]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:n}),await this.transport.open()}catch(t){this.handleClose(t)}return e}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ao]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new Dr("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[ao]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Dr("recovery_failed")),this._resubscribe(r))});let e=!this.initialConnect,t=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}notify(n,e,t){e&&typeof e!="string"&&(t=e,e=void 0),e?this.hub.notify(e,"info",{type:n,data:t}):this.emit("info",{type:n,data:t})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Dr(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[ao]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let e;n&&(e=n instanceof Dr?n:new Dr(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[ao]="closed";let t=e||new Dr("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",t)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(n);if(e===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",e);let t=this.protocol.receive(e);if(t){this.logger.debug("processed incoming message",t);let{type:r,identifier:d,message:h,meta:g}=t;r?this.hub.notify(d,r,h):this.hub.transmit(d,h,g)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(n);if(e===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(e)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let e=new uu({stream_name:n});return this.subscribe(e)}streamFromSigned(n){let e=new uu({signed_stream_name:n});return this.subscribe(e)}subscribeTo(n,e){let t,r;return typeof n=="string"&&(r=n,n=cu),t=r?new n(r,e):new n(e),this.subscribe(t)}subscribe(n){if(!n.attached(this))return n;let e=n.identifier;n.connecting();let t=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return t.add(n),t.intent==="subscribed"&&t.state==="connected"&&n.connected(),t.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,e,t){let r=n.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let d=await n.acquire("subscribed");if(d.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),d.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),d.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),d.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),d.release();return}let h={identifier:e,params:t};this.logger.debug("subscribing",h);try{let g=await this.protocol.subscribe(e,t);this.hub.subscribe(r,g),this.logger.debug("subscribed",{...h,remoteId:g}),n.notify("connected")}catch(g){if(g){if(g instanceof lu&&this.logger.warn("rejected",h),g instanceof Dr){this.logger.debug("disconnected during subscription; will retry on connect",h),d.release();return}this.logger.error("failed to subscribe",{error:g,...h})}n.close(g),this.hub.unsubscribe(r)}d.release()}unsubscribe(n){let e=n.identifier,t=this.hub.subscriptions.get(e);if(!t)throw Error(`Subscription not found: ${e}`);t.remove(n),n.closed(),t.maybeUnsubscribe()}async _unsubscribe(n){let e=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let t=await n.acquire("unsubscribed");if(t.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),t.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:n.intent}),t.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:e}),t.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),n.close(),this.hub.unsubscribe(e),t.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:e})}catch(d){d&&(d instanceof Dr?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:d}):this.logger.error("unsubscribe failed",{id:e,error:d}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(e)):n.state="closed",t.release()}async perform(n,e,t){if(this.performFailures==="throw")return this._perform(n,e,t);try{return await this._perform(n,e,t)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,e,t){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new Gx;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let d=r.remoteId,h={id:d,action:e,payload:t};this.logger.debug("perform",h);try{let g=await this.protocol.perform(d,e,t);return g&&this.logger.debug("perform result",{message:g,request:h}),g}catch(g){throw this.logger.error("perform failed",{error:g,request:h}),g}}on(n,e){return this.emitter.on(n,e)}once(n,e){let t=this.emitter.on(n,(...r)=>{t(),e(...r)});return t}emit(n,...e){return this.emitter.emit(n,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,e)=>{let t=[()=>delete this._pendingConnect];t.push(this.on("connect",()=>{t.forEach(r=>r()),n()})),t.push(this.on("close",r=>{t.forEach(d=>d()),e(r)})),t.push(this.on("disconnect",r=>{t.forEach(d=>d()),e(r)}))}),this._pendingConnect)}};const Qx={maxMissingPings:2,maxReconnectAttempts:1/0},Wo=()=>Date.now(),Kg=(n,e)=>{e=e||{};let{backoffRate:t,jitterRatio:r,maxInterval:d}=e;return t=t||2,r===void 0&&(r=.5),h=>{let g=n*t**h,v=g*t,u=g+(v-g)*Math.random(),p=2*(Math.random()-.5)*r;return u=u*(1+p),d&&d<u&&(u=d),u}};let Qg=class{constructor({pingInterval:n,...e}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(e=Object.assign({},Qx,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new Ms,this.state="pending_connect",this.attempts=0,this.disconnectedAt=Wo()}watch(n){this.target=n,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=Wo(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=Wo(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=Wo(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=Wo()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=Wo()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Px))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Zx{constructor(e,t={}){this.transports=e,this.transport=null,this.emitter=Za(),this.unbind=[],this.logger=t.logger||new Ms}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let t=this.transports[e];try{this.transport=t,this.resetListeners(),this.logger.debug(`Trying to connect via ${t.displayName()}`),await t.open(),this.logger.debug(`Connected via ${t.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${t.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,t){this.transports.forEach(r=>{r.setParam(e,t)})}setToken(e,t){this.transports.forEach(r=>{r.setToken(e,t)})}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...d)=>{r(),t(...d)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Jx{constructor(e,t={}){this.url=e;let r=t.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Za();let{format:d,subprotocol:h,authStrategy:g}=t;this.format=d||"text",this.connectionOptions=t.websocketOptions,this.authStrategy=g||"param",this.authProtocol="",this.subprotocol=h}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((t,r)=>{let d=[];d.push(this.once("open",()=>{d.forEach(h=>h()),t()})),d.push(this.once("close",()=>{d.forEach(h=>h()),r(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,t){let r=new URL(this.url);r.searchParams.set(e,t);let d=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(d)}setToken(e,t="jid"){if(this.authStrategy==="param")this.setParam(t,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${t}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(d=>d.toLowerCase()===r)||r,this.connectionOptions.headers[r]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...d)=>{r(),t(...d)});return r}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let t=e.data;this.format==="binary"&&(t=new Uint8Array(t)),this.emitter.emit("data",t)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const Zg={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Xx(n,e){if(typeof n=="object"&&typeof e>"u"&&(e=n,n=void 0),e=e||{},!n&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},Zg,e);let{protocol:t,websocketImplementation:r,websocketFormat:d,websocketOptions:h,websocketAuthStrategy:g,fallbacks:v,logLevel:u,logger:p,transport:s,encoder:l,lazy:a,monitor:c,pingInterval:o,reconnectStrategy:f,maxMissingPings:y,maxReconnectAttempts:w,subprotocol:x,tokenRefresher:E,historyTimestamp:S,protocolOptions:C,concurrentSubscribes:b,performFailures:T,transportConfigurator:R,auth:L}=e;if(p=p||new Ms(u),typeof t=="string"){x=x||t;let k=t.substring(0,t.lastIndexOf("-")),A=t.substring(t.lastIndexOf("-")+1);if(C=C||{},k==="actioncable-v1")t=new Gg({logger:p,...C});else if(k==="actioncable-v1-ext")t=new qx({logger:p,historyTimestamp:S,...C});else throw Error(`Protocol is not supported yet: ${t}`);if(A==="json")l=l||new Ux,d=d||"text";else if(A==="msgpack"){if(d="binary",!l)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(A==="protobuf"){if(d=d||"binary",!l)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${t}`)}if(!t)throw Error("Protocol must be specified");s=s||new Jx(n,{websocketImplementation:r,websocketOptions:h,subprotocol:x,authStrategy:g,format:d}),v&&(s=new Zx([s,...v],{logger:p})),L&&L.token&&s.setToken(L.token,L.param||"jid"),f=f||Kg(o),c!==!1&&(c=c||new Qg({pingInterval:o,reconnectStrategy:f,maxMissingPings:y,maxReconnectAttempts:w,logger:p}));let I={concurrentSubscribes:b},N=new Kx({protocol:t,transport:s,encoder:l,logger:p,lazy:a,hubOptions:I,performFailures:T,transportConfigurator:R});return c&&(c.watch(N),N.monitor=c),E&&eA(N,async()=>{try{await E(s)}catch(k){return p.error("Failed to refresh authentication token: "+k),!1}return N.connect().catch(()=>{}),!0}),N}function eA(n,e){let t=!1;n.on("connect",()=>t=!1),n.on("close",async r=>{if(r){if(t){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(t=!0,await e())}})}class tA{constructor(e){this.channel=e}notify(e,...t){typeof this[e]=="function"&&this[e](...t)}perform(e,t={}){this.channel.perform(e,t)}send(e){this.channel.send(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class nA extends cu{constructor(e,t,r){super(e,t),this.subscription=new tA(this),Object.assign(this.subscription,r),this.on("connect",()=>this.subscription.notify("connected")),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",d=>this.subscription.notify("received",d)),this.on("close",d=>{d&&d instanceof lu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class rA{constructor(e){this.cable=e}create(e,t){let r,d;typeof e=="object"?(r=e.channel,delete e.channel,d=e):(r=e,d={});let h=new nA(r,d,t);return h.subscription.notify("initialized"),this.cable.subscribe(h),h.subscription}findAll(e){return this.cable.hub.channels.filter(t=>t.identifier===e).map(t=>t.subscription)}}class iA{constructor(e){this.cable=e,this.subscriptions=new rA(e)}}class oA extends qg{writeLogEntry(e,t,r){r?console[e](t,r):console[e](t)}}class sA extends Qg{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},t=d=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:d})},r=()=>this.disconnect(new Dr("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",t,!1),window.addEventListener("online",t,!1),window.addEventListener("resume",t,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",t,!1),window.removeEventListener("online",t,!1),window.removeEventListener("resume",t,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const aA=["cable","action-cable"],lA="/cable",Ja=(n,e)=>{for(let t of aA){let r=n.head.querySelector(`meta[name='${t}-${e}']`);if(r)return r.getAttribute("content")}},Jg=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,cA=()=>{if(typeof document<"u"&&document.head){let n=Ja(document,"url");if(n)return Jg(n)}return Jg(lA)},uA=()=>{if(typeof document<"u"&&document.head){let n=Ja(document,"history-timestamp");if(n)return n|0}},hA=()=>{if(typeof document<"u"&&document.head)return Ja(document,"token")},dA=()=>{if(typeof document<"u"&&document.head)return Ja(document,"token-param")};function fA(n,e){typeof n=="object"&&typeof e>"u"&&(e=n,n=void 0),n=n||cA(),e=e||{},e.historyTimestamp||(e.historyTimestamp=uA());let t=hA();if(t){let p=dA();e.auth=Object.assign({token:t,param:p},e.auth||{})}e=Object.assign({},Zg,e);let{logLevel:r,logger:d,pingInterval:h,reconnectStrategy:g,maxMissingPings:v,maxReconnectAttempts:u}=e;return d=e.logger=e.logger||new oA(r),g=e.reconnectStrategy=e.reconnectStrategy||Kg(h),e.monitor!==!1&&(e.monitor=e.monitor||new sA({pingInterval:h,reconnectStrategy:g,maxMissingPings:v,maxReconnectAttempts:u,logger:d})),Xx(n,e)}function gA(n,e){let t=fA(n,e);return new iA(t)}class pA{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,t,r={},d={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(h=>{if(h&&OpenC3Auth.setTokens(),this._cable==null){let g=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);g=new URL(g,document.baseURI).href,this._cable=gA(g)}return this._cable.subscriptions.create({channel:e,...d},r)})}recordPing(){}}Rn("R",pA);class mA{constructor(e,t,r="",d=""){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=r,this.url=d}}Rn("d",mA);function hu(n){return yA.test(n)}const yA=/^-?[0-9]+$/;function Xg(n){return vA.test(n)}const vA=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function ep(n,e){const t=Number.parseFloat(n),r=String(t),d=tp(n),h=tp(r);return!!(d===h||(e==null?void 0:e.approx)===!0&&!hu(n)&&h.length>=14&&d.startsWith(h.substring(0,14)))}let Ls=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function wA(n){if(ep(n,{approx:!1}))return;if(hu(n))return Ls.truncate_integer;const e=Number.parseFloat(n);return Number.isFinite(e)?e===0?Ls.underflow:Ls.truncate_float:Ls.overflow}function tp(n){return n.replace(bA,"").replace(AA,"").replace(CA,"").replace(xA,"")}const bA=/[eE][+-]?\d+$/,xA=/^-?(0*)?/,AA=/\./,CA=/0+$/;class _A{constructor(e){if(Pa(this,"isLosslessNumber",!0),!Xg(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=wA(this.value);if(e===void 0||e===Ls.truncate_float)return Number.parseFloat(this.value);if(hu(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function kA(n){return n&&typeof n=="object"&&n.isLosslessNumber===!0||!1}function SA(n){return new _A(n)}function $A(n,e){return du({"":n},"",n,e)}function du(n,e,t,r){return Array.isArray(t)?r.call(n,e,IA(t,r)):t&&typeof t=="object"&&!kA(t)?r.call(n,e,TA(t,r)):r.call(n,e,t)}function TA(n,e){for(const t of Object.keys(n)){const r=du(n,t,n[t],e);r!==void 0?n[t]=r:delete n[t]}return n}function IA(n,e){for(let t=0;t<n.length;t++)n[t]=du(n,String(t),n[t],e);return n}function EA(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:SA,r=0;const d=v();return o(d),y(),e?$A(d,e):d;function h(){if(n.charCodeAt(r)===NA){r++,p();const _={};let M=!0;for(;r<n.length&&n.charCodeAt(r)!==rp;){M?M=!1:(a(),p());const O=r,F=s();if(F===void 0){E();return}p(),c();const H=v();if(H===void 0){L();return}Object.prototype.hasOwnProperty.call(_,F)&&!fu(H,_[F])&&S(F,O+1),_[F]=H}return n.charCodeAt(r)!==rp&&C(),r++,_}}function g(){if(n.charCodeAt(r)===FA){r++,p();const _=[];let M=!0;for(;r<n.length&&n.charCodeAt(r)!==ip;){M?M=!1:a();const O=v();f(O),_.push(O)}return n.charCodeAt(r)!==ip&&b(),r++,_}}function v(){p();const _=s()??l()??h()??g()??u("true",!0)??u("false",!1)??u("null",null);return p(),_}function u(_,M){if(n.slice(r,r+_.length)===_)return r+=_.length,M}function p(){for(;RA(n.charCodeAt(r));)r++}function s(){if(n.charCodeAt(r)===gu){r++;let _="";for(;r<n.length&&n.charCodeAt(r)!==gu;){if(n.charCodeAt(r)===DA){const M=n[r+1],O=OA[M];O!==void 0?(_+=O,r++):M==="u"?Xa(n.charCodeAt(r+2))&&Xa(n.charCodeAt(r+3))&&Xa(n.charCodeAt(r+4))&&Xa(n.charCodeAt(r+5))?(_+=String.fromCharCode(Number.parseInt(n.slice(r+2,r+6),16)),r+=5):I(r):R(r)}else LA(n.charCodeAt(r))?_+=n[r]:T(n[r]);r++}return x(),r++,_}}function l(){const _=r;if(n.charCodeAt(r)===op&&(r++,w(_)),n.charCodeAt(r)===pu)r++;else if(MA(n.charCodeAt(r)))for(r++;el(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===VA)for(r++,w(_);el(n.charCodeAt(r));)r++;if(n.charCodeAt(r)===QA||n.charCodeAt(r)===KA)for(r++,(n.charCodeAt(r)===op||n.charCodeAt(r)===BA)&&r++,w(_);el(n.charCodeAt(r));)r++;if(r>_)return t(n.slice(_,r))}function a(){if(n.charCodeAt(r)!==UA)throw new SyntaxError(`Comma ',' expected after value ${A()}`);r++}function c(){if(n.charCodeAt(r)!==qA)throw new SyntaxError(`Colon ':' expected after property name ${A()}`);r++}function o(_){if(_===void 0)throw new SyntaxError(`JSON value expected ${A()}`)}function f(_){if(_===void 0)throw new SyntaxError(`Array item expected ${A()}`)}function y(){if(r<n.length)throw new SyntaxError(`Expected end of input ${A()}`)}function w(_){if(!el(n.charCodeAt(r))){const M=n.slice(_,r);throw new SyntaxError(`Invalid number '${M}', expecting a digit ${A()}`)}}function x(){if(n.charCodeAt(r)!==gu)throw new SyntaxError(`End of string '"' expected ${A()}`)}function E(){throw new SyntaxError(`Quoted object key expected ${A()}`)}function S(_,M){throw new SyntaxError(`Duplicate key '${_}' encountered at position ${M}`)}function C(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${A()}`)}function b(){throw new SyntaxError(`Array item or end of array ']' expected ${A()}`)}function T(_){throw new SyntaxError(`Invalid character '${_}' ${N()}`)}function R(_){const M=n.slice(_,_+2);throw new SyntaxError(`Invalid escape character '${M}' ${N()}`)}function L(){throw new SyntaxError(`Object value expected after ':' ${N()}`)}function I(_){const M=n.slice(_,_+6);throw new SyntaxError(`Invalid unicode character '${M}' ${N()}`)}function N(){return`at position ${r}`}function k(){return r<n.length?`but got '${n[r]}'`:"but reached end of input"}function A(){return`${k()} ${N()}`}}function RA(n){return n===PA||n===HA||n===WA||n===jA}function Xa(n){return n>=pu&&n<=mu||n>=GA&&n<=ZA||n>=YA&&n<=JA}function el(n){return n>=pu&&n<=mu}function MA(n){return n>=zA&&n<=mu}function LA(n){return n>=32&&n<=1114111}function fu(n,e){return n===e?!0:Array.isArray(n)&&Array.isArray(e)?n.length===e.length&&n.every((t,r)=>fu(t,e[r])):np(n)&&np(e)?[...new Set([...Object.keys(n),...Object.keys(e)])].every(t=>fu(n[t],e[t])):!1}function np(n){return typeof n=="object"&&n!==null}const OA={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
1381
|
-
`,r:"\r",t:" "},DA=92,NA=123,rp=125,FA=91,ip=93,PA=32,HA=10,WA=9,jA=13,gu=34,BA=43,op=45,pu=48,zA=49,mu=57,UA=44,VA=46,qA=58,GA=65,YA=97,KA=69,QA=101,ZA=70,JA=102;function sp(n,e,t,r){return d(n);function d(u,p){if(Array.isArray(r)){const s=r.find(l=>l.test(u));if(s){const l=s.stringify(u);if(typeof l!="string"||!Xg(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof u=="boolean"||typeof u=="number"||typeof u=="string"||u===null||u instanceof Date||u instanceof Boolean||u instanceof Number||u instanceof String)return JSON.stringify(u);if(u!=null&&u.isLosslessNumber||typeof u=="bigint")return u.toString();if(Array.isArray(u))return h(u);if(u&&typeof u=="object")return g(u)}function h(u,p){if(u.length===0)return"[]";let s="[";for(let l=0;l<u.length;l++){const a=u[l];typeof a<"u"&&typeof a!="function"?s+=d(a):s+="null",l<u.length-1&&(s+=",")}return s+="]",s}function g(u,p){if(typeof u.toJSON=="function")return sp(u.toJSON(),e,t,void 0);const s=Array.isArray(e)?e.map(String):Object.keys(u);if(s.length===0)return"{}";let l=!0,a="{";for(const c of s){const o=u[c];if(v(c,o)){l?l=!1:a+=",";const f=JSON.stringify(c);a+=`${f}:`,a+=d(o)}}return a+="}",a}function v(u,p){return typeof p<"u"&&typeof p!="function"&&typeof p!="symbol"}}function XA(n){return ep(n)?parseFloat(n):BigInt(n)}class eC{constructor(){Pa(this,"id",1)}async exec(e,t,r={},d={},h=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,d.manual=!0,(await su.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...d},timeout:h,transformRequest:[(g,v)=>sp(g)],transformResponse:[g=>EA(g,void 0,XA)]})).data.result}catch(g){let v=new Error;throw g.response?(v.name=g.response.data.error.data.class,v.message=g.response.data.error.data.message,v.object=g.response.data.error):g.request?(v.name="Request error",v.message="Request error, no response received"):v.name="Unknown error",v}}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,...r){return this.exec("interface_cmd",[e,t,...r])}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,r){return this.exec("get_item",[e,t,r])}get_param(e,t,r){return this.exec("get_param",[e,t,r])}get_parameter(e,t,r){return this.exec("get_param",[e,t,r])}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,r,d=30){const h=await this.exec("get_tlm_packet",[e,t],{type:r,stale_time:d});if(h!=null){let g=h.length,v=null;for(let u=0;u<g;u++)v=this.decode_openc3_type(h[u][1]),v!==null&&(h[u][1]=v)}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,r=null){let d={stale_time:t};r!==null&&(d.cache_timeout=r);const h=await this.exec("get_tlm_values",[e],d,{},1e4);let g=h[0].length,v=null;for(let u=0;u<g;u++)v=this.decode_openc3_type(h[0][u]),v!==null&&(h[0][u]=v);return h}get_limits(e,t,r){return this.exec("get_limits",[e,t,r])}async tlm(e,t,r,d="CONVERTED"){let h=null;if(t===void 0)h=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t))h=await this.exec("tlm",[e],{type:t});else{let v=new Error;throw v.name="TypeError",v.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,v}else h=await this.exec("tlm",[e,t,r],{type:d});let g=this.decode_openc3_type(h);return g!==null&&(h=g),h}async inject_tlm(e,t,r=null,d="CONVERTED"){await this.exec("inject_tlm",[e,t,r],{type:d})}set_tlm(e,t,r,d){return this.exec("set_tlm",[e,t,r],{type:d})}override_tlm(e,t,r,d){return this.exec("override_tlm",[e,t,r],{type:d})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,r,d){return this.exec("normalize_tlm",[e,t,r],{type:d})}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,r,d="CONVERTED"){return this.exec("get_cmd_value",[e,t,r,d])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,r,d,h){let g=null;for(let v in d)Object.prototype.hasOwnProperty.call(d,v)&&(g=this.encode_openc3_type(d[v]),g!==null&&(d[v]=g));return this.exec(e,[t,r,d],{},h)}get_cmd_hazardous(e,t,r,d={}){return t===void 0?this.exec("get_cmd_hazardous",e,{},d):this._cmd("get_cmd_hazardous",e,t,r,d)}cmd(e,t,r,d={}){return t===void 0?this.exec("cmd",e,{},d):this._cmd("cmd",e,t,r,d)}cmd_no_range_check(e,t,r,d={}){return t===void 0?this.exec("cmd_no_range_check",e,{},d):this._cmd("cmd_no_range_check",e,t,r,d)}cmd_raw(e,t,r,d={}){return t===void 0?this.exec("cmd_raw",e,{},d):this._cmd("cmd_raw",e,t,r,d)}cmd_raw_no_range_check(e,t,r,d={}){return t===void 0?this.exec("cmd_raw_no_range_check",e,{},d):this._cmd("cmd_raw_no_range_check",e,t,r,d)}cmd_no_hazardous_check(e,t,r,d={}){return t===void 0?this.exec("cmd_no_hazardous_check",e,{},d):this._cmd("cmd_no_hazardous_check",e,t,r,d)}cmd_no_checks(e,t,r,d={}){return t===void 0?this.exec("cmd_no_checks",e,{},d):this._cmd("cmd_no_checks",e,t,r,d)}cmd_raw_no_hazardous_check(e,t,r,d={}){return t===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},d):this._cmd("cmd_raw_no_hazardous_check",e,t,r,d)}cmd_raw_no_checks(e,t,r,d={}){return t===void 0?this.exec("cmd_raw_no_checks",e,{},d):this._cmd("cmd_raw_no_checks",e,t,r,d)}build_cmd(e,t,r){return t===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,r)}build_command(e,t,r){return t===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,r)}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,r){return this.exec("save_config",[e,t,r])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,r){return this.exec("enable_limits",[e,t,r])}disable_limits(e,t,r){return this.exec("disable_limits",[e,t,r])}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])}update_news(){return this.exec("update_news",[])}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),r=await crypto.subtle.digest("SHA-256",t),d=new Uint8Array(r);return Array.from(d).map(h=>h.toString(16).padStart(2,"0")).join("")}}}Rn("O",eC);var tl={exports:{}};/**
|
1382
|
-
* @license
|
1383
|
-
* Lodash <https://lodash.com/>
|
1384
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
1385
|
-
* Released under MIT license <https://lodash.com/license>
|
1386
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
1387
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1388
|
-
*/var tC=tl.exports,ap;function nC(){return ap||(ap=1,function(n,e){(function(){var t,r="4.17.21",d=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",v="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",p=500,s="__lodash_placeholder__",l=1,a=2,c=4,o=1,f=2,y=1,w=2,x=4,E=8,S=16,C=32,b=64,T=128,R=256,L=512,I=30,N="...",k=800,A=16,_=1,M=2,O=3,F=1/0,H=9007199254740991,z=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",T],["bind",y],["bindKey",w],["curry",E],["curryRight",S],["flip",L],["partial",C],["partialRight",b],["rearg",R]],re="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",ve="[object Date]",ge="[object DOMException]",Se="[object Error]",lt="[object Function]",jt="[object GeneratorFunction]",gt="[object Map]",yt="[object Number]",dn="[object Null]",Nt="[object Object]",Jt="[object Promise]",Zr="[object Proxy]",_n="[object RegExp]",rn="[object Set]",We="[object String]",ze="[object Symbol]",on="[object Undefined]",Ve="[object WeakMap]",ce="[object WeakSet]",Ee="[object ArrayBuffer]",De="[object DataView]",Ye="[object Float32Array]",Qe="[object Float64Array]",pt="[object Int8Array]",mt="[object Int16Array]",ut="[object Int32Array]",ht="[object Uint8Array]",ot="[object Uint8ClampedArray]",Vt="[object Uint16Array]",jn="[object Uint32Array]",ui=/\b__p \+= '';/g,rr=/\b(__p \+=) '' \+/g,Ks=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qs=/&(?:amp|lt|gt|quot|#39);/g,Nl=/[&<>"']/g,id=RegExp(Qs.source),od=RegExp(Nl.source),sd=/<%-([\s\S]+?)%>/g,ad=/<%([\s\S]+?)%>/g,je=/<%=([\s\S]+?)%>/g,hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ln=/^\w*$/,Jr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xr=/[\\^$.*+?()[\]{}|]/g,Ri=RegExp(Xr.source),Bn=/^\s+/,Mi=/\s/,Li=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fl=/\{\n\/\* \[wrapped with (.+)\] \*/,Pl=/,? & /,ld=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cd=/[()=,{}\[\]\/\s]/,di=/\\(\\)?/g,ud=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Oi=/\w*$/,Hl=/^[-+]0x[0-9a-f]+$/i,ei=/^0b[01]+$/i,kn=/^\[object .+?Constructor\]$/,yn=/^0o[0-7]+$/i,vn=/^(?:0|[1-9]\d*)$/,ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zn=/($^)/,vo=/['\n\r\u2028\u2029\\]/g,wo="\\ud800-\\udfff",Zs="\\u0300-\\u036f",ns="\\ufe20-\\ufe2f",Di="\\u20d0-\\u20ff",rs=Zs+ns+Di,is="\\u2700-\\u27bf",os="a-z\\xdf-\\xf6\\xf8-\\xff",Js="\\xac\\xb1\\xd7\\xf7",Xs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ea="\\u2000-\\u206f",ta=" \\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",_r="A-Z\\xc0-\\xd6\\xd8-\\xde",na="\\ufe0e\\ufe0f",ra=Js+Xs+ea+ta,bo="['’]",Wl="["+wo+"]",jl="["+ra+"]",ss="["+rs+"]",Bl="\\d+",zl="["+is+"]",ia="["+os+"]",Ul="[^"+wo+ra+Bl+is+os+_r+"]",as="\\ud83c[\\udffb-\\udfff]",oa="(?:"+ss+"|"+as+")",xo="[^"+wo+"]",Ni="(?:\\ud83c[\\udde6-\\uddff]){2}",sa="[\\ud800-\\udbff][\\udc00-\\udfff]",ti="["+_r+"]",Vl="\\u200d",ql="(?:"+ia+"|"+Ul+")",hd="(?:"+ti+"|"+Ul+")",fi="(?:"+bo+"(?:d|ll|m|re|s|t|ve))?",Ao="(?:"+bo+"(?:D|LL|M|RE|S|T|VE))?",ls=oa+"?",Fi="["+na+"]?",dd="(?:"+Vl+"(?:"+[xo,Ni,sa].join("|")+")"+Fi+ls+")*",Pi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",aa=Fi+ls+dd,la="(?:"+[zl,Ni,sa].join("|")+")"+aa,ca="(?:"+[xo+ss+"?",ss,Ni,sa,Wl].join("|")+")",ua=RegExp(bo,"g"),Hi=RegExp(ss,"g"),ni=RegExp(as+"(?="+as+")|"+ca+aa,"g"),Gl=RegExp([ti+"?"+ia+"+"+fi+"(?="+[jl,ti,"$"].join("|")+")",hd+"+"+Ao+"(?="+[jl,ti+ql,"$"].join("|")+")",ti+"?"+ql+"+"+fi,ti+"+"+Ao,fd,Pi,Bl,la].join("|"),"g"),Yl=RegExp("["+Vl+wo+rs+na+"]"),Wi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ji=["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"],Kl=-1,Lt={};Lt[Ye]=Lt[Qe]=Lt[pt]=Lt[mt]=Lt[ut]=Lt[ht]=Lt[ot]=Lt[Vt]=Lt[jn]=!0,Lt[re]=Lt[J]=Lt[Ee]=Lt[me]=Lt[De]=Lt[ve]=Lt[Se]=Lt[lt]=Lt[gt]=Lt[yt]=Lt[Nt]=Lt[_n]=Lt[rn]=Lt[We]=Lt[Ve]=!1;var Be={};Be[re]=Be[J]=Be[Ee]=Be[De]=Be[me]=Be[ve]=Be[Ye]=Be[Qe]=Be[pt]=Be[mt]=Be[ut]=Be[gt]=Be[yt]=Be[Nt]=Be[_n]=Be[rn]=Be[We]=Be[ze]=Be[ht]=Be[ot]=Be[Vt]=Be[jn]=!0,Be[Se]=Be[lt]=Be[Ve]=!1;var Bt={À:"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"},ri={"&":"&","<":"<",">":">",'"':""","'":"'"},Sn={"&":"&","<":"<",">":">",""":'"',"'":"'"},wn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bn=parseFloat,Ft=parseInt,gi=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti,cs=typeof self=="object"&&self&&self.Object===Object&&self,$n=gi||cs||Function("return this")(),kr=e&&!e.nodeType&&e,On=kr&&!0&&n&&!n.nodeType&&n,Ql=On&&On.exports===kr,ha=Ql&&gi.process,ir=function(){try{var ne=On&&On.require&&On.require("util").types;return ne||ha&&ha.binding&&ha.binding("util")}catch{}}(),Zl=ir&&ir.isArrayBuffer,Sr=ir&&ir.isDate,Hr=ir&&ir.isMap,ii=ir&&ir.isRegExp,pi=ir&&ir.isSet,Jl=ir&&ir.isTypedArray;function Yt(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 gd(ne,le,se,$e){for(var He=-1,Je=ne==null?0:ne.length;++He<Je;){var Tt=ne[He];le($e,Tt,se(Tt),ne)}return $e}function Kn(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e&&le(ne[se],se,ne)!==!1;);return ne}function Xl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Bi(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e;)if(!le(ne[se],se,ne))return!1;return!0}function or(ne,le){for(var se=-1,$e=ne==null?0:ne.length,He=0,Je=[];++se<$e;){var Tt=ne[se];le(Tt,se,ne)&&(Je[He++]=Tt)}return Je}function us(ne,le){var se=ne==null?0:ne.length;return!!se&&mi(ne,le,0)>-1}function Co(ne,le,se){for(var $e=-1,He=ne==null?0:ne.length;++$e<He;)if(se(le,ne[$e]))return!0;return!1}function zt(ne,le){for(var se=-1,$e=ne==null?0:ne.length,He=Array($e);++se<$e;)He[se]=le(ne[se],se,ne);return He}function Un(ne,le){for(var se=-1,$e=le.length,He=ne.length;++se<$e;)ne[He+se]=le[se];return ne}function $r(ne,le,se,$e){var He=-1,Je=ne==null?0:ne.length;for($e&&Je&&(se=ne[++He]);++He<Je;)se=le(se,ne[He],He,ne);return se}function _o(ne,le,se,$e){var He=ne==null?0:ne.length;for($e&&He&&(se=ne[--He]);He--;)se=le(se,ne[He],He,ne);return se}function hs(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e;)if(le(ne[se],se,ne))return!0;return!1}var da=ya("length");function fa(ne){return ne.split("")}function ds(ne){return ne.match(ld)||[]}function ga(ne,le,se){var $e;return se(ne,function(He,Je,Tt){if(le(He,Je,Tt))return $e=Je,!1}),$e}function ko(ne,le,se,$e){for(var He=ne.length,Je=se+($e?1:-1);$e?Je--:++Je<He;)if(le(ne[Je],Je,ne))return Je;return-1}function mi(ne,le,se){return le===le?Ze(ne,le,se):ko(ne,pa,se)}function ec(ne,le,se,$e){for(var He=se-1,Je=ne.length;++He<Je;)if($e(ne[He],le))return He;return-1}function pa(ne){return ne!==ne}function ma(ne,le){var se=ne==null?0:ne.length;return se?Ui(ne,le)/se:V}function ya(ne){return function(le){return le==null?t:le[ne]}}function fs(ne){return function(le){return ne==null?t:ne[le]}}function va(ne,le,se,$e,He){return He(ne,function(Je,Tt,et){se=$e?($e=!1,Je):le(se,Je,Tt,et)}),se}function zi(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Ui(ne,le){for(var se,$e=-1,He=ne.length;++$e<He;){var Je=le(ne[$e]);Je!==t&&(se=se===t?Je:se+Je)}return se}function sn(ne,le){for(var se=-1,$e=Array(ne);++se<ne;)$e[se]=le(se);return $e}function tc(ne,le){return zt(le,function(se){return[se,ne[se]]})}function Xt(ne){return ne&&ne.slice(0,Xe(ne)+1).replace(Bn,"")}function Vn(ne){return function(le){return ne(le)}}function So(ne,le){return zt(le,function(se){return ne[se]})}function Wr(ne,le){return ne.has(le)}function nc(ne,le){for(var se=-1,$e=ne.length;++se<$e&&mi(le,ne[se],0)>-1;);return se}function rc(ne,le){for(var se=ne.length;se--&&mi(le,ne[se],0)>-1;);return se}function wa(ne,le){for(var se=ne.length,$e=0;se--;)ne[se]===le&&++$e;return $e}var P=fs(Bt),j=fs(ri);function Y(ne){return"\\"+wn[ne]}function K(ne,le){return ne==null?t:ne[le]}function te(ne){return Yl.test(ne)}function oe(ne){return Wi.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function we(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e,He){se[++le]=[He,$e]}),se}function Ce(ne,le){return function(se){return ne(le(se))}}function ke(ne,le){for(var se=-1,$e=ne.length,He=0,Je=[];++se<$e;){var Tt=ne[se];(Tt===le||Tt===s)&&(ne[se]=s,Je[He++]=se)}return Je}function Te(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e){se[++le]=$e}),se}function Re(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e){se[++le]=[$e,$e]}),se}function Ze(ne,le,se){for(var $e=se-1,He=ne.length;++$e<He;)if(ne[$e]===le)return $e;return-1}function Rt(ne,le,se){for(var $e=se+1;$e--;)if(ne[$e]===le)return $e;return $e}function st(ne){return te(ne)?$t(ne):da(ne)}function Ke(ne){return te(ne)?en(ne):fa(ne)}function Xe(ne){for(var le=ne.length;le--&&Mi.test(ne.charAt(le)););return le}var Ne=fs(Sn);function $t(ne){for(var le=ni.lastIndex=0;ni.test(ne);)++le;return le}function en(ne){return ne.match(ni)||[]}function Kt(ne){return ne.match(Gl)||[]}var Pt=function ne(le){le=le==null?$n:Ht.defaults($n.Object(),le,Ht.pick($n,ji));var se=le.Array,$e=le.Date,He=le.Error,Je=le.Function,Tt=le.Math,et=le.Object,Tn=le.RegExp,Qn=le.String,In=le.TypeError,mr=se.prototype,sr=Je.prototype,gs=et.prototype,ic=le["__core-js_shared__"],oc=sr.toString,Mt=gs.hasOwnProperty,SE=0,Q0=function(){var i=/[^.]+$/.exec(ic&&ic.keys&&ic.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),sc=gs.toString,$E=oc.call(et),TE=$n._,IE=Tn("^"+oc.call(Mt).replace(Xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ac=Ql?le.Buffer:t,Vi=le.Symbol,lc=le.Uint8Array,Z0=ac?ac.allocUnsafe:t,cc=Ce(et.getPrototypeOf,et),J0=et.create,X0=gs.propertyIsEnumerable,uc=mr.splice,ev=Vi?Vi.isConcatSpreadable:t,ba=Vi?Vi.iterator:t,$o=Vi?Vi.toStringTag:t,hc=function(){try{var i=Mo(et,"defineProperty");return i({},"",{}),i}catch{}}(),EE=le.clearTimeout!==$n.clearTimeout&&le.clearTimeout,RE=$e&&$e.now!==$n.Date.now&&$e.now,ME=le.setTimeout!==$n.setTimeout&&le.setTimeout,dc=Tt.ceil,fc=Tt.floor,pd=et.getOwnPropertySymbols,LE=ac?ac.isBuffer:t,tv=le.isFinite,OE=mr.join,DE=Ce(et.keys,et),En=Tt.max,qn=Tt.min,NE=$e.now,FE=le.parseInt,nv=Tt.random,PE=mr.reverse,md=Mo(le,"DataView"),xa=Mo(le,"Map"),yd=Mo(le,"Promise"),ps=Mo(le,"Set"),Aa=Mo(le,"WeakMap"),Ca=Mo(et,"create"),gc=Aa&&new Aa,ms={},HE=Lo(md),WE=Lo(xa),jE=Lo(yd),BE=Lo(ps),zE=Lo(Aa),pc=Vi?Vi.prototype:t,_a=pc?pc.valueOf:t,rv=pc?pc.toString:t;function B(i){if(an(i)&&!tt(i)&&!(i instanceof bt)){if(i instanceof Tr)return i;if(Mt.call(i,"__wrapped__"))return iw(i)}return new Tr(i)}var ys=function(){function i(){}return function(m){if(!tn(m))return{};if(J0)return J0(m);i.prototype=m;var $=new i;return i.prototype=t,$}}();function mc(){}function Tr(i,m){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=t}B.templateSettings={escape:sd,evaluate:ad,interpolate:je,variable:"",imports:{_:B}},B.prototype=mc.prototype,B.prototype.constructor=B,Tr.prototype=ys(mc.prototype),Tr.prototype.constructor=Tr;function bt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function UE(){var i=new bt(this.__wrapped__);return i.__actions__=ar(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=ar(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=ar(this.__views__),i}function VE(){if(this.__filtered__){var i=new bt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function qE(){var i=this.__wrapped__.value(),m=this.__dir__,$=tt(i),D=m<0,W=$?i.length:0,U=iM(0,W,this.__views__),Q=U.start,ee=U.end,ie=ee-Q,fe=D?ee:Q-1,pe=this.__iteratees__,ye=pe.length,Ie=0,Fe=qn(ie,this.__takeCount__);if(!$||!D&&W==ie&&Fe==ie)return $v(i,this.__actions__);var qe=[];e:for(;ie--&&Ie<Fe;){fe+=m;for(var ct=-1,Ge=i[fe];++ct<ye;){var vt=pe[ct],xt=vt.iteratee,wr=vt.type,Xn=xt(Ge);if(wr==M)Ge=Xn;else if(!Xn){if(wr==_)continue e;break e}}qe[Ie++]=Ge}return qe}bt.prototype=ys(mc.prototype),bt.prototype.constructor=bt;function To(i){var m=-1,$=i==null?0:i.length;for(this.clear();++m<$;){var D=i[m];this.set(D[0],D[1])}}function GE(){this.__data__=Ca?Ca(null):{},this.size=0}function YE(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}function KE(i){var m=this.__data__;if(Ca){var $=m[i];return $===u?t:$}return Mt.call(m,i)?m[i]:t}function QE(i){var m=this.__data__;return Ca?m[i]!==t:Mt.call(m,i)}function ZE(i,m){var $=this.__data__;return this.size+=this.has(i)?0:1,$[i]=Ca&&m===t?u:m,this}To.prototype.clear=GE,To.prototype.delete=YE,To.prototype.get=KE,To.prototype.has=QE,To.prototype.set=ZE;function yi(i){var m=-1,$=i==null?0:i.length;for(this.clear();++m<$;){var D=i[m];this.set(D[0],D[1])}}function JE(){this.__data__=[],this.size=0}function XE(i){var m=this.__data__,$=yc(m,i);if($<0)return!1;var D=m.length-1;return $==D?m.pop():uc.call(m,$,1),--this.size,!0}function eR(i){var m=this.__data__,$=yc(m,i);return $<0?t:m[$][1]}function tR(i){return yc(this.__data__,i)>-1}function nR(i,m){var $=this.__data__,D=yc($,i);return D<0?(++this.size,$.push([i,m])):$[D][1]=m,this}yi.prototype.clear=JE,yi.prototype.delete=XE,yi.prototype.get=eR,yi.prototype.has=tR,yi.prototype.set=nR;function vi(i){var m=-1,$=i==null?0:i.length;for(this.clear();++m<$;){var D=i[m];this.set(D[0],D[1])}}function rR(){this.size=0,this.__data__={hash:new To,map:new(xa||yi),string:new To}}function iR(i){var m=Ic(this,i).delete(i);return this.size-=m?1:0,m}function oR(i){return Ic(this,i).get(i)}function sR(i){return Ic(this,i).has(i)}function aR(i,m){var $=Ic(this,i),D=$.size;return $.set(i,m),this.size+=$.size==D?0:1,this}vi.prototype.clear=rR,vi.prototype.delete=iR,vi.prototype.get=oR,vi.prototype.has=sR,vi.prototype.set=aR;function Io(i){var m=-1,$=i==null?0:i.length;for(this.__data__=new vi;++m<$;)this.add(i[m])}function lR(i){return this.__data__.set(i,u),this}function cR(i){return this.__data__.has(i)}Io.prototype.add=Io.prototype.push=lR,Io.prototype.has=cR;function jr(i){var m=this.__data__=new yi(i);this.size=m.size}function uR(){this.__data__=new yi,this.size=0}function hR(i){var m=this.__data__,$=m.delete(i);return this.size=m.size,$}function dR(i){return this.__data__.get(i)}function fR(i){return this.__data__.has(i)}function gR(i,m){var $=this.__data__;if($ instanceof yi){var D=$.__data__;if(!xa||D.length<d-1)return D.push([i,m]),this.size=++$.size,this;$=this.__data__=new vi(D)}return $.set(i,m),this.size=$.size,this}jr.prototype.clear=uR,jr.prototype.delete=hR,jr.prototype.get=dR,jr.prototype.has=fR,jr.prototype.set=gR;function iv(i,m){var $=tt(i),D=!$&&Oo(i),W=!$&&!D&&Qi(i),U=!$&&!D&&!W&&xs(i),Q=$||D||W||U,ee=Q?sn(i.length,Qn):[],ie=ee.length;for(var fe in i)(m||Mt.call(i,fe))&&!(Q&&(fe=="length"||W&&(fe=="offset"||fe=="parent")||U&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||Ai(fe,ie)))&&ee.push(fe);return ee}function ov(i){var m=i.length;return m?i[Td(0,m-1)]:t}function pR(i,m){return Ec(ar(i),Eo(m,0,i.length))}function mR(i){return Ec(ar(i))}function vd(i,m,$){($!==t&&!Br(i[m],$)||$===t&&!(m in i))&&wi(i,m,$)}function ka(i,m,$){var D=i[m];(!(Mt.call(i,m)&&Br(D,$))||$===t&&!(m in i))&&wi(i,m,$)}function yc(i,m){for(var $=i.length;$--;)if(Br(i[$][0],m))return $;return-1}function yR(i,m,$,D){return qi(i,function(W,U,Q){m(D,W,$(W),Q)}),D}function sv(i,m){return i&&si(m,Dn(m),i)}function vR(i,m){return i&&si(m,cr(m),i)}function wi(i,m,$){m=="__proto__"&&hc?hc(i,m,{configurable:!0,enumerable:!0,value:$,writable:!0}):i[m]=$}function wd(i,m){for(var $=-1,D=m.length,W=se(D),U=i==null;++$<D;)W[$]=U?t:Xd(i,m[$]);return W}function Eo(i,m,$){return i===i&&($!==t&&(i=i<=$?i:$),m!==t&&(i=i>=m?i:m)),i}function Ir(i,m,$,D,W,U){var Q,ee=m&l,ie=m&a,fe=m&c;if($&&(Q=W?$(i,D,W,U):$(i)),Q!==t)return Q;if(!tn(i))return i;var pe=tt(i);if(pe){if(Q=sM(i),!ee)return ar(i,Q)}else{var ye=Gn(i),Ie=ye==lt||ye==jt;if(Qi(i))return Ev(i,ee);if(ye==Nt||ye==re||Ie&&!W){if(Q=ie||Ie?{}:Kv(i),!ee)return ie?KR(i,vR(Q,i)):YR(i,sv(Q,i))}else{if(!Be[ye])return W?i:{};Q=aM(i,ye,ee)}}U||(U=new jr);var Fe=U.get(i);if(Fe)return Fe;U.set(i,Q),_w(i)?i.forEach(function(Ge){Q.add(Ir(Ge,m,$,Ge,i,U))}):Aw(i)&&i.forEach(function(Ge,vt){Q.set(vt,Ir(Ge,m,$,vt,i,U))});var qe=fe?ie?Hd:Pd:ie?cr:Dn,ct=pe?t:qe(i);return Kn(ct||i,function(Ge,vt){ct&&(vt=Ge,Ge=i[vt]),ka(Q,vt,Ir(Ge,m,$,vt,i,U))}),Q}function wR(i){var m=Dn(i);return function($){return av($,i,m)}}function av(i,m,$){var D=$.length;if(i==null)return!D;for(i=et(i);D--;){var W=$[D],U=m[W],Q=i[W];if(Q===t&&!(W in i)||!U(Q))return!1}return!0}function lv(i,m,$){if(typeof i!="function")throw new In(g);return Ma(function(){i.apply(t,$)},m)}function Sa(i,m,$,D){var W=-1,U=us,Q=!0,ee=i.length,ie=[],fe=m.length;if(!ee)return ie;$&&(m=zt(m,Vn($))),D?(U=Co,Q=!1):m.length>=d&&(U=Wr,Q=!1,m=new Io(m));e:for(;++W<ee;){var pe=i[W],ye=$==null?pe:$(pe);if(pe=D||pe!==0?pe:0,Q&&ye===ye){for(var Ie=fe;Ie--;)if(m[Ie]===ye)continue e;ie.push(pe)}else U(m,ye,D)||ie.push(pe)}return ie}var qi=Dv(oi),cv=Dv(xd,!0);function bR(i,m){var $=!0;return qi(i,function(D,W,U){return $=!!m(D,W,U),$}),$}function vc(i,m,$){for(var D=-1,W=i.length;++D<W;){var U=i[D],Q=m(U);if(Q!=null&&(ee===t?Q===Q&&!vr(Q):$(Q,ee)))var ee=Q,ie=U}return ie}function xR(i,m,$,D){var W=i.length;for($=at($),$<0&&($=-$>W?0:W+$),D=D===t||D>W?W:at(D),D<0&&(D+=W),D=$>D?0:Sw(D);$<D;)i[$++]=m;return i}function uv(i,m){var $=[];return qi(i,function(D,W,U){m(D,W,U)&&$.push(D)}),$}function Nn(i,m,$,D,W){var U=-1,Q=i.length;for($||($=cM),W||(W=[]);++U<Q;){var ee=i[U];m>0&&$(ee)?m>1?Nn(ee,m-1,$,D,W):Un(W,ee):D||(W[W.length]=ee)}return W}var bd=Nv(),hv=Nv(!0);function oi(i,m){return i&&bd(i,m,Dn)}function xd(i,m){return i&&hv(i,m,Dn)}function wc(i,m){return or(m,function($){return Ci(i[$])})}function Ro(i,m){m=Yi(m,i);for(var $=0,D=m.length;i!=null&&$<D;)i=i[ai(m[$++])];return $&&$==D?i:t}function dv(i,m,$){var D=m(i);return tt(i)?D:Un(D,$(i))}function Zn(i){return i==null?i===t?on:dn:$o&&$o in et(i)?rM(i):mM(i)}function Ad(i,m){return i>m}function AR(i,m){return i!=null&&Mt.call(i,m)}function CR(i,m){return i!=null&&m in et(i)}function _R(i,m,$){return i>=qn(m,$)&&i<En(m,$)}function Cd(i,m,$){for(var D=$?Co:us,W=i[0].length,U=i.length,Q=U,ee=se(U),ie=1/0,fe=[];Q--;){var pe=i[Q];Q&&m&&(pe=zt(pe,Vn(m))),ie=qn(pe.length,ie),ee[Q]=!$&&(m||W>=120&&pe.length>=120)?new Io(Q&&pe):t}pe=i[0];var ye=-1,Ie=ee[0];e:for(;++ye<W&&fe.length<ie;){var Fe=pe[ye],qe=m?m(Fe):Fe;if(Fe=$||Fe!==0?Fe:0,!(Ie?Wr(Ie,qe):D(fe,qe,$))){for(Q=U;--Q;){var ct=ee[Q];if(!(ct?Wr(ct,qe):D(i[Q],qe,$)))continue e}Ie&&Ie.push(qe),fe.push(Fe)}}return fe}function kR(i,m,$,D){return oi(i,function(W,U,Q){m(D,$(W),U,Q)}),D}function $a(i,m,$){m=Yi(m,i),i=Xv(i,m);var D=i==null?i:i[ai(Rr(m))];return D==null?t:Yt(D,i,$)}function fv(i){return an(i)&&Zn(i)==re}function SR(i){return an(i)&&Zn(i)==Ee}function $R(i){return an(i)&&Zn(i)==ve}function Ta(i,m,$,D,W){return i===m?!0:i==null||m==null||!an(i)&&!an(m)?i!==i&&m!==m:TR(i,m,$,D,Ta,W)}function TR(i,m,$,D,W,U){var Q=tt(i),ee=tt(m),ie=Q?J:Gn(i),fe=ee?J:Gn(m);ie=ie==re?Nt:ie,fe=fe==re?Nt:fe;var pe=ie==Nt,ye=fe==Nt,Ie=ie==fe;if(Ie&&Qi(i)){if(!Qi(m))return!1;Q=!0,pe=!1}if(Ie&&!pe)return U||(U=new jr),Q||xs(i)?qv(i,m,$,D,W,U):tM(i,m,ie,$,D,W,U);if(!($&o)){var Fe=pe&&Mt.call(i,"__wrapped__"),qe=ye&&Mt.call(m,"__wrapped__");if(Fe||qe){var ct=Fe?i.value():i,Ge=qe?m.value():m;return U||(U=new jr),W(ct,Ge,$,D,U)}}return Ie?(U||(U=new jr),nM(i,m,$,D,W,U)):!1}function IR(i){return an(i)&&Gn(i)==gt}function _d(i,m,$,D){var W=$.length,U=W,Q=!D;if(i==null)return!U;for(i=et(i);W--;){var ee=$[W];if(Q&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++W<U;){ee=$[W];var ie=ee[0],fe=i[ie],pe=ee[1];if(Q&&ee[2]){if(fe===t&&!(ie in i))return!1}else{var ye=new jr;if(D)var Ie=D(fe,pe,ie,i,m,ye);if(!(Ie===t?Ta(pe,fe,o|f,D,ye):Ie))return!1}}return!0}function gv(i){if(!tn(i)||hM(i))return!1;var m=Ci(i)?IE:kn;return m.test(Lo(i))}function ER(i){return an(i)&&Zn(i)==_n}function RR(i){return an(i)&&Gn(i)==rn}function MR(i){return an(i)&&Nc(i.length)&&!!Lt[Zn(i)]}function pv(i){return typeof i=="function"?i:i==null?ur:typeof i=="object"?tt(i)?vv(i[0],i[1]):yv(i):Fw(i)}function kd(i){if(!Ra(i))return DE(i);var m=[];for(var $ in et(i))Mt.call(i,$)&&$!="constructor"&&m.push($);return m}function LR(i){if(!tn(i))return pM(i);var m=Ra(i),$=[];for(var D in i)D=="constructor"&&(m||!Mt.call(i,D))||$.push(D);return $}function Sd(i,m){return i<m}function mv(i,m){var $=-1,D=lr(i)?se(i.length):[];return qi(i,function(W,U,Q){D[++$]=m(W,U,Q)}),D}function yv(i){var m=jd(i);return m.length==1&&m[0][2]?Zv(m[0][0],m[0][1]):function($){return $===i||_d($,i,m)}}function vv(i,m){return zd(i)&&Qv(m)?Zv(ai(i),m):function($){var D=Xd($,i);return D===t&&D===m?ef($,i):Ta(m,D,o|f)}}function bc(i,m,$,D,W){i!==m&&bd(m,function(U,Q){if(W||(W=new jr),tn(U))OR(i,m,Q,$,bc,D,W);else{var ee=D?D(Vd(i,Q),U,Q+"",i,m,W):t;ee===t&&(ee=U),vd(i,Q,ee)}},cr)}function OR(i,m,$,D,W,U,Q){var ee=Vd(i,$),ie=Vd(m,$),fe=Q.get(ie);if(fe){vd(i,$,fe);return}var pe=U?U(ee,ie,$+"",i,m,Q):t,ye=pe===t;if(ye){var Ie=tt(ie),Fe=!Ie&&Qi(ie),qe=!Ie&&!Fe&&xs(ie);pe=ie,Ie||Fe||qe?tt(ee)?pe=ee:fn(ee)?pe=ar(ee):Fe?(ye=!1,pe=Ev(ie,!0)):qe?(ye=!1,pe=Rv(ie,!0)):pe=[]:La(ie)||Oo(ie)?(pe=ee,Oo(ee)?pe=$w(ee):(!tn(ee)||Ci(ee))&&(pe=Kv(ie))):ye=!1}ye&&(Q.set(ie,pe),W(pe,ie,D,U,Q),Q.delete(ie)),vd(i,$,pe)}function wv(i,m){var $=i.length;if($)return m+=m<0?$:0,Ai(m,$)?i[m]:t}function bv(i,m,$){m.length?m=zt(m,function(U){return tt(U)?function(Q){return Ro(Q,U.length===1?U[0]:U)}:U}):m=[ur];var D=-1;m=zt(m,Vn(Ue()));var W=mv(i,function(U,Q,ee){var ie=zt(m,function(fe){return fe(U)});return{criteria:ie,index:++D,value:U}});return zi(W,function(U,Q){return GR(U,Q,$)})}function DR(i,m){return xv(i,m,function($,D){return ef(i,D)})}function xv(i,m,$){for(var D=-1,W=m.length,U={};++D<W;){var Q=m[D],ee=Ro(i,Q);$(ee,Q)&&Ia(U,Yi(Q,i),ee)}return U}function NR(i){return function(m){return Ro(m,i)}}function $d(i,m,$,D){var W=D?ec:mi,U=-1,Q=m.length,ee=i;for(i===m&&(m=ar(m)),$&&(ee=zt(i,Vn($)));++U<Q;)for(var ie=0,fe=m[U],pe=$?$(fe):fe;(ie=W(ee,pe,ie,D))>-1;)ee!==i&&uc.call(ee,ie,1),uc.call(i,ie,1);return i}function Av(i,m){for(var $=i?m.length:0,D=$-1;$--;){var W=m[$];if($==D||W!==U){var U=W;Ai(W)?uc.call(i,W,1):Rd(i,W)}}return i}function Td(i,m){return i+fc(nv()*(m-i+1))}function FR(i,m,$,D){for(var W=-1,U=En(dc((m-i)/($||1)),0),Q=se(U);U--;)Q[D?U:++W]=i,i+=$;return Q}function Id(i,m){var $="";if(!i||m<1||m>H)return $;do m%2&&($+=i),m=fc(m/2),m&&(i+=i);while(m);return $}function dt(i,m){return qd(Jv(i,m,ur),i+"")}function PR(i){return ov(As(i))}function HR(i,m){var $=As(i);return Ec($,Eo(m,0,$.length))}function Ia(i,m,$,D){if(!tn(i))return i;m=Yi(m,i);for(var W=-1,U=m.length,Q=U-1,ee=i;ee!=null&&++W<U;){var ie=ai(m[W]),fe=$;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return i;if(W!=Q){var pe=ee[ie];fe=D?D(pe,ie,ee):t,fe===t&&(fe=tn(pe)?pe:Ai(m[W+1])?[]:{})}ka(ee,ie,fe),ee=ee[ie]}return i}var Cv=gc?function(i,m){return gc.set(i,m),i}:ur,WR=hc?function(i,m){return hc(i,"toString",{configurable:!0,enumerable:!1,value:nf(m),writable:!0})}:ur;function jR(i){return Ec(As(i))}function Er(i,m,$){var D=-1,W=i.length;m<0&&(m=-m>W?0:W+m),$=$>W?W:$,$<0&&($+=W),W=m>$?0:$-m>>>0,m>>>=0;for(var U=se(W);++D<W;)U[D]=i[D+m];return U}function BR(i,m){var $;return qi(i,function(D,W,U){return $=m(D,W,U),!$}),!!$}function xc(i,m,$){var D=0,W=i==null?D:i.length;if(typeof m=="number"&&m===m&&W<=G){for(;D<W;){var U=D+W>>>1,Q=i[U];Q!==null&&!vr(Q)&&($?Q<=m:Q<m)?D=U+1:W=U}return W}return Ed(i,m,ur,$)}function Ed(i,m,$,D){var W=0,U=i==null?0:i.length;if(U===0)return 0;m=$(m);for(var Q=m!==m,ee=m===null,ie=vr(m),fe=m===t;W<U;){var pe=fc((W+U)/2),ye=$(i[pe]),Ie=ye!==t,Fe=ye===null,qe=ye===ye,ct=vr(ye);if(Q)var Ge=D||qe;else fe?Ge=qe&&(D||Ie):ee?Ge=qe&&Ie&&(D||!Fe):ie?Ge=qe&&Ie&&!Fe&&(D||!ct):Fe||ct?Ge=!1:Ge=D?ye<=m:ye<m;Ge?W=pe+1:U=pe}return qn(U,X)}function _v(i,m){for(var $=-1,D=i.length,W=0,U=[];++$<D;){var Q=i[$],ee=m?m(Q):Q;if(!$||!Br(ee,ie)){var ie=ee;U[W++]=Q===0?0:Q}}return U}function kv(i){return typeof i=="number"?i:vr(i)?V:+i}function yr(i){if(typeof i=="string")return i;if(tt(i))return zt(i,yr)+"";if(vr(i))return rv?rv.call(i):"";var m=i+"";return m=="0"&&1/i==-1/0?"-0":m}function Gi(i,m,$){var D=-1,W=us,U=i.length,Q=!0,ee=[],ie=ee;if($)Q=!1,W=Co;else if(U>=d){var fe=m?null:XR(i);if(fe)return Te(fe);Q=!1,W=Wr,ie=new Io}else ie=m?[]:ee;e:for(;++D<U;){var pe=i[D],ye=m?m(pe):pe;if(pe=$||pe!==0?pe:0,Q&&ye===ye){for(var Ie=ie.length;Ie--;)if(ie[Ie]===ye)continue e;m&&ie.push(ye),ee.push(pe)}else W(ie,ye,$)||(ie!==ee&&ie.push(ye),ee.push(pe))}return ee}function Rd(i,m){return m=Yi(m,i),i=Xv(i,m),i==null||delete i[ai(Rr(m))]}function Sv(i,m,$,D){return Ia(i,m,$(Ro(i,m)),D)}function Ac(i,m,$,D){for(var W=i.length,U=D?W:-1;(D?U--:++U<W)&&m(i[U],U,i););return $?Er(i,D?0:U,D?U+1:W):Er(i,D?U+1:0,D?W:U)}function $v(i,m){var $=i;return $ instanceof bt&&($=$.value()),$r(m,function(D,W){return W.func.apply(W.thisArg,Un([D],W.args))},$)}function Md(i,m,$){var D=i.length;if(D<2)return D?Gi(i[0]):[];for(var W=-1,U=se(D);++W<D;)for(var Q=i[W],ee=-1;++ee<D;)ee!=W&&(U[W]=Sa(U[W]||Q,i[ee],m,$));return Gi(Nn(U,1),m,$)}function Tv(i,m,$){for(var D=-1,W=i.length,U=m.length,Q={};++D<W;){var ee=D<U?m[D]:t;$(Q,i[D],ee)}return Q}function Ld(i){return fn(i)?i:[]}function Od(i){return typeof i=="function"?i:ur}function Yi(i,m){return tt(i)?i:zd(i,m)?[i]:rw(It(i))}var zR=dt;function Ki(i,m,$){var D=i.length;return $=$===t?D:$,!m&&$>=D?i:Er(i,m,$)}var Iv=EE||function(i){return $n.clearTimeout(i)};function Ev(i,m){if(m)return i.slice();var $=i.length,D=Z0?Z0($):new i.constructor($);return i.copy(D),D}function Dd(i){var m=new i.constructor(i.byteLength);return new lc(m).set(new lc(i)),m}function UR(i,m){var $=m?Dd(i.buffer):i.buffer;return new i.constructor($,i.byteOffset,i.byteLength)}function VR(i){var m=new i.constructor(i.source,Oi.exec(i));return m.lastIndex=i.lastIndex,m}function qR(i){return _a?et(_a.call(i)):{}}function Rv(i,m){var $=m?Dd(i.buffer):i.buffer;return new i.constructor($,i.byteOffset,i.length)}function Mv(i,m){if(i!==m){var $=i!==t,D=i===null,W=i===i,U=vr(i),Q=m!==t,ee=m===null,ie=m===m,fe=vr(m);if(!ee&&!fe&&!U&&i>m||U&&Q&&ie&&!ee&&!fe||D&&Q&&ie||!$&&ie||!W)return 1;if(!D&&!U&&!fe&&i<m||fe&&$&&W&&!D&&!U||ee&&$&&W||!Q&&W||!ie)return-1}return 0}function GR(i,m,$){for(var D=-1,W=i.criteria,U=m.criteria,Q=W.length,ee=$.length;++D<Q;){var ie=Mv(W[D],U[D]);if(ie){if(D>=ee)return ie;var fe=$[D];return ie*(fe=="desc"?-1:1)}}return i.index-m.index}function Lv(i,m,$,D){for(var W=-1,U=i.length,Q=$.length,ee=-1,ie=m.length,fe=En(U-Q,0),pe=se(ie+fe),ye=!D;++ee<ie;)pe[ee]=m[ee];for(;++W<Q;)(ye||W<U)&&(pe[$[W]]=i[W]);for(;fe--;)pe[ee++]=i[W++];return pe}function Ov(i,m,$,D){for(var W=-1,U=i.length,Q=-1,ee=$.length,ie=-1,fe=m.length,pe=En(U-ee,0),ye=se(pe+fe),Ie=!D;++W<pe;)ye[W]=i[W];for(var Fe=W;++ie<fe;)ye[Fe+ie]=m[ie];for(;++Q<ee;)(Ie||W<U)&&(ye[Fe+$[Q]]=i[W++]);return ye}function ar(i,m){var $=-1,D=i.length;for(m||(m=se(D));++$<D;)m[$]=i[$];return m}function si(i,m,$,D){var W=!$;$||($={});for(var U=-1,Q=m.length;++U<Q;){var ee=m[U],ie=D?D($[ee],i[ee],ee,$,i):t;ie===t&&(ie=i[ee]),W?wi($,ee,ie):ka($,ee,ie)}return $}function YR(i,m){return si(i,Bd(i),m)}function KR(i,m){return si(i,Gv(i),m)}function Cc(i,m){return function($,D){var W=tt($)?gd:yR,U=m?m():{};return W($,i,Ue(D,2),U)}}function vs(i){return dt(function(m,$){var D=-1,W=$.length,U=W>1?$[W-1]:t,Q=W>2?$[2]:t;for(U=i.length>3&&typeof U=="function"?(W--,U):t,Q&&Jn($[0],$[1],Q)&&(U=W<3?t:U,W=1),m=et(m);++D<W;){var ee=$[D];ee&&i(m,ee,D,U)}return m})}function Dv(i,m){return function($,D){if($==null)return $;if(!lr($))return i($,D);for(var W=$.length,U=m?W:-1,Q=et($);(m?U--:++U<W)&&D(Q[U],U,Q)!==!1;);return $}}function Nv(i){return function(m,$,D){for(var W=-1,U=et(m),Q=D(m),ee=Q.length;ee--;){var ie=Q[i?ee:++W];if($(U[ie],ie,U)===!1)break}return m}}function QR(i,m,$){var D=m&y,W=Ea(i);function U(){var Q=this&&this!==$n&&this instanceof U?W:i;return Q.apply(D?$:this,arguments)}return U}function Fv(i){return function(m){m=It(m);var $=te(m)?Ke(m):t,D=$?$[0]:m.charAt(0),W=$?Ki($,1).join(""):m.slice(1);return D[i]()+W}}function ws(i){return function(m){return $r(Dw(Ow(m).replace(ua,"")),i,"")}}function Ea(i){return function(){var m=arguments;switch(m.length){case 0:return new i;case 1:return new i(m[0]);case 2:return new i(m[0],m[1]);case 3:return new i(m[0],m[1],m[2]);case 4:return new i(m[0],m[1],m[2],m[3]);case 5:return new i(m[0],m[1],m[2],m[3],m[4]);case 6:return new i(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new i(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var $=ys(i.prototype),D=i.apply($,m);return tn(D)?D:$}}function ZR(i,m,$){var D=Ea(i);function W(){for(var U=arguments.length,Q=se(U),ee=U,ie=bs(W);ee--;)Q[ee]=arguments[ee];var fe=U<3&&Q[0]!==ie&&Q[U-1]!==ie?[]:ke(Q,ie);if(U-=fe.length,U<$)return Bv(i,m,_c,W.placeholder,t,Q,fe,t,t,$-U);var pe=this&&this!==$n&&this instanceof W?D:i;return Yt(pe,this,Q)}return W}function Pv(i){return function(m,$,D){var W=et(m);if(!lr(m)){var U=Ue($,3);m=Dn(m),$=function(ee){return U(W[ee],ee,W)}}var Q=i(m,$,D);return Q>-1?W[U?m[Q]:Q]:t}}function Hv(i){return xi(function(m){var $=m.length,D=$,W=Tr.prototype.thru;for(i&&m.reverse();D--;){var U=m[D];if(typeof U!="function")throw new In(g);if(W&&!Q&&Tc(U)=="wrapper")var Q=new Tr([],!0)}for(D=Q?D:$;++D<$;){U=m[D];var ee=Tc(U),ie=ee=="wrapper"?Wd(U):t;ie&&Ud(ie[0])&&ie[1]==(T|E|C|R)&&!ie[4].length&&ie[9]==1?Q=Q[Tc(ie[0])].apply(Q,ie[3]):Q=U.length==1&&Ud(U)?Q[ee]():Q.thru(U)}return function(){var fe=arguments,pe=fe[0];if(Q&&fe.length==1&&tt(pe))return Q.plant(pe).value();for(var ye=0,Ie=$?m[ye].apply(this,fe):pe;++ye<$;)Ie=m[ye].call(this,Ie);return Ie}})}function _c(i,m,$,D,W,U,Q,ee,ie,fe){var pe=m&T,ye=m&y,Ie=m&w,Fe=m&(E|S),qe=m&L,ct=Ie?t:Ea(i);function Ge(){for(var vt=arguments.length,xt=se(vt),wr=vt;wr--;)xt[wr]=arguments[wr];if(Fe)var Xn=bs(Ge),br=wa(xt,Xn);if(D&&(xt=Lv(xt,D,W,Fe)),U&&(xt=Ov(xt,U,Q,Fe)),vt-=br,Fe&&vt<fe){var gn=ke(xt,Xn);return Bv(i,m,_c,Ge.placeholder,$,xt,gn,ee,ie,fe-vt)}var zr=ye?$:this,ki=Ie?zr[i]:i;return vt=xt.length,ee?xt=yM(xt,ee):qe&&vt>1&&xt.reverse(),pe&&ie<vt&&(xt.length=ie),this&&this!==$n&&this instanceof Ge&&(ki=ct||Ea(ki)),ki.apply(zr,xt)}return Ge}function Wv(i,m){return function($,D){return kR($,i,m(D),{})}}function kc(i,m){return function($,D){var W;if($===t&&D===t)return m;if($!==t&&(W=$),D!==t){if(W===t)return D;typeof $=="string"||typeof D=="string"?($=yr($),D=yr(D)):($=kv($),D=kv(D)),W=i($,D)}return W}}function Nd(i){return xi(function(m){return m=zt(m,Vn(Ue())),dt(function($){var D=this;return i(m,function(W){return Yt(W,D,$)})})})}function Sc(i,m){m=m===t?" ":yr(m);var $=m.length;if($<2)return $?Id(m,i):m;var D=Id(m,dc(i/st(m)));return te(m)?Ki(Ke(D),0,i).join(""):D.slice(0,i)}function JR(i,m,$,D){var W=m&y,U=Ea(i);function Q(){for(var ee=-1,ie=arguments.length,fe=-1,pe=D.length,ye=se(pe+ie),Ie=this&&this!==$n&&this instanceof Q?U:i;++fe<pe;)ye[fe]=D[fe];for(;ie--;)ye[fe++]=arguments[++ee];return Yt(Ie,W?$:this,ye)}return Q}function jv(i){return function(m,$,D){return D&&typeof D!="number"&&Jn(m,$,D)&&($=D=t),m=_i(m),$===t?($=m,m=0):$=_i($),D=D===t?m<$?1:-1:_i(D),FR(m,$,D,i)}}function $c(i){return function(m,$){return typeof m=="string"&&typeof $=="string"||(m=Mr(m),$=Mr($)),i(m,$)}}function Bv(i,m,$,D,W,U,Q,ee,ie,fe){var pe=m&E,ye=pe?Q:t,Ie=pe?t:Q,Fe=pe?U:t,qe=pe?t:U;m|=pe?C:b,m&=~(pe?b:C),m&x||(m&=-4);var ct=[i,m,W,Fe,ye,qe,Ie,ee,ie,fe],Ge=$.apply(t,ct);return Ud(i)&&ew(Ge,ct),Ge.placeholder=D,tw(Ge,i,m)}function Fd(i){var m=Tt[i];return function($,D){if($=Mr($),D=D==null?0:qn(at(D),292),D&&tv($)){var W=(It($)+"e").split("e"),U=m(W[0]+"e"+(+W[1]+D));return W=(It(U)+"e").split("e"),+(W[0]+"e"+(+W[1]-D))}return m($)}}var XR=ps&&1/Te(new ps([,-0]))[1]==F?function(i){return new ps(i)}:sf;function zv(i){return function(m){var $=Gn(m);return $==gt?we(m):$==rn?Re(m):tc(m,i(m))}}function bi(i,m,$,D,W,U,Q,ee){var ie=m&w;if(!ie&&typeof i!="function")throw new In(g);var fe=D?D.length:0;if(fe||(m&=-97,D=W=t),Q=Q===t?Q:En(at(Q),0),ee=ee===t?ee:at(ee),fe-=W?W.length:0,m&b){var pe=D,ye=W;D=W=t}var Ie=ie?t:Wd(i),Fe=[i,m,$,D,W,pe,ye,U,Q,ee];if(Ie&&gM(Fe,Ie),i=Fe[0],m=Fe[1],$=Fe[2],D=Fe[3],W=Fe[4],ee=Fe[9]=Fe[9]===t?ie?0:i.length:En(Fe[9]-fe,0),!ee&&m&(E|S)&&(m&=-25),!m||m==y)var qe=QR(i,m,$);else m==E||m==S?qe=ZR(i,m,ee):(m==C||m==(y|C))&&!W.length?qe=JR(i,m,$,D):qe=_c.apply(t,Fe);var ct=Ie?Cv:ew;return tw(ct(qe,Fe),i,m)}function Uv(i,m,$,D){return i===t||Br(i,gs[$])&&!Mt.call(D,$)?m:i}function Vv(i,m,$,D,W,U){return tn(i)&&tn(m)&&(U.set(m,i),bc(i,m,t,Vv,U),U.delete(m)),i}function eM(i){return La(i)?t:i}function qv(i,m,$,D,W,U){var Q=$&o,ee=i.length,ie=m.length;if(ee!=ie&&!(Q&&ie>ee))return!1;var fe=U.get(i),pe=U.get(m);if(fe&&pe)return fe==m&&pe==i;var ye=-1,Ie=!0,Fe=$&f?new Io:t;for(U.set(i,m),U.set(m,i);++ye<ee;){var qe=i[ye],ct=m[ye];if(D)var Ge=Q?D(ct,qe,ye,m,i,U):D(qe,ct,ye,i,m,U);if(Ge!==t){if(Ge)continue;Ie=!1;break}if(Fe){if(!hs(m,function(vt,xt){if(!Wr(Fe,xt)&&(qe===vt||W(qe,vt,$,D,U)))return Fe.push(xt)})){Ie=!1;break}}else if(!(qe===ct||W(qe,ct,$,D,U))){Ie=!1;break}}return U.delete(i),U.delete(m),Ie}function tM(i,m,$,D,W,U,Q){switch($){case De:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case Ee:return!(i.byteLength!=m.byteLength||!U(new lc(i),new lc(m)));case me:case ve:case yt:return Br(+i,+m);case Se:return i.name==m.name&&i.message==m.message;case _n:case We:return i==m+"";case gt:var ee=we;case rn:var ie=D&o;if(ee||(ee=Te),i.size!=m.size&&!ie)return!1;var fe=Q.get(i);if(fe)return fe==m;D|=f,Q.set(i,m);var pe=qv(ee(i),ee(m),D,W,U,Q);return Q.delete(i),pe;case ze:if(_a)return _a.call(i)==_a.call(m)}return!1}function nM(i,m,$,D,W,U){var Q=$&o,ee=Pd(i),ie=ee.length,fe=Pd(m),pe=fe.length;if(ie!=pe&&!Q)return!1;for(var ye=ie;ye--;){var Ie=ee[ye];if(!(Q?Ie in m:Mt.call(m,Ie)))return!1}var Fe=U.get(i),qe=U.get(m);if(Fe&&qe)return Fe==m&&qe==i;var ct=!0;U.set(i,m),U.set(m,i);for(var Ge=Q;++ye<ie;){Ie=ee[ye];var vt=i[Ie],xt=m[Ie];if(D)var wr=Q?D(xt,vt,Ie,m,i,U):D(vt,xt,Ie,i,m,U);if(!(wr===t?vt===xt||W(vt,xt,$,D,U):wr)){ct=!1;break}Ge||(Ge=Ie=="constructor")}if(ct&&!Ge){var Xn=i.constructor,br=m.constructor;Xn!=br&&"constructor"in i&&"constructor"in m&&!(typeof Xn=="function"&&Xn instanceof Xn&&typeof br=="function"&&br instanceof br)&&(ct=!1)}return U.delete(i),U.delete(m),ct}function xi(i){return qd(Jv(i,t,aw),i+"")}function Pd(i){return dv(i,Dn,Bd)}function Hd(i){return dv(i,cr,Gv)}var Wd=gc?function(i){return gc.get(i)}:sf;function Tc(i){for(var m=i.name+"",$=ms[m],D=Mt.call(ms,m)?$.length:0;D--;){var W=$[D],U=W.func;if(U==null||U==i)return W.name}return m}function bs(i){var m=Mt.call(B,"placeholder")?B:i;return m.placeholder}function Ue(){var i=B.iteratee||rf;return i=i===rf?pv:i,arguments.length?i(arguments[0],arguments[1]):i}function Ic(i,m){var $=i.__data__;return uM(m)?$[typeof m=="string"?"string":"hash"]:$.map}function jd(i){for(var m=Dn(i),$=m.length;$--;){var D=m[$],W=i[D];m[$]=[D,W,Qv(W)]}return m}function Mo(i,m){var $=K(i,m);return gv($)?$:t}function rM(i){var m=Mt.call(i,$o),$=i[$o];try{i[$o]=t;var D=!0}catch{}var W=sc.call(i);return D&&(m?i[$o]=$:delete i[$o]),W}var Bd=pd?function(i){return i==null?[]:(i=et(i),or(pd(i),function(m){return X0.call(i,m)}))}:af,Gv=pd?function(i){for(var m=[];i;)Un(m,Bd(i)),i=cc(i);return m}:af,Gn=Zn;(md&&Gn(new md(new ArrayBuffer(1)))!=De||xa&&Gn(new xa)!=gt||yd&&Gn(yd.resolve())!=Jt||ps&&Gn(new ps)!=rn||Aa&&Gn(new Aa)!=Ve)&&(Gn=function(i){var m=Zn(i),$=m==Nt?i.constructor:t,D=$?Lo($):"";if(D)switch(D){case HE:return De;case WE:return gt;case jE:return Jt;case BE:return rn;case zE:return Ve}return m});function iM(i,m,$){for(var D=-1,W=$.length;++D<W;){var U=$[D],Q=U.size;switch(U.type){case"drop":i+=Q;break;case"dropRight":m-=Q;break;case"take":m=qn(m,i+Q);break;case"takeRight":i=En(i,m-Q);break}}return{start:i,end:m}}function oM(i){var m=i.match(Fl);return m?m[1].split(Pl):[]}function Yv(i,m,$){m=Yi(m,i);for(var D=-1,W=m.length,U=!1;++D<W;){var Q=ai(m[D]);if(!(U=i!=null&&$(i,Q)))break;i=i[Q]}return U||++D!=W?U:(W=i==null?0:i.length,!!W&&Nc(W)&&Ai(Q,W)&&(tt(i)||Oo(i)))}function sM(i){var m=i.length,$=new i.constructor(m);return m&&typeof i[0]=="string"&&Mt.call(i,"index")&&($.index=i.index,$.input=i.input),$}function Kv(i){return typeof i.constructor=="function"&&!Ra(i)?ys(cc(i)):{}}function aM(i,m,$){var D=i.constructor;switch(m){case Ee:return Dd(i);case me:case ve:return new D(+i);case De:return UR(i,$);case Ye:case Qe:case pt:case mt:case ut:case ht:case ot:case Vt:case jn:return Rv(i,$);case gt:return new D;case yt:case We:return new D(i);case _n:return VR(i);case rn:return new D;case ze:return qR(i)}}function lM(i,m){var $=m.length;if(!$)return i;var D=$-1;return m[D]=($>1?"& ":"")+m[D],m=m.join($>2?", ":" "),i.replace(Li,`{
|
1389
|
-
/* [wrapped with `+m+`] */
|
1390
|
-
`)}function cM(i){return tt(i)||Oo(i)||!!(ev&&i&&i[ev])}function Ai(i,m){var $=typeof i;return m=m??H,!!m&&($=="number"||$!="symbol"&&vn.test(i))&&i>-1&&i%1==0&&i<m}function Jn(i,m,$){if(!tn($))return!1;var D=typeof m;return(D=="number"?lr($)&&Ai(m,$.length):D=="string"&&m in $)?Br($[m],i):!1}function zd(i,m){if(tt(i))return!1;var $=typeof i;return $=="number"||$=="symbol"||$=="boolean"||i==null||vr(i)?!0:Ln.test(i)||!hi.test(i)||m!=null&&i in et(m)}function uM(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}function Ud(i){var m=Tc(i),$=B[m];if(typeof $!="function"||!(m in bt.prototype))return!1;if(i===$)return!0;var D=Wd($);return!!D&&i===D[0]}function hM(i){return!!Q0&&Q0 in i}var dM=ic?Ci:lf;function Ra(i){var m=i&&i.constructor,$=typeof m=="function"&&m.prototype||gs;return i===$}function Qv(i){return i===i&&!tn(i)}function Zv(i,m){return function($){return $==null?!1:$[i]===m&&(m!==t||i in et($))}}function fM(i){var m=Oc(i,function(D){return $.size===p&&$.clear(),D}),$=m.cache;return m}function gM(i,m){var $=i[1],D=m[1],W=$|D,U=W<(y|w|T),Q=D==T&&$==E||D==T&&$==R&&i[7].length<=m[8]||D==(T|R)&&m[7].length<=m[8]&&$==E;if(!(U||Q))return i;D&y&&(i[2]=m[2],W|=$&y?0:x);var ee=m[3];if(ee){var ie=i[3];i[3]=ie?Lv(ie,ee,m[4]):ee,i[4]=ie?ke(i[3],s):m[4]}return ee=m[5],ee&&(ie=i[5],i[5]=ie?Ov(ie,ee,m[6]):ee,i[6]=ie?ke(i[5],s):m[6]),ee=m[7],ee&&(i[7]=ee),D&T&&(i[8]=i[8]==null?m[8]:qn(i[8],m[8])),i[9]==null&&(i[9]=m[9]),i[0]=m[0],i[1]=W,i}function pM(i){var m=[];if(i!=null)for(var $ in et(i))m.push($);return m}function mM(i){return sc.call(i)}function Jv(i,m,$){return m=En(m===t?i.length-1:m,0),function(){for(var D=arguments,W=-1,U=En(D.length-m,0),Q=se(U);++W<U;)Q[W]=D[m+W];W=-1;for(var ee=se(m+1);++W<m;)ee[W]=D[W];return ee[m]=$(Q),Yt(i,this,ee)}}function Xv(i,m){return m.length<2?i:Ro(i,Er(m,0,-1))}function yM(i,m){for(var $=i.length,D=qn(m.length,$),W=ar(i);D--;){var U=m[D];i[D]=Ai(U,$)?W[U]:t}return i}function Vd(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var ew=nw(Cv),Ma=ME||function(i,m){return $n.setTimeout(i,m)},qd=nw(WR);function tw(i,m,$){var D=m+"";return qd(i,lM(D,vM(oM(D),$)))}function nw(i){var m=0,$=0;return function(){var D=NE(),W=A-(D-$);if($=D,W>0){if(++m>=k)return arguments[0]}else m=0;return i.apply(t,arguments)}}function Ec(i,m){var $=-1,D=i.length,W=D-1;for(m=m===t?D:m;++$<m;){var U=Td($,W),Q=i[U];i[U]=i[$],i[$]=Q}return i.length=m,i}var rw=fM(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(Jr,function($,D,W,U){m.push(W?U.replace(di,"$1"):D||$)}),m});function ai(i){if(typeof i=="string"||vr(i))return i;var m=i+"";return m=="0"&&1/i==-1/0?"-0":m}function Lo(i){if(i!=null){try{return oc.call(i)}catch{}try{return i+""}catch{}}return""}function vM(i,m){return Kn(Z,function($){var D="_."+$[0];m&$[1]&&!us(i,D)&&i.push(D)}),i.sort()}function iw(i){if(i instanceof bt)return i.clone();var m=new Tr(i.__wrapped__,i.__chain__);return m.__actions__=ar(i.__actions__),m.__index__=i.__index__,m.__values__=i.__values__,m}function wM(i,m,$){($?Jn(i,m,$):m===t)?m=1:m=En(at(m),0);var D=i==null?0:i.length;if(!D||m<1)return[];for(var W=0,U=0,Q=se(dc(D/m));W<D;)Q[U++]=Er(i,W,W+=m);return Q}function bM(i){for(var m=-1,$=i==null?0:i.length,D=0,W=[];++m<$;){var U=i[m];U&&(W[D++]=U)}return W}function xM(){var i=arguments.length;if(!i)return[];for(var m=se(i-1),$=arguments[0],D=i;D--;)m[D-1]=arguments[D];return Un(tt($)?ar($):[$],Nn(m,1))}var AM=dt(function(i,m){return fn(i)?Sa(i,Nn(m,1,fn,!0)):[]}),CM=dt(function(i,m){var $=Rr(m);return fn($)&&($=t),fn(i)?Sa(i,Nn(m,1,fn,!0),Ue($,2)):[]}),_M=dt(function(i,m){var $=Rr(m);return fn($)&&($=t),fn(i)?Sa(i,Nn(m,1,fn,!0),t,$):[]});function kM(i,m,$){var D=i==null?0:i.length;return D?(m=$||m===t?1:at(m),Er(i,m<0?0:m,D)):[]}function SM(i,m,$){var D=i==null?0:i.length;return D?(m=$||m===t?1:at(m),m=D-m,Er(i,0,m<0?0:m)):[]}function $M(i,m){return i&&i.length?Ac(i,Ue(m,3),!0,!0):[]}function TM(i,m){return i&&i.length?Ac(i,Ue(m,3),!0):[]}function IM(i,m,$,D){var W=i==null?0:i.length;return W?($&&typeof $!="number"&&Jn(i,m,$)&&($=0,D=W),xR(i,m,$,D)):[]}function ow(i,m,$){var D=i==null?0:i.length;if(!D)return-1;var W=$==null?0:at($);return W<0&&(W=En(D+W,0)),ko(i,Ue(m,3),W)}function sw(i,m,$){var D=i==null?0:i.length;if(!D)return-1;var W=D-1;return $!==t&&(W=at($),W=$<0?En(D+W,0):qn(W,D-1)),ko(i,Ue(m,3),W,!0)}function aw(i){var m=i==null?0:i.length;return m?Nn(i,1):[]}function EM(i){var m=i==null?0:i.length;return m?Nn(i,F):[]}function RM(i,m){var $=i==null?0:i.length;return $?(m=m===t?1:at(m),Nn(i,m)):[]}function MM(i){for(var m=-1,$=i==null?0:i.length,D={};++m<$;){var W=i[m];D[W[0]]=W[1]}return D}function lw(i){return i&&i.length?i[0]:t}function LM(i,m,$){var D=i==null?0:i.length;if(!D)return-1;var W=$==null?0:at($);return W<0&&(W=En(D+W,0)),mi(i,m,W)}function OM(i){var m=i==null?0:i.length;return m?Er(i,0,-1):[]}var DM=dt(function(i){var m=zt(i,Ld);return m.length&&m[0]===i[0]?Cd(m):[]}),NM=dt(function(i){var m=Rr(i),$=zt(i,Ld);return m===Rr($)?m=t:$.pop(),$.length&&$[0]===i[0]?Cd($,Ue(m,2)):[]}),FM=dt(function(i){var m=Rr(i),$=zt(i,Ld);return m=typeof m=="function"?m:t,m&&$.pop(),$.length&&$[0]===i[0]?Cd($,t,m):[]});function PM(i,m){return i==null?"":OE.call(i,m)}function Rr(i){var m=i==null?0:i.length;return m?i[m-1]:t}function HM(i,m,$){var D=i==null?0:i.length;if(!D)return-1;var W=D;return $!==t&&(W=at($),W=W<0?En(D+W,0):qn(W,D-1)),m===m?Rt(i,m,W):ko(i,pa,W,!0)}function WM(i,m){return i&&i.length?wv(i,at(m)):t}var jM=dt(cw);function cw(i,m){return i&&i.length&&m&&m.length?$d(i,m):i}function BM(i,m,$){return i&&i.length&&m&&m.length?$d(i,m,Ue($,2)):i}function zM(i,m,$){return i&&i.length&&m&&m.length?$d(i,m,t,$):i}var UM=xi(function(i,m){var $=i==null?0:i.length,D=wd(i,m);return Av(i,zt(m,function(W){return Ai(W,$)?+W:W}).sort(Mv)),D});function VM(i,m){var $=[];if(!(i&&i.length))return $;var D=-1,W=[],U=i.length;for(m=Ue(m,3);++D<U;){var Q=i[D];m(Q,D,i)&&($.push(Q),W.push(D))}return Av(i,W),$}function Gd(i){return i==null?i:PE.call(i)}function qM(i,m,$){var D=i==null?0:i.length;return D?($&&typeof $!="number"&&Jn(i,m,$)?(m=0,$=D):(m=m==null?0:at(m),$=$===t?D:at($)),Er(i,m,$)):[]}function GM(i,m){return xc(i,m)}function YM(i,m,$){return Ed(i,m,Ue($,2))}function KM(i,m){var $=i==null?0:i.length;if($){var D=xc(i,m);if(D<$&&Br(i[D],m))return D}return-1}function QM(i,m){return xc(i,m,!0)}function ZM(i,m,$){return Ed(i,m,Ue($,2),!0)}function JM(i,m){var $=i==null?0:i.length;if($){var D=xc(i,m,!0)-1;if(Br(i[D],m))return D}return-1}function XM(i){return i&&i.length?_v(i):[]}function eL(i,m){return i&&i.length?_v(i,Ue(m,2)):[]}function tL(i){var m=i==null?0:i.length;return m?Er(i,1,m):[]}function nL(i,m,$){return i&&i.length?(m=$||m===t?1:at(m),Er(i,0,m<0?0:m)):[]}function rL(i,m,$){var D=i==null?0:i.length;return D?(m=$||m===t?1:at(m),m=D-m,Er(i,m<0?0:m,D)):[]}function iL(i,m){return i&&i.length?Ac(i,Ue(m,3),!1,!0):[]}function oL(i,m){return i&&i.length?Ac(i,Ue(m,3)):[]}var sL=dt(function(i){return Gi(Nn(i,1,fn,!0))}),aL=dt(function(i){var m=Rr(i);return fn(m)&&(m=t),Gi(Nn(i,1,fn,!0),Ue(m,2))}),lL=dt(function(i){var m=Rr(i);return m=typeof m=="function"?m:t,Gi(Nn(i,1,fn,!0),t,m)});function cL(i){return i&&i.length?Gi(i):[]}function uL(i,m){return i&&i.length?Gi(i,Ue(m,2)):[]}function hL(i,m){return m=typeof m=="function"?m:t,i&&i.length?Gi(i,t,m):[]}function Yd(i){if(!(i&&i.length))return[];var m=0;return i=or(i,function($){if(fn($))return m=En($.length,m),!0}),sn(m,function($){return zt(i,ya($))})}function uw(i,m){if(!(i&&i.length))return[];var $=Yd(i);return m==null?$:zt($,function(D){return Yt(m,t,D)})}var dL=dt(function(i,m){return fn(i)?Sa(i,m):[]}),fL=dt(function(i){return Md(or(i,fn))}),gL=dt(function(i){var m=Rr(i);return fn(m)&&(m=t),Md(or(i,fn),Ue(m,2))}),pL=dt(function(i){var m=Rr(i);return m=typeof m=="function"?m:t,Md(or(i,fn),t,m)}),mL=dt(Yd);function yL(i,m){return Tv(i||[],m||[],ka)}function vL(i,m){return Tv(i||[],m||[],Ia)}var wL=dt(function(i){var m=i.length,$=m>1?i[m-1]:t;return $=typeof $=="function"?(i.pop(),$):t,uw(i,$)});function hw(i){var m=B(i);return m.__chain__=!0,m}function bL(i,m){return m(i),i}function Rc(i,m){return m(i)}var xL=xi(function(i){var m=i.length,$=m?i[0]:0,D=this.__wrapped__,W=function(U){return wd(U,i)};return m>1||this.__actions__.length||!(D instanceof bt)||!Ai($)?this.thru(W):(D=D.slice($,+$+(m?1:0)),D.__actions__.push({func:Rc,args:[W],thisArg:t}),new Tr(D,this.__chain__).thru(function(U){return m&&!U.length&&U.push(t),U}))});function AL(){return hw(this)}function CL(){return new Tr(this.value(),this.__chain__)}function _L(){this.__values__===t&&(this.__values__=kw(this.value()));var i=this.__index__>=this.__values__.length,m=i?t:this.__values__[this.__index__++];return{done:i,value:m}}function kL(){return this}function SL(i){for(var m,$=this;$ instanceof mc;){var D=iw($);D.__index__=0,D.__values__=t,m?W.__wrapped__=D:m=D;var W=D;$=$.__wrapped__}return W.__wrapped__=i,m}function $L(){var i=this.__wrapped__;if(i instanceof bt){var m=i;return this.__actions__.length&&(m=new bt(this)),m=m.reverse(),m.__actions__.push({func:Rc,args:[Gd],thisArg:t}),new Tr(m,this.__chain__)}return this.thru(Gd)}function TL(){return $v(this.__wrapped__,this.__actions__)}var IL=Cc(function(i,m,$){Mt.call(i,$)?++i[$]:wi(i,$,1)});function EL(i,m,$){var D=tt(i)?Bi:bR;return $&&Jn(i,m,$)&&(m=t),D(i,Ue(m,3))}function RL(i,m){var $=tt(i)?or:uv;return $(i,Ue(m,3))}var ML=Pv(ow),LL=Pv(sw);function OL(i,m){return Nn(Mc(i,m),1)}function DL(i,m){return Nn(Mc(i,m),F)}function NL(i,m,$){return $=$===t?1:at($),Nn(Mc(i,m),$)}function dw(i,m){var $=tt(i)?Kn:qi;return $(i,Ue(m,3))}function fw(i,m){var $=tt(i)?Xl:cv;return $(i,Ue(m,3))}var FL=Cc(function(i,m,$){Mt.call(i,$)?i[$].push(m):wi(i,$,[m])});function PL(i,m,$,D){i=lr(i)?i:As(i),$=$&&!D?at($):0;var W=i.length;return $<0&&($=En(W+$,0)),Fc(i)?$<=W&&i.indexOf(m,$)>-1:!!W&&mi(i,m,$)>-1}var HL=dt(function(i,m,$){var D=-1,W=typeof m=="function",U=lr(i)?se(i.length):[];return qi(i,function(Q){U[++D]=W?Yt(m,Q,$):$a(Q,m,$)}),U}),WL=Cc(function(i,m,$){wi(i,$,m)});function Mc(i,m){var $=tt(i)?zt:mv;return $(i,Ue(m,3))}function jL(i,m,$,D){return i==null?[]:(tt(m)||(m=m==null?[]:[m]),$=D?t:$,tt($)||($=$==null?[]:[$]),bv(i,m,$))}var BL=Cc(function(i,m,$){i[$?0:1].push(m)},function(){return[[],[]]});function zL(i,m,$){var D=tt(i)?$r:va,W=arguments.length<3;return D(i,Ue(m,4),$,W,qi)}function UL(i,m,$){var D=tt(i)?_o:va,W=arguments.length<3;return D(i,Ue(m,4),$,W,cv)}function VL(i,m){var $=tt(i)?or:uv;return $(i,Dc(Ue(m,3)))}function qL(i){var m=tt(i)?ov:PR;return m(i)}function GL(i,m,$){($?Jn(i,m,$):m===t)?m=1:m=at(m);var D=tt(i)?pR:HR;return D(i,m)}function YL(i){var m=tt(i)?mR:jR;return m(i)}function KL(i){if(i==null)return 0;if(lr(i))return Fc(i)?st(i):i.length;var m=Gn(i);return m==gt||m==rn?i.size:kd(i).length}function QL(i,m,$){var D=tt(i)?hs:BR;return $&&Jn(i,m,$)&&(m=t),D(i,Ue(m,3))}var ZL=dt(function(i,m){if(i==null)return[];var $=m.length;return $>1&&Jn(i,m[0],m[1])?m=[]:$>2&&Jn(m[0],m[1],m[2])&&(m=[m[0]]),bv(i,Nn(m,1),[])}),Lc=RE||function(){return $n.Date.now()};function JL(i,m){if(typeof m!="function")throw new In(g);return i=at(i),function(){if(--i<1)return m.apply(this,arguments)}}function gw(i,m,$){return m=$?t:m,m=i&&m==null?i.length:m,bi(i,T,t,t,t,t,m)}function pw(i,m){var $;if(typeof m!="function")throw new In(g);return i=at(i),function(){return--i>0&&($=m.apply(this,arguments)),i<=1&&(m=t),$}}var Kd=dt(function(i,m,$){var D=y;if($.length){var W=ke($,bs(Kd));D|=C}return bi(i,D,m,$,W)}),mw=dt(function(i,m,$){var D=y|w;if($.length){var W=ke($,bs(mw));D|=C}return bi(m,D,i,$,W)});function yw(i,m,$){m=$?t:m;var D=bi(i,E,t,t,t,t,t,m);return D.placeholder=yw.placeholder,D}function vw(i,m,$){m=$?t:m;var D=bi(i,S,t,t,t,t,t,m);return D.placeholder=vw.placeholder,D}function ww(i,m,$){var D,W,U,Q,ee,ie,fe=0,pe=!1,ye=!1,Ie=!0;if(typeof i!="function")throw new In(g);m=Mr(m)||0,tn($)&&(pe=!!$.leading,ye="maxWait"in $,U=ye?En(Mr($.maxWait)||0,m):U,Ie="trailing"in $?!!$.trailing:Ie);function Fe(gn){var zr=D,ki=W;return D=W=t,fe=gn,Q=i.apply(ki,zr),Q}function qe(gn){return fe=gn,ee=Ma(vt,m),pe?Fe(gn):Q}function ct(gn){var zr=gn-ie,ki=gn-fe,Pw=m-zr;return ye?qn(Pw,U-ki):Pw}function Ge(gn){var zr=gn-ie,ki=gn-fe;return ie===t||zr>=m||zr<0||ye&&ki>=U}function vt(){var gn=Lc();if(Ge(gn))return xt(gn);ee=Ma(vt,ct(gn))}function xt(gn){return ee=t,Ie&&D?Fe(gn):(D=W=t,Q)}function wr(){ee!==t&&Iv(ee),fe=0,D=ie=W=ee=t}function Xn(){return ee===t?Q:xt(Lc())}function br(){var gn=Lc(),zr=Ge(gn);if(D=arguments,W=this,ie=gn,zr){if(ee===t)return qe(ie);if(ye)return Iv(ee),ee=Ma(vt,m),Fe(ie)}return ee===t&&(ee=Ma(vt,m)),Q}return br.cancel=wr,br.flush=Xn,br}var XL=dt(function(i,m){return lv(i,1,m)}),e2=dt(function(i,m,$){return lv(i,Mr(m)||0,$)});function t2(i){return bi(i,L)}function Oc(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new In(g);var $=function(){var D=arguments,W=m?m.apply(this,D):D[0],U=$.cache;if(U.has(W))return U.get(W);var Q=i.apply(this,D);return $.cache=U.set(W,Q)||U,Q};return $.cache=new(Oc.Cache||vi),$}Oc.Cache=vi;function Dc(i){if(typeof i!="function")throw new In(g);return function(){var m=arguments;switch(m.length){case 0:return!i.call(this);case 1:return!i.call(this,m[0]);case 2:return!i.call(this,m[0],m[1]);case 3:return!i.call(this,m[0],m[1],m[2])}return!i.apply(this,m)}}function n2(i){return pw(2,i)}var r2=zR(function(i,m){m=m.length==1&&tt(m[0])?zt(m[0],Vn(Ue())):zt(Nn(m,1),Vn(Ue()));var $=m.length;return dt(function(D){for(var W=-1,U=qn(D.length,$);++W<U;)D[W]=m[W].call(this,D[W]);return Yt(i,this,D)})}),Qd=dt(function(i,m){var $=ke(m,bs(Qd));return bi(i,C,t,m,$)}),bw=dt(function(i,m){var $=ke(m,bs(bw));return bi(i,b,t,m,$)}),i2=xi(function(i,m){return bi(i,R,t,t,t,m)});function o2(i,m){if(typeof i!="function")throw new In(g);return m=m===t?m:at(m),dt(i,m)}function s2(i,m){if(typeof i!="function")throw new In(g);return m=m==null?0:En(at(m),0),dt(function($){var D=$[m],W=Ki($,0,m);return D&&Un(W,D),Yt(i,this,W)})}function a2(i,m,$){var D=!0,W=!0;if(typeof i!="function")throw new In(g);return tn($)&&(D="leading"in $?!!$.leading:D,W="trailing"in $?!!$.trailing:W),ww(i,m,{leading:D,maxWait:m,trailing:W})}function l2(i){return gw(i,1)}function c2(i,m){return Qd(Od(m),i)}function u2(){if(!arguments.length)return[];var i=arguments[0];return tt(i)?i:[i]}function h2(i){return Ir(i,c)}function d2(i,m){return m=typeof m=="function"?m:t,Ir(i,c,m)}function f2(i){return Ir(i,l|c)}function g2(i,m){return m=typeof m=="function"?m:t,Ir(i,l|c,m)}function p2(i,m){return m==null||av(i,m,Dn(m))}function Br(i,m){return i===m||i!==i&&m!==m}var m2=$c(Ad),y2=$c(function(i,m){return i>=m}),Oo=fv(function(){return arguments}())?fv:function(i){return an(i)&&Mt.call(i,"callee")&&!X0.call(i,"callee")},tt=se.isArray,v2=Zl?Vn(Zl):SR;function lr(i){return i!=null&&Nc(i.length)&&!Ci(i)}function fn(i){return an(i)&&lr(i)}function w2(i){return i===!0||i===!1||an(i)&&Zn(i)==me}var Qi=LE||lf,b2=Sr?Vn(Sr):$R;function x2(i){return an(i)&&i.nodeType===1&&!La(i)}function A2(i){if(i==null)return!0;if(lr(i)&&(tt(i)||typeof i=="string"||typeof i.splice=="function"||Qi(i)||xs(i)||Oo(i)))return!i.length;var m=Gn(i);if(m==gt||m==rn)return!i.size;if(Ra(i))return!kd(i).length;for(var $ in i)if(Mt.call(i,$))return!1;return!0}function C2(i,m){return Ta(i,m)}function _2(i,m,$){$=typeof $=="function"?$:t;var D=$?$(i,m):t;return D===t?Ta(i,m,t,$):!!D}function Zd(i){if(!an(i))return!1;var m=Zn(i);return m==Se||m==ge||typeof i.message=="string"&&typeof i.name=="string"&&!La(i)}function k2(i){return typeof i=="number"&&tv(i)}function Ci(i){if(!tn(i))return!1;var m=Zn(i);return m==lt||m==jt||m==ae||m==Zr}function xw(i){return typeof i=="number"&&i==at(i)}function Nc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=H}function tn(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}function an(i){return i!=null&&typeof i=="object"}var Aw=Hr?Vn(Hr):IR;function S2(i,m){return i===m||_d(i,m,jd(m))}function $2(i,m,$){return $=typeof $=="function"?$:t,_d(i,m,jd(m),$)}function T2(i){return Cw(i)&&i!=+i}function I2(i){if(dM(i))throw new He(h);return gv(i)}function E2(i){return i===null}function R2(i){return i==null}function Cw(i){return typeof i=="number"||an(i)&&Zn(i)==yt}function La(i){if(!an(i)||Zn(i)!=Nt)return!1;var m=cc(i);if(m===null)return!0;var $=Mt.call(m,"constructor")&&m.constructor;return typeof $=="function"&&$ instanceof $&&oc.call($)==$E}var Jd=ii?Vn(ii):ER;function M2(i){return xw(i)&&i>=-9007199254740991&&i<=H}var _w=pi?Vn(pi):RR;function Fc(i){return typeof i=="string"||!tt(i)&&an(i)&&Zn(i)==We}function vr(i){return typeof i=="symbol"||an(i)&&Zn(i)==ze}var xs=Jl?Vn(Jl):MR;function L2(i){return i===t}function O2(i){return an(i)&&Gn(i)==Ve}function D2(i){return an(i)&&Zn(i)==ce}var N2=$c(Sd),F2=$c(function(i,m){return i<=m});function kw(i){if(!i)return[];if(lr(i))return Fc(i)?Ke(i):ar(i);if(ba&&i[ba])return de(i[ba]());var m=Gn(i),$=m==gt?we:m==rn?Te:As;return $(i)}function _i(i){if(!i)return i===0?i:0;if(i=Mr(i),i===F||i===-1/0){var m=i<0?-1:1;return m*z}return i===i?i:0}function at(i){var m=_i(i),$=m%1;return m===m?$?m-$:m:0}function Sw(i){return i?Eo(at(i),0,q):0}function Mr(i){if(typeof i=="number")return i;if(vr(i))return V;if(tn(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=tn(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=Xt(i);var $=ei.test(i);return $||yn.test(i)?Ft(i.slice(2),$?2:8):Hl.test(i)?V:+i}function $w(i){return si(i,cr(i))}function P2(i){return i?Eo(at(i),-9007199254740991,H):i===0?i:0}function It(i){return i==null?"":yr(i)}var H2=vs(function(i,m){if(Ra(m)||lr(m)){si(m,Dn(m),i);return}for(var $ in m)Mt.call(m,$)&&ka(i,$,m[$])}),Tw=vs(function(i,m){si(m,cr(m),i)}),Pc=vs(function(i,m,$,D){si(m,cr(m),i,D)}),W2=vs(function(i,m,$,D){si(m,Dn(m),i,D)}),j2=xi(wd);function B2(i,m){var $=ys(i);return m==null?$:sv($,m)}var z2=dt(function(i,m){i=et(i);var $=-1,D=m.length,W=D>2?m[2]:t;for(W&&Jn(m[0],m[1],W)&&(D=1);++$<D;)for(var U=m[$],Q=cr(U),ee=-1,ie=Q.length;++ee<ie;){var fe=Q[ee],pe=i[fe];(pe===t||Br(pe,gs[fe])&&!Mt.call(i,fe))&&(i[fe]=U[fe])}return i}),U2=dt(function(i){return i.push(t,Vv),Yt(Iw,t,i)});function V2(i,m){return ga(i,Ue(m,3),oi)}function q2(i,m){return ga(i,Ue(m,3),xd)}function G2(i,m){return i==null?i:bd(i,Ue(m,3),cr)}function Y2(i,m){return i==null?i:hv(i,Ue(m,3),cr)}function K2(i,m){return i&&oi(i,Ue(m,3))}function Q2(i,m){return i&&xd(i,Ue(m,3))}function Z2(i){return i==null?[]:wc(i,Dn(i))}function J2(i){return i==null?[]:wc(i,cr(i))}function Xd(i,m,$){var D=i==null?t:Ro(i,m);return D===t?$:D}function X2(i,m){return i!=null&&Yv(i,m,AR)}function ef(i,m){return i!=null&&Yv(i,m,CR)}var eO=Wv(function(i,m,$){m!=null&&typeof m.toString!="function"&&(m=sc.call(m)),i[m]=$},nf(ur)),tO=Wv(function(i,m,$){m!=null&&typeof m.toString!="function"&&(m=sc.call(m)),Mt.call(i,m)?i[m].push($):i[m]=[$]},Ue),nO=dt($a);function Dn(i){return lr(i)?iv(i):kd(i)}function cr(i){return lr(i)?iv(i,!0):LR(i)}function rO(i,m){var $={};return m=Ue(m,3),oi(i,function(D,W,U){wi($,m(D,W,U),D)}),$}function iO(i,m){var $={};return m=Ue(m,3),oi(i,function(D,W,U){wi($,W,m(D,W,U))}),$}var oO=vs(function(i,m,$){bc(i,m,$)}),Iw=vs(function(i,m,$,D){bc(i,m,$,D)}),sO=xi(function(i,m){var $={};if(i==null)return $;var D=!1;m=zt(m,function(U){return U=Yi(U,i),D||(D=U.length>1),U}),si(i,Hd(i),$),D&&($=Ir($,l|a|c,eM));for(var W=m.length;W--;)Rd($,m[W]);return $});function aO(i,m){return Ew(i,Dc(Ue(m)))}var lO=xi(function(i,m){return i==null?{}:DR(i,m)});function Ew(i,m){if(i==null)return{};var $=zt(Hd(i),function(D){return[D]});return m=Ue(m),xv(i,$,function(D,W){return m(D,W[0])})}function cO(i,m,$){m=Yi(m,i);var D=-1,W=m.length;for(W||(W=1,i=t);++D<W;){var U=i==null?t:i[ai(m[D])];U===t&&(D=W,U=$),i=Ci(U)?U.call(i):U}return i}function uO(i,m,$){return i==null?i:Ia(i,m,$)}function hO(i,m,$,D){return D=typeof D=="function"?D:t,i==null?i:Ia(i,m,$,D)}var Rw=zv(Dn),Mw=zv(cr);function dO(i,m,$){var D=tt(i),W=D||Qi(i)||xs(i);if(m=Ue(m,4),$==null){var U=i&&i.constructor;W?$=D?new U:[]:tn(i)?$=Ci(U)?ys(cc(i)):{}:$={}}return(W?Kn:oi)(i,function(Q,ee,ie){return m($,Q,ee,ie)}),$}function fO(i,m){return i==null?!0:Rd(i,m)}function gO(i,m,$){return i==null?i:Sv(i,m,Od($))}function pO(i,m,$,D){return D=typeof D=="function"?D:t,i==null?i:Sv(i,m,Od($),D)}function As(i){return i==null?[]:So(i,Dn(i))}function mO(i){return i==null?[]:So(i,cr(i))}function yO(i,m,$){return $===t&&($=m,m=t),$!==t&&($=Mr($),$=$===$?$:0),m!==t&&(m=Mr(m),m=m===m?m:0),Eo(Mr(i),m,$)}function vO(i,m,$){return m=_i(m),$===t?($=m,m=0):$=_i($),i=Mr(i),_R(i,m,$)}function wO(i,m,$){if($&&typeof $!="boolean"&&Jn(i,m,$)&&(m=$=t),$===t&&(typeof m=="boolean"?($=m,m=t):typeof i=="boolean"&&($=i,i=t)),i===t&&m===t?(i=0,m=1):(i=_i(i),m===t?(m=i,i=0):m=_i(m)),i>m){var D=i;i=m,m=D}if($||i%1||m%1){var W=nv();return qn(i+W*(m-i+bn("1e-"+((W+"").length-1))),m)}return Td(i,m)}var bO=ws(function(i,m,$){return m=m.toLowerCase(),i+($?Lw(m):m)});function Lw(i){return tf(It(i).toLowerCase())}function Ow(i){return i=It(i),i&&i.replace(ts,P).replace(Hi,"")}function xO(i,m,$){i=It(i),m=yr(m);var D=i.length;$=$===t?D:Eo(at($),0,D);var W=$;return $-=m.length,$>=0&&i.slice($,W)==m}function AO(i){return i=It(i),i&&od.test(i)?i.replace(Nl,j):i}function CO(i){return i=It(i),i&&Ri.test(i)?i.replace(Xr,"\\$&"):i}var _O=ws(function(i,m,$){return i+($?"-":"")+m.toLowerCase()}),kO=ws(function(i,m,$){return i+($?" ":"")+m.toLowerCase()}),SO=Fv("toLowerCase");function $O(i,m,$){i=It(i),m=at(m);var D=m?st(i):0;if(!m||D>=m)return i;var W=(m-D)/2;return Sc(fc(W),$)+i+Sc(dc(W),$)}function TO(i,m,$){i=It(i),m=at(m);var D=m?st(i):0;return m&&D<m?i+Sc(m-D,$):i}function IO(i,m,$){i=It(i),m=at(m);var D=m?st(i):0;return m&&D<m?Sc(m-D,$)+i:i}function EO(i,m,$){return $||m==null?m=0:m&&(m=+m),FE(It(i).replace(Bn,""),m||0)}function RO(i,m,$){return($?Jn(i,m,$):m===t)?m=1:m=at(m),Id(It(i),m)}function MO(){var i=arguments,m=It(i[0]);return i.length<3?m:m.replace(i[1],i[2])}var LO=ws(function(i,m,$){return i+($?"_":"")+m.toLowerCase()});function OO(i,m,$){return $&&typeof $!="number"&&Jn(i,m,$)&&(m=$=t),$=$===t?q:$>>>0,$?(i=It(i),i&&(typeof m=="string"||m!=null&&!Jd(m))&&(m=yr(m),!m&&te(i))?Ki(Ke(i),0,$):i.split(m,$)):[]}var DO=ws(function(i,m,$){return i+($?" ":"")+tf(m)});function NO(i,m,$){return i=It(i),$=$==null?0:Eo(at($),0,i.length),m=yr(m),i.slice($,$+m.length)==m}function FO(i,m,$){var D=B.templateSettings;$&&Jn(i,m,$)&&(m=t),i=It(i),m=Pc({},m,D,Uv);var W=Pc({},m.imports,D.imports,Uv),U=Dn(W),Q=So(W,U),ee,ie,fe=0,pe=m.interpolate||zn,ye="__p += '",Ie=Tn((m.escape||zn).source+"|"+pe.source+"|"+(pe===je?ud:zn).source+"|"+(m.evaluate||zn).source+"|$","g"),Fe="//# sourceURL="+(Mt.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kl+"]")+`
|
1391
|
-
`;i.replace(Ie,function(Ge,vt,xt,wr,Xn,br){return xt||(xt=wr),ye+=i.slice(fe,br).replace(vo,Y),vt&&(ee=!0,ye+=`' +
|
1392
|
-
__e(`+vt+`) +
|
1393
|
-
'`),Xn&&(ie=!0,ye+=`';
|
1394
|
-
`+Xn+`;
|
1395
|
-
__p += '`),xt&&(ye+=`' +
|
1396
|
-
((__t = (`+xt+`)) == null ? '' : __t) +
|
1397
|
-
'`),fe=br+Ge.length,Ge}),ye+=`';
|
1398
|
-
`;var qe=Mt.call(m,"variable")&&m.variable;if(!qe)ye=`with (obj) {
|
1399
|
-
`+ye+`
|
1400
|
-
}
|
1401
|
-
`;else if(cd.test(qe))throw new He(v);ye=(ie?ye.replace(ui,""):ye).replace(rr,"$1").replace(Ks,"$1;"),ye="function("+(qe||"obj")+`) {
|
1402
|
-
`+(qe?"":`obj || (obj = {});
|
1403
|
-
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
|
1404
|
-
function print() { __p += __j.call(arguments, '') }
|
1405
|
-
`:`;
|
1406
|
-
`)+ye+`return __p
|
1407
|
-
}`;var ct=Nw(function(){return Je(U,Fe+"return "+ye).apply(t,Q)});if(ct.source=ye,Zd(ct))throw ct;return ct}function PO(i){return It(i).toLowerCase()}function HO(i){return It(i).toUpperCase()}function WO(i,m,$){if(i=It(i),i&&($||m===t))return Xt(i);if(!i||!(m=yr(m)))return i;var D=Ke(i),W=Ke(m),U=nc(D,W),Q=rc(D,W)+1;return Ki(D,U,Q).join("")}function jO(i,m,$){if(i=It(i),i&&($||m===t))return i.slice(0,Xe(i)+1);if(!i||!(m=yr(m)))return i;var D=Ke(i),W=rc(D,Ke(m))+1;return Ki(D,0,W).join("")}function BO(i,m,$){if(i=It(i),i&&($||m===t))return i.replace(Bn,"");if(!i||!(m=yr(m)))return i;var D=Ke(i),W=nc(D,Ke(m));return Ki(D,W).join("")}function zO(i,m){var $=I,D=N;if(tn(m)){var W="separator"in m?m.separator:W;$="length"in m?at(m.length):$,D="omission"in m?yr(m.omission):D}i=It(i);var U=i.length;if(te(i)){var Q=Ke(i);U=Q.length}if($>=U)return i;var ee=$-st(D);if(ee<1)return D;var ie=Q?Ki(Q,0,ee).join(""):i.slice(0,ee);if(W===t)return ie+D;if(Q&&(ee+=ie.length-ee),Jd(W)){if(i.slice(ee).search(W)){var fe,pe=ie;for(W.global||(W=Tn(W.source,It(Oi.exec(W))+"g")),W.lastIndex=0;fe=W.exec(pe);)var ye=fe.index;ie=ie.slice(0,ye===t?ee:ye)}}else if(i.indexOf(yr(W),ee)!=ee){var Ie=ie.lastIndexOf(W);Ie>-1&&(ie=ie.slice(0,Ie))}return ie+D}function UO(i){return i=It(i),i&&id.test(i)?i.replace(Qs,Ne):i}var VO=ws(function(i,m,$){return i+($?" ":"")+m.toUpperCase()}),tf=Fv("toUpperCase");function Dw(i,m,$){return i=It(i),m=$?t:m,m===t?oe(i)?Kt(i):ds(i):i.match(m)||[]}var Nw=dt(function(i,m){try{return Yt(i,t,m)}catch($){return Zd($)?$:new He($)}}),qO=xi(function(i,m){return Kn(m,function($){$=ai($),wi(i,$,Kd(i[$],i))}),i});function GO(i){var m=i==null?0:i.length,$=Ue();return i=m?zt(i,function(D){if(typeof D[1]!="function")throw new In(g);return[$(D[0]),D[1]]}):[],dt(function(D){for(var W=-1;++W<m;){var U=i[W];if(Yt(U[0],this,D))return Yt(U[1],this,D)}})}function YO(i){return wR(Ir(i,l))}function nf(i){return function(){return i}}function KO(i,m){return i==null||i!==i?m:i}var QO=Hv(),ZO=Hv(!0);function ur(i){return i}function rf(i){return pv(typeof i=="function"?i:Ir(i,l))}function JO(i){return yv(Ir(i,l))}function XO(i,m){return vv(i,Ir(m,l))}var eD=dt(function(i,m){return function($){return $a($,i,m)}}),tD=dt(function(i,m){return function($){return $a(i,$,m)}});function of(i,m,$){var D=Dn(m),W=wc(m,D);$==null&&!(tn(m)&&(W.length||!D.length))&&($=m,m=i,i=this,W=wc(m,Dn(m)));var U=!(tn($)&&"chain"in $)||!!$.chain,Q=Ci(i);return Kn(W,function(ee){var ie=m[ee];i[ee]=ie,Q&&(i.prototype[ee]=function(){var fe=this.__chain__;if(U||fe){var pe=i(this.__wrapped__),ye=pe.__actions__=ar(this.__actions__);return ye.push({func:ie,args:arguments,thisArg:i}),pe.__chain__=fe,pe}return ie.apply(i,Un([this.value()],arguments))})}),i}function nD(){return $n._===this&&($n._=TE),this}function sf(){}function rD(i){return i=at(i),dt(function(m){return wv(m,i)})}var iD=Nd(zt),oD=Nd(Bi),sD=Nd(hs);function Fw(i){return zd(i)?ya(ai(i)):NR(i)}function aD(i){return function(m){return i==null?t:Ro(i,m)}}var lD=jv(),cD=jv(!0);function af(){return[]}function lf(){return!1}function uD(){return{}}function hD(){return""}function dD(){return!0}function fD(i,m){if(i=at(i),i<1||i>H)return[];var $=q,D=qn(i,q);m=Ue(m),i-=q;for(var W=sn(D,m);++$<i;)m($);return W}function gD(i){return tt(i)?zt(i,ai):vr(i)?[i]:ar(rw(It(i)))}function pD(i){var m=++SE;return It(i)+m}var mD=kc(function(i,m){return i+m},0),yD=Fd("ceil"),vD=kc(function(i,m){return i/m},1),wD=Fd("floor");function bD(i){return i&&i.length?vc(i,ur,Ad):t}function xD(i,m){return i&&i.length?vc(i,Ue(m,2),Ad):t}function AD(i){return ma(i,ur)}function CD(i,m){return ma(i,Ue(m,2))}function _D(i){return i&&i.length?vc(i,ur,Sd):t}function kD(i,m){return i&&i.length?vc(i,Ue(m,2),Sd):t}var SD=kc(function(i,m){return i*m},1),$D=Fd("round"),TD=kc(function(i,m){return i-m},0);function ID(i){return i&&i.length?Ui(i,ur):0}function ED(i,m){return i&&i.length?Ui(i,Ue(m,2)):0}return B.after=JL,B.ary=gw,B.assign=H2,B.assignIn=Tw,B.assignInWith=Pc,B.assignWith=W2,B.at=j2,B.before=pw,B.bind=Kd,B.bindAll=qO,B.bindKey=mw,B.castArray=u2,B.chain=hw,B.chunk=wM,B.compact=bM,B.concat=xM,B.cond=GO,B.conforms=YO,B.constant=nf,B.countBy=IL,B.create=B2,B.curry=yw,B.curryRight=vw,B.debounce=ww,B.defaults=z2,B.defaultsDeep=U2,B.defer=XL,B.delay=e2,B.difference=AM,B.differenceBy=CM,B.differenceWith=_M,B.drop=kM,B.dropRight=SM,B.dropRightWhile=$M,B.dropWhile=TM,B.fill=IM,B.filter=RL,B.flatMap=OL,B.flatMapDeep=DL,B.flatMapDepth=NL,B.flatten=aw,B.flattenDeep=EM,B.flattenDepth=RM,B.flip=t2,B.flow=QO,B.flowRight=ZO,B.fromPairs=MM,B.functions=Z2,B.functionsIn=J2,B.groupBy=FL,B.initial=OM,B.intersection=DM,B.intersectionBy=NM,B.intersectionWith=FM,B.invert=eO,B.invertBy=tO,B.invokeMap=HL,B.iteratee=rf,B.keyBy=WL,B.keys=Dn,B.keysIn=cr,B.map=Mc,B.mapKeys=rO,B.mapValues=iO,B.matches=JO,B.matchesProperty=XO,B.memoize=Oc,B.merge=oO,B.mergeWith=Iw,B.method=eD,B.methodOf=tD,B.mixin=of,B.negate=Dc,B.nthArg=rD,B.omit=sO,B.omitBy=aO,B.once=n2,B.orderBy=jL,B.over=iD,B.overArgs=r2,B.overEvery=oD,B.overSome=sD,B.partial=Qd,B.partialRight=bw,B.partition=BL,B.pick=lO,B.pickBy=Ew,B.property=Fw,B.propertyOf=aD,B.pull=jM,B.pullAll=cw,B.pullAllBy=BM,B.pullAllWith=zM,B.pullAt=UM,B.range=lD,B.rangeRight=cD,B.rearg=i2,B.reject=VL,B.remove=VM,B.rest=o2,B.reverse=Gd,B.sampleSize=GL,B.set=uO,B.setWith=hO,B.shuffle=YL,B.slice=qM,B.sortBy=ZL,B.sortedUniq=XM,B.sortedUniqBy=eL,B.split=OO,B.spread=s2,B.tail=tL,B.take=nL,B.takeRight=rL,B.takeRightWhile=iL,B.takeWhile=oL,B.tap=bL,B.throttle=a2,B.thru=Rc,B.toArray=kw,B.toPairs=Rw,B.toPairsIn=Mw,B.toPath=gD,B.toPlainObject=$w,B.transform=dO,B.unary=l2,B.union=sL,B.unionBy=aL,B.unionWith=lL,B.uniq=cL,B.uniqBy=uL,B.uniqWith=hL,B.unset=fO,B.unzip=Yd,B.unzipWith=uw,B.update=gO,B.updateWith=pO,B.values=As,B.valuesIn=mO,B.without=dL,B.words=Dw,B.wrap=c2,B.xor=fL,B.xorBy=gL,B.xorWith=pL,B.zip=mL,B.zipObject=yL,B.zipObjectDeep=vL,B.zipWith=wL,B.entries=Rw,B.entriesIn=Mw,B.extend=Tw,B.extendWith=Pc,of(B,B),B.add=mD,B.attempt=Nw,B.camelCase=bO,B.capitalize=Lw,B.ceil=yD,B.clamp=yO,B.clone=h2,B.cloneDeep=f2,B.cloneDeepWith=g2,B.cloneWith=d2,B.conformsTo=p2,B.deburr=Ow,B.defaultTo=KO,B.divide=vD,B.endsWith=xO,B.eq=Br,B.escape=AO,B.escapeRegExp=CO,B.every=EL,B.find=ML,B.findIndex=ow,B.findKey=V2,B.findLast=LL,B.findLastIndex=sw,B.findLastKey=q2,B.floor=wD,B.forEach=dw,B.forEachRight=fw,B.forIn=G2,B.forInRight=Y2,B.forOwn=K2,B.forOwnRight=Q2,B.get=Xd,B.gt=m2,B.gte=y2,B.has=X2,B.hasIn=ef,B.head=lw,B.identity=ur,B.includes=PL,B.indexOf=LM,B.inRange=vO,B.invoke=nO,B.isArguments=Oo,B.isArray=tt,B.isArrayBuffer=v2,B.isArrayLike=lr,B.isArrayLikeObject=fn,B.isBoolean=w2,B.isBuffer=Qi,B.isDate=b2,B.isElement=x2,B.isEmpty=A2,B.isEqual=C2,B.isEqualWith=_2,B.isError=Zd,B.isFinite=k2,B.isFunction=Ci,B.isInteger=xw,B.isLength=Nc,B.isMap=Aw,B.isMatch=S2,B.isMatchWith=$2,B.isNaN=T2,B.isNative=I2,B.isNil=R2,B.isNull=E2,B.isNumber=Cw,B.isObject=tn,B.isObjectLike=an,B.isPlainObject=La,B.isRegExp=Jd,B.isSafeInteger=M2,B.isSet=_w,B.isString=Fc,B.isSymbol=vr,B.isTypedArray=xs,B.isUndefined=L2,B.isWeakMap=O2,B.isWeakSet=D2,B.join=PM,B.kebabCase=_O,B.last=Rr,B.lastIndexOf=HM,B.lowerCase=kO,B.lowerFirst=SO,B.lt=N2,B.lte=F2,B.max=bD,B.maxBy=xD,B.mean=AD,B.meanBy=CD,B.min=_D,B.minBy=kD,B.stubArray=af,B.stubFalse=lf,B.stubObject=uD,B.stubString=hD,B.stubTrue=dD,B.multiply=SD,B.nth=WM,B.noConflict=nD,B.noop=sf,B.now=Lc,B.pad=$O,B.padEnd=TO,B.padStart=IO,B.parseInt=EO,B.random=wO,B.reduce=zL,B.reduceRight=UL,B.repeat=RO,B.replace=MO,B.result=cO,B.round=$D,B.runInContext=ne,B.sample=qL,B.size=KL,B.snakeCase=LO,B.some=QL,B.sortedIndex=GM,B.sortedIndexBy=YM,B.sortedIndexOf=KM,B.sortedLastIndex=QM,B.sortedLastIndexBy=ZM,B.sortedLastIndexOf=JM,B.startCase=DO,B.startsWith=NO,B.subtract=TD,B.sum=ID,B.sumBy=ED,B.template=FO,B.times=fD,B.toFinite=_i,B.toInteger=at,B.toLength=Sw,B.toLower=PO,B.toNumber=Mr,B.toSafeInteger=P2,B.toString=It,B.toUpper=HO,B.trim=WO,B.trimEnd=jO,B.trimStart=BO,B.truncate=zO,B.unescape=UO,B.uniqueId=pD,B.upperCase=VO,B.upperFirst=tf,B.each=dw,B.eachRight=fw,B.first=lw,of(B,function(){var i={};return oi(B,function(m,$){Mt.call(B.prototype,$)||(i[$]=m)}),i}(),{chain:!1}),B.VERSION=r,Kn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){B[i].placeholder=B}),Kn(["drop","take"],function(i,m){bt.prototype[i]=function($){$=$===t?1:En(at($),0);var D=this.__filtered__&&!m?new bt(this):this.clone();return D.__filtered__?D.__takeCount__=qn($,D.__takeCount__):D.__views__.push({size:qn($,q),type:i+(D.__dir__<0?"Right":"")}),D},bt.prototype[i+"Right"]=function($){return this.reverse()[i]($).reverse()}}),Kn(["filter","map","takeWhile"],function(i,m){var $=m+1,D=$==_||$==O;bt.prototype[i]=function(W){var U=this.clone();return U.__iteratees__.push({iteratee:Ue(W,3),type:$}),U.__filtered__=U.__filtered__||D,U}}),Kn(["head","last"],function(i,m){var $="take"+(m?"Right":"");bt.prototype[i]=function(){return this[$](1).value()[0]}}),Kn(["initial","tail"],function(i,m){var $="drop"+(m?"":"Right");bt.prototype[i]=function(){return this.__filtered__?new bt(this):this[$](1)}}),bt.prototype.compact=function(){return this.filter(ur)},bt.prototype.find=function(i){return this.filter(i).head()},bt.prototype.findLast=function(i){return this.reverse().find(i)},bt.prototype.invokeMap=dt(function(i,m){return typeof i=="function"?new bt(this):this.map(function($){return $a($,i,m)})}),bt.prototype.reject=function(i){return this.filter(Dc(Ue(i)))},bt.prototype.slice=function(i,m){i=at(i);var $=this;return $.__filtered__&&(i>0||m<0)?new bt($):(i<0?$=$.takeRight(-i):i&&($=$.drop(i)),m!==t&&(m=at(m),$=m<0?$.dropRight(-m):$.take(m-i)),$)},bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},bt.prototype.toArray=function(){return this.take(q)},oi(bt.prototype,function(i,m){var $=/^(?:filter|find|map|reject)|While$/.test(m),D=/^(?:head|last)$/.test(m),W=B[D?"take"+(m=="last"?"Right":""):m],U=D||/^find/.test(m);W&&(B.prototype[m]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,ie=Q instanceof bt,fe=ee[0],pe=ie||tt(Q),ye=function(vt){var xt=W.apply(B,Un([vt],ee));return D&&Ie?xt[0]:xt};pe&&$&&typeof fe=="function"&&fe.length!=1&&(ie=pe=!1);var Ie=this.__chain__,Fe=!!this.__actions__.length,qe=U&&!Ie,ct=ie&&!Fe;if(!U&&pe){Q=ct?Q:new bt(this);var Ge=i.apply(Q,ee);return Ge.__actions__.push({func:Rc,args:[ye],thisArg:t}),new Tr(Ge,Ie)}return qe&&ct?i.apply(this,ee):(Ge=this.thru(ye),qe?D?Ge.value()[0]:Ge.value():Ge)})}),Kn(["pop","push","shift","sort","splice","unshift"],function(i){var m=mr[i],$=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",D=/^(?:pop|shift)$/.test(i);B.prototype[i]=function(){var W=arguments;if(D&&!this.__chain__){var U=this.value();return m.apply(tt(U)?U:[],W)}return this[$](function(Q){return m.apply(tt(Q)?Q:[],W)})}}),oi(bt.prototype,function(i,m){var $=B[m];if($){var D=$.name+"";Mt.call(ms,D)||(ms[D]=[]),ms[D].push({name:m,func:$})}}),ms[_c(t,w).name]=[{name:"wrapper",func:t}],bt.prototype.clone=UE,bt.prototype.reverse=VE,bt.prototype.value=qE,B.prototype.at=xL,B.prototype.chain=AL,B.prototype.commit=CL,B.prototype.next=_L,B.prototype.plant=SL,B.prototype.reverse=$L,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=TL,B.prototype.first=B.prototype.head,ba&&(B.prototype[ba]=kL),B},Ht=Pt();On?((On.exports=Ht)._=Ht,kr._=Ht):$n._=Ht}).call(tC)}(tl,tl.exports)),tl.exports}var rC=nC();Rn("T",Fa(rC)).debounce(function(){this.rebuildDisplayText()},300);var lp={exports:{}},cp;function iC(){return cp||(cp=1,function(n,e){(function(){ace.require(["ace/mode/text"],function(t){n&&(n.exports=t)})})()}(lp)),lp.exports}iC();const oC=!0,xn="u-",sC="uplot",aC=xn+"hz",lC=xn+"vt",cC=xn+"title",uC=xn+"wrap",hC=xn+"under",dC=xn+"over",fC=xn+"axis",lo=xn+"off",gC=xn+"select",pC=xn+"cursor-x",mC=xn+"cursor-y",yC=xn+"cursor-pt",vC=xn+"legend",wC=xn+"live",bC=xn+"inline",xC=xn+"series",AC=xn+"marker",up=xn+"label",CC=xn+"value",Os="width",Ds="height",Ns="top",hp="bottom",jo="left",yu="right",vu="#000",dp=vu+"0",fp="mousemove",gp="mousedown",wu="mouseup",pp="mouseenter",mp="mouseleave",yp="dblclick",_C="resize",kC="scroll",vp="change",nl="dppxchange",bu="--",Bo=typeof window<"u",xu=Bo?document:null,zo=Bo?window:null,SC=Bo?navigator:null;let _t,rl;function Au(){let n=devicePixelRatio;_t!=n&&(_t=n,rl&&ku(vp,rl,Au),rl=matchMedia(`(min-resolution: ${_t-.001}dppx) and (max-resolution: ${_t+.001}dppx)`),co(vp,rl,Au),zo.dispatchEvent(new CustomEvent(nl)))}function dr(n,e){if(e!=null){let t=n.classList;!t.contains(e)&&t.add(e)}}function Cu(n,e){let t=n.classList;t.contains(e)&&t.remove(e)}function Ut(n,e,t){n.style[e]=t+"px"}function Nr(n,e,t,r){let d=xu.createElement(n);return e!=null&&dr(d,e),t!=null&&t.insertBefore(d,r),d}function xr(n,e){return Nr("div",n,e)}const wp=new WeakMap;function Gr(n,e,t,r,d){let h="translate("+e+"px,"+t+"px)",g=wp.get(n);h!=g&&(n.style.transform=h,wp.set(n,h),e<0||t<0||e>r||t>d?dr(n,lo):Cu(n,lo))}const bp=new WeakMap;function xp(n,e,t){let r=e+t,d=bp.get(n);r!=d&&(bp.set(n,r),n.style.background=e,n.style.borderColor=t)}const Ap=new WeakMap;function Cp(n,e,t,r){let d=e+""+t,h=Ap.get(n);d!=h&&(Ap.set(n,d),n.style.height=t+"px",n.style.width=e+"px",n.style.marginLeft=r?-e/2+"px":0,n.style.marginTop=r?-t/2+"px":0)}const _u={passive:!0},$C={..._u,capture:!0};function co(n,e,t,r){e.addEventListener(n,t,r?$C:_u)}function ku(n,e,t,r){e.removeEventListener(n,t,_u)}Bo&&Au();function Fr(n,e,t,r){let d;t=t||0,r=r||e.length-1;let h=r<=2147483647;for(;r-t>1;)d=h?t+r>>1:gr((t+r)/2),e[d]<n?t=d:r=d;return n-e[t]<=e[r]-n?t:r}function Uo(n,e,t,r){for(let d=r==1?e:t;d>=e&&d<=t;d+=r)if(n[d]!=null)return d;return-1}function TC(n,e,t,r){let d=Qt,h=-1/0;if(r==1)d=n[e],h=n[t];else if(r==-1)d=n[t],h=n[e];else for(let g=e;g<=t;g++){let v=n[g];v!=null&&(v<d&&(d=v),v>h&&(h=v))}return[d,h]}function IC(n,e,t){let r=Qt,d=-1/0;for(let h=e;h<=t;h++){let g=n[h];g!=null&&g>0&&(g<r&&(r=g),g>d&&(d=g))}return[r,d]}function il(n,e,t,r){let d=Sp(n),h=Sp(e);n==e&&(d==-1?(n*=t,e/=t):(n/=t,e*=t));let g=t==10?li:$p,v=d==1?gr:Ar,u=h==1?Ar:gr,p=v(g(An(n))),s=u(g(An(e))),l=Vo(t,p),a=Vo(t,s);return t==10&&(p<0&&(l=Dt(l,-p)),s<0&&(a=Dt(a,-s))),r||t==2?(n=l*d,e=a*h):(n=Lp(n,l),e=al(e,a)),[n,e]}function Su(n,e,t,r){let d=il(n,e,t,r);return n==0&&(d[0]=0),e==0&&(d[1]=0),d}const $u=.1,_p={mode:3,pad:$u},Fs={pad:0,soft:null,mode:0},EC={min:Fs,max:Fs};function ol(n,e,t,r){return ll(t)?kp(n,e,t):(Fs.pad=t,Fs.soft=r?0:null,Fs.mode=r?3:0,kp(n,e,EC))}function Ct(n,e){return n??e}function RC(n,e,t){for(e=Ct(e,0),t=Ct(t,n.length-1);e<=t;){if(n[e]!=null)return!0;e++}return!1}function kp(n,e,t){let r=t.min,d=t.max,h=Ct(r.pad,0),g=Ct(d.pad,0),v=Ct(r.hard,-1/0),u=Ct(d.hard,Qt),p=Ct(r.soft,Qt),s=Ct(d.soft,-1/0),l=Ct(r.mode,0),a=Ct(d.mode,0),c=e-n,o=li(c),f=Pn(An(n),An(e)),y=li(f),w=An(y-o);(c<1e-24||w>10)&&(c=0,(n==0||e==0)&&(c=1e-24,l==2&&p!=Qt&&(h=0),a==2&&s!=-1/0&&(g=0)));let x=c||f||1e3,E=li(x),S=Vo(10,gr(E)),C=x*(c==0?n==0?.1:1:h),b=Dt(Lp(n-C,S/10),24),T=n>=p&&(l==1||l==3&&b<=p||l==2&&b>=p)?p:Qt,R=Pn(v,b<T&&n>=T?T:Cr(T,b)),L=x*(c==0?e==0?.1:1:g),I=Dt(al(e+L,S/10),24),N=e<=s&&(a==1||a==3&&I>=s||a==2&&I<=s)?s:-1/0,k=Cr(u,I>N&&e<=N?N:Pn(N,I));return R==k&&R==0&&(k=100),[R,k]}const MC=new Intl.NumberFormat(Bo?SC.language:"en-US"),Tu=n=>MC.format(n),fr=Math,sl=fr.PI,An=fr.abs,gr=fr.floor,Cn=fr.round,Ar=fr.ceil,Cr=fr.min,Pn=fr.max,Vo=fr.pow,Sp=fr.sign,li=fr.log10,$p=fr.log2,LC=(n,e=1)=>fr.sinh(n)*e,Iu=(n,e=1)=>fr.asinh(n/e),Qt=1/0;function Tp(n){return(li((n^n>>31)-(n>>31))|0)+1}function Eu(n,e,t){return Cr(Pn(n,e),t)}function wt(n){return typeof n=="function"?n:()=>n}const OC=()=>{},Ip=n=>n,Ep=(n,e)=>e,DC=n=>null,Rp=n=>!0,Mp=(n,e)=>n==e,NC=/\.\d*?(?=9{6,}|0{6,})/gm,uo=n=>{if(Dp(n)||Ii.has(n))return n;const e=`${n}`,t=e.match(NC);if(t==null)return n;let r=t[0].length-1;if(e.indexOf("e-")!=-1){let[d,h]=e.split("e");return+`${uo(d)}e${h}`}return Dt(n,r)};function ho(n,e){return uo(Dt(uo(n/e))*e)}function al(n,e){return uo(Ar(uo(n/e))*e)}function Lp(n,e){return uo(gr(uo(n/e))*e)}function Dt(n,e=0){if(Dp(n))return n;let t=10**e,r=n*t*(1+Number.EPSILON);return Cn(r)/t}const Ii=new Map;function Op(n){return((""+n).split(".")[1]||"").length}function Ps(n,e,t,r){let d=[],h=r.map(Op);for(let g=e;g<t;g++){let v=An(g),u=Dt(Vo(n,g),v);for(let p=0;p<r.length;p++){let s=n==10?+`${r[p]}e${g}`:r[p]*u,l=(g>=0?0:v)+(g>=h[p]?0:h[p]),a=n==10?s:Dt(s,l);d.push(a),Ii.set(a,l)}}return d}const Hs={},Ru=[],qo=[null,null],Ei=Array.isArray,Dp=Number.isInteger,FC=n=>n===void 0;function Np(n){return typeof n=="string"}function ll(n){let e=!1;if(n!=null){let t=n.constructor;e=t==null||t==Object}return e}function PC(n){return n!=null&&typeof n=="object"}const HC=Object.getPrototypeOf(Uint8Array),Fp="__proto__";function Go(n,e=ll){let t;if(Ei(n)){let r=n.find(d=>d!=null);if(Ei(r)||e(r)){t=Array(n.length);for(let d=0;d<n.length;d++)t[d]=Go(n[d],e)}else t=n.slice()}else if(n instanceof HC)t=n.slice();else if(e(n)){t={};for(let r in n)r!=Fp&&(t[r]=Go(n[r],e))}else t=n;return t}function mn(n){let e=arguments;for(let t=1;t<e.length;t++){let r=e[t];for(let d in r)d!=Fp&&(ll(n[d])?mn(n[d],Go(r[d])):n[d]=Go(r[d]))}return n}const WC=0,jC=1,BC=2;function zC(n,e,t){for(let r=0,d,h=-1;r<e.length;r++){let g=e[r];if(g>h){for(d=g-1;d>=0&&n[d]==null;)n[d--]=null;for(d=g+1;d<t&&n[d]==null;)n[h=d++]=null}}}function UC(n,e){if(GC(n)){let g=n[0].slice();for(let v=1;v<n.length;v++)g.push(...n[v].slice(1));return YC(g[0])||(g=qC(g)),g}let t=new Set;for(let g=0;g<n.length;g++){let v=n[g][0],u=v.length;for(let p=0;p<u;p++)t.add(v[p])}let r=[Array.from(t).sort((g,v)=>g-v)],d=r[0].length,h=new Map;for(let g=0;g<d;g++)h.set(r[0][g],g);for(let g=0;g<n.length;g++){let v=n[g],u=v[0];for(let p=1;p<v.length;p++){let s=v[p],l=Array(d).fill(void 0),a=e?e[g][p]:jC,c=[];for(let o=0;o<s.length;o++){let f=s[o],y=h.get(u[o]);f===null?a!=WC&&(l[y]=f,a==BC&&c.push(y)):l[y]=f}zC(l,c,d),r.push(l)}}return r}const VC=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function qC(n){let e=n[0],t=e.length,r=Array(t);for(let h=0;h<r.length;h++)r[h]=h;r.sort((h,g)=>e[h]-e[g]);let d=[];for(let h=0;h<n.length;h++){let g=n[h],v=Array(t);for(let u=0;u<t;u++)v[u]=g[r[u]];d.push(v)}return d}function GC(n){let e=n[0][0],t=e.length;for(let r=1;r<n.length;r++){let d=n[r][0];if(d.length!=t)return!1;if(d!=e){for(let h=0;h<t;h++)if(d[h]!=e[h])return!1}}return!0}function YC(n,e=100){const t=n.length;if(t<=1)return!0;let r=0,d=t-1;for(;r<=d&&n[r]==null;)r++;for(;d>=r&&n[d]==null;)d--;if(d<=r)return!0;const h=Pn(1,gr((d-r+1)/e));for(let g=n[r],v=r+h;v<=d;v+=h){const u=n[v];if(u!=null){if(u<=g)return!1;g=u}}return!0}const Pp=["January","February","March","April","May","June","July","August","September","October","November","December"],Hp=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Wp(n){return n.slice(0,3)}const KC=Hp.map(Wp),QC=Pp.map(Wp),ZC={MMMM:Pp,MMM:QC,WWWW:Hp,WWW:KC};function Ws(n){return(n<10?"0":"")+n}function JC(n){return(n<10?"00":n<100?"0":"")+n}const XC={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=>Ws(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Ws(n.getDate()),D:n=>n.getDate(),WWWW:(n,e)=>e.WWWW[n.getDay()],WWW:(n,e)=>e.WWW[n.getDay()],HH:n=>Ws(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=>Ws(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Ws(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>JC(n.getMilliseconds())};function Mu(n,e){e=e||ZC;let t=[],r=/\{([a-z]+)\}|[^{]+/gi,d;for(;d=r.exec(n);)t.push(d[0][0]=="{"?XC[d[1]]:d[0]);return h=>{let g="";for(let v=0;v<t.length;v++)g+=typeof t[v]=="string"?t[v]:t[v](h,e);return g}}const e_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function t_(n,e){let t;return e=="UTC"||e=="Etc/UTC"?t=new Date(+n+n.getTimezoneOffset()*6e4):e==e_?t=n:(t=new Date(n.toLocaleString("en-US",{timeZone:e})),t.setMilliseconds(n.getMilliseconds())),t}const jp=n=>n%1==0,cl=[1,2,2.5,5],n_=Ps(10,-32,0,cl),Bp=Ps(10,0,32,cl),r_=Bp.filter(jp),fo=n_.concat(Bp),Lu=`
|
1408
|
-
`,zp="{YYYY}",Up=Lu+zp,Vp="{M}/{D}",js=Lu+Vp,ul=js+"/{YY}",qp="{aa}",i_="{h}:{mm}",Yo=i_+qp,Gp=Lu+Yo,Yp=":{ss}",St=null;function Kp(n){let e=n*1e3,t=e*60,r=t*60,d=r*24,h=d*30,g=d*365,v=(n==1?Ps(10,0,3,cl).filter(jp):Ps(10,-3,0,cl)).concat([e,e*5,e*10,e*15,e*30,t,t*5,t*10,t*15,t*30,r,r*2,r*3,r*4,r*6,r*8,r*12,d,d*2,d*3,d*4,d*5,d*6,d*7,d*8,d*9,d*10,d*15,h,h*2,h*3,h*4,h*6,g,g*2,g*5,g*10,g*25,g*50,g*100]);const u=[[g,zp,St,St,St,St,St,St,1],[d*28,"{MMM}",Up,St,St,St,St,St,1],[d,Vp,Up,St,St,St,St,St,1],[r,"{h}"+qp,ul,St,js,St,St,St,1],[t,Yo,ul,St,js,St,St,St,1],[e,Yp,ul+" "+Yo,St,js+" "+Yo,St,Gp,St,1],[n,Yp+".{fff}",ul+" "+Yo,St,js+" "+Yo,St,Gp,St,1]];function p(s){return(l,a,c,o,f,y)=>{let w=[],x=f>=g,E=f>=h&&f<g,S=s(c),C=Dt(S*n,3),b=Ou(S.getFullYear(),x?0:S.getMonth(),E||x?1:S.getDate()),T=Dt(b*n,3);if(E||x){let R=E?f/h:0,L=x?f/g:0,I=C==T?C:Dt(Ou(b.getFullYear()+L,b.getMonth()+R,1)*n,3),N=new Date(Cn(I/n)),k=N.getFullYear(),A=N.getMonth();for(let _=0;I<=o;_++){let M=Ou(k+L*_,A+R*_,1),O=M-s(Dt(M*n,3));I=Dt((+M+O)*n,3),I<=o&&w.push(I)}}else{let R=f>=d?d:f,L=gr(c)-gr(C),I=T+L+al(C-T,R);w.push(I);let N=s(I),k=N.getHours()+N.getMinutes()/t+N.getSeconds()/r,A=f/r,_=l.axes[a]._space,M=y/_;for(;I=Dt(I+f,n==1?0:3),!(I>o);)if(A>1){let O=gr(Dt(k+A,6))%24,F=s(I).getHours()-O;F>1&&(F=-1),I-=F*r,k=(k+A)%24;let H=w[w.length-1];Dt((I-H)/f,3)*M>=.7&&w.push(I)}else w.push(I)}return w}}return[v,u,p]}const[o_,s_,a_]=Kp(1),[l_,c_,u_]=Kp(.001);Ps(2,-53,53,[1]);function Qp(n,e){return n.map(t=>t.map((r,d)=>d==0||d==8||r==null?r:e(d==1||t[8]==0?r:t[1]+r)))}function Zp(n,e){return(t,r,d,h,g)=>{let v=e.find(o=>g>=o[0])||e[e.length-1],u,p,s,l,a,c;return r.map(o=>{let f=n(o),y=f.getFullYear(),w=f.getMonth(),x=f.getDate(),E=f.getHours(),S=f.getMinutes(),C=f.getSeconds(),b=y!=u&&v[2]||w!=p&&v[3]||x!=s&&v[4]||E!=l&&v[5]||S!=a&&v[6]||C!=c&&v[7]||v[1];return u=y,p=w,s=x,l=E,a=S,c=C,b(f)})}}function h_(n,e){let t=Mu(e);return(r,d,h,g,v)=>d.map(u=>t(n(u)))}function Ou(n,e,t){return new Date(n,e,t)}function Jp(n,e){return e(n)}const d_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Xp(n,e){return(t,r,d,h)=>h==null?bu:e(n(r))}function f_(n,e){let t=n.series[e];return t.width?t.stroke(n,e):t.points.width?t.points.stroke(n,e):null}function g_(n,e){return n.series[e].fill(n,e)}const p_={show:!0,live:!0,isolate:!1,mount:OC,markers:{show:!0,width:2,stroke:f_,fill:g_,dash:"solid"},idx:null,idxs:null,values:[]};function m_(n,e){let t=n.cursor.points,r=xr(),d=t.size(n,e);Ut(r,Os,d),Ut(r,Ds,d);let h=d/-2;Ut(r,"marginLeft",h),Ut(r,"marginTop",h);let g=t.width(n,e,d);return g&&Ut(r,"borderWidth",g),r}function y_(n,e){let t=n.series[e].points;return t._fill||t._stroke}function v_(n,e){let t=n.series[e].points;return t._stroke||t._fill}function w_(n,e){return n.series[e].points.size}const Du=[0,0];function b_(n,e,t){return Du[0]=e,Du[1]=t,Du}function hl(n,e,t,r=!0){return d=>{d.button==0&&(!r||d.target==e)&&t(d)}}function Nu(n,e,t,r=!0){return d=>{(!r||d.target==e)&&t(d)}}const x_={show:!0,x:!0,y:!0,lock:!1,move:b_,points:{one:!1,show:m_,size:w_,width:0,stroke:v_,fill:y_},bind:{mousedown:hl,mouseup:hl,click:hl,dblclick:hl,mousemove:Nu,mouseleave:Nu,mouseenter:Nu},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,r,d)=>r-d,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},em={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Fu=mn({},em,{filter:Ep}),tm=mn({},Fu,{size:10}),nm=mn({},em,{show:!1}),Pu='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"',rm="bold "+Pu,im=1.5,om={show:!0,scale:"x",stroke:vu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:rm,side:2,grid:Fu,ticks:tm,border:nm,font:Pu,lineGap:im,rotate:0},A_="Value",C_="Time",sm={show:!0,scale:"x",auto:!1,sorted:1,min:Qt,max:-1/0,idxs:[]};function __(n,e,t,r,d){return e.map(h=>h==null?"":Tu(h))}function k_(n,e,t,r,d,h,g){let v=[],u=Ii.get(d)||0;t=g?t:Dt(al(t,d),u);for(let p=t;p<=r;p=Dt(p+d,u))v.push(Object.is(p,-0)?0:p);return v}function Hu(n,e,t,r,d,h,g){const v=[],u=n.scales[n.axes[e].scale].log,p=u==10?li:$p,s=gr(p(t));d=Vo(u,s),u==10&&(d=fo[Fr(d,fo)]);let l=t,a=d*u;u==10&&(a=fo[Fr(a,fo)]);do v.push(l),l=l+d,u==10&&!Ii.has(l)&&(l=Dt(l,Ii.get(d))),l>=a&&(d=l,a=d*u,u==10&&(a=fo[Fr(a,fo)]));while(l<=r);return v}function S_(n,e,t,r,d,h,g){let v=n.scales[n.axes[e].scale].asinh,u=r>v?Hu(n,e,Pn(v,t),r,d):[v],p=r>=0&&t<=0?[0]:[];return(t<-v?Hu(n,e,Pn(v,-r),-t,d):[v]).reverse().map(s=>-s).concat(p,u)}const am=/./,$_=/[12357]/,T_=/[125]/,lm=/1/,Wu=(n,e,t,r)=>n.map((d,h)=>e==4&&d==0||h%r==0&&t.test(d.toExponential()[d<0?1:0])?d:null);function I_(n,e,t,r,d){let h=n.axes[t],g=h.scale,v=n.scales[g],u=n.valToPos,p=h._space,s=u(10,g),l=u(9,g)-s>=p?am:u(7,g)-s>=p?$_:u(5,g)-s>=p?T_:lm;if(l==lm){let a=An(u(1,g)-s);if(a<p)return Wu(e.slice().reverse(),v.distr,l,Ar(p/a)).reverse()}return Wu(e,v.distr,l,1)}function E_(n,e,t,r,d){let h=n.axes[t],g=h.scale,v=h._space,u=n.valToPos,p=An(u(1,g)-u(2,g));return p<v?Wu(e.slice().reverse(),3,am,Ar(v/p)).reverse():e}function R_(n,e,t,r){return r==null?bu:e==null?"":Tu(e)}const cm={show:!0,scale:"y",stroke:vu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:rm,side:3,grid:Fu,ticks:tm,border:nm,font:Pu,lineGap:im,rotate:0};function M_(n,e){let t=3+(n||1)*2;return Dt(t*e,3)}function L_(n,e){let{scale:t,idxs:r}=n.series[0],d=n._data[0],h=n.valToPos(d[r[0]],t,!0),g=n.valToPos(d[r[1]],t,!0),v=An(g-h),u=n.series[e],p=v/(u.points.space*_t);return r[1]-r[0]<=p}const um={scale:null,auto:!0,sorted:0,min:Qt,max:-1/0},hm=(n,e,t,r,d)=>d,dm={show:!0,auto:!0,sorted:0,gaps:hm,alpha:1,facets:[mn({},um,{scale:"x"}),mn({},um,{scale:"y"})]},fm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:hm,alpha:1,points:{show:L_,filter:null},values:null,min:Qt,max:-1/0,idxs:[],path:null,clip:null};function O_(n,e,t,r,d){return t/10}const gm={time:oC,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},D_=mn({},gm,{time:!1,ori:1}),pm={};function mm(n,e){let t=pm[n];return t||(t={key:n,plots:[],sub(r){t.plots.push(r)},unsub(r){t.plots=t.plots.filter(d=>d!=r)},pub(r,d,h,g,v,u,p){for(let s=0;s<t.plots.length;s++)t.plots[s]!=d&&t.plots[s].pub(r,d,h,g,v,u,p)}},n!=null&&(pm[n]=t)),t}const Ko=1,ju=2;function go(n,e,t){const r=n.mode,d=n.series[e],h=r==2?n._data[e]:n._data,g=n.scales,v=n.bbox;let u=h[0],p=r==2?h[1]:h[e],s=r==2?g[d.facets[0].scale]:g[n.series[0].scale],l=r==2?g[d.facets[1].scale]:g[d.scale],a=v.left,c=v.top,o=v.width,f=v.height,y=n.valToPosH,w=n.valToPosV;return s.ori==0?t(d,u,p,s,l,y,w,a,c,o,f,fl,Qo,pl,wm,xm):t(d,u,p,s,l,w,y,c,a,f,o,gl,Zo,Uu,bm,Am)}function Bu(n,e){let t=0,r=0,d=Ct(n.bands,Ru);for(let h=0;h<d.length;h++){let g=d[h];g.series[0]==e?t=g.dir:g.series[1]==e&&(g.dir==1?r|=1:r|=2)}return[t,r==1?-1:r==2?1:r==3?2:0]}function N_(n,e,t,r,d){let h=n.mode,g=n.series[e],v=h==2?g.facets[1].scale:g.scale,u=n.scales[v];return d==-1?u.min:d==1?u.max:u.distr==3?u.dir==1?u.min:u.max:0}function ci(n,e,t,r,d,h){return go(n,e,(g,v,u,p,s,l,a,c,o,f,y)=>{let w=g.pxRound;const x=p.dir*(p.ori==0?1:-1),E=p.ori==0?Qo:Zo;let S,C;x==1?(S=t,C=r):(S=r,C=t);let b=w(l(v[S],p,f,c)),T=w(a(u[S],s,y,o)),R=w(l(v[C],p,f,c)),L=w(a(h==1?s.max:s.min,s,y,o)),I=new Path2D(d);return E(I,R,L),E(I,b,L),E(I,b,T),I})}function dl(n,e,t,r,d,h){let g=null;if(n.length>0){g=new Path2D;const v=e==0?pl:Uu;let u=t;for(let l=0;l<n.length;l++){let a=n[l];if(a[1]>a[0]){let c=a[0]-u;c>0&&v(g,u,r,c,r+h),u=a[1]}}let p=t+d-u,s=10;p>0&&v(g,u,r-s/2,p,r+h+s)}return g}function F_(n,e,t){let r=n[n.length-1];r&&r[0]==e?r[1]=t:n.push([e,t])}function zu(n,e,t,r,d,h,g){let v=[],u=n.length;for(let p=d==1?t:r;p>=t&&p<=r;p+=d)if(e[p]===null){let s=p,l=p;if(d==1)for(;++p<=r&&e[p]===null;)l=p;else for(;--p>=t&&e[p]===null;)l=p;let a=h(n[s]),c=l==s?a:h(n[l]),o=s-d;a=g<=0&&o>=0&&o<u?h(n[o]):a;let f=l+d;c=g>=0&&f>=0&&f<u?h(n[f]):c,c>=a&&v.push([a,c])}return v}function ym(n){return n==0?Ip:n==1?Cn:e=>ho(e,n)}function vm(n){let e=n==0?fl:gl,t=n==0?(d,h,g,v,u,p)=>{d.arcTo(h,g,v,u,p)}:(d,h,g,v,u,p)=>{d.arcTo(g,h,u,v,p)},r=n==0?(d,h,g,v,u)=>{d.rect(h,g,v,u)}:(d,h,g,v,u)=>{d.rect(g,h,u,v)};return(d,h,g,v,u,p=0,s=0)=>{p==0&&s==0?r(d,h,g,v,u):(p=Cr(p,v/2,u/2),s=Cr(s,v/2,u/2),e(d,h+p,g),t(d,h+v,g,h+v,g+u,p),t(d,h+v,g+u,h,g+u,s),t(d,h,g+u,h,g,s),t(d,h,g,h+v,g,p),d.closePath())}}const fl=(n,e,t)=>{n.moveTo(e,t)},gl=(n,e,t)=>{n.moveTo(t,e)},Qo=(n,e,t)=>{n.lineTo(e,t)},Zo=(n,e,t)=>{n.lineTo(t,e)},pl=vm(0),Uu=vm(1),wm=(n,e,t,r,d,h)=>{n.arc(e,t,r,d,h)},bm=(n,e,t,r,d,h)=>{n.arc(t,e,r,d,h)},xm=(n,e,t,r,d,h,g)=>{n.bezierCurveTo(e,t,r,d,h,g)},Am=(n,e,t,r,d,h,g)=>{n.bezierCurveTo(t,e,d,r,g,h)};function Cm(n){return(e,t,r,d,h)=>go(e,t,(g,v,u,p,s,l,a,c,o,f,y)=>{let{pxRound:w,points:x}=g,E,S;p.ori==0?(E=fl,S=wm):(E=gl,S=bm);const C=Dt(x.width*_t,3);let b=(x.size-x.width)/2*_t,T=Dt(b*2,3),R=new Path2D,L=new Path2D,{left:I,top:N,width:k,height:A}=e.bbox;pl(L,I-T,N-T,k+T*2,A+T*2);const _=M=>{if(u[M]!=null){let O=w(l(v[M],p,f,c)),F=w(a(u[M],s,y,o));E(R,O+b,F),S(R,O,F,b,0,sl*2)}};if(h)h.forEach(_);else for(let M=r;M<=d;M++)_(M);return{stroke:C>0?R:null,fill:R,clip:L,flags:Ko|ju}})}function _m(n){return(e,t,r,d,h,g)=>{r!=d&&(h!=r&&g!=r&&n(e,t,r),h!=d&&g!=d&&n(e,t,d),n(e,t,g))}}const P_=_m(Qo),H_=_m(Zo);function km(n){const e=Ct(n==null?void 0:n.alignGaps,0);return(t,r,d,h)=>go(t,r,(g,v,u,p,s,l,a,c,o,f,y)=>{let w=g.pxRound,x=X=>w(l(X,p,f,c)),E=X=>w(a(X,s,y,o)),S,C;p.ori==0?(S=Qo,C=P_):(S=Zo,C=H_);const b=p.dir*(p.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Ko},R=T.stroke;let L=Qt,I=-1/0,N,k,A,_=x(v[b==1?d:h]),M=Uo(u,d,h,1*b),O=Uo(u,d,h,-1*b),F=x(v[M]),H=x(v[O]),z=!1;for(let X=b==1?d:h;X>=d&&X<=h;X+=b){let G=x(v[X]),Z=u[X];G==_?Z!=null?(k=E(Z),L==Qt&&(S(R,G,k),N=k),L=Cr(k,L),I=Pn(k,I)):Z===null&&(z=!0):(L!=Qt&&(C(R,_,L,I,N,k),A=_),Z!=null?(k=E(Z),S(R,G,k),L=I=N=k):(L=Qt,I=-1/0,Z===null&&(z=!0)),_=G)}L!=Qt&&L!=I&&A!=_&&C(R,_,L,I,N,k);let[V,q]=Bu(t,r);if(g.fill!=null||V!=0){let X=T.fill=new Path2D(R),G=g.fillTo(t,r,g.min,g.max,V),Z=E(G);S(X,H,Z),S(X,F,Z)}if(!g.spanGaps){let X=[];z&&X.push(...zu(v,u,d,h,b,x,e)),T.gaps=X=g.gaps(t,r,d,h,X),T.clip=dl(X,p.ori,c,o,f,y)}return q!=0&&(T.band=q==2?[ci(t,r,d,h,R,-1),ci(t,r,d,h,R,1)]:ci(t,r,d,h,R,q)),T})}function W_(n){const e=Ct(n.align,1),t=Ct(n.ascDesc,!1),r=Ct(n.alignGaps,0),d=Ct(n.extend,!1);return(h,g,v,u)=>go(h,g,(p,s,l,a,c,o,f,y,w,x,E)=>{let S=p.pxRound,{left:C,width:b}=h.bbox,T=V=>S(o(V,a,x,y)),R=V=>S(f(V,c,E,w)),L=a.ori==0?Qo:Zo;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Ko},N=I.stroke,k=a.dir*(a.ori==0?1:-1);v=Uo(l,v,u,1),u=Uo(l,v,u,-1);let A=R(l[k==1?v:u]),_=T(s[k==1?v:u]),M=_,O=_;d&&e==-1&&(O=C,L(N,O,A)),L(N,_,A);for(let V=k==1?v:u;V>=v&&V<=u;V+=k){let q=l[V];if(q==null)continue;let X=T(s[V]),G=R(q);e==1?L(N,X,A):L(N,M,G),L(N,X,G),A=G,M=X}let F=M;d&&e==1&&(F=C+b,L(N,F,A));let[H,z]=Bu(h,g);if(p.fill!=null||H!=0){let V=I.fill=new Path2D(N),q=p.fillTo(h,g,p.min,p.max,H),X=R(q);L(V,F,X),L(V,O,X)}if(!p.spanGaps){let V=[];V.push(...zu(s,l,v,u,k,T,r));let q=p.width*_t/2,X=t||e==1?q:-q,G=t||e==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),I.gaps=V=p.gaps(h,g,v,u,V),I.clip=dl(V,a.ori,y,w,x,E)}return z!=0&&(I.band=z==2?[ci(h,g,v,u,N,-1),ci(h,g,v,u,N,1)]:ci(h,g,v,u,N,z)),I})}function Sm(n,e,t,r,d,h,g=Qt){if(n.length>1){let v=null;for(let u=0,p=1/0;u<n.length;u++)if(e[u]!==void 0){if(v!=null){let s=An(n[u]-n[v]);s<p&&(p=s,g=An(t(n[u],r,d,h)-t(n[v],r,d,h)))}v=u}}return g}function j_(n){n=n||Hs;const e=Ct(n.size,[.6,Qt,1]),t=n.align||0,r=n.gap||0;let d=n.radius;d=d==null?[0,0]:typeof d=="number"?[d,0]:d;const h=wt(d),g=1-e[0],v=Ct(e[1],Qt),u=Ct(e[2],1),p=Ct(n.disp,Hs),s=Ct(n.each,c=>{}),{fill:l,stroke:a}=p;return(c,o,f,y)=>go(c,o,(w,x,E,S,C,b,T,R,L,I,N)=>{let k=w.pxRound,A=t,_=r*_t,M=v*_t,O=u*_t,F,H;S.ori==0?[F,H]=h(c,o):[H,F]=h(c,o);const z=S.dir*(S.ori==0?1:-1);let V=S.ori==0?pl:Uu,q=S.ori==0?s:(Ve,ce,Ee,De,Ye,Qe,pt)=>{s(Ve,ce,Ee,Ye,De,pt,Qe)},X=Ct(c.bands,Ru).find(Ve=>Ve.series[0]==o),G=X!=null?X.dir:0,Z=w.fillTo(c,o,w.min,w.max,G),re=k(T(Z,C,N,L)),J,ae,me,ve=I,ge=k(w.width*_t),Se=!1,lt=null,jt=null,gt=null,yt=null;l!=null&&(ge==0||a!=null)&&(Se=!0,lt=l.values(c,o,f,y),jt=new Map,new Set(lt).forEach(Ve=>{Ve!=null&&jt.set(Ve,new Path2D)}),ge>0&&(gt=a.values(c,o,f,y),yt=new Map,new Set(gt).forEach(Ve=>{Ve!=null&&yt.set(Ve,new Path2D)})));let{x0:dn,size:Nt}=p;if(dn!=null&&Nt!=null){A=1,x=dn.values(c,o,f,y),dn.unit==2&&(x=x.map(ce=>c.posToVal(R+ce*I,S.key,!0)));let Ve=Nt.values(c,o,f,y);Nt.unit==2?ae=Ve[0]*I:ae=b(Ve[0],S,I,R)-b(0,S,I,R),ve=Sm(x,E,b,S,I,R,ve),me=ve-ae+_}else ve=Sm(x,E,b,S,I,R,ve),me=ve*g+_,ae=ve-me;me<1&&(me=0),ge>=ae/2&&(ge=0),me<5&&(k=Ip);let Jt=me>0,Zr=ve-me-(Jt?ge:0);ae=k(Eu(Zr,O,M)),J=(A==0?ae/2:A==z?0:ae)-A*z*((A==0?_/2:0)+(Jt?ge/2:0));const _n={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},rn=Se?null:new Path2D;let We=null;if(X!=null)We=c.data[X.series[1]];else{let{y0:Ve,y1:ce}=p;Ve!=null&&ce!=null&&(E=ce.values(c,o,f,y),We=Ve.values(c,o,f,y))}let ze=F*ae,on=H*ae;for(let Ve=z==1?f:y;Ve>=f&&Ve<=y;Ve+=z){let ce=E[Ve];if(ce==null)continue;if(We!=null){let ht=We[Ve]??0;if(ce-ht==0)continue;re=T(ht,C,N,L)}let Ee=S.distr!=2||p!=null?x[Ve]:Ve,De=b(Ee,S,I,R),Ye=T(Ct(ce,Z),C,N,L),Qe=k(De-J),pt=k(Pn(Ye,re)),mt=k(Cr(Ye,re)),ut=pt-mt;if(ce!=null){let ht=ce<0?on:ze,ot=ce<0?ze:on;Se?(ge>0&>[Ve]!=null&&V(yt.get(gt[Ve]),Qe,mt+gr(ge/2),ae,Pn(0,ut-ge),ht,ot),lt[Ve]!=null&&V(jt.get(lt[Ve]),Qe,mt+gr(ge/2),ae,Pn(0,ut-ge),ht,ot)):V(rn,Qe,mt+gr(ge/2),ae,Pn(0,ut-ge),ht,ot),q(c,o,Ve,Qe-ge/2,mt,ae+ge,ut)}}return ge>0?_n.stroke=Se?yt:rn:Se||(_n._fill=w.width==0?w._fill:w._stroke??w._fill,_n.width=0),_n.fill=Se?jt:rn,_n})}function B_(n,e){const t=Ct(e==null?void 0:e.alignGaps,0);return(r,d,h,g)=>go(r,d,(v,u,p,s,l,a,c,o,f,y,w)=>{let x=v.pxRound,E=F=>x(a(F,s,y,o)),S=F=>x(c(F,l,w,f)),C,b,T;s.ori==0?(C=fl,T=Qo,b=xm):(C=gl,T=Zo,b=Am);const R=s.dir*(s.ori==0?1:-1);h=Uo(p,h,g,1),g=Uo(p,h,g,-1);let L=E(u[R==1?h:g]),I=L,N=[],k=[];for(let F=R==1?h:g;F>=h&&F<=g;F+=R)if(p[F]!=null){let H=u[F],z=E(H);N.push(I=z),k.push(S(p[F]))}const A={stroke:n(N,k,C,T,b,x),fill:null,clip:null,band:null,gaps:null,flags:Ko},_=A.stroke;let[M,O]=Bu(r,d);if(v.fill!=null||M!=0){let F=A.fill=new Path2D(_),H=v.fillTo(r,d,v.min,v.max,M),z=S(H);T(F,I,z),T(F,L,z)}if(!v.spanGaps){let F=[];F.push(...zu(u,p,h,g,R,E,t)),A.gaps=F=v.gaps(r,d,h,g,F),A.clip=dl(F,s.ori,o,f,y,w)}return O!=0&&(A.band=O==2?[ci(r,d,h,g,_,-1),ci(r,d,h,g,_,1)]:ci(r,d,h,g,_,O)),A})}function z_(n){return B_(U_,n)}function U_(n,e,t,r,d,h){const g=n.length;if(g<2)return null;const v=new Path2D;if(t(v,n[0],e[0]),g==2)r(v,n[1],e[1]);else{let u=Array(g),p=Array(g-1),s=Array(g-1),l=Array(g-1);for(let a=0;a<g-1;a++)s[a]=e[a+1]-e[a],l[a]=n[a+1]-n[a],p[a]=s[a]/l[a];u[0]=p[0];for(let a=1;a<g-1;a++)p[a]===0||p[a-1]===0||p[a-1]>0!=p[a]>0?u[a]=0:(u[a]=3*(l[a-1]+l[a])/((2*l[a]+l[a-1])/p[a-1]+(l[a]+2*l[a-1])/p[a]),isFinite(u[a])||(u[a]=0));u[g-1]=p[g-2];for(let a=0;a<g-1;a++)d(v,n[a]+l[a]/3,e[a]+u[a]*l[a]/3,n[a+1]-l[a]/3,e[a+1]-u[a+1]*l[a]/3,n[a+1],e[a+1])}return v}const Vu=new Set;function $m(){for(let n of Vu)n.syncRect(!0)}Bo&&(co(_C,zo,$m),co(kC,zo,$m,!0),co(nl,zo,()=>{Hn.pxRatio=_t}));const V_=km(),q_=Cm();function Tm(n,e,t,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((d,h)=>qu(d,h,e,t))}function G_(n,e){return n.map((t,r)=>r==0?{}:mn({},e,t))}function qu(n,e,t,r){return mn({},e==0?t:r,n)}function Im(n,e,t){return e==null?qo:[e,t]}const Y_=Im;function K_(n,e,t){return e==null?qo:ol(e,t,$u,!0)}function Em(n,e,t,r){return e==null?qo:il(e,t,n.scales[r].log,!1)}const Q_=Em;function Rm(n,e,t,r){return e==null?qo:Su(e,t,n.scales[r].log,!1)}const Z_=Rm;function J_(n,e,t,r,d){let h=Pn(Tp(n),Tp(e)),g=e-n,v=Fr(d/r*g,t);do{let u=t[v],p=r*u/g;if(p>=d&&h+(u<5?Ii.get(u):0)<=17)return[u,p]}while(++v<t.length);return[0,0]}function Mm(n){let e,t;return n=n.replace(/(\d+)px/,(r,d)=>(e=Cn((t=+d)*_t))+"px"),[n,e,t]}function X_(n){n.show&&[n.font,n.labelFont].forEach(e=>{let t=Dt(e[2]*_t,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t})}function Hn(n,e,t){const r={mode:Ct(n.mode,1)},d=r.mode;function h(P,j){return((j.distr==3?li(P>0?P:j.clamp(r,P,j.min,j.max,j.key)):j.distr==4?Iu(P,j.asinh):j.distr==100?j.fwd(P):P)-j._min)/(j._max-j._min)}function g(P,j,Y,K){let te=h(P,j);return K+Y*(j.dir==-1?1-te:te)}function v(P,j,Y,K){let te=h(P,j);return K+Y*(j.dir==-1?te:1-te)}function u(P,j,Y,K){return j.ori==0?g(P,j,Y,K):v(P,j,Y,K)}r.valToPosH=g,r.valToPosV=v;let p=!1;r.status=0;const s=r.root=xr(sC);if(n.id!=null&&(s.id=n.id),dr(s,n.class),n.title){let P=xr(cC,s);P.textContent=n.title}const l=Nr("canvas"),a=r.ctx=l.getContext("2d"),c=xr(uC,s);co("click",c,P=>{P.target===f&&(Be!=Wi||Bt!=ji)&&Sn.click(r,P)},!0);const o=r.under=xr(hC,c);c.appendChild(l);const f=r.over=xr(dC,c);n=Go(n);const y=+Ct(n.pxAlign,1),w=ym(y);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(r,n)||n)});const x=n.ms||.001,E=r.series=d==1?Tm(n.series||[],sm,fm,!1):G_(n.series||[null],dm),S=r.axes=Tm(n.axes||[],om,cm,!0),C=r.scales={},b=r.bands=n.bands||[];b.forEach(P=>{P.fill=wt(P.fill||null),P.dir=Ct(P.dir,-1)});const T=d==2?E[1].facets[0].scale:E[0].scale,R={axes:hd,series:Bl},L=(n.drawOrder||["axes","series"]).map(P=>R[P]);function I(P){let j=C[P];if(j==null){let Y=(n.scales||Hs)[P]||Hs;if(Y.from!=null)I(Y.from),C[P]=mn({},C[Y.from],Y,{key:P});else{j=C[P]=mn({},P==T?gm:D_,Y),j.key=P;let K=j.time,te=j.range,oe=Ei(te);if((P!=T||d==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?_p:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?_p:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&ll(te))){let de=te;te=(we,Ce,ke)=>Ce==null?qo:ol(Ce,ke,de)}j.range=wt(te||(K?Y_:P==T?j.distr==3?Q_:j.distr==4?Z_:Im:j.distr==3?Em:j.distr==4?Rm:K_)),j.auto=wt(oe?!1:j.auto),j.clamp=wt(j.clamp||O_),j._min=j._max=null}}}I("x"),I("y"),d==1&&E.forEach(P=>{I(P.scale)}),S.forEach(P=>{I(P.scale)});for(let P in n.scales)I(P);const N=C[T],k=N.distr;let A,_;N.ori==0?(dr(s,aC),A=g,_=v):(dr(s,lC),A=v,_=g);const M={};for(let P in C){let j=C[P];(j.min!=null||j.max!=null)&&(M[P]={min:j.min,max:j.max},j.min=j.max=null)}const O=n.tzDate||(P=>new Date(Cn(P/x))),F=n.fmtDate||Mu,H=x==1?a_(O):u_(O),z=Zp(O,Qp(x==1?s_:c_,F)),V=Xp(O,Jp(d_,F)),q=[],X=r.legend=mn({},p_,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=wt(Z.width),Z.dash=wt(Z.dash),Z.stroke=wt(Z.stroke),Z.fill=wt(Z.fill);let re,J,ae,me=[],ve=[],ge,Se=!1,lt={};if(X.live){const P=E[1]?E[1].values:null;Se=P!=null,ge=Se?P(r,1,0):{_:0};for(let j in ge)lt[j]=bu}if(G)if(re=Nr("table",vC,s),ae=Nr("tbody",null,re),X.mount(r,re),Se){J=Nr("thead",null,re,ae);let P=Nr("tr",null,J);Nr("th",null,P);for(var jt in ge)Nr("th",up,P).textContent=jt}else dr(re,bC),X.live&&dr(re,wC);const gt={show:!0},yt={show:!1};function dn(P,j){if(j==0&&(Se||!X.live||d==2))return qo;let Y=[],K=Nr("tr",xC,ae,ae.childNodes[j]);dr(K,P.class),P.show||dr(K,lo);let te=Nr("th",null,K);if(Z.show){let we=xr(AC,te);if(j>0){let Ce=Z.width(r,j);Ce&&(we.style.border=Ce+"px "+Z.dash(r,j)+" "+Z.stroke(r,j)),we.style.background=Z.fill(r,j)}}let oe=xr(up,te);oe.textContent=P.label,j>0&&(Z.show||(oe.style.color=P.width>0?Z.stroke(r,j):Z.fill(r,j)),Jt("click",te,we=>{if(je._lock)return;hi(we);let Ce=E.indexOf(P);if((we.ctrlKey||we.metaKey)!=X.isolate){let ke=E.some((Te,Re)=>Re>0&&Re!=Ce&&Te.show);E.forEach((Te,Re)=>{Re>0&&On(Re,ke?Re==Ce?gt:yt:gt,!0,Xt.setSeries)})}else On(Ce,{show:!P.show},!0,Xt.setSeries)},!1),Xr&&Jt(pp,te,we=>{je._lock||(hi(we),On(E.indexOf(P),pi,!0,Xt.setSeries))},!1));for(var de in ge){let we=Nr("td",CC,K);we.textContent="--",Y.push(we)}return[K,Y]}const Nt=new Map;function Jt(P,j,Y,K=!0){const te=Nt.get(j)||{},oe=je.bind[P](r,j,Y,K);oe&&(co(P,j,te[P]=oe),Nt.set(j,te))}function Zr(P,j,Y){const K=Nt.get(j)||{};for(let te in K)(P==null||te==P)&&(ku(te,j,K[te]),delete K[te]);P==null&&Nt.delete(j)}let _n=0,rn=0,We=0,ze=0,on=0,Ve=0,ce=on,Ee=Ve,De=We,Ye=ze,Qe=0,pt=0,mt=0,ut=0;r.bbox={};let ht=!1,ot=!1,Vt=!1,jn=!1,ui=!1,rr=!1;function Ks(P,j,Y){(Y||P!=r.width||j!=r.height)&&Qs(P,j),fi(!1),Vt=!0,ot=!0,Pi()}function Qs(P,j){r.width=_n=We=P,r.height=rn=ze=j,on=Ve=0,sd(),ad();let Y=r.bbox;Qe=Y.left=ho(on*_t,.5),pt=Y.top=ho(Ve*_t,.5),mt=Y.width=ho(We*_t,.5),ut=Y.height=ho(ze*_t,.5)}const Nl=3;function id(){let P=!1,j=0;for(;!P;){j++;let Y=Vl(j),K=ql(j);P=j==Nl||Y&&K,P||(Qs(r.width,r.height),ot=!0)}}function od({width:P,height:j}){Ks(P,j)}r.setSize=od;function sd(){let P=!1,j=!1,Y=!1,K=!1;S.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:we}=te,Ce=de%2,ke=te.label!=null?te.labelSize:0,Te=we+ke;Te>0&&(Ce?(We-=Te,de==3?(on+=Te,K=!0):Y=!0):(ze-=Te,de==0?(Ve+=Te,P=!0):j=!0))}}),di[0]=P,di[1]=Y,di[2]=j,di[3]=K,We-=ei[1]+ei[3],on+=ei[3],ze-=ei[2]+ei[0],Ve+=ei[0]}function ad(){let P=on+We,j=Ve+ze,Y=on,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}}S.forEach((oe,de)=>{if(oe.show&&oe._show){let we=oe.side;oe._pos=te(we,oe._size),oe.label!=null&&(oe._lpos=te(we,oe.labelSize))}})}const je=r.cursor=mn({},x_,{drag:{y:d==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=wt(P.prox),K=P.bias??(P.bias=0);je.dataIdx=(te,oe,de,we)=>{if(oe==0)return de;let Ce=de,ke=Y(te,oe,de,we)??Qt,Te=ke>=0&&ke<Qt,Re=N.ori==0?We:ze,Ze=je.left,Rt=e[0],st=e[oe];if(j.has(st[de])){Ce=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 $t=Ke==null?-1/0:A(Rt[Ke],N,Re,0),en=Xe==null?1/0:A(Rt[Xe],N,Re,0),Kt=Ze-$t,Pt=en-Ze;Kt<=Pt?Kt<=ke&&(Ce=Ke):Pt<=ke&&(Ce=Xe)}else Ce=Xe==null?Ke:Ke==null?Xe:de-Ke<=Xe-de?Ke:Xe}else Te&&An(Ze-A(Rt[de],N,Re,0))>ke&&(Ce=null);return Ce}}const hi=P=>{je.event=P};je.idxs=q,je._lock=!1;let Ln=je.points;Ln.show=wt(Ln.show),Ln.size=wt(Ln.size),Ln.stroke=wt(Ln.stroke),Ln.width=wt(Ln.width),Ln.fill=wt(Ln.fill);const Jr=r.focus=mn({},n.focus||{alpha:.3},je.focus),Xr=Jr.prox>=0,Ri=Xr&&Ln.one;let Bn=[],Mi=[],Li=[];function Fl(P,j){let Y=Ln.show(r,j);if(Y)return dr(Y,yC),dr(Y,P.class),Gr(Y,-10,-10,We,ze),f.insertBefore(Y,Bn[j]),Y}function Pl(P,j){if(d==1||j>0){let Y=d==1&&C[P.scale].time,K=P.value;P.value=Y?Np(K)?Xp(O,Jp(K,F)):K||V:K||R_,P.label=P.label||(Y?C_:A_)}if(Ri||j>0){P.width=P.width==null?1:P.width,P.paths=P.paths||V_||DC,P.fillTo=wt(P.fillTo||N_),P.pxAlign=+Ct(P.pxAlign,y),P.pxRound=ym(P.pxAlign),P.stroke=wt(P.stroke||null),P.fill=wt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=M_(Pn(1,P.width),1),K=P.points=mn({},{size:Y,width:Pn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:q_,_stroke:null,_fill:null},P.points);K.show=wt(K.show),K.filter=wt(K.filter),K.fill=wt(K.fill),K.stroke=wt(K.stroke),K.paths=wt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=dn(P,j);me.splice(j,0,Y[0]),ve.splice(j,0,Y[1]),X.values.push(null)}if(je.show){q.splice(j,0,null);let Y=null;Ri?j==0&&(Y=Fl(P,j)):j>0&&(Y=Fl(P,j)),Bn.splice(j,0,Y),Mi.splice(j,0,0),Li.splice(j,0,0)}sn("addSeries",j)}function ld(P,j){j=j??E.length,P=d==1?qu(P,j,sm,fm):qu(P,j,{},dm),E.splice(j,0,P),Pl(E[j],j)}r.addSeries=ld;function cd(P){if(E.splice(P,1),G){X.values.splice(P,1),ve.splice(P,1);let j=me.splice(P,1)[0];Zr(null,j.firstChild),j.remove()}je.show&&(q.splice(P,1),Bn.splice(P,1)[0].remove(),Mi.splice(P,1),Li.splice(P,1)),sn("delSeries",P)}r.delSeries=cd;const di=[!1,!1,!1,!1];function ud(P,j){if(P._show=P.show,P.show){let Y=P.side%2,K=C[P.scale];K==null&&(P.scale=Y?E[1].scale:T,K=C[P.scale]);let te=K.time;P.size=wt(P.size),P.space=wt(P.space),P.rotate=wt(P.rotate),Ei(P.incrs)&&P.incrs.forEach(de=>{!Ii.has(de)&&Ii.set(de,Op(de))}),P.incrs=wt(P.incrs||(K.distr==2?r_:te?x==1?o_:l_:fo)),P.splits=wt(P.splits||(te&&K.distr==1?H:K.distr==3?Hu:K.distr==4?S_:k_)),P.stroke=wt(P.stroke),P.grid.stroke=wt(P.grid.stroke),P.ticks.stroke=wt(P.ticks.stroke),P.border.stroke=wt(P.border.stroke);let oe=P.values;P.values=Ei(oe)&&!Ei(oe[0])?wt(oe):te?Ei(oe)?Zp(O,Qp(oe,F)):Np(oe)?h_(O,oe):oe||z:oe||__,P.filter=wt(P.filter||(K.distr>=3&&K.log==10?I_:K.distr==3&&K.log==2?E_:Ep)),P.font=Mm(P.font),P.labelFont=Mm(P.labelFont),P._size=P.size(r,null,j,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(di[j]=!0,P._el=xr(fC,c))}}function Oi(P,j,Y,K){let[te,oe,de,we]=Y,Ce=j%2,ke=0;return Ce==0&&(we||oe)&&(ke=j==0&&!te||j==2&&!de?Cn(om.size/3):0),Ce==1&&(te||de)&&(ke=j==1&&!oe||j==3&&!we?Cn(cm.size/2):0),ke}const Hl=r.padding=(n.padding||[Oi,Oi,Oi,Oi]).map(P=>wt(Ct(P,Oi))),ei=r._padding=Hl.map((P,j)=>P(r,j,di,0));let kn,yn=null,vn=null;const ts=d==1?E[0].idxs:null;let zn=null,vo=!1;function wo(P,j){if(e=P??[],r.data=r._data=e,d==2){kn=0;for(let Y=1;Y<E.length;Y++)kn+=e[Y][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),zn=e[0],kn=zn.length;let Y=e;if(k==2){Y=e.slice();let K=Y[0]=Array(kn);for(let te=0;te<kn;te++)K[te]=te}r._data=e=Y}if(fi(!0),sn("setData"),k==2&&(Vt=!0),j!==!1){let Y=N;Y.auto(r,vo)?Zs():kr(T,Y.min,Y.max),jn=jn||je.left>=0,rr=!0,Pi()}}r.setData=wo;function Zs(){vo=!0;let P,j;d==1&&(kn>0?(yn=ts[0]=0,vn=ts[1]=kn-1,P=e[0][yn],j=e[0][vn],k==2?(P=yn,j=vn):P==j&&(k==3?[P,j]=il(P,P,N.log,!1):k==4?[P,j]=Su(P,P,N.log,!1):N.time?j=P+Cn(86400/x):[P,j]=ol(P,j,$u,!0))):(yn=ts[0]=P=null,vn=ts[1]=j=null)),kr(T,P,j)}let ns,Di,rs,is,os,Js,Xs,ea,ta,_r;function na(P,j,Y,K,te,oe){P??(P=dp),Y??(Y=Ru),K??(K="butt"),te??(te=dp),oe??(oe="round"),P!=ns&&(a.strokeStyle=ns=P),te!=Di&&(a.fillStyle=Di=te),j!=rs&&(a.lineWidth=rs=j),oe!=os&&(a.lineJoin=os=oe),K!=Js&&(a.lineCap=Js=K),Y!=is&&a.setLineDash(is=Y)}function ra(P,j,Y,K){j!=Di&&(a.fillStyle=Di=j),P!=Xs&&(a.font=Xs=P),Y!=ea&&(a.textAlign=ea=Y),K!=ta&&(a.textBaseline=ta=K)}function bo(P,j,Y,K,te=0){if(K.length>0&&P.auto(r,vo)&&(j==null||j.min==null)){let oe=Ct(yn,0),de=Ct(vn,K.length-1),we=Y.min==null?P.distr==3?IC(K,oe,de):TC(K,oe,de,te):[Y.min,Y.max];P.min=Cr(P.min,Y.min=we[0]),P.max=Pn(P.max,Y.max=we[1])}}const Wl={min:null,max:null};function jl(){for(let K in C){let te=C[K];M[K]==null&&(te.min==null||M[T]!=null&&te.auto(r,vo))&&(M[K]=Wl)}for(let K in C){let te=C[K];M[K]==null&&te.from!=null&&M[te.from]!=null&&(M[K]=Wl)}M[T]!=null&&fi(!0);let P={};for(let K in M){let te=M[K];if(te!=null){let oe=P[K]=Go(C[K],PC);if(te.min!=null)mn(oe,te);else if(K!=T||d==2)if(kn==0&&oe.from==null){let de=oe.range(r,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=Qt,oe.max=-1/0}}if(kn>0){E.forEach((K,te)=>{if(d==1){let oe=K.scale,de=M[oe];if(de==null)return;let we=P[oe];if(te==0){let Ce=we.range(r,we.min,we.max,oe);we.min=Ce[0],we.max=Ce[1],yn=Fr(we.min,e[0]),vn=Fr(we.max,e[0]),vn-yn>1&&(e[0][yn]<we.min&&yn++,e[0][vn]>we.max&&vn--),K.min=zn[yn],K.max=zn[vn]}else K.show&&K.auto&&bo(we,de,K,e[te],K.sorted);K.idxs[0]=yn,K.idxs[1]=vn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,we=oe.scale,Ce=de.scale,[ke,Te]=e[te],Re=P[we],Ze=P[Ce];Re!=null&&bo(Re,M[we],oe,ke,oe.sorted),Ze!=null&&bo(Ze,M[Ce],de,Te,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=M[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(r,te.min==Qt?null:te.min,te.max==-1/0?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(r,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=C[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?li(oe.min):de==4?Iu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?li(oe.max):de==4?Iu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,j[K]=Y=!0}}if(Y){E.forEach((K,te)=>{d==2?te>0&&j.y&&(K._paths=null):j[K.scale]&&(K._paths=null)});for(let K in j)Vt=!0,sn("setScale",K);je.show&&je.left>=0&&(jn=rr=!0)}for(let K in M)M[K]=null}function ss(P){let j=Eu(yn-1,0,kn-1),Y=Eu(vn+1,0,kn-1);for(;P[j]==null&&j>0;)j--;for(;P[Y]==null&&Y<kn-1;)Y++;return[j,Y]}function Bl(){kn>0&&(E.forEach((P,j)=>{if(j>0&&P.show&&(zl(j,!1),zl(j,!0),P._paths==null)){_r!=P.alpha&&(a.globalAlpha=_r=P.alpha);let Y=d==2?[0,e[j][0].length-1]:ss(e[j]);P._paths=P.paths(r,j,Y[0],Y[1]),_r!=1&&(a.globalAlpha=_r=1)}}),E.forEach((P,j)=>{if(j>0&&P.show){_r!=P.alpha&&(a.globalAlpha=_r=P.alpha),P._paths!=null&&ia(j,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(r,j,yn,vn,Y),te=P.points.filter(r,j,K,Y);(K||te)&&(P.points._paths=P.points.paths(r,j,yn,vn,te),ia(j,!0))}_r!=1&&(a.globalAlpha=_r=1),sn("drawSeries",j)}}))}function zl(P,j){let Y=j?E[P].points:E[P];Y._stroke=Y.stroke(r,P),Y._fill=Y.fill(r,P)}function ia(P,j){let Y=j?E[P].points:E[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:we=Y._stroke,_fill:Ce=Y._fill,_width:ke=Y.width}=Y._paths;ke=Dt(ke*_t,3);let Te=null,Re=ke%2/2;j&&Ce==null&&(Ce=ke>0?"#fff":we);let Ze=Y.pxAlign==1&&Re>0;if(Ze&&a.translate(Re,Re),!j){let Rt=Qe-ke/2,st=pt-ke/2,Ke=mt+ke,Xe=ut+ke;Te=new Path2D,Te.rect(Rt,st,Ke,Xe)}j?oa(we,ke,Y.dash,Y.cap,Ce,K,te,de,oe):Ul(P,we,ke,Y.dash,Y.cap,Ce,K,te,de,Te,oe),Ze&&a.translate(-Re,-Re)}function Ul(P,j,Y,K,te,oe,de,we,Ce,ke,Te){let Re=!1;Ce!=0&&b.forEach((Ze,Rt)=>{if(Ze.series[0]==P){let st=E[Ze.series[1]],Ke=e[Ze.series[1]],Xe=(st._paths||Hs).band;Ei(Xe)&&(Xe=Ze.dir==1?Xe[0]:Xe[1]);let Ne,$t=null;st.show&&Xe&&RC(Ke,yn,vn)?($t=Ze.fill(r,Rt)||oe,Ne=st._paths.clip):Xe=null,oa(j,Y,K,te,$t,de,we,Ce,ke,Te,Ne,Xe),Re=!0}}),Re||oa(j,Y,K,te,oe,de,we,Ce,ke,Te)}const as=Ko|ju;function oa(P,j,Y,K,te,oe,de,we,Ce,ke,Te,Re){na(P,j,Y,K,te),(Ce||ke||Re)&&(a.save(),Ce&&a.clip(Ce),ke&&a.clip(ke)),Re?(we&as)==as?(a.clip(Re),Te&&a.clip(Te),Ni(te,de),xo(P,oe,j)):we&ju?(Ni(te,de),a.clip(Re),xo(P,oe,j)):we&Ko&&(a.save(),a.clip(Re),Te&&a.clip(Te),Ni(te,de),a.restore(),xo(P,oe,j)):(Ni(te,de),xo(P,oe,j)),(Ce||ke||Re)&&a.restore()}function xo(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 Ni(P,j){j instanceof Map?j.forEach((Y,K)=>{a.fillStyle=Di=K,a.fill(Y)}):j!=null&&P&&a.fill(j)}function sa(P,j,Y,K){let te=S[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(r,P,j,Y,K),we=te._incrs=te.incrs(r,P,j,Y,K,de);oe=J_(j,Y,we,K,de)}return te._found=oe}function ti(P,j,Y,K,te,oe,de,we,Ce,ke){let Te=de%2/2;y==1&&a.translate(Te,Te),na(we,de,Ce,ke,we),a.beginPath();let Re,Ze,Rt,st,Ke=te+(K==0||K==3?-oe:oe);Y==0?(Ze=te,st=Ke):(Re=te,Rt=Ke);for(let Xe=0;Xe<P.length;Xe++)j[Xe]!=null&&(Y==0?Re=Rt=P[Xe]:Ze=st=P[Xe],a.moveTo(Re,Ze),a.lineTo(Rt,st));a.stroke(),y==1&&a.translate(-Te,-Te)}function Vl(P){let j=!0;return S.forEach((Y,K)=>{if(!Y.show)return;let te=C[Y.scale];if(te.min==null){Y._show&&(j=!1,Y._show=!1,fi(!1));return}else Y._show||(j=!1,Y._show=!0,fi(!1));let oe=Y.side,de=oe%2,{min:we,max:Ce}=te,[ke,Te]=sa(K,we,Ce,de==0?We:ze);if(Te==0)return;let Re=te.distr==2,Ze=Y._splits=Y.splits(r,K,we,Ce,ke,Te,Re),Rt=te.distr==2?Ze.map(Ne=>zn[Ne]):Ze,st=te.distr==2?zn[Ze[1]]-zn[Ze[0]]:ke,Ke=Y._values=Y.values(r,Y.filter(r,Rt,K,Te,st),K,Te,st);Y._rotate=oe==2?Y.rotate(r,Ke,K,Te):0;let Xe=Y._size;Y._size=Ar(Y.size(r,Ke,K,P)),Xe!=null&&Y._size!=Xe&&(j=!1)}),j}function ql(P){let j=!0;return Hl.forEach((Y,K)=>{let te=Y(r,K,di,P);te!=ei[K]&&(j=!1),ei[K]=te}),j}function hd(){for(let P=0;P<S.length;P++){let j=S[P];if(!j.show||!j._show)continue;let Y=j.side,K=Y%2,te,oe,de=j.stroke(r,P),we=Y==0||Y==3?-1:1;if(j.label){let Tn=j.labelGap*we,Qn=Cn((j._lpos+Tn)*_t);ra(j.labelFont[0],de,"center",Y==2?Ns:hp),a.save(),K==1?(te=oe=0,a.translate(Qn,Cn(pt+ut/2)),a.rotate((Y==3?-sl:sl)/2)):(te=Cn(Qe+mt/2),oe=Qn),a.fillText(j.label,te,oe),a.restore()}let[Ce,ke]=j._found;if(ke==0)continue;let Te=C[j.scale],Re=K==0?mt:ut,Ze=K==0?Qe:pt,Rt=Cn(j.gap*_t),st=j._splits,Ke=Te.distr==2?st.map(Tn=>zn[Tn]):st,Xe=Te.distr==2?zn[st[1]]-zn[st[0]]:Ce,Ne=j.ticks,$t=j.border,en=Ne.show?Cn(Ne.size*_t):0,Kt=j._rotate*-sl/180,Pt=w(j._pos*_t),Ht=(en+Rt)*we,ne=Pt+Ht;oe=K==0?ne:0,te=K==1?ne:0;let le=j.font[0],se=j.align==1?jo:j.align==2?yu:Kt>0?jo:Kt<0?yu:K==0?"center":Y==3?yu:jo,$e=Kt||K==1?"middle":Y==2?Ns:hp;ra(le,de,se,$e);let He=j.font[1]*j.lineGap,Je=st.map(Tn=>w(u(Tn,Te,Re,Ze))),Tt=j._values;for(let Tn=0;Tn<Tt.length;Tn++){let Qn=Tt[Tn];if(Qn!=null){K==0?te=Je[Tn]:oe=Je[Tn],Qn=""+Qn;let In=Qn.indexOf(`
|
1409
|
-
`)==-1?[Qn]:Qn.split(/\n/gm);for(let mr=0;mr<In.length;mr++){let sr=In[mr];Kt?(a.save(),a.translate(te,oe+mr*He),a.rotate(Kt),a.fillText(sr,0,0),a.restore()):a.fillText(sr,te,oe+mr*He)}}}Ne.show&&ti(Je,Ne.filter(r,Ke,P,ke,Xe),K,Y,Pt,en,Dt(Ne.width*_t,3),Ne.stroke(r,P),Ne.dash,Ne.cap);let et=j.grid;et.show&&ti(Je,et.filter(r,Ke,P,ke,Xe),K,K==0?2:1,K==0?pt:Qe,K==0?ut:mt,Dt(et.width*_t,3),et.stroke(r,P),et.dash,et.cap),$t.show&&ti([Pt],[1],K==0?1:0,K==0?1:2,K==1?pt:Qe,K==1?ut:mt,Dt($t.width*_t,3),$t.stroke(r,P),$t.dash,$t.cap)}sn("drawAxes")}function fi(P){E.forEach((j,Y)=>{Y>0&&(j._paths=null,P&&(d==1?(j.min=null,j.max=null):j.facets.forEach(K=>{K.min=null,K.max=null})))})}let Ao=!1,ls=!1,Fi=[];function dd(){ls=!1;for(let P=0;P<Fi.length;P++)sn(...Fi[P]);Fi.length=0}function Pi(){Ao||(VC(aa),Ao=!0)}function fd(P,j=!1){Ao=!0,ls=j,P(r),aa(),j&&Fi.length>0&&queueMicrotask(dd)}r.batch=fd;function aa(){if(ht&&(jl(),ht=!1),Vt&&(id(),Vt=!1),ot){if(Ut(o,jo,on),Ut(o,Ns,Ve),Ut(o,Os,We),Ut(o,Ds,ze),Ut(f,jo,on),Ut(f,Ns,Ve),Ut(f,Os,We),Ut(f,Ds,ze),Ut(c,Os,_n),Ut(c,Ds,rn),l.width=Cn(_n*_t),l.height=Cn(rn*_t),S.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;Ut(P,de?"left":"top",K-oe),Ut(P,de?"width":"height",Y),Ut(P,de?"top":"left",de?Ve:on),Ut(P,de?"height":"width",de?ze:We),Cu(P,lo)}else dr(P,lo)}),ns=Di=rs=os=Js=Xs=ea=ta=is=null,_r=1,_o(!0),on!=ce||Ve!=Ee||We!=De||ze!=Ye){fi(!1);let P=We/De,j=ze/Ye;if(je.show&&!jn&&je.left>=0){je.left*=P,je.top*=j,Hi&&Gr(Hi,Cn(je.left),0,We,ze),ni&&Gr(ni,0,Cn(je.top),We,ze);for(let Y=0;Y<Bn.length;Y++){let K=Bn[Y];K!=null&&(Mi[Y]*=P,Li[Y]*=j,Gr(K,Ar(Mi[Y]),Ar(Li[Y]),We,ze))}}if(Ft.show&&!ui&&Ft.left>=0&&Ft.width>0){Ft.left*=P,Ft.width*=P,Ft.top*=j,Ft.height*=j;for(let Y in fa)Ut(gi,Y,Ft[Y])}ce=on,Ee=Ve,De=We,Ye=ze}sn("setSize"),ot=!1}_n>0&&rn>0&&(a.clearRect(0,0,l.width,l.height),sn("drawClear"),L.forEach(P=>P()),sn("draw")),Ft.show&&ui&&(cs(Ft),ui=!1),je.show&&jn&&(Un(null,!0,!1),jn=!1),X.show&&X.live&&rr&&(Co(),rr=!1),p||(p=!0,r.status=1,sn("ready")),vo=!1,Ao=!1}r.redraw=(P,j)=>{Vt=j||!1,P!==!1?kr(T,N.min,N.max):Pi()};function la(P,j){let Y=C[P];if(Y.from==null){if(kn==0){let K=Y.range(r,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(kn>1&&j.min!=null&&j.max!=null&&j.max-j.min<1e-16)return;P==T&&Y.distr==2&&kn>0&&(j.min=Fr(j.min,e[0]),j.max=Fr(j.max,e[0]),j.min==j.max&&j.max++),M[P]=j,ht=!0,Pi()}}r.setScale=la;let ca,ua,Hi,ni,Gl,Yl,Wi,ji,Kl,Lt,Be,Bt,ri=!1;const Sn=je.drag;let wn=Sn.x,bn=Sn.y;je.show&&(je.x&&(ca=xr(pC,f)),je.y&&(ua=xr(mC,f)),N.ori==0?(Hi=ca,ni=ua):(Hi=ua,ni=ca),Be=je.left,Bt=je.top);const Ft=r.select=mn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),gi=Ft.show?xr(gC,Ft.over?f:o):null;function cs(P,j){if(Ft.show){for(let Y in P)Ft[Y]=P[Y],Y in fa&&Ut(gi,Y,P[Y]);j!==!1&&sn("setSelect")}}r.setSelect=cs;function $n(P,j){let Y=E[P],K=G?me[P]:null;if(Y.show)K&&Cu(K,lo);else{K&&dr(K,lo);let te=Ri?Bn[0]:Bn[P];Gr(te,-10,-10,We,ze)}}function kr(P,j,Y){la(P,{min:j,max:Y})}function On(P,j,Y,K){j.focus!=null&&Jl(P),j.show!=null&&E.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=j.show,$n(oe,j.show),d==2?(kr(te.facets[0].scale,null,null),kr(te.facets[1].scale,null,null)):kr(te.scale,null,null),Pi())}),Y!==!1&&sn("setSeries",P,j),K&&Wr("setSeries",r,P,j)}r.setSeries=On;function Ql(P,j){mn(b[P],j)}function ha(P,j){P.fill=wt(P.fill||null),P.dir=Ct(P.dir,-1),j=j??b.length,b.splice(j,0,P)}function ir(P){P==null?b.length=0:b.splice(P,1)}r.addBand=ha,r.setBand=Ql,r.delBand=ir;function Zl(P,j){E[P].alpha=j,je.show&&Bn[P]&&(Bn[P].style.opacity=j),G&&me[P]&&(me[P].style.opacity=j)}let Sr,Hr,ii;const pi={focus:!0};function Jl(P){if(P!=ii){let j=P==null,Y=Jr.alpha!=1;E.forEach((K,te)=>{if(d==1||te>0){let oe=j||te==0||te==P;K._focus=j?null:oe,Y&&Zl(te,oe?1:Jr.alpha)}}),ii=P,Y&&Pi()}}G&&Xr&&Jt(mp,re,P=>{je._lock||(hi(P),ii!=null&&On(null,pi,!0,Xt.setSeries))});function Yt(P,j,Y){let K=C[j];Y&&(P=P/_t-(K.ori==1?Ve:on));let te=We;K.ori==1&&(te=ze,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,we=P/te,Ce=oe+(de-oe)*we,ke=K.distr;return ke==3?Vo(10,Ce):ke==4?LC(Ce,K.asinh):ke==100?K.bwd(Ce):Ce}function gd(P,j){let Y=Yt(P,T,j);return Fr(Y,e[0],yn,vn)}r.valToIdx=P=>Fr(P,e[0]),r.posToIdx=gd,r.posToVal=Yt,r.valToPos=(P,j,Y)=>C[j].ori==0?g(P,C[j],Y?mt:We,Y?Qe:0):v(P,C[j],Y?ut:ze,Y?pt:0),r.setCursor=(P,j,Y)=>{Be=P.left,Bt=P.top,Un(null,j,Y)};function Kn(P,j){Ut(gi,jo,Ft.left=P),Ut(gi,Os,Ft.width=j)}function Xl(P,j){Ut(gi,Ns,Ft.top=P),Ut(gi,Ds,Ft.height=j)}let Bi=N.ori==0?Kn:Xl,or=N.ori==1?Kn:Xl;function us(){if(G&&X.live)for(let P=d==2?1:0;P<E.length;P++){if(P==0&&Se)continue;let j=X.values[P],Y=0;for(let K in j)ve[P][Y++].firstChild.nodeValue=j[K]}}function Co(P,j){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):FC(P.idx)||q.fill(P.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<E.length;Y++)(Y>0||d==1&&!Se)&&zt(Y,q[Y]);us()}rr=!1,j!==!1&&sn("setLegend")}r.setLegend=Co;function zt(P,j){let Y=E[P],K=P==0&&k==2?zn:e[P],te;Se?te=Y.values(r,P,j)??lt:(te=Y.value(r,j==null?null:K[j],P,j),te=te==null?lt:{_:te}),X.values[P]=te}function Un(P,j,Y){Kl=Be,Lt=Bt,[Be,Bt]=je.move(r,Be,Bt),je.left=Be,je.top=Bt,je.show&&(Hi&&Gr(Hi,Cn(Be),0,We,ze),ni&&Gr(ni,0,Cn(Bt),We,ze));let K,te=yn>vn;Sr=Qt,Hr=null;let oe=N.ori==0?We:ze,de=N.ori==1?We:ze;if(Be<0||kn==0||te){K=je.idx=null;for(let we=0;we<E.length;we++){let Ce=Bn[we];Ce!=null&&Gr(Ce,-10,-10,We,ze)}Xr&&On(null,pi,!0,P==null&&Xt.setSeries),X.live&&(q.fill(K),rr=!0)}else{let we,Ce,ke;d==1&&(we=N.ori==0?Be:Bt,Ce=Yt(we,T),K=je.idx=Fr(Ce,e[0],yn,vn),ke=A(e[0][K],N,oe,0));let Te=-10,Re=-10,Ze=0,Rt=0,st=!0,Ke="",Xe="";for(let Ne=d==2?1:0;Ne<E.length;Ne++){let $t=E[Ne],en=q[Ne],Kt=en==null?null:d==1?e[Ne][en]:e[Ne][1][en],Pt=je.dataIdx(r,Ne,K,Ce),Ht=Pt==null?null:d==1?e[Ne][Pt]:e[Ne][1][Pt];rr=rr||Ht!=Kt||Pt!=en,q[Ne]=Pt;let ne=Pt==K?ke:A(d==1?e[0][Pt]:e[Ne][0][Pt],N,oe,0);if(Ne>0&&$t.show){let le=Ht==null?-10:_(Ht,d==1?C[$t.scale]:C[$t.facets[1].scale],de,0);if(Xr&&Ht!=null){let se=N.ori==1?Be:Bt,$e=An(Jr.dist(r,Ne,Pt,le,se));if($e<Sr){let He=Jr.bias;if(He!=0){let Je=Yt(se,$t.scale),Tt=Ht>=0?1:-1,et=Je>=0?1:-1;et==Tt&&(et==1?He==1?Ht>=Je:Ht<=Je:He==1?Ht<=Je:Ht>=Je)&&(Sr=$e,Hr=Ne)}else Sr=$e,Hr=Ne}}if(rr||Ri){let se,$e;N.ori==0?(se=ne,$e=le):(se=le,$e=ne);let He,Je,Tt,et,Tn,Qn,In=!0,mr=Ln.bbox;if(mr!=null){In=!1;let sr=mr(r,Ne);Tt=sr.left,et=sr.top,He=sr.width,Je=sr.height}else Tt=se,et=$e,He=Je=Ln.size(r,Ne);if(Qn=Ln.fill(r,Ne),Tn=Ln.stroke(r,Ne),Ri)Ne==Hr&&Sr<=Jr.prox&&(Te=Tt,Re=et,Ze=He,Rt=Je,st=In,Ke=Qn,Xe=Tn);else{let sr=Bn[Ne];sr!=null&&(Mi[Ne]=Tt,Li[Ne]=et,Cp(sr,He,Je,In),xp(sr,Qn,Tn),Gr(sr,Ar(Tt),Ar(et),We,ze))}}}}if(Ri){let Ne=Jr.prox,$t=ii==null?Sr<=Ne:Sr>Ne||Hr!=ii;if(rr||$t){let en=Bn[0];Mi[0]=Te,Li[0]=Re,Cp(en,Ze,Rt,st),xp(en,Ke,Xe),Gr(en,Ar(Te),Ar(Re),We,ze)}}}if(Ft.show&&ri)if(P!=null){let[we,Ce]=Xt.scales,[ke,Te]=Xt.match,[Re,Ze]=P.cursor.sync.scales,Rt=P.cursor.drag;if(wn=Rt._x,bn=Rt._y,wn||bn){let{left:st,top:Ke,width:Xe,height:Ne}=P.select,$t=P.scales[Re].ori,en=P.posToVal,Kt,Pt,Ht,ne,le,se=we!=null&&ke(we,Re),$e=Ce!=null&&Te(Ce,Ze);se&&wn?($t==0?(Kt=st,Pt=Xe):(Kt=Ke,Pt=Ne),Ht=C[we],ne=A(en(Kt,Re),Ht,oe,0),le=A(en(Kt+Pt,Re),Ht,oe,0),Bi(Cr(ne,le),An(le-ne))):Bi(0,oe),$e&&bn?($t==1?(Kt=st,Pt=Xe):(Kt=Ke,Pt=Ne),Ht=C[Ce],ne=_(en(Kt,Ze),Ht,de,0),le=_(en(Kt+Pt,Ze),Ht,de,0),or(Cr(ne,le),An(le-ne))):or(0,de)}else ds()}else{let we=An(Kl-Gl),Ce=An(Lt-Yl);if(N.ori==1){let Ze=we;we=Ce,Ce=Ze}wn=Sn.x&&we>=Sn.dist,bn=Sn.y&&Ce>=Sn.dist;let ke=Sn.uni;ke!=null?wn&&bn&&(wn=we>=ke,bn=Ce>=ke,!wn&&!bn&&(Ce>we?bn=!0:wn=!0)):Sn.x&&Sn.y&&(wn||bn)&&(wn=bn=!0);let Te,Re;wn&&(N.ori==0?(Te=Wi,Re=Be):(Te=ji,Re=Bt),Bi(Cr(Te,Re),An(Re-Te)),bn||or(0,de)),bn&&(N.ori==1?(Te=Wi,Re=Be):(Te=ji,Re=Bt),or(Cr(Te,Re),An(Re-Te)),wn||Bi(0,oe)),!wn&&!bn&&(Bi(0,0),or(0,0))}if(Sn._x=wn,Sn._y=bn,P==null){if(Y){if(Vn!=null){let[we,Ce]=Xt.scales;Xt.values[0]=we!=null?Yt(N.ori==0?Be:Bt,we):null,Xt.values[1]=Ce!=null?Yt(N.ori==1?Be:Bt,Ce):null}Wr(fp,r,Be,Bt,We,ze,K)}if(Xr){let we=Y&&Xt.setSeries,Ce=Jr.prox;ii==null?Sr<=Ce&&On(Hr,pi,!0,we):Sr>Ce?On(null,pi,!0,we):Hr!=ii&&On(Hr,pi,!0,we)}}rr&&(X.idx=K,Co()),j!==!1&&sn("setCursor")}let $r=null;Object.defineProperty(r,"rect",{get(){return $r==null&&_o(!1),$r}});function _o(P=!1){P?$r=null:($r=f.getBoundingClientRect(),sn("syncRect",$r))}function hs(P,j,Y,K,te,oe,de){je._lock||ri&&P!=null&&P.movementX==0&&P.movementY==0||(da(P,j,Y,K,te,oe,de,!1,P!=null),P!=null?Un(null,!0,!0):Un(j,!0,!1))}function da(P,j,Y,K,te,oe,de,we,Ce){if($r==null&&_o(!1),hi(P),P!=null)Y=P.clientX-$r.left,K=P.clientY-$r.top;else{if(Y<0||K<0){Be=-10,Bt=-10;return}let[ke,Te]=Xt.scales,Re=j.cursor.sync,[Ze,Rt]=Re.values,[st,Ke]=Re.scales,[Xe,Ne]=Xt.match,$t=j.axes[0].side%2==1,en=N.ori==0?We:ze,Kt=N.ori==1?We:ze,Pt=$t?oe:te,Ht=$t?te:oe,ne=$t?K:Y,le=$t?Y:K;if(st!=null?Y=Xe(ke,st)?u(Ze,C[ke],en,0):-10:Y=en*(ne/Pt),Ke!=null?K=Ne(Te,Ke)?u(Rt,C[Te],Kt,0):-10:K=Kt*(le/Ht),N.ori==1){let se=Y;Y=K,K=se}}Ce&&((Y<=1||Y>=We-1)&&(Y=ho(Y,We)),(K<=1||K>=ze-1)&&(K=ho(K,ze))),we?(Gl=Y,Yl=K,[Wi,ji]=je.move(r,Y,K)):(Be=Y,Bt=K)}const fa={width:0,height:0,left:0,top:0};function ds(){cs(fa,!1)}let ga,ko,mi,ec;function pa(P,j,Y,K,te,oe,de){ri=!0,wn=bn=Sn._x=Sn._y=!1,da(P,j,Y,K,te,oe,de,!0,!1),P!=null&&(Jt(wu,xu,ma,!1),Wr(gp,r,Wi,ji,We,ze,null));let{left:we,top:Ce,width:ke,height:Te}=Ft;ga=we,ko=Ce,mi=ke,ec=Te,ds()}function ma(P,j,Y,K,te,oe,de){ri=Sn._x=Sn._y=!1,da(P,j,Y,K,te,oe,de,!1,!0);let{left:we,top:Ce,width:ke,height:Te}=Ft,Re=ke>0||Te>0,Ze=ga!=we||ko!=Ce||mi!=ke||ec!=Te;if(Re&&Ze&&cs(Ft),Sn.setScale&&Re&&Ze){let Rt=we,st=ke,Ke=Ce,Xe=Te;if(N.ori==1&&(Rt=Ce,st=Te,Ke=we,Xe=ke),wn&&kr(T,Yt(Rt,T),Yt(Rt+st,T)),bn)for(let Ne in C){let $t=C[Ne];Ne!=T&&$t.from==null&&$t.min!=Qt&&kr(Ne,Yt(Ke+Xe,Ne),Yt(Ke,Ne))}ds()}else je.lock&&(je._lock=!je._lock,Un(null,!0,!1));P!=null&&(Zr(wu,xu),Wr(wu,r,Be,Bt,We,ze,null))}function ya(P,j,Y,K,te,oe,de){if(je._lock)return;hi(P);let we=ri;if(ri){let Ce=!0,ke=!0,Te=10,Re,Ze;N.ori==0?(Re=wn,Ze=bn):(Re=bn,Ze=wn),Re&&Ze&&(Ce=Be<=Te||Be>=We-Te,ke=Bt<=Te||Bt>=ze-Te),Re&&Ce&&(Be=Be<Wi?0:We),Ze&&ke&&(Bt=Bt<ji?0:ze),Un(null,!0,!0),ri=!1}Be=-10,Bt=-10,Un(null,!0,!0),we&&(ri=we)}function fs(P,j,Y,K,te,oe,de){je._lock||(hi(P),Zs(),ds(),P!=null&&Wr(yp,r,Be,Bt,We,ze,null))}function va(){S.forEach(X_),Ks(r.width,r.height,!0)}co(nl,zo,va);const zi={};zi.mousedown=pa,zi.mousemove=hs,zi.mouseup=ma,zi.dblclick=fs,zi.setSeries=(P,j,Y,K)=>{let te=Xt.match[2];Y=te(r,j,Y),Y!=-1&&On(Y,K,!0,!1)},je.show&&(Jt(gp,f,pa),Jt(fp,f,hs),Jt(pp,f,P=>{hi(P),_o(!1)}),Jt(mp,f,ya),Jt(yp,f,fs),Vu.add(r),r.syncRect=_o);const Ui=r.hooks=n.hooks||{};function sn(P,j,Y){ls?Fi.push([P,j,Y]):P in Ui&&Ui[P].forEach(K=>{K.call(null,r,j,Y)})}(n.plugins||[]).forEach(P=>{for(let j in P.hooks)Ui[j]=(Ui[j]||[]).concat(P.hooks[j])});const tc=(P,j,Y)=>Y,Xt=mn({key:null,setSeries:!1,filters:{pub:Rp,sub:Rp},scales:[T,E[1]?E[1].scale:null],match:[Mp,Mp,tc],values:[null,null]},je.sync);Xt.match.length==2&&Xt.match.push(tc),je.sync=Xt;const Vn=Xt.key,So=mm(Vn);function Wr(P,j,Y,K,te,oe,de){Xt.filters.pub(P,j,Y,K,te,oe,de)&&So.pub(P,j,Y,K,te,oe,de)}So.sub(r);function nc(P,j,Y,K,te,oe,de){Xt.filters.sub(P,j,Y,K,te,oe,de)&&zi[P](null,j,Y,K,te,oe,de)}r.pub=nc;function rc(){So.unsub(r),Vu.delete(r),Nt.clear(),ku(nl,zo,va),s.remove(),re==null||re.remove(),sn("destroy")}r.destroy=rc;function wa(){sn("init",n,e),wo(e||n.data,!1),M[T]?la(T,M[T]):Zs(),ui=Ft.show&&(Ft.width>0||Ft.height>0),jn=rr=!0,Ks(n.width,n.height)}return E.forEach(Pl),S.forEach(ud),t?t instanceof HTMLElement?(t.appendChild(s),wa()):t(r,wa):wa(),r}Hn.assign=mn,Hn.fmtNum=Tu,Hn.rangeNum=ol,Hn.rangeLog=il,Hn.rangeAsinh=Su,Hn.orient=go,Hn.pxRatio=_t,Hn.join=UC,Hn.fmtDate=Mu,Hn.tzDate=t_,Hn.sync=mm;{Hn.addGap=F_,Hn.clipGaps=dl;let n=Hn.paths={points:Cm};n.linear=km,n.stepped=W_,n.bars=j_,n.spline=z_}var Lm,Om;function ek(){return Om||(Om=1,Lm=function(n,e,t,r,d){var h,g;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(d===void 0)d=n.length-1;else if(d=d|0,d<r||d>=n.length)throw new RangeError("invalid upper bound");for(;r<=d;)if(h=r+(d-r>>>1),g=+t(n[h],e,h,n),g<0)r=h+1;else if(g>0)d=h-1;else return h;return~r}),Lm}var tk=ek();const ZD=Rn("N",Fa(tk));var Gu,Dm;function nk(){if(Dm)return Gu;Dm=1;function n(e,t,r){var d=-1,h=e.length;t<0&&(t=-t>h?0:h+t),r=r>h?h:r,r<0&&(r+=h),h=t>r?0:r-t>>>0,t>>>=0;for(var g=Array(h);++d<h;)g[d]=e[d+t];return g}return Gu=n,Gu}var Yu,Nm;function rk(){if(Nm)return Yu;Nm=1;var n=nk();function e(t,r,d){var h=t.length;return d=d===void 0?h:d,!r&&d>=h?t:n(t,r,d)}return Yu=e,Yu}var Ku,Fm;function Pm(){if(Fm)return Ku;Fm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,h="\\ufe0e\\ufe0f",g="\\u200d",v=RegExp("["+g+n+d+h+"]");function u(p){return v.test(p)}return Ku=u,Ku}var Qu,Hm;function ik(){if(Hm)return Qu;Hm=1;function n(e){return e.split("")}return Qu=n,Qu}var Zu,Wm;function ok(){if(Wm)return Zu;Wm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,h="\\ufe0e\\ufe0f",g="["+n+"]",v="["+d+"]",u="\\ud83c[\\udffb-\\udfff]",p="(?:"+v+"|"+u+")",s="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",o=p+"?",f="["+h+"]?",y="(?:"+c+"(?:"+[s,l,a].join("|")+")"+f+o+")*",w=f+o+y,x="(?:"+[s+v+"?",v,l,a,g].join("|")+")",E=RegExp(u+"(?="+u+")|"+x+w,"g");function S(C){return C.match(E)||[]}return Zu=S,Zu}var Ju,jm;function sk(){if(jm)return Ju;jm=1;var n=ik(),e=Pm(),t=ok();function r(d){return e(d)?t(d):n(d)}return Ju=r,Ju}var Xu,Bm;function ak(){if(Bm)return Xu;Bm=1;var n=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti;return Xu=n,Xu}var eh,zm;function lk(){if(zm)return eh;zm=1;var n=ak(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return eh=t,eh}var th,Um;function nh(){if(Um)return th;Um=1;var n=lk(),e=n.Symbol;return th=e,th}var rh,Vm;function ck(){if(Vm)return rh;Vm=1;function n(e,t){for(var r=-1,d=e==null?0:e.length,h=Array(d);++r<d;)h[r]=t(e[r],r,e);return h}return rh=n,rh}var ih,qm;function uk(){if(qm)return ih;qm=1;var n=Array.isArray;return ih=n,ih}var oh,Gm;function hk(){if(Gm)return oh;Gm=1;var n=nh(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,d=n?n.toStringTag:void 0;function h(g){var v=t.call(g,d),u=g[d];try{g[d]=void 0;var p=!0}catch{}var s=r.call(g);return p&&(v?g[d]=u:delete g[d]),s}return oh=h,oh}var sh,Ym;function dk(){if(Ym)return sh;Ym=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return sh=t,sh}var ah,Km;function fk(){if(Km)return ah;Km=1;var n=nh(),e=hk(),t=dk(),r="[object Null]",d="[object Undefined]",h=n?n.toStringTag:void 0;function g(v){return v==null?v===void 0?d:r:h&&h in Object(v)?e(v):t(v)}return ah=g,ah}var lh,Qm;function gk(){if(Qm)return lh;Qm=1;function n(e){return e!=null&&typeof e=="object"}return lh=n,lh}var ch,Zm;function pk(){if(Zm)return ch;Zm=1;var n=fk(),e=gk(),t="[object Symbol]";function r(d){return typeof d=="symbol"||e(d)&&n(d)==t}return ch=r,ch}var uh,Jm;function mk(){if(Jm)return uh;Jm=1;var n=nh(),e=ck(),t=uk(),r=pk(),d=n?n.prototype:void 0,h=d?d.toString:void 0;function g(v){if(typeof v=="string")return v;if(t(v))return e(v,g)+"";if(r(v))return h?h.call(v):"";var u=v+"";return u=="0"&&1/v==-1/0?"-0":u}return uh=g,uh}var hh,Xm;function ml(){if(Xm)return hh;Xm=1;var n=mk();function e(t){return t==null?"":n(t)}return hh=e,hh}var dh,ey;function yk(){if(ey)return dh;ey=1;var n=rk(),e=Pm(),t=sk(),r=ml();function d(h){return function(g){g=r(g);var v=e(g)?t(g):void 0,u=v?v[0]:g.charAt(0),p=v?n(v,1).join(""):g.slice(1);return u[h]()+p}}return dh=d,dh}var fh,ty;function ny(){if(ty)return fh;ty=1;var n=yk(),e=n("toUpperCase");return fh=e,fh}var vk=ny();const wk=Fa(vk);var gh,ry;function bk(){if(ry)return gh;ry=1;var n=ml(),e=ny();function t(r){return e(n(r).toLowerCase())}return gh=t,gh}var ph,iy;function xk(){if(iy)return ph;iy=1;function n(e,t,r,d){var h=-1,g=e==null?0:e.length;for(d&&g&&(r=e[++h]);++h<g;)r=t(r,e[h],h,e);return r}return ph=n,ph}var mh,oy;function Ak(){if(oy)return mh;oy=1;function n(e){return function(t){return e==null?void 0:e[t]}}return mh=n,mh}var yh,sy;function Ck(){if(sy)return yh;sy=1;var n=Ak(),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 yh=t,yh}var vh,ay;function _k(){if(ay)return vh;ay=1;var n=Ck(),e=ml(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",d="\\ufe20-\\ufe2f",h="\\u20d0-\\u20ff",g=r+d+h,v="["+g+"]",u=RegExp(v,"g");function p(s){return s=e(s),s&&s.replace(t,n).replace(u,"")}return vh=p,vh}var wh,ly;function kk(){if(ly)return wh;ly=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(t){return t.match(n)||[]}return wh=e,wh}var bh,cy;function Sk(){if(cy)return bh;cy=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 bh=e,bh}var xh,uy;function $k(){if(uy)return xh;uy=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,h="\\u2700-\\u27bf",g="a-z\\xdf-\\xf6\\xf8-\\xff",v="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p="\\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=v+u+p+s,o="['’]",f="["+c+"]",y="["+d+"]",w="\\d+",x="["+h+"]",E="["+g+"]",S="[^"+n+c+w+h+g+l+"]",C="\\ud83c[\\udffb-\\udfff]",b="(?:"+y+"|"+C+")",T="[^"+n+"]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",L="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+l+"]",N="\\u200d",k="(?:"+E+"|"+S+")",A="(?:"+I+"|"+S+")",_="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",M="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=b+"?",F="["+a+"]?",H="(?:"+N+"(?:"+[T,R,L].join("|")+")"+F+O+")*",z="\\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,R,L].join("|")+")"+q,G=RegExp([I+"?"+E+"+"+_+"(?="+[f,I,"$"].join("|")+")",A+"+"+M+"(?="+[f,I+k,"$"].join("|")+")",I+"?"+k+"+"+_,I+"+"+M,V,z,w,X].join("|"),"g");function Z(re){return re.match(G)||[]}return xh=Z,xh}var Ah,hy;function Tk(){if(hy)return Ah;hy=1;var n=kk(),e=Sk(),t=ml(),r=$k();function d(h,g,v){return h=t(h),g=v?void 0:g,g===void 0?e(h)?r(h):n(h):h.match(g)||[]}return Ah=d,Ah}var Ch,dy;function Ik(){if(dy)return Ch;dy=1;var n=xk(),e=_k(),t=Tk(),r="['’]",d=RegExp(r,"g");function h(g){return function(v){return n(t(e(v).replace(d,"")),g,"")}}return Ch=h,Ch}var _h,fy;function Ek(){if(fy)return _h;fy=1;var n=bk(),e=Ik(),t=e(function(r,d,h){return d=d.toLowerCase(),r+(h?n(d):d)});return _h=t,_h}var Rk=Ek();const Mk=Fa(Rk),Lk=Object.assign({"./ArrayWidget.vue":()=>Le(()=>Me.import("./ArrayWidget-BxEO5hEG-5c784cf69c59ef56f770.js"),void 0),"./ArrayplotWidget.vue":()=>Le(()=>Me.import("./ArrayplotWidget-B_VPoV4v-4c480a3fcc426de0cb30.js"),void 0),"./BlockWidget.vue":()=>Le(()=>Me.import("./BlockWidget-CuefOin6-b962c353c9f0eebc7117.js"),void 0),"./ButtonWidget.vue":()=>Le(()=>Me.import("./ButtonWidget-B6HM0Doo-668706e3573526170916.js"),void 0),"./CanvasWidget.vue":()=>Le(()=>Me.import("./CanvasWidget-DZQGG-yQ-9208dd10b8d9bf8fa386.js"),void 0),"./CanvasdotWidget.vue":()=>Le(()=>Me.import("./CanvasdotWidget-6wuCSnw_-7a088d1c0dab274586f1.js"),void 0),"./CanvasimageWidget.vue":()=>Le(()=>Me.import("./CanvasimageWidget-mhcPpAuN-524715bd9e4a9c84bf1a.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Le(()=>Me.import("./CanvasimagevalueWidget-Cx-dH8Gc-127608d7211ba8c85eee.js"),void 0),"./CanvaslabelWidget.vue":()=>Le(()=>Me.import("./CanvaslabelWidget-CQZCeohU-e4296f8d11d95bf27acd.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Le(()=>Me.import("./CanvaslabelvalueWidget-CwmYDCjr-50109c3b06e5e4acd0e2.js"),void 0),"./CanvaslineWidget.vue":()=>Le(()=>Me.import("./CanvaslineWidget-nTP3fJB4-9766cead6e6c429a7994.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Le(()=>Me.import("./CanvaslinevalueWidget-C3sJnjLQ-ffa8ee418ab1756d7518.js"),void 0),"./CheckbuttonWidget.vue":()=>Le(()=>Me.import("./CheckbuttonWidget-5-8YDsQL-66299903b9cda3bd6623.js"),void 0),"./ComboboxWidget.vue":()=>Le(()=>Me.import("./ComboboxWidget-DzBL8h9f-f7b29907644dd0f506de.js"),void 0),"./DateWidget.vue":()=>Le(()=>Me.import("./DateWidget-CW7Od7lB-adfa70f44dccea31a863.js"),void 0),"./DynamicWidget.vue":()=>Le(()=>Me.import("./DynamicWidget-gFSYxzvT-1236326c70d40ef4d209.js"),void 0),"./FormatvalueWidget.vue":()=>Le(()=>Me.import("./FormatvalueWidget-CGpnTqVH-1965b1425ac5713160a7.js"),void 0),"./HorizontalWidget.vue":()=>Le(()=>Me.import("./HorizontalWidget-D31NRWy5-f726d836b7dd777022b8.js"),void 0),"./HorizontalboxWidget.vue":()=>Le(()=>Me.import("./HorizontalboxWidget-Br8dSVHD-d4aab2761ca77fa24390.js"),void 0),"./HorizontallineWidget.vue":()=>Le(()=>Me.import("./HorizontallineWidget-CbxREBYI-ba4ec78147ff36e4335d.js"),void 0),"./IframeWidget.vue":()=>Le(()=>Me.import("./IframeWidget-Ctj8OIcG-cc657bab62ca5f6f87d1.js"),void 0),"./ImageviewerWidget.vue":()=>Le(()=>Me.import("./ImageviewerWidget-XrsqxmLo-9d5e7238e3c5ecd8748c.js"),void 0),"./LabelWidget.vue":()=>Le(()=>Me.import("./LabelWidget-t7I87dp7-152d5a9b96441cbd8510.js"),void 0),"./LabelledWidget.vue":()=>Le(()=>Me.import("./LabelledWidget-C7TDf92M-b20b3274d1d4e3403870.js"),void 0),"./LabelprogressbarWidget.vue":()=>Le(()=>Me.import("./LabelprogressbarWidget-wwLURt1u-a3f647cb3382587c6885.js"),void 0),"./LabelsparklineWidget.vue":()=>Le(()=>Me.import("./LabelsparklineWidget-B3awLUyP-ef73c33807cdf20c1632.js"),void 0),"./LabelvalueWidget.vue":()=>Le(()=>Me.import("./LabelvalueWidget-Zx_yHCtl-381f386667d56a433fb9.js"),void 0),"./LabelvaluedescWidget.vue":()=>Le(()=>Me.import("./LabelvaluedescWidget-BBSBh4vI-f245b73d7fee8fc3c134.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Le(()=>Me.import("./LabelvaluelimitsbarWidget-CZueHYWG-ae89b48f0240d8c4b536.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Le(()=>Me.import("./LabelvaluelimitscolumnWidget-BTvzyQMq-4ee9e762abc78c9e5e22.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Le(()=>Me.import("./LabelvaluerangebarWidget-BhYTBgDq-7f89e5b9ff7b9b67c0f1.js"),void 0),"./LedWidget.vue":()=>Le(()=>Me.import("./LedWidget-CxJjJBBS-956a4190d5e60484cfa9.js"),void 0),"./LimitsbarWidget.vue":()=>Le(()=>Me.import("./LimitsbarWidget-Djui0IpK-424433c6317281d1676d.js"),void 0),"./LimitscolorWidget.vue":()=>Le(()=>Me.import("./LimitscolorWidget-DdmvKzmx-65f584394050c5139c9d.js"),void 0),"./LimitscolumnWidget.vue":()=>Le(()=>Me.import("./LimitscolumnWidget-Cc19IEjq-f2597f39e20f5fa18747.js"),void 0),"./LinegraphWidget.vue":()=>Le(()=>Me.import("./LinegraphWidget-BtieJxeL-a423148ceca6c5ff74e5.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Le(()=>Me.import("./MatrixbycolumnsWidget-DnExVRF8-b4be1b437c0b336a1e23.js"),void 0),"./ProgressbarWidget.vue":()=>Le(()=>Me.import("./ProgressbarWidget-DIfqhHRE-2775a9cde5a45b0de086.js"),void 0),"./RadiobuttonWidget.vue":()=>Le(()=>Me.import("./RadiobuttonWidget-QzIkNP7m-959594855f51f05f1572.js"),void 0),"./RadiogroupWidget.vue":()=>Le(()=>Me.import("./RadiogroupWidget-Ci9sCX39-e97afc1a22909e8b2b26.js"),void 0),"./RangebarWidget.vue":()=>Le(()=>Me.import("./RangebarWidget-CN0YuHqy-e1cb05b7f6b1118dd2d0.js"),void 0),"./RollupWidget.vue":()=>Le(()=>Me.import("./RollupWidget-y4jBtJB2-bab638d154a5f2fd2c1e.js"),void 0),"./ScrollwindowWidget.vue":()=>Le(()=>Me.import("./ScrollwindowWidget-CBzYk4Y3-20a2b344d6594be94af9.js"),void 0),"./SignalWidget.vue":()=>Le(()=>Me.import("./SignalWidget-DQ5Uc2uV-1e83f917599853ee7901.js"),void 0),"./SpacerWidget.vue":()=>Le(()=>Me.import("./SpacerWidget-6rsc_dSM-5d0821a4a5e5cc101d3a.js"),void 0),"./SparklineWidget.vue":()=>Le(()=>Me.import("./SparklineWidget-CZtvu2ss-588212b5617f199fcd2e.js"),void 0),"./TabbookWidget.vue":()=>Le(()=>Me.import("./TabbookWidget-DNALU0jl-cc4c87c03bc6b35b8920.js"),void 0),"./TextboxWidget.vue":()=>Le(()=>Me.import("./TextboxWidget-5hqPj74D-603dfe11a4dc847120f1.js"),void 0),"./TextfieldWidget.vue":()=>Le(()=>Me.import("./TextfieldWidget-Df0ANSiU-766eb0d82b44a91ec200.js"),void 0),"./TimeWidget.vue":()=>Le(()=>Me.import("./TimeWidget-C6XQMUG2-3bd332a4cb0aac40e4ec.js"),void 0),"./TitleWidget.vue":()=>Le(()=>Me.import("./TitleWidget-B9SPUlbW-d60e09a2b1e080a21e01.js"),void 0),"./ValueWidget.vue":()=>Le(()=>Me.import("./ValueWidget-D4RrYVEK-c14156e71f8c70447418.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Le(()=>Me.import("./ValuelimitsbarWidget-Bc9_Vj_f-5cefd3afaa0f3983b22f.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Le(()=>Me.import("./ValuelimitscolumnWidget-DHKIL7sf-5f23f60b788a106ce9ac.js"),void 0),"./ValuerangebarWidget.vue":()=>Le(()=>Me.import("./ValuerangebarWidget-CecQRIok-c389d01eb001b34d9382.js"),void 0),"./VerticalWidget.vue":()=>Le(()=>Me.import("./VerticalWidget-D8jUFxjS-264cdd61b0515fa3092c.js"),void 0),"./VerticalboxWidget.vue":()=>Le(()=>Me.import("./VerticalboxWidget-B4eGUSYH-8e7497fac1b85d79028a.js"),void 0)}),Ok=Object.entries(Lk).reduce((n,[e,t])=>{e=e.split("/").pop();const r=wk(Mk(e.replace(/\.\w+$/,"")));return{...n,[r]:cf(t)}},{}),JD=Rn("F",{components:Ok});function gy(n,e){return function(){return n.apply(e,arguments)}}const{toString:Dk}=Object.prototype,{getPrototypeOf:kh}=Object,yl=(n=>e=>{const t=Dk.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Pr=n=>(n=n.toLowerCase(),e=>yl(e)===n),vl=n=>e=>typeof e===n,{isArray:Jo}=Array,Bs=vl("undefined");function Nk(n){return n!==null&&!Bs(n)&&n.constructor!==null&&!Bs(n.constructor)&&pr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const py=Pr("ArrayBuffer");function Fk(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&py(n.buffer),e}const Pk=vl("string"),pr=vl("function"),my=vl("number"),wl=n=>n!==null&&typeof n=="object",Hk=n=>n===!0||n===!1,bl=n=>{if(yl(n)!=="object")return!1;const e=kh(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Wk=Pr("Date"),jk=Pr("File"),Bk=Pr("Blob"),zk=Pr("FileList"),Uk=n=>wl(n)&&pr(n.pipe),Vk=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||pr(n.append)&&((e=yl(n))==="formdata"||e==="object"&&pr(n.toString)&&n.toString()==="[object FormData]"))},qk=Pr("URLSearchParams"),[Gk,Yk,Kk,Qk]=["ReadableStream","Request","Response","Headers"].map(Pr),Zk=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 r,d;if(typeof n!="object"&&(n=[n]),Jo(n))for(r=0,d=n.length;r<d;r++)e.call(null,n[r],r,n);else{const h=t?Object.getOwnPropertyNames(n):Object.keys(n),g=h.length;let v;for(r=0;r<g;r++)v=h[r],e.call(null,n[v],v,n)}}function yy(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,d;for(;r-- >0;)if(d=t[r],e===d.toLowerCase())return d;return null}const po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vy=n=>!Bs(n)&&n!==po;function Sh(){const{caseless:n}=vy(this)&&this||{},e={},t=(r,d)=>{const h=n&&yy(e,d)||d;bl(e[h])&&bl(r)?e[h]=Sh(e[h],r):bl(r)?e[h]=Sh({},r):Jo(r)?e[h]=r.slice():e[h]=r};for(let r=0,d=arguments.length;r<d;r++)arguments[r]&&zs(arguments[r],t);return e}const Jk=(n,e,t,{allOwnKeys:r}={})=>(zs(e,(d,h)=>{t&&pr(d)?n[h]=gy(d,t):n[h]=d},{allOwnKeys:r}),n),Xk=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),eS=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},tS=(n,e,t,r)=>{let d,h,g;const v={};if(e=e||{},n==null)return e;do{for(d=Object.getOwnPropertyNames(n),h=d.length;h-- >0;)g=d[h],(!r||r(g,n,e))&&!v[g]&&(e[g]=n[g],v[g]=!0);n=t!==!1&&kh(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},nS=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},rS=n=>{if(!n)return null;if(Jo(n))return n;let e=n.length;if(!my(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},iS=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&kh(Uint8Array)),oS=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const d=r.value;e.call(n,d[0],d[1])}},sS=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},aS=Pr("HTMLFormElement"),lS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),wy=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),cS=Pr("RegExp"),by=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};zs(t,(d,h)=>{let g;(g=e(d,h,n))!==!1&&(r[h]=g||d)}),Object.defineProperties(n,r)},uS=n=>{by(n,(e,t)=>{if(pr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(pr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},hS=(n,e)=>{const t={},r=d=>{d.forEach(h=>{t[h]=!0})};return Jo(n)?r(n):r(String(n).split(e)),t},dS=()=>{},fS=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,$h="abcdefghijklmnopqrstuvwxyz",xy="0123456789",Ay={DIGIT:xy,ALPHA:$h,ALPHA_DIGIT:$h+$h.toUpperCase()+xy},gS=(n=16,e=Ay.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function pS(n){return!!(n&&pr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const mS=n=>{const e=new Array(10),t=(r,d)=>{if(wl(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[d]=r;const h=Jo(r)?[]:{};return zs(r,(g,v)=>{const u=t(g,d+1);!Bs(u)&&(h[v]=u)}),e[d]=void 0,h}}return r};return t(n,0)},yS=Pr("AsyncFunction"),vS=n=>n&&(wl(n)||pr(n))&&pr(n.then)&&pr(n.catch),Cy=((n,e)=>n?setImmediate:e?((t,r)=>(po.addEventListener("message",({source:d,data:h})=>{d===po&&h===t&&r.length&&r.shift()()},!1),d=>{r.push(d),po.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",pr(po.postMessage)),wS=typeof queueMicrotask<"u"?queueMicrotask.bind(po):typeof process<"u"&&process.nextTick||Cy,he={isArray:Jo,isArrayBuffer:py,isBuffer:Nk,isFormData:Vk,isArrayBufferView:Fk,isString:Pk,isNumber:my,isBoolean:Hk,isObject:wl,isPlainObject:bl,isReadableStream:Gk,isRequest:Yk,isResponse:Kk,isHeaders:Qk,isUndefined:Bs,isDate:Wk,isFile:jk,isBlob:Bk,isRegExp:cS,isFunction:pr,isStream:Uk,isURLSearchParams:qk,isTypedArray:iS,isFileList:zk,forEach:zs,merge:Sh,extend:Jk,trim:Zk,stripBOM:Xk,inherits:eS,toFlatObject:tS,kindOf:yl,kindOfTest:Pr,endsWith:nS,toArray:rS,forEachEntry:oS,matchAll:sS,isHTMLForm:aS,hasOwnProperty:wy,hasOwnProp:wy,reduceDescriptors:by,freezeMethods:uS,toObjectSet:hS,toCamelCase:lS,noop:dS,toFiniteNumber:fS,findKey:yy,global:po,isContextDefined:vy,ALPHABET:Ay,generateString:gS,isSpecCompliantForm:pS,toJSONObject:mS,isAsyncFn:yS,isThenable:vS,setImmediate:Cy,asap:wS};function it(n,e,t,r,d){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),r&&(this.request=r),d&&(this.response=d,this.status=d.status?d.status:null)}he.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:he.toJSONObject(this.config),code:this.code,status:this.status}}});const _y=it.prototype,ky={};["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=>{ky[n]={value:n}}),Object.defineProperties(it,ky),Object.defineProperty(_y,"isAxiosError",{value:!0}),it.from=(n,e,t,r,d,h)=>{const g=Object.create(_y);return he.toFlatObject(n,g,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),it.call(g,n.message,e,t,r,d),g.cause=n,g.name=n.name,h&&Object.assign(g,h),g};const bS=null;function Th(n){return he.isPlainObject(n)||he.isArray(n)}function Sy(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function $y(n,e,t){return n?n.concat(e).map(function(r,d){return r=Sy(r),!t&&d?"["+r+"]":r}).join(t?".":""):e}function xS(n){return he.isArray(n)&&!n.some(Th)}const AS=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function xl(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 r=t.metaTokens,d=t.visitor||p,h=t.dots,g=t.indexes,v=(t.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(e);if(!he.isFunction(d))throw new TypeError("visitor must be a function");function u(c){if(c===null)return"";if(he.isDate(c))return c.toISOString();if(!v&&he.isBlob(c))throw new it("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(c)||he.isTypedArray(c)?v&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function p(c,o,f){let y=c;if(c&&!f&&typeof c=="object"){if(he.endsWith(o,"{}"))o=r?o:o.slice(0,-2),c=JSON.stringify(c);else if(he.isArray(c)&&xS(c)||(he.isFileList(c)||he.endsWith(o,"[]"))&&(y=he.toArray(c)))return o=Sy(o),y.forEach(function(w,x){!(he.isUndefined(w)||w===null)&&e.append(g===!0?$y([o],x,h):g===null?o:o+"[]",u(w))}),!1}return Th(c)?!0:(e.append($y(f,o,h),u(c)),!1)}const s=[],l=Object.assign(AS,{defaultVisitor:p,convertValue:u,isVisitable:Th});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(f,y){(!(he.isUndefined(f)||f===null)&&d.call(e,f,he.isString(y)?y.trim():y,o,l))===!0&&a(f,o?o.concat(y):[y])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),e}function Ty(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Ih(n,e){this._pairs=[],n&&xl(n,this,e)}const Iy=Ih.prototype;Iy.append=function(n,e){this._pairs.push([n,e])},Iy.toString=function(n){const e=n?function(t){return n.call(this,t,Ty)}:Ty;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function CS(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ey(n,e,t){if(!e)return n;const r=t&&t.encode||CS;he.isFunction(t)&&(t={serialize:t});const d=t&&t.serialize;let h;if(d?h=d(e,t):h=he.isURLSearchParams(e)?e.toString():new Ih(e,t).toString(r),h){const g=n.indexOf("#");g!==-1&&(n=n.slice(0,g)),n+=(n.indexOf("?")===-1?"?":"&")+h}return n}let Ry=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.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 My={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_S=typeof URLSearchParams<"u"?URLSearchParams:Ih,kS=typeof FormData<"u"?FormData:null,SS=typeof Blob<"u"?Blob:null,$S={isBrowser:!0,classes:{URLSearchParams:_S,FormData:kS,Blob:SS},protocols:["http","https","file","blob","url","data"]},Eh=typeof window<"u"&&typeof document<"u",Rh=typeof navigator=="object"&&navigator||void 0,TS=Eh&&(!Rh||["ReactNative","NativeScript","NS"].indexOf(Rh.product)<0),IS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ES=Eh&&window.location.href||"http://localhost",RS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Eh,hasStandardBrowserEnv:TS,hasStandardBrowserWebWorkerEnv:IS,navigator:Rh,origin:ES},Symbol.toStringTag,{value:"Module"})),Wn={...RS,...$S};function MS(n,e){return xl(n,new Wn.classes.URLSearchParams,Object.assign({visitor:function(t,r,d,h){return Wn.isNode&&he.isBuffer(t)?(this.append(r,t.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function LS(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function OS(n){const e={},t=Object.keys(n);let r;const d=t.length;let h;for(r=0;r<d;r++)h=t[r],e[h]=n[h];return e}function Ly(n){function e(t,r,d,h){let g=t[h++];if(g==="__proto__")return!0;const v=Number.isFinite(+g),u=h>=t.length;return g=!g&&he.isArray(d)?d.length:g,u?(he.hasOwnProp(d,g)?d[g]=[d[g],r]:d[g]=r,!v):((!d[g]||!he.isObject(d[g]))&&(d[g]=[]),e(t,r,d[g],h)&&he.isArray(d[g])&&(d[g]=OS(d[g])),!v)}if(he.isFormData(n)&&he.isFunction(n.entries)){const t={};return he.forEachEntry(n,(r,d)=>{e(LS(r),d,t,0)}),t}return null}function DS(n,e,t){if(he.isString(n))try{return(e||JSON.parse)(n),he.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const Us={transitional:My,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,d=he.isObject(n);if(d&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return r?JSON.stringify(Ly(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(d){if(t.indexOf("application/x-www-form-urlencoded")>-1)return MS(n,this.formSerializer).toString();if((h=he.isFileList(n))||t.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return xl(h?{"files[]":n}:n,g&&new g,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),DS(n)):n}],transformResponse:[function(n){const e=this.transitional||Us.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(t&&!this.responseType||r)){const d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(h){if(d)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:Wn.classes.FormData,Blob:Wn.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=>{Us.headers[n]={}});const NS=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"]),FS=n=>{const e={};let t,r,d;return n&&n.split(`
|
1410
|
-
`).forEach(function(h){d=h.indexOf(":"),t=h.substring(0,d).trim().toLowerCase(),r=h.substring(d+1).trim(),!(!t||e[t]&&NS[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Oy=Symbol("internals");function Vs(n){return n&&String(n).trim().toLowerCase()}function Al(n){return n===!1||n==null?n:he.isArray(n)?n.map(Al):String(n)}function PS(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const HS=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Mh(n,e,t,r,d){if(he.isFunction(r))return r.call(this,e,t);if(d&&(e=t),!!he.isString(e)){if(he.isString(r))return e.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(e)}}function WS(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function jS(n,e){const t=he.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(d,h,g){return this[r].call(this,e,d,h,g)},configurable:!0})})}let nr=class{constructor(e){e&&this.set(e)}set(e,t,r){const d=this;function h(v,u,p){const s=Vs(u);if(!s)throw new Error("header name must be a non-empty string");const l=he.findKey(d,s);(!l||d[l]===void 0||p===!0||p===void 0&&d[l]!==!1)&&(d[l||u]=Al(v))}const g=(v,u)=>he.forEach(v,(p,s)=>h(p,s,u));if(he.isPlainObject(e)||e instanceof this.constructor)g(e,t);else if(he.isString(e)&&(e=e.trim())&&!HS(e))g(FS(e),t);else if(he.isHeaders(e))for(const[v,u]of e.entries())h(u,v,r);else e!=null&&h(t,e,r);return this}get(e,t){if(e=Vs(e),e){const r=he.findKey(this,e);if(r){const d=this[r];if(!t)return d;if(t===!0)return PS(d);if(he.isFunction(t))return t.call(this,d,r);if(he.isRegExp(t))return t.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Vs(e),e){const r=he.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Mh(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let d=!1;function h(g){if(g=Vs(g),g){const v=he.findKey(r,g);v&&(!t||Mh(r,r[v],v,t))&&(delete r[v],d=!0)}}return he.isArray(e)?e.forEach(h):h(e),d}clear(e){const t=Object.keys(this);let r=t.length,d=!1;for(;r--;){const h=t[r];(!e||Mh(this,this[h],h,e,!0))&&(delete this[h],d=!0)}return d}normalize(e){const t=this,r={};return he.forEach(this,(d,h)=>{const g=he.findKey(r,h);if(g){t[g]=Al(d),delete t[h];return}const v=e?WS(h):String(h).trim();v!==h&&delete t[h],t[v]=Al(d),r[v]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(r,d)=>{r!=null&&r!==!1&&(t[d]=e&&he.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
1411
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(d=>r.set(d)),r}static accessor(e){const t=(this[Oy]=this[Oy]={accessors:{}}).accessors,r=this.prototype;function d(h){const g=Vs(h);t[g]||(jS(r,h),t[g]=!0)}return he.isArray(e)?e.forEach(d):d(e),this}};nr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(nr.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),he.freezeMethods(nr);function Lh(n,e){const t=this||Us,r=e||t,d=nr.from(r.headers);let h=r.data;return he.forEach(n,function(g){h=g.call(t,h,d.normalize(),e?e.status:void 0)}),d.normalize(),h}function Dy(n){return!!(n&&n.__CANCEL__)}function Xo(n,e,t){it.call(this,n??"canceled",it.ERR_CANCELED,e,t),this.name="CanceledError"}he.inherits(Xo,it,{__CANCEL__:!0});function Ny(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(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 BS(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function zS(n,e){n=n||10;const t=new Array(n),r=new Array(n);let d=0,h=0,g;return e=e!==void 0?e:1e3,function(v){const u=Date.now(),p=r[h];g||(g=u),t[d]=v,r[d]=u;let s=h,l=0;for(;s!==d;)l+=t[s++],s=s%n;if(d=(d+1)%n,d===h&&(h=(h+1)%n),u-g<e)return;const a=p&&u-p;return a?Math.round(l*1e3/a):void 0}}function US(n,e){let t=0,r=1e3/e,d,h;const g=(v,u=Date.now())=>{t=u,d=null,h&&(clearTimeout(h),h=null),n.apply(null,v)};return[(...v)=>{const u=Date.now(),p=u-t;p>=r?g(v,u):(d=v,h||(h=setTimeout(()=>{h=null,g(d)},r-p)))},()=>d&&g(d)]}const Cl=(n,e,t=3)=>{let r=0;const d=zS(50,250);return US(h=>{const g=h.loaded,v=h.lengthComputable?h.total:void 0,u=g-r,p=d(u),s=g<=v;r=g;const l={loaded:g,total:v,progress:v?g/v:void 0,bytes:u,rate:p||void 0,estimated:p&&v&&s?(v-g)/p:void 0,event:h,lengthComputable:v!=null,[e?"download":"upload"]:!0};n(l)},t)},Fy=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Py=n=>(...e)=>he.asap(()=>n(...e)),VS=Wn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Wn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Wn.origin),Wn.navigator&&/(msie|trident)/i.test(Wn.navigator.userAgent)):()=>!0,qS=Wn.hasStandardBrowserEnv?{write(n,e,t,r,d,h){const g=[n+"="+encodeURIComponent(e)];he.isNumber(t)&&g.push("expires="+new Date(t).toGMTString()),he.isString(r)&&g.push("path="+r),he.isString(d)&&g.push("domain="+d),h===!0&&g.push("secure"),document.cookie=g.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 GS(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function YS(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Hy(n,e){return n&&!GS(e)?YS(n,e):e}const Wy=n=>n instanceof nr?{...n}:n;function mo(n,e){e=e||{};const t={};function r(p,s,l,a){return he.isPlainObject(p)&&he.isPlainObject(s)?he.merge.call({caseless:a},p,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function d(p,s,l,a){if(he.isUndefined(s)){if(!he.isUndefined(p))return r(void 0,p,l,a)}else return r(p,s,l,a)}function h(p,s){if(!he.isUndefined(s))return r(void 0,s)}function g(p,s){if(he.isUndefined(s)){if(!he.isUndefined(p))return r(void 0,p)}else return r(void 0,s)}function v(p,s,l){if(l in e)return r(p,s);if(l in n)return r(void 0,p)}const u={url:h,method:h,data:h,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:v,headers:(p,s,l)=>d(Wy(p),Wy(s),l,!0)};return he.forEach(Object.keys(Object.assign({},n,e)),function(p){const s=u[p]||d,l=s(n[p],e[p],p);he.isUndefined(l)&&s!==v||(t[p]=l)}),t}const jy=n=>{const e=mo({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:h,headers:g,auth:v}=e;e.headers=g=nr.from(g),e.url=Ey(Hy(e.baseURL,e.url),n.params,n.paramsSerializer),v&&g.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let u;if(he.isFormData(t)){if(Wn.hasStandardBrowserEnv||Wn.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((u=g.getContentType())!==!1){const[p,...s]=u?u.split(";").map(l=>l.trim()).filter(Boolean):[];g.setContentType([p||"multipart/form-data",...s].join("; "))}}if(Wn.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(e)),r||r!==!1&&VS(e.url))){const p=d&&h&&qS.read(h);p&&g.set(d,p)}return e},KS=typeof XMLHttpRequest<"u",QS=KS&&function(n){return new Promise(function(e,t){const r=jy(n);let d=r.data;const h=nr.from(r.headers).normalize();let{responseType:g,onUploadProgress:v,onDownloadProgress:u}=r,p,s,l,a,c;function o(){a&&a(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(p),r.signal&&r.signal.removeEventListener("abort",p)}let f=new XMLHttpRequest;f.open(r.method.toUpperCase(),r.url,!0),f.timeout=r.timeout;function y(){if(!f)return;const x=nr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),E={data:!g||g==="text"||g==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:n,request:f};Ny(function(S){e(S),o()},function(S){t(S),o()},E),f=null}"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(y)},f.onabort=function(){f&&(t(new it("Request aborted",it.ECONNABORTED,n,f)),f=null)},f.onerror=function(){t(new it("Network Error",it.ERR_NETWORK,n,f)),f=null},f.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||My;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),t(new it(x,E.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,n,f)),f=null},d===void 0&&h.setContentType(null),"setRequestHeader"in f&&he.forEach(h.toJSON(),function(x,E){f.setRequestHeader(E,x)}),he.isUndefined(r.withCredentials)||(f.withCredentials=!!r.withCredentials),g&&g!=="json"&&(f.responseType=r.responseType),u&&([l,c]=Cl(u,!0),f.addEventListener("progress",l)),v&&f.upload&&([s,a]=Cl(v),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(p=x=>{f&&(t(!x||x.type?new Xo(null,n,f):x),f.abort(),f=null)},r.cancelToken&&r.cancelToken.subscribe(p),r.signal&&(r.signal.aborted?p():r.signal.addEventListener("abort",p)));const w=BS(r.url);if(w&&Wn.protocols.indexOf(w)===-1){t(new it("Unsupported protocol "+w+":",it.ERR_BAD_REQUEST,n));return}f.send(d||null)})},ZS=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,d;const h=function(p){if(!d){d=!0,v();const s=p instanceof Error?p:this.reason;r.abort(s instanceof it?s:new Xo(s instanceof Error?s.message:s))}};let g=e&&setTimeout(()=>{g=null,h(new it(`timeout ${e} of ms exceeded`,it.ETIMEDOUT))},e);const v=()=>{n&&(g&&clearTimeout(g),g=null,n.forEach(p=>{p.unsubscribe?p.unsubscribe(h):p.removeEventListener("abort",h)}),n=null)};n.forEach(p=>p.addEventListener("abort",h));const{signal:u}=r;return u.unsubscribe=()=>he.asap(v),u}},JS=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,d;for(;r<t;)d=r+e,yield n.slice(r,d),r=d},XS=async function*(n,e){for await(const t of e$(n))yield*JS(t,e)},e$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},By=(n,e,t,r)=>{const d=XS(n,e);let h=0,g,v=u=>{g||(g=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:p,value:s}=await d.next();if(p){v(),u.close();return}let l=s.byteLength;if(t){let a=h+=l;t(a)}u.enqueue(new Uint8Array(s))}catch(p){throw v(p),p}},cancel(u){return v(u),d.return()}},{highWaterMark:2})},_l=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zy=_l&&typeof ReadableStream=="function",t$=_l&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),Uy=(n,...e)=>{try{return!!n(...e)}catch{return!1}},n$=zy&&Uy(()=>{let n=!1;const e=new Request(Wn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Vy=64*1024,Oh=zy&&Uy(()=>he.isReadableStream(new Response("").body)),kl={stream:Oh&&(n=>n.body)};_l&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!kl[e]&&(kl[e]=he.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new it(`Response type '${e}' is not supported`,it.ERR_NOT_SUPPORT,r)})})})(new Response);const r$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Wn.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 t$(n)).byteLength},i$=async(n,e)=>he.toFiniteNumber(n.getContentLength())??r$(e),o$=_l&&(async n=>{let{url:e,method:t,data:r,signal:d,cancelToken:h,timeout:g,onDownloadProgress:v,onUploadProgress:u,responseType:p,headers:s,withCredentials:l="same-origin",fetchOptions:a}=jy(n);p=p?(p+"").toLowerCase():"text";let c=ZS([d,h&&h.toAbortSignal()],g),o;const f=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let y;try{if(u&&n$&&t!=="get"&&t!=="head"&&(y=await i$(s,r))!==0){let C=new Request(e,{method:"POST",body:r,duplex:"half"}),b;if(he.isFormData(r)&&(b=C.headers.get("content-type"))&&s.setContentType(b),C.body){const[T,R]=Fy(y,Cl(Py(u)));r=By(C.body,Vy,T,R)}}he.isString(l)||(l=l?"include":"omit");const w="credentials"in Request.prototype;o=new Request(e,{...a,signal:c,method:t.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:w?l:void 0});let x=await fetch(o);const E=Oh&&(p==="stream"||p==="response");if(Oh&&(v||E&&f)){const C={};["status","statusText","headers"].forEach(L=>{C[L]=x[L]});const b=he.toFiniteNumber(x.headers.get("content-length")),[T,R]=v&&Fy(b,Cl(Py(v),!0))||[];x=new Response(By(x.body,Vy,T,()=>{R&&R(),f&&f()}),C)}p=p||"text";let S=await kl[he.findKey(kl,p)||"text"](x,n);return!E&&f&&f(),await new Promise((C,b)=>{Ny(C,b,{data:S,headers:nr.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(w){throw f&&f(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,n,o),{cause:w.cause||w}):it.from(w,w&&w.code,n,o)}}),Dh={http:bS,xhr:QS,fetch:o$};he.forEach(Dh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const qy=n=>`- ${n}`,s$=n=>he.isFunction(n)||n===null||n===!1,Gy={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:e}=n;let t,r;const d={};for(let h=0;h<e;h++){t=n[h];let g;if(r=t,!s$(t)&&(r=Dh[(g=String(t)).toLowerCase()],r===void 0))throw new it(`Unknown adapter '${g}'`);if(r)break;d[g||"#"+h]=r}if(!r){const h=Object.entries(d).map(([v,u])=>`adapter ${v} `+(u===!1?"is not supported by the environment":"is not available in the build"));let g=e?h.length>1?`since :
|
1412
|
-
`+h.map(qy).join(`
|
1413
|
-
`):" "+qy(h[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return r},adapters:Dh};function Nh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Xo(null,n)}function Yy(n){return Nh(n),n.headers=nr.from(n.headers),n.data=Lh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Gy.getAdapter(n.adapter||Us.adapter)(n).then(function(e){return Nh(n),e.data=Lh.call(n,n.transformResponse,e),e.headers=nr.from(e.headers),e},function(e){return Dy(e)||(Nh(n),e&&e.response&&(e.response.data=Lh.call(n,n.transformResponse,e.response),e.response.headers=nr.from(e.response.headers))),Promise.reject(e)})}const Ky="1.7.9",Sl={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Sl[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Qy={};Sl.transitional=function(n,e,t){function r(d,h){return"[Axios v"+Ky+"] Transitional option '"+d+"'"+h+(t?". "+t:"")}return(d,h,g)=>{if(n===!1)throw new it(r(h," has been removed"+(e?" in "+e:"")),it.ERR_DEPRECATED);return e&&!Qy[h]&&(Qy[h]=!0,console.warn(r(h," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(d,h,g):!0}},Sl.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function a$(n,e,t){if(typeof n!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let d=r.length;for(;d-- >0;){const h=r[d],g=e[h];if(g){const v=n[h],u=v===void 0||g(v,h,n);if(u!==!0)throw new it("option "+h+" must be "+u,it.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new it("Unknown option "+h,it.ERR_BAD_OPTION)}}const $l={assertOptions:a$,validators:Sl},Yr=$l.validators;let yo=class{constructor(e){this.defaults=e,this.interceptors={request:new Ry,response:new Ry}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const h=d.stack?d.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
1414
|
-
`+h):r.stack=h}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=mo(this.defaults,t);const{transitional:r,paramsSerializer:d,headers:h}=t;r!==void 0&&$l.assertOptions(r,{silentJSONParsing:Yr.transitional(Yr.boolean),forcedJSONParsing:Yr.transitional(Yr.boolean),clarifyTimeoutError:Yr.transitional(Yr.boolean)},!1),d!=null&&(he.isFunction(d)?t.paramsSerializer={serialize:d}:$l.assertOptions(d,{encode:Yr.function,serialize:Yr.function},!0)),$l.assertOptions(t,{baseUrl:Yr.spelling("baseURL"),withXsrfToken:Yr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let g=h&&he.merge(h.common,h[t.method]);h&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),t.headers=nr.concat(g,h);const v=[];let u=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(t)===!1||(u=u&&o.synchronous,v.unshift(o.fulfilled,o.rejected))});const p=[];this.interceptors.response.forEach(function(o){p.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!u){const o=[Yy.bind(this),void 0];for(o.unshift.apply(o,v),o.push.apply(o,p),a=o.length,s=Promise.resolve(t);l<a;)s=s.then(o[l++],o[l++]);return s}a=v.length;let c=t;for(l=0;l<a;){const o=v[l++],f=v[l++];try{c=o(c)}catch(y){f.call(this,y);break}}try{s=Yy.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,a=p.length;l<a;)s=s.then(p[l++],p[l++]);return s}getUri(e){e=mo(this.defaults,e);const t=Hy(e.baseURL,e.url);return Ey(t,e.params,e.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){yo.prototype[n]=function(e,t){return this.request(mo(t||{},{method:n,url:e,data:(t||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function e(t){return function(r,d,h){return this.request(mo(h||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}yo.prototype[n]=e(),yo.prototype[n+"Form"]=e(!0)});let l$=class Ww{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(d){t=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](d);r._listeners=null}),this.promise.then=d=>{let h;const g=new Promise(v=>{r.subscribe(v),h=v}).then(d);return g.cancel=function(){r.unsubscribe(h)},g},e(function(d,h,g){r.reason||(r.reason=new Xo(d,h,g),t(r.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=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ww(function(t){e=t}),cancel:e}}};function c$(n){return function(e){return n.apply(null,e)}}function u$(n){return he.isObject(n)&&n.isAxiosError===!0}const Fh={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(Fh).forEach(([n,e])=>{Fh[e]=n});function Zy(n){const e=new yo(n),t=gy(yo.prototype.request,e);return he.extend(t,yo.prototype,e,{allOwnKeys:!0}),he.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Zy(mo(n,r))},t}const cn=Rn("c",Zy(Us));cn.Axios=yo,cn.CanceledError=Xo,cn.CancelToken=l$,cn.isCancel=Dy,cn.VERSION=Ky,cn.toFormData=xl,cn.AxiosError=it,cn.Cancel=cn.CanceledError,cn.all=function(n){return Promise.all(n)},cn.spread=c$,cn.isAxiosError=u$,cn.mergeConfig=mo,cn.AxiosHeaders=nr,cn.formToJSON=n=>Ly(he.isHTMLForm(n)?new FormData(n):n),cn.getAdapter=Gy.getAdapter,cn.HttpStatusCode=Fh,cn.default=cn;const{Axios:XD,AxiosError:eN,CanceledError:tN,isCancel:nN,CancelToken:rN,VERSION:iN,all:oN,Cancel:sN,isAxiosError:aN,spread:lN,toFormData:cN,AxiosHeaders:uN,HttpStatusCode:hN,formToJSON:dN,getAdapter:fN,mergeConfig:gN}=cn;function Jy(){return Object.assign({},Do())}function h$(n,e,t){const r=Gt(n,void 0);return r.setTime(r.getTime()+e*Da),r}function d$(n,e){const t=()=>pn(void 0,NaN),r=m$(n);let d;if(r.date){const u=y$(r.date,2);d=v$(u.restDateString,u.year)}if(!d||isNaN(+d))return t();const h=+d;let g=0,v;if(r.time&&(g=w$(r.time),isNaN(g)))return t();if(r.timezone){if(v=b$(r.timezone),isNaN(v))return t()}else{const u=new Date(h+g),p=Gt(0,void 0);return p.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),p.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),p}return Gt(h+g+v,void 0)}const Tl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},f$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,g$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,p$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function m$(n){const e={},t=n.split(Tl.dateTimeDelimiter);let r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],Tl.timeZoneDelimiter.test(e.date)&&(e.date=n.split(Tl.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){const d=Tl.timezone.exec(r);d?(e.time=r.replace(d[1],""),e.timezone=d[1]):e.time=r}return e}function y$(n,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};const d=r[1]?parseInt(r[1]):null,h=r[2]?parseInt(r[2]):null;return{year:h===null?d:h*100,restDateString:n.slice((r[1]||r[2]).length)}}function v$(n,e){if(e===null)return new Date(NaN);const t=n.match(f$);if(!t)return new Date(NaN);const r=!!t[4],d=qs(t[1]),h=qs(t[2])-1,g=qs(t[3]),v=qs(t[4]),u=qs(t[5])-1;if(r)return k$(e,v,u)?x$(e,v,u):new Date(NaN);{const p=new Date(0);return!C$(e,h,g)||!_$(e,d)?new Date(NaN):(p.setUTCFullYear(e,h,Math.max(d,g)),p)}}function qs(n){return n?parseInt(n):1}function w$(n){const e=n.match(g$);if(!e)return NaN;const t=Ph(e[1]),r=Ph(e[2]),d=Ph(e[3]);return S$(t,r,d)?t*Bc+r*Da+d*1e3:NaN}function Ph(n){return n&&parseFloat(n.replace(",","."))||0}function b$(n){if(n==="Z")return 0;const e=n.match(p$);if(!e)return 0;const t=e[1]==="+"?-1:1,r=parseInt(e[2]),d=e[3]&&parseInt(e[3])||0;return $$(r,d)?t*(r*Bc+d*Da):NaN}function x$(n,e,t){const r=new Date(0);r.setUTCFullYear(n,0,4);const d=r.getUTCDay()||7,h=(e-1)*7+t+1-d;return r.setUTCDate(r.getUTCDate()+h),r}const A$=[31,null,31,30,31,30,31,31,30,31,30,31];function Xy(n){return n%400===0||n%4===0&&n%100!==0}function C$(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(A$[e]||(Xy(n)?29:28))}function _$(n,e){return e>=1&&e<=(Xy(n)?366:365)}function k$(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function S$(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function $$(n,e){return e>=0&&e<=59}function T$(n,e,t){return h$(n,-e)}function e0(n,e,t){const r=Jy(),d=R$(n,t.timeZone,t.locale??r.locale);return"formatToParts"in d?I$(d,e):E$(d,e)}function I$(n,e){const t=n.formatToParts(e);for(let r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function E$(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function R$(n,e,t){return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:e,timeZoneName:n})}function M$(n,e){const t=F$(e);return"formatToParts"in t?O$(t,n):D$(t,n)}const L$={year:0,month:1,day:2,hour:3,minute:4,second:5};function O$(n,e){try{const t=n.formatToParts(e),r=[];for(let d=0;d<t.length;d++){const h=L$[t[d].type];h!==void 0&&(r[h]=parseInt(t[d].value,10))}return r}catch(t){if(t instanceof RangeError)return[NaN];throw t}}function D$(n,e){const t=n.format(e),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Hh={},t0=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")),N$=t0==="06/25/2014, 00:00:00"||t0==="06/25/2014 00:00:00";function F$(n){return Hh[n]||(Hh[n]=N$?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"})),Hh[n]}function n0(n,e,t,r,d,h,g){const v=new Date(0);return v.setUTCFullYear(n,e,t),v.setUTCHours(r,d,h,g),v}const r0=36e5,P$=6e4,Wh={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function jh(n,e,t){if(!n)return 0;let r=Wh.timezoneZ.exec(n);if(r)return 0;let d,h;if(r=Wh.timezoneHH.exec(n),r)return d=parseInt(r[1],10),i0(d)?-(d*r0):NaN;if(r=Wh.timezoneHHMM.exec(n),r){d=parseInt(r[2],10);const g=parseInt(r[3],10);return i0(d,g)?(h=Math.abs(d)*r0+g*P$,r[1]==="+"?-h:h):NaN}if(j$(n)){e=new Date(e||Date.now());const g=t?e:H$(e),v=Bh(g,n);return-(t?v:W$(e,v,n))}return NaN}function H$(n){return n0(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Bh(n,e){const t=M$(n,e),r=n0(t[0],t[1]-1,t[2],t[3]%24,t[4],t[5],0).getTime();let d=n.getTime();const h=d%1e3;return d-=h>=0?h:1e3+h,r-d}function W$(n,e,t){let r=n.getTime()-e;const d=Bh(new Date(r),t);if(e===d)return e;r-=d-e;const h=Bh(new Date(r),t);return d===h?d:Math.max(d,h)}function i0(n,e){return-23<=n&&n<=23&&(e==null||0<=e&&e<=59)}const o0={};function j$(n){if(o0[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),o0[n]=!0,!0}catch{return!1}}const B$=60*1e3,z$={X:function(n,e,t){const r=zh(t.timeZone,n);if(r===0)return"Z";switch(e){case"X":return s0(r);case"XXXX":case"XX":return es(r);case"XXXXX":case"XXX":default:return es(r,":")}},x:function(n,e,t){const r=zh(t.timeZone,n);switch(e){case"x":return s0(r);case"xxxx":case"xx":return es(r);case"xxxxx":case"xxx":default:return es(r,":")}},O:function(n,e,t){const r=zh(t.timeZone,n);switch(e){case"O":case"OO":case"OOO":return"GMT"+U$(r,":");case"OOOO":default:return"GMT"+es(r,":")}},z:function(n,e,t){switch(e){case"z":case"zz":case"zzz":return e0("short",n,t);case"zzzz":default:return e0("long",n,t)}}};function zh(n,e){const t=n?jh(n,e,!0)/B$:(e==null?void 0:e.getTimezoneOffset())??0;if(Number.isNaN(t))throw new RangeError("Invalid time zone specified: "+n);return t}function Il(n,e){const t=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<e;)r="0"+r;return t+r}function es(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Il(Math.floor(r/60),2),h=Il(Math.floor(r%60),2);return t+d+e+h}function s0(n,e){return n%60===0?(n>0?"-":"+")+Il(Math.abs(n)/60,2):es(n,e)}function U$(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Math.floor(r/60),h=r%60;return h===0?t+String(d):t+String(d)+e+Il(h,2)}function a0(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 V$=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Uh=36e5,l0=6e4,q$=2,Yn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,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:V$};function c0(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?q$: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 r=G$(n),{year:d,restDateString:h}=Y$(r.date,t),g=K$(h,d);if(g===null||isNaN(g.getTime()))return new Date(NaN);if(g){const v=g.getTime();let u=0,p;if(r.time&&(u=Q$(r.time),u===null||isNaN(u)))return new Date(NaN);if(r.timeZone||e.timeZone){if(p=jh(r.timeZone||e.timeZone,new Date(v+u)),isNaN(p))return new Date(NaN)}else p=a0(new Date(v+u)),p=a0(new Date(v+u+p));return new Date(v+u+p)}else return new Date(NaN)}function G$(n){const e={};let t=Yn.dateTimePattern.exec(n),r;if(t?(e.date=t[1],r=t[3]):(t=Yn.datePattern.exec(n),t?(e.date=t[1],r=t[2]):(e.date=null,r=n)),r){const d=Yn.timeZone.exec(r);d?(e.time=r.replace(d[1],""),e.timeZone=d[1].trim()):e.time=r}return e}function Y$(n,e){if(n){const t=Yn.YYY[e],r=Yn.YYYYY[e];let d=Yn.YYYY.exec(n)||r.exec(n);if(d){const h=d[1];return{year:parseInt(h,10),restDateString:n.slice(h.length)}}if(d=Yn.YY.exec(n)||t.exec(n),d){const h=d[1];return{year:parseInt(h,10)*100,restDateString:n.slice(h.length)}}}return{year:null}}function K$(n,e){if(e===null)return null;let t,r,d;if(!n||!n.length)return t=new Date(0),t.setUTCFullYear(e),t;let h=Yn.MM.exec(n);if(h)return t=new Date(0),r=parseInt(h[1],10)-1,d0(e,r)?(t.setUTCFullYear(e,r),t):new Date(NaN);if(h=Yn.DDD.exec(n),h){t=new Date(0);const g=parseInt(h[1],10);return X$(e,g)?(t.setUTCFullYear(e,0,g),t):new Date(NaN)}if(h=Yn.MMDD.exec(n),h){t=new Date(0),r=parseInt(h[1],10)-1;const g=parseInt(h[2],10);return d0(e,r,g)?(t.setUTCFullYear(e,r,g),t):new Date(NaN)}if(h=Yn.Www.exec(n),h)return d=parseInt(h[1],10)-1,f0(d)?u0(e,d):new Date(NaN);if(h=Yn.WwwD.exec(n),h){d=parseInt(h[1],10)-1;const g=parseInt(h[2],10)-1;return f0(d,g)?u0(e,d,g):new Date(NaN)}return null}function Q$(n){let e,t,r=Yn.HH.exec(n);if(r)return e=parseFloat(r[1].replace(",",".")),Vh(e)?e%24*Uh:NaN;if(r=Yn.HHMM.exec(n),r)return e=parseInt(r[1],10),t=parseFloat(r[2].replace(",",".")),Vh(e,t)?e%24*Uh+t*l0:NaN;if(r=Yn.HHMMSS.exec(n),r){e=parseInt(r[1],10),t=parseInt(r[2],10);const d=parseFloat(r[3].replace(",","."));return Vh(e,t,d)?e%24*Uh+t*l0+d*1e3:NaN}return null}function u0(n,e,t){e=e||0,t=t||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const d=r.getUTCDay()||7,h=e*7+t+1-d;return r.setUTCDate(r.getUTCDate()+h),r}const Z$=[31,28,31,30,31,30,31,31,30,31,30,31],J$=[31,29,31,30,31,30,31,31,30,31,30,31];function h0(n){return n%400===0||n%4===0&&n%100!==0}function d0(n,e,t){if(e<0||e>11)return!1;if(t!=null){if(t<1)return!1;const r=h0(n);if(r&&t>J$[e]||!r&&t>Z$[e])return!1}return!0}function X$(n,e){if(e<1)return!1;const t=h0(n);return!(t&&e>366||!t&&e>365)}function f0(n,e){return!(n<0||n>52||e!=null&&(e<0||e>6))}function Vh(n,e,t){return!(n<0||n>=25||e!=null&&(e<0||e>=60)||t!=null&&(t<0||t>=60))}const eT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function tT(n,e,t={}){e=String(e);const r=e.match(eT);if(r){const d=c0(t.originalDate||n,t);e=r.reduce(function(h,g){if(g[0]==="'")return h;const v=h.indexOf(g),u=h[v-1]==="'",p=h.replace(g,"'"+z$[g[0]](d,g,t)+"'");return u?p.substring(0,v-1)+p.substring(v+1):p},e)}return to(n,e,t)}function nT(n,e,t){n=c0(n,t);const r=jh(e,n,!0),d=new Date(n.getTime()-r),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}function qh(n,e,t,r){return r={...r,timeZone:e,originalDate:n},tT(nT(n,e,{timeZone:r.timeZone}),t,r)}const Gh="yyyy-MM-dd",g0="HH:mm:ss.SSS",rT="HH:mm:ss",El=`${Gh} ${g0}`,pN=Rn("P",{methods:{parseDateTime(n,e){return n.includes(" ")&&(n=n.replace(" ","T")),e&&e==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,e){return to(!e||e==="local"?T$(n,n.getTimezoneOffset()):n,El)},formatDateTime(n,e){return!e||e==="local"?to(n,El):qh(n,e,El)},formatDate:function(n,e){return!e||e==="local"?to(n,Gh):qh(n,this.timeZone,Gh)},formatTime:function(n,e,t=g0){return!e||e==="local"?to(n,t):qh(n,this.timeZone,t)},formatTimeHMS:function(n,e){return this.formatTime(n,e,rT)},formatTimestamp(n,e){return this.formatDateTime(d$(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 iT=Object.defineProperty,oT=(n,e,t)=>e in n?iT(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Oe=(n,e,t)=>oT(n,typeof e!="symbol"?e+"":e,t);function Yh(n,e,t){const r=Gt(n,t==null?void 0:t.in);return isNaN(e)?pn((t==null?void 0:t.in)||n,NaN):(e&&r.setDate(r.getDate()+e),r)}function sT(n,e){const t=Gt(n,void 0).getDay();return t===0?7:t}function aT(n,e){const t=lT(e)?new e(0):pn(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function lT(n){var e;return typeof n=="function"&&((e=n.prototype)==null?void 0:e.constructor)===n}const cT=10;let p0=class{constructor(){Oe(this,"subPriority",0)}validate(e,t){return!0}},uT=class extends p0{constructor(e,t,r,d,h){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=d,h&&(this.subPriority=h)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}},hT=class extends p0{constructor(e,t){super(),Oe(this,"priority",cT),Oe(this,"subPriority",-1),this.context=e||(r=>pn(t,r))}set(e,t){return t.timestampIsSet?e:pn(e,aT(e,this.context))}};class kt{run(e,t,r,d){const h=this.parse(e,t,r,d);return h?{setter:new uT(h.value,this.validate,this.set,this.priority,this.subPriority),rest:h.rest}:null}validate(e,t,r){return!0}}class dT extends kt{constructor(){super(...arguments),Oe(this,"priority",140),Oe(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}const un={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}/},Kr={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 hn(n,e){return n&&{value:e(n.value),rest:n.rest}}function Zt(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Qr(n,e){const t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const r=t[1]==="+"?1:-1,d=t[2]?parseInt(t[2],10):0,h=t[3]?parseInt(t[3],10):0,g=t[5]?parseInt(t[5],10):0;return{value:r*(d*Bc+h*Da+g*Jw),rest:e.slice(t[0].length)}}function m0(n){return Zt(un.anyDigitsSigned,n)}function nn(n,e){switch(n){case 1:return Zt(un.singleDigit,e);case 2:return Zt(un.twoDigits,e);case 3:return Zt(un.threeDigits,e);case 4:return Zt(un.fourDigits,e);default:return Zt(new RegExp("^\\d{1,"+n+"}"),e)}}function y0(n,e){switch(n){case 1:return Zt(un.singleDigitSigned,e);case 2:return Zt(un.twoDigitsSigned,e);case 3:return Zt(un.threeDigitsSigned,e);case 4:return Zt(un.fourDigitsSigned,e);default:return Zt(new RegExp("^-?\\d{1,"+n+"}"),e)}}function Kh(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 v0(n,e){const t=e>0,r=t?e:1-e;let d;if(r<=50)d=n||100;else{const h=r+50,g=Math.trunc(h/100)*100,v=n>=h%100;d=n+g-(v?100:0)}return t?d:1-d}function w0(n){return n%400===0||n%4===0&&n%100!==0}class fT extends kt{constructor(){super(...arguments),Oe(this,"priority",130),Oe(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,r){const d=h=>({year:h,isTwoDigitYear:t==="yy"});switch(t){case"y":return hn(nn(4,e),d);case"yo":return hn(r.ordinalNumber(e,{unit:"year"}),d);default:return hn(nn(t.length,e),d)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const d=e.getFullYear();if(r.isTwoDigitYear){const g=v0(r.year,d);return e.setFullYear(g,0,1),e.setHours(0,0,0,0),e}const h=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(h,0,1),e.setHours(0,0,0,0),e}}class gT extends kt{constructor(){super(...arguments),Oe(this,"priority",130),Oe(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,r){const d=h=>({year:h,isTwoDigitYear:t==="YY"});switch(t){case"Y":return hn(nn(4,e),d);case"Yo":return hn(r.ordinalNumber(e,{unit:"year"}),d);default:return hn(nn(t.length,e),d)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,d){const h=Uc(e,d);if(r.isTwoDigitYear){const v=v0(r.year,h);return e.setFullYear(v,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),Si(e,d)}const g=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(g,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),Si(e,d)}}class pT extends kt{constructor(){super(...arguments),Oe(this,"priority",130),Oe(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return y0(t==="R"?4:t.length,e)}set(e,t,r){const d=pn(e,0);return d.setFullYear(r,0,4),d.setHours(0,0,0,0),No(d)}}class mT extends kt{constructor(){super(...arguments),Oe(this,"priority",130),Oe(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return y0(t==="u"?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}let yT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",120),Oe(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"Q":case"QQ":return nn(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}},vT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",120),Oe(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"q":case"qq":return nn(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}},wT=class extends kt{constructor(){super(...arguments),Oe(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Oe(this,"priority",110)}parse(e,t,r){const d=h=>h-1;switch(t){case"M":return hn(Zt(un.month,e),d);case"MM":return hn(nn(2,e),d);case"Mo":return hn(r.ordinalNumber(e,{unit:"month"}),d);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}},bT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",110),Oe(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,r){const d=h=>h-1;switch(t){case"L":return hn(Zt(un.month,e),d);case"LL":return hn(nn(2,e),d);case"Lo":return hn(r.ordinalNumber(e,{unit:"month"}),d);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}};function xT(n,e,t){const r=Gt(n,t==null?void 0:t.in),d=Of(r,t)-e;return r.setDate(r.getDate()-d*7),Gt(r,t==null?void 0:t.in)}let AT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",100),Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,r){switch(t){case"w":return Zt(un.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return nn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,d){return Si(xT(e,r,d),d)}};function CT(n,e,t){const r=Gt(n,void 0),d=Lf(r)-e;return r.setDate(r.getDate()-d*7),r}let _T=class extends kt{constructor(){super(...arguments),Oe(this,"priority",100),Oe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,r){switch(t){case"I":return Zt(un.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return nn(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return No(CT(e,r))}};const kT=[31,28,31,30,31,30,31,31,30,31,30,31],ST=[31,29,31,30,31,30,31,31,30,31,30,31];class $T extends kt{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"subPriority",1),Oe(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"d":return Zt(un.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return nn(t.length,e)}}validate(e,t){const r=e.getFullYear(),d=w0(r),h=e.getMonth();return d?t>=1&&t<=ST[h]:t>=1&&t<=kT[h]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}}let TT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"subpriority",1),Oe(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,r){switch(t){case"D":case"DD":return Zt(un.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return nn(t.length,e)}}validate(e,t){const r=e.getFullYear();return w0(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}};function Qh(n,e,t){var r,d,h,g;const v=Do(),u=(t==null?void 0:t.weekStartsOn)??((d=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:d.weekStartsOn)??v.weekStartsOn??((g=(h=v.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,p=Gt(n,t==null?void 0:t.in),s=p.getDay(),l=(e%7+7)%7,a=7-u,c=e<0||e>6?e-(s+a)%7:(l+a)%7-(s+a)%7;return Yh(p,c,t)}let IT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Qh(e,r,d),e.setHours(0,0,0,0),e}};class ET extends kt{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,r,d){const h=g=>{const v=Math.floor((g-1)/7)*7;return(g+d.weekStartsOn+6)%7+v};switch(t){case"e":case"ee":return hn(nn(t.length,e),h);case"eo":return hn(r.ordinalNumber(e,{unit:"day"}),h);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Qh(e,r,d),e.setHours(0,0,0,0),e}}class RT extends kt{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,r,d){const h=g=>{const v=Math.floor((g-1)/7)*7;return(g+d.weekStartsOn+6)%7+v};switch(t){case"c":case"cc":return hn(nn(t.length,e),h);case"co":return hn(r.ordinalNumber(e,{unit:"day"}),h);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Qh(e,r,d),e.setHours(0,0,0,0),e}}function MT(n,e,t){const r=Gt(n,void 0),d=sT(r),h=e-d;return Yh(r,h,t)}class LT extends kt{constructor(){super(...arguments),Oe(this,"priority",90),Oe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,r){const d=h=>h===0?7:h;switch(t){case"i":case"ii":return nn(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return hn(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiii":return hn(r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiiii":return hn(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiii":default:return hn(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return e=MT(e,r),e.setHours(0,0,0,0),e}}class OT extends kt{constructor(){super(...arguments),Oe(this,"priority",80),Oe(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Kh(r),0,0,0),e}}let DT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",80),Oe(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Kh(r),0,0,0),e}},NT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",80),Oe(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Kh(r),0,0,0),e}},FT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",70),Oe(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,r){switch(t){case"h":return Zt(un.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return nn(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const d=e.getHours()>=12;return d&&r<12?e.setHours(r+12,0,0,0):!d&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}},PT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",70),Oe(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,r){switch(t){case"H":return Zt(un.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return nn(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}},HT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",70),Oe(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,r){switch(t){case"K":return Zt(un.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return nn(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}};class WT extends kt{constructor(){super(...arguments),Oe(this,"priority",70),Oe(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,r){switch(t){case"k":return Zt(un.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return nn(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const d=r<=24?r%24:r;return e.setHours(d,0,0,0),e}}let jT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",60),Oe(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"m":return Zt(un.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return nn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}},BT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",50),Oe(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"s":return Zt(un.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return nn(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}},zT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",30),Oe(this,"incompatibleTokens",["t","T"])}parse(e,t){const r=d=>Math.trunc(d*Math.pow(10,-t.length+3));return hn(nn(t.length,e),r)}set(e,t,r){return e.setMilliseconds(r),e}},UT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",10),Oe(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Qr(Kr.basicOptionalMinutes,e);case"XX":return Qr(Kr.basic,e);case"XXXX":return Qr(Kr.basicOptionalSeconds,e);case"XXXXX":return Qr(Kr.extendedOptionalSeconds,e);case"XXX":default:return Qr(Kr.extended,e)}}set(e,t,r){return t.timestampIsSet?e:pn(e,e.getTime()-Na(e)-r)}},VT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",10),Oe(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Qr(Kr.basicOptionalMinutes,e);case"xx":return Qr(Kr.basic,e);case"xxxx":return Qr(Kr.basicOptionalSeconds,e);case"xxxxx":return Qr(Kr.extendedOptionalSeconds,e);case"xxx":default:return Qr(Kr.extended,e)}}set(e,t,r){return t.timestampIsSet?e:pn(e,e.getTime()-Na(e)-r)}};class qT extends kt{constructor(){super(...arguments),Oe(this,"priority",40),Oe(this,"incompatibleTokens","*")}parse(e){return m0(e)}set(e,t,r){return[pn(e,r*1e3),{timestampIsSet:!0}]}}let GT=class extends kt{constructor(){super(...arguments),Oe(this,"priority",20),Oe(this,"incompatibleTokens","*")}parse(e){return m0(e)}set(e,t,r){return[pn(e,r),{timestampIsSet:!0}]}};const YT={G:new dT,y:new fT,Y:new gT,R:new pT,u:new mT,Q:new yT,q:new vT,M:new wT,L:new bT,w:new AT,I:new _T,d:new $T,D:new TT,E:new IT,e:new ET,c:new RT,i:new LT,a:new OT,b:new DT,B:new NT,h:new FT,H:new PT,K:new HT,k:new WT,m:new jT,s:new BT,S:new zT,X:new UT,x:new VT,t:new qT,T:new GT},KT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZT=/^'([^]*?)'?$/,JT=/''/g,XT=/\S/,eI=/[a-zA-Z]/;function tI(n,e,t,r){var d,h,g,v;const u=()=>pn(t,NaN),p=Jy(),s=p.locale??Mf,l=p.firstWeekContainsDate??((h=(d=p.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,a=p.weekStartsOn??((v=(g=p.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0;if(!e)return n?u():Gt(t,void 0);const c={firstWeekContainsDate:l,weekStartsOn:a,locale:s},o=[new hT(void 0,t)],f=e.match(QT).map(S=>{const C=S[0];if(C in Vc){const b=Vc[C];return b(S,s.formatLong)}return S}).join("").match(KT),y=[];for(let S of f){jf(S)&&qc(S,e,n),Wf(S)&&qc(S,e,n);const C=S[0],b=YT[C];if(b){const{incompatibleTokens:T}=b;if(Array.isArray(T)){const L=y.find(I=>T.includes(I.token)||I.token===C);if(L)throw new RangeError(`The format string mustn't contain \`${L.fullToken}\` and \`${S}\` at the same time`)}else if(b.incompatibleTokens==="*"&&y.length>0)throw new RangeError(`The format string mustn't contain \`${S}\` and any other token at the same time`);y.push({token:C,fullToken:S});const R=b.run(n,S,s.match,c);if(!R)return u();o.push(R.setter),n=R.rest}else{if(C.match(eI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if(S==="''"?S="'":C==="'"&&(S=nI(S)),n.indexOf(S)===0)n=n.slice(S.length);else return u()}}if(n.length>0&&XT.test(n))return u();const w=o.map(S=>S.priority).sort((S,C)=>C-S).filter((S,C,b)=>b.indexOf(S)===C).map(S=>o.filter(C=>C.priority===S).sort((C,b)=>b.subPriority-C.subPriority)).map(S=>S[0]);let x=Gt(t,void 0);if(isNaN(+x))return u();const E={};for(const S of w){if(!S.validate(x,c))return u();const C=S.set(x,E,c);Array.isArray(C)?(x=C[0],Object.assign(E,C[1])):x=C}return x}function nI(n){return n.match(ZT)[1].replace(JT,"'")}const rI={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function iI(n,e,t,r,d,h){const g=_e("rux-icon");return Pe(),At(g,{size:t.size,icon:t.icon,style:Zi(h.colorStyle)},null,8,["size","icon","style"])}const oI=Vr(rI,[["render",iI],["__scopeId","data-v-9af48e85"]]),sI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",aI={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return sI},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=hI.indexOf(b0[this.status]),e=1-(n-1)*.05,t=224*this.scaleFactor*e,r=32*this.scaleFactor*e,d=32*this.scaleFactor*e;return[`background-image: url(${this.icons});`,`background-position-x: -${n*d}px;`,`background-size: ${t}px ${r}px;`,`height: ${d}px;`,`width: ${d}px;`,`padding-top: ${n-1}px;`].join("")}}};function lI(n,e,t,r,d,h){return Pe(),Ot("div",{style:Zi(h.iconStyle)},null,4)}const cI=Vr(aI,[["render",lI]]),b0={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"},uI=function(n){const e="#000000",t="#ffffff",r=Zh[b0[n]];if(r){const d=+`0x${r.slice(1,3)}`,h=+`0x${r.slice(3,5)}`,g=+`0x${r.slice(5,7)}`;if((d*299+h*587+g*114)/1e3>128)return e}return t},hI=Object.keys(Zh),dI={astro:{component:n=>Cs(oI,{...n})},"astro-status":{component:n=>Cs(cI,{...n,status:n.icon})}},fI={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}},gI={class:"app-title mr-2"};function pI(n,e,t,r,d,h){const g=_e("v-col"),v=_e("v-row"),u=_e("v-icon"),p=_e("v-btn"),s=_e("v-divider"),l=_e("v-list-item-title"),a=_e("v-list-item"),c=_e("v-list"),o=_e("v-menu"),f=_e("v-radio"),y=_e("v-list-item-action"),w=_e("v-radio-group"),x=_e("v-checkbox");return Pe(),At(uf,{to:"#openc3-menu"},[Ae(v,{"no-gutters":""},{default:xe(()=>[Ae(g,{"align-self":"end"},{default:xe(()=>[Mn("span",gI,qt(t.title),1)]),_:1})]),_:1}),Ae(v,{dense:"",class:"flex-nowrap"},{default:xe(()=>[(Pe(!0),Ot(Lr,null,Ur(t.menus,(E,S)=>(Pe(),At(o,{ref_for:!0,ref:"topmenu",key:S},{activator:xe(({props:C})=>[Ae(p,_s({ref_for:!0},C,{variant:"outlined",class:"mx-1 menu-button",text:E.label,"data-test":h.formatDT(`${t.title} ${E.label}`)}),{append:xe(()=>[Ae(u,{class:"menu-button-icon"},{default:xe(()=>e[0]||(e[0]=[ft(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:xe(()=>[Ae(c,null,{default:xe(()=>[(Pe(!0),Ot(Lr,null,Ur(E.items,(C,b)=>(Pe(),Ot(Lr,null,[C.divider?(Pe(),At(s,{key:b+"-divider"})):C.subMenu&&C.subMenu.length>0?(Pe(),Ot("div",{key:b+"-submenu"},[(Pe(),At(o,{"open-on-hover":"",location:"right",key:b},{activator:xe(({props:T})=>[(Pe(),At(a,_s({ref_for:!0},T,{disabled:C.disabled,key:b}),Hc({append:xe(()=>[Ae(u,null,{default:xe(()=>e[1]||(e[1]=[ft(" mdi-chevron-right ")])),_:1})]),default:xe(()=>[!C.radio&&!C.checkbox?(Pe(),At(l,{key:0,style:Zi("cursor: pointer;"+(C.disabled?"opacity: 0.2":""))},{default:xe(()=>[ft(qt(C.label),1)]),_:2},1032,["style"])):er("",!0)]),_:2},[C.icon?{name:"prepend",fn:xe(()=>[Ae(u,{disabled:C.disabled},{default:xe(()=>[ft(qt(C.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:xe(()=>[Ae(c,null,{default:xe(()=>[(Pe(!0),Ot(Lr,null,Ur(C.subMenu,(T,R)=>(Pe(),At(a,{key:R,"prepend-icon":T.icon,onClick:L=>h.subMenuClick(T)},{default:xe(()=>[Ae(l,null,{default:xe(()=>[ft(qt(T.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):C.radioGroup?(Pe(),At(w,{"model-value":C.value,"onUpdate:modelValue":C.command,key:b+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:xe(()=>[(Pe(!0),Ot(Lr,null,Ur(C.choices,(T,R)=>(Pe(),At(a,{key:R+"-choice"},{default:xe(()=>[Ae(y,{class:"list-action"},{default:xe(()=>[Ae(f,{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(),At(a,{onClick:T=>C.command(C),disabled:C.disabled,"data-test":h.formatDT(`${t.title} ${E.label} ${C.label}`),key:b+"-list"},Hc({default:xe(()=>[C.checkbox?(Pe(),At(y,{key:0,class:"list-action"},{default:xe(()=>[Ae(x,{modelValue:C.checked,"onUpdate:modelValue":T=>C.checked=T,label:C.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):er("",!0),!C.radio&&!C.checkbox?(Pe(),At(l,{key:1,style:Zi("cursor: pointer;"+(C.disabled?"opacity: 0.2":""))},{default:xe(()=>[ft(qt(C.label),1)]),_:2},1032,["style"])):er("",!0)]),_:2},[C.icon?{name:"prepend",fn:xe(()=>[Ae(u,{icon:C.icon,disabled:C.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const mI=Vr(fI,[["render",pI],["__scopeId","data-v-4d454b93"]]),x0="single-spa:app-change",yI={data(){return{show:!1}},created(){window.addEventListener(x0,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=Cf().length===0},150)},unmounted(){window.removeEventListener(x0,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},vI={class:"mx-1"};function wI(n,e,t,r,d,h){const g=_e("v-card-title"),v=_e("v-card-text"),u=_e("v-card");return d.show?(Pe(),At(u,{key:0},{default:xe(()=>[Ae(g,null,{default:xe(()=>e[0]||(e[0]=[ft(" 404 Not Found ")])),_:1}),Ae(v,{class:"d-flex align-center mt-3"},{default:xe(()=>[e[1]||(e[1]=ft(" The requested URL ")),Mn("code",vI,qt(n.$route.fullPath),1),e[2]||(e[2]=ft(" was not routable. ")),e[3]||(e[3]=Mn("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):er("",!0)}const bI=Vr(yI,[["render",wI]]),xI={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,cn.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()}}},AI={class:"pa-3"},CI={class:"px-2"},_I={key:0,class:"mt-4"},kI={key:1,class:"mt-4"},SI={key:0},$I={key:1};function TI(n,e,t,r,d,h){const g=_e("v-spacer"),v=_e("v-toolbar"),u=_e("v-row"),p=_e("v-icon"),s=_e("v-btn"),l=_e("v-col"),a=_e("v-list-item-title"),c=_e("v-progress-circular"),o=_e("v-tooltip"),f=_e("v-list-item"),y=_e("v-divider"),w=_e("v-card-text"),x=_e("v-card"),E=_e("v-dialog");return Pe(),At(E,{modelValue:h.show,"onUpdate:modelValue":e[0]||(e[0]=S=>h.show=S),width:"600"},{default:xe(()=>[Ae(x,null,{default:xe(()=>[Ae(v,{height:"24"},{default:xe(()=>[Ae(g),e[1]||(e[1]=Mn("span",null," Download Gems ",-1)),Ae(g)]),_:1}),Ae(w,null,{default:xe(()=>[Mn("div",AI,[Ae(u,{class:"my-2"},{default:xe(()=>e[2]||(e[2]=[ft(" Select a download option ")])),_:1}),Ae(u,null,{default:xe(()=>[Ae(l,null,{default:xe(()=>[Mn("div",CI,[Ae(s,{onClick:h.searchGithub,block:"","data-test":"searchGithub",color:"primary",disabled:d.disableSearch},{default:xe(()=>[e[4]||(e[4]=ft(" Github ")),Ae(p,{end:"",theme:"dark"},{default:xe(()=>e[3]||(e[3]=[ft(" mdi-github ")])),_:1})]),_:1},8,["onClick","disabled"])])]),_:1})]),_:1}),Ae(u,{class:"mt-5"},{default:xe(()=>e[5]||(e[5]=[ft(" Community Gems ")])),_:1}),h.listData.length<1?(Pe(),Ot("div",_I,[Ae(u,{class:"mx-2"},{default:xe(()=>e[6]||(e[6]=[Mn("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(Pe(),Ot("div",kI,[(Pe(!0),Ot(Lr,null,Ur(h.listData,(S,C)=>(Pe(),Ot("div",{key:C},[Ae(f,null,{default:xe(()=>[Ae(a,null,{default:xe(()=>[ft(qt(S.name),1)]),_:2},1024),Ae(f,{icon:""},{default:xe(()=>[d.activeDownload?(Pe(),Ot("div",SI,[Ae(c,{indeterminate:"",color:"primary"})])):(Pe(),Ot("div",$I,[Ae(o,{location:"top"},{activator:xe(({props:b})=>[Ae(p,_s({ref_for:!0},b,{onClick:T=>h.downloadGem(S),disabled:d.activeDownload}),{default:xe(()=>e[7]||(e[7]=[ft(" mdi-cloud-download ")])),_:2},1040,["onClick","disabled"])]),default:xe(()=>[e[8]||(e[8]=Mn("span",null,"Download Gem",-1))]),_:2},1024)]))]),_:2},1024)]),_:2},1024),C<h.listData.length-1?(Pe(),At(y,{key:C})):er("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const mN=Rn("a",Vr(xI,[["render",TI]])),II={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)Nx.get(`/openc3-api/targets/${n.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:n.name,files:e.data})})}};function EI(n,e,t,r,d,h){const g=_e("v-spacer"),v=_e("v-toolbar"),u=_e("v-list-item-title"),p=_e("v-list-item-subtitle"),s=_e("v-list-item"),l=_e("v-checkbox"),a=_e("v-card-text"),c=_e("v-btn"),o=_e("v-card-actions"),f=_e("v-card"),y=_e("v-dialog");return Pe(),At(y,{modelValue:h.show,"onUpdate:modelValue":e[3]||(e[3]=w=>h.show=w),width:"600"},{default:xe(()=>[Ae(f,null,{default:xe(()=>[Ae(v,{height:"24"},{default:xe(()=>[Ae(g),e[4]||(e[4]=Mn("span",null," Modified Plugin ",-1)),Ae(g)]),_:1}),Ae(a,{class:"pa-3"},{default:xe(()=>[Mn("div",null," Plugin "+qt(t.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(Pe(!0),Ot(Lr,null,Ur(d.modifiedTargets,(w,x)=>(Pe(),At(s,{lines:"two",key:x},{default:xe(()=>[Ae(u,null,{default:xe(()=>[ft(qt(w.name),1)]),_:2},1024),(Pe(!0),Ot(Lr,null,Ur(w.files,(E,S)=>(Pe(),At(p,{key:S},{default:xe(()=>[ft(qt(E),1)]),_:2},1024))),128))]),_:2},1024))),128)),Ae(l,{modelValue:d.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=w=>d.deleteModified=w),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),Ae(o,{class:"px-2"},{default:xe(()=>[Ae(g),Ae(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}),Ae(c,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[2]||(e[2]=()=>{h.show=!1,n.$emit("submit",d.deleteModified)})},{default:xe(()=>e[6]||(e[6]=[ft(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const yN=Rn("_",Vr(II,[["render",EI]])),Jh=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Le(()=>Me.import("./PluginsTab-Ds3jk64b-831383858209ff2c2d5e.js"),void 0)},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Le(()=>Me.import("./TargetsTab-Cd8U1aN_-968369f75aa684d02f9b.js"),void 0)},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Le(()=>Me.import("./InterfacesTab-DAeNlGlB-e1c02697b38318186672.js"),void 0)},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Le(()=>Me.import("./RoutersTab-Dki_66av-ce7a2a94f241858d86d6.js"),void 0)},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Le(()=>Me.import("./MicroservicesTab-IbTmbPxO-69cd3eeece33f36c8a8f.js"),void 0)},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Le(()=>Me.import("./PackagesTab-BX8YP3H1-72f20ce8b559d7fcc13a.js"),void 0)},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Le(()=>Me.import("./ToolsTab-Cgpb2nAW-5b5a3d23a36b0fdcce3c.js"),void 0)},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Le(()=>Me.import("./RedisTab-CVimDkIE-975b87301f5a5bcafa9c.js"),void 0)},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Le(()=>Me.import("./SecretsTab-BjviaTxh-33a36e028d57e1378d98.js"),void 0)},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Le(()=>Me.import("./SettingsTab-Bo_dYXgb-b0ac92a82847e85fa46f.js"),void 0)}],RI={components:{TopBar:mI},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return Jh.map(n=>({displayName:n.displayName,path:{name:n.name}}))}}};function MI(n,e,t,r,d,h){const g=_e("top-bar"),v=_e("v-tab"),u=_e("v-tabs"),p=_e("router-view"),s=_e("v-card");return Pe(),Ot("div",null,[Ae(g,{title:d.title},null,8,["title"]),Ae(s,null,{default:xe(()=>[Ae(u,{modelValue:d.curTab,"onUpdate:modelValue":e[0]||(e[0]=l=>d.curTab=l),"fixed-tabs":""},{default:xe(()=>[(Pe(!0),Ot(Lr,null,Ur(h.tabs,(l,a)=>(Pe(),At(v,{key:a,to:l.path},{default:xe(()=>[ft(qt(l.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),Ae(p)]),_:1})])}const LI=Vr(RI,[["render",MI]]),be=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};be.Diff=function(n,e){this[0]=n,this[1]=e},be.Diff.prototype.length=2,be.Diff.prototype.toString=function(){return this[0]+","+this[1]},be.prototype.diff_main=function(n,e,t,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);let d=r;if(n==null||e==null)throw new Error("Null input. (diff_main)");if(n==e)return n?[new be.Diff(0,n)]:[];typeof t>"u"&&(t=!0);let h=t,g=this.diff_commonPrefix(n,e),v=n.substring(0,g);n=n.substring(g),e=e.substring(g),g=this.diff_commonSuffix(n,e);let u=n.substring(n.length-g);n=n.substring(0,n.length-g),e=e.substring(0,e.length-g);let p=this.diff_compute_(n,e,h,d);return v&&p.unshift(new be.Diff(0,v)),u&&p.push(new be.Diff(0,u)),this.diff_cleanupMerge(p),p},be.prototype.diff_compute_=function(n,e,t,r){let d;if(!n)return[new be.Diff(1,e)];if(!e)return[new be.Diff(-1,n)];let h=n.length>e.length?n:e,g=n.length>e.length?e:n,v=h.indexOf(g);return v!=-1?(d=[new be.Diff(1,h.substring(0,v)),new be.Diff(0,g),new be.Diff(1,h.substring(v+g.length))],n.length>e.length&&(d[0][0]=d[2][0]=-1),d):g.length==1?[new be.Diff(-1,n),new be.Diff(1,e)]:t&&n.length>100&&e.length>100?this.diff_lineMode_(n,e,r):this.diff_bisect_(n,e,r)},be.prototype.diff_lineMode_=function(n,e,t){let r=this.diff_linesToChars_(n,e);n=r.chars1,e=r.chars2;let d=r.lineArray,h=this.diff_main(n,e,!1,t);this.diff_charsToLines_(h,d),this.diff_cleanupSemantic(h),h.push(new be.Diff(0,""));let g=0,v=0,u=0,p="",s="";for(;g<h.length;){switch(h[g][0]){case 1:u++,s+=h[g][1];break;case-1:v++,p+=h[g][1];break;case 0:if(v>=1&&u>=1){h.splice(g-v-u,v+u),g=g-v-u;let l=this.diff_main(p,s,!1,t);for(let a=l.length-1;a>=0;a--)h.splice(g,0,l[a]);g=g+l.length}u=0,v=0,p="",s="";break}g++}return h.pop(),h},be.prototype.diff_bisect_=function(n,e,t){let r=n.length,d=e.length,h=Math.ceil((r+d)/2),g=h,v=2*h,u=new Array(v),p=new Array(v);for(let y=0;y<v;y++)u[y]=-1,p[y]=-1;u[g+1]=0,p[g+1]=0;let s=r-d,l=s%2!=0,a=0,c=0,o=0,f=0;for(let y=0;y<h&&!(new Date().getTime()>t);y++){for(let w=-y+a;w<=y-c;w+=2){let x=g+w,E;w==-y||w!=y&&u[x-1]<u[x+1]?E=u[x+1]:E=u[x-1]+1;let S=E-w;for(;E<r&&S<d&&n.charAt(E)==e.charAt(S);)E++,S++;if(u[x]=E,E>r)c+=2;else if(S>d)a+=2;else if(l){let C=g+s-w;if(C>=0&&C<v&&p[C]!=-1){let b=r-p[C];if(E>=b)return this.diff_bisectSplit_(n,e,E,S,t)}}}for(let w=-y+o;w<=y-f;w+=2){let x=g+w,E;w==-y||w!=y&&p[x-1]<p[x+1]?E=p[x+1]:E=p[x-1]+1;let S=E-w;for(;E<r&&S<d&&n.charAt(r-E-1)==e.charAt(d-S-1);)E++,S++;if(p[x]=E,E>r)f+=2;else if(S>d)o+=2;else if(!l){let C=g+s-w;if(C>=0&&C<v&&u[C]!=-1){let b=u[C],T=g+b-C;if(E=r-E,b>=E)return this.diff_bisectSplit_(n,e,b,T,t)}}}}return[new be.Diff(-1,n),new be.Diff(1,e)]},be.prototype.diff_bisectSplit_=function(n,e,t,r,d){let h=n.substring(0,t),g=e.substring(0,r),v=n.substring(t),u=e.substring(r),p=this.diff_main(h,g,!1,d),s=this.diff_main(v,u,!1,d);return p.concat(s)},be.prototype.diff_linesToChars_=function(n,e){let t=[],r={};t[0]="";function d(u){let p="",s=0,l=-1,a=t.length;for(;l<u.length-1;){l=u.indexOf(`
|
1415
|
-
`,s),l==-1&&(l=u.length-1);let c=u.substring(s,l+1);(r.hasOwnProperty?r.hasOwnProperty(c):r[c]!==void 0)?p+=String.fromCharCode(r[c]):(a==h&&(c=u.substring(s),l=u.length),p+=String.fromCharCode(a),r[c]=a,t[a++]=c),s=l+1}return p}let h=4e4,g=d(n);h=65535;let v=d(e);return{chars1:g,chars2:v,lineArray:t}},be.prototype.diff_charsToLines_=function(n,e){for(let t=0;t<n.length;t++){let r=n[t][1],d=[];for(let h=0;h<r.length;h++)d[h]=e[r.charCodeAt(h)];n[t][1]=d.join("")}},be.prototype.diff_commonPrefix=function(n,e){if(!n||!e||n.charAt(0)!=e.charAt(0))return 0;let t=0,r=Math.min(n.length,e.length),d=r,h=0;for(;t<d;)n.substring(h,d)==e.substring(h,d)?(t=d,h=t):r=d,d=Math.floor((r-t)/2+t);return d},be.prototype.diff_commonSuffix=function(n,e){if(!n||!e||n.charAt(n.length-1)!=e.charAt(e.length-1))return 0;let t=0,r=Math.min(n.length,e.length),d=r,h=0;for(;t<d;)n.substring(n.length-d,n.length-h)==e.substring(e.length-d,e.length-h)?(t=d,h=t):r=d,d=Math.floor((r-t)/2+t);return d},be.prototype.diff_commonOverlap_=function(n,e){let t=n.length,r=e.length;if(t==0||r==0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));let d=Math.min(t,r);if(n==e)return d;let h=0,g=1;for(;;){let v=n.substring(d-g),u=e.indexOf(v);if(u==-1)return h;g+=u,(u==0||n.substring(d-g)==e.substring(0,g))&&(h=g,g++)}},be.prototype.diff_halfMatch_=function(n,e){if(this.Diff_Timeout<=0)return null;let t=n.length>e.length?n:e,r=n.length>e.length?e:n;if(t.length<4||r.length*2<t.length)return null;let d=this;function h(o,f,y){let w=o.substring(y,y+Math.floor(o.length/4)),x=-1,E="",S,C,b,T;for(;(x=f.indexOf(w,x+1))!=-1;){let R=d.diff_commonPrefix(o.substring(y),f.substring(x)),L=d.diff_commonSuffix(o.substring(0,y),f.substring(0,x));E.length<L+R&&(E=f.substring(x-L,x)+f.substring(x,x+R),S=o.substring(0,y-L),C=o.substring(y+R),b=f.substring(0,x-L),T=f.substring(x+R))}return E.length*2>=o.length?[S,C,b,T,E]:null}let g=h(t,r,Math.ceil(t.length/4)),v=h(t,r,Math.ceil(t.length/2)),u;if(!g&&!v)return null;v?g?u=g[4].length>v[4].length?g:v:u=v:u=g;let p,s,l,a;n.length>e.length?(p=u[0],s=u[1],l=u[2],a=u[3]):(l=u[0],a=u[1],p=u[2],s=u[3]);let c=u[4];return[p,s,l,a,c]},be.prototype.diff_cleanupSemantic=function(n){let e=!1,t=[],r=0,d=null,h=0,g=0,v=0,u=0,p=0;for(;h<n.length;)n[h][0]==0?(t[r++]=h,g=u,v=p,u=0,p=0,d=n[h][1]):(n[h][0]==1?u+=n[h][1].length:p+=n[h][1].length,d&&d.length<=Math.max(g,v)&&d.length<=Math.max(u,p)&&(n.splice(t[r-1],0,new be.Diff(-1,d)),n[t[r-1]+1][0]=1,r--,r--,h=r>0?t[r-1]:-1,g=0,v=0,u=0,p=0,d=null,e=!0)),h++;for(e&&this.diff_cleanupMerge(n),this.diff_cleanupSemanticLossless(n),h=1;h<n.length;){if(n[h-1][0]==-1&&n[h][0]==1){let 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 be.Diff(0,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 be.Diff(0,s.substring(0,c))),n[h-1][0]=1,n[h-1][1]=l.substring(0,l.length-c),n[h+1][0]=-1,n[h+1][1]=s.substring(c),h++),h++}h++}},be.prototype.diff_cleanupSemanticLossless=function(n){function e(r,d){if(!r||!d)return 6;let h=r.charAt(r.length-1),g=d.charAt(0),v=h.match(be.nonAlphaNumericRegex_),u=g.match(be.nonAlphaNumericRegex_),p=v&&h.match(be.whitespaceRegex_),s=u&&g.match(be.whitespaceRegex_),l=p&&h.match(be.linebreakRegex_),a=s&&g.match(be.linebreakRegex_),c=l&&r.match(be.blanklineEndRegex_),o=a&&d.match(be.blanklineStartRegex_);return c||o?5:l||a?4:v&&!p&&s?3:p||s?2:v||u?1:0}let t=1;for(;t<n.length-1;){if(n[t-1][0]==0&&n[t+1][0]==0){let r=n[t-1][1],d=n[t][1],h=n[t+1][1],g=this.diff_commonSuffix(r,d);if(g){r[r.length-g]===`
|
1416
|
-
`&&(g-=1);let l=d.substring(d.length-g);r=r.substring(0,r.length-g),d=l+d.substring(0,d.length-g),h=l+h}let v=r,u=d,p=h,s=e(r,d)+e(d,h);for(;d.charAt(0)===h.charAt(0);){r+=d.charAt(0),d=d.substring(1)+h.charAt(0),h=h.substring(1);let l=e(r,d)+e(d,h);l>=s&&(s=l,v=r,u=d,p=h)}n[t-1][1]!=v&&(v?n[t-1][1]=v:(n.splice(t-1,1),t--),n[t][1]=u,p?n[t+1][1]=p:(n.splice(t+1,1),t--))}t++}},be.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,be.whitespaceRegex_=/\s/,be.linebreakRegex_=/[\r\n]/,be.blanklineEndRegex_=/\n\r?\n$/,be.blanklineStartRegex_=/^\r?\n\r?\n/,be.prototype.diff_cleanupEfficiency=function(n){let e=!1,t=[],r=0,d=null,h=0,g=!1,v=!1,u=!1,p=!1;for(;h<n.length;)n[h][0]==0?(n[h][1].length<this.Diff_EditCost&&(u||p)?(t[r++]=h,g=u,v=p,d=n[h][1]):(r=0,d=null),u=p=!1):(n[h][0]==-1?p=!0:u=!0,d&&(g&&v&&u&&p||d.length<this.Diff_EditCost/2&&g+v+u+p==3)&&(n.splice(t[r-1],0,new be.Diff(-1,d)),n[t[r-1]+1][0]=1,r--,d=null,g&&v?(u=p=!0,r=0):(r--,h=r>0?t[r-1]:-1,u=p=!1),e=!0)),h++;e&&this.diff_cleanupMerge(n)},be.prototype.diff_cleanupMerge=function(n){n.push(new be.Diff(0,""));let e=0,t=0,r=0,d="",h="",g;for(;e<n.length;)switch(n[e][0]){case 1:r++,h+=n[e][1],e++;break;case-1:t++,d+=n[e][1],e++;break;case 0:t+r>1?(t!==0&&r!==0&&(g=this.diff_commonPrefix(h,d),g!==0&&(e-t-r>0&&n[e-t-r-1][0]==0?n[e-t-r-1][1]+=h.substring(0,g):(n.splice(0,0,new be.Diff(0,h.substring(0,g))),e++),h=h.substring(g),d=d.substring(g)),g=this.diff_commonSuffix(h,d),g!==0&&(n[e][1]=h.substring(h.length-g)+n[e][1],h=h.substring(0,h.length-g),d=d.substring(0,d.length-g))),e-=t+r,n.splice(e,t+r),d.length&&(n.splice(e,0,new be.Diff(-1,d)),e++),h.length&&(n.splice(e,0,new be.Diff(1,h)),e++),e++):e!==0&&n[e-1][0]==0?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,d="",h="";break}n[n.length-1][1]===""&&n.pop();let v=!1;for(e=1;e<n.length-1;)n[e-1][0]==0&&n[e+1][0]==0&&(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),v=!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),v=!0)),e++;v&&this.diff_cleanupMerge(n)},be.prototype.diff_cleanupSplitSurrogates=function(n){let e;for(let t=0;t<n.length;t++){let r=n[t],d=r[1][0],h=r[1][r[1].length-1];if(r[1].length===0){n.splice(t--,1);continue}if(h&&this.isHighSurrogate(h)&&(e=h,r[1]=r[1].slice(0,-1)),e&&d&&this.isHighSurrogate(e)&&this.isLowSurrogate(d)&&(r[1]=e+r[1]),r[1].length===0){n.splice(t--,1);continue}}return n},be.prototype.isHighSurrogate=function(n){let e=n.charCodeAt(0);return e>=55296&&e<=56319},be.prototype.isLowSurrogate=function(n){let e=n.charCodeAt(0);return e>=56320&&e<=57343},be.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")}},be.prototype.decodeURI=function(n){try{return decodeURI(n)}catch{let e=0,t="";for(;e<n.length;){if(n[e]!=="%"){t+=n[e++];continue}let r=(this.digit16(n[e+1])<<4)+this.digit16(n[e+2]);if(!(r&128)){t+=String.fromCharCode(r),e+=3;continue}if(n[e+3]!=="%")throw new URIError("URI malformed");let d=(this.digit16(n[e+4])<<4)+this.digit16(n[e+5]);if((d&192)!==128)throw new URIError("URI malformed");if(d=d&63,(r&224)===192){t+=String.fromCharCode((r&31)<<6|d),e+=6;continue}if(n[e+6]!=="%")throw new URIError("URI malformed");let 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,(r&240)===224){t+=String.fromCharCode((r&15)<<12|d<<6|h),e+=9;continue}if(n[e+9]!=="%")throw new URIError("URI malformed");let g=(this.digit16(n[e+10])<<4)+this.digit16(n[e+11]);if((g&192)!==128)throw new URIError("URI malformed");if(g=g&63,(r&248)===240){let v=(r&7)<<18|d<<12|h<<6|g;if(v>=65536&&v<=1114111){t+=String.fromCharCode((v&65535)>>>10&1023|55296),t+=String.fromCharCode(56320|v&65535&1023),e+=12;continue}}throw new URIError("URI malformed")}return t}},be.prototype.diff_xIndex=function(n,e){let t=0,r=0,d=0,h=0,g;for(g=0;g<n.length&&(n[g][0]!==1&&(t+=n[g][1].length),n[g][0]!==-1&&(r+=n[g][1].length),!(t>e));g++)d=t,h=r;return n.length!=g&&n[g][0]===-1?h:h+(e-d)},be.prototype.diff_prettyHtml=function(n){n=this.diff_cleanupSplitSurrogates(n);let e=[],t=/&/g,r=/</g,d=/>/g,h=/\n/g;for(let g=0;g<n.length;g++){let v=n[g][0],u=n[g][1].replace(t,"&").replace(r,"<").replace(d,">").replace(h,"¶<br>");switch(v){case 1:e[g]='<ins style="background:#e6ffe6;">'+u+"</ins>";break;case-1:e[g]='<del style="background:#ffe6e6;">'+u+"</del>";break;case 0:e[g]="<span>"+u+"</span>";break}}return e.join("")},be.prototype.diff_text1=function(n){let e=[];for(let t=0;t<n.length;t++)n[t][0]!==1&&(e[t]=n[t][1]);return e.join("")},be.prototype.diff_text2=function(n){let e=[];for(let t=0;t<n.length;t++)n[t][0]!==-1&&(e[t]=n[t][1]);return e.join("")},be.prototype.diff_levenshtein=function(n){let e=0,t=0,r=0;for(let d=0;d<n.length;d++){let h=n[d][0],g=n[d][1];switch(h){case 1:t+=g.length;break;case-1:r+=g.length;break;case 0:e+=Math.max(t,r),t=0,r=0;break}}return e+=Math.max(t,r),e},be.prototype.diff_toDelta=function(n){n=this.diff_cleanupSplitSurrogates(n);let e=[];for(let t=0;t<n.length;t++)switch(n[t][0]){case 1:e[t]="+"+encodeURI(n[t][1]);break;case-1:e[t]="-"+n[t][1].length;break;case 0:e[t]="="+n[t][1].length;break}return e.join(" ").replace(/%20/g," ")},be.prototype.diff_fromDelta=function(n,e){let t=0,r="",d=[],h=0,g=0,v=e.split(/\t/g);for(let u=0;u<v.length;u++){let p=v[u].substring(1);switch(v[u].charAt(0)){case"+":try{d[h++]=new be.Diff(1,this.decodeURI(p))}catch{throw new Error("Illegal escape in diff_fromDelta: "+p)}break;case"-":case"=":if(t=parseInt(p,10),isNaN(t)||t<0)throw new Error("Invalid number in diff_fromDelta: "+p);r=n.substring(g,g+=t),v[u].charAt(0)=="="?d[h++]=new be.Diff(0,r):d[h++]=new be.Diff(-1,r);break;default:if(v[u])throw new Error("Invalid diff operation in diff_fromDelta: "+v[u])}}if(g!=n.length)throw new Error("Delta length ("+g+") does not equal source text length ("+n.length+").");return d},be.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},be.prototype.match_bitap_=function(n,e,t){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");let r=this.match_alphabet_(e),d=this;function h(c,o){let f=c/e.length,y=Math.abs(t-o);return d.Match_Distance?f+y/d.Match_Distance:y?1:f}let g=this.Match_Threshold,v=n.indexOf(e,t);v!=-1&&(g=Math.min(h(0,v),g),v=n.lastIndexOf(e,t+e.length),v!=-1&&(g=Math.min(h(0,v),g)));let u=1<<e.length-1;v=-1;let p,s,l=e.length+n.length,a;for(let c=0;c<e.length;c++){for(p=0,s=l;p<s;)h(c,t+s)<=g?p=s:l=s,s=Math.floor((l-p)/2+p);l=s;let o=Math.max(1,t-s+1),f=Math.min(t+s,n.length)+e.length,y=Array(f+2);y[f+1]=(1<<c)-1;for(let w=f;w>=o;w--){let x=r[n.charAt(w-1)];if(c===0?y[w]=(y[w+1]<<1|1)&x:y[w]=(y[w+1]<<1|1)&x|((a[w+1]|a[w])<<1|1)|a[w+1],y[w]&u){let E=h(c,w-1);if(E<=g)if(g=E,v=w-1,v>t)o=Math.max(1,2*t-v);else break}}if(h(c+1,t)>g)break;a=y}return v},be.prototype.match_alphabet_=function(n){let e={};for(let t=0;t<n.length;t++)e[n.charAt(t)]=0;for(let t=0;t<n.length;t++)e[n.charAt(t)]|=1<<n.length-t-1;return e},be.prototype.patch_addContext_=function(n,e){if(e.length==0)return;if(n.start2===null)throw Error("patch not initialized");let t=e.substring(n.start2,n.start2+n.length1),r=0;for(;e.indexOf(t)!=e.lastIndexOf(t)&&t.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,t=e.substring(n.start2-r,n.start2+n.length1+r);r+=this.Patch_Margin,n.start2-r>0&&be.prototype.isLowSurrogate(e[n.start2-r])&&r++;let d=e.substring(n.start2-r,n.start2);d&&n.diffs.unshift(new be.Diff(0,d)),n.start2+n.length1+r<e.length&&be.prototype.isHighSurrogate(e[n.start2+n.length1+r])&&r++;let h=e.substring(n.start2+n.length1,n.start2+n.length1+r);h&&n.diffs.push(new be.Diff(0,h)),n.start1-=d.length,n.start2-=d.length,n.length1+=d.length+h.length,n.length2+=d.length+h.length},be.prototype.patch_make=function(n,e,t){let r,d;if(typeof n=="string"&&typeof e=="string"&&typeof t>"u")r=n,d=this.diff_main(r,e,!0),d.length>2&&(this.diff_cleanupSemantic(d),this.diff_cleanupEfficiency(d));else if(n&&typeof n=="object"&&typeof e>"u"&&typeof t>"u")d=n,r=this.diff_text1(d);else if(typeof n=="string"&&e&&typeof e=="object"&&typeof t>"u")r=n,d=e;else if(typeof n=="string"&&typeof e=="string"&&t&&typeof t=="object")r=n,d=t;else throw new Error("Unknown call format to patch_make.");if(d.length===0)return[];d=this.diff_cleanupSplitSurrogates(d);let h=[],g=new be.patch_obj,v=0,u=0,p=0,s=r,l=r;for(let a=0;a<d.length;a++){let c=d[a][0],o=d[a][1];switch(!v&&c!==0&&(g.start1=u,g.start2=p),c){case 1:g.diffs[v++]=d[a],g.length2+=o.length,l=l.substring(0,p)+o+l.substring(p);break;case-1:g.length1+=o.length,g.diffs[v++]=d[a],l=l.substring(0,p)+l.substring(p+o.length);break;case 0:o.length<=2*this.Patch_Margin&&v&&d.length!=a+1?(g.diffs[v++]=d[a],g.length1+=o.length,g.length2+=o.length):o.length>=2*this.Patch_Margin&&v&&(this.patch_addContext_(g,s),h.push(g),g=new be.patch_obj,v=0,s=l,u=p);break}c!==1&&(u+=o.length),c!==-1&&(p+=o.length)}return v&&(this.patch_addContext_(g,s),h.push(g)),h},be.prototype.patch_deepCopy=function(n){let e=[];for(let t=0;t<n.length;t++){let r=n[t],d=new be.patch_obj;d.diffs=[];for(let h=0;h<r.diffs.length;h++)d.diffs[h]=new be.Diff(r.diffs[h][0],r.diffs[h][1]);d.start1=r.start1,d.start2=r.start2,d.length1=r.length1,d.length2=r.length2,e[t]=d}return e},be.prototype.patch_apply=function(n,e){if(n.length==0)return[e,[]];n=this.patch_deepCopy(n);let t=this.patch_addPadding(n);e=t+e+t,this.patch_splitMax(n);let r=0,d=[];for(let h=0;h<n.length;h++){let g=n[h].start2+r,v=this.diff_text1(n[h].diffs),u,p=-1;if(v.length>this.Match_MaxBits?(u=this.match_main(e,v.substring(0,this.Match_MaxBits),g),u!=-1&&(p=this.match_main(e,v.substring(v.length-this.Match_MaxBits),g+v.length-this.Match_MaxBits),(p==-1||u>=p)&&(u=-1))):u=this.match_main(e,v,g),u==-1)d[h]=!1,r-=n[h].length2-n[h].length1;else{d[h]=!0,r=u-g;let s;if(p==-1?s=e.substring(u,u+v.length):s=e.substring(u,p+this.Match_MaxBits),v==s)e=e.substring(0,u)+this.diff_text2(n[h].diffs)+e.substring(u+v.length);else{let l=this.diff_main(v,s,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(l)/v.length>this.Patch_DeleteThreshold)d[h]=!1;else{this.diff_cleanupSemanticLossless(l);let a=0,c;for(let o=0;o<n[h].diffs.length;o++){let f=n[h].diffs[o];f[0]!==0&&(c=this.diff_xIndex(l,a)),f[0]===1?e=e.substring(0,u+c)+f[1]+e.substring(u+c):f[0]===-1&&(e=e.substring(0,u+c)+e.substring(u+this.diff_xIndex(l,a+f[1].length))),f[0]!==-1&&(a+=f[1].length)}}}}}return e=e.substring(t.length,e.length-t.length),[e,d]},be.prototype.patch_addPadding=function(n){let e=this.Patch_Margin,t="";for(let h=1;h<=e;h++)t+=String.fromCharCode(h);for(let h=0;h<n.length;h++)n[h].start1+=e,n[h].start2+=e;let r=n[0],d=r.diffs;if(d.length==0||d[0][0]!=0)d.unshift(new be.Diff(0,t)),r.start1-=e,r.start2-=e,r.length1+=e,r.length2+=e;else if(e>d[0][1].length){let h=e-d[0][1].length;d[0][1]=t.substring(d[0][1].length)+d[0][1],r.start1-=h,r.start2-=h,r.length1+=h,r.length2+=h}if(r=n[n.length-1],d=r.diffs,d.length==0||d[d.length-1][0]!=0)d.push(new be.Diff(0,t)),r.length1+=e,r.length2+=e;else if(e>d[d.length-1][1].length){let h=e-d[d.length-1][1].length;d[d.length-1][1]+=t.substring(0,h),r.length1+=h,r.length2+=h}return t},be.prototype.patch_splitMax=function(n){let e=this.Match_MaxBits;for(let t=0;t<n.length;t++){if(n[t].length1<=e)continue;let r=n[t];n.splice(t--,1);let d=r.start1,h=r.start2,g="";for(;r.diffs.length!==0;){let v=new be.patch_obj,u=!0;for(v.start1=d-g.length,v.start2=h-g.length,g!==""&&(v.length1=v.length2=g.length,v.diffs.push(new be.Diff(0,g)));r.diffs.length!==0&&v.length1<e-this.Patch_Margin;){let s=r.diffs[0][0],l=r.diffs[0][1];s===1?(v.length2+=l.length,h+=l.length,v.diffs.push(r.diffs.shift()),u=!1):s===-1&&v.diffs.length==1&&v.diffs[0][0]==0&&l.length>2*e?(v.length1+=l.length,d+=l.length,u=!1,v.diffs.push(new be.Diff(s,l)),r.diffs.shift()):(l=l.substring(0,e-v.length1-this.Patch_Margin),v.length1+=l.length,d+=l.length,s===0?(v.length2+=l.length,h+=l.length):u=!1,v.diffs.push(new be.Diff(s,l)),l==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(l.length))}g=this.diff_text2(v.diffs),g=g.substring(g.length-this.Patch_Margin);let p=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);p!==""&&(v.length1+=p.length,v.length2+=p.length,v.diffs.length!==0&&v.diffs[v.diffs.length-1][0]===0?v.diffs[v.diffs.length-1][1]+=p:v.diffs.push(new be.Diff(0,p))),u||n.splice(++t,0,v)}}},be.prototype.patch_toText=function(n){let e=[];for(let t=0;t<n.length;t++)e[t]=n[t];return e.join("")},be.prototype.patch_fromText=function(n){let e=[];if(!n)return e;let t=n.split(`
|
1417
|
-
`),r=0,d=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;for(;r<t.length;){let h=t[r].match(d);if(!h)throw new Error("Invalid patch string: "+t[r]);let g=new be.patch_obj;for(e.push(g),g.start1=parseInt(h[1],10),h[2]===""?(g.start1--,g.length1=1):h[2]=="0"?g.length1=0:(g.start1--,g.length1=parseInt(h[2],10)),g.start2=parseInt(h[3],10),h[4]===""?(g.start2--,g.length2=1):h[4]=="0"?g.length2=0:(g.start2--,g.length2=parseInt(h[4],10)),r++;r<t.length;){let v=t[r].charAt(0),u="";try{u=decodeURI(t[r].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+u)}if(v=="-")g.diffs.push(new be.Diff(-1,u));else if(v=="+")g.diffs.push(new be.Diff(1,u));else if(v==" ")g.diffs.push(new be.Diff(0,u));else{if(v=="@")break;if(v!=="")throw new Error('Invalid patch mode "'+v+'" in: '+u)}r++}}return e},be.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},be.patch_obj.prototype.toString=function(){let 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;let t=["@@ -"+n+" +"+e+` @@
|
1418
|
-
`],r;be.prototype.diff_cleanupSplitSurrogates(this.diffs);for(let d=0;d<this.diffs.length;d++){switch(this.diffs[d][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" ";break}t[d+1]=r+encodeURI(this.diffs[d][1])+`
|
1419
|
-
`}return t.join("").replace(/%20/g," ")};function Rl(n){return n&&typeof n=="object"&&!Array.isArray(n)&&n!==null}function Xh(n,e){return Rl(n)&&Rl(e)&&Object.keys(e).forEach(t=>{t==="__proto__"||t==="constructor"||(Rl(e[t])?((!n[t]||!Rl(n[t]))&&(n[t]=e[t]),Xh(n[t],e[t])):Object.assign(n,{[t]:e[t]}))}),n}function A0(n,e,t=!1){let r=null,d=!0;return(...h)=>{const g=t&&d,v=()=>{n.apply(this,h),r=null};g&&(d=!1,v()),r||(r=setTimeout(v,e))}}function OI(n,e){let t;return(...r)=>{const d=this;clearTimeout(t),t=setTimeout(()=>n.apply(d,r),e)}}function C0(n=""){return n.replace(/\r\n/g,`
|
1420
|
-
`)}function _0(n,e,t,r){const d=t-n,h=n+d/2;return`M ${n} ${e} C ${h},${e} ${h},${r} ${t},${r}`}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 k0(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 S0(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 $0(n,e){return n.ace.getSession().doc.getLine(e)}function DI(n){return document.getElementById(n.options.left.id).offsetHeight}function T0(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 r in t)e.setAttribute(r,t[r]);return e.innerHTML=n.arrowContent,e}function ed(n,e){const t=Math.random().toString(36).substr(2,5),r=`js-${e}-${t}`,d=n.querySelector(`.${e}`);if(d)return d.id=d.id||r,d.id;const h=document.createElement("div");return n.appendChild(h),h.className=e,h.id=r,h.id}function I0(n,e,t,r){const d=n==="document"?document:document.querySelector(n);d.addEventListener(e,h=>{const g=d.querySelectorAll(t),{target:v}=h;for(let u=0,p=g.length;u<p;u+=1){let s=v;const l=g[u];for(;s&&s!==d;)s===l&&r.call(l,h),s=s.parentNode}})}let Ml;function NI(n){if(n.Range)return n.Range;const e=n.acequire||n.require;return e?e("ace/range"):!1}function Ll(n={}){if(!(this instanceof Ll))return new Ll(n);const e=this,t=()=>window?window.ace:void 0;e.options=Xh({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:r}=e.options;if(!r){const d="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(d),new Error(d)}if(Ml=NI(r),!Ml){const d="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(d),new Error(d)}if(e.options.element===null){const d="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(d),new Error(d)}if(e.options.element instanceof HTMLElement?e.el=e.options.element:e.el=document.body.querySelector(e.options.element),!e.el){const d=`Can't find the specified element ${e.options.element}`;return console.error(d),new Error(d)}e.options.left.id=ed(e.el,"acediff__left"),e.options.classes.gutterID=ed(e.el,"acediff__gutter"),e.options.right.id=ed(e.el,"acediff__right"),e.el.innerHTML=`<div class="acediff__wrap">${e.el.innerHTML}</div>`,e.editors={left:{ace:r.edit(e.options.left.id),markers:[],lineLengths:[]},right:{ace:r.edit(e.options.right.id),markers:[],lineLengths:[]},editorHeight:null},e.editors.left.ace.getSession().setMode(k0(e,Wt.EDITOR_LEFT)),e.editors.right.ace.getSession().setMode(k0(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(S0(e,Wt.EDITOR_LEFT)),e.editors.right.ace.setTheme(S0(e,Wt.EDITOR_RIGHT)),e.editors.left.ace.setValue(C0(e.options.left.content),-1),e.editors.right.ace.setValue(C0(e.options.right.content),-1),e.editors.editorHeight=DI(e),setTimeout(()=>{e.lineHeight=e.editors.left.ace.renderer.lineHeight,FI(e),jI(e),H0(e),e.diff()},1)}Ll.prototype={setOptions(n){Xh(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 be,e=this.editors.left.ace.getSession().getValue(),t=this.editors.right.ace.getSession().getValue(),r=n.diff_main(t,e);n.diff_cleanupSemantic(r),this.editors.left.lineLengths=M0(this.editors.left),this.editors.right.lineLengths=M0(this.editors.right);const d=[],h={left:0,right:0};r.forEach(g=>{const v=g[0];let u=g[1];u.length!==0&&(v===Wt.DIFF_EQUAL?(h.left+=u.length,h.right+=u.length):v===Wt.DIFF_DELETE?(d.push(N0(this,Wt.DIFF_DELETE,h.left,h.right,u)),h.right+=u.length):v===Wt.DIFF_INSERT&&(d.push(N0(this,Wt.DIFF_INSERT,h.left,h.right,u)),h.left+=u.length))},this),this.diffs=UI(this,d),!(this.diffs.length>this.options.maxDiffs)&&(D0(this),j0(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 r=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),e=this.editors.right.ace.container,t=e.cloneNode(!1),t.textContent=r,e.parentNode.replaceChild(t,e),document.getElementById(this.options.classes.gutterID).innerHTML="",E0()}};let E0=()=>{};function FI(n){n.editors.left.ace.getSession().on("changeScrollTop",A0(()=>{O0(n)},16)),n.editors.right.ace.getSession().on("changeScrollTop",A0(()=>{O0(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&&I0(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.newCodeConnectorLink}`,r=>{R0(n,r,Wt.LTR)}),n.options.right.copyLinkEnabled&&I0(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.deletedCodeConnectorLink}`,r=>{R0(n,r,Wt.RTL)});const t=OI(()=>{n.editors.availableHeight=document.getElementById(n.options.left.id).offsetHeight,n.diff()},250);window.addEventListener("resize",t),E0=()=>{window.removeEventListener("resize",t)}}function R0(n,e,t){const r=parseInt(e.target.getAttribute("data-diff-index"),10),d=n.diffs[r];let h,g,v,u,p,s;t===Wt.LTR?(h=n.editors.left,g=n.editors.right,v=d.leftStartLine,u=d.leftEndLine,p=d.rightStartLine,s=d.rightEndLine):(h=n.editors.right,g=n.editors.left,v=d.rightStartLine,u=d.rightEndLine,p=d.leftStartLine,s=d.leftEndLine);let l="";for(let c=v;c<u;c+=1)l+=$0(h,c),c===v&&l===""&&p!=0&&(l+=`
|
1421
|
-
`),c<h.ace.getSession().getLength()-1&&(l+=`
|
1422
|
-
`);const a=g.ace.getSession().getScrollTop();g.ace.getSession().replace(new Ml(p,0,s,0),l),g.ace.getSession().setScrollTop(parseInt(a,10)),n.diff()}function M0(n){const e=n.ace.getSession().doc.getAllLines(),t=[];return e.forEach(r=>{t.push(r.length+1)}),t}function L0(n,e,t,r,d){const h=n.editors[e];r<t&&(r=t);const g=`${d} ${r>t?"lines":"targetOnly"}`;r>t&&(r-=1),h.markers.push(h.ace.session.addMarker(new Ml(t,0,r,1),g,"fullLine"))}function O0(n){D0(n),j0(n),WI(n)}function D0(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 PI(n,e,t,r,d){const h=n.editors.left.ace.getSession().getScrollTop(),g=n.editors.right.ace.getSession().getScrollTop();n.connectorYOffset=1;const v=-1,u=e*n.lineHeight-h+.5,p=n.gutterWidth+1,s=r*n.lineHeight-g+.5,l=-1,a=t*n.lineHeight-h+n.connectorYOffset+.5,c=n.gutterWidth+1,o=d*n.lineHeight-g+n.connectorYOffset+.5,f=_0(v,u,p,s),y=_0(c,o,l,a),w=`L${p},${s} ${c},${o}`,x=`L${l},${a} ${v},${u}`,E=`${f} ${w} ${y} ${x}`,S=document.createElementNS(Wt.SVG_NS,"path");S.setAttribute("d",E),S.setAttribute("class",n.options.classes.connector),n.gutterSVG.appendChild(S)}function HI(n,e,t){if(e.leftEndLine>e.leftStartLine&&n.options.left.copyLinkEnabled){const r=T0({className:n.options.classes.newCodeConnectorLink,topOffset:e.leftStartLine*n.lineHeight,tooltip:"Copy to right",diffIndex:t,arrowContent:n.options.classes.newCodeConnectorLinkContent});n.copyRightContainer.appendChild(r)}if(e.rightEndLine>e.rightStartLine&&n.options.right.copyLinkEnabled){const r=T0({className:n.options.classes.deletedCodeConnectorLink,topOffset:e.rightStartLine*n.lineHeight,tooltip:"Copy to left",diffIndex:t,arrowContent:n.options.classes.deletedCodeConnectorLinkContent});n.copyLeftContainer.appendChild(r)}}function WI(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 N0(n,e,t,r,d){let h={};if(e===Wt.DIFF_INSERT){let g=F0(n.editors.left,t,d),v=P0(n.editors.right,r),u=Gs(n.editors.right,v);const p=Gs(n.editors.left,g.startLine);let s=v,l=g.startLine===g.endLine,a=0;(g.startChar>0||l&&d.length<p)&&u>0&&g.startChar<p&&a++,h={leftStartLine:g.startLine,leftEndLine:g.endLine+1,rightStartLine:s,rightEndLine:s+a}}else{let g=F0(n.editors.right,r,d),v=P0(n.editors.left,t),u=Gs(n.editors.left,v);const p=Gs(n.editors.right,g.startLine);let s=v,l=g.startLine===g.endLine,a=0;(g.startChar>0||l&&d.length<p)&&u>0&&g.startChar<p&&a++,h={leftStartLine:s,leftEndLine:s+a,rightStartLine:g.startLine,rightEndLine:g.endLine+1}}return h}function F0(n,e,t){const r={startLine:0,startChar:0,endLine:0,endChar:0},d=e+t.length;let h=0,g=!1,v=!1;n.lineLengths.forEach((p,s)=>{h+=p,!g&&e<h&&(r.startLine=s,r.startChar=e-h+p,g=!0),!v&&d<=h&&(r.endLine=s,r.endChar=d-h+p,v=!0)}),r.startChar>0&&Gs(n,r.startLine)===r.startChar&&(r.startLine++,r.startChar=0),r.endChar===0&&r.endLine--;const u=/\n$/.test(t);return r.startChar>0&&u&&r.endLine++,r}function Gs(n,e){return $0(n,e).length}function P0(n,e){const t=n.ace.getSession().doc.getAllLines();let r=0,d=0;for(let h=0;h<t.length;h+=1)if(d+=t[h].length+1,e<d){r=h;break}return d>n.ace.getSession().getValue().length&&(r+=1),r}function H0(n){n.gutterHeight=document.getElementById(n.options.classes.gutterID).clientHeight,n.gutterWidth=document.getElementById(n.options.classes.gutterID).clientWidth;const e=W0(n,Wt.EDITOR_LEFT),t=W0(n,Wt.EDITOR_RIGHT),r=Math.max(e,t,n.gutterHeight);n.gutterSVG=document.createElementNS(Wt.SVG_NS,"svg"),n.gutterSVG.setAttribute("width",n.gutterWidth),n.gutterSVG.setAttribute("height",r),document.getElementById(n.options.classes.gutterID).appendChild(n.gutterSVG)}function W0(n,e){return(e===Wt.EDITOR_LEFT?n.editors.left:n.editors.right).ace.getSession().getLength()*n.lineHeight}function jI(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 BI(n){document.getElementById(n.options.classes.gutterID).removeChild(n.gutterSVG),H0(n)}function zI(n){n.copyLeftContainer.innerHTML="",n.copyRightContainer.innerHTML=""}function UI(n,e){const t=[];function r(h){return n.options.diffGranularity===Wt.DIFF_GRANULARITY_SPECIFIC?h<1:h<=1}e.forEach((h,g)=>{if(g===0){t.push(h);return}let v=!1;for(let u=0;u<t.length;u+=1)if(r(Math.abs(h.leftStartLine-t[u].leftEndLine))&&r(Math.abs(h.rightStartLine-t[u].rightEndLine))){t[u].leftStartLine=Math.min(h.leftStartLine,t[u].leftStartLine),t[u].rightStartLine=Math.min(h.rightStartLine,t[u].rightStartLine),t[u].leftEndLine=Math.max(h.leftEndLine,t[u].leftEndLine),t[u].rightEndLine=Math.max(h.rightEndLine,t[u].rightEndLine),v=!0;break}v||t.push(h)});const d=[];return t.forEach(h=>{h.leftStartLine===h.leftEndLine&&h.rightStartLine===h.rightEndLine||d.push(h)}),d}function j0(n){BI(n),zI(n),n.diffs.forEach((e,t)=>{n.options.showDiffs&&(L0(n,Wt.EDITOR_LEFT,e.leftStartLine,e.leftEndLine,n.options.classes.diff),L0(n,Wt.EDITOR_RIGHT,e.rightStartLine,e.rightEndLine,n.options.classes.diff),n.options.showConnectors&&PI(n,e.leftStartLine,e.leftEndLine,e.rightStartLine,e.rightEndLine),HI(n,e,t))},n)}const VI={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=no.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 Ll({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=no.require("ace/lib/oop"),e=no.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,t=["VARIABLE"],r=new RegExp(`(\\b${t.join("\\b|\\b")}\\b)`),d=function(){e.call(this);for(let s in this.$rules)this.$rules[s].unshift({regex:r,token:"support.function"})};n.inherits(d,e);let h=no.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,g=no.require("ace/mode/behaviour/cstyle").CstyleBehaviour,v=no.require("ace/mode/folding/ruby").FoldMode,u=function(){this.HighlightRules=d,this.$outdent=new h,this.$behaviour=new g,this.foldingRules=new v,this.indentKeywords=this.foldingRules.indentKeywords},p=no.require("ace/mode/ruby").Mode;return n.inherits(u,p),(function(){this.$id="ace/mode/openc3"}).call(u.prototype),u},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
|
1423
|
-
`)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
1424
|
-
`)):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(`
|
1425
|
-
`))}).catch(n=>{})},emitSubmit(n){let e={name:this.pluginName,variables:hf(this.localVariables),plugin_txt_lines:n};this.$emit("callback",e)},close:function(){this.show=!this.show}}},qI={style:{flex:"1"}},GI={class:"pa-3"},YI={ref:"editor",class:"editor"},KI={ref:"editor",class:"editor"},QI={key:0};function ZI(n,e,t,r,d,h){const g=_e("v-card-title"),v=_e("v-icon"),u=_e("v-row"),p=_e("v-tab"),s=_e("v-tabs"),l=_e("v-text-field"),a=_e("v-col"),c=_e("v-window-item"),o=_e("v-window"),f=_e("v-btn"),y=_e("v-spacer"),w=_e("v-card-actions"),x=_e("v-card-text"),E=_e("v-card"),S=_e("v-dialog");return Pe(),At(S,{persistent:"",modelValue:h.show,"onUpdate:modelValue":e[3]||(e[3]=C=>h.show=C),width:"80vw"},{default:xe(()=>[Ae(E,null,{default:xe(()=>[Ae(x,null,{default:xe(()=>[Ae(g,null,{default:xe(()=>[ft(qt(t.pluginName),1)]),_:1}),t.existingPluginTxt!==null?(Pe(),At(u,{key:0,class:"notice d-flex flex-row"},{default:xe(()=>[Ae(v,{size:"x-large",start:"",color:"yellow"},{default:xe(()=>e[4]||(e[4]=[ft(" mdi-alert-box ")])),_:1}),Mn("div",qI," 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})):er("",!0),Ae(u,{class:"pb-3 pr-3"},{default:xe(()=>[Ae(s,{modelValue:d.tab,"onUpdate:modelValue":e[0]||(e[0]=C=>d.tab=C),class:"ml-3"},{default:xe(()=>[(Pe(),At(p,{key:0},{default:xe(()=>e[5]||(e[5]=[ft(" Variables ")])),_:1})),(Pe(),At(p,{key:1},{default:xe(()=>e[6]||(e[6]=[ft(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),Mn("form",{onSubmit:e[2]||(e[2]=Oa((...C)=>n.onSubmit&&n.onSubmit(...C),["prevent"]))},[Ae(o,{modelValue:d.tab,"onUpdate:modelValue":e[1]||(e[1]=C=>d.tab=C)},{default:xe(()=>[(Pe(),At(c,{key:0,eager:"true",class:"tab"},{default:xe(()=>[Mn("div",GI,[Ae(u,{class:"mt-3"},{default:xe(()=>[(Pe(!0),Ot(Lr,null,Ur(d.localVariables,(C,b)=>(Pe(),Ot("div",{key:b},[Ae(a,{style:{width:"220px"}},{default:xe(()=>[Ae(l,{clearable:"",type:"text",label:b,modelValue:d.localVariables[b],"onUpdate:modelValue":T=>d.localVariables[b]=T},null,8,["label","modelValue","onUpdate:modelValue"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),t.existingPluginTxt===null?(Pe(),At(c,{key:"1-new",eager:"true",class:"tab"},{default:xe(()=>[Ae(u,{class:"pa-3"},{default:xe(()=>[Ae(a,null,{default:xe(()=>e[7]||(e[7]=[ft(" This can be edited before installation. ")])),_:1})]),_:1}),Mn("pre",YI,null,512)]),_:1})):(Pe(),At(c,{key:"1-existing",eager:"true",class:"tab"},{default:xe(()=>[Ae(u,{class:"pa-3"},{default:xe(()=>[Ae(a,null,{default:xe(()=>e[8]||(e[8]=[ft(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),Ae(a,{class:"ml-6"},{default:xe(()=>e[9]||(e[9]=[ft(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),Mn("pre",KI,null,512)]),_:1}))]),_:1},8,["modelValue"]),Ae(w,{class:"px-2 mt-2"},{default:xe(()=>[t.existingPluginTxt!==null?(Pe(),Ot("div",QI,[Ae(f,{variant:"text",onClick:h.nextDiff},{default:xe(()=>e[10]||(e[10]=[ft(" Next Diff ")])),_:1},8,["onClick"]),Ae(f,{variant:"text",onClick:h.previousDiff},{default:xe(()=>e[11]||(e[11]=[ft(" Previous Diff ")])),_:1},8,["onClick"])])):er("",!0),Ae(y),Ae(f,{variant:"outlined",onClick:Oa(h.close,["prevent"]),"data-test":"edit-cancel"},{default:xe(()=>e[12]||(e[12]=[ft(" Cancel ")])),_:1},8,["onClick"]),Ae(f,{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 vN=Rn("w",Vr(VI,[["render",ZI],["__scopeId","data-v-4a504453"]])),JI=Jh.find(n=>n.name==="PluginsTab"),B0=[{path:"/",component:LI,children:[{component:JI.component,path:""},...Jh]},{path:"/:pathMatch(.*)*",name:"NotFound",component:bI}];B0.forEach($f);const XI=xf({history:Af(),routes:B0}),eE={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"}},tE={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)}}},nE=["innerHTML"],rE={key:2},iE={key:3,class:"validate mt-4"};function oE(n,e,t,r,d,h){const g=_e("v-spacer"),v=_e("v-toolbar"),u=_e("v-icon"),p=_e("v-text-field"),s=_e("v-card-text"),l=_e("v-btn"),a=_e("v-card-actions"),c=_e("v-card"),o=_e("v-dialog"),f=_e("v-app");return Pe(),At(f,null,{default:xe(()=>[Ae(o,{modelValue:n.show,"onUpdate:modelValue":e[1]||(e[1]=y=>n.show=y),width:"600"},{default:xe(()=>[Ae(c,null,{default:xe(()=>[Ae(v,{height:"24"},{default:xe(()=>[Ae(g),Mn("span",null,qt(n.params.title),1),Ae(g)]),_:1}),Ae(s,{class:"mt-4 pa-3"},{default:xe(()=>[n.params.validateText?(Pe(),At(u,{key:0,class:"mr-2"},{default:xe(()=>e[2]||(e[2]=[ft(" mdi-alert ")])),_:1})):er("",!0),n.params.html?(Pe(),Ot("span",{key:1,innerHTML:n.params.text},null,8,nE)):(Pe(),Ot("span",rE,qt(n.params.text),1)),n.params.validateText?(Pe(),Ot("div",iE,[ft(" Enter "+qt(n.params.validateText)+" to confirm! ",1),Ae(p,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":e[0]||(e[0]=y=>n.validationText=y),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):er("",!0)]),_:1}),Ae(a,{class:"px-2"},{default:xe(()=>[Ae(g),n.params.cancelText?(Pe(),At(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"])):er("",!0),Ae(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 sE=Vr(tE,[["render",oE],["__scopeId","data-v-581c0293"]]);class aE{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const e=window.Vue.createApp(sE);e.use(nd);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:r,okClass:d,validateText:h,cancelText:g,html:v}){return this.mount(),new Promise((u,p)=>{this.$root.dialog({title:e,text:t,okText:r,okClass:d,validateText:h,cancelText:g,html:v},u,p)})}confirm(e,{okText:t="Ok",cancelText:r="Cancel",okClass:d="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:d,validateText:null,cancelText:r,html:!1})}alert(e,{okText:t="Ok",html:r=!1,okClass:d="primary"}){return this.open({title:"Alert",text:e,okText:t,okClass:d,validateText:null,cancelText:null,html:r})}validate(e,{okText:t="Ok",validateText:r="CONFIRM",cancelText:d="Cancel",okClass:h="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:h,validateText:r,cancelText:d,html:!1})}}const lE={install(n,e){const t=new aE;n.provide("dialog",t),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=t)}},cE={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`
|
1426
|
-
--toast-bg-color:${Zh[this.toastNotification.level]};
|
1427
|
-
--toast-fg-color:${uI(this.toastNotification.level)};
|
1428
|
-
`},contentStyle:function(){return`
|
1429
|
-
white-space: ${this.expanded?"normal":"nowrap"};
|
1430
|
-
overflow-x: ${this.expanded?"visible":"hidden"};
|
1431
|
-
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
1432
|
-
`}},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}}},uE={key:0,class:"text-subtitle-1 mr-1 notification-text"},hE={key:1,class:"text-body-2 notification-text"},dE={key:2,class:"text-body-2 notification-text"};function fE(n,e,t,r,d,h){const g=_e("v-icon"),v=_e("v-spacer"),u=_e("v-btn"),p=_e("v-sheet"),s=_e("v-slide-y-transition");return Pe(),At(s,null,{default:xe(()=>[wf(Ae(p,{style:Zi(h.toastStyle),class:"toast-notification",onClick:h.expand},{default:xe(()=>[Ae(g,{class:"mr-1 notification-text"},{default:xe(()=>[ft(qt(h.toastNotificationIcon),1)]),_:1}),Mn("div",{class:"toast-content",style:Zi(h.contentStyle)},[n.toastNotification.title?(Pe(),Ot("span",uE,qt(n.toastNotification.title)+": ",1)):er("",!0),n.toastNotification.body?(Pe(),Ot("span",hE,qt(n.toastNotification.body),1)):er("",!0),n.toastNotification.message?(Pe(),Ot("span",dE,qt(n.toastNotification.message),1)):er("",!0)],4),Ae(v),Ae(u,{variant:"text",onClick:Oa(h.hide,["stop"]),class:"notification-text"},{default:xe(()=>e[0]||(e[0]=[ft(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[bf,n.showToast]])]),_:1})}const gE=Vr(cE,[["render",fE],["__scopeId","data-v-b0459ba8"]]);class pE{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=jc(gE);e.use(nd);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:r,message:d,level:h,duration:g,type:v="alert",logToConsole:u=!1,saveToHistory:p=!0}){this.mount(),u&&console.log(d?`${h.toUpperCase()} - ${d}`:`${h.toUpperCase()} - ${t}: ${r}`),p&&this.$store.commit("notifyAddHistory",{title:t,body:r,message:d,level:h}),this[e]({title:t,body:r,message:d,level:h,duration:g,type:v})}toast({title:e,body:t,message:r,level:d,duration:h,type:g}){this.$root.toast({title:e,body:t,message:r,level:d,type:g},h)}critical({title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v}){this.open({method:"toast",level:"critical",title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v})}FATAL(e){this.critical(e)}ERROR(e){this.critical(e)}serious({title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v}){this.open({method:"toast",level:"serious",title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v})}caution({title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v}){this.open({method:"toast",level:"caution",title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v})}WARN(e){this.caution(e)}normal({title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v}){this.open({method:"toast",level:"normal",title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v})}INFO(e){this.normal(e)}DEBUG(e){this.normal(e)}standby({title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v}){this.open({method:"toast",level:"standby",title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v})}off({title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v}){this.open({method:"toast",level:"off",title:e,body:t,message:r,type:d,duration:h,logToConsole:g,saveToHistory:v})}}const mE={install(n,e){const t=new pE(e);n.provide("notify",t),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=t)}},z0=100,U0=_f({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>e=>n.namedWidgets[e]},mutations:{notifyAddHistory:(n,e)=>{n.notifyHistory.length>=z0&&(n.notifyHistory.length=z0-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 V0(n){let e;return n!==null&&typeof n=="object"&&((e=Object.getPrototypeOf(n))===Object.prototype||e===null)}function yE(n,e){const t={};for(const r of e)Object.hasOwn(n,r)&&(t[r]=n[r]);return t}function q0(){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 r={};for(const d in n)r[d]=n[d];for(const d in e){const h=n[d],g=e[d];if(V0(h)&&V0(g)){r[d]=q0(h,g,t);continue}if(t&&Array.isArray(h)&&Array.isArray(g)){r[d]=t(h,g);continue}r[d]=g}return r}function Ys(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Ys.cache.has(n))return Ys.cache.get(n);const e=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Ys.cache.set(n,e),e}Ys.cache=new Map;function vE(n){ff(`Vuetify: ${n}`)}function G0(n,e){return t=>Object.keys(n).reduce((r,d)=>{const h=typeof n[d]=="object"&&n[d]!=null&&!Array.isArray(n[d])?n[d]:{type:n[d]};return t&&d in t?r[d]={...h,default:t[d]}:r[d]=h,e&&!r[d].source&&(r[d].source=e),r},{})}function Y0(n,e){const t=yf();if(!t)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return t}function wE(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y0("injectSelf");const{provides:t}=e;if(t&&n in t)return t[n]}const td=Symbol.for("vuetify:defaults");function K0(){const n=gf(td);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function bE(n,e){var t,r;return typeof((t=n.props)==null?void 0:t[e])<"u"||typeof((r=n.props)==null?void 0:r[Ys(e)])<"u"}function xE(){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]:K0();const r=Y0("useDefaults");if(e=e??r.type.name??r.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const d=Wc(()=>{var u;return(u=t.value)==null?void 0:u[n._as??e]}),h=new Proxy(n,{get(u,p){var s,l,a,c,o,f,y;const w=Reflect.get(u,p);return p==="class"||p==="style"?[(s=d.value)==null?void 0:s[p],w].filter(x=>x!=null):typeof p=="string"&&!bE(r.vnode,p)?((l=d.value)==null?void 0:l[p])!==void 0?(a=d.value)==null?void 0:a[p]:((o=(c=t.value)==null?void 0:c.global)==null?void 0:o[p])!==void 0?(y=(f=t.value)==null?void 0:f.global)==null?void 0:y[p]:w:w}}),g=pf();mf(()=>{if(d.value){const u=Object.entries(d.value).filter(p=>{let[s]=p;return s.startsWith(s[0].toUpperCase())});g.value=u.length?Object.fromEntries(u):void 0}else g.value=void 0});function v(){const u=wE(td,r);vf(td,Wc(()=>g.value?q0((u==null?void 0:u.value)??{},g.value):u==null?void 0:u.value))}return{props:h,provideSubDefaults:v}}function Ol(n){if(n._setup=n._setup??n.setup,!n.name)return vE("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=G0(n.props??{},n.name)();const e=Object.keys(n.props).filter(t=>t!=="class"&&t!=="style");n.filterProps=function(t){return yE(t,e)},n.props._as=String,n.setup=function(t,r){const d=K0();if(!d.value)return n._setup(t,r);const{props:h,provideSubDefaults:g}=xE(t,t._as??n.name,d),v=n._setup(h,r);return g(),v}}return n}function AE(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(n?Ol:df)(e)}const CE=[String,Function,Object,Array],Dl=G0({icon:{type:CE},tag:{type:String,required:!0}},"icon");AE()({name:"VComponentIcon",props:Dl(),setup(n,e){let{slots:t}=e;return()=>{const r=n.icon;return Ae(n.tag,null,{default:()=>{var d;return[n.icon?Ae(r,null,null):(d=t.default)==null?void 0:d.call(t)]}})}}}),Ol({name:"VSvgIcon",inheritAttrs:!1,props:Dl(),setup(n,e){let{attrs:t}=e;return()=>Ae(n.tag,_s(t,{style:null}),{default:()=>[Ae("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(r=>Array.isArray(r)?Ae("path",{d:r[0],"fill-opacity":r[1]},null):Ae("path",{d:r},null)):Ae("path",{d:n.icon},null)])]})}}),Ol({name:"VLigatureIcon",props:Dl(),setup(n){return()=>Ae(n.tag,null,{default:()=>[n.icon]})}});const _E=Ol({name:"VClassIcon",props:Dl(),setup(n){return()=>Ae(n.tag,{class:n.icon},null)}}),kE={component:n=>Cs(_E,{...n,class:"mdi"})},nd=kf({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:eE}},icons:{defaultSet:"mdi",sets:{mdi:kE,...dI}}}),rd=zw({createApp:jc,appOptions:{render(){return Cs(Zw,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(XI),n.use(U0),n.use(nd),n.use(lE),n.use(mE,{store:U0})}}),wN=Rn("f",rd.bootstrap),bN=Rn("m",rd.mount),xN=Rn("u",rd.unmount)}}});
|